import { reactive as de, computed as fe, watch as oe, toRefs as me, defineComponent as be, ref as pe, resolveComponent as T, openBlock as y, createElementBlock as N, normalizeClass as f, unref as e, createVNode as l, withCtx as t, createBlock as I, isRef as _e, createCommentVNode as C, Fragment as P, renderList as re, createElementVNode as b, normalizeStyle as ve, createTextVNode as $, toDisplayString as _, withModifiers as ne } from "vue";
import { u as ye, g as ge, j as ke, b as xe } from "./layer-select-Ba4IEiWY.js";
import { LayerType as D, SubLayerType as A, defined as Ce } from "@mapgis/webclient-common";
import "./vendor-D4icwOYu.js";
import { m as ue, _ as Ie } from "./utils-B4smQbM-.js";
var F = /* @__PURE__ */ ((n) => (n.label = "label", n.tileInfo = "tileInfo", n.spatialReference = "spatialReference", n.token = "token", n.headers = "headers", n.elevationInfo = "elevationInfo", n.extent = "extent", n.subDomains = "subDomains", n.bandIds = "bandIds", n.serviceRasterInfo = "serviceRasterInfo", n))(F || {}), E = /* @__PURE__ */ ((n) => (n.id = "图层Id", n.clientId = "客户端Id", n.title = "图层名称", n.description = "图层描述", n.copyright = "版权信息", n.type = "图层类型", n.visible = "图层显隐", n.opacity = "透明度", n.minScale = "最小比例尺", n.maxScale = "最大比例尺", n.url = "服务基地址", n.httpMethod = "请求方式", n.headers = "请求头", n.tileInfo = "瓦片信息", n.clippingArea = "客户端裁剪", n.spatialReference = "参照系", n.token = "Token", n.elevationInfo = "高程模式", n.scene = "激活的场景", n.activeLayer = "激活的图层", n.gdbp = "GDBP数据源", n.renderMode = "渲染模式", n.imageFormat = "图片格式", n.imageSize = "图片宽高", n.imageMaxWidth = "图片最大宽高", n.imageTransparency = "图片背景透明", n.isAntialiasing = "图片抗锯齿", n.extent = "图层范围", n.tileSliceType = "瓦片切片方式", n.subDomains = "子域名", n.replaceStyleURL = "基地址替换", n.bandIds = "波段号", n.interpolation = "重采样方式", n.rasterFunction = "数据渲染规则", n.serviceRasterInfo = "栅格信息", n.tileMatrixSetId = "瓦片集ID", n.supportArc3 = "解析弧段", n.maxFrameSize = "最大网格大小", n.originPoint = "网格划分原点", n.beginLevel = "开始级别", n.endLevel = "结束级别", n.layerIndex = "图层索引", n.requestVertexNormals = "地形法向量", n))(E || {});
const Se = {
  /**
   * @description 图层ID
   * @type String
   */
  layerId: {
    type: String
  },
  /**
   * @description 子图层ID
   * @type String
   */
  sublayerId: {
    type: String
  },
  /**
   * @description 图层对象，可以是webclient-common库的图层对象或者子图层对象
   * @type zondy.layer.Layer | zondy.layer.Sublayer
   */
  layer: {
    type: Object
  }
}, $e = {}, Fe = (n, ie, h) => {
  const { map: j, zondy: c, viewState: O } = ye();
  let a;
  const G = de({
    // 当前选中图层的id
    checkedLayerId: "",
    // 图层信息
    layerInfo: void 0,
    // 要显示的label类型的图层属性集合
    labelUIConfig: void 0,
    // 折叠面板UI配置
    collapseUIConfig: void 0
  }), H = [
    D.ArcGISMapImage,
    D.ArcGISTile,
    D.ArcGISVectorTile,
    D.IGSFeature,
    D.GeoJSON,
    D.IGSImage,
    D.IGSImageTile,
    D.IGSMapImage,
    D.IGSTile,
    D.IGSVectorTile,
    D.WMTS,
    D.WMS,
    D.WFS,
    D.webTile,
    D.IGSScene,
    D.M3DModelCache,
    D.cesium3DTilesModelCache
  ], M = [
    A.IGSMapImageSub,
    A.IGSVectorTileSub,
    A.IGSSceneSub,
    A.IGSSceneSubMapRef,
    A.IGSSceneSubM3DCache,
    A.IGSSceneSubTerrian,
    A.IGSSceneSubLabel,
    A.ArcGISMapImageSub,
    A.ArcGISVectorTileSub,
    A.WMSSub
  ], J = [
    {
      title: "级别",
      dataIndex: "levelValue",
      key: "levelValue",
      align: "center"
    },
    {
      title: "分辨率",
      dataIndex: "resolution",
      key: "resolution",
      align: "center"
    },
    {
      title: "比例尺",
      dataIndex: "scale",
      key: "scale",
      align: "center"
    }
  ], K = [
    {
      title: "名称",
      dataIndex: "key",
      key: "key",
      align: "center"
    },
    {
      title: "值",
      dataIndex: "value",
      key: "value",
      align: "center"
    }
  ], q = [
    {
      title: "序号",
      dataIndex: "index",
      key: "index",
      align: "center"
    },
    {
      title: "值",
      dataIndex: "value",
      key: "value",
      align: "center"
    }
  ], Q = [
    {
      title: "红",
      dataIndex: "red",
      key: "red",
      align: "center"
    },
    {
      title: "绿",
      dataIndex: "green",
      key: "green",
      align: "center"
    },
    {
      title: "蓝",
      dataIndex: "blue",
      key: "blue",
      align: "center"
    },
    {
      title: "透明度",
      dataIndex: "alpha",
      key: "alpha",
      align: "center"
    }
  ], U = fe(() => !(n.layer || n.layerId && n.layerId !== ""));
  oe(
    [() => n.layerId, () => n.sublayerId, () => n.layer],
    async () => {
      n.layer ? a = n.layer : a = await X({
        layerId: n.layerId,
        sublayerId: n.sublayerId
      }), G.layerInfo = a ? a.toJSON() : {}, B();
    },
    {
      immediate: !0
    }
  ), oe(
    () => G.checkedLayerId,
    () => {
      a = h.value.getSelectLayers()[0], G.layerInfo = a ? a.toJSON() : {}, B();
    }
  );
  function X({ layerId: s, sublayerId: o }) {
    return new Promise((d) => {
      ge({
        layerId: s,
        sublayerId: o,
        map: j,
        callback: (v) => {
          d(v);
        }
      });
    });
  }
  function Y(s) {
    const o = [];
    return s && s.lods.forEach((d) => {
      o.push({
        levelValue: d.levelValue,
        resolution: d.resolution,
        scale: d.scale
      });
    }), o;
  }
  function Z(s) {
    const o = [];
    return Object.keys(s).forEach((d) => {
      o.push({
        key: d,
        value: s[d]
      });
    }), o;
  }
  function w(s) {
    s = s || [];
    const o = [];
    return s.forEach((d, v) => {
      o.push({
        index: v,
        value: d
      });
    }), o;
  }
  function L(s) {
    const o = [];
    return s.forEach((d) => {
      o.push({
        red: d.red,
        green: d.green,
        blue: d.blue,
        alpha: d.alpha
      });
    }), o;
  }
  async function z(s) {
    try {
      let o;
      typeof s == "string" ? o = s : o = JSON.stringify(s), navigator.clipboard && window.isSecureContext ? await navigator.clipboard.writeText(o) : ae(o), ue.success("内容已复制到剪切板中");
    } catch {
      ue.error("复制失败！");
    }
  }
  function ee(s) {
    return new c.SpatialReference(s).isGeographic ? "地理坐标系" : "投影坐标系";
  }
  function k(s) {
    const o = c.enum.ElevationMode;
    switch (s) {
      case o.OnTheGround:
      default:
        return "贴地形表面";
      case o.RelativeToGround:
        return "相对于地形表面";
      case o.AbsoluteHeight:
        return "绝对高度";
      case o.RelativeToScene:
        return "相对于场景";
      case o.OnTheScene:
        return "贴场景表面";
    }
  }
  function te(s) {
    const o = c.enum.LengthUnit;
    switch (s) {
      case o.meter:
      default:
        return "米";
      case o.kilometer:
        return "千米";
      case o.mile:
        return "英里";
    }
  }
  function le(s, o, d) {
    return s.formatFunction ? s.formatFunction(o, d) : o;
  }
  function B() {
    var s;
    if (a) {
      const o = (s = a.capabilities) == null ? void 0 : s.toJSON();
      G.labelUIConfig = se(o), G.collapseUIConfig = i(o);
    }
  }
  function W(s) {
    const o = {
      client: {
        cesium: [],
        leaflet: [],
        mapboxgl: []
      },
      server: {}
    }, d = s.client;
    return Object.keys(d).forEach((v) => {
      const p = d[v];
      Object.keys(p).forEach((x) => {
        const u = p[x].name, R = p[x];
        R.valueType.indexOf("Boolean") > -1 || R.valueType.indexOf("String") > -1 || R.valueType.indexOf("Number") > -1 ? u !== "tokenKey" && u !== "tokenValue" && u !== "tokenAttachType" && o.client[v].push(R) : (u === "activeScene" || u === "clippingArea" || u === "rasterFunction" || u === "activeLayer" || u === "originPoint") && (R.valueType = "String", o.client[v].push(R));
      });
    }), o;
  }
  function se(s) {
    const o = W(s), d = {}, v = ["url", "gdbp"];
    return o.client[O.engine].forEach((p) => {
      if (p.valueType.indexOf("String") > -1 || p.valueType.indexOf("Boolean") > -1 || p.valueType.indexOf("Number") > -1) {
        const x = {
          // 要显示属性的名称
          label: E[p.name] || p.description || p.name,
          // 显示类型
          type: F.label,
          // 如果有面板，则决定面板是否显示
          visible: !1,
          // 是否显示复制按钮
          showCopyIcon: v.indexOf(p.name) > -1,
          // 对文本进行处理，以满足显示要求，可选项
          formatFunction: void 0
        };
        switch (p.name) {
          case "type":
            x.formatFunction = (u) => ke(u);
            break;
          case "visible":
            x.formatFunction = (u) => u ? "显示" : "隐藏";
            break;
          case "minScale":
          case "maxScale":
            x.formatFunction = (u) => "1:" + u;
            break;
          case "activeScene":
            x.formatFunction = (u) => u.sceneName;
            break;
          case "clippingArea":
            x.formatFunction = (u) => u ? "已启用" : "未启用";
            break;
          case "renderMode":
            x.formatFunction = (u) => {
              switch (u) {
                case "tile":
                default:
                  return "瓦片平铺";
                case "image":
                  return "出一张图";
                case "client":
                  return "客户端渲染";
                case "server":
                  return "服务端渲染";
              }
            };
            break;
          case "isAntialiasing":
            x.formatFunction = (u) => u ? "已启用" : "未启用";
            break;
          case "replaceStyleURL":
            x.formatFunction = (u) => u ? "已启用" : "未启用";
            break;
          case "interpolation":
            x.formatFunction = (u) => {
              const R = c.enum.RasterInterpolationType;
              switch (u) {
                case R.nearestNeighbor:
                default:
                  return "最近邻插值";
                case R.bilinearInterpolation:
                  return "双线性插值";
              }
            };
            break;
          case "rasterFunction":
            x.formatFunction = (u) => u ? "已启用" : "未启用";
            break;
          case "tileSliceType":
            x.formatFunction = (u) => {
              const R = c.enum.TileSliceType;
              switch (u) {
                case R.wmts:
                default:
                  return "WMTS方式";
                case R.tms:
                  return "TMS方式";
              }
            };
            break;
          case "activeLayer":
            x.formatFunction = (u) => u.title;
            break;
          case "supportArc3":
            x.formatFunction = (u) => u ? "已启用" : "未启用";
            break;
          case "originPoint":
            x.formatFunction = (u) => "[ " + u.coordinates[0] + " , " + u.coordinates[0] + " ]";
            break;
          case "imageFormat":
            x.formatFunction = (u) => u.toUpperCase();
            break;
          case "imageWidth":
            x.formatFunction = (u, R) => u + " , " + R.imageHeight;
            break;
          case "imageMaxWidth":
            x.formatFunction = (u, R) => u + " , " + R.imageMaxHeight;
            break;
          case "imageTransparency":
            x.formatFunction = (u) => u ? "透明" : "不透明";
            break;
          case "requestVertexNormals":
            x.formatFunction = (u) => u ? "已启用" : "未启用";
            break;
        }
        d[p.name] = x;
      }
    }), d;
  }
  function i(s) {
    const o = {
      tokenValue: {
        // 要显示属性的名称
        label: E.token,
        // 显示类型
        type: F.token,
        // 如果有面板，则决定面板是否显示
        visible: !1
      },
      headers: {
        // 要显示属性的名称
        label: E.headers,
        // 显示类型
        type: F.headers,
        // 如果有面板，则决定面板是否显示
        visible: !1
      },
      subDomains: {
        // 要显示属性的名称
        label: E.subDomains,
        // 显示类型
        type: F.subDomains
      },
      bandIds: {
        // 要显示属性的名称
        label: E.bandIds,
        // 显示类型
        type: F.bandIds
      },
      serviceRasterInfo: {
        // 要显示属性的名称
        label: E.serviceRasterInfo,
        // 显示类型
        type: F.serviceRasterInfo
      }
    };
    return s.client[O.engine].forEach((d) => {
      switch (d.valueType) {
        case "ElevationInfo":
          o.elevationInfo = {
            // 要显示属性的名称
            label: E.elevationInfo,
            // 显示类型
            type: F.elevationInfo,
            // 对文本进行处理，以满足显示要求，可选项
            formatFunction: (v) => "1:" + v,
            // 如果有面板，则决定面板是否显示
            visible: !1
          };
          break;
        case "SpatialReference":
          o.spatialReference = {
            // 要显示属性的名称
            label: E.spatialReference,
            // 显示类型
            type: F.spatialReference,
            // 如果有面板，则决定面板是否显示
            visible: !1
          };
          break;
        case "Extent":
          o.extent = {
            // 要显示属性的名称
            label: E.extent,
            // 显示类型
            type: F.extent
          };
          break;
        case "TileInfo":
          o.tileInfo = {
            // 要显示属性的名称
            label: E.tileInfo,
            // 显示类型
            type: F.tileInfo,
            // 如果有面板，则决定面板是否显示
            visible: !1
          };
          break;
      }
    }), o;
  }
  function ae(s) {
    const o = document.createElement("textarea");
    o.value = s, o.style.top = "0", o.style.left = "0", o.style.position = "fixed", o.style.opacity = "0", document.body.appendChild(o), o.focus(), o.select(), document.execCommand("copy"), document.body.removeChild(o);
  }
  return {
    ...me(G),
    // 下面是计算属性
    showLayerSelect: U,
    // 下面是普通数据
    defined: Ce,
    layerTypes: H,
    sublayerTypes: M,
    tileInfoTableColumns: J,
    headersTableColumns: K,
    arrayColumns: q,
    colormapColumns: Q,
    // 下面是方法
    getTableDataSourceByTileInfo: Y,
    getTableDataSourceByHeaders: Z,
    getTableDataSourceByArray: w,
    getTableDataSourceByColormap: L,
    copyValue: z,
    getSpatialReferenceType: ee,
    getElevationInfoMode: k,
    getElevationInfoUnit: te,
    getLabelTitle: le
  };
}, Re = { key: 1 }, De = ["title"], Me = ["title"], Ve = ["title"], Ee = ["title"], Ge = ["title"], Te = ["title"], Ae = ["title"], Ne = ["title"], Oe = ["title"], Ue = ["title"], ze = ["title"], Be = ["title"], We = ["title"], Pe = ["title"], he = ["title"], je = /* @__PURE__ */ be({
  name: "MapgisLayerInfo",
  __name: "layer-info",
  props: Se,
  emits: $e,
  setup(n, { emit: ie }) {
    const h = n, j = ie, c = xe("layer-info"), O = pe(), {
      layerInfo: a,
      checkedLayerId: G,
      // 下面是计算属性
      showLayerSelect: H,
      // 下面是普通数据
      defined: M,
      layerTypes: J,
      sublayerTypes: K,
      tileInfoTableColumns: q,
      headersTableColumns: Q,
      arrayColumns: U,
      colormapColumns: X,
      labelUIConfig: Y,
      collapseUIConfig: Z,
      // 下面是方法
      getTableDataSourceByTileInfo: w,
      getTableDataSourceByHeaders: L,
      getTableDataSourceByArray: z,
      getTableDataSourceByColormap: ee,
      copyValue: k,
      getSpatialReferenceType: te,
      getElevationInfoMode: le,
      getElevationInfoUnit: B,
      getLabelTitle: W
    } = Fe(h, j, O);
    return (se, i) => {
      const ae = T("mapgis-layer-select"), s = T("a-form-item"), o = T("mapgis-ui-iconfont"), d = T("a-menu-item"), v = T("a-menu"), p = T("a-dropdown"), x = T("a-table"), u = T("a-collapse-panel"), R = T("a-collapse"), ce = T("mapgis-ui-setting-form");
      return y(), N("div", {
        class: f([e(c).b()])
      }, [
        l(ce, {
          layout: "horizontal",
          itemLayout: "grid",
          labelCol: { span: 10 },
          size: "default",
          class: f(e(c).e("form"))
        }, {
          default: t(() => [
            e(H) ? (y(), I(s, {
              key: 0,
              label: "图层"
            }, {
              default: t(() => [
                l(ae, {
                  ref_key: "layerSelectRef",
                  ref: O,
                  value: e(G),
                  "onUpdate:value": i[0] || (i[0] = (S) => _e(G) ? G.value = S : null),
                  layerTypes: e(J),
                  sublayerTypes: e(K),
                  multiple: !1,
                  treeDefaultExpandAll: ""
                }, null, 8, ["value", "layerTypes", "sublayerTypes"])
              ]),
              _: 1
            })) : C("", !0),
            e(a) ? (y(), N("div", Re, [
              (y(!0), N(P, null, re(e(Y), (S, r) => (y(), N(P, { key: r }, [
                S.type === e(F).label && e(M)(e(a)[r]) ? (y(), I(s, {
                  key: r,
                  label: S.label
                }, {
                  default: t(() => [
                    b("div", {
                      title: e(W)(S, e(a)[r], e(a))
                    }, [
                      l(p, { trigger: ["contextmenu"] }, {
                        overlay: t(() => [
                          l(v, null, {
                            default: t(() => [
                              l(d, {
                                key: "1",
                                onClick: (g) => e(k)(e(a)[r])
                              }, {
                                default: t(() => [...i[5] || (i[5] = [
                                  $("复制内容", -1)
                                ])]),
                                _: 1
                              }, 8, ["onClick"])
                            ]),
                            _: 2
                          }, 1024)
                        ]),
                        default: t(() => [
                          b("div", {
                            class: f(e(c).e("item_label")),
                            style: ve({ "max-width": S.showCopyIcon ? "110px" : "144px" })
                          }, [
                            $(_(e(W)(S, e(a)[r], e(a))) + " ", 1),
                            S.showCopyIcon ? (y(), I(o, {
                              key: 0,
                              type: "mapgis-daochu",
                              class: f(e(c).e("copy_icon")),
                              onClick: ne((g) => e(k)(e(a)[r]), ["stop"])
                            }, null, 8, ["class", "onClick"])) : C("", !0)
                          ], 6)
                        ]),
                        _: 2
                      }, 1024)
                    ], 8, De)
                  ]),
                  _: 2
                }, 1032, ["label"])) : C("", !0)
              ], 64))), 128)),
              l(R, { expandIconPosition: "end" }, {
                default: t(() => [
                  (y(!0), N(P, null, re(e(Z), (S, r) => (y(), N(P, { key: r }, [
                    S.type === e(F).headers && e(M)(e(a)[r]) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(x, {
                          bordered: "",
                          size: "small",
                          pagination: !1,
                          dataSource: e(L)(e(a)[r]),
                          columns: e(Q)
                        }, {
                          bodyCell: t(({ column: g, record: m }) => [
                            g.key === "key" ? (y(), I(p, {
                              key: 0,
                              trigger: ["contextmenu"]
                            }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (V) => e(k)(m.key)
                                    }, {
                                      default: t(() => [...i[6] || (i[6] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  title: m.key,
                                  class: f(e(c).e("table_item_text"))
                                }, _(m.key), 11, Me)
                              ]),
                              _: 2
                            }, 1024)) : C("", !0),
                            g.key === "value" ? (y(), I(p, {
                              key: 1,
                              trigger: ["contextmenu"]
                            }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (V) => e(k)(m.value)
                                    }, {
                                      default: t(() => [...i[7] || (i[7] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  title: m.value,
                                  class: f(e(c).e("table_item_text"))
                                }, _(m.value), 11, Ve)
                              ]),
                              _: 2
                            }, 1024)) : C("", !0)
                          ]),
                          _: 2
                        }, 1032, ["dataSource", "columns"])
                      ]),
                      _: 2
                    }, 1032, ["header"])) : C("", !0),
                    S.type === e(F).tileInfo && e(M)(e(a)[r]) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(s, { label: "瓦片大小" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a)[r].size[0] + "*" + e(a)[r].size[1]), 3)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "每英寸点数" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a)[r].dpi), 3)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "图片格式" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a)[r].format), 3)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "裁图原点" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _("[" + String(e(a)[r].origin.coordinates) + "]"), 3)
                          ]),
                          _: 2
                        }, 1024),
                        b("div", null, [
                          b("div", {
                            class: f(e(c).e("lods"))
                          }, [
                            i[8] || (i[8] = $(" 级别信息 ", -1)),
                            l(o, {
                              type: "mapgis-daochu",
                              class: f(e(c).e("daochu_icon")),
                              onClick: ne((g) => e(k)(e(a)[r].lods), ["stop"])
                            }, null, 8, ["class", "onClick"])
                          ], 2),
                          l(x, {
                            bordered: "",
                            size: "small",
                            pagination: !1,
                            dataSource: e(w)(e(a)[r]),
                            columns: e(q)
                          }, {
                            bodyCell: t(({ column: g, record: m }) => [
                              g.key === "levelValue" ? (y(), I(p, {
                                key: 0,
                                trigger: ["contextmenu"]
                              }, {
                                overlay: t(() => [
                                  l(v, null, {
                                    default: t(() => [
                                      l(d, {
                                        key: "1",
                                        onClick: (V) => e(k)(m.levelValue)
                                      }, {
                                        default: t(() => [...i[9] || (i[9] = [
                                          $("复制内容", -1)
                                        ])]),
                                        _: 1
                                      }, 8, ["onClick"])
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                default: t(() => [
                                  b("div", {
                                    title: m.levelValue,
                                    class: f(e(c).e("table_item_text"))
                                  }, _(m.levelValue), 11, Ee)
                                ]),
                                _: 2
                              }, 1024)) : C("", !0),
                              g.key === "resolution" ? (y(), I(p, {
                                key: 1,
                                trigger: ["contextmenu"]
                              }, {
                                overlay: t(() => [
                                  l(v, null, {
                                    default: t(() => [
                                      l(d, {
                                        key: "1",
                                        onClick: (V) => e(k)(m.resolution)
                                      }, {
                                        default: t(() => [...i[10] || (i[10] = [
                                          $("复制内容", -1)
                                        ])]),
                                        _: 1
                                      }, 8, ["onClick"])
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                default: t(() => [
                                  b("div", {
                                    title: m.resolution,
                                    class: f(e(c).e("table_item_text"))
                                  }, _(m.resolution), 11, Ge)
                                ]),
                                _: 2
                              }, 1024)) : C("", !0),
                              g.key === "scale" ? (y(), I(p, {
                                key: 2,
                                trigger: ["contextmenu"]
                              }, {
                                overlay: t(() => [
                                  l(v, null, {
                                    default: t(() => [
                                      l(d, {
                                        key: "1",
                                        onClick: (V) => e(k)(m.scale)
                                      }, {
                                        default: t(() => [...i[11] || (i[11] = [
                                          $("复制内容", -1)
                                        ])]),
                                        _: 1
                                      }, 8, ["onClick"])
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                default: t(() => [
                                  b("div", {
                                    title: m.scale,
                                    class: f(e(c).e("table_item_text"))
                                  }, _(m.scale), 11, Te)
                                ]),
                                _: 2
                              }, 1024)) : C("", !0)
                            ]),
                            _: 2
                          }, 1032, ["dataSource", "columns"])
                        ])
                      ]),
                      _: 2
                    }, 1032, ["header"])) : C("", !0),
                    S.type === e(F).spatialReference && e(M)(e(a)[r]) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(s, { label: "类型" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(te)(e(a)[r])), 3)
                          ]),
                          _: 2
                        }, 1024),
                        e(M)(e(a)[r].wkid) ? (y(), I(s, {
                          key: 0,
                          label: "WKID"
                        }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (g) => e(k)(e(a)[r].wkid)
                                    }, {
                                      default: t(() => [...i[12] || (i[12] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(a)[r].wkid), 3)
                              ]),
                              _: 2
                            }, 1024)
                          ]),
                          _: 2
                        }, 1024)) : C("", !0),
                        e(M)(e(a)[r].wkt) ? (y(), I(s, {
                          key: 1,
                          label: "WKT"
                        }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (g) => e(k)(e(a)[r].wkt)
                                    }, {
                                      default: t(() => [...i[13] || (i[13] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label")),
                                  title: e(a)[r].wkt
                                }, _(e(a)[r].wkt), 11, Ae)
                              ]),
                              _: 2
                            }, 1024)
                          ]),
                          _: 2
                        }, 1024)) : C("", !0)
                      ]),
                      _: 2
                    }, 1032, ["header"])) : C("", !0),
                    S.type === e(F).extent && e(M)(e(a)[r]) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(s, { label: "xmin" }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (g) => e(k)(e(a)[r].wkt)
                                    }, {
                                      default: t(() => [...i[14] || (i[14] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(a)[r].xmin), 3)
                              ]),
                              _: 2
                            }, 1024)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "ymin" }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (g) => e(k)(e(a)[r].wkt)
                                    }, {
                                      default: t(() => [...i[15] || (i[15] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(a)[r].ymin), 3)
                              ]),
                              _: 2
                            }, 1024)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "xmax" }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (g) => e(k)(e(a)[r].wkt)
                                    }, {
                                      default: t(() => [...i[16] || (i[16] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(a)[r].xmax), 3)
                              ]),
                              _: 2
                            }, 1024)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "ymax" }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (g) => e(k)(e(a)[r].wkt)
                                    }, {
                                      default: t(() => [...i[17] || (i[17] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(a)[r].ymax), 3)
                              ]),
                              _: 2
                            }, 1024)
                          ]),
                          _: 2
                        }, 1024)
                      ]),
                      _: 2
                    }, 1032, ["header"])) : C("", !0),
                    S.type === e(F).subDomains && e(M)(e(a)[r]) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(x, {
                          bordered: "",
                          size: "small",
                          pagination: !1,
                          dataSource: e(z)(e(a)[r]),
                          columns: e(U)
                        }, {
                          bodyCell: t(({ column: g, record: m }) => [
                            g.key === "index" ? (y(), I(p, {
                              key: 0,
                              trigger: ["contextmenu"]
                            }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (V) => e(k)(m.index)
                                    }, {
                                      default: t(() => [...i[18] || (i[18] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  title: m.index,
                                  class: f(e(c).e("table_item_text"))
                                }, _(m.index), 11, Ne)
                              ]),
                              _: 2
                            }, 1024)) : C("", !0),
                            g.key === "subDomain" ? (y(), I(p, {
                              key: 1,
                              trigger: ["contextmenu"]
                            }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (V) => e(k)(m.subDomain)
                                    }, {
                                      default: t(() => [...i[19] || (i[19] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  title: m.subDomain,
                                  class: f(e(c).e("table_item_text"))
                                }, _(m.subDomain), 11, Oe)
                              ]),
                              _: 2
                            }, 1024)) : C("", !0)
                          ]),
                          _: 2
                        }, 1032, ["dataSource", "columns"])
                      ]),
                      _: 2
                    }, 1032, ["header"])) : C("", !0),
                    S.type === e(F).bandIds && e(M)(e(a)[r]) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(x, {
                          bordered: "",
                          size: "small",
                          pagination: !1,
                          dataSource: e(z)(e(a)[r]),
                          columns: e(U)
                        }, {
                          bodyCell: t(({ column: g, record: m }) => [
                            g.key === "index" ? (y(), I(p, {
                              key: 0,
                              trigger: ["contextmenu"]
                            }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (V) => e(k)(m.index)
                                    }, {
                                      default: t(() => [...i[20] || (i[20] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  title: m.index,
                                  class: f(e(c).e("table_item_text"))
                                }, _(m.index), 11, Ue)
                              ]),
                              _: 2
                            }, 1024)) : C("", !0),
                            g.key === "value" ? (y(), I(p, {
                              key: 1,
                              trigger: ["contextmenu"]
                            }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: (V) => e(k)(m.value)
                                    }, {
                                      default: t(() => [...i[21] || (i[21] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    }, 8, ["onClick"])
                                  ]),
                                  _: 2
                                }, 1024)
                              ]),
                              default: t(() => [
                                b("div", {
                                  title: m.value,
                                  class: f(e(c).e("table_item_text"))
                                }, _(m.value), 11, ze)
                              ]),
                              _: 2
                            }, 1024)) : C("", !0)
                          ]),
                          _: 2
                        }, 1032, ["dataSource", "columns"])
                      ]),
                      _: 2
                    }, 1032, ["header"])) : C("", !0),
                    S.type === e(F).serviceRasterInfo && e(M)(e(a)[r]) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(s, { label: "波段数量" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a)[r].bandCount), 3)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "像素类型" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a)[r].pixelType), 3)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "栅格宽高" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a)[r].width + ", " + e(a)[r].height), 3)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "栅格像素大小" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _("[ " + e(a)[r].pixelSize.coordinates[0] + " , " + e(a)[r].pixelSize.coordinates[1] + " ]"), 3)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "直方图" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a)[r].histograms ? "已启用" : "未启用"), 3)
                          ]),
                          _: 2
                        }, 1024),
                        l(s, { label: "影像服务统计" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a)[r].statistics ? "已启用" : "未启用"), 3)
                          ]),
                          _: 2
                        }, 1024),
                        b("div", null, [
                          b("div", {
                            class: f(e(c).e("lods"))
                          }, [
                            i[22] || (i[22] = $(" 颜色色表 ", -1)),
                            l(o, {
                              type: "mapgis-daochu",
                              class: f(e(c).e("daochu_icon")),
                              onClick: ne((g) => e(k)(e(a)[r].colormap), ["stop"])
                            }, null, 8, ["class", "onClick"])
                          ], 2),
                          l(x, {
                            bordered: "",
                            size: "small",
                            dataSource: e(ee)(e(a)[r].colormap),
                            columns: e(X)
                          }, {
                            bodyCell: t(({ column: g, record: m }) => [
                              g.key === "red" ? (y(), I(p, {
                                key: 0,
                                trigger: ["contextmenu"]
                              }, {
                                overlay: t(() => [
                                  l(v, null, {
                                    default: t(() => [
                                      l(d, {
                                        key: "1",
                                        onClick: (V) => e(k)(m.red)
                                      }, {
                                        default: t(() => [...i[23] || (i[23] = [
                                          $("复制内容", -1)
                                        ])]),
                                        _: 1
                                      }, 8, ["onClick"])
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                default: t(() => [
                                  b("div", {
                                    title: m.red,
                                    class: f(e(c).e("table_item_text"))
                                  }, _(m.red), 11, Be)
                                ]),
                                _: 2
                              }, 1024)) : C("", !0),
                              g.key === "green" ? (y(), I(p, {
                                key: 1,
                                trigger: ["contextmenu"]
                              }, {
                                overlay: t(() => [
                                  l(v, null, {
                                    default: t(() => [
                                      l(d, {
                                        key: "1",
                                        onClick: (V) => e(k)(m.green)
                                      }, {
                                        default: t(() => [...i[24] || (i[24] = [
                                          $("复制内容", -1)
                                        ])]),
                                        _: 1
                                      }, 8, ["onClick"])
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                default: t(() => [
                                  b("div", {
                                    title: m.green,
                                    class: f(e(c).e("table_item_text"))
                                  }, _(m.green), 11, We)
                                ]),
                                _: 2
                              }, 1024)) : C("", !0),
                              g.key === "blue" ? (y(), I(p, {
                                key: 2,
                                trigger: ["contextmenu"]
                              }, {
                                overlay: t(() => [
                                  l(v, null, {
                                    default: t(() => [
                                      l(d, {
                                        key: "1",
                                        onClick: (V) => e(k)(m.blue)
                                      }, {
                                        default: t(() => [...i[25] || (i[25] = [
                                          $("复制内容", -1)
                                        ])]),
                                        _: 1
                                      }, 8, ["onClick"])
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                default: t(() => [
                                  b("div", {
                                    title: m.blue,
                                    class: f(e(c).e("table_item_text"))
                                  }, _(m.blue), 11, Pe)
                                ]),
                                _: 2
                              }, 1024)) : C("", !0),
                              g.key === "alpha" ? (y(), I(p, {
                                key: 3,
                                trigger: ["contextmenu"]
                              }, {
                                overlay: t(() => [
                                  l(v, null, {
                                    default: t(() => [
                                      l(d, {
                                        key: "1",
                                        onClick: (V) => e(k)(m.alpha)
                                      }, {
                                        default: t(() => [...i[26] || (i[26] = [
                                          $("复制内容", -1)
                                        ])]),
                                        _: 1
                                      }, 8, ["onClick"])
                                    ]),
                                    _: 2
                                  }, 1024)
                                ]),
                                default: t(() => [
                                  b("div", {
                                    title: m.alpha,
                                    class: f(e(c).e("table_item_text"))
                                  }, _(m.alpha), 11, he)
                                ]),
                                _: 2
                              }, 1024)) : C("", !0)
                            ]),
                            _: 2
                          }, 1032, ["dataSource", "columns"])
                        ])
                      ]),
                      _: 2
                    }, 1032, ["header"])) : C("", !0),
                    S.type === e(F).token && e(M)(e(a).tokenValue) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(s, { label: "Token名" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a).tokenKey), 3)
                          ]),
                          _: 1
                        }),
                        l(s, { label: "Token值" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a).tokenValue), 3)
                          ]),
                          _: 1
                        }),
                        l(s, { label: "附加方式" }, {
                          default: t(() => [
                            b("div", {
                              class: f(e(c).e("item_label"))
                            }, _(e(a).tokenAttachType), 3)
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["header"])) : C("", !0),
                    S.type === e(F).elevationInfo && e(M)(e(a).elevationInfo) ? (y(), I(u, {
                      key: r,
                      header: `${S.label}`
                    }, {
                      default: t(() => [
                        l(s, { label: "模式" }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: i[1] || (i[1] = (g) => e(k)(e(a).elevationInfo.mode))
                                    }, {
                                      default: t(() => [...i[27] || (i[27] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    })
                                  ]),
                                  _: 1
                                })
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(le)(e(a).elevationInfo.mode)), 3)
                              ]),
                              _: 1
                            })
                          ]),
                          _: 1
                        }),
                        l(s, { label: "高程偏移" }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: i[2] || (i[2] = (g) => e(k)(e(a).elevationInfo.offset + " 米"))
                                    }, {
                                      default: t(() => [...i[28] || (i[28] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    })
                                  ]),
                                  _: 1
                                })
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(a).elevationInfo.offset + " 米"), 3)
                              ]),
                              _: 1
                            })
                          ]),
                          _: 1
                        }),
                        e(M)(e(a).elevationInfo.featureExpressionInfo) ? (y(), I(s, {
                          key: 0,
                          label: "高度表达式"
                        }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: i[3] || (i[3] = (g) => e(k)(e(a).elevationInfo.featureExpressionInfo.expression))
                                    }, {
                                      default: t(() => [...i[29] || (i[29] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    })
                                  ]),
                                  _: 1
                                })
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(a).elevationInfo.featureExpressionInfo.expression), 3)
                              ]),
                              _: 1
                            })
                          ]),
                          _: 1
                        })) : C("", !0),
                        l(s, { label: "单位" }, {
                          default: t(() => [
                            l(p, { trigger: ["contextmenu"] }, {
                              overlay: t(() => [
                                l(v, null, {
                                  default: t(() => [
                                    l(d, {
                                      key: "1",
                                      onClick: i[4] || (i[4] = (g) => e(k)(e(a).elevationInfo.unit))
                                    }, {
                                      default: t(() => [...i[30] || (i[30] = [
                                        $("复制内容", -1)
                                      ])]),
                                      _: 1
                                    })
                                  ]),
                                  _: 1
                                })
                              ]),
                              default: t(() => [
                                b("div", {
                                  class: f(e(c).e("item_label"))
                                }, _(e(B)(e(a).elevationInfo.unit)), 3)
                              ]),
                              _: 1
                            })
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    }, 8, ["header"])) : C("", !0)
                  ], 64))), 128))
                ]),
                _: 1
              })
            ])) : C("", !0)
          ]),
          _: 1
        }, 8, ["class"])
      ], 2);
    };
  }
}), Xe = /* @__PURE__ */ Ie(je, [["__scopeId", "data-v-2ca08845"]]);
export {
  Xe as L,
  E as a,
  F as b,
  Se as c,
  $e as l,
  Fe as u
};
