import { reactive as sa, computed as Ze, watch as na, toRefs as da, defineComponent as ra, ref as pa, resolveComponent as O, openBlock as d, createElementBlock as C, normalizeClass as h, unref as e, createVNode as i, withCtx as u, createBlock as v, isRef as ta, createElementVNode as P, toDisplayString as G, Fragment as M, renderList as z, createCommentVNode as I, createTextVNode as _, normalizeStyle as Te, withDirectives as va, vShow as fa } from "vue";
import { u as ya, g as ma, b as Ia } from "./layer-select-Ba4IEiWY.js";
import { LayerType as b, SubLayerType as E, LengthUnit as Ae, ElevationMode as se } from "@mapgis/webclient-common";
import { _ as ga } from "./utils-B4smQbM-.js";
var y = /* @__PURE__ */ ((o) => (o.label = "label", o.select = "select", o.tileInfo = "tileInfo", o.spatialReference = "spatialReference", o.token = "token", o.headers = "headers", o.elevationInfo = "elevationInfo", o.extent = "extent", o.subDomains = "subDomains", o.bandIds = "bandIds", o.serviceRasterInfo = "serviceRasterInfo", o.imageSize = "imageSize", o.boolean = "boolean", o.replaceStyleURL = "replaceStyleURL", o.imageMaxSize = "imageMaxSize", o.opacity = "opacity", o.scale = "scale", o.outFields = "outFields", o.extendProps = "extendProps", o.extensionOptions = "extensionOptions", o.activeLayer = "activeLayer", o.modelSetting = "modelSetting", o.button = "button", o.tileDisplayStrategy = "tileDisplayStrategy", o))(y || {}), D = /* @__PURE__ */ ((o) => (o.id = "图层ID", o.title = "图层名称", o.description = "图层描述", o.copyright = "版权信息", o.type = "图层类型", o.visible = "图层显隐", o.opacity = "透明度", o.scale = "可见比例尺", o.url = "服务基地址", o.httpMethod = "请求方式", o.headers = "请求头", o.tileInfo = "瓦片信息", o.clippingArea = "客户端裁剪", o.spatialReference = "参照系", o.token = "Token设置", o.elevationInfo = "高程模式", o.scene = "激活的场景", o.activeLayer = "激活的图层", o.gdbp = "GDBP数据源", o.renderMode = "渲染模式", o.imageFormat = "图片格式", o.imageSize = "图片宽高", o.imageMaxSize = "图片最大宽高", o.imageTransparency = "图片背景透明", o.isAntialiasing = "图片抗锯齿", o.extent = "图层范围", o.tileSliceType = "瓦片切片方式", o.subDomains = "子域名", o.replaceStyleURL = "基地址替换", o.bandIds = "波段号", o.interpolation = "重采样方式", o.rasterFunction = "数据渲染规则", o.serviceRasterInfo = "栅格信息", o.tileMatrixSetId = "瓦片集ID", o.supportArc3 = "解析弧段", o.maxFrameSize = "最大网格大小", o.originPoint = "网格划分原点", o.beginLevel = "开始级别", o.endLevel = "结束级别", o.layerIndex = "图层索引", o.clientId = "客户端ID", o.requestVertexNormals = "地形法向量", o.outFields = "返回字段", o.extendProps = "额外属性", o.extensionOptions = "额外初始化参数", o.modelSetting = "模型设置", o.modelTransform = "模型变换", o.tileDisplayStrategy = "瓦片显示策略", o.fillClip = "剖切封边", o))(D || {});
const Sa = {
  /**
   * @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
  }
}, ca = {}, ba = (o, ea, me) => {
  const { map: Ie, zondy: x, viewState: de } = ya(), n = sa({
    // 图层信息,这里先定义为undefined，不然_init方法中报类型错误
    layerInfo: void 0,
    // 模型设置图层标题对
    layerTitlePair: { title: "", tip: "" },
    // 子域名数据源
    subDomainsDataSource: [],
    // 波段号数据源
    bandIdsDataSource: [],
    // lods数据源
    lodsDataSource: [],
    // 请求头数据源
    headersDataSource: [],
    // 返回字段数据源
    outFieldsDataSource: [],
    // 扩展属性(非引擎)数据源
    extendPropsDataSource: [],
    // 扩展属性(引擎)数据源
    extensionOptionsDataSource: [],
    // 当前选中图层的id
    checkedLayerId: "",
    // 图层显示级数范围
    showLevelRange: [0, 22],
    // 文本类型的配置
    labelUIConfig: {},
    // 布尔类型的配置
    booleanUIConfig: {},
    // 下拉框类型的配置
    selectUIConfig: {},
    // 当前激活图层的配置
    activeLayerUIConfig: {},
    // 透明度类型的配置
    opacityUIConfig: {},
    // 折叠面板类型的配置
    collapseUIConfig: {}
  });
  n.layerInfo = {};
  let g;
  const ge = [
    b.ArcGISMapImage,
    b.ArcGISTile,
    b.ArcGISVectorTile,
    b.IGSFeature,
    b.GeoJSON,
    b.IGSImage,
    b.IGSImageTile,
    b.IGSMapImage,
    b.IGSTile,
    b.IGSVectorTile,
    b.WMS,
    b.WMTS,
    b.WFS,
    b.webTile,
    b.IGSScene,
    b.M3DModelCache,
    b.cesium3DTilesModelCache
  ], Y = [
    E.IGSMapImageSub,
    E.IGSVectorTileSub,
    E.IGSSceneSub,
    E.IGSSceneSubMapRef,
    E.IGSSceneSubM3DCache,
    E.IGSSceneSubTerrian,
    E.IGSSceneSubLabel,
    E.ArcGISMapImageSub,
    E.ArcGISVectorTileSub,
    E.WMSSub
  ], Se = [
    {
      key: "千米",
      value: Ae.kilometer
    },
    {
      key: "英里",
      value: Ae.mile
    },
    {
      key: "米",
      value: Ae.meter
    }
  ], ce = [
    {
      key: "贴地形表面",
      value: se.OnTheGround
    },
    {
      key: "相对于地形表面",
      value: se.RelativeToGround
    },
    {
      key: "相对于场景",
      value: se.RelativeToScene
    },
    {
      key: "贴场景表面",
      value: se.OnTheScene
    },
    {
      key: "绝对高度",
      value: se.AbsoluteHeight
    }
  ], be = [
    {
      key: "超出层级后拉伸",
      value: "stretch"
    },
    {
      key: "超出层级后隐藏",
      value: "hide"
    }
  ], xe = [
    {
      title: "层级",
      dataIndex: "index",
      width: "25%",
      key: "index"
    },
    {
      title: "层级值",
      dataIndex: "levelValue",
      width: "25%",
      key: "levelValue"
    },
    {
      title: "比例尺",
      dataIndex: "scale",
      width: "50%",
      key: "scale"
    }
  ], Q = [
    {
      title: "序号",
      dataIndex: "index",
      key: "index",
      align: "center",
      width: "20%"
    },
    {
      title: "子域名",
      dataIndex: "subDomain",
      key: "subDomain",
      align: "center",
      width: "60%"
    },
    {
      title: "操作",
      dataIndex: "action",
      key: "action",
      align: "center",
      width: "20%"
    }
  ], ke = [
    {
      title: "序号",
      dataIndex: "index",
      key: "index",
      align: "center",
      width: "20%"
    },
    {
      title: "波段号",
      dataIndex: "bandId",
      key: "bandId",
      align: "center",
      width: "60%"
    },
    {
      title: "操作",
      dataIndex: "action",
      key: "action",
      align: "center",
      width: "20%"
    }
  ], De = [
    {
      title: "层级",
      dataIndex: "levelValue",
      key: "levelValue",
      align: "center",
      width: "20%"
    },
    {
      title: "分辨率",
      dataIndex: "resolution",
      key: "resolution",
      align: "center",
      width: "60%"
    },
    {
      title: "操作",
      dataIndex: "action",
      key: "action",
      align: "center",
      width: "20%"
    }
  ], Ce = [
    {
      title: "名称",
      dataIndex: "name",
      key: "name",
      align: "center",
      width: "40%"
    },
    {
      title: "值",
      dataIndex: "value",
      key: "value",
      align: "center",
      width: "40%"
    },
    {
      title: "操作",
      dataIndex: "action",
      key: "action",
      align: "center",
      width: "20%"
    }
  ], he = [
    {
      title: "返回字段名",
      dataIndex: "field",
      key: "field",
      align: "center",
      width: "80%"
    },
    {
      title: "操作",
      dataIndex: "action",
      key: "action",
      align: "center",
      width: "20%"
    }
  ], Ue = [
    {
      title: "属性名",
      dataIndex: "name",
      key: "name",
      align: "center",
      width: "40%"
    },
    {
      title: "属性值",
      dataIndex: "value",
      key: "value",
      align: "center",
      width: "40%"
    },
    {
      title: "操作",
      dataIndex: "action",
      key: "action",
      align: "center",
      width: "20%"
    }
  ], $e = [
    {
      title: "属性名",
      dataIndex: "name",
      key: "name",
      align: "center",
      width: "40%"
    },
    {
      title: "属性值",
      dataIndex: "value",
      key: "value",
      align: "center",
      width: "40%"
    },
    {
      title: "操作",
      dataIndex: "action",
      key: "action",
      align: "center",
      width: "20%"
    }
  ], Z = {
    httpMethod: {
      // 要显示属性的名称
      label: D.httpMethod,
      // 显示类型
      type: y.select,
      // 要显示的字段名
      field: "httpMethod",
      // 对下拉框内容进行处理，以满足显示要求
      formatFunction: () => {
        const t = x.enum.FetchMethod;
        return [
          {
            key: "GET请求",
            value: t.get
          },
          {
            key: "POST请求",
            value: t.post
          }
        ];
      }
    },
    renderMode: {
      // 要显示属性的名称
      label: D.renderMode,
      // 显示类型
      type: y.select,
      // 要显示的字段名
      field: "renderMode",
      // 对下拉框内容进行处理，以满足显示要求
      formatFunction: (t) => {
        const s = x.enum.LayerType;
        return t === s.igsImage ? [
          {
            key: "客户端渲染",
            value: "client"
          },
          {
            key: "服务端渲染",
            value: "server"
          }
        ] : [
          {
            key: "出一张图",
            value: "image"
          },
          {
            key: "瓦片平铺",
            value: "tile"
          }
        ];
      }
    },
    imageFormat: {
      // 要显示属性的名称
      label: D.imageFormat,
      // 显示类型
      type: y.select,
      // 要显示的字段名
      field: "imageFormat",
      // 对下拉框内容进行处理，以满足显示要求
      formatFunction: () => re.value
    },
    tileSliceType: {
      // 要显示属性的名称
      label: D.tileSliceType,
      // 显示类型
      type: y.select,
      // 要显示的字段名
      field: "tileSliceType",
      // 对下拉框内容进行处理，以满足显示要求
      formatFunction: () => [
        {
          key: "WMTS方式",
          value: "wmts"
        },
        {
          key: "TMS方式",
          value: "tms"
        }
      ]
    },
    tileMatrixSetId: {
      // 要显示属性的名称
      label: D.tileMatrixSetId,
      // 显示类型
      type: y.select,
      // 要显示的字段名
      field: "tileMatrixSetId",
      // 要获取数据的字段名
      dateField: "tileMatrixSets",
      // 对下拉框内容进行处理，以满足显示要求
      formatFunction: (t) => {
        const s = [];
        return t && t.forEach((p) => {
          s.push({
            key: p.id,
            value: p.id
          });
        }), s;
      }
    },
    interpolation: {
      // 要显示属性的名称
      label: D.interpolation,
      // 显示类型
      type: y.select,
      // 要显示的字段名
      field: "interpolation",
      // 对下拉框内容进行处理，以满足显示要求
      // todo: 更新RasterInterpolationType枚举
      formatFunction: () => [
        {
          key: "最近邻插值",
          value: "NearestNeighbor"
        },
        {
          key: "双线性插值",
          value: "BilinearInterpolation"
        }
      ]
    }
  }, T = {
    activeLayer: {
      // 要显示属性的名称
      label: D.activeLayer,
      // 显示类型
      type: y.activeLayer,
      // 对下拉框内容进行处理，以满足显示要求
      formatFunction: (t) => {
        const s = [];
        return t.sublayers.forEach((p) => {
          s.push({
            key: p.title,
            value: p.title
          });
        }), s;
      }
    }
  }, A = {
    opacity: {
      // 要显示属性的名称
      label: D.opacity,
      // 显示类型
      type: y.opacity
    }
  }, ee = {
    scale: {
      // 要显示属性的名称
      label: D.scale,
      // 显示类型
      type: y.scale
    },
    token: {
      // 要显示属性的名称
      label: D.token,
      // 显示类型
      type: y.token
    },
    headers: {
      // 要显示属性的名称
      label: D.headers,
      // 显示类型
      type: y.headers
    },
    outFields: {
      // 要显示属性的名称
      label: D.outFields,
      // 显示类型
      type: y.outFields
    },
    elevationInfo: {
      // 要显示属性的名称
      label: D.elevationInfo,
      // 显示类型
      type: y.elevationInfo
    },
    imageSize: {
      // 要显示属性的名称
      label: D.imageSize,
      // 显示类型
      type: y.imageSize
    },
    imageMaxSize: {
      // 要显示属性的名称
      label: D.imageMaxSize,
      // 显示类型
      type: y.imageMaxSize
    },
    extent: {
      // 要显示属性的名称
      label: D.extent,
      // 显示类型
      type: y.extent
    },
    tileDisplayStrategy: {
      // 要显示属性的名称
      label: D.tileDisplayStrategy,
      // 显示类型
      type: y.tileDisplayStrategy
    },
    tileInfo: {
      // 要显示属性的名称
      label: D.tileInfo,
      // 显示类型
      type: y.tileInfo
    },
    subDomains: {
      // 要显示属性的名称
      label: D.subDomains,
      // 显示类型
      type: y.subDomains
    },
    bandIds: {
      // 要显示属性的名称
      label: D.bandIds,
      // 显示类型
      type: y.bandIds
    },
    replaceStyleURL: {
      // 要显示属性的名称
      label: D.replaceStyleURL,
      // 显示类型
      type: y.replaceStyleURL
    },
    extendProps: {
      // 要显示属性的名称
      label: D.extendProps,
      // 显示类型
      type: y.extendProps
    },
    extensionOptions: {
      // 要显示属性的名称
      label: D.extensionOptions,
      // 显示类型
      type: y.extensionOptions
    }
  };
  function L(t) {
    const { capability: s = {}, type: p, defaultUIConfig: R = {}, excludeConfigs: a = [] } = t, N = {};
    return Object.keys(s).forEach((f) => {
      const U = s[f][de.engine];
      U && U.forEach((k) => {
        if (k.name === "tileMatrixSetId" && (k.writable = !0), k.writable) {
          let W = null;
          if (k.valueType === "String" && p === "label" || k.valueType === "Boolean" && p === "boolean") {
            let ue = !1;
            for (let B = 0; B < a.length; B++)
              a[B][k.name] && (ue = !0);
            ue || (W = {
              // 要显示属性的名称
              label: D[k.name] || k.description || k.name,
              // 显示类型
              type: y[p],
              // 要显示的字段名
              field: k.name,
              // 数据处理函数
              formatFunction: null
            }, k.name === "fillClip" && (W.description = "该功能要求模型缓存中每个图元(Primitive)都是封闭的几何体，且构成该几何体的面的法线指向一致"));
          } else R[k.name] && (W = R[k.name]);
          W && (N[k.name] = W);
        }
      });
    }), N;
  }
  const we = Ze(() => !(o.layer || o.layerId && o.layerId !== "")), Me = Ze(() => !(n.layerInfo && n.layerInfo.type && [E.IGSMapImageSub, E.ArcGISMapImageSub, E.WMSSub].includes(n.layerInfo.type))), re = Ze(() => {
    const t = [];
    if (n.layerInfo && n.layerInfo.imageFormats)
      switch (n.layerInfo.type) {
        case b.IGSMapImage:
        case b.ArcGISMapImage:
        case b.WMS:
        case E.WMTSSub:
          n.layerInfo.imageFormats.forEach((s) => {
            t.push({
              key: s.toUpperCase(),
              value: s.toLowerCase()
            });
          });
          break;
        case b.IGSTile:
        default:
          t.push({
            key: "PNG",
            value: "png"
          });
          break;
      }
    return t;
  });
  na(
    [() => o.layerId, () => o.sublayerId, () => o.layer],
    async () => {
      o.layer ? g = o.layer : g = await Xe({
        layerId: o.layerId,
        sublayerId: o.sublayerId
      }), fe();
    },
    {
      immediate: !0
    }
  ), na(
    () => n.checkedLayerId,
    () => {
      g = me.value.getSelectLayers()[0], fe();
    }
  );
  function Oe(t) {
    g && (g[t] = n.layerInfo[t]);
  }
  function Fe() {
    g && (g.elevationInfo = new x.ElevationInfo(n.layerInfo.elevationInfo));
  }
  function Ee() {
    g && (g.extent = new x.geometry.Extent(n.layerInfo.extent));
  }
  function ae() {
    if (g) {
      const t = [];
      n.subDomainsDataSource.forEach((s) => {
        t.push(s);
      }), g.subDomains = t;
    }
  }
  function Re() {
    n.subDomainsDataSource.push({
      index: n.subDomainsDataSource.length,
      subDomain: ""
    }), ae();
  }
  function Pe(t) {
    let s;
    for (let p = 0; p < n.subDomainsDataSource.length; p++)
      if (n.subDomainsDataSource[p].index === t) {
        s = t;
        break;
      }
    n.subDomainsDataSource.splice(s, 1), ae();
  }
  function le() {
    if (g) {
      const t = [];
      n.bandIdsDataSource.forEach((s) => {
        t.push(s.bandId);
      }), g.bandIds = t;
    }
  }
  function ne() {
    n.bandIdsDataSource.push({
      index: n.bandIdsDataSource.length,
      bandId: ""
    }), le();
  }
  function _e(t) {
    let s;
    for (let p = 0; p < n.bandIdsDataSource.length; p++)
      if (n.bandIdsDataSource[p].index === t) {
        s = t;
        break;
      }
    n.bandIdsDataSource.splice(s, 1), le();
  }
  function w() {
    n.lodsDataSource.push({
      levelValue: n.lodsDataSource.length,
      resolution: 0
    }), H();
  }
  function j(t) {
    let s;
    for (let p = 0; p < n.lodsDataSource.length; p++)
      if (n.lodsDataSource[p].levelValue === t) {
        s = p;
        break;
      }
    n.lodsDataSource.splice(s, 1), H();
  }
  function H() {
    if (g) {
      const t = [];
      n.lodsDataSource.forEach((s, p) => {
        t.push(
          new x.layer.LOD({
            level: p,
            levelValue: s.levelValue,
            resolution: s.resolution,
            scale: s.scale
          })
        );
      }), n.layerInfo.tileInfo.lods = t, g.tileInfo = new x.layer.TileInfo(n.layerInfo.tileInfo);
    }
  }
  function ze() {
    n.headersDataSource.push({
      id: n.headersDataSource.length,
      name: "",
      value: ""
    }), te();
  }
  function Ge(t) {
    let s;
    for (let p = 0; p < n.headersDataSource.length; p++)
      if (n.headersDataSource[p].id === t) {
        s = p;
        break;
      }
    n.headersDataSource.splice(s, 1), te();
  }
  function te() {
    if (g) {
      const t = {};
      n.headersDataSource.forEach((s) => {
        s.name && (t[s.name] = s.value);
      }), g.headers = t;
    }
  }
  function Ve() {
    n.outFieldsDataSource.push({
      id: n.outFieldsDataSource.length,
      field: ""
    }), oe();
  }
  function Be(t) {
    let s;
    for (let p = 0; p < n.outFieldsDataSource.length; p++)
      if (n.outFieldsDataSource[p].id === t) {
        s = p;
        break;
      }
    n.outFieldsDataSource.splice(s, 1), oe();
  }
  function oe() {
    if (g) {
      const t = [];
      n.outFieldsDataSource.forEach((s) => {
        t.push(s.field);
      }), g.outFields = t;
    }
  }
  function We() {
    n.extendPropsDataSource.push({
      id: n.extendPropsDataSource.length,
      name: "",
      value: ""
    }), q();
  }
  function Le(t) {
    let s;
    for (let p = 0; p < n.extendPropsDataSource.length; p++)
      if (n.extendPropsDataSource[p].id === t) {
        s = p;
        break;
      }
    n.extendPropsDataSource.splice(s, 1), q();
  }
  function q() {
    if (g) {
      const t = {};
      n.extendPropsDataSource.forEach((s) => {
        t[s.name] = s.value;
      }), g.extendProps = t;
    }
  }
  function pe() {
    n.extensionOptionsDataSource.push({
      id: n.extensionOptionsDataSource.length,
      name: "",
      value: ""
    }), ie();
  }
  function He(t) {
    let s;
    for (let p = 0; p < n.extensionOptionsDataSource.length; p++)
      if (n.extensionOptionsDataSource[p].id === t) {
        s = p;
        break;
      }
    n.extensionOptionsDataSource.splice(s, 1), ie();
  }
  function ie() {
    if (g) {
      const t = {};
      n.extensionOptionsDataSource.forEach((s) => {
        t[s.name] = s.value;
      }), g.extensionOptions = t;
    }
  }
  function Ne() {
    g && (g.tileInfo = new x.layer.TileInfo(g.tileInfo));
  }
  function Ke(t) {
    if (g) {
      const s = g.findSublayerById(t);
      s && (g.activeLayer = s);
    }
  }
  function Je(t, s) {
    return t.dateField ? t.formatFunction(s[t.dateField]) : t.formatFunction();
  }
  function je(t) {
    g && (g.type === b.WMTS ? g.setProperty("activeLayer.tileMatrixSet.tileInfo.startLevel", t[0]) : g.setProperty("tileInfo.startLevel", t[0]), g.type === b.WMTS ? g.setProperty("activeLayer.tileMatrixSet.tileInfo.endLevel", t[1]) : g.setProperty("tileInfo.endLevel", t[1]));
  }
  function qe(t) {
    let s = "gray";
    return t >= n.showLevelRange[0] && t <= n.showLevelRange[1] && (s = ""), s;
  }
  function ve(t) {
    return t === b.IGSTile || t === b.ArcGISTile || t === b.webTile || t === b.IGSImageTile || t === b.IGSVectorTile || t === b.WMTS;
  }
  function fe() {
    var p;
    if (!g)
      return;
    n.layerInfo = g.toJSON();
    const t = (p = g.capabilities) == null ? void 0 : p.toJSON();
    n.labelUIConfig = L({
      capability: t,
      type: "label",
      excludeConfigs: [
        Z,
        T,
        A,
        ee
      ]
    }), n.booleanUIConfig = L({
      capability: t,
      type: "boolean",
      excludeConfigs: [
        Z,
        T,
        A,
        ee
      ]
    }), n.selectUIConfig = L({
      capability: t,
      type: "select",
      defaultUIConfig: Z
    }), n.activeLayerUIConfig = L({
      capability: t,
      type: "activeLayer",
      defaultUIConfig: T
    }), n.opacityUIConfig = L({
      capability: t,
      type: "opacity",
      defaultUIConfig: A
    }), n.collapseUIConfig = L({
      capability: t,
      type: "collapse",
      defaultUIConfig: ee
    }), n.layerInfo.subDomains && (n.subDomainsDataSource = ye(n.layerInfo.subDomains)), n.layerInfo.bandIds && (n.bandIdsDataSource = V(n.layerInfo.bandIds));
    let s;
    if (n.layerInfo.type === b.WMTS) {
      const { activeLayer: R } = n.layerInfo, { tileMatrixSetId: a, tileMatrixSets: N } = R;
      for (let f = 0; f < N.length; f++)
        if (a === N[f].id) {
          s = N[f].tileInfo;
          break;
        }
    } else
      s = n.layerInfo.tileInfo;
    s && (n.lodsDataSource = Ye(s.lods), n.showLevelRange = Qe(s));
  }
  function Xe({ layerId: t, sublayerId: s }) {
    return new Promise((p) => {
      ma({
        layerId: t,
        sublayerId: s,
        map: Ie,
        callback: (R) => {
          p(R);
        }
      });
    });
  }
  function ye(t) {
    const s = [];
    return t.forEach((p, R) => {
      s.push({
        index: R,
        subDomain: p
      });
    }), s;
  }
  function V(t) {
    const s = [];
    return t.forEach((p, R) => {
      s.push({
        index: R,
        bandId: p
      });
    }), s;
  }
  function Ye(t) {
    const s = [];
    return t.forEach((p, R) => {
      s.push({
        index: R,
        levelValue: p.levelValue,
        resolution: p.resolution,
        scale: p.resolution
      });
    }), s;
  }
  function Qe(t) {
    return [t.startLevel, t.endLevel];
  }
  return {
    ...da(n),
    // 下面是计算属性
    showLayerSelect: we,
    showOpacity: Me,
    pictureFormatOptions: re,
    // 下面是普通数据
    layerTypes: ge,
    sublayerTypes: Y,
    lengthUnitOptions: Se,
    elevationInfoModeOptions: ce,
    subDomainColumns: Q,
    bandIdsColumns: ke,
    lodsColumns: De,
    headersColumns: Ce,
    outFieldsColumns: he,
    extendPropsColumns: Ue,
    extensionOptionsColumns: $e,
    tileDisplayStrategyOptions: be,
    tileDisplaLodsColumns: xe,
    // 下面是方法
    changeLayerAttribute: Oe,
    changeElevationInfo: Fe,
    changeExtent: Ee,
    changeSubDomains: ae,
    addSubDomain: Re,
    deleteSubDomain: Pe,
    changeBandIds: le,
    addeBandId: ne,
    deleteBandId: _e,
    deleteLOD: j,
    addeLOD: w,
    changeLODs: H,
    addHeader: ze,
    deleteHeader: Ge,
    changeHeaders: te,
    addOutField: Ve,
    deleteOutField: Be,
    changeOutFields: oe,
    addExtendProp: We,
    deleteExtendProp: Le,
    changeExtendProps: q,
    addExtensionOption: pe,
    deleteExtensionOption: He,
    changeExtensionOptions: ie,
    changeTileInfo: Ne,
    changeActiveLayer: Ke,
    getSelectConfigs: Je,
    changeShowLevelRange: je,
    getTextColorByLevel: qe,
    isSupportTileDisplayStrategy: ve
  };
}, xa = ["title"], ka = { style: { "padding-right": "3px" } }, Da = { style: { width: "inherit", "text-align": "right" } }, Ca = { style: { width: "inherit", "text-align": "right" } }, ha = ["title"], Ua = { style: { width: "inherit", "text-align": "right" } }, $a = { style: { width: "inherit", "text-align": "right" } }, wa = { style: { width: "inherit", "text-align": "right" } }, Ma = { style: { width: "inherit", "text-align": "right" } }, Oa = { style: { width: "inherit", "text-align": "right" } }, Fa = /* @__PURE__ */ ra({
  name: "MapgisLayerAttribute",
  __name: "layer-attribute",
  props: Sa,
  emits: ca,
  setup(o, { emit: ea }) {
    const me = o, Ie = ea, x = Ia("layer-attribute"), de = pa(), {
      layerInfo: n,
      subDomainsDataSource: g,
      bandIdsDataSource: ge,
      lodsDataSource: Y,
      headersDataSource: Se,
      outFieldsDataSource: ce,
      extendPropsDataSource: be,
      extensionOptionsDataSource: xe,
      checkedLayerId: Q,
      // 下面是计算属性
      showLayerSelect: ke,
      showOpacity: De,
      pictureFormatOptions: Ce,
      // 下面是普通数据
      layerTypes: he,
      sublayerTypes: Ue,
      lengthUnitOptions: $e,
      elevationInfoModeOptions: Z,
      subDomainColumns: T,
      bandIdsColumns: A,
      lodsColumns: ee,
      headersColumns: L,
      outFieldsColumns: we,
      extendPropsColumns: Me,
      extensionOptionsColumns: re,
      labelUIConfig: Oe,
      booleanUIConfig: Fe,
      selectUIConfig: Ee,
      activeLayerUIConfig: ae,
      opacityUIConfig: Re,
      collapseUIConfig: Pe,
      tileDisplayStrategyOptions: le,
      showLevelRange: ne,
      tileDisplaLodsColumns: _e,
      // 下面是方法
      changeLayerAttribute: w,
      changeElevationInfo: j,
      changeExtent: H,
      changeSubDomains: ze,
      addSubDomain: Ge,
      deleteSubDomain: te,
      changeBandIds: Ve,
      addeBandId: Be,
      deleteBandId: oe,
      deleteLOD: We,
      addeLOD: Le,
      changeLODs: q,
      changeHeaders: pe,
      addHeader: He,
      deleteHeader: ie,
      addOutField: Ne,
      deleteOutField: Ke,
      changeOutFields: Je,
      addExtendProp: je,
      deleteExtendProp: qe,
      changeExtendProps: ve,
      addExtensionOption: fe,
      deleteExtensionOption: Xe,
      changeExtensionOptions: ye,
      changeTileInfo: V,
      changeActiveLayer: Ye,
      getSelectConfigs: Qe,
      changeShowLevelRange: t,
      getTextColorByLevel: s,
      isSupportTileDisplayStrategy: p
    } = ba(me, Ie, de);
    return (R, a) => {
      const N = O("mapgis-layer-select"), f = O("a-form-item"), U = O("a-input"), k = O("mapgis-ui-iconfont"), W = O("a-tooltip"), ue = O("a-switch"), B = O("a-select-option"), X = O("a-select"), aa = O("a-slider"), la = O("a-col"), $ = O("a-input-number"), oa = O("a-row"), F = O("a-collapse-panel"), K = O("a-table"), J = O("a-button"), ia = O("a-collapse"), ua = O("mapgis-ui-setting-form");
      return d(), C("div", {
        class: h([e(x).b()])
      }, [
        i(ua, {
          layout: "horizontal",
          itemLayout: "grid",
          labelCol: { span: 10 },
          size: "default",
          class: h(e(x).e("form"))
        }, {
          default: u(() => [
            e(ke) ? (d(), v(f, {
              key: 0,
              label: "图层"
            }, {
              default: u(() => [
                i(N, {
                  ref_key: "layerSelectRef",
                  ref: de,
                  value: e(Q),
                  "onUpdate:value": a[0] || (a[0] = (r) => ta(Q) ? Q.value = r : null),
                  layerTypes: e(he),
                  sublayerTypes: e(Ue),
                  multiple: !1,
                  treeDefaultExpandAll: ""
                }, null, 8, ["value", "layerTypes", "sublayerTypes"])
              ]),
              _: 1
            })) : (d(), v(f, {
              key: 1,
              label: "图层名称"
            }, {
              default: u(() => [
                P("div", {
                  title: e(n).title,
                  class: h(e(x).e("layer-name"))
                }, G(e(n).title), 11, xa)
              ]),
              _: 1
            })),
            (d(!0), C(M, null, z(e(Oe), (r, c) => (d(), C(M, { key: c }, [
              r.type === e(y).label ? (d(), v(f, {
                key: c,
                label: r.label
              }, {
                default: u(() => [
                  i(U, {
                    value: e(n)[r.field],
                    "onUpdate:value": (l) => e(n)[r.field] = l,
                    onChange: (l) => e(w)(r.field),
                    placeholder: "请输入值..."
                  }, null, 8, ["value", "onUpdate:value", "onChange"])
                ]),
                _: 2
              }, 1032, ["label"])) : I("", !0)
            ], 64))), 128)),
            (d(!0), C(M, null, z(e(Fe), (r, c) => (d(), C(M, { key: c }, [
              r.type === e(y).boolean ? (d(), v(f, { key: c }, {
                label: u(() => [
                  P("span", ka, G(r.label), 1),
                  r.description ? (d(), v(W, {
                    key: 0,
                    placement: "topLeft",
                    title: r.description
                  }, {
                    default: u(() => [
                      i(k, { type: "mapgis-info" })
                    ]),
                    _: 1
                  }, 8, ["title"])) : I("", !0)
                ]),
                default: u(() => [
                  i(ue, {
                    size: "small",
                    checked: e(n)[r.field],
                    "onUpdate:checked": (l) => e(n)[r.field] = l,
                    onChange: (l) => e(w)(r.field)
                  }, null, 8, ["checked", "onUpdate:checked", "onChange"])
                ]),
                _: 2
              }, 1024)) : I("", !0)
            ], 64))), 128)),
            (d(!0), C(M, null, z(e(Ee), (r, c) => (d(), C(M, { key: c }, [
              r.type === e(y).select ? (d(), v(f, {
                key: c,
                label: r.label
              }, {
                default: u(() => [
                  i(X, {
                    value: e(n)[r.field],
                    "onUpdate:value": (l) => e(n)[r.field] = l,
                    onChange: (l) => e(w)(r.field)
                  }, {
                    default: u(() => [
                      (d(!0), C(M, null, z(e(Qe)(r, e(n)), (l) => (d(), v(B, {
                        value: l.value,
                        key: l.key
                      }, {
                        default: u(() => [
                          _(G(l.key), 1)
                        ]),
                        _: 2
                      }, 1032, ["value"]))), 128))
                    ]),
                    _: 2
                  }, 1032, ["value", "onUpdate:value", "onChange"])
                ]),
                _: 2
              }, 1032, ["label"])) : I("", !0)
            ], 64))), 128)),
            (d(!0), C(M, null, z(e(ae), (r, c) => (d(), C(M, { key: c }, [
              r.type === e(y).activeLayer && e(n).activeLayer ? (d(), v(f, {
                key: c,
                label: r.label
              }, {
                default: u(() => [
                  i(X, {
                    value: e(n).activeLayer.id,
                    "onUpdate:value": a[1] || (a[1] = (l) => e(n).activeLayer.id = l),
                    onChange: a[2] || (a[2] = (l) => e(Ye)(e(n).activeLayer.id))
                  }, {
                    default: u(() => [
                      (d(!0), C(M, null, z(r.formatFunction(e(n)), (l) => (d(), v(B, {
                        value: l.value,
                        key: l.key
                      }, {
                        default: u(() => [
                          _(G(l.key), 1)
                        ]),
                        _: 2
                      }, 1032, ["value"]))), 128))
                    ]),
                    _: 2
                  }, 1032, ["value"])
                ]),
                _: 2
              }, 1032, ["label"])) : I("", !0)
            ], 64))), 128)),
            (d(!0), C(M, null, z(e(Re), (r, c) => (d(), C(M, { key: c }, [
              e(De) && r.type === e(y).opacity ? (d(), v(f, {
                key: c,
                label: r.label
              }, {
                default: u(() => [
                  i(oa, null, {
                    default: u(() => [
                      i(la, {
                        span: 11,
                        class: h(e(x).e("opacity_slider"))
                      }, {
                        default: u(() => [
                          i(aa, {
                            value: e(n).opacity,
                            "onUpdate:value": a[3] || (a[3] = (l) => e(n).opacity = l),
                            min: 0,
                            max: 1,
                            step: 0.01,
                            onChange: a[4] || (a[4] = (l) => e(w)("opacity"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }, 8, ["class"]),
                      i(la, { span: 13 }, {
                        default: u(() => [
                          i($, {
                            value: e(n).opacity,
                            "onUpdate:value": a[5] || (a[5] = (l) => e(n).opacity = l),
                            min: 0,
                            max: 1,
                            step: 0.01,
                            controls: !1,
                            "addon-after": "%",
                            onChange: a[6] || (a[6] = (l) => e(w)("opacity"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              }, 8, ["label"])) : I("", !0)
            ], 64))), 128)),
            i(ia, { expandIconPosition: "end" }, {
              default: u(() => [
                (d(!0), C(M, null, z(e(Pe), (r, c) => (d(), C(M, { key: c }, [
                  r.type === e(y).scale ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(f, { label: "最小比例尺" }, {
                        default: u(() => [
                          i($, {
                            "addon-before": "1 : ",
                            value: e(n).minScale,
                            "onUpdate:value": a[7] || (a[7] = (l) => e(n).minScale = l),
                            onChange: a[8] || (a[8] = (l) => e(w)("minScale"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "最大比例尺" }, {
                        default: u(() => [
                          i($, {
                            "addon-before": "1 : ",
                            value: e(n).maxScale,
                            "onUpdate:value": a[9] || (a[9] = (l) => e(n).maxScale = l),
                            onChange: a[10] || (a[10] = (l) => e(w)("maxScale"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, ["header"])) : I("", !0),
                  r.type === e(y).token ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(f, { label: "Token名" }, {
                        default: u(() => [
                          i(U, {
                            value: e(n).tokenKey,
                            "onUpdate:value": a[11] || (a[11] = (l) => e(n).tokenKey = l),
                            onChange: a[12] || (a[12] = (l) => e(w)("tokenKey"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "Token值" }, {
                        default: u(() => [
                          i(U, {
                            value: e(n).tokenValue,
                            "onUpdate:value": a[13] || (a[13] = (l) => e(n).tokenValue = l),
                            onChange: a[14] || (a[14] = (l) => e(w)("tokenValue"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, ["header"])) : I("", !0),
                  r.type === e(y).headers ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(K, {
                        bordered: "",
                        size: "small",
                        pagination: !1,
                        dataSource: e(Se),
                        columns: e(L)
                      }, {
                        bodyCell: u(({ column: l, record: m }) => [
                          l.key === "name" ? (d(), v(U, {
                            key: 0,
                            value: m.name,
                            "onUpdate:value": (S) => m.name = S,
                            placeholder: "请输入值...",
                            onChange: a[15] || (a[15] = (S) => e(pe)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "value" ? (d(), v(U, {
                            key: 1,
                            value: m.value,
                            "onUpdate:value": (S) => m.value = S,
                            placeholder: "请输入值...",
                            onChange: a[16] || (a[16] = (S) => e(pe)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "action" ? (d(), v(k, {
                            key: 2,
                            type: "mapgis-delete",
                            class: h(e(x).e("delete_icon")),
                            onClick: (S) => e(ie)(m.id)
                          }, null, 8, ["class", "onClick"])) : I("", !0)
                        ]),
                        _: 2
                      }, 1032, ["dataSource", "columns"]),
                      P("div", Da, [
                        i(J, {
                          type: "primary",
                          class: h(e(x).e("add_subDomain")),
                          onClick: a[17] || (a[17] = (l) => e(He)())
                        }, {
                          default: u(() => [...a[80] || (a[80] = [
                            _("添加请求头", -1)
                          ])]),
                          _: 1
                        }, 8, ["class"])
                      ])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).outFields ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(K, {
                        bordered: "",
                        size: "small",
                        pagination: !1,
                        dataSource: e(ce),
                        columns: e(we)
                      }, {
                        bodyCell: u(({ column: l, record: m }) => [
                          l.key === "field" ? (d(), v(U, {
                            key: 0,
                            value: m.field,
                            "onUpdate:value": (S) => m.field = S,
                            placeholder: "请输入值...",
                            onChange: a[18] || (a[18] = (S) => e(Je)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "action" ? (d(), v(k, {
                            key: 1,
                            type: "mapgis-delete",
                            class: h(e(x).e("delete_icon")),
                            onClick: (S) => e(Ke)(m.id)
                          }, null, 8, ["class", "onClick"])) : I("", !0)
                        ]),
                        _: 2
                      }, 1032, ["dataSource", "columns"]),
                      P("div", Ca, [
                        i(J, {
                          type: "primary",
                          class: h(e(x).e("add_subDomain")),
                          onClick: a[19] || (a[19] = (l) => e(Ne)())
                        }, {
                          default: u(() => [...a[81] || (a[81] = [
                            _("添加字段", -1)
                          ])]),
                          _: 1
                        }, 8, ["class"])
                      ])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).elevationInfo && e(n).elevationInfo ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(f, { label: "模式" }, {
                        default: u(() => [
                          i(X, {
                            value: e(n).elevationInfo.mode,
                            "onUpdate:value": a[20] || (a[20] = (l) => e(n).elevationInfo.mode = l),
                            onChange: a[21] || (a[21] = (l) => e(j)())
                          }, {
                            default: u(() => [
                              (d(!0), C(M, null, z(e(Z), (l) => (d(), v(B, {
                                value: l.value,
                                key: l.key
                              }, {
                                default: u(() => [
                                  _(G(l.key), 1)
                                ]),
                                _: 2
                              }, 1032, ["value"]))), 128))
                            ]),
                            _: 2
                          }, 1032, ["value"])
                        ]),
                        _: 2
                      }, 1024),
                      i(f, { label: "偏移" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).elevationInfo.offset,
                            "onUpdate:value": a[22] || (a[22] = (l) => e(n).elevationInfo.offset = l),
                            onChange: a[23] || (a[23] = (l) => e(j)())
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "高度表达式" }, {
                        default: u(() => [
                          i(U, {
                            value: e(n).elevationInfo.featureExpressionInfo.expression,
                            "onUpdate:value": a[24] || (a[24] = (l) => e(n).elevationInfo.featureExpressionInfo.expression = l),
                            onChange: a[25] || (a[25] = (l) => e(j)())
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "单位" }, {
                        default: u(() => [
                          i(X, {
                            value: e(n).elevationInfo.unit,
                            "onUpdate:value": a[26] || (a[26] = (l) => e(n).elevationInfo.unit = l),
                            onChange: a[27] || (a[27] = (l) => e(j)())
                          }, {
                            default: u(() => [
                              (d(!0), C(M, null, z(e($e), (l) => (d(), v(B, {
                                value: l.value,
                                key: l.key
                              }, {
                                default: u(() => [
                                  _(G(l.key), 1)
                                ]),
                                _: 2
                              }, 1032, ["value"]))), 128))
                            ]),
                            _: 2
                          }, 1032, ["value"])
                        ]),
                        _: 2
                      }, 1024)
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).imageSize ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(f, { label: "宽度" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).imageWidth,
                            "onUpdate:value": a[28] || (a[28] = (l) => e(n).imageWidth = l),
                            onChange: a[29] || (a[29] = (l) => e(w)("imageWidth"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "高度" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).imageHeight,
                            "onUpdate:value": a[30] || (a[30] = (l) => e(n).imageHeight = l),
                            onChange: a[31] || (a[31] = (l) => e(w)("imageHeight"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, ["header"])) : I("", !0),
                  r.type === e(y).imageMaxSize ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(f, { label: "宽度" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).imageMaxWidth,
                            "onUpdate:value": a[32] || (a[32] = (l) => e(n).imageMaxWidth = l),
                            onChange: a[33] || (a[33] = (l) => e(w)("imageMaxWidth"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "高度" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).imageMaxHeight,
                            "onUpdate:value": a[34] || (a[34] = (l) => e(n).imageMaxHeight = l),
                            onChange: a[35] || (a[35] = (l) => e(w)("imageMaxHeight"))
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, ["header"])) : I("", !0),
                  r.type === e(y).extent && e(n).extent ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(f, { label: "xmin" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).extent.xmin,
                            "onUpdate:value": a[36] || (a[36] = (l) => e(n).extent.xmin = l),
                            onChange: a[37] || (a[37] = (l) => e(H)())
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "ymin" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).extent.ymin,
                            "onUpdate:value": a[38] || (a[38] = (l) => e(n).extent.ymin = l),
                            onChange: a[39] || (a[39] = (l) => e(H)())
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "xmax" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).extent.xmax,
                            "onUpdate:value": a[40] || (a[40] = (l) => e(n).extent.xmax = l),
                            onChange: a[41] || (a[41] = (l) => e(H)())
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "ymax" }, {
                        default: u(() => [
                          i($, {
                            value: e(n).extent.ymax,
                            "onUpdate:value": a[42] || (a[42] = (l) => e(n).extent.ymax = l),
                            onChange: a[43] || (a[43] = (l) => e(H)())
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, ["header"])) : I("", !0),
                  r.type === e(y).tileDisplayStrategy && e(p)(e(n).type) ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(f, null, {
                        label: u(() => [
                          a[82] || (a[82] = P("span", null, "显示策略", -1)),
                          i(W, { title: "超过瓦片的请求层级范围后，设置拉伸瓦片还是隐藏瓦片" }, {
                            default: u(() => [
                              i(k, { type: "mapgis-info-circle" })
                            ]),
                            _: 1
                          })
                        ]),
                        default: u(() => [
                          i(X, {
                            value: e(n).tileDisplayStrategy,
                            "onUpdate:value": a[44] || (a[44] = (l) => e(n).tileDisplayStrategy = l),
                            onChange: a[45] || (a[45] = (l) => e(w)("tileDisplayStrategy"))
                          }, {
                            default: u(() => [
                              (d(!0), C(M, null, z(e(le), (l) => (d(), v(B, {
                                value: l.value,
                                key: l.key
                              }, {
                                default: u(() => [
                                  _(G(l.key), 1)
                                ]),
                                _: 2
                              }, 1032, ["value"]))), 128))
                            ]),
                            _: 2
                          }, 1032, ["value"])
                        ]),
                        _: 2
                      }, 1024),
                      i(f, null, {
                        label: u(() => [
                          a[83] || (a[83] = P("span", null, "层级范围", -1)),
                          i(W, { title: "请求瓦片的层级范围，不在这个范围内不会发送瓦片请求，当显示模式设置为拉伸时，最小层级设置过大可能有性能问题" }, {
                            default: u(() => [
                              i(k, { type: "mapgis-info-circle" })
                            ]),
                            _: 1
                          })
                        ]),
                        default: u(() => [
                          i(aa, {
                            value: e(ne),
                            "onUpdate:value": a[46] || (a[46] = (l) => ta(ne) ? ne.value = l : null),
                            range: "",
                            min: 0,
                            max: e(Y).length - 1,
                            step: 1,
                            onChange: e(t)
                          }, null, 8, ["value", "max", "onChange"])
                        ]),
                        _: 1
                      }),
                      a[84] || (a[84] = P("div", null, "多层次细节数组", -1)),
                      i(K, {
                        size: "small",
                        tableLayout: "fixed",
                        pagination: !1,
                        dataSource: e(Y),
                        columns: e(_e)
                      }, {
                        bodyCell: u(({ column: l, record: m }) => [
                          l.key === "index" ? (d(), C("span", {
                            key: 0,
                            style: Te({ color: e(s)(m.index) })
                          }, G(m.index), 5)) : I("", !0),
                          l.key === "levelValue" ? (d(), C("span", {
                            key: 1,
                            style: Te({ color: e(s)(m.index) })
                          }, G(m.levelValue), 5)) : I("", !0),
                          l.key === "scale" ? (d(), C("span", {
                            key: 2,
                            title: m.scale,
                            class: h(e(x).e("lod_scale")),
                            style: Te({ color: e(s)(m.index) })
                          }, G(m.scale), 15, ha)) : I("", !0)
                        ]),
                        _: 2
                      }, 1032, ["dataSource", "columns"])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).tileInfo && e(n).tileInfo ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(f, { label: "每英寸点数" }, {
                        default: u(() => [
                          i($, {
                            onChange: a[47] || (a[47] = (l) => e(V)()),
                            value: e(n).tileInfo.dpi,
                            "onUpdate:value": a[48] || (a[48] = (l) => e(n).tileInfo.dpi = l)
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "图片格式" }, {
                        default: u(() => [
                          i(X, {
                            onChange: a[49] || (a[49] = (l) => e(V)()),
                            value: e(n).tileInfo.format,
                            "onUpdate:value": a[50] || (a[50] = (l) => e(n).tileInfo.format = l)
                          }, {
                            default: u(() => [
                              (d(!0), C(M, null, z(e(Ce), (l) => (d(), v(B, {
                                value: l.value,
                                key: l.key
                              }, {
                                default: u(() => [
                                  _(G(l.key), 1)
                                ]),
                                _: 2
                              }, 1032, ["value"]))), 128))
                            ]),
                            _: 2
                          }, 1032, ["value"])
                        ]),
                        _: 2
                      }, 1024),
                      i(f, { label: "裁图原点" }),
                      i(f, { label: "X坐标" }, {
                        default: u(() => [
                          i($, {
                            onChange: a[51] || (a[51] = (l) => e(V)()),
                            value: e(n).tileInfo.origin.coordinates[0],
                            "onUpdate:value": a[52] || (a[52] = (l) => e(n).tileInfo.origin.coordinates[0] = l)
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "Y坐标" }, {
                        default: u(() => [
                          i($, {
                            onChange: a[53] || (a[53] = (l) => e(V)()),
                            value: e(n).tileInfo.origin.coordinates[1],
                            "onUpdate:value": a[54] || (a[54] = (l) => e(n).tileInfo.origin.coordinates[1] = l)
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "图片大小" }),
                      i(f, { label: "width" }, {
                        default: u(() => [
                          i($, {
                            onChange: a[55] || (a[55] = (l) => e(V)()),
                            value: e(n).tileInfo.size[0],
                            "onUpdate:value": a[56] || (a[56] = (l) => e(n).tileInfo.size[0] = l)
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "height" }, {
                        default: u(() => [
                          i($, {
                            onChange: a[57] || (a[57] = (l) => e(V)()),
                            value: e(n).tileInfo.size[1],
                            "onUpdate:value": a[58] || (a[58] = (l) => e(n).tileInfo.size[1] = l)
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "空间参考系" }),
                      i(f, { label: "WKID" }, {
                        default: u(() => [
                          i(U, {
                            onChange: a[59] || (a[59] = (l) => e(V)()),
                            value: e(n).tileInfo.spatialReference.wkid,
                            "onUpdate:value": a[60] || (a[60] = (l) => e(n).tileInfo.spatialReference.wkid = l)
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      i(f, { label: "WKT" }, {
                        default: u(() => [
                          i(U, {
                            onChange: a[61] || (a[61] = (l) => e(V)()),
                            value: e(n).tileInfo.spatialReference.wkt,
                            "onUpdate:value": a[62] || (a[62] = (l) => e(n).tileInfo.spatialReference.wkt = l)
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      }),
                      a[86] || (a[86] = P("div", null, "多层次细节数组", -1)),
                      i(K, {
                        bordered: "",
                        size: "small",
                        pagination: !1,
                        dataSource: e(Y),
                        columns: e(ee),
                        style: { "margin-top": "10px" }
                      }, {
                        bodyCell: u(({ column: l, record: m }) => [
                          l.key === "resolution" ? (d(), v($, {
                            key: 0,
                            value: m.resolution,
                            "onUpdate:value": (S) => m.resolution = S,
                            placeholder: "请输入值...",
                            onChange: a[63] || (a[63] = (S) => e(q)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "levelValue" ? (d(), v(U, {
                            key: 1,
                            value: m.levelValue,
                            "onUpdate:value": (S) => m.levelValue = S,
                            placeholder: "请输入值...",
                            onChange: a[64] || (a[64] = (S) => e(q)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "action" ? (d(), v(k, {
                            key: 2,
                            type: "mapgis-delete",
                            class: h(e(x).e("delete_icon")),
                            onClick: (S) => e(We)(m.levelValue)
                          }, null, 8, ["class", "onClick"])) : I("", !0)
                        ]),
                        _: 2
                      }, 1032, ["dataSource", "columns"]),
                      P("div", Ua, [
                        i(J, {
                          type: "primary",
                          class: h(e(x).e("add_subDomain")),
                          onClick: a[65] || (a[65] = (l) => e(Le)())
                        }, {
                          default: u(() => [...a[85] || (a[85] = [
                            _("添加LOD", -1)
                          ])]),
                          _: 1
                        }, 8, ["class"])
                      ])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).subDomains ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(K, {
                        bordered: "",
                        size: "small",
                        pagination: !1,
                        dataSource: e(g),
                        columns: e(T)
                      }, {
                        bodyCell: u(({ column: l, record: m }) => [
                          l.key === "subDomain" ? (d(), v(U, {
                            key: 0,
                            value: m.subDomain,
                            "onUpdate:value": (S) => m.subDomain = S,
                            placeholder: "请输入值...",
                            onChange: a[66] || (a[66] = (S) => e(ze)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "action" ? (d(), v(k, {
                            key: 1,
                            type: "mapgis-delete",
                            class: h(e(x).e("delete_icon")),
                            onClick: (S) => e(te)(m.index)
                          }, null, 8, ["class", "onClick"])) : I("", !0)
                        ]),
                        _: 2
                      }, 1032, ["dataSource", "columns"]),
                      P("div", $a, [
                        i(J, {
                          type: "primary",
                          class: h(e(x).e("add_subDomain")),
                          onClick: a[67] || (a[67] = (l) => e(Ge)())
                        }, {
                          default: u(() => [...a[87] || (a[87] = [
                            _("添加子域名", -1)
                          ])]),
                          _: 1
                        }, 8, ["class"])
                      ])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).bandIds ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(K, {
                        bordered: "",
                        size: "small",
                        pagination: !1,
                        dataSource: e(ge),
                        columns: e(A)
                      }, {
                        bodyCell: u(({ column: l, record: m }) => [
                          l.key === "bandId" ? (d(), v($, {
                            key: 0,
                            value: m.bandId,
                            "onUpdate:value": (S) => m.bandId = S,
                            placeholder: "请输入值...",
                            onChange: a[68] || (a[68] = (S) => e(Ve)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "action" ? (d(), v(k, {
                            key: 1,
                            type: "mapgis-delete",
                            class: h(e(x).e("delete_icon")),
                            onClick: (S) => e(oe)(m.index)
                          }, null, 8, ["class", "onClick"])) : I("", !0)
                        ]),
                        _: 2
                      }, 1032, ["dataSource", "columns"]),
                      P("div", wa, [
                        i(J, {
                          type: "primary",
                          class: h(e(x).e("add_subDomain")),
                          onClick: a[69] || (a[69] = (l) => e(Be)())
                        }, {
                          default: u(() => [...a[88] || (a[88] = [
                            _("添加", -1)
                          ])]),
                          _: 1
                        }, 8, ["class"])
                      ])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).replaceStyleURL ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      (d(), v(f, {
                        key: c,
                        label: "启用替换"
                      }, {
                        default: u(() => [
                          i(ue, {
                            size: "small",
                            checked: e(n).replaceStyleURL,
                            "onUpdate:checked": a[70] || (a[70] = (l) => e(n).replaceStyleURL = l),
                            class: h(e(x).e("collapse_label_icon")),
                            onChange: a[71] || (a[71] = (l) => e(w)("replaceStyleURL"))
                          }, null, 8, ["checked", "class"])
                        ]),
                        _: 1
                      })),
                      va((d(), v(f, {
                        key: c,
                        label: "替换正则"
                      }, {
                        default: u(() => [
                          i(U, {
                            value: e(n).replaceStyleURLRegExp,
                            "onUpdate:value": a[72] || (a[72] = (l) => e(n).replaceStyleURLRegExp = l),
                            onChange: a[73] || (a[73] = (l) => e(w)("replaceStyleURLRegExp")),
                            placeholder: "请输入值..."
                          }, null, 8, ["value"])
                        ]),
                        _: 1
                      })), [
                        [fa, e(n).replaceStyleURL]
                      ])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).extendProps ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(K, {
                        bordered: "",
                        size: "small",
                        pagination: !1,
                        dataSource: e(be),
                        columns: e(Me)
                      }, {
                        bodyCell: u(({ column: l, record: m }) => [
                          l.key === "name" ? (d(), v(U, {
                            key: 0,
                            value: m.name,
                            "onUpdate:value": (S) => m.name = S,
                            placeholder: "请输入值...",
                            onChange: a[74] || (a[74] = (S) => e(ve)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "value" ? (d(), v(U, {
                            key: 1,
                            value: m.value,
                            "onUpdate:value": (S) => m.value = S,
                            placeholder: "请输入值...",
                            onChange: a[75] || (a[75] = (S) => e(ve)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "action" ? (d(), v(k, {
                            key: 2,
                            type: "mapgis-delete",
                            class: h(e(x).e("delete_icon")),
                            onClick: (S) => e(qe)(m.id)
                          }, null, 8, ["class", "onClick"])) : I("", !0)
                        ]),
                        _: 2
                      }, 1032, ["dataSource", "columns"]),
                      P("div", Ma, [
                        i(J, {
                          type: "primary",
                          class: h(e(x).e("add_subDomain")),
                          onClick: a[76] || (a[76] = (l) => e(je)())
                        }, {
                          default: u(() => [...a[89] || (a[89] = [
                            _("添加属性", -1)
                          ])]),
                          _: 1
                        }, 8, ["class"])
                      ])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0),
                  r.type === e(y).extensionOptions ? (d(), v(F, {
                    key: c,
                    header: `${r.label}`
                  }, {
                    default: u(() => [
                      i(K, {
                        bordered: "",
                        size: "small",
                        pagination: !1,
                        dataSource: e(xe),
                        columns: e(re)
                      }, {
                        bodyCell: u(({ column: l, record: m }) => [
                          l.key === "name" ? (d(), v(U, {
                            key: 0,
                            value: m.name,
                            "onUpdate:value": (S) => m.name = S,
                            placeholder: "请输入值...",
                            onChange: a[77] || (a[77] = (S) => e(ye)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "value" ? (d(), v(U, {
                            key: 1,
                            value: m.value,
                            "onUpdate:value": (S) => m.value = S,
                            placeholder: "请输入值...",
                            onChange: a[78] || (a[78] = (S) => e(ye)())
                          }, null, 8, ["value", "onUpdate:value"])) : I("", !0),
                          l.key === "action" ? (d(), v(k, {
                            key: 2,
                            type: "mapgis-delete",
                            class: h(e(x).e("delete_icon")),
                            onClick: (S) => e(Xe)(m.id)
                          }, null, 8, ["class", "onClick"])) : I("", !0)
                        ]),
                        _: 2
                      }, 1032, ["dataSource", "columns"]),
                      P("div", Oa, [
                        i(J, {
                          type: "primary",
                          class: h(e(x).e("add_subDomain")),
                          onClick: a[79] || (a[79] = (l) => e(fe)())
                        }, {
                          default: u(() => [...a[90] || (a[90] = [
                            _("添加参数", -1)
                          ])]),
                          _: 1
                        }, 8, ["class"])
                      ])
                    ]),
                    _: 2
                  }, 1032, ["header"])) : I("", !0)
                ], 64))), 128))
              ]),
              _: 1
            })
          ]),
          _: 1
        }, 8, ["class"])
      ], 2);
    };
  }
}), za = /* @__PURE__ */ ga(Fa, [["__scopeId", "data-v-6f32c7ee"]]);
export {
  za as L,
  D as a,
  y as b,
  Sa as c,
  ca as l,
  ba as u
};
