import { reactive as Ee, shallowReactive as Ne, computed as he, watch as Se, onMounted as je, onUnmounted as He, onDeactivated as $e, toRefs as Fe, defineComponent as We, ref as Ke, resolveComponent as d, openBlock as S, createElementBlock as j, normalizeClass as I, unref as e, createVNode as l, withCtx as a, Fragment as we, renderList as Qe, createBlock as H, isRef as A, createTextVNode as oe, withDirectives as Ye, vShow as Je, createCommentVNode as ee, renderSlot as ot, Teleport as Xe, shallowRef as ut, watchEffect as st, createElementVNode as Le, toDisplayString as Ae } from "vue";
import { u as Ze, c as et, a as yt, d as ct, e as Ge, i as Pe, b as tt, f as dt, g as mt } from "./layer-select-Ba4IEiWY.js";
import { zondy as ft, SketchStyle as pt, SimpleFillSymbol as bt, SimpleLineSymbol as Be, SimpleMarkerSymbol as gt, Color as De, Geometry as Oe } from "@mapgis/webclient-common";
import { c as Ve, p as _t, b as Ue, d as Me } from "./vendor-D4icwOYu.js";
import { a as vt, b as Te, i as ht, _ as lt } from "./utils-B4smQbM-.js";
import "ant-design-vue";
const { SymbolType: ve } = ft.enum, ze = "position: absolute; width: 100%; height: 50%;", at = "position: absolute; width: 100%; height: 0;z-index: 1200;", rt = {
  inAttributeTable: !0,
  style: ze,
  position: "bottom-center"
}, nt = {
  // 点、线、区颜色
  pointColor: "rgba(24, 144, 255, 1)",
  // 点大小
  pointSize: 10,
  // 线颜色
  lineColor: "rgba(24, 144, 255, 1)",
  // 线宽度
  lineWidth: 2,
  // 面填充颜色
  fillColor: "rgba(24, 144, 255, 0.3)"
}, it = {
  // 显示模式，可取值markerHighlight：标注高亮模式、featureHighlight：要素高亮模式
  showMode: "markerHighlight",
  // 标注样式，用于标注高亮模式
  markerStyle: {
    // 默认图标，为空时使用内置的默认图标
    defaultImage: "",
    // 高亮图标，为空时使用内置的高亮图标
    highlightImage: "",
    // 图标宽度，为0时自动计算实际宽度
    width: 0,
    // 图标高度，为0时自动计算实际高度
    height: 0
  },
  // 弹窗样式
  popupStyle: {
    // 弹窗组件，可为Component类型或string类型，为null时使用内置的弹窗组件
    component: null,
    // 弹窗锚点，可取值如下：'top-left' | 'top-center' | 'top-right' | 'center-center' | 'center-left' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'
    // 默认为bottom-center
    anchor: "bottom-center",
    // 弹窗展示的属性名宽度，单位像素
    nameWidth: 100,
    // 弹窗展示的属性值宽度，单位像素
    valueWidth: 140
  },
  // 要素样式，仅仅用于要素高亮模式下的要素默认样式
  featureStyle: {
    // 标记，用于点图形
    marker: {
      type: ve.simpleMarker,
      // 颜色
      color: "rgba(24, 144, 255, 0.6)",
      // 大小
      size: 10,
      // 轮廓
      outline: {
        // 颜色
        color: "rgba(24, 144, 255, 1)",
        // 宽度
        width: 2
      }
    },
    // 线，用于线图形
    line: {
      type: ve.simpleLine,
      // 颜色
      color: "rgba(24, 144, 255, 1)",
      // 宽度
      width: 3
    },
    // 填充，用于圆、矩形和多边形图形
    fill: {
      type: ve.simpleFill,
      // 填充颜色
      color: "rgba(24, 144, 255, 0.6)",
      // 轮廓
      outline: {
        // 颜色
        color: "rgba(24, 144, 255, 1)",
        // 宽度
        width: 2
      }
    }
  },
  // 要素高亮样式，应用于标注高亮模式和要素高亮模式下的要素高亮
  highlightFeatureStyle: {
    // 标记，用于点图形
    marker: {
      type: ve.simpleMarker,
      // 颜色
      color: "rgba(1, 255, 255, 0.6)",
      // 大小
      size: 10,
      // 轮廓
      outline: {
        // 颜色
        color: "rgba(1, 255, 255, 1)",
        // 宽度
        width: 2
      }
    },
    // 线，用于线图形
    line: {
      type: ve.simpleLine,
      // 颜色
      color: "rgba(1, 255, 255, 1)",
      // 宽度
      width: 3
    },
    // 填充，用于圆、矩形和多边形图形
    fill: {
      type: ve.simpleFill,
      // 填充颜色
      color: "rgba(1, 255, 255, 0.6)",
      // 轮廓
      outline: {
        // 颜色
        color: "rgba(1, 255, 255, 1)",
        // 宽度
        width: 2
      }
    }
  }
}, St = {
  /**
   * @description 查询功能项列表
   */
  queryItems: {
    type: Array
  },
  /**
   * @description 查询图层选择模式，all：查询全部图层；selected：查询选择图层
   */
  queryLayerSelectMode: {
    type: String,
    default: "all",
    validator: (r) => ["all", "selected"].includes(r)
  },
  /**
   * @description 要查询的图层列表，如果为空，则允许用户选择要查询的图层列表
   */
  queryLayers: {
    type: Array
  },
  /**
   * @description 查询几何
   */
  geometry: {
    type: Object
  },
  /**
   * @description 是否显示查询区域
   */
  geometryVisible: {
    type: Boolean,
    default: !0
  },
  /**
   * @description 是否开启连续绘制
   */
  continueDrawing: {
    type: Boolean,
    default: !0
  },
  /**
   * @description 绘制样式
   */
  queryDrawStyle: {
    type: Object,
    default: () => ({
      ...nt
    })
  },
  /**
   * @description 显示样式
   */
  queryShowStyle: {
    type: Object,
    default: () => ({
      ...it
    })
  },
  /**
   * @description 缓冲距离，当查询类型为点和线时有效
   */
  bufferDistance: {
    type: Number,
    default: 5
  },
  /**
   * @description 缓冲单位，当查询类型为点和线时有效，可取值为像素、厘米、米、千米，默认为像素
   */
  bufferUnit: {
    type: String,
    default: "pixel",
    validator: (r) => ["pixel", "centimeter", "meter", "kilometer"].includes(r)
  },
  /**
   * @description 查询结果参数
   */
  queryResult: {
    type: Object,
    default: () => ({
      ...rt
    })
  }
}, wt = {
  // 查询功能项变化，扩展查询可能会基于这个增加特定的配置
  itemChange: (r, q) => ht(r) && Te(q),
  // 查询参数变化
  queryParamsChange: ({
    queryLayers: r,
    geometry: q,
    options: $
  }) => vt(r) && Te(q) && Te($),
  // 抛出清除事件，点击清除按钮，需要同步清除扩展查询绘制内容
  clear: () => !0
}, Ct = (r, q, $) => {
  const { viewState: x, zondy: L } = Ze(), {
    queryResult: _,
    attributeTableContainerElement: te,
    tryOpenAttributeTable: le,
    getAttributeTableMaxHeight: G,
    destroyAttributeTable: M,
    updateAttributeTableStyle: ue
  } = et(r), { Feature: C } = L, { LayerType: k, SubLayerType: c, GeometryType: w } = L.enum, { Projection: h, GeometryEngine: D } = L.geometry, {
    getGraphicsLayer: T,
    addPoint: ae,
    addCircle: re,
    addPolyline: W,
    addPolygon: B,
    addRectangle: K,
    asyncDrawWrapper: ne,
    removeAllDraw: Y,
    stopDraw: se,
    setSketchStyle: V
  } = yt(x, { editable: !1 }), o = Ee({
    // 查询功能项列表
    queryItems: r.queryItems,
    // 查询图层ID选择列表
    selectedQueryLayerIds: [],
    // 查询图层选择模式
    queryLayerSelectMode: r.queryLayerSelectMode,
    // 是否开启连续绘制
    continueDrawing: r.continueDrawing,
    // 是否显示查询区域
    geometryVisible: r.geometryVisible,
    // 绘制样式
    queryDrawStyle: r.queryDrawStyle,
    // 缓冲距离
    bufferDistance: r.bufferDistance,
    // 缓冲单位
    bufferUnit: r.bufferUnit,
    // 当前激活的查询项ID
    activeId: "",
    // 图层类型列表
    layerTypes: [k.ArcGISMapImage, k.IGSMapImage, k.IGSFeature],
    // 子图层类型列表
    sublayerTypes: [c.ArcGISMapImageSub, c.IGSMapImageSub],
    // 属性表组件是否收起
    attributeTableCollapsed: !1
  }), m = Ne({
    // 查询图层列表
    queryLayers: r.queryLayers,
    // 查询几何
    geometry: r.geometry,
    // 构建查询参数
    layersParams: null,
    // 构建的其他查询选项
    queryOtherOptions: null
  }), be = [
    { label: "像素", value: "pixel" },
    { label: "厘米", value: "centimeter" },
    { label: "米", value: "meter" },
    { label: "千米", value: "kilometer" }
  ];
  let U, Q;
  const ye = {
    ...nt
  }, p = [
    {
      // 查询类型id
      id: "point",
      // 类型标签，显示在要素查询面板中，鼠标放到图标上显示的提示信息
      label: "点",
      // 图标，显示在要素查询面板中的图标
      icon: '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="128" height="128"><defs><style/></defs><path d="M511.998 327.419c-101.94 0-184.576 82.642-184.576 184.577s82.642 184.582 184.576 184.582c101.946 0 184.581-82.647 184.581-184.582 0-101.942-82.635-184.577-184.581-184.577z"/></svg>',
      action: () => {
        v(ae);
      }
    },
    {
      id: "circle",
      label: "圆",
      icon: '<svg class="icon" viewBox="0 0 1151 1024" xmlns="http://www.w3.org/2000/svg" width="143.875" height="128"><defs><style/></defs><path d="M511.977 1024a511.977 511.977 0 1 1 503.018-607.973h72.957v191.991h-72.957A512.17 512.17 0 0 1 511.977 1024zm511.978-543.976h-95.996v63.997h95.996v-63.997zM863.962 608.018v-63.997l-296.563.064a63.997 63.997 0 1 1 0-64.06h296.563v-63.998h85.692a447.98 447.98 0 1 0 0 191.991h-85.692z"/></svg>',
      action: () => {
        v(re);
      }
    },
    {
      id: "rectangle",
      label: "矩形",
      icon: '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="128" height="128"><defs><style/></defs><path d="M256 864a96 96 0 1 1-96-96V256a96 96 0 1 1 96-96h512a96 96 0 1 1 96 96v512a96 96 0 1 1-96 96H256zm-24.448-64h560.896a96.64 96.64 0 0 1 7.552-7.552V231.552a96.64 96.64 0 0 1-7.552-7.552H231.552a96.64 96.64 0 0 1-7.552 7.552v560.896c2.624 2.368 5.12 4.928 7.552 7.552z"/></svg>',
      action: () => {
        v(K);
      }
    },
    {
      id: "polyline",
      label: "线",
      icon: '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="128" height="128"><defs><style/></defs><path d="M883.2 238.933c-53.333 0-98.133 44.8-98.133 98.134 0 19.2 6.4 36.266 14.933 51.2L680.533 507.733c-14.933-10.666-32-14.933-51.2-14.933-27.733 0-53.333 12.8-70.4 29.867l-87.466-51.2v-8.534c0-53.333-44.8-98.133-98.134-98.133s-96 44.8-96 98.133c0 14.934 4.267 27.734 8.534 40.534L192 608c-14.933-8.533-29.867-12.8-46.933-12.8-53.334 0-98.134 44.8-98.134 98.133s44.8 96 98.134 96 98.133-44.8 98.133-98.133c0-21.333-6.4-40.533-19.2-57.6l87.467-96c17.066 14.933 38.4 23.467 61.866 23.467 36.267 0 66.134-19.2 83.2-49.067l78.934 46.933c-4.267 10.667-6.4 19.2-6.4 29.867 0 53.333 44.8 98.133 98.133 98.133s98.133-44.8 98.133-98.133c0-19.2-6.4-36.267-14.933-51.2l119.467-119.467c14.933 10.667 32 14.934 51.2 14.934 53.333 0 98.133-44.8 98.133-98.134s-42.667-96-96-96z"/></svg>',
      action: () => {
        v(W);
      }
    },
    {
      id: "polygon",
      label: "多边形",
      icon: '<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="128" height="128"><defs><style/></defs><path d="M429.15 14.897c-45.775 0-82.85 37.076-82.85 82.85v2.61L136.562 232.38a83.223 83.223 0 0 0-38.815-10.357c-45.775 0-82.85 37.076-82.85 82.85 0 30.573 16.652 56.795 41.425 71.21v478.918c-24.773 14.416-41.426 40.597-41.426 71.21 0 45.775 37.076 82.85 82.85 82.85 30.573 0 56.795-16.653 71.21-41.425H689.3c14.416 24.772 40.597 41.425 71.21 41.425 45.775 0 82.85-37.075 82.85-82.85 0-16.487-4.556-32.353-12.966-45.32l101.036-203.19a83.058 83.058 0 0 0 10.357-164.417l-78.957-236.87c13.09-14.747 21.997-33.222 21.997-54.39 0-45.775-37.076-82.851-82.85-82.851-21.21 0-39.644 8.906-54.392 21.997L510.757 80.93a83.348 83.348 0 0 0-81.607-66.033zm54.39 144.989l236.87 77.672c6.338 33.347 32.726 59.694 66.032 66.032L865.4 539.175a82.436 82.436 0 0 0-21.997 55.675c0 17.15 5.344 33.348 14.25 46.604l-102.28 201.948a82.353 82.353 0 0 0-66.032 41.425H169a82.063 82.063 0 0 0-29.826-29.785V376.125c24.772-14.416 41.425-40.596 41.425-71.21v-2.61l209.736-132.022c11.6 6.131 24.731 10.357 38.816 10.357 20.878 0 39.768-7.913 54.39-20.713z"/></svg>',
      action: () => {
        v(B);
      }
    }
  ];
  !o.queryItems || o.queryItems.length === 0 ? o.queryItems = [...p] : o.queryItems = o.queryItems.map((t) => {
    const i = p.find((y) => y.id === t.id);
    return i ? { ...i, ...t } : t;
  }), (!o.queryDrawStyle || !Object.keys(o.queryDrawStyle).length) && (o.queryDrawStyle = { ...ye });
  const ce = he(() => ["point", "polyline"].includes(o.activeId));
  Se(
    () => r.queryLayers,
    () => {
      r.queryLayers ? m.queryLayers = [...r.queryLayers] : m.queryLayers = null;
    }
  ), Se(
    () => o.attributeTableCollapsed,
    (t) => {
      ue(
        t ? at : ze
      );
    }
  ), je(() => {
    s();
  }), He(() => {
    E();
  }), $e(() => {
    E();
  });
  function de(t) {
    o.activeId = t;
  }
  function J(t) {
    ke(), m.geometry = Ve(t), o.geometryVisible && ge();
  }
  function me() {
    const { geometry: t } = m;
    let i;
    if (t instanceof Oe)
      i = t;
    else
      try {
        i = Oe.fromJSON(t);
      } catch {
      }
    i && P(i);
  }
  function E() {
    o.activeId = "", ke(), m.geometry = null, se(), Y(), q("clear");
  }
  async function O(t) {
    o.activeId = t.id, q("itemChange", o.activeId, t), Y(), t.action();
  }
  function ie() {
    o.bufferDistance = r.bufferDistance;
  }
  function s() {
    f();
  }
  function f() {
    n();
  }
  function n() {
    V(qe());
  }
  function F(t, i) {
    if (o.continueDrawing && U) {
      const y = t.findGraphicById(U);
      y && t.remove(y), z();
    }
  }
  async function v(t, i) {
    if (i || (m.geometry = await ne(t), U = m.geometry.id, z(), Ie(t)), o.geometryVisible || Y(), P(m.geometry), o.continueDrawing) {
      if (t === ae) {
        m.geometry = await ne(t);
        const y = T(), b = y.findGraphicById(U);
        b && y.remove(b), z();
      } else
        m.geometry = await ne(t, F);
      U = m.geometry.id, Ie(t), v(t, !0);
    } else
      o.activeId = "";
  }
  function P(t) {
    let i, y;
    x.viewMode === "3D" ? (y = m.geometry.clone(), y = Oe.reduceDimension(y)) : y = t, m.queryLayers ? i = Ve(m.queryLayers) : o.queryLayerSelectMode === "all" ? i = fe() : i = g();
    const b = ct(L, y);
    m.layersParams = i.filter((R) => {
      const u = h.project(R.layer.extent, y.spatialReference), { xmax: Z, xmin: N, ymax: Re, ymin: xe } = u, Ce = _t([
        [
          [Number(N), Number(xe)],
          [Number(Z), Number(xe)],
          [Number(Z), Number(Re)],
          [Number(N), Number(Re)],
          [Number(N), Number(xe)]
        ]
      ]);
      if (b.geometry.type === w.point || b.geometry.type === w.lineString) {
        if (!Ue(Ce, b) || Me(Ce, b))
          return !0;
      } else if (!Ue(Ce, b) || Me(Ce, b) || Me(b, Ce))
        return !0;
    }), m.queryOtherOptions = {}, q("queryParamsChange", {
      queryLayers: m.layersParams,
      geometry: y,
      options: m.queryOtherOptions
    }), o.attributeTableCollapsed = !1, le();
  }
  function fe() {
    let t = $.value.getAllLayers();
    return t = pe(t), t;
  }
  function g() {
    let t = $.value.getSelectLayers();
    return t = pe(t), t;
  }
  function pe(t) {
    let i;
    const y = [];
    return x.viewMode === "3D" ? (i = m.geometry.clone(), i = Oe.reduceDimension(i)) : i = m.geometry, t.forEach((b) => {
      Pe(b, L) ? y.find((R) => R.id === b.layer.id) || y.push(b.layer) : y.find((R) => R.id === b.id) || y.push(b);
    }), y.map((b) => {
      const R = Ge(L, x, i, o.bufferDistance, o.bufferUnit), u = t.filter((N) => !!(Pe(N, L) && !["Group", "Group Layer"].includes(N.originLayerType) && N.layer.id === b.id)), Z = { layer: b, geometry: i, distance: R };
      return u.length > 0 && (Z.sublayers = u.map((N) => ({ layer: N, geometry: i, distance: R }))), Z;
    });
  }
  function ge() {
    const { geometry: t } = m, i = X(t);
    i && T().add(
      new C({
        // 几何
        geometry: t,
        // 样式
        symbol: i
      })
    );
  }
  function X(t) {
    const i = qe();
    let y;
    if (t)
      switch (t.type) {
        case w.point:
          y = i.vertexStyle;
          break;
        case w.circle:
          y = i.fillStyle;
          break;
        case w.extent:
          y = i.fillStyle;
          break;
        case w.lineString:
          y = i.lineStyle;
          break;
        case w.polygon:
          y = i.fillStyle;
          break;
      }
    return y;
  }
  function _e(t) {
    const { getMetersPerSpatialReference: i } = L.util, y = Ge(L, x, t, o.bufferDistance, o.bufferUnit), b = i(t.spatialReference);
    return y * b;
  }
  function Ie(t) {
    if (ae === t || W === t) {
      const i = T(), y = _e(m.geometry), b = D.buffer(m.geometry, y), R = X(b);
      Q = new C({
        // 几何
        geometry: b,
        // 样式
        symbol: R
      }), i.add(Q);
    }
  }
  function z() {
    Q && (T().remove(Q), Q = null);
  }
  function ke() {
    const { geometry: t } = m;
    t && Y();
  }
  function qe() {
    const { queryDrawStyle: t } = o;
    return new pt({
      vertexStyle: new gt({
        color: new De.fromColor(t.pointColor),
        size: t.pointSize
      }),
      lineStyle: new Be({
        color: new De.fromColor(t.lineColor),
        width: t.lineWidth,
        style: t.lineStyle
      }),
      fillStyle: new bt({
        color: new De.fromColor(t.fillColor),
        outline: new Be({
          color: new De.fromColor(t.lineColor),
          width: o.queryDrawStyle.lineWidth,
          style: o.queryDrawStyle.lineStyle
        })
      })
    });
  }
  return {
    ...Fe(o),
    ...Fe(m),
    queryResult: _,
    attributeTableContainerElement: te,
    // 下面是普通数据
    unitArrayOptions: be,
    // 下面是计算属性
    showBufferConfig: ce,
    // 下面是方法
    getAttributeTableMaxHeight: G,
    destroyAttributeTable: M,
    updateActiveQueryItem: de,
    updateGeometry: J,
    query: me,
    clearState: E,
    handleQueryClick: O,
    handleBufferUnitChange: ie
  };
}, Tt = /* @__PURE__ */ We({
  name: "MapgisFeatureQuery",
  __name: "feature-query",
  props: St,
  emits: wt,
  setup(r, { expose: q, emit: $ }) {
    const x = r, L = $, _ = tt("feature-query"), te = Ke(), {
      queryItems: le,
      selectedQueryLayerIds: G,
      queryLayerSelectMode: M,
      queryLayers: ue,
      geometryVisible: C,
      bufferDistance: k,
      bufferUnit: c,
      activeId: w,
      layerTypes: h,
      sublayerTypes: D,
      layersParams: T,
      queryOtherOptions: ae,
      queryResult: re,
      attributeTableContainerElement: W,
      attributeTableCollapsed: B,
      // 下面是普通数据
      unitArrayOptions: K,
      // 下面是计算属性
      showBufferConfig: ne,
      // 下面是方法
      getAttributeTableMaxHeight: Y,
      destroyAttributeTable: se,
      handleQueryClick: V,
      handleBufferUnitChange: o,
      updateActiveQueryItem: m,
      updateGeometry: be,
      query: U,
      clearState: Q
    } = Ct(x, L, te);
    return q({
      updateActiveQueryItem: m,
      updateGeometry: be,
      query: U,
      clearState: Q
    }), (ye, p) => {
      const ce = d("mapgis-ui-toolbar-command"), de = d("mapgis-ui-toolbar-command-group"), J = d("mapgis-ui-toolbar-space"), me = d("mapgis-ui-toolbar"), E = d("a-switch"), O = d("a-form-item"), ie = d("a-select-option"), s = d("a-select"), f = d("mapgis-layer-select"), n = d("mapgis-ui-input-number-panel"), F = d("a-input-number"), v = d("mapgis-ui-setting-form"), P = d("mapgis-ui-collapse-button"), fe = d("mapgis-attribute-table-composer");
      return S(), j("div", {
        class: I([e(_).b()])
      }, [
        l(me, {
          bordered: !1,
          size: "small"
        }, {
          default: a(() => [
            l(de, null, {
              default: a(() => [
                (S(!0), j(we, null, Qe(e(le), (g, pe) => (S(), H(ce, {
                  key: pe,
                  title: g.label,
                  icon: g.icon,
                  active: g.id === e(w),
                  size: "small",
                  onClick: (ge) => e(V)(g)
                }, null, 8, ["title", "icon", "active", "onClick"]))), 128))
              ]),
              _: 1
            }),
            l(J),
            l(de, null, {
              default: a(() => [
                l(ce, {
                  title: "清除绘制",
                  icon: "mapgis-clear",
                  onClick: e(Q)
                }, null, 8, ["onClick"])
              ]),
              _: 1
            })
          ]),
          _: 1
        }),
        l(v, {
          layout: "horizontal",
          itemLayout: "grid",
          labelCol: { span: 9 },
          size: "default",
          class: I(e(_).e("form"))
        }, {
          default: a(() => [
            l(O, { label: "保留绘制区域" }, {
              default: a(() => [
                l(E, {
                  checked: e(C),
                  "onUpdate:checked": p[0] || (p[0] = (g) => A(C) ? C.value = g : null),
                  size: "small"
                }, null, 8, ["checked"])
              ]),
              _: 1
            }),
            e(ue) ? ee("", !0) : (S(), j(we, { key: 0 }, [
              l(O, { label: "图层选择模式" }, {
                default: a(() => [
                  l(s, {
                    value: e(M),
                    "onUpdate:value": p[1] || (p[1] = (g) => A(M) ? M.value = g : null)
                  }, {
                    default: a(() => [
                      l(ie, { value: "all" }, {
                        default: a(() => [...p[7] || (p[7] = [
                          oe("查询全部图层", -1)
                        ])]),
                        _: 1
                      }),
                      l(ie, { value: "selected" }, {
                        default: a(() => [...p[8] || (p[8] = [
                          oe("查询选择图层", -1)
                        ])]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, ["value"])
                ]),
                _: 1
              }),
              Ye(l(O, { label: "查询图层" }, {
                default: a(() => [
                  l(f, {
                    ref_key: "layerSelectRef",
                    ref: te,
                    value: e(G),
                    "onUpdate:value": p[2] || (p[2] = (g) => A(G) ? G.value = g : null),
                    layerTypes: e(h),
                    sublayerTypes: e(D),
                    multiple: !0,
                    treeDefaultExpandAll: ""
                  }, null, 8, ["value", "layerTypes", "sublayerTypes"])
                ]),
                _: 1
              }, 512), [
                [Je, e(M) === "selected"]
              ])
            ], 64)),
            e(ne) ? (S(), j(we, { key: 1 }, [
              e(c) == "pixel" ? (S(), H(O, {
                key: 0,
                label: "缓冲距离"
              }, {
                default: a(() => [
                  l(n, {
                    value: e(k),
                    "onUpdate:value": p[3] || (p[3] = (g) => A(k) ? k.value = g : null),
                    size: "medium",
                    range: [1, 20],
                    rangeShow: !1,
                    step: 1,
                    slider: !0,
                    labelCol: { span: 0 },
                    wrapperCol: { span: 24 }
                  }, null, 8, ["value"])
                ]),
                _: 1
              })) : (S(), H(O, {
                key: 1,
                label: "缓冲距离"
              }, {
                default: a(() => [
                  l(F, {
                    value: e(k),
                    "onUpdate:value": p[4] || (p[4] = (g) => A(k) ? k.value = g : null),
                    min: 1,
                    step: 1
                  }, null, 8, ["value"])
                ]),
                _: 1
              })),
              l(O, { label: "缓冲单位" }, {
                default: a(() => [
                  l(s, {
                    value: e(c),
                    "onUpdate:value": p[5] || (p[5] = (g) => A(c) ? c.value = g : null),
                    options: e(K),
                    onChange: e(o)
                  }, null, 8, ["value", "options", "onChange"])
                ]),
                _: 1
              })
            ], 64)) : ee("", !0),
            ot(ye.$slots, "config", {}, void 0, !0)
          ]),
          _: 3
        }, 8, ["class"]),
        e(re).inAttributeTable && e(W) ? (S(), H(Xe, {
          key: 0,
          to: e(W)
        }, [
          l(P, {
            class: I([e(B) && e(_).em("attribute-table-container", "hide-button")]),
            collapsed: e(B),
            "onUpdate:collapsed": p[6] || (p[6] = (g) => A(B) ? B.value = g : null),
            direction: "top",
            ghost: ""
          }, null, 8, ["class", "collapsed"]),
          l(fe, {
            layersParams: e(T),
            queryOtherOptions: e(ae),
            queryShowStyle: ye.queryShowStyle,
            customMaxHeight: e(Y),
            closable: "",
            onClose: e(se)
          }, null, 8, ["layersParams", "queryOtherOptions", "queryShowStyle", "customMaxHeight", "onClose"])
        ], 8, ["to"])) : ee("", !0)
      ], 2);
    };
  }
}), zt = /* @__PURE__ */ lt(Tt, [["__scopeId", "data-v-8c68cddd"]]), It = {
  /**
   * @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
  },
  /**
   * @description 属性过滤条件
   */
  attributeFilter: {
    type: String,
    default: ""
  },
  /**
   * @description 是否显示属性过滤查询方式
   */
  showAttributeSearchType: {
    type: Boolean,
    default: !1
  },
  /**
   * @description 要素id过滤条件
   */
  featureIds: {
    type: Array,
    default: () => []
  },
  /**
   * @description 查询参数
   */
  layerQueryOptions: {
    type: Object
  },
  /**
   * @description 返回的字段列表
   */
  fieldList: {
    type: Array
  },
  /**
   * @description 显示样式
   */
  queryShowStyle: {
    type: Object,
    default: () => ({
      ...it
    })
  },
  /**
   * @description 查询结果参数
   */
  queryResult: {
    type: Object,
    default: () => ({
      ...rt
    })
  }
}, kt = {
  // 查询参数变化
  queryParamsChange: ({ queryLayer: r, options: q }) => Te(r) && Te(q)
}, qt = (r, q, $) => {
  const { zondy: x, map: L } = Ze(), {
    queryResult: _,
    attributeTableContainerElement: te,
    tryOpenAttributeTable: le,
    getAttributeTableMaxHeight: G,
    destroyAttributeTable: M,
    updateAttributeTableStyle: ue
  } = et(r), { LayerType: C, SubLayerType: k } = x.enum, c = Ee({
    // 选择的图层ID
    selectedLayerId: "",
    // 图层ID
    layerId: r.layerId,
    // 子图层ID
    sublayerId: r.sublayerId,
    // 属性过滤条件
    attributeFilter: r.attributeFilter,
    // 返回的字段列表
    fieldList: r.fieldList,
    // 要素id过滤条件
    featureIds: r.featureIds,
    // 是否显示属性过滤条件构造器
    showAttributeFilterBuilder: !1,
    // 属性值查询数量
    fieldValueCount: 300,
    // 字段信息表格数据
    fieldTableData: [],
    // 属性值表格数据
    fieldValueTableData: [],
    // 图层类型列表
    layerTypes: [C.ArcGISMapImage, C.IGSMapImage, C.IGSFeature],
    // 子图层类型列表
    sublayerTypes: [k.ArcGISMapImageSub, k.IGSMapImageSub],
    // 属性表组件是否收起
    attributeTableCollapsed: !1,
    // 要素id可选值
    valueOptions: [],
    // 查询类型
    searchType: "condition"
  }), w = Ne({
    // 构建查询参数
    layerParams: null,
    // 构建的其他查询选项
    queryOtherOptions: null
  }), h = ut(r.layer);
  let D, T;
  const ae = [
    {
      title: "字段名",
      dataIndex: "name",
      ellipsis: !0,
      key: "name",
      scopedSlots: { customRender: "name" }
    },
    {
      title: "类型",
      dataIndex: "type",
      ellipsis: !0,
      key: "type"
    }
  ], re = {
    BYTE: "字节数据类型",
    SHORT: "短整型",
    INT: "整型",
    LONG: "长整型",
    FLOAT: "浮点型",
    DOUBLE: "双精度型",
    STRING: "字符串类型",
    BINARY: "二进制类型",
    BOOLEAN: "布尔类型",
    GEOMETRY: "几何类型",
    TIMESTAMP: "时间戳",
    TIME: "时间类型",
    DATE: "日期类型"
  }, W = ["+", "-", "*", "/", "=", "%", ">=", "<=", ">", "<", "!=", "like", "and", "or", "not"], B = [
    {
      title: "属性值",
      dataIndex: "value",
      ellipsis: !0,
      key: "value"
    }
  ], K = he(() => h.value ? Pe(h.value, x) ? {
    title: h.value.title,
    tip: `${h.value.layer.title}/${h.value.title}`
  } : {
    title: h.value.title,
    tip: h.value.title
  } : null), ne = he(() => !!h.value), Y = he(() => !(r.layer || r.layerId && r.layerId !== "")), se = he(() => c.searchType === "condition"), V = he(() => c.searchType === "featureId");
  Se([() => r.layerId, () => r.sublayerId], () => {
    J();
  }), Se(
    () => r.layer,
    () => {
      h.value = r.layer, J();
    }
  ), Se(
    () => c.attributeTableCollapsed,
    (s) => {
      ue(
        s ? at : ze
      );
    }
  ), Se(
    () => c.searchType,
    () => {
      V.value && ie();
    }
  ), st(async () => {
    if (!h.value) {
      me();
      return;
    }
    me(), T = dt(h.value);
    const s = await T.getFields();
    V.value && await ie(), c.fieldTableData = s.filter((f) => re[f.type.toUpperCase()]).map((f) => ({
      ...f,
      type: re[f.type.toUpperCase()]
    }));
  }), je(() => {
    J();
  }), He(() => {
  }), $e(() => {
  });
  function o() {
  }
  function m() {
    c.attributeFilter = void 0, c.featureIds = [], h.value = $.value.getSelectLayers()[0], J();
  }
  function be() {
    c.showAttributeFilterBuilder = !c.showAttributeFilterBuilder;
  }
  function U() {
    const { fieldList: s, attributeFilter: f, featureIds: n } = c;
    w.layerParams = {
      layer: h.value,
      fieldList: s
    }, se.value ? w.layerParams.attributeFilter = f : w.layerParams.featureIds = n, w.queryOtherOptions = {}, q("queryParamsChange", { queryLayer: w.layerParams, options: w.queryOtherOptions }), c.attributeTableCollapsed = !1, le();
  }
  function Q(s) {
    D = s, E(s.name), O();
  }
  function ye(s) {
    E(s);
  }
  function p() {
    D && O();
  }
  function ce(s) {
    E(s.value);
  }
  function de() {
    c.attributeFilter = "";
  }
  function J() {
    h.value || mt({
      layerId: r.layerId,
      sublayerId: r.sublayerId,
      map: L,
      callback: (s) => {
        h.value = s;
      }
    });
  }
  function me() {
    c.fieldTableData = [], c.fieldValueTableData = [], D = null, T = null;
  }
  function E(s) {
    let { attributeFilter: f } = c;
    const { DOUBLE: n, INT: F, LONG: v, SHORT: P, FLOAT: fe } = re, g = D == null ? void 0 : D.type, pe = W.includes(s) && s !== "%", ge = [">=", "<=", ">", "<", "=", "!=", "like"], X = [n, F, v, P, fe];
    if (ge.includes(s) && (X.includes(g) ? s += " " : s += " ''"), !f)
      f = s;
    else if (f.trim().endsWith("'") && // 单引号结尾
    !pe) {
      const _e = f.split("'");
      _e[_e.length - 2] += s, f = _e.join("'");
    } else
      f += ` ${s}`;
    c.attributeFilter = f;
  }
  async function O() {
    const { fieldValueCount: s } = c;
    if (T) {
      const f = await T.queryFeatures({ pageNumber: 1, pageSize: s }), { name: n } = D;
      if (f) {
        let F = f.map((v) => v.attributes[n]).filter((v) => v);
        F = [...new Set(F)], c.fieldValueTableData = F.map((v, P) => ({ value: v, index: P }));
        return;
      }
    }
    c.fieldValueTableData = [];
  }
  async function ie() {
    if (!T) return;
    let s;
    [k.IGSMapImageSub, C.IGSFeature].includes(T.layer.type) ? s = "FID" : s = "objectid";
    const f = r.layerQueryOptions ? { ...r.layerQueryOptions } : {}, n = await T.queryFeaturesCount(f);
    f.pageSize = n;
    const F = await T.queryFeatures(f);
    c.valueOptions = F.map((v) => v.attributes[s]);
  }
  return {
    ...Fe(c),
    ...Fe(w),
    queryResult: _,
    attributeTableContainerElement: te,
    // 下面是普通数据
    feildTableColumn: ae,
    fieldValueTableColumn: B,
    symbols: W,
    // 下面是计算属性
    attributeQueryLayerTitlePair: K,
    attributeQueryEnabled: ne,
    showLayerSelect: Y,
    isConditionSearch: se,
    isFeatureIdSearch: V,
    // 下面是方法
    clearState: o,
    handleLayerSelectChange: m,
    handleShowAttributeFilterBuilderChange: be,
    handleAttributeQueryClick: U,
    handleClickFieldTable: Q,
    handleAddSqlStrClick: ye,
    handleGetFieldValueClick: p,
    handleClickFieldValueTable: ce,
    handleClearAttributeFilterClick: de,
    getAttributeTableMaxHeight: G,
    destroyAttributeTable: M
  };
}, Lt = ["title"], At = ["title"], Dt = /* @__PURE__ */ We({
  name: "MapgisAttributeQuery",
  __name: "attribute-query",
  props: It,
  emits: kt,
  setup(r, { expose: q, emit: $ }) {
    const x = r, L = $, _ = tt("attribute-query"), te = Ke(), {
      selectedLayerId: le,
      searchType: G,
      featureIds: M,
      valueOptions: ue,
      attributeFilter: C,
      fieldTableData: k,
      fieldValueCount: c,
      fieldValueTableData: w,
      showAttributeFilterBuilder: h,
      layerTypes: D,
      sublayerTypes: T,
      layerParams: ae,
      queryOtherOptions: re,
      queryResult: W,
      attributeTableContainerElement: B,
      attributeTableCollapsed: K,
      // 下面是普通数据
      feildTableColumn: ne,
      fieldValueTableColumn: Y,
      symbols: se,
      // 下面是计算属性
      attributeQueryLayerTitlePair: V,
      attributeQueryEnabled: o,
      showLayerSelect: m,
      isConditionSearch: be,
      isFeatureIdSearch: U,
      // 下面是方法
      clearState: Q,
      handleLayerSelectChange: ye,
      handleShowAttributeFilterBuilderChange: p,
      handleAttributeQueryClick: ce,
      handleClickFieldTable: de,
      handleAddSqlStrClick: J,
      handleGetFieldValueClick: me,
      handleClickFieldValueTable: E,
      handleClearAttributeFilterClick: O,
      getAttributeTableMaxHeight: ie,
      destroyAttributeTable: s
    } = qt(x, L, te);
    return q({
      clearState: Q
    }), (f, n) => {
      const F = d("mapgis-layer-select"), v = d("a-form-item"), P = d("a-select-option"), fe = d("a-select"), g = d("mapgis-ui-iconfont"), pe = d("mapgis-ui-group-tab"), ge = d("a-textarea"), X = d("a-button"), _e = d("mapgis-ui-setting-footer"), Ie = d("mapgis-ui-setting-form"), z = d("a-col"), ke = d("a-input-number"), qe = d("a-tooltip"), t = d("a-flex"), i = d("a-row"), y = d("a-table"), b = d("mapgis-ui-collapse-button"), R = d("mapgis-attribute-table-composer");
      return S(), j("div", {
        class: I([e(_).b()])
      }, [
        l(Ie, {
          layout: "horizontal",
          itemLayout: "grid",
          size: "default",
          class: I(e(_).e("form"))
        }, {
          default: a(() => [
            Ye(Le("div", null, [
              e(m) ? (S(), H(v, {
                key: 0,
                label: "查询图层"
              }, {
                default: a(() => [
                  l(F, {
                    ref_key: "layerSelectRef",
                    ref: te,
                    value: e(le),
                    "onUpdate:value": n[0] || (n[0] = (u) => A(le) ? le.value = u : null),
                    layerTypes: e(D),
                    sublayerTypes: e(T),
                    multiple: !1,
                    treeDefaultExpandAll: "",
                    onChange: e(ye)
                  }, null, 8, ["value", "layerTypes", "sublayerTypes", "onChange"])
                ]),
                _: 1
              })) : (S(), H(v, {
                key: 1,
                label: "查询图层"
              }, {
                default: a(() => [
                  e(V) ? (S(), j("div", {
                    key: 0,
                    title: e(V).tip,
                    class: I(e(_).e("layer-name"))
                  }, Ae(e(V).title), 11, Lt)) : ee("", !0)
                ]),
                _: 1
              })),
              f.showAttributeSearchType ? (S(), H(v, {
                key: 2,
                label: "过滤方式",
                tooltip: "两种查询方式不能同时生效，只生效当前选择的过滤的方式"
              }, {
                default: a(() => [
                  l(fe, {
                    value: e(G),
                    "onUpdate:value": n[1] || (n[1] = (u) => A(G) ? G.value = u : null)
                  }, {
                    default: a(() => [
                      l(P, { value: "condition" }, {
                        default: a(() => [...n[8] || (n[8] = [
                          oe("属性条件", -1)
                        ])]),
                        _: 1
                      }),
                      l(P, { value: "featureId" }, {
                        default: a(() => [...n[9] || (n[9] = [
                          oe("要素ID", -1)
                        ])]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }, 8, ["value"])
                ]),
                _: 1
              })) : ee("", !0),
              e(be) ? (S(), j(we, { key: 3 }, [
                l(pe, {
                  title: "查询条件",
                  isTitleBold: !1
                }, {
                  handle: a(() => [
                    l(g, {
                      type: "mapgis-bianji",
                      class: I([e(_).e("filter-edit"), !e(o) && e(_).em("filter-edit", "disabled")]),
                      onClick: n[2] || (n[2] = (u) => e(o) && e(p)())
                    }, null, 8, ["class"])
                  ]),
                  _: 1
                }),
                l(ge, {
                  value: e(C),
                  "onUpdate:value": n[3] || (n[3] = (u) => A(C) ? C.value = u : null),
                  "auto-size": { minRows: 4, maxRows: 4 },
                  placeholder: "请输入查询条件",
                  "allow-clear": ""
                }, null, 8, ["value"])
              ], 64)) : ee("", !0),
              e(U) ? (S(), H(v, {
                key: 4,
                label: "要素ID",
                tooltip: "根据要素唯一ID快速查询"
              }, {
                default: a(() => [
                  l(fe, {
                    value: e(M),
                    "onUpdate:value": n[4] || (n[4] = (u) => A(M) ? M.value = u : null),
                    placeholder: "请输入或选择查询值",
                    mode: "multiple",
                    allowClear: "",
                    disabled: !e(ue).length,
                    class: I(e(_).e("options"))
                  }, {
                    default: a(() => [
                      (S(!0), j(we, null, Qe(e(ue), (u) => (S(), H(P, {
                        key: u,
                        title: u
                      }, {
                        default: a(() => [
                          oe(Ae(u), 1)
                        ]),
                        _: 2
                      }, 1032, ["title"]))), 128))
                    ]),
                    _: 1
                  }, 8, ["value", "disabled", "class"])
                ]),
                _: 1
              })) : ee("", !0),
              l(_e, { divider: !1 }, {
                default: a(() => [
                  l(X, {
                    type: "primary",
                    block: "",
                    disabled: !e(o),
                    onClick: e(ce)
                  }, {
                    default: a(() => [...n[10] || (n[10] = [
                      oe(" 查询 ", -1)
                    ])]),
                    _: 1
                  }, 8, ["disabled", "onClick"])
                ]),
                _: 1
              })
            ], 512), [
              [Je, !e(h)]
            ])
          ]),
          _: 1
        }, 8, ["class"]),
        e(h) ? (S(), H(t, {
          key: 0,
          vertical: "",
          class: I(e(_).e("filter-builder"))
        }, {
          default: a(() => [
            l(i, { gutter: 6 }, {
              default: a(() => [
                l(z, { span: 14 }, {
                  default: a(() => [...n[11] || (n[11] = [
                    Le("b", null, "字段信息", -1)
                  ])]),
                  _: 1
                }),
                l(z, { span: 10 }, {
                  default: a(() => [
                    l(t, {
                      gap: "small",
                      justify: "space-between"
                    }, {
                      default: a(() => [
                        l(ke, {
                          size: "small",
                          value: e(c),
                          "onUpdate:value": n[5] || (n[5] = (u) => A(c) ? c.value = u : null),
                          min: 1,
                          max: 1e5,
                          style: { width: "100%" }
                        }, null, 8, ["value"]),
                        l(qe, { title: "获取属性值" }, {
                          default: a(() => [
                            l(X, {
                              type: "primary",
                              size: "small",
                              onClick: e(me)
                            }, {
                              icon: a(() => [
                                l(g, { type: "mapgis-sync" })
                              ]),
                              _: 1
                            }, 8, ["onClick"])
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }),
            l(i, {
              gutter: 6,
              class: I(e(_).e("row-content"))
            }, {
              default: a(() => [
                l(z, { span: 14 }, {
                  default: a(() => [
                    l(y, {
                      size: "small",
                      pagination: !1,
                      columns: e(ne),
                      "data-source": e(k),
                      scroll: { y: 120 },
                      rowKey: (u) => u.name,
                      customRow: (u) => ({
                        onClick: (Z) => e(de)(u)
                      })
                    }, {
                      bodyCell: a(({ text: u, record: Z, column: N }) => [
                        N.dataIndex === "name" ? (S(), j("span", {
                          key: 0,
                          title: Z.alias || u
                        }, Ae(u), 9, At)) : ee("", !0)
                      ]),
                      _: 1
                    }, 8, ["columns", "data-source", "rowKey", "customRow"])
                  ]),
                  _: 1
                }),
                l(z, { span: 10 }, {
                  default: a(() => [
                    l(y, {
                      size: "small",
                      pagination: !1,
                      columns: e(Y),
                      "data-source": e(w),
                      scroll: { y: 120 },
                      rowKey: (u) => u.index,
                      customRow: (u) => ({
                        onClick: (Z) => e(E)(u)
                      })
                    }, null, 8, ["columns", "data-source", "rowKey", "customRow"])
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["class"]),
            l(i, {
              gutter: 6,
              class: I(e(_).e("row-content"))
            }, {
              default: a(() => [
                l(z, { span: 24 }, {
                  default: a(() => [...n[12] || (n[12] = [
                    Le("b", null, "运算符", -1)
                  ])]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["class"]),
            l(i, {
              class: I(e(_).e("row-content"))
            }, {
              default: a(() => [
                l(z, { span: 24 }, {
                  default: a(() => [
                    l(t, {
                      wrap: "wrap",
                      align: "center"
                    }, {
                      default: a(() => [
                        (S(!0), j(we, null, Qe(e(se), (u) => (S(), j("div", {
                          key: u,
                          class: I(e(_).e("symbol-container"))
                        }, [
                          l(X, {
                            type: "primary",
                            class: I(e(_).e("symbol-button")),
                            size: "small",
                            onClick: (Z) => e(J)(u)
                          }, {
                            default: a(() => [
                              oe(Ae(u), 1)
                            ]),
                            _: 2
                          }, 1032, ["class", "onClick"])
                        ], 2))), 128))
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["class"]),
            l(i, {
              gutter: 6,
              class: I(e(_).e("row-content"))
            }, {
              default: a(() => [
                l(z, { span: 24 }, {
                  default: a(() => [...n[13] || (n[13] = [
                    Le("b", null, "查询条件", -1)
                  ])]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["class"]),
            l(i, {
              gutter: 6,
              class: I(e(_).e("row-content"))
            }, {
              default: a(() => [
                l(z, { span: 24 }, {
                  default: a(() => [
                    l(t, {
                      gap: "small",
                      vertical: "",
                      flex: "1"
                    }, {
                      default: a(() => [
                        l(t, { flex: "1" }, {
                          default: a(() => [
                            l(ge, {
                              value: e(C),
                              "onUpdate:value": n[6] || (n[6] = (u) => A(C) ? C.value = u : null),
                              placeholder: "请选择条件",
                              "auto-size": { minRows: 3, maxRows: 3 }
                            }, null, 8, ["value"])
                          ]),
                          _: 1
                        }),
                        l(t, {
                          gap: "small",
                          justify: "end"
                        }, {
                          default: a(() => [
                            l(X, {
                              type: "primary",
                              onClick: e(p)
                            }, {
                              default: a(() => [...n[14] || (n[14] = [
                                oe(" 确定 ", -1)
                              ])]),
                              _: 1
                            }, 8, ["onClick"]),
                            l(X, {
                              type: "primary",
                              danger: "",
                              onClick: e(O)
                            }, {
                              default: a(() => [...n[15] || (n[15] = [
                                oe(" 清除 ", -1)
                              ])]),
                              _: 1
                            }, 8, ["onClick"])
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["class"])
          ]),
          _: 1
        }, 8, ["class"])) : ee("", !0),
        e(W).inAttributeTable && e(B) ? (S(), H(Xe, {
          key: 1,
          to: e(B)
        }, [
          l(b, {
            class: I([e(K) && e(_).em("attribute-table-container", "hide-button")]),
            collapsed: e(K),
            "onUpdate:collapsed": n[7] || (n[7] = (u) => A(K) ? K.value = u : null),
            direction: "top",
            ghost: ""
          }, null, 8, ["class", "collapsed"]),
          l(R, {
            layerParams: e(ae),
            queryOtherOptions: e(re),
            queryShowStyle: f.queryShowStyle,
            customMaxHeight: e(ie),
            closable: "",
            onClose: e(s)
          }, null, 8, ["layerParams", "queryOtherOptions", "queryShowStyle", "customMaxHeight", "onClose"])
        ], 8, ["to"])) : ee("", !0)
      ], 2);
    };
  }
}), Rt = /* @__PURE__ */ lt(Dt, [["__scopeId", "data-v-f4a3bd54"]]);
export {
  Rt as A,
  zt as F,
  at as a,
  ze as b,
  it as c,
  rt as d,
  kt as e,
  It as f,
  nt as g,
  wt as h,
  St as i,
  Ct as j,
  qt as u
};
