import { defineComponent as M, watch as c, createElementBlock as X, openBlock as Y, normalizeClass as $, unref as ee, shallowRef as E, ref as g, onMounted as te, onUnmounted as oe, createElementVNode as re, pushScopeId as ae, popScopeId as ie } from "vue";
import se from "@amap/amap-jsapi-loader";
import le from "axios";
import { nanoid as me } from "nanoid";
import "../text-text-basic/index.mjs";
import "../text-table-basic/index.mjs";
import "../chart-other-gauge/index.mjs";
import "../chart-other-gauge-stage/index.mjs";
import "../chart-other-gauge-grade/index.mjs";
import "../chart-other-word-cloud/index.mjs";
import "../chart-other-liquidfill/index.mjs";
import "../chart-other-funnel/index.mjs";
import "../chart-other-force/index.mjs";
import "../chart-other-radar/index.mjs";
import "../chart-other-funnel-split/index.mjs";
import "../chart-other-funnel-contrast/index.mjs";
import "../chart-other-candlestick-basic/index.mjs";
import "../chart-other-candlestick-shanghai/index.mjs";
import "../chart-other-candlestick-demo/index.mjs";
import "../chart-other-heatmap/index.mjs";
import "../chart-other-force2/index.mjs";
import "../chart-other-graph-basic/index.mjs";
import "../chart-other-graph-basic2/index.mjs";
import "../chart-other-graph-calendar/index.mjs";
import "../chart-other-tree-line/index.mjs";
import "../chart-other-treemap-basic/index.mjs";
import "../chart-other-sunburst-basic/index.mjs";
import "../chart-other-sunburst-basic2/index.mjs";
import "../chart-other-sunburst-basic3/index.mjs";
import "../chart-other-sunburst-basic4/index.mjs";
import "../chart-other-sunburst-book/index.mjs";
import "../chart-other-sunburst-radius/index.mjs";
import "../chart-other-sunburst-flavors/index.mjs";
import "../chart-other-parallel-basic/index.mjs";
import "../chart-other-parallel-mul/index.mjs";
import "../chart-other-circular-graph/index.mjs";
import "../map-earth-basic/index.mjs";
import "../map-earth-cool-tech/index.mjs";
import "../map-earth-particle/index.mjs";
import "../map-earth-hacker/index.mjs";
import "../map-earth-fly-line/index.mjs";
import "../chart-other-grid-percentage/index.mjs";
import "../chart-other-radar-stack/index.mjs";
import "../chart-other-funnel2/index.mjs";
import "../chart-other-label-gauge/index.mjs";
import "../chart-other-theme-river/index.mjs";
import "../chart-other-tree/index.mjs";
import "../chart-other-treemap/index.mjs";
import "../commons-product-model/index.mjs";
import "../commons-vr-photo/index.mjs";
import "../commons-vr-video/index.mjs";
import "../commons-three-loader/index.mjs";
import "../commons-three-loader3/index.mjs";
import "../commons-loop-iterator/index.mjs";
import "../commons-gaussian-splatting-view/index.mjs";
import "../commons-babylon/index.mjs";
import "../commons-svg/index.mjs";
import "../commons-weather/index.mjs";
import "../commons-weather-dynamic/index.mjs";
import "../media-wavesurfer/index.mjs";
import "../interaction-tabs/index.mjs";
import "../interaction-tabs2/index.mjs";
import "../interaction-button/index.mjs";
import "../interaction-button-image/index.mjs";
import "../interaction-select/index.mjs";
import "../interaction-input/index.mjs";
import "../interaction-radio/index.mjs";
import "../interaction-slider/index.mjs";
import "../interaction-switch/index.mjs";
import "../interaction-data-picker/index.mjs";
import "../interaction-button-refresh/index.mjs";
import "../media-image/index.mjs";
import "../text-title/index.mjs";
import "../commons-qrcode/index.mjs";
import "../media-video/index.mjs";
import "../media-audio/index.mjs";
import "../text-real-time/index.mjs";
import "../media-carousel/index.mjs";
import "../media-carousel-slides/index.mjs";
import "../media-iframe-carousel/index.mjs";
import "../media-iframe/index.mjs";
import "../media-m3u8/index.mjs";
import "../media-m3u8-dynamic/index.mjs";
import "../media-audio-dynamic/index.mjs";
import "../media-video-dynamic/index.mjs";
import "../media-image-dynamic/index.mjs";
import "../media-iframe-dynamic/index.mjs";
import "../media-flv/index.mjs";
import "../commons-echarts/index.mjs";
import "../text-over-number/index.mjs";
import "../text-table-scroll/index.mjs";
import "../text-carousel/index.mjs";
import "../text-row-scroll/index.mjs";
import "../text-text-dynamic/index.mjs";
import "../text-count-down/index.mjs";
import "../graphical-circle/index.mjs";
import "../graphical-diamond/index.mjs";
import "../graphical-hexagon/index.mjs";
import "../graphical-isosceles-triangle/index.mjs";
import "../graphical-pentagon/index.mjs";
import "../graphical-rect/index.mjs";
import "../graphical-right-triangle/index.mjs";
import "../scene-map3d/index.mjs";
import "./index.mjs";
import "../scene-amap3d/index.mjs";
import "../scene-vr/index.mjs";
import "../scene-unity-iframe/index.mjs";
import "../scene-unity-webgl/index.mjs";
import "../scene-ue-iframe/index.mjs";
import "../scene-ue-shj/index.mjs";
import "../scene-default/index.mjs";
import "../interaction/tabs/index.mjs";
import "../interaction/tabs-icon/index.mjs";
import "../interaction/button/index.mjs";
import "../interaction/date-picker/src/date-picker/index.mjs";
import "../interaction/date-picker/src/date-picker-range/index.mjs";
import "../text/list/index.mjs";
import "../chart/src/bar/basic/index.mjs";
import "../chart/src/bar/animation/index.mjs";
import "../chart/src/bar/contrast/index.mjs";
import "../chart/src/bar/contrast2/index.mjs";
import "../chart/src/bar/contrast3/index.mjs";
import "../chart/src/bar/gradient-column-chart/index.mjs";
import "../chart/src/bar/horizontal/index.mjs";
import "../chart/src/bar/horizontal-stack/index.mjs";
import "../chart/src/bar/line-bar/index.mjs";
import "../chart/src/bar/line-bar2/index.mjs";
import "../chart/src/bar/loop/index.mjs";
import "../chart/src/bar/mini/index.mjs";
import "../chart/src/bar/polar/index.mjs";
import "../chart/src/bar/polar-stack/index.mjs";
import "../chart/src/bar/polar2/index.mjs";
import "../chart/src/bar/radius-circle/index.mjs";
import "../chart/src/bar/rank/index.mjs";
import "../chart/src/bar/segmented-progress/index.mjs";
import "../chart/src/bar/spire/index.mjs";
import "../chart/src/bar/stack/index.mjs";
import "../chart/src/bar/stack-line/index.mjs";
import "../chart/src/bar/stack2/index.mjs";
import "../chart/src/bar/stack3/index.mjs";
import "../chart/src/bar/staggered/index.mjs";
import "../chart/src/bar/three/index.mjs";
import "../chart/src/bar/waterfall/index.mjs";
import "../chart/src/bar/zebra/index.mjs";
import "../chart/src/line/area-gradient/index.mjs";
import "../chart/src/line/area-highlight/index.mjs";
import "../chart/src/line/area-highlight2/index.mjs";
import "../chart/src/line/basic/index.mjs";
import "../chart/src/line/bump/index.mjs";
import "../chart/src/line/dashed/index.mjs";
import "../chart/src/line/ladder/index.mjs";
import "../chart/src/line/logarithm/index.mjs";
import "../chart/src/line/multix/index.mjs";
import "../chart/src/line/polar-double/index.mjs";
import "../chart/src/line/rain-flow/index.mjs";
import "../chart/src/line/scale/index.mjs";
import "../chart/src/line/smooth/index.mjs";
import "../chart/src/line/smooth-area/index.mjs";
import "../chart/src/line/stack/index.mjs";
import "../chart/src/line/stack-area/index.mjs";
import "../chart/src/line/temp/index.mjs";
import "../chart/src/line/vertical/index.mjs";
import "../chart/src/map/basic/index.mjs";
import "../chart/src/map/bmap-basic/index.mjs";
import "../chart/src/map/bmap-heatmap/index.mjs";
import "../chart/src/map/bmap-rich/index.mjs";
import "../chart/src/map/customize/index.mjs";
import "../chart/src/map/lines/index.mjs";
import "../chart/src/map/scatter/index.mjs";
import "../chart/src/pie/3d/index.mjs";
import "../chart/src/pie/basic/index.mjs";
import "../chart/src/pie/basic2/index.mjs";
import "../chart/src/pie/customized/index.mjs";
import "../chart/src/pie/index/index.mjs";
import "../chart/src/pie/interval/index.mjs";
import "../chart/src/pie/legend-scroll/index.mjs";
import "../chart/src/pie/radius/index.mjs";
import "../chart/src/pie/rose/index.mjs";
import "../chart/src/pie/round/index.mjs";
import "../chart/src/pie/sunburst/index.mjs";
import "../chart/src/scatter/basic/index.mjs";
import "../chart/src/scatter/basic2/index.mjs";
import "../chart/src/scatter/bubble/index.mjs";
import "../chart/src/scatter/ripples/index.mjs";
import "../hj-componets/zv-hj-tree-list/index.mjs";
import "../hj-componets/zv-hj-model-resource/index.mjs";
import "../hj-componets/zv-hj-one-map-config/index.mjs";
import "../hj-componets/zv-hj-video-control/index.mjs";
import "../hj-componets/zv-hj-video-page/index.mjs";
import "../hj-componets/zv-hj-password-input/index.mjs";
import "../hj-componets/zv-hj-carousel/index.mjs";
import "../hj-componets/zv-hj-video-monitor/index.mjs";
import "../hj-componets/zv-hj-scene-amap2d/index.mjs";
import "../hj-componets/zv-hj-scene-amap3d/index.mjs";
import "../hj-componets/zv-hj-person-face/index.mjs";
import "../hj-componets/zv-hj-resource-type-phone/index.mjs";
import "../hj-componets/zv-hj-tree-list-phone/index.mjs";
import "../hj-componets/zv-hj-video-page-phone/index.mjs";
import "../hj-componets/zv-hj-model-resource-phone/index.mjs";
import "../hj-componets/zv-hj-bottom-suspend/index.mjs";
import "../hj-componets/zv-hj-pagination/index.mjs";
import "../hj-componets/zv-hj-password-input-phone/index.mjs";
/* empty css                        */
/* empty css                               */
import { SHJDatasourceV2 as pe } from "../../plugins/datasource/index.mjs";
import { SHJParseEvent as d } from "../../plugins/event/index.mjs";
import "lodash";
const ne = (y) => (ae("data-v-96673e79"), y = y(), ie(), y), ce = /* @__PURE__ */ ne(() => /* @__PURE__ */ re("div", {
  id: "zerov-amap-2d",
  class: "zerov-amap-container"
}, null, -1)), de = [
  ce
], ue = M({ name: "zv-scene-amap2d" }), sa = /* @__PURE__ */ M({
  ...ue,
  props: {
    basicOption: {},
    sources: {},
    useEvents: {},
    uuid: {}
  },
  emits: [
    "amap2d-scene-success",
    "amap2d-scene-zoomstart",
    "amap2d-scene-zoomend",
    "amap2d-scene-mapclick",
    "amap2d-scene-dragstart",
    "amap2d-scene-dragging",
    "amap2d-scene-dragend"
  ],
  setup(y, { expose: I, emit: A }) {
    const a = y, u = A;
    d.parseEvents(a.useEvents, "on-page-loaded", null);
    const B = () => {
      const i = E(), m = E(), C = g(!1), v = g(), b = g(), h = g(), n = g(), S = (t) => {
        L(), window._AMapSecurityConfig = {
          securityJsCode: t.basic.securityJsCode
        }, se.load({
          key: t.basic.key,
          // 申请好的Web端开发者Key，首次调用 load 时必填
          version: "2.0",
          // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
          Loca: {
            version: "2.0.0"
          },
          plugins: ["AMap.ControlBar", "AMap.ToolBar", "AMap.Scale", "AMap.HeatMap", "AMap.GeoJSON", "AMap.ImageLayer", "AMap.TileLayer"]
        }).then((e) => {
          n.value = e;
          const r = new n.value.createDefaultLayer({
            visible: !0,
            // 是否可见
            opacity: 1,
            // 透明度
            zIndex: 0
            // 叠加层级
          });
          i.value = new e.Map("zerov-amap-2d", {
            rotateEnable: t.config.rotateEnable,
            // 是否开启地图旋转交互 鼠标右键 + 鼠标画圈移动 或 键盘Ctrl + 鼠标画圈移动
            pitchEnable: t.config.pitchEnable,
            // 是否开启地图倾斜交互 鼠标右键 + 鼠标上下移动或键盘Ctrl + 鼠标上下移动
            zoomEnable: t.config.zoomEnable,
            dragEnable: t.config.dragEnable,
            zoom: t.config.zoom,
            // 初始化地图层级
            viewMode: "2D",
            // 开启3D视图,默认为关闭
            zooms: t.config.zooms,
            // 地图显示的缩放级别范围
            center: t.config.center,
            // 初始地图中心经纬度
            mapStyle: t.config.mapStyle,
            features: t.config.features,
            layers: [r]
          }), m.value = new window.Loca.Container({
            map: i.value
          }), h.value = new n.value.Scale({
            visible: t.config.plugin.scale.visible,
            position: {
              left: t.config.plugin.scale.position.left + "px",
              bottom: t.config.plugin.scale.position.bottom + "px"
            }
          }), i.value.addControl(h.value), v.value = new e.ControlBar({
            visible: t.config.plugin.controlBar.visible,
            showControlButton: t.config.plugin.controlBar.showControlButton,
            position: {
              right: t.config.plugin.controlBar.position.right + "px",
              top: t.config.plugin.controlBar.position.top + "px"
            }
          }), i.value.addControl(v.value), b.value = new e.ToolBar({
            visible: t.config.plugin.toolBar.visible,
            position: {
              left: t.config.plugin.toolBar.position.left + "px",
              top: t.config.plugin.toolBar.position.top + "px"
            }
          }), i.value.addControl(b.value), x(e), i.value.on("complete", () => {
            setTimeout(() => {
              C.value = !0, u("amap2d-scene-success"), d.parseEvents(a.useEvents, "amap2d-scene-success", null);
            }, 666);
          }), i.value.on("zoomstart", () => {
            u("amap2d-scene-zoomstart"), d.parseEvents(a.useEvents, "amap2d-scene-zoomstart", null);
          }), i.value.on("zoomend", () => {
            u("amap2d-scene-zoomend"), d.parseEvents(a.useEvents, "amap2d-scene-zoomend", null);
          }), i.value.on("click", (o) => {
            u("amap2d-scene-mapclick", o.lnglat), d.parseEvents(a.useEvents, "amap2d-scene-mapclick", o.lnglat);
          }), i.value.on("dragstart", (o) => {
            u("amap2d-scene-dragstart", o.lnglat), d.parseEvents(a.useEvents, "amap2d-scene-dragstart", o.lnglat);
          }), i.value.on("dragend", (o) => {
            u("amap2d-scene-dragend", o.lnglat), d.parseEvents(a.useEvents, "amap2d-scene-dragend", o.lnglat);
          });
        }).catch((e) => {
        });
      }, x = (t) => {
        a.sources && a.sources.length > 0 ? pe.parse({
          tId: a.uuid,
          sources: a.sources,
          callback: (r) => {
            try {
              const o = a.basicOption.widgets.find((s) => s._sourceId === r.id);
              o && o.type === "heatmap" && G(t, o, r.data[0].data), o && o.type === "dotlayers" && H(window.Loca, o, k(r.data[0].data)), o && o.type === "scatter" && Z(window.Loca, o, k(r.data[0].data)), o && o.type === "labelsLayer" && j(window.Loca, o, k(r.data[0].data));
            } catch {
            }
            a.basicOption.widgets.filter((o) => o.type === "boundary").forEach((o) => {
              O(t, o);
            });
          }
        }) : a.basicOption.widgets.filter((r) => r.type === "boundary").forEach((r) => {
          O(t, r);
        });
        const e = i.value.getLayers();
        for (let r = 0; r < e.length; r++)
          (e[r].type === "sketchTileLayer" || e[r]._opts.type === "sketchImageLayer") && i.value.removeLayer(e[r]);
        a.basicOption.widgets.filter((r) => r.type === "sketchTile").forEach((r) => {
          const o = N(r);
          o && i.value.addLayer(o);
        }), a.basicOption.widgets.filter((r) => r.type === "sketchImage").forEach((r) => {
          const o = F(r);
          i.value.addLayer(o);
        });
      }, P = (t) => {
        const r = t.slice(t.indexOf("(") + 1, t.lastIndexOf(")")).split(",").map((s) => s.trim()), o = {};
        for (let s = 1; s < r.length; s++) {
          const p = r[s].split(" "), l = p[0], z = parseFloat(p[1]) / 100, Q = Math.round(z * 100) / 100;
          o[Q] = l;
        }
        return o;
      }, N = (t) => {
        try {
          return new n.value.TileLayer({
            bounds: new n.value.Bounds(
              t.bounds[0],
              t.bounds[1]
            ),
            getTileUrl: function(r, o, s) {
              try {
                return t.url.replace("{z}", s).replace("{x}", r).replace("{y}", o);
              } catch {
              }
            },
            type: "sketchTileLayer",
            tileSize: t.tileSize,
            opacity: t.opacity,
            zIndex: t.zIndex,
            zooms: t.zooms
          });
        } catch {
        }
        return null;
      }, F = (t) => {
        try {
          return new n.value.ImageLayer({
            bounds: new n.value.Bounds(
              t.bounds[0],
              // 左下  手绘图左下相对于地图的经纬度
              t.bounds[1]
              // 右上  手绘图右上相对于地图的经纬度
            ),
            type: "sketchImageLayer",
            opacity: t.opacity,
            url: t.url,
            zIndex: t.zIndex,
            zooms: t.zooms
            // 设置可见级别，[最小级别，最大级别]
          });
        } catch {
        }
        return null;
      }, G = (t, e, r) => {
        try {
          const o = new t.HeatMap(i.value, {
            radius: e.radius,
            // 给定半径
            opacity: e.opacity,
            gradient: P(e.gradient)
          });
          setTimeout(() => {
            o.setDataSet({
              data: r,
              max: e.max
            });
          }, 0);
        } catch {
        }
      }, O = async (t, e) => {
        try {
          const r = await le.get(e.geojson);
          if (r.status === 200) {
            const o = new t.GeoJSON({
              geoJSON: r.data,
              getPolygon: function(s, p) {
                const l = new t.Polygon({
                  path: p,
                  zIndex: e.zIndex,
                  fillColor: e.style.fillColor,
                  // 填充色
                  strokeOpacity: e.style.strokeOpacity,
                  // 轮廓线透明度
                  fillOpacity: e.style.fillOpacity,
                  // 填充色透明度
                  strokeColor: e.style.strokeColor,
                  // 线条颜色
                  strokeWeight: e.style.strokeWeight,
                  // 线条宽度
                  strokeStyle: e.style.strokeStyle
                  // 线条样式
                });
                return l.on("mouseover", () => {
                  l.setOptions({
                    fillOpacity: e.mouseover.fillOpacity,
                    fillColor: e.mouseover.fillColor,
                    strokeOpacity: e.mouseover.strokeOpacity,
                    strokeColor: e.mouseover.strokeColor,
                    strokeStyle: e.mouseover.strokeStyle,
                    strokeWeight: e.mouseover.strokeWeight
                  });
                }), l.on("mouseout", () => {
                  l.setOptions({
                    fillColor: e.style.fillColor,
                    // 填充色
                    strokeOpacity: e.style.strokeOpacity,
                    // 轮廓线透明度
                    fillOpacity: e.style.fillOpacity,
                    // 填充色透明度
                    strokeColor: e.style.strokeColor,
                    // 线条颜色
                    strokeWeight: e.style.strokeWeight,
                    // 线条宽度
                    strokeStyle: e.style.strokeStyle
                    // 线条样式
                  });
                }), l;
              }
            });
            i.value.add(o);
          }
        } catch {
        }
      }, H = (t, e, r) => {
        try {
          const o = new t.GeoJSONSource({
            data: r
          }), s = new t.PointLayer({
            zIndex: e.zIndex,
            blend: e.blend,
            visible: e.visible,
            opacity: e.opacity
          }), p = {
            radius: e.style.radius,
            unit: e.style.unit,
            color: e.style.color,
            borderWidth: e.style.borderWidth,
            blurWidth: e.style.blurWidth,
            borderColor: e.style.borderColor
          };
          s.setSource(o), s.setStyle(p), m.value.add(s), s.addAnimate({
            key: e.animate.key,
            value: e.animate.value,
            duration: e.animate.duration,
            easing: e.animate.easing,
            transform: e.animate.transform,
            random: e.animate.random,
            delay: e.animate.delay,
            yoyo: e.animate.yoyo,
            repeat: e.animate.repeat
          });
        } catch {
        }
      }, Z = (t, e, r) => {
        try {
          const o = new t.GeoJSONSource({
            data: r
          }), s = new t.ScatterLayer({
            loca: m.value,
            zIndex: e.zIndex,
            opacity: e.opacity,
            visible: e.visible,
            zooms: e.zooms
          });
          s.setSource(o), s.setStyle({
            unit: e.style.unit,
            size: e.style.size,
            borderWidth: e.style.borderWidth,
            texture: e.style.texture,
            duration: e.style.duration,
            animate: e.style.animate
          }), m.value.animate.start();
        } catch {
        }
      }, j = (t, e, r) => {
        try {
          const o = new t.GeoJSONSource({
            data: r
          }), s = new t.LabelsLayer({
            eventSupport: !0,
            visible: e.visible,
            zooms: e.zooms,
            opacity: e.opacity,
            collision: e.collision,
            allowCollision: e.allowCollision,
            zIndex: e.zIndex
          });
          s.setSource(o), s.setStyle({
            icon: {
              image: e.icon.image,
              size: e.icon.size,
              clipOrigin: e.icon.clipOrigin,
              offset: e.icon.offset,
              anchor: e.icon.anchor
            },
            text: {
              // 每项配置都可使用回调函数来动态配置
              content: (p, l) => l.properties[e.text.content],
              zooms: e.text.zooms,
              offset: e.text.offset,
              direction: e.text.direction,
              style: {
                fontSize: e.text.style.fontSize,
                fillColor: e.text.style.fillColor,
                strokeColor: e.text.style.strokeColor,
                strokeWidth: e.text.style.strokeWidth,
                padding: e.text.style.padding,
                backgroundColor: e.text.style.backgroundColor,
                borderColor: e.text.style.borderColor,
                borderWidth: e.text.style.borderWidth,
                fold: e.text.style.fold,
                fontWeight: e.text.style.fontWeight
              }
            }
          }), s.on("complete", () => {
            const p = s.getLabelsLayer().getAllOverlays();
            for (const l of p)
              l.on("click", (z) => {
              }), l.on("mouseover", (z) => {
              }), l.on("mouseout", (z) => {
              });
          }), m.value.add(s);
        } catch {
        }
      }, k = (t) => {
        const e = {
          type: "FeatureCollection",
          features: []
        };
        return t.forEach((r, o) => {
          const s = {
            type: "Feature",
            id: me(),
            properties: {
              name: r.name || "",
              _draw_type: "point"
            },
            geometry: {
              type: "Point",
              coordinates: r.value
            }
          };
          e.features.push(s);
        }), e;
      }, R = (t) => {
        i.value.setFeatures(t.config.features), i.value.setStatus({
          dragEnable: t.config.dragEnable,
          zoomEnable: t.config.zoomEnable,
          rotateEnable: t.config.rotateEnable
        }), t.config.plugin.scale.visible ? h.value.show() : h.value.hide(), t.config.plugin.toolBar.visible ? b.value.show() : b.value.hide(), t.config.plugin.controlBar.visible ? v.value.show() : v.value.hide();
      }, V = () => {
        i.value.clearMap(), m.value.clear(), x(n.value);
      }, U = (t) => {
        i.value.setMapStyle(t.config.mapStyle);
      }, q = (t) => {
        i.value.setZoom(t.config.zoom, !1, 200);
      }, K = (t) => {
        i.value.setCenter(t.config.center, !1, 200);
      }, L = () => {
        i.value && (i.value.clearMap(), i.value.destroy(), i.value = null, m.value && (m.value.clear(), m.value.destroy(), m.value = null));
      };
      return te(() => {
        setTimeout(() => {
          S(a.basicOption);
        }, 0);
      }), oe(() => L()), {
        initAMap2d: S,
        updateAMapStyle: U,
        updateAMapConfig: R,
        updateAMapComponents: V,
        updateAMapZoom: q,
        updateAMapCenter: K,
        amap2d: i,
        loading: C,
        AMapPrototype: n
      };
    }, {
      initAMap2d: f,
      updateAMapStyle: W,
      updateAMapConfig: w,
      updateAMapComponents: _,
      updateAMapZoom: D,
      updateAMapCenter: T,
      loading: J
    } = B();
    return c(() => a.basicOption.config, () => {
      w(a.basicOption);
    }, { deep: !0 }), c(() => a.basicOption.config.zoom, () => {
      D(a.basicOption);
    }, { deep: !0 }), c(() => a.basicOption.config.center, () => {
      T(a.basicOption);
    }, { deep: !0 }), c(() => a.basicOption.widgets, () => {
      _();
    }, { deep: !0 }), c(() => a.basicOption.config.mapStyle, () => {
      W(a.basicOption);
    }, { deep: !0 }), c(() => a.basicOption.basic, () => {
      f(a.basicOption);
    }, { deep: !0 }), c(() => a.sources, () => {
      f(a.basicOption);
    }, { deep: !0 }), I({
      refresh: () => f(a.basicOption),
      refreshView: () => w(a.basicOption),
      refreshData: () => f(a.basicOption)
    }), (i, m) => (Y(), X("div", {
      class: $(["amap-2d-wrap", { show: ee(J) }])
    }, de, 2));
  }
});
export {
  sa as default
};
