var i = Object.defineProperty;
var d = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
var s = (t, e, r) => d(t, typeof e != "symbol" ? e + "" : e, r);
import { ref as m } from "vue";
import { parseAPIPortHjly as o } from "./api.mjs";
class l {
  static request(e) {
    const r = m({});
    r.value = sessionStorage.getItem("Session_token") || localStorage.getItem("Session_token"), e.headers = this.headers, r.value && (r.value = JSON.parse(r.value), e.headers["X-Token"] = r.value.data.token);
    const a = e.postParams || {};
    for (const c in e)
      if (Object.prototype.hasOwnProperty.call(e, c)) {
        const u = e[c];
        c !== "url" && c !== "headers" && c !== "type" && (a[c] = u);
      }
    return e.postParams = a || {}, e.isBody = a || {}, o(e);
  }
  // 视频监控-播放配置(播放url等配置信息)
  static getVideoPlayConfig(e) {
    return e.type = "POST", e.url = "/imcs-console/camera/vs", this.request(e);
  }
  static getVideoDeviceParams(e) {
    return e.type = "POST", e.url = "/imcs-console/homePicture/loadDeviceParam", this.request(e);
  }
  // 收藏
  static videoCollect(e) {
    return e.type = "POST", e.url = "/imcs-console/preview/video/collection", this.request(e);
  }
  // 打点(获取资源点位列表)
  static loadHomeResourceMap(e) {
    return e.url = "/imcs-console/resourceMonitor/loadHomeResourceMap", e.type = "POST", this.request(e);
  }
  // 取消收藏
  static videoNotCollect(e) {
    return e.type = "POST", e.url = "/imcs-console/preview/video/not-collection", this.request(e);
  }
  // 获取热力图
  static loadHeatMap(e) {
    return e.type = "POST", e.url = "/imcs-console/resourceMonitor/loadHeatMap", e.dataSourceType = 2, this.request(e);
  }
  // 人脸超脑-根据上传的图片查询人脸信息
  static captureSearch(e) {
    return e.type = "POST", e.url = "/imcs-console/superBrain/captureSearch", this.request(e);
  }
  // 移动端-视频监控-查询视频列表
  static loadCheckList(e) {
    return e.type = "POST", e.url = "/imcs-console/homePicture/loadCheckList", this.request(e);
  }
  // 移动端-视频监控-查询视频历史列表
  static videoPreviewList(e) {
    return e.type = "POST", e.url = "/imcs-console/preview/video/list", this.request(e);
  }
  // 视频监控-控制摄像头转动
  static cameraTurn(e) {
    return e.type = "POST", e.url = "/imcs-console/camera/turn", this.request(e);
  }
  // PC端-视频监控-查询视频列表
  static loadResourceMonitorCheckList(e) {
    return e.type = "POST", e.url = "/imcs-console/homePicture/loadCheckList", this.request(e);
  }
  static getRecordFileList(e) {
    return e.type = "POST", e.url = "/imcs-console/camera/playBackRecord", this.request(e);
  }
  static getPlaybackConfig(e) {
    return e.type = "POST", e.url = "/imcs-console/camera/playback", this.request(e);
  }
  static getDeviceByIndexCode(e) {
    return e.type = "POST", e.url = "/imcs-console/superBrain/getDeviceByIndexCode?indexCode=" + e.indexCode, this.request(e);
  }
}
s(l, "preUrl", "https://zgdev.fxo2opt.com"), s(l, "headers", {
  "X-Token": "9804f8ada78e47dfbde28cf6f85c4fb7"
});
export {
  l as HJLYDatasourceApi
};
