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