import { defineComponent as A, computed as q, shallowRef as M, ref as y, onMounted as Q, nextTick as X, onUnmounted as Y, watch as p, createElementBlock as C, openBlock as S, createElementVNode as L, createCommentVNode as W, normalizeClass as $, toDisplayString as _ } from "vue";
import ee from "@amap/amap-jsapi-loader";
import te from "axios";
import { nanoid as re } from "nanoid";
/* empty css                                     */
/* empty css                                     */
import "../../../Interaction/components/Tabs/index.mjs";
import "../../../Interaction/components/Tabs-icon/index.mjs";
import "../../../Interaction/components/Button/index.mjs";
import "../../../Interaction/components/DatePicker/index.mjs";
import "../../../Interaction/components/DatePickerRange/index.mjs";
import "../../../Interaction/components/Switch/index.mjs";
import "../../../Interaction/components/Input/index.mjs";
import "../../../Interaction/components/Select/index.mjs";
import "../../../Interaction/components/Slider/index.mjs";
import "../../../Text/components/List/index.mjs";
import "../../../Text/components/Text/index.mjs";
import "../../../Text/components/TextDynamic/index.mjs";
import "../../../Text/components/TableBasic/index.mjs";
import "../../../Text/components/TableScroll/index.mjs";
import "../../../Text/components/RowScroll/index.mjs";
import "../../../Text/components/RealTime/index.mjs";
import "../../../Text/components/OverNumber/index.mjs";
import "../../../Text/components/CountDown/index.mjs";
import "../../../Text/components/TextCarousel/index.mjs";
import "../../../Media/components/Audio/index.mjs";
import "../../../Media/components/Video/index.mjs";
import "../../../Media/components/Carousel/index.mjs";
import "../../../Media/components/Flv/index.mjs";
import "../../../Media/components/Iframe/index.mjs";
import "../../../Media/components/IframeCarousel/index.mjs";
import "../../../Media/components/Image/index.mjs";
import "../../../Media/components/ImageDynamic/index.mjs";
import "../../../Media/components/M3u8/index.mjs";
import "../../../Media/components/Wavesurfer/index.mjs";
import "../../../Media/components/Weather/index.mjs";
import "../../../Media/components/Qrcode/index.mjs";
import "../../../Chart/components/bar/basic/index.mjs";
import "../../../Chart/components/bar/animation/index.mjs";
import "../../../Chart/components/bar/contrast/index.mjs";
import "../../../Chart/components/bar/contrast2/index.mjs";
import "../../../Chart/components/bar/contrast3/index.mjs";
import "../../../Chart/components/bar/gradient-column-chart/index.mjs";
import "../../../Chart/components/bar/horizontal/index.mjs";
import "../../../Chart/components/bar/horizontal-stack/index.mjs";
import "../../../Chart/components/bar/line-bar/index.mjs";
import "../../../Chart/components/bar/line-bar2/index.mjs";
import "../../../Chart/components/bar/loop/index.mjs";
import "../../../Chart/components/bar/mini/index.mjs";
import "../../../Chart/components/bar/polar/index.mjs";
import "../../../Chart/components/bar/polar-stack/index.mjs";
import "../../../Chart/components/bar/polar2/index.mjs";
import "../../../Chart/components/bar/radius-circle/index.mjs";
import "../../../Chart/components/bar/rank/index.mjs";
import "../../../Chart/components/bar/segmented-progress/index.mjs";
import "../../../Chart/components/bar/spire/index.mjs";
import "../../../Chart/components/bar/stack/index.mjs";
import "../../../Chart/components/bar/stack-line/index.mjs";
import "../../../Chart/components/bar/stack2/index.mjs";
import "../../../Chart/components/bar/stack3/index.mjs";
import "../../../Chart/components/bar/staggered/index.mjs";
import "../../../Chart/components/bar/three/index.mjs";
import "../../../Chart/components/bar/waterfall/index.mjs";
import "../../../Chart/components/bar/zebra/index.mjs";
import "../../../Chart/components/line/area-gradient/index.mjs";
import "../../../Chart/components/line/area-highlight/index.mjs";
import "../../../Chart/components/line/area-highlight2/index.mjs";
import "../../../Chart/components/line/basic/index.mjs";
import "../../../Chart/components/line/bump/index.mjs";
import "../../../Chart/components/line/dashed/index.mjs";
import "../../../Chart/components/line/ladder/index.mjs";
import "../../../Chart/components/line/logarithm/index.mjs";
import "../../../Chart/components/line/multix/index.mjs";
import "../../../Chart/components/line/polar-double/index.mjs";
import "../../../Chart/components/line/rain-flow/index.mjs";
import "../../../Chart/components/line/scale/index.mjs";
import "../../../Chart/components/line/smooth/index.mjs";
import "../../../Chart/components/line/smooth-area/index.mjs";
import "../../../Chart/components/line/stack/index.mjs";
import "../../../Chart/components/line/stack-area/index.mjs";
import "../../../Chart/components/line/temp/index.mjs";
import "../../../Chart/components/line/vertical/index.mjs";
import "../../../Chart/components/map/basic/index.mjs";
import "../../../Chart/components/map/bmap-basic/index.mjs";
import "../../../Chart/components/map/bmap-heatmap/index.mjs";
import "../../../Chart/components/map/bmap-rich/index.mjs";
import "../../../Chart/components/map/customize/index.mjs";
import "../../../Chart/components/map/lines/index.mjs";
import "../../../Chart/components/map/scatter/index.mjs";
import "../../../Chart/components/pie/3d/index.mjs";
import "../../../Chart/components/pie/basic/index.mjs";
import "../../../Chart/components/pie/basic2/index.mjs";
import "../../../Chart/components/pie/customized/index.mjs";
import "../../../Chart/components/pie/index/index.mjs";
import "../../../Chart/components/pie/interval/index.mjs";
import "../../../Chart/components/pie/legend-scroll/index.mjs";
import "../../../Chart/components/pie/radius/index.mjs";
import "../../../Chart/components/pie/rose/index.mjs";
import "../../../Chart/components/pie/round/index.mjs";
import "../../../Chart/components/pie/sunburst/index.mjs";
import "../../../Chart/components/scatter/basic/index.mjs";
import "../../../Chart/components/scatter/basic2/index.mjs";
import "../../../Chart/components/scatter/bubble/index.mjs";
import "../../../Chart/components/scatter/ripples/index.mjs";
import "../../../Chart/components/other/candlestick-basic/index.mjs";
import "../../../Chart/components/other/sunburst-basic/index.mjs";
import "../../../Chart/components/other/sunburst-basic2/index.mjs";
import "../../../Chart/components/other/sunburst-basic3/index.mjs";
import "../../../Chart/components/other/sunburst-basic4/index.mjs";
import "../../../Chart/components/other/sunburst-book/index.mjs";
import "../../../Chart/components/other/sunburst-flavors/index.mjs";
import "../../../Chart/components/other/sunburst-radius/index.mjs";
import "../../../Chart/components/other/funnel/index.mjs";
import "../../../Chart/components/other/funnel-contrast/index.mjs";
import "../../../Chart/components/other/funnel-split/index.mjs";
import "../../../Chart/components/other/funnel2/index.mjs";
import "../../../Chart/components/other/force/index.mjs";
import "../../../Chart/components/other/force2/index.mjs";
import "../../../Chart/components/other/gauge/index.mjs";
import "../../../Chart/components/other/gauge-grade/index.mjs";
import "../../../Chart/components/other/gauge-stage/index.mjs";
import "../../../Chart/components/other/graph-basic/index.mjs";
import "../../../Chart/components/other/graph-basic2/index.mjs";
import "../../../Chart/components/other/graph-calendar/index.mjs";
import "../../../Chart/components/other/circular-graph/index.mjs";
import "../../../Chart/components/other/heatmap/index.mjs";
import "../../../Chart/components/other/liquidfill/index.mjs";
import "../../../Chart/components/other/parallel-basic/index.mjs";
import "../../../Chart/components/other/parallel-mul/index.mjs";
import "../../../Chart/components/other/radar-stack/index.mjs";
import "../../../Chart/components/other/tree/index.mjs";
import "../../../Chart/components/other/tree-line/index.mjs";
import "../../../Chart/components/other/word-cloud/index.mjs";
import "../../../Chart/components/other/treemap/index.mjs";
import "../../../Chart/components/other/treemap-basic/index.mjs";
import "../../../Chart/components/other/label-gauge/index.mjs";
import "../../../Chart/components/other/grid-percentage/index.mjs";
import "../../../Chart/components/other/radar/index.mjs";
import "../../../Commons/components/CustomComponentRender/index.mjs";
import "../../../Commons/components/Graphical/index.mjs";
import "../../../Commons/components/Svg/index.mjs";
import "../../../Commons/components/ModelViewer/index.mjs";
import "../../../Commons/components/VrVideo/index.mjs";
import "../../../Commons/components/VrPhoto/index.mjs";
import "../../../Commons/components/Babylon/index.mjs";
import "../../../Commons/components/Echarts/index.mjs";
import "../../../Commons/components/GSViewer/index.mjs";
import "./index.mjs";
import "../Amap3d/index.mjs";
import "../Default/index.mjs";
import "../Map2d/index.mjs";
import "../Map3d/index.mjs";
import "../UeIframe/index.mjs";
import "../UeShj/index.mjs";
import "../UnityIframe/index.mjs";
import "../UnityWebgl/index.mjs";
import "../Vr/index.mjs";
import "../Earth/index.mjs";
import { SHJDatasourceV2 as ae } from "../../../../commons/plugins/datasource/index.mjs";
import { SHJParseEvent as v } from "../../../../commons/plugins/event/index.mjs";
import "lodash";
import { upgradeAmap2d as oe } from "./version.mjs";
const le = { class: "relative w-full h-full" }, se = {
  key: 0,
  class: "empty-wrap"
}, ie = {
  key: 0,
  class: "iconfont shj-gaodeditu",
  style: { "font-size": "48px" }
}, ne = { class: "text-gray-500" }, ce = A({ name: "ShjAmap2d" }), ma = /* @__PURE__ */ A({
  ...ce,
  props: {
    option: {},
    sources: {},
    useEvents: {}
  },
  emits: [
    "amap2d-scene-success",
    "amap2d-scene-zoomstart",
    "amap2d-scene-zoomend",
    "amap2d-scene-mapclick",
    "amap2d-scene-dragstart",
    "amap2d-scene-dragging",
    "amap2d-scene-dragend"
  ],
  setup(c, { expose: D, emit: T }) {
    const s = q(() => oe(c.option)), d = T, o = M(), m = M(), g = y(!1), h = y(), b = y(), k = y(), u = y(), w = y(""), f = (t) => {
      I(), window._AMapSecurityConfig = {
        securityJsCode: t.basic.securityJsCode
      }, ee.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) => {
        u.value = e;
        const r = new u.value.createDefaultLayer({
          visible: !0,
          // 是否可见
          opacity: 1,
          // 透明度
          zIndex: 0
          // 叠加层级
        });
        o.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: o.value
        }), k.value = new u.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"
          }
        }), o.value.addControl(k.value), h.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"
          }
        }), o.value.addControl(h.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"
          }
        }), o.value.addControl(b.value), E(e), o.value.on("complete", () => {
          setTimeout(() => {
            g.value = !0, d("amap2d-scene-success"), v.parseEvents(c.useEvents, "amap2d-scene-success", null);
          }, 666);
        }), o.value.on("zoomstart", () => {
          d("amap2d-scene-zoomstart"), v.parseEvents(c.useEvents, "amap2d-scene-zoomstart", null);
        }), o.value.on("zoomend", () => {
          d("amap2d-scene-zoomend"), v.parseEvents(c.useEvents, "amap2d-scene-zoomend", null);
        }), o.value.on("click", (a) => {
          d("amap2d-scene-mapclick", a.lnglat), v.parseEvents(c.useEvents, "amap2d-scene-mapclick", a.lnglat);
        }), o.value.on("dragstart", (a) => {
          d("amap2d-scene-dragstart", a.lnglat), v.parseEvents(
            c.useEvents,
            "amap2d-scene-dragstart",
            a.lnglat
          );
        }), o.value.on("dragend", (a) => {
          d("amap2d-scene-dragend", a.lnglat), v.parseEvents(c.useEvents, "amap2d-scene-dragend", a.lnglat);
        });
      }).catch((e) => {
        g.value = !1, w.value = "缺少必要的Key和密钥，请先在右侧配置面板中进行配置";
      });
    }, E = (t) => {
      c.sources && c.sources.length > 0 ? s.value.widgets.forEach((r, a) => {
        ae.parse({
          sources: [c.sources[a]],
          callback: (l) => {
            try {
              r && r.type === "heatmap" && j(t, r, l.data[0].data), r && r.type === "dotlayers" && F(
                window.Loca,
                r,
                x(l.data[0].data)
              ), r && r.type === "scatter" && G(
                window.Loca,
                r,
                x(l.data[0].data)
              ), r && r.type === "labelsLayer" && H(
                window.Loca,
                r,
                x(l.data[0].data)
              );
            } catch {
            }
            s.value.widgets.filter((i) => i.type === "boundary").forEach((i) => {
              O(t, i);
            });
          }
        });
      }) : s.value.widgets.filter((r) => r.type === "boundary").forEach((r) => {
        O(t, r);
      });
      const e = o.value.getLayers();
      for (let r = 0; r < e.length; r++)
        (e[r].type === "sketchTileLayer" || e[r]._opts.type === "sketchImageLayer") && o.value.removeLayer(e[r]);
      s.value.widgets.filter((r) => r.type === "sketchTile").forEach((r) => {
        const a = P(r);
        a && o.value.addLayer(a);
      }), s.value.widgets.filter((r) => r.type === "sketchImage").forEach((r) => {
        const a = N(r);
        o.value.addLayer(a);
      });
    }, J = (t) => {
      const r = t.slice(
        t.indexOf("(") + 1,
        t.lastIndexOf(")")
      ).split(",").map((l) => l.trim()), a = {};
      for (let l = 1; l < r.length; l++) {
        const i = r[l].split(" "), n = i[0], z = parseFloat(i[1]) / 100, K = Math.round(z * 100) / 100;
        a[K] = n;
      }
      return a;
    }, P = (t) => {
      try {
        return new u.value.TileLayer({
          bounds: new u.value.Bounds(
            t.bounds[0],
            t.bounds[1]
          ),
          getTileUrl: function(r, a, l) {
            try {
              return t.url.replace("{z}", l).replace("{x}", r).replace("{y}", a);
            } catch {
            }
          },
          type: "sketchTileLayer",
          tileSize: t.tileSize,
          opacity: t.opacity,
          zIndex: t.zIndex,
          zooms: t.zooms
        });
      } catch {
      }
      return null;
    }, N = (t) => {
      try {
        return new u.value.ImageLayer({
          bounds: new u.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;
    }, j = (t, e, r) => {
      try {
        const a = new t.HeatMap(o.value, {
          radius: e.radius,
          // 给定半径
          opacity: e.opacity,
          gradient: J(e.gradient)
        });
        setTimeout(() => {
          a.setDataSet({
            data: r,
            max: e.max
          });
        }, 0);
      } catch {
      }
    }, O = async (t, e) => {
      try {
        const r = await te.get(e.geojson);
        if (r.status === 200) {
          const a = new t.GeoJSON({
            geoJSON: r.data,
            getPolygon: function(l, i) {
              const n = new t.Polygon({
                path: i,
                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 n.on("mouseover", () => {
                n.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
                });
              }), n.on("mouseout", () => {
                n.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
                  // 线条样式
                });
              }), n;
            }
          });
          o.value.add(a);
        }
      } catch {
      }
    }, F = (t, e, r) => {
      try {
        const a = new t.GeoJSONSource({
          data: r
        }), l = new t.PointLayer({
          zIndex: e.zIndex,
          blend: e.blend,
          visible: e.visible,
          opacity: e.opacity
        }), i = {
          radius: e.style.radius,
          unit: e.style.unit,
          color: e.style.color,
          borderWidth: e.style.borderWidth,
          blurWidth: e.style.blurWidth,
          borderColor: e.style.borderColor
        };
        l.setSource(a), l.setStyle(i), m.value.add(l), l.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 {
      }
    }, G = (t, e, r) => {
      try {
        const a = new t.GeoJSONSource({
          data: r
        }), l = new t.ScatterLayer({
          loca: m.value,
          zIndex: e.zIndex,
          opacity: e.opacity,
          visible: e.visible,
          zooms: e.zooms
        });
        l.setSource(a), l.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 {
      }
    }, H = (t, e, r) => {
      try {
        const a = new t.GeoJSONSource({
          data: r
        }), l = new t.LabelsLayer({
          eventSupport: !0,
          visible: e.visible,
          zooms: e.zooms,
          opacity: e.opacity,
          collision: e.collision,
          allowCollision: e.allowCollision,
          zIndex: e.zIndex
        });
        l.setSource(a), l.setStyle({
          icon: {
            image: e.icon.image,
            size: e.icon.size,
            clipOrigin: e.icon.clipOrigin,
            offset: e.icon.offset,
            anchor: e.icon.anchor
          },
          text: {
            // 每项配置都可使用回调函数来动态配置
            content: (i, n) => n.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
            }
          }
        }), l.on("complete", () => {
          const i = l.getLabelsLayer().getAllOverlays();
          for (const n of i)
            n.on("click", (z) => {
            }), n.on("mouseover", (z) => {
            }), n.on("mouseout", (z) => {
            });
        }), m.value.add(l);
      } catch {
      }
    }, x = (t) => {
      const e = {
        type: "FeatureCollection",
        features: []
      };
      return t.forEach((r) => {
        const a = {
          type: "Feature",
          id: re(),
          properties: {
            name: r.name || "",
            _draw_type: "point"
          },
          geometry: {
            type: "Point",
            coordinates: r.value
          }
        };
        e.features.push(a);
      }), e;
    }, B = (t) => {
      o.value && (o.value.setFeatures(t.config.features), o.value.setStatus({
        dragEnable: t.config.dragEnable,
        zoomEnable: t.config.zoomEnable,
        rotateEnable: t.config.rotateEnable
      }), t.config.plugin.scale.visible ? k.value.show() : k.value.hide(), t.config.plugin.toolBar.visible ? b.value.show() : b.value.hide(), t.config.plugin.controlBar.visible ? h.value.show() : h.value.hide());
    }, V = () => {
      o.value && (o.value.clearMap(), m.value.clear(), E(u.value));
    }, R = (t) => {
      o.value && o.value.setMapStyle(t.config.mapStyle);
    }, U = (t) => {
      o.value && o.value.setZoom(t.config.zoom, !1, 200);
    }, Z = (t) => {
      o.value && o.value.setCenter(t.config.center, !1, 200);
    }, I = () => {
      o.value && (o.value.clearMap(), o.value.destroy(), o.value = null, m.value && (m.value.clear(), m.value.destroy(), m.value = null));
    };
    return Q(() => {
      X(() => {
        f(s.value);
      });
    }), Y(() => I()), p(
      () => s.value.config,
      () => {
        B(s.value);
      },
      { deep: !0 }
    ), p(
      () => s.value.config.zoom,
      () => {
        U(s.value);
      },
      { deep: !0 }
    ), p(
      () => s.value.config.center,
      () => {
        Z(s.value);
      },
      { deep: !0 }
    ), p(
      () => s.value.widgets,
      () => {
        V();
      },
      { deep: !0 }
    ), p(
      () => s.value.config.mapStyle,
      () => {
        R(s.value);
      },
      { deep: !0 }
    ), p(
      () => s.value.basic,
      () => {
        f(s.value);
      },
      { deep: !0 }
    ), p(
      () => c.sources,
      () => {
        f(s.value);
      },
      { deep: !0 }
    ), D({
      refresh: () => f(s.value),
      refreshView: () => B(s.value),
      refreshData: () => f(s.value)
    }), (t, e) => (S(), C("div", le, [
      L("div", {
        class: $(["amap-2d-wrap", { show: g.value }])
      }, e[0] || (e[0] = [
        L("div", {
          id: "zerov-amap-2d",
          class: "zerov-amap-container"
        }, null, -1)
      ]), 2),
      g.value ? W("", !0) : (S(), C("div", se, [
        w.value !== "" ? (S(), C("i", ie)) : W("", !0),
        L("p", ne, _(w.value), 1)
      ]))
    ]));
  }
});
export {
  ma as default
};
