import { html } from "lit";
import { property } from "lit/decorators.js";
import { customElement } from "../../decorator.js";
import { ObcPoiButton } from "../building-blocks/poi-button/poi-button.js";
import { ObcPoiObjectType } from "../building-blocks/poi-object/poi-object.js";
import { ObcPoiObjectDataStyle } from "../poi-object-data/poi-object-data.js";
import { ObcPoiObjectDataState } from "../poi-object-data/poi-object-data.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 ObcPoiButtonData = class extends ObcPoiButton {
  constructor() {
    super(...arguments);
    this.dataStyle = ObcPoiObjectDataStyle.Regular;
    this.dataState = null;
    this.dataInteractive = false;
  }
  get resolvedDataType() {
    switch (this.poiObjectType) {
      case ObcPoiObjectType.Large:
        return ObcPoiObjectType.Large;
      default:
        return ObcPoiObjectType.Regular;
    }
  }
  renderPoiObject() {
    return html`
      <obc-poi-object-data
        class="poi-object"
        exportparts="background-frame"
        .type=${this.resolvedDataType}
        .objectStyle=${this.dataStyle}
        .state=${this.dataState ?? this.poiObjectState}
        ?interactive=${this.dataInteractive}
      >
        <span
          class="icon"
          style="transform: rotate(${this.relativeDirection}deg);"
        >
          <slot></slot>
        </span>
      </obc-poi-object-data>
    `;
  }
};
__decorateClass([
  property({ type: String, attribute: "data-style" })
], ObcPoiButtonData.prototype, "dataStyle", 2);
__decorateClass([
  property({ type: String, attribute: "data-state" })
], ObcPoiButtonData.prototype, "dataState", 2);
__decorateClass([
  property({ type: Boolean, attribute: "data-interactive" })
], ObcPoiButtonData.prototype, "dataInteractive", 2);
ObcPoiButtonData = __decorateClass([
  customElement("obc-poi-button-data")
], ObcPoiButtonData);
export {
  ObcPoiButtonData,
  ObcPoiObjectDataState,
  ObcPoiObjectDataStyle,
  ObcPoiObjectType as ObcPoiObjectDataType
};
//# sourceMappingURL=poi-button-data.js.map
