import { unsafeCSS, LitElement, html } from "lit";
import { property } from "lit/decorators.js";
import { classMap } from "lit/directives/class-map.js";
import componentStyle from "./ruler-pointer.css.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;
};
var ObcRulerPointerType = /* @__PURE__ */ ((ObcRulerPointerType2) => {
  ObcRulerPointerType2["Default"] = "default";
  ObcRulerPointerType2["Regular"] = "regular";
  ObcRulerPointerType2["Selected"] = "selected";
  return ObcRulerPointerType2;
})(ObcRulerPointerType || {});
let ObcRulerPointer = class extends LitElement {
  constructor() {
    super(...arguments);
    this.type = "default";
  }
  render() {
    const type = this.type === "regular" || this.type === "selected" ? this.type : "default";
    const isDefault = type === "default";
    const isRegular = type === "regular";
    const isSelected = type === "selected";
    return html`
      <div
        class=${classMap({
      wrapper: true,
      regular: isRegular,
      selected: isSelected
    })}
      >
        ${isDefault ? html`<div class="dot default"></div>` : html`
              <div class="dot outer"></div>
              ${isRegular ? html`<div class="dot inner regular"></div>` : null}
            `}
      </div>
    `;
  }
};
ObcRulerPointer.styles = unsafeCSS(componentStyle);
__decorateClass([
  property({ type: String, reflect: true })
], ObcRulerPointer.prototype, "type", 2);
ObcRulerPointer = __decorateClass([
  customElement("obc-ruler-pointer")
], ObcRulerPointer);
export {
  ObcRulerPointer,
  ObcRulerPointerType
};
//# sourceMappingURL=ruler-pointer.js.map
