import { r as t } from "./reactcomponent-44b70bf6.mjs";
import "react";
import "react-dom";
const i = ":host{display:block;color:#1f2937;font-weight:400}", e = class {
  constructor(o) {
    t(this, o), this.location = void 0, this.level = "Level", this.showExternalId = !0, this.showFloor = !0;
  }
  /**
   * Get locations info as a string.
   *
   * @returns {string}
   */
  getInfoString() {
    const o = [];
    return this.location.properties.externalId && this.showExternalId && o.push(this.location.properties.externalId), this.location.properties.floorName && this.showFloor && o.push(`${this.level} ${this.location.properties.floorName}`), this.location.properties.building && (this.location.properties.venue ? this.location.properties.venue.toLowerCase() !== this.location.properties.building.toLowerCase() && o.push(this.location.properties.building) : o.push(this.location.properties.building)), this.location.properties.venue && o.push(this.location.properties.venue), this.location.properties.subtitle && o.push(this.location.properties.subtitle), o.join(" · ");
  }
  /**
   * Renders location list-info.
   *
   * @description Render location list-info.
   * @returns {JSX.Element}
   */
  render() {
    var o;
    return !((o = this.location) === null || o === void 0) && o.properties ? this.getInfoString() : null;
  }
};
e.style = i;
export {
  e as mi_location_info
};
//# sourceMappingURL=mi-location-info.entry-769bdde1.mjs.map
