@abi-software/flatmapvuer 1.12.0 → 1.12.2-demo.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { Loading as Mr, CircleCheck as Bl, CircleClose as _r, Close as ri, ArrowDown as ki, Warning as xr, DocumentDelete as Vl, WarningFilled as Pr, ArrowLeft as Lr } from "@element-plus/icons-vue";
2
- import { getCurrentScope as zl, onScopeDispose as Rr, unref as v, getCurrentInstance as ge, onMounted as he, nextTick as ce, ref as x, readonly as Fr, watch as q, warn as Hl, watchEffect as $r, onBeforeUnmount as Ve, inject as G, computed as b, isRef as lt, shallowRef as vo, onBeforeMount as Kl, provide as pe, defineComponent as H, openBlock as w, createElementBlock as L, mergeProps as Nt, renderSlot as K, toRef as Ze, onUnmounted as jl, createBlock as z, Transition as Vn, withCtx as E, withDirectives as ie, createElementVNode as R, normalizeClass as _, normalizeStyle as re, vShow as Ee, Fragment as fe, createVNode as P, reactive as ut, onActivated as Ul, onUpdated as Wl, resolveDynamicComponent as $e, createCommentVNode as V, cloneVNode as ql, Text as Dr, Comment as Gl, Teleport as Jl, onDeactivated as Yl, toDisplayString as ee, useSlots as ko, toRaw as go, withModifiers as le, vModelCheckbox as yo, createTextVNode as Z, toRefs as cn, vModelRadio as Nr, h as Zt, createSlots as Br, resolveComponent as Fe, resolveDirective as Zl, toHandlerKey as Ql, renderList as Ke, withKeys as En, vModelText as Xl, createApp as eu, createStaticVNode as tu, markRaw as Re } from "vue";
2
+ import { getCurrentScope as zl, onScopeDispose as Rr, unref as v, getCurrentInstance as ge, onMounted as he, nextTick as ce, ref as x, readonly as Fr, watch as q, warn as Hl, watchEffect as $r, onBeforeUnmount as Ve, inject as G, computed as b, isRef as lt, shallowRef as vo, onBeforeMount as Kl, provide as pe, defineComponent as H, openBlock as w, createElementBlock as L, mergeProps as Nt, renderSlot as K, toRef as Ze, onUnmounted as jl, createBlock as z, Transition as Vn, withCtx as E, withDirectives as ie, createElementVNode as R, normalizeClass as _, normalizeStyle as re, vShow as Ee, Fragment as fe, createVNode as P, reactive as ut, onActivated as Ul, onUpdated as Wl, resolveDynamicComponent as $e, createCommentVNode as V, cloneVNode as ql, Text as Dr, Comment as Gl, Teleport as Jl, onDeactivated as Yl, toDisplayString as ne, useSlots as ko, toRaw as go, withModifiers as le, vModelCheckbox as yo, createTextVNode as Z, toRefs as cn, vModelRadio as Nr, h as Zt, createSlots as Br, resolveComponent as Fe, resolveDirective as Zl, toHandlerKey as Ql, renderList as Ke, withKeys as En, vModelText as Xl, createApp as eu, createStaticVNode as tu, markRaw as Re } from "vue";
3
3
  import { MapSvgIcon as nu, MapSvgSpriteColor as ou } from "@abi-software/svg-sprite";
4
4
  import { Tooltip as iu, TreeControls as au, DrawToolbar as ru, fetchLabels as su, getFlatmapFilterOptions as lu } from "@abi-software/map-utilities";
5
- import * as Vr from "https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.4.1/+esm";
5
+ import * as Vr from "https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.4.3/+esm";
6
6
  import { AnnotationService as uu } from "@abi-software/sparc-annotation";
7
7
  import { defineStore as cu, mapState as du } from "pinia";
8
8
  const it = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (i) => {
@@ -1507,7 +1507,7 @@ const Bp = (e) => (t, n) => Vp(t, n, v(e)), Vp = (e, t, n) => at(n, e, e).replac
1507
1507
  }, ps = Symbol("namespaceContextKey"), $i = (e) => {
1508
1508
  const t = e || (ge() ? G(ps, x(Mn)) : x(Mn));
1509
1509
  return b(() => v(t) || Mn);
1510
- }, te = (e, t) => {
1510
+ }, ee = (e, t) => {
1511
1511
  const n = $i(t);
1512
1512
  return {
1513
1513
  namespace: n,
@@ -1539,7 +1539,7 @@ const Bp = (e) => (t, n) => Vp(t, n, v(e)), Vp = (e, t, n) => at(n, e, e).replac
1539
1539
  };
1540
1540
  }, Kp = (e, t = {}) => {
1541
1541
  lt(e) || ls("[useLockscreen]", "You need to pass a ref param to this function");
1542
- const n = t.ns || te("popup"), o = b(() => n.bm("parent", "hidden"));
1542
+ const n = t.ns || ee("popup"), o = b(() => n.bm("parent", "hidden"));
1543
1543
  if (!se || Ga(document.body, o.value))
1544
1544
  return;
1545
1545
  let i = 0, a = !1, r = "0";
@@ -1950,10 +1950,10 @@ function Ah(e) {
1950
1950
  for (var i = n.mainAxis, a = i === void 0 ? !0 : i, r = n.altAxis, s = r === void 0 ? !0 : r, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, p = m === void 0 ? !0 : m, h = n.allowedAutoPlacements, g = t.options.placement, y = Qe(g), C = y === g, O = l || (C || !p ? [ho(g)] : Th(g)), T = [g].concat(O).reduce(function(Je, Ce) {
1951
1951
  return Je.concat(Qe(Ce) === Di ? kh(t, { placement: Ce, boundary: c, rootBoundary: d, padding: u, flipVariations: p, allowedAutoPlacements: h }) : Ce);
1952
1952
  }, []), I = t.rects.reference, k = t.rects.popper, A = /* @__PURE__ */ new Map(), $ = !0, N = T[0], j = 0; j < T.length; j++) {
1953
- var B = T[j], M = Qe(B), W = ln(B) === on, de = [Te, Ne].indexOf(M) >= 0, Y = de ? "width" : "height", D = Nn(t, { placement: B, boundary: c, rootBoundary: d, altBoundary: f, padding: u }), ne = de ? W ? Be : Ae : W ? Ne : Te;
1954
- I[Y] > k[Y] && (ne = ho(ne));
1955
- var Le = ho(ne), ye = [];
1956
- if (a && ye.push(D[M] <= 0), s && ye.push(D[ne] <= 0, D[Le] <= 0), ye.every(function(Je) {
1953
+ var B = T[j], M = Qe(B), W = ln(B) === on, de = [Te, Ne].indexOf(M) >= 0, Y = de ? "width" : "height", D = Nn(t, { placement: B, boundary: c, rootBoundary: d, altBoundary: f, padding: u }), te = de ? W ? Be : Ae : W ? Ne : Te;
1954
+ I[Y] > k[Y] && (te = ho(te));
1955
+ var Le = ho(te), ye = [];
1956
+ if (a && ye.push(D[M] <= 0), s && ye.push(D[te] <= 0, D[Le] <= 0), ye.every(function(Je) {
1957
1957
  return Je;
1958
1958
  })) {
1959
1959
  N = B, $ = !1;
@@ -2013,8 +2013,8 @@ function $h(e) {
2013
2013
  var t = e.state, n = e.options, o = e.name, i = n.mainAxis, a = i === void 0 ? !0 : i, r = n.altAxis, s = r === void 0 ? !1 : r, l = n.boundary, u = n.rootBoundary, c = n.altBoundary, d = n.padding, f = n.tether, m = f === void 0 ? !0 : f, p = n.tetherOffset, h = p === void 0 ? 0 : p, g = Nn(t, { boundary: l, rootBoundary: u, padding: d, altBoundary: c }), y = Qe(t.placement), C = ln(t.placement), O = !C, T = Vi(y), I = Fh(T), k = t.modifiersData.popperOffsets, A = t.rects.reference, $ = t.rects.popper, N = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, j = typeof N == "number" ? { mainAxis: N, altAxis: N } : Object.assign({ mainAxis: 0, altAxis: 0 }, N), B = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = { x: 0, y: 0 };
2014
2014
  if (k) {
2015
2015
  if (a) {
2016
- var W, de = T === "y" ? Te : Ae, Y = T === "y" ? Ne : Be, D = T === "y" ? "height" : "width", ne = k[T], Le = ne + g[de], ye = ne - g[Y], be = m ? -$[D] / 2 : 0, _e = C === on ? A[D] : $[D], Ge = C === on ? -$[D] : -A[D], jt = t.elements.arrow, Je = m && jt ? Bi(jt) : { width: 0, height: 0 }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ys(), ue = Ce[de], Tt = Ce[Y], ht = _n(0, A[D], Je[D]), Gn = O ? A[D] / 2 - be - ht - ue - j.mainAxis : _e - ht - ue - j.mainAxis, Jn = O ? -A[D] / 2 + be + ht + Tt + j.mainAxis : Ge + ht + Tt + j.mainAxis, mn = t.elements.arrow && jn(t.elements.arrow), Ho = mn ? T === "y" ? mn.clientTop || 0 : mn.clientLeft || 0 : 0, Yn = (W = B == null ? void 0 : B[T]) != null ? W : 0, Ko = ne + Gn - Yn - Ho, jo = ne + Jn - Yn, At = _n(m ? Co(Le, Ko) : Le, ne, m ? Rt(ye, jo) : ye);
2017
- k[T] = At, M[T] = At - ne;
2016
+ var W, de = T === "y" ? Te : Ae, Y = T === "y" ? Ne : Be, D = T === "y" ? "height" : "width", te = k[T], Le = te + g[de], ye = te - g[Y], be = m ? -$[D] / 2 : 0, _e = C === on ? A[D] : $[D], Ge = C === on ? -$[D] : -A[D], jt = t.elements.arrow, Je = m && jt ? Bi(jt) : { width: 0, height: 0 }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ys(), ue = Ce[de], Tt = Ce[Y], ht = _n(0, A[D], Je[D]), Gn = O ? A[D] / 2 - be - ht - ue - j.mainAxis : _e - ht - ue - j.mainAxis, Jn = O ? -A[D] / 2 + be + ht + Tt + j.mainAxis : Ge + ht + Tt + j.mainAxis, mn = t.elements.arrow && jn(t.elements.arrow), Ho = mn ? T === "y" ? mn.clientTop || 0 : mn.clientLeft || 0 : 0, Yn = (W = B == null ? void 0 : B[T]) != null ? W : 0, Ko = te + Gn - Yn - Ho, jo = te + Jn - Yn, At = _n(m ? Co(Le, Ko) : Le, te, m ? Rt(ye, jo) : ye);
2017
+ k[T] = At, M[T] = At - te;
2018
2018
  }
2019
2019
  if (s) {
2020
2020
  var vn, Ut = T === "x" ? Te : Ae, Zn = T === "x" ? Ne : Be, nt = k[I], Wt = I === "y" ? "height" : "width", gn = nt + g[Ut], Qn = nt - g[Zn], Ot = [Te, Ae].indexOf(y) !== -1, yn = (vn = B == null ? void 0 : B[I]) != null ? vn : 0, bn = Ot ? gn : nt - A[Wt] - $[Wt] - yn + j.altAxis, wn = Ot ? nt + A[Wt] + $[Wt] - yn - j.altAxis : Qn, Sn = m && Ot ? uh(bn, nt, wn) : _n(m ? bn : gn, nt, m ? wn : Qn);
@@ -2447,7 +2447,7 @@ function $o(e, t = void 0) {
2447
2447
  }) : n;
2448
2448
  }
2449
2449
  function hm(e, t) {
2450
- const n = $o(), o = te(e, b(() => {
2450
+ const n = $o(), o = ee(e, b(() => {
2451
2451
  var s;
2452
2452
  return ((s = n.value) == null ? void 0 : s.namespace) || Mn;
2453
2453
  })), i = Fi(b(() => {
@@ -2510,7 +2510,7 @@ const gm = Q({
2510
2510
  ...ym,
2511
2511
  props: gm,
2512
2512
  setup(e) {
2513
- const t = e, n = te("icon"), o = b(() => {
2513
+ const t = e, n = ee("icon"), o = b(() => {
2514
2514
  const { size: i, color: a } = t;
2515
2515
  return !i && !a ? {} : {
2516
2516
  fontSize: Ct(i) ? void 0 : $t(i),
@@ -2602,7 +2602,7 @@ const We = Me(wm), Wi = Symbol("formContextKey"), Io = Symbol("formItemContextKe
2602
2602
  __name: "thumb",
2603
2603
  props: Em,
2604
2604
  setup(e) {
2605
- const t = e, n = G(qi), o = te("scrollbar");
2605
+ const t = e, n = G(qi), o = ee("scrollbar");
2606
2606
  n || ls(Im, "can not inject scrollbar context");
2607
2607
  const i = x(), a = x(), r = x({}), s = x(!1);
2608
2608
  let l = !1, u = !1, c = se ? document.onselectstart : null;
@@ -2776,7 +2776,7 @@ const Mm = Q({
2776
2776
  props: Mm,
2777
2777
  emits: _m,
2778
2778
  setup(e, { expose: t, emit: n }) {
2779
- const o = e, i = te("scrollbar");
2779
+ const o = e, i = ee("scrollbar");
2780
2780
  let a, r, s = 0, l = 0;
2781
2781
  const u = x(), c = x(), d = x(), f = x(), m = b(() => {
2782
2782
  const I = {};
@@ -2919,7 +2919,7 @@ const Ds = Q({
2919
2919
  ...Bm,
2920
2920
  props: Ds,
2921
2921
  setup(e, { expose: t }) {
2922
- const n = e, o = te("popper"), { arrowOffset: i, arrowRef: a, arrowStyle: r } = G(Fs, void 0);
2922
+ const n = e, o = ee("popper"), { arrowOffset: i, arrowRef: a, arrowStyle: r } = G(Fs, void 0);
2923
2923
  return q(() => n.arrowOffset, (s) => {
2924
2924
  i.value = s;
2925
2925
  }), Ve(() => {
@@ -2978,7 +2978,7 @@ function Ns(e) {
2978
2978
  return null;
2979
2979
  }
2980
2980
  function dr(e) {
2981
- const t = te("only-child");
2981
+ const t = ee("only-child");
2982
2982
  return P("span", {
2983
2983
  class: t.e("content")
2984
2984
  }, [e]);
@@ -3487,7 +3487,7 @@ const cv = 0, dv = (e) => {
3487
3487
  styles: n,
3488
3488
  role: o
3489
3489
  }) => {
3490
- const { nextZIndex: i } = Ui(), a = te("popper"), r = b(() => v(t).popper), s = x(me(e.zIndex) ? e.zIndex : i()), l = b(() => [
3490
+ const { nextZIndex: i } = Ui(), a = ee("popper"), r = b(() => v(t).popper), s = x(me(e.zIndex) ? e.zIndex : i()), l = b(() => [
3491
3491
  a.b(),
3492
3492
  a.is("pure", e.pure),
3493
3493
  a.is(e.effect),
@@ -3576,12 +3576,12 @@ const cv = 0, dv = (e) => {
3576
3576
  q(() => o.triggerTargetEl, (W, de) => {
3577
3577
  j == null || j(), j = void 0;
3578
3578
  const Y = v(W || m.value), D = v(de || m.value);
3579
- Lt(Y) && (j = q([g, () => o.ariaLabel, C, () => o.id], (ne) => {
3579
+ Lt(Y) && (j = q([g, () => o.ariaLabel, C, () => o.id], (te) => {
3580
3580
  ["role", "aria-label", "aria-modal", "id"].forEach((Le, ye) => {
3581
- Po(ne[ye]) ? Y.removeAttribute(Le) : Y.setAttribute(Le, ne[ye]);
3581
+ Po(te[ye]) ? Y.removeAttribute(Le) : Y.setAttribute(Le, te[ye]);
3582
3582
  });
3583
- }, { immediate: !0 })), D !== Y && Lt(D) && ["role", "aria-label", "aria-modal", "id"].forEach((ne) => {
3584
- D.removeAttribute(ne);
3583
+ }, { immediate: !0 })), D !== Y && Lt(D) && ["role", "aria-label", "aria-modal", "id"].forEach((te) => {
3584
+ D.removeAttribute(te);
3585
3585
  });
3586
3586
  }, { immediate: !0 }), q(() => o.visible, M, { immediate: !0 });
3587
3587
  }), Ve(() => {
@@ -3685,7 +3685,7 @@ const gv = Me(Nm), Zi = Symbol("elTooltip"), Pe = Q({
3685
3685
  ...Iv,
3686
3686
  props: Bn,
3687
3687
  setup(e, { expose: t }) {
3688
- const n = e, o = te("tooltip"), { controlled: i, id: a, open: r, onOpen: s, onClose: l, onToggle: u } = G(Zi, void 0), c = x(null), d = () => {
3688
+ const n = e, o = ee("tooltip"), { controlled: i, id: a, open: r, onOpen: s, onClose: l, onToggle: u } = G(Zi, void 0), c = x(null), d = () => {
3689
3689
  if (v(i) || n.disabled)
3690
3690
  return !0;
3691
3691
  }, f = Ze(n, "trigger"), m = it(d, Jt(f, "hover", s)), p = it(d, Jt(f, "hover", l)), h = it(d, Jt(f, "click", (T) => {
@@ -3746,7 +3746,7 @@ const js = Me(Mv), _v = H({
3746
3746
  ..._v,
3747
3747
  props: Pe,
3748
3748
  setup(e, { expose: t }) {
3749
- const n = e, { selector: o } = Os(), i = te("tooltip"), a = x(null);
3749
+ const n = e, { selector: o } = Os(), i = ee("tooltip"), a = x(null);
3750
3750
  let r;
3751
3751
  const {
3752
3752
  controlled: s,
@@ -3776,8 +3776,8 @@ const js = Me(Mv), _v = H({
3776
3776
  }), B = it(N, () => {
3777
3777
  v(c) === "hover" && d();
3778
3778
  }), M = () => {
3779
- var D, ne;
3780
- (ne = (D = a.value) == null ? void 0 : D.updatePopper) == null || ne.call(D), h == null || h();
3779
+ var D, te;
3780
+ (te = (D = a.value) == null ? void 0 : D.updatePopper) == null || te.call(D), h == null || h();
3781
3781
  }, W = () => {
3782
3782
  g == null || g();
3783
3783
  }, de = () => {
@@ -3797,11 +3797,11 @@ const js = Me(Mv), _v = H({
3797
3797
  }, {
3798
3798
  flush: "post"
3799
3799
  }), q(() => n.content, () => {
3800
- var D, ne;
3801
- (ne = (D = a.value) == null ? void 0 : D.updatePopper) == null || ne.call(D);
3800
+ var D, te;
3801
+ (te = (D = a.value) == null ? void 0 : D.updatePopper) == null || te.call(D);
3802
3802
  }), t({
3803
3803
  contentRef: a
3804
- }), (D, ne) => (w(), z(v(js), {
3804
+ }), (D, te) => (w(), z(v(js), {
3805
3805
  disabled: !D.teleported,
3806
3806
  to: v(I)
3807
3807
  }, {
@@ -3978,7 +3978,7 @@ const Lv = H({
3978
3978
  y.rawContent ? (w(), L("span", {
3979
3979
  key: 0,
3980
3980
  innerHTML: y.content
3981
- }, null, 8, ["innerHTML"])) : (w(), L("span", { key: 1 }, ee(y.content), 1))
3981
+ }, null, 8, ["innerHTML"])) : (w(), L("span", { key: 1 }, ne(y.content), 1))
3982
3982
  ]),
3983
3983
  y.showArrow ? (w(), z(v(zm), {
3984
3984
  key: 0,
@@ -4600,7 +4600,7 @@ function vt(e, t = 20) {
4600
4600
  return e.mix("#141414", t).toString();
4601
4601
  }
4602
4602
  function Xv(e) {
4603
- const t = Do(), n = te("button");
4603
+ const t = Do(), n = ee("button");
4604
4604
  return b(() => {
4605
4605
  let o = {}, i = e.color;
4606
4606
  if (i) {
@@ -4646,7 +4646,7 @@ const eg = H({
4646
4646
  props: yi,
4647
4647
  emits: Bv,
4648
4648
  setup(e, { expose: t, emit: n }) {
4649
- const o = e, i = Xv(o), a = te("button"), { _ref: r, _size: s, _type: l, _disabled: u, _props: c, shouldAddSpace: d, handleClick: f } = $v(o, n), m = b(() => [
4649
+ const o = e, i = Xv(o), a = ee("button"), { _ref: r, _size: s, _type: l, _disabled: u, _props: c, shouldAddSpace: d, handleClick: f } = $v(o, n), m = b(() => [
4650
4650
  a.b(),
4651
4651
  a.m(l.value),
4652
4652
  a.m(s.value),
@@ -4716,7 +4716,7 @@ const og = {
4716
4716
  size: Ze(t, "size"),
4717
4717
  type: Ze(t, "type")
4718
4718
  }));
4719
- const n = te("button");
4719
+ const n = ee("button");
4720
4720
  return (o, i) => (w(), L("div", {
4721
4721
  class: _(v(n).b("group"))
4722
4722
  }, [
@@ -4978,7 +4978,7 @@ const lg = {
4978
4978
  actualValue: d,
4979
4979
  handleChange: f,
4980
4980
  onClickRoot: m
4981
- } = Zs(t, n), p = te("checkbox"), h = b(() => [
4981
+ } = Zs(t, n), p = ee("checkbox"), h = b(() => [
4982
4982
  p.b(),
4983
4983
  p.m(l.value),
4984
4984
  p.is("disabled", r.value),
@@ -5050,7 +5050,7 @@ const lg = {
5050
5050
  }, [
5051
5051
  K(y.$slots, "default"),
5052
5052
  y.$slots.default ? V("v-if", !0) : (w(), L(fe, { key: 0 }, [
5053
- Z(ee(y.label), 1)
5053
+ Z(ne(y.label), 1)
5054
5054
  ], 64))
5055
5055
  ], 2)) : V("v-if", !0)
5056
5056
  ];
@@ -5075,7 +5075,7 @@ const vg = H({
5075
5075
  model: s,
5076
5076
  actualValue: l,
5077
5077
  handleChange: u
5078
- } = Zs(t, n), c = G(hn, void 0), d = te("checkbox"), f = b(() => {
5078
+ } = Zs(t, n), c = G(hn, void 0), d = ee("checkbox"), f = b(() => {
5079
5079
  var p, h, g, y;
5080
5080
  const C = (h = (p = c == null ? void 0 : c.fill) == null ? void 0 : p.value) != null ? h : "";
5081
5081
  return {
@@ -5136,7 +5136,7 @@ const vg = H({
5136
5136
  style: re(v(i) ? v(f) : void 0)
5137
5137
  }, [
5138
5138
  K(p.$slots, "default", {}, () => [
5139
- Z(ee(p.label), 1)
5139
+ Z(ne(p.label), 1)
5140
5140
  ])
5141
5141
  ], 6)) : V("v-if", !0)
5142
5142
  ], 2);
@@ -5174,7 +5174,7 @@ const yg = Q({
5174
5174
  props: yg,
5175
5175
  emits: bg,
5176
5176
  setup(e, { emit: t }) {
5177
- const n = e, o = te("checkbox"), { formItem: i } = pn(), { inputId: a, isLabeledByFormItem: r } = No(n, {
5177
+ const n = e, o = ee("checkbox"), { formItem: i } = pn(), { inputId: a, isLabeledByFormItem: r } = No(n, {
5178
5178
  formItemContext: i
5179
5179
  }), s = async (u) => {
5180
5180
  t(we, u), await ce(), t("change", u);
@@ -5281,7 +5281,7 @@ const tl = zt(Xs), nl = Q({
5281
5281
  props: Cg,
5282
5282
  emits: ol,
5283
5283
  setup(e, { emit: t }) {
5284
- const n = e, o = te("radio"), { radioRef: i, radioGroup: a, focus: r, size: s, disabled: l, modelValue: u, actualValue: c } = al(n, t);
5284
+ const n = e, o = ee("radio"), { radioRef: i, radioGroup: a, focus: r, size: s, disabled: l, modelValue: u, actualValue: c } = al(n, t);
5285
5285
  function d() {
5286
5286
  ce(() => t("change", u.value));
5287
5287
  }
@@ -5332,7 +5332,7 @@ const tl = zt(Xs), nl = Q({
5332
5332
  }, ["stop"])
5333
5333
  }, [
5334
5334
  K(f.$slots, "default", {}, () => [
5335
- Z(ee(f.label), 1)
5335
+ Z(ne(f.label), 1)
5336
5336
  ])
5337
5337
  ], 42, ["onKeydown"])
5338
5338
  ], 2);
@@ -5348,7 +5348,7 @@ const Tg = Q({
5348
5348
  ...Ag,
5349
5349
  props: Tg,
5350
5350
  setup(e) {
5351
- const t = e, n = te("radio"), { radioRef: o, focus: i, size: a, disabled: r, modelValue: s, radioGroup: l, actualValue: u } = al(t), c = b(() => ({
5351
+ const t = e, n = ee("radio"), { radioRef: o, focus: i, size: a, disabled: r, modelValue: s, radioGroup: l, actualValue: u } = al(t), c = b(() => ({
5352
5352
  backgroundColor: (l == null ? void 0 : l.fill) || "",
5353
5353
  borderColor: (l == null ? void 0 : l.fill) || "",
5354
5354
  boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
@@ -5388,7 +5388,7 @@ const Tg = Q({
5388
5388
  }, ["stop"])
5389
5389
  }, [
5390
5390
  K(d.$slots, "default", {}, () => [
5391
- Z(ee(d.label), 1)
5391
+ Z(ne(d.label), 1)
5392
5392
  ])
5393
5393
  ], 46, ["onKeydown"])
5394
5394
  ], 2);
@@ -5431,7 +5431,7 @@ const Mg = Q({
5431
5431
  props: Mg,
5432
5432
  emits: _g,
5433
5433
  setup(e, { emit: t }) {
5434
- const n = e, o = te("radio"), i = Dt(), a = x(), { formItem: r } = pn(), { inputId: s, isLabeledByFormItem: l } = No(n, {
5434
+ const n = e, o = ee("radio"), i = Dt(), a = x(), { formItem: r } = pn(), { inputId: s, isLabeledByFormItem: l } = No(n, {
5435
5435
  formItemContext: r
5436
5436
  }), u = (d) => {
5437
5437
  t(we, d), ce(() => t("change", d));
@@ -5496,7 +5496,7 @@ const wi = Q({
5496
5496
  props: wi,
5497
5497
  emits: Lg,
5498
5498
  setup(e, { emit: t }) {
5499
- const n = e, o = un(), i = te("tag"), a = b(() => {
5499
+ const n = e, o = un(), i = ee("tag"), a = b(() => {
5500
5500
  const { type: u, hit: c, effect: d, closable: f, round: m } = n;
5501
5501
  return [
5502
5502
  i.b(),
@@ -5600,7 +5600,7 @@ const Dg = Me($g), cl = Symbol("rowContextKey"), Ng = [
5600
5600
  ...zg,
5601
5601
  props: Vg,
5602
5602
  setup(e) {
5603
- const t = e, n = te("row"), o = b(() => t.gutter);
5603
+ const t = e, n = ee("row"), o = b(() => t.gutter);
5604
5604
  pe(cl, {
5605
5605
  gutter: o
5606
5606
  });
@@ -5671,7 +5671,7 @@ const Un = Me(Kg), jg = Q({
5671
5671
  ...Ug,
5672
5672
  props: jg,
5673
5673
  setup(e) {
5674
- const t = e, { gutter: n } = G(cl, { gutter: b(() => 0) }), o = te("col"), i = b(() => {
5674
+ const t = e, { gutter: n } = G(cl, { gutter: b(() => 0) }), o = ee("col"), i = b(() => {
5675
5675
  const r = {};
5676
5676
  return n.value && (r.paddingLeft = r.paddingRight = `${n.value / 2}px`), r;
5677
5677
  }), a = b(() => {
@@ -5721,7 +5721,7 @@ var Zg = H({
5721
5721
  props: Gg,
5722
5722
  emits: Jg,
5723
5723
  setup(e, { slots: t, emit: n }) {
5724
- const o = te(Yg), i = (l) => {
5724
+ const o = ee(Yg), i = (l) => {
5725
5725
  n("click", l);
5726
5726
  }, { onClick: a, onMousedown: r, onMouseup: s } = Ts(e.customMaskEvent ? void 0 : i);
5727
5727
  return () => e.mask ? P("div", {
@@ -5798,7 +5798,7 @@ const Qg = Zg, dl = Symbol("dialogInjectionKey"), fl = Q({
5798
5798
  role: "heading",
5799
5799
  "aria-level": g.ariaLevel,
5800
5800
  class: _(v(l).e("title"))
5801
- }, ee(g.title), 11, ["aria-level"])
5801
+ }, ne(g.title), 11, ["aria-level"])
5802
5802
  ]),
5803
5803
  g.showClose ? (w(), L("button", {
5804
5804
  key: 0,
@@ -5991,7 +5991,7 @@ const oy = Q({
5991
5991
  version: "3.0.0",
5992
5992
  ref: "https://element-plus.org/en-US/component/dialog.html#slots"
5993
5993
  }, b(() => !!o.title));
5994
- const i = te("dialog"), a = x(), r = x(), s = x(), {
5994
+ const i = ee("dialog"), a = x(), r = x(), s = x(), {
5995
5995
  visible: l,
5996
5996
  titleId: u,
5997
5997
  bodyId: c,
@@ -6311,7 +6311,7 @@ const by = H({
6311
6311
  disabled: Boolean
6312
6312
  },
6313
6313
  setup(e) {
6314
- const t = te("select"), n = Dt(), o = b(() => [
6314
+ const t = ee("select"), n = Dt(), o = b(() => [
6315
6315
  t.be("dropdown", "item"),
6316
6316
  t.is("disabled", v(s)),
6317
6317
  t.is("selected", v(r)),
@@ -6366,7 +6366,7 @@ function wy(e, t, n, o, i, a) {
6366
6366
  onClick: le(e.selectOptionClick, ["stop"])
6367
6367
  }, [
6368
6368
  K(e.$slots, "default", {}, () => [
6369
- R("span", null, ee(e.currentLabel), 1)
6369
+ R("span", null, ne(e.currentLabel), 1)
6370
6370
  ])
6371
6371
  ], 42, ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"])), [
6372
6372
  [Ee, e.visible]
@@ -6377,7 +6377,7 @@ const Sy = H({
6377
6377
  name: "ElSelectDropdown",
6378
6378
  componentName: "ElSelectDropdown",
6379
6379
  setup() {
6380
- const e = G(Vo), t = te("select"), n = b(() => e.props.popperClass), o = b(() => e.props.multiple), i = b(() => e.props.fitInputWidth), a = x("");
6380
+ const e = G(Vo), t = ee("select"), n = b(() => e.props.popperClass), o = b(() => e.props.multiple), i = b(() => e.props.fitInputWidth), a = x("");
6381
6381
  function r() {
6382
6382
  var s;
6383
6383
  a.value = `${(s = e.selectRef) == null ? void 0 : s.offsetWidth}px`;
@@ -6415,7 +6415,7 @@ function Cy(e, t, n, o, i, a) {
6415
6415
  }
6416
6416
  var Ey = /* @__PURE__ */ X(Sy, [["render", Cy], ["__file", "select-dropdown.vue"]]);
6417
6417
  const Iy = 11, ky = (e, t) => {
6418
- const { t: n } = Fi(), o = Dt(), i = te("select"), a = te("input"), r = ut({
6418
+ const { t: n } = Fi(), o = Dt(), i = ee("select"), a = ee("input"), r = ut({
6419
6419
  inputValue: "",
6420
6420
  options: /* @__PURE__ */ new Map(),
6421
6421
  cachedOptions: /* @__PURE__ */ new Map(),
@@ -6454,7 +6454,7 @@ const Iy = 11, ky = (e, t) => {
6454
6454
  }
6455
6455
  }), N = x(!1), j = x(), { form: B, formItem: M } = pn(), { inputId: W } = No(e, {
6456
6456
  formItemContext: M
6457
- }), { valueOnClear: de, isEmptyValue: Y } = fm(e), D = b(() => e.disabled || (B == null ? void 0 : B.disabled)), ne = b(() => Ie(e.modelValue) ? e.modelValue.length > 0 : !Y(e.modelValue)), Le = b(() => e.clearable && !D.value && r.inputHovering && ne.value), ye = b(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), be = b(() => i.is("reverse", ye.value && N.value)), _e = b(() => (M == null ? void 0 : M.validateState) || ""), Ge = b(() => Lp[_e.value]), jt = b(() => e.remote ? 300 : 0), Je = b(() => e.loading ? e.loadingText || n("el.select.loading") : e.remote && !r.inputValue && r.options.size === 0 ? !1 : e.filterable && r.inputValue && r.options.size > 0 && Ce.value === 0 ? e.noMatchText || n("el.select.noMatch") : r.options.size === 0 ? e.noDataText || n("el.select.noData") : null), Ce = b(() => ue.value.filter((S) => S.visible).length), ue = b(() => {
6457
+ }), { valueOnClear: de, isEmptyValue: Y } = fm(e), D = b(() => e.disabled || (B == null ? void 0 : B.disabled)), te = b(() => Ie(e.modelValue) ? e.modelValue.length > 0 : !Y(e.modelValue)), Le = b(() => e.clearable && !D.value && r.inputHovering && te.value), ye = b(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), be = b(() => i.is("reverse", ye.value && N.value)), _e = b(() => (M == null ? void 0 : M.validateState) || ""), Ge = b(() => Lp[_e.value]), jt = b(() => e.remote ? 300 : 0), Je = b(() => e.loading ? e.loadingText || n("el.select.loading") : e.remote && !r.inputValue && r.options.size === 0 ? !1 : e.filterable && r.inputValue && r.options.size > 0 && Ce.value === 0 ? e.noMatchText || n("el.select.noMatch") : r.options.size === 0 ? e.noDataText || n("el.select.noData") : null), Ce = b(() => ue.value.filter((S) => S.visible).length), ue = b(() => {
6458
6458
  const S = Array.from(r.options.values()), F = [];
6459
6459
  return r.optionValues.forEach((J) => {
6460
6460
  const oe = S.findIndex((mt) => mt.value === J);
@@ -6483,7 +6483,7 @@ const Iy = 11, ky = (e, t) => {
6483
6483
  }), Ko = b(() => {
6484
6484
  var S;
6485
6485
  const F = (S = e.placeholder) != null ? S : n("el.select.placeholder");
6486
- return e.multiple || !ne.value ? F : r.selectedLabel;
6486
+ return e.multiple || !te.value ? F : r.selectedLabel;
6487
6487
  }), jo = b(() => si ? null : "mouseenter");
6488
6488
  q(() => e.modelValue, (S, F) => {
6489
6489
  e.multiple && e.filterable && !e.reserveKeyword && (r.inputValue = "", At("")), Ut(), !So(S, F) && e.validateEvent && (M == null || M.validate("change").catch((J) => Oe(J)));
@@ -6693,7 +6693,7 @@ const Iy = 11, ky = (e, t) => {
6693
6693
  deleteSelected: ia,
6694
6694
  handleOptionSelect: aa,
6695
6695
  scrollToOption: Xn,
6696
- hasModelValue: ne,
6696
+ hasModelValue: te,
6697
6697
  shouldShowPlaceholder: Yn,
6698
6698
  currentPlaceholder: Ko,
6699
6699
  mouseEnterEventName: jo,
@@ -6979,7 +6979,7 @@ function My(e, t, n, o, i, a) {
6979
6979
  label: h.currentLabel,
6980
6980
  value: h.value
6981
6981
  }, () => [
6982
- Z(ee(h.currentLabel), 1)
6982
+ Z(ne(h.currentLabel), 1)
6983
6983
  ])
6984
6984
  ], 2)
6985
6985
  ]),
@@ -7011,7 +7011,7 @@ function My(e, t, n, o, i, a) {
7011
7011
  default: E(() => [
7012
7012
  R("span", {
7013
7013
  class: _(e.nsSelect.e("tags-text"))
7014
- }, " + " + ee(e.states.selected.length - e.maxCollapseTags), 3)
7014
+ }, " + " + ne(e.states.selected.length - e.maxCollapseTags), 3)
7015
7015
  ]),
7016
7016
  _: 1
7017
7017
  }, 8, ["size", "type", "effect", "style"])
@@ -7043,7 +7043,7 @@ function My(e, t, n, o, i, a) {
7043
7043
  label: h.currentLabel,
7044
7044
  value: h.value
7045
7045
  }, () => [
7046
- Z(ee(h.currentLabel), 1)
7046
+ Z(ne(h.currentLabel), 1)
7047
7047
  ])
7048
7048
  ], 2)
7049
7049
  ]),
@@ -7102,7 +7102,7 @@ function My(e, t, n, o, i, a) {
7102
7102
  ref: "calculatorRef",
7103
7103
  "aria-hidden": "true",
7104
7104
  class: _(e.nsSelect.e("input-calculator")),
7105
- textContent: ee(e.states.inputValue)
7105
+ textContent: ne(e.states.inputValue)
7106
7106
  }, null, 10, ["textContent"])) : V("v-if", !0)
7107
7107
  ], 2)),
7108
7108
  e.shouldShowPlaceholder ? (w(), L("div", {
@@ -7118,8 +7118,8 @@ function My(e, t, n, o, i, a) {
7118
7118
  label: e.currentPlaceholder,
7119
7119
  value: e.modelValue
7120
7120
  }, () => [
7121
- R("span", null, ee(e.currentPlaceholder), 1)
7122
- ]) : (w(), L("span", { key: 1 }, ee(e.currentPlaceholder), 1))
7121
+ R("span", null, ne(e.currentPlaceholder), 1)
7122
+ ]) : (w(), L("span", { key: 1 }, ne(e.currentPlaceholder), 1))
7123
7123
  ], 2)) : V("v-if", !0)
7124
7124
  ], 2),
7125
7125
  R("div", {
@@ -7211,7 +7211,7 @@ function My(e, t, n, o, i, a) {
7211
7211
  class: _(e.nsSelect.be("dropdown", "empty"))
7212
7212
  }, [
7213
7213
  K(e.$slots, "empty", {}, () => [
7214
- R("span", null, ee(e.emptyText), 1)
7214
+ R("span", null, ne(e.emptyText), 1)
7215
7215
  ])
7216
7216
  ], 2)) : V("v-if", !0),
7217
7217
  e.$slots.footer ? (w(), L("div", {
@@ -7241,7 +7241,7 @@ const xy = H({
7241
7241
  disabled: Boolean
7242
7242
  },
7243
7243
  setup(e) {
7244
- const t = te("select"), n = x(null), o = ge(), i = x([]);
7244
+ const t = ee("select"), n = x(null), o = ge(), i = x([]);
7245
7245
  pe(pl, ut({
7246
7246
  ...cn(e)
7247
7247
  }));
@@ -7277,7 +7277,7 @@ function Py(e, t, n, o, i, a) {
7277
7277
  }, [
7278
7278
  R("li", {
7279
7279
  class: _(e.ns.be("group", "title"))
7280
- }, ee(e.label), 3),
7280
+ }, ne(e.label), 3),
7281
7281
  R("li", null, [
7282
7282
  R("ul", {
7283
7283
  class: _(e.ns.b("group"))
@@ -7360,7 +7360,7 @@ const Ly = Q({
7360
7360
  props: Ly,
7361
7361
  emits: Ry,
7362
7362
  setup(e, { expose: t, emit: n }) {
7363
- const o = e, i = b(() => o[Fy]), a = te("popover"), r = x(), s = b(() => {
7363
+ const o = e, i = b(() => o[Fy]), a = ee("popover"), r = x(), s = b(() => {
7364
7364
  var g;
7365
7365
  return (g = v(r)) == null ? void 0 : g.popperRef;
7366
7366
  }), l = b(() => [
@@ -7419,9 +7419,9 @@ const Ly = Q({
7419
7419
  key: 0,
7420
7420
  class: _(v(a).e("title")),
7421
7421
  role: "title"
7422
- }, ee(g.title), 3)) : V("v-if", !0),
7422
+ }, ne(g.title), 3)) : V("v-if", !0),
7423
7423
  K(g.$slots, "default", {}, () => [
7424
- Z(ee(g.content), 1)
7424
+ Z(ne(g.content), 1)
7425
7425
  ])
7426
7426
  ]),
7427
7427
  default: E(() => [
@@ -7790,7 +7790,7 @@ function Qy(e, t, n, o, i, a) {
7790
7790
  default: E(() => [
7791
7791
  P(u, { span: 12 }, {
7792
7792
  default: E(() => [
7793
- R("span", Gy, ee(n.title), 1),
7793
+ R("span", Gy, ne(n.title), 1),
7794
7794
  n.helpMessage ? (w(), z(l, {
7795
7795
  key: 0,
7796
7796
  width: "250",
@@ -7799,7 +7799,7 @@ function Qy(e, t, n, o, i, a) {
7799
7799
  "popper-class": "popover-origin-help"
7800
7800
  }, Br({
7801
7801
  default: E(() => [
7802
- R("span", Jy, ee(n.helpMessage), 1)
7802
+ R("span", Jy, ne(n.helpMessage), 1)
7803
7803
  ]),
7804
7804
  _: 2
7805
7805
  }, [
@@ -7887,7 +7887,7 @@ function Qy(e, t, n, o, i, a) {
7887
7887
  default: E(() => [
7888
7888
  R("div", {
7889
7889
  style: re(a.getBackgroundStyles(m))
7890
- }, ee(m[n.labelKey]), 5)
7890
+ }, ne(m[n.labelKey]), 5)
7891
7891
  ]),
7892
7892
  _: 2
7893
7893
  }, 1024)
@@ -7936,11 +7936,11 @@ const ml = /* @__PURE__ */ Kt(Wy, [["render", Qy], ["__scopeId", "data-v-35fb97d
7936
7936
  },
7937
7937
  customStyle: function() {
7938
7938
  const e = this.item.color ? this.item.color : this.item.colour;
7939
- let t = e || "transparent", n = this.item.border ? this.item.border : "black";
7939
+ let t = e || "transparent", n = this.item.border ? this.item.border : "black", o = this.item.borderStyle ? this.item.borderStyle : "default";
7940
7940
  if (e && !this.item.border && (n = t), this.item[this.styleKey] === "star") {
7941
- let o = Xy.replace("<fillColor>", t);
7942
- return o = o.replace("<borderColor>", n), o = o.replace("<borderWidth>", n ? "2" : "0"), o = "data:image/svg+xml," + encodeURIComponent(o), { color: t, "background-image": `url(${o})` };
7943
- } else return this.item[this.styleKey] === "line" ? { color: t } : { "background-color": t, "border-color": n };
7941
+ let i = Xy.replace("<fillColor>", t);
7942
+ return i = i.replace("<borderColor>", n), i = i.replace("<borderWidth>", n ? "2" : "0"), i = "data:image/svg+xml," + encodeURIComponent(i), { color: t, "background-image": `url(${i})` };
7943
+ } else return this.item[this.styleKey] === "line" ? { color: t } : { "background-color": t, "border-color": n, "border-style": o };
7944
7944
  }
7945
7945
  },
7946
7946
  methods: {
@@ -7972,10 +7972,10 @@ function ob(e, t, n, o, i, a) {
7972
7972
  class: _(a.legendStyleValue),
7973
7973
  style: re(a.customStyle)
7974
7974
  }, null, 6)),
7975
- R("div", nb, ee(a.capitalise(n.item[n.identifierKey])), 1)
7975
+ R("div", nb, ne(a.capitalise(n.item[n.identifierKey])), 1)
7976
7976
  ])) : V("", !0);
7977
7977
  }
7978
- const vl = /* @__PURE__ */ Kt(eb, [["render", ob], ["__scopeId", "data-v-1db7582f"]]), ib = {
7978
+ const vl = /* @__PURE__ */ Kt(eb, [["render", ob], ["__scopeId", "data-v-b7e5b095"]]), ib = {
7979
7979
  name: "DynamicLegends",
7980
7980
  components: {
7981
7981
  LegendItem: vl
@@ -8094,8 +8094,8 @@ const lb = /* @__PURE__ */ Kt(ib, [["render", sb], ["__scopeId", "data-v-32c93a1
8094
8094
  }, cb = { class: "flatmap-error" }, db = { class: "flatmap-error-title" }, fb = { key: 0 }, pb = {
8095
8095
  key: 0,
8096
8096
  class: "flatmap-error-message"
8097
- }, hb = { key: 1 };
8098
- function mb(e, t, n, o, i, a) {
8097
+ }, hb = ["innerHTML"], mb = { key: 1 };
8098
+ function vb(e, t, n, o, i, a) {
8099
8099
  const r = Vl, s = We, l = Qi;
8100
8100
  return w(), L("div", cb, [
8101
8101
  R("div", db, [
@@ -8105,28 +8105,30 @@ function mb(e, t, n, o, i, a) {
8105
8105
  ]),
8106
8106
  _: 1
8107
8107
  }),
8108
- n.flatmapError.title ? (w(), L("div", fb, ee(n.flatmapError.title), 1)) : V("", !0)
8108
+ n.flatmapError.title ? (w(), L("div", fb, ne(n.flatmapError.title), 1)) : V("", !0)
8109
8109
  ]),
8110
8110
  n.flatmapError.messages ? (w(), L("div", pb, [
8111
- (w(!0), L(fe, null, Ke(n.flatmapError.messages, (u, c) => (w(), L("div", { key: c }, ee(u), 1))), 128))
8111
+ (w(!0), L(fe, null, Ke(n.flatmapError.messages, (u, c) => (w(), L("div", { key: c }, [
8112
+ R("div", { innerHTML: u }, null, 8, hb)
8113
+ ]))), 128))
8112
8114
  ])) : V("", !0),
8113
- n.flatmapError.button ? (w(), L("div", hb, [
8115
+ n.flatmapError.button ? (w(), L("div", mb, [
8114
8116
  P(l, {
8115
8117
  class: "button",
8116
8118
  type: "primary",
8117
8119
  onClick: n.flatmapError.button.callback
8118
8120
  }, {
8119
8121
  default: E(() => [
8120
- Z(ee(n.flatmapError.button.text), 1)
8122
+ Z(ne(n.flatmapError.button.text), 1)
8121
8123
  ]),
8122
8124
  _: 1
8123
8125
  }, 8, ["onClick"])
8124
8126
  ])) : V("", !0)
8125
8127
  ]);
8126
8128
  }
8127
- const na = /* @__PURE__ */ Kt(ub, [["render", mb], ["__scopeId", "data-v-7cfcfa1f"]]), vb = {
8129
+ const na = /* @__PURE__ */ Kt(ub, [["render", vb], ["__scopeId", "data-v-8961361a"]]), gb = {
8128
8130
  name: "SvgLegends"
8129
- }, gb = { class: "legends-container" }, yb = {
8131
+ }, yb = { class: "legends-container" }, bb = {
8130
8132
  version: "1.1",
8131
8133
  id: "Layer_1",
8132
8134
  x: "0px",
@@ -8136,9 +8138,9 @@ const na = /* @__PURE__ */ Kt(ub, [["render", mb], ["__scopeId", "data-v-7cfcfa1
8136
8138
  xmlns: "http://www.w3.org/2000/svg",
8137
8139
  "xmlns:bx": "https://boxy-svg.com"
8138
8140
  };
8139
- function bb(e, t, n, o, i, a) {
8140
- return w(), L("div", gb, [
8141
- (w(), L("svg", yb, t[0] || (t[0] = [
8141
+ function wb(e, t, n, o, i, a) {
8142
+ return w(), L("div", yb, [
8143
+ (w(), L("svg", bb, t[0] || (t[0] = [
8142
8144
  tu('<defs data-v-88079d87><bx:grid height="30.447" width="32.516" x="0" y="0" data-v-88079d87></bx:grid></defs><path class="st0 st0-translate" d="M61.3,103.8c-15.9,0-28.8-12.3-28.8-27.3c0-15,13-27.3,28.8-27.3s28.8,12.3,28.8,27.3 C90.1,91.5,77.2,103.8,61.3,103.8z" data-v-88079d87></path><path class="st1" d="M40.3,356.1C29.5,345,29.8,328,41.5,317.5c11.7-10.5,29.6-9.9,40.7,1.1c11.1,11,10.5,28.1-1.2,38.5 C69.3,367.4,51.1,366.9,40.3,356.1z" data-v-88079d87></path><path class="st2" d="M61.2,396.9c-5.3,9.3-15.3,15.1-26.1,15.1l-0.4,0.6c5.1,9,5.1,20,0,29l0.4,0.6c10.7,0,20.8,5.8,26.1,15.1 c5.3-9.3,15.3-15.1,26.1-15.1c-5.3-9.3-5.3-20.9,0-30.4C76.6,412.1,66.7,406.3,61.2,396.9z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 171.7975)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Tissue region </text><path class="st6" d="M40.9,231.1c11.3-10.6,29.5-10.6,40.8,0c11.3,10.6,11.3,27.9,0,38.5c-11.3,10.6-29.5,10.6-40.8,0 C29.7,259,29.7,241.7,40.9,231.1z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Brain nuclei </text><text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglia </text><text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglionated nerve plexus </text>', 9)
8143
8145
  ]))),
8144
8146
  t[1] || (t[1] = R("svg", {
@@ -8149,7 +8151,7 @@ function bb(e, t, n, o, i, a) {
8149
8151
  }, null, -1))
8150
8152
  ]);
8151
8153
  }
8152
- const wb = /* @__PURE__ */ Kt(vb, [["render", bb], ["__scopeId", "data-v-88079d87"]]), Sb = `<div class="flatmap-marker">
8154
+ const Sb = /* @__PURE__ */ Kt(gb, [["render", wb], ["__scopeId", "data-v-88079d87"]]), Cb = `<div class="flatmap-marker">
8153
8155
  <svg xmlns="http://www.w3.org/2000/svg" width="28" height="39" viewBox="-1 -1 27 42">
8154
8156
  <ellipse style="fill: rgb(0, 0, 0); fill-opacity: 0.2;" cx="12" cy="36" rx="8" ry="4"></ellipse>
8155
8157
  <path d="M12.25.25a12.254 12.254 0 0 0-12 12.494c0 6.444 6.488 12.109 11.059 22.564.549 1.256 1.333 1.256 1.882 0
@@ -8188,7 +8190,7 @@ const wb = /* @__PURE__ */ Kt(vb, [["render", bb], ["__scopeId", "data-v-88079d8
8188
8190
  const n = e.name ?? e, o = t.name ?? t, i = n.toUpperCase(), a = o.toUpperCase();
8189
8191
  return i < a ? -1 : i > a ? 1 : 0;
8190
8192
  };
8191
- let Cb = function() {
8193
+ let Eb = function() {
8192
8194
  this.initialise = function(e) {
8193
8195
  this.flatmapAPI = e, this.destinations = [], this.origins = [], this.components = [], this.rawURLs = [], this.controller = void 0, this.uberons = [], this.lookUp = [], this.connectivitySource = "map", this.noMapConnectivity = !1;
8194
8196
  }, this.createTooltipData = async function(e, t) {
@@ -8428,7 +8430,7 @@ let Cb = function() {
8428
8430
  return a.values;
8429
8431
  };
8430
8432
  };
8431
- async function Eb(e) {
8433
+ async function Ib(e) {
8432
8434
  const t = sessionStorage.getItem("flatmap-knowledge");
8433
8435
  if (t) {
8434
8436
  const i = JSON.parse(t).filter((a) => a.references && a.references.length).filter((a) => a.references.includes(e));
@@ -8437,16 +8439,16 @@ async function Eb(e) {
8437
8439
  }
8438
8440
  return [];
8439
8441
  }
8440
- async function Ib(e, t, n) {
8442
+ async function kb(e, t, n) {
8441
8443
  const i = `select knowledge from knowledge
8442
8444
  where source="${oa(e)}" and
8443
8445
  knowledge like "%${t}%" order by source desc`;
8444
8446
  return (await n.queryKnowledge(i)).map((l) => JSON.parse(l)).map((l) => l.id);
8445
8447
  }
8446
8448
  function oa(e) {
8447
- return kb(e.mapMetadata);
8449
+ return Tb(e.mapMetadata);
8448
8450
  }
8449
- function kb(e) {
8451
+ function Tb(e) {
8450
8452
  let t = "";
8451
8453
  if (e != null && e.connectivity) {
8452
8454
  const n = e.connectivity;
@@ -8454,7 +8456,7 @@ function kb(e) {
8454
8456
  }
8455
8457
  return t;
8456
8458
  }
8457
- async function Tb(e, t) {
8459
+ async function Ab(e, t) {
8458
8460
  const n = oa(e), o = `select knowledge from knowledge
8459
8461
  where source="${n}"
8460
8462
  order by source desc`;
@@ -8462,15 +8464,15 @@ async function Tb(e, t) {
8462
8464
  const i = sessionStorage.getItem("flatmap-knowledge"), a = sessionStorage.getItem("flatmap-knowledge-source");
8463
8465
  if (!i || a !== n) {
8464
8466
  const s = (await t.queryKnowledge(o)).map((l) => JSON.parse(l));
8465
- return sessionStorage.setItem("flatmap-knowledge", JSON.stringify(s)), sessionStorage.setItem("flatmap-knowledge-source", n), Ab(), s;
8467
+ return sessionStorage.setItem("flatmap-knowledge", JSON.stringify(s)), sessionStorage.setItem("flatmap-knowledge-source", n), Ob(), s;
8466
8468
  }
8467
8469
  return JSON.parse(i);
8468
8470
  }
8469
- function Ab() {
8471
+ function Ob() {
8470
8472
  const n = (/* @__PURE__ */ new Date()).getTime() + 864e5;
8471
8473
  sessionStorage.setItem("flatmap-knowledge-expiry", n);
8472
8474
  }
8473
- function Ob() {
8475
+ function Mb() {
8474
8476
  [
8475
8477
  "flatmap-knowledge",
8476
8478
  "flatmap-knowledge-expiry",
@@ -8481,9 +8483,9 @@ function Ob() {
8481
8483
  }
8482
8484
  function gl() {
8483
8485
  const e = sessionStorage.getItem("flatmap-knowledge-expiry");
8484
- (/* @__PURE__ */ new Date()).getTime() > e && Ob();
8486
+ (/* @__PURE__ */ new Date()).getTime() > e && Mb();
8485
8487
  }
8486
- const fo = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), Mb = '<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow"><path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/><text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text></svg>';
8488
+ const fo = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), _b = '<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow"><path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/><text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text></svg>';
8487
8489
  var yl = { exports: {} };
8488
8490
  (function(e, t) {
8489
8491
  (function(n, o) {
@@ -8595,10 +8597,10 @@ var yl = { exports: {} };
8595
8597
  Y();
8596
8598
  };
8597
8599
  h.resizeSensor.resetSensor = D;
8598
- var ne = function() {
8600
+ var te = function() {
8599
8601
  j = 0, N && (M = B.width, W = B.height, h.resizedAttached && h.resizedAttached.call(B));
8600
8602
  }, Le = function() {
8601
- B = r(h), N = B.width !== M || B.height !== W, N && !j && (j = o(ne)), D();
8603
+ B = r(h), N = B.width !== M || B.height !== W, N && !j && (j = o(te)), D();
8602
8604
  }, ye = function(be, _e, Ge) {
8603
8605
  be.attachEvent ? be.attachEvent("on" + _e, Ge) : be.addEventListener(_e, Ge);
8604
8606
  };
@@ -8640,8 +8642,8 @@ var yl = { exports: {} };
8640
8642
  return l;
8641
8643
  });
8642
8644
  })(yl);
8643
- var _b = yl.exports;
8644
- const xb = /* @__PURE__ */ sg(_b), Pb = cu("main", {
8645
+ var xb = yl.exports;
8646
+ const Pb = /* @__PURE__ */ sg(xb), Lb = cu("main", {
8645
8647
  state: () => ({
8646
8648
  userProfile: {
8647
8649
  token: ""
@@ -8658,7 +8660,7 @@ const xb = /* @__PURE__ */ sg(_b), Pb = cu("main", {
8658
8660
  }
8659
8661
  }
8660
8662
  });
8661
- function Lb(e) {
8663
+ function Rb(e) {
8662
8664
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
8663
8665
  var o = e.get(t);
8664
8666
  o ? o.push(n) : e.set(t, [n]);
@@ -8674,7 +8676,7 @@ function Lb(e) {
8674
8676
  });
8675
8677
  } };
8676
8678
  }
8677
- const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
8679
+ const Ii = new Rb(), Fb = "cannot be found on the map.", $b = (e) => {
8678
8680
  let t = { lng: 0, lat: 0 }, n;
8679
8681
  return e.type === "Polygon" ? e.coordinates.length && (n = e.coordinates[0]) : n = e.coordinates, n && (e.type !== "Point" ? (n.map((o) => {
8680
8682
  t.lng += parseFloat(o[0]), t.lat += parseFloat(o[1]);
@@ -8693,7 +8695,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
8693
8695
  }, s = bl(a, r.key);
8694
8696
  s.length > 0 && (r.children = s), n.push(r);
8695
8697
  }), n;
8696
- }, $b = {
8698
+ }, Db = {
8697
8699
  name: "FlatmapVuer",
8698
8700
  components: {
8699
8701
  Button: Qi,
@@ -8710,7 +8712,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
8710
8712
  Tooltip: iu,
8711
8713
  TreeControls: au,
8712
8714
  SelectionsGroup: ml,
8713
- SvgLegends: wb,
8715
+ SvgLegends: Sb,
8714
8716
  ElIconWarningFilled: Pr,
8715
8717
  ElIconArrowDown: ki,
8716
8718
  ElIconArrowLeft: Lr,
@@ -9062,7 +9064,10 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9062
9064
  animate: !1
9063
9065
  }), t && e.fitBounds(t, {
9064
9066
  animate: !1
9065
- }), this.$refs.skcanSelection && this.$refs.skcanSelection.reset(), this.$refs.layersSelection && this.$refs.layersSelection.reset(), this.$refs.systemsSelection && this.$refs.pathwaysSelection.reset(), this.$refs.pathwaysSelection && this.$refs.pathwaysSelection.reset();
9067
+ }), this.$refs.skcanSelection && this.$refs.skcanSelection.reset(), this.$refs.layersSelection && this.$refs.layersSelection.reset(), this.$refs.systemsSelection && this.$refs.pathwaysSelection.reset(), this.$refs.pathwaysSelection && this.$refs.pathwaysSelection.reset(), this.trackEvent({
9068
+ event_name: "portal_maps_zoom",
9069
+ category: "reset"
9070
+ });
9066
9071
  }
9067
9072
  },
9068
9073
  /**
@@ -9071,7 +9076,10 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9071
9076
  * Also called when the associated button is pressed.
9072
9077
  */
9073
9078
  zoomIn: function() {
9074
- this.mapImp && this.mapImp.zoomIn();
9079
+ this.mapImp && (this.mapImp.zoomIn(), this.trackEvent({
9080
+ event_name: "portal_maps_zoom",
9081
+ category: "zoom_in"
9082
+ }));
9075
9083
  },
9076
9084
  /**
9077
9085
  * @public
@@ -9079,7 +9087,10 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9079
9087
  * Also called when the associated button is pressed.
9080
9088
  */
9081
9089
  zoomOut: function() {
9082
- this.mapImp && this.mapImp.zoomOut();
9090
+ this.mapImp && (this.mapImp.zoomOut(), this.trackEvent({
9091
+ event_name: "portal_maps_zoom",
9092
+ category: "zoom_out"
9093
+ }));
9083
9094
  },
9084
9095
  onSelectionsDataChanged: function(e) {
9085
9096
  this.$emit("pathway-selection-changed", e);
@@ -9518,7 +9529,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9518
9529
  searchConnectivitiesByReference: async function(e) {
9519
9530
  const t = sessionStorage.getItem("flatmap-knowledge");
9520
9531
  let n = [];
9521
- return t ? n = await Eb(e) : n = await Ib(this.mapImp, e, this.flatmapQueries), n;
9532
+ return t ? n = await Ib(e) : n = await kb(this.mapImp, e, this.flatmapQueries), n;
9522
9533
  },
9523
9534
  getFlatmapKnowledge: function() {
9524
9535
  let e = [];
@@ -9529,7 +9540,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9529
9540
  this.$emit("connectivity-error", {
9530
9541
  data: {
9531
9542
  errorData: e,
9532
- errorMessage: Rb
9543
+ errorMessage: Fb
9533
9544
  }
9534
9545
  });
9535
9546
  },
@@ -9568,7 +9579,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9568
9579
  }), o[0].feature)
9569
9580
  this.activeDrawTool || this.activeDrawMode || this.isValidDrawnCreated ? (this.featureAnnotationSubmitted = !1, this.activeDrawTool && this.createConnectivityBody(), this.displayTooltip(
9570
9581
  o[0].feature.id,
9571
- Fb(o[0].feature.geometry)
9582
+ $b(o[0].feature.geometry)
9572
9583
  )) : this.rollbackAnnotationEvent();
9573
9584
  else {
9574
9585
  const i = this.annotationEntry.filter((a) => a.featureId && a.models).map((a) => a.models);
@@ -9608,18 +9619,13 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9608
9619
  filters: this.connectivityFilters,
9609
9620
  search: ""
9610
9621
  });
9611
- } else {
9612
- const a = o.join();
9613
- this.connectionType.toLowerCase() === "all" ? this.$emit("neuron-connection-feature-click", {
9614
- filters: [],
9615
- search: a
9616
- }) : await this.openConnectivityInfo(e);
9617
- }
9622
+ } else
9623
+ await this.openConnectivityInfo(e);
9618
9624
  } else
9619
9625
  await this.openConnectivityInfo(e);
9620
9626
  },
9621
9627
  openConnectivityInfo: async function(e) {
9622
- Tb(this.mapImp, this.flatmapQueries);
9628
+ Ab(this.mapImp, this.flatmapQueries);
9623
9629
  let t = [];
9624
9630
  if (this.tooltipEntry = e.filter((n) => n.resource[0] in this.mapImp.pathways.paths).map((n) => ({ title: n.label, featureId: n.resource, ready: !1 })), this.tooltipEntry.length) {
9625
9631
  this.$emit("connectivity-info-open", this.tooltipEntry);
@@ -10020,7 +10026,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10020
10026
  */
10021
10027
  onFlatmapReady: function(e) {
10022
10028
  var t;
10023
- if (this.sensor = Re(new xb(this.$refs.display, this.mapResize)), ((t = this.mapImp.options) == null ? void 0 : t.style) === "functional" && (this.isFC = !0), this.mapImp.setBackgroundOpacity(1), this.backgroundChangeCallback(this.currentBackground), this.pathways = this.mapImp.pathTypes(), this.pathways = this.pathways.filter((n) => n.enabled && n.type !== "other"), this.processSystems(this.mapImp.getSystems()), this.processTaxon(this.mapImp.taxonIdentifiers, e ? e.taxonSelection : void 0), this.containsAlert = "alert" in this.mapImp.featureFilterRanges(), this.flatmapLegends = this.mapImp.flatmapLegend, this.loading = !1, this.computePathControlsMaximumHeight(), this.mapResize(), this.handleMapClick(), this.setInitMapState(), this.displayMinimap) {
10029
+ if (this.sensor = Re(new Pb(this.$refs.display, this.mapResize)), ((t = this.mapImp.options) == null ? void 0 : t.style) === "functional" && (this.isFC = !0), this.mapImp.setBackgroundOpacity(1), this.backgroundChangeCallback(this.currentBackground), this.pathways = this.mapImp.pathTypes(), this.pathways = this.pathways.filter((n) => n.enabled && n.type !== "other"), this.processSystems(this.mapImp.getSystems()), this.processTaxon(this.mapImp.taxonIdentifiers, e ? e.taxonSelection : void 0), this.containsAlert = "alert" in this.mapImp.featureFilterRanges(), this.flatmapLegends = this.mapImp.flatmapLegend, this.loading = !1, this.computePathControlsMaximumHeight(), this.mapResize(), this.handleMapClick(), this.setInitMapState(), this.displayMinimap) {
10024
10030
  const n = { position: "top-right" };
10025
10031
  this.mapImp.createMinimap(n), this.addResizeButtonToMinimap();
10026
10032
  }
@@ -10038,7 +10044,11 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10038
10044
  });
10039
10045
  },
10040
10046
  onContextLost: function() {
10041
- this.lastViewport = Re(this.mapImp.getState()), this.flatmapError = {}, this.flatmapError.title = "GL context lost!", this.flatmapError.messages = ["GL context is lost due to too many concurrent GL contexts. Please try using the Restore Context button."], this.flatmapError.button = {
10047
+ this.lastViewport = Re(this.mapImp.getState()), this.flatmapError = {}, this.flatmapError.title = "GL context lost!", this.flatmapError.messages = [`A display issue has occurred due
10048
+ to a limit on available WebGL contexts. You can restore the display
10049
+ using the Restore Context button. Please see the
10050
+ <a href="https://docs.sparc.science/docs/integrated-maps-viewer-overview#limit-on-available-webgl-contexts" target='_blank'>documentation</a>
10051
+ for more details.`], this.flatmapError.button = {
10042
10052
  text: "Restore Context",
10043
10053
  callback: () => {
10044
10054
  this.forceContextRestore();
@@ -10135,6 +10145,19 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10135
10145
  },
10136
10146
  setConnectionType: function(e) {
10137
10147
  this.connectionType = e;
10148
+ },
10149
+ /**
10150
+ * @public
10151
+ * Function to track events.
10152
+ * @arg {Object} `data`
10153
+ */
10154
+ trackEvent: function(e) {
10155
+ const t = {
10156
+ event: "interaction_event",
10157
+ location: "flatmap",
10158
+ ...e
10159
+ };
10160
+ this.$emit("trackEvent", t);
10138
10161
  }
10139
10162
  },
10140
10163
  props: {
@@ -10444,13 +10467,13 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10444
10467
  // 15
10445
10468
  ],
10446
10469
  helpModeActiveIndex: this.helpModeInitialIndex,
10447
- yellowstar: Mb,
10470
+ yellowstar: _b,
10448
10471
  isFC: !1,
10449
10472
  inHelp: !1,
10450
10473
  currentBackground: "white",
10451
10474
  availableBackground: ["white", "lightskyblue", "black"],
10452
10475
  loading: !1,
10453
- flatmapMarker: Sb,
10476
+ flatmapMarker: Cb,
10454
10477
  tooltipEntry: [],
10455
10478
  connectivityDataSource: "",
10456
10479
  connectivityTooltipVisible: !1,
@@ -10525,7 +10548,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10525
10548
  };
10526
10549
  },
10527
10550
  computed: {
10528
- ...du(Pb, ["userToken"]),
10551
+ ...du(Lb, ["userToken"]),
10529
10552
  isValidDrawnCreated: function() {
10530
10553
  return Object.keys(this.drawnCreatedEvent).length > 0;
10531
10554
  },
@@ -10597,35 +10620,35 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10597
10620
  this.mapManager ? this.mapManagerRef = this.mapManager : (this.mapManagerRef = Re(new Vr.MapViewer(this.flatmapAPI, { container: void 0 })), this.$emit("mapmanager-loaded", this.mapManagerRef));
10598
10621
  },
10599
10622
  mounted: function() {
10600
- this.openMapRef = vo(this.$refs.openMapRef), this.backgroundIconRef = vo(this.$refs.backgroundIconRef), this.tooltipWait.length = this.hoverVisibilities.length, this.flatmapQueries = Re(new Cb()), this.flatmapQueries.initialise(this.flatmapAPI), this.state ? this.setStateRequired && this.setState(this.state) : this.renderAtMounted && this.createFlatmap(), gl();
10623
+ this.openMapRef = vo(this.$refs.openMapRef), this.backgroundIconRef = vo(this.$refs.backgroundIconRef), this.tooltipWait.length = this.hoverVisibilities.length, this.flatmapQueries = Re(new Eb()), this.flatmapQueries.initialise(this.flatmapAPI), this.state ? this.setStateRequired && this.setState(this.state) : this.renderAtMounted && this.createFlatmap(), gl();
10601
10624
  }
10602
- }, Db = {
10625
+ }, Nb = {
10603
10626
  class: "flatmap-container",
10604
10627
  ref: "flatmapContainer",
10605
10628
  "element-loading-text": "Loading...",
10606
10629
  "element-loading-background": "rgba(0, 0, 0, 0.3)"
10607
- }, Nb = { style: { height: "100%", width: "100%", position: "relative", "overflow-y": "none" } }, Bb = {
10630
+ }, Bb = { style: { height: "100%", width: "100%", position: "relative", "overflow-y": "none" } }, Vb = {
10608
10631
  style: { height: "100%", width: "100%" },
10609
10632
  ref: "display",
10610
10633
  class: "flatmap-display"
10611
- }, Vb = { class: "beta-popovers" }, zb = {
10634
+ }, zb = { class: "beta-popovers" }, Hb = {
10612
10635
  key: 2,
10613
10636
  class: "warning-text"
10614
- }, Hb = { class: "bottom-right-control" }, Kb = ["innerHTML"], jb = { style: { "margin-bottom": "2px" } }, Ub = {
10637
+ }, Kb = { class: "bottom-right-control" }, jb = ["innerHTML"], Ub = { style: { "margin-bottom": "2px" } }, Wb = {
10615
10638
  key: 0,
10616
10639
  class: "viewing-mode-title"
10617
- }, Wb = ["onClick"], qb = ["onClick"];
10618
- function Gb(e, t, n, o, i, a) {
10640
+ }, qb = ["onClick"], Gb = ["onClick"];
10641
+ function Jb(e, t, n, o, i, a) {
10619
10642
  const r = Fe("map-svg-sprite-color"), s = na, l = Pr, u = We, c = qn, d = ki, f = Fe("DrawToolbar"), m = Fe("map-svg-icon"), p = lb, h = Fe("tree-controls"), g = ml, y = Lr, C = Qi, O = Un, T = Wn, I = ea, k = zo, A = ll, $ = ul, N = Fe("Tooltip"), j = ta, B = Ci;
10620
- return ie((w(), L("div", Db, [
10643
+ return ie((w(), L("div", Nb, [
10621
10644
  P(r),
10622
- R("div", Nb, [
10623
- R("div", Bb, null, 512),
10645
+ R("div", Bb, [
10646
+ R("div", Vb, null, 512),
10624
10647
  e.flatmapError ? (w(), z(s, {
10625
10648
  key: 0,
10626
10649
  flatmapError: e.flatmapError
10627
10650
  }, null, 8, ["flatmapError"])) : V("", !0),
10628
- ie(R("div", Vb, [
10651
+ ie(R("div", zb, [
10629
10652
  R("div", null, [
10630
10653
  n.displayWarning || n.isLegacy ? (w(), z(c, {
10631
10654
  key: 0,
@@ -10653,7 +10676,7 @@ function Gb(e, t, n, o, i, a) {
10653
10676
  class: "latest-map-text",
10654
10677
  onClick: t[6] || (t[6] = (...M) => a.viewLatestMap && a.viewLatestMap(...M))
10655
10678
  }, " Click here for the latest map ")
10656
- ], 64)) : n.displayWarning ? (w(), L("span", zb, "Beta")) : V("", !0)
10679
+ ], 64)) : n.displayWarning ? (w(), L("span", Hb, "Beta")) : V("", !0)
10657
10680
  ], 32)
10658
10681
  ]),
10659
10682
  default: E(() => [
@@ -10766,7 +10789,7 @@ function Gb(e, t, n, o, i, a) {
10766
10789
  onHideTooltip: a.hideTooltip,
10767
10790
  ref: "toolbarPopover"
10768
10791
  }, null, 8, ["mapCanvas", "toolbarOptions", "activeDrawTool", "activeDrawMode", "newlyDrawnEntry", "connectionEntry", "hoverVisibilities", "onClickToolbar", "onFeatureTooltip", "onConfirmDrawn", "onCancelDrawn", "onShowTooltip", "onHideTooltip"])) : V("", !0),
10769
- ie(R("div", Hb, [
10792
+ ie(R("div", Kb, [
10770
10793
  P(c, {
10771
10794
  content: "Zoom in",
10772
10795
  placement: "left",
@@ -10895,7 +10918,7 @@ function Gb(e, t, n, o, i, a) {
10895
10918
  ie(R("div", {
10896
10919
  class: "flatmap-marker-help",
10897
10920
  innerHTML: e.flatmapMarker
10898
- }, null, 8, Kb), [
10921
+ }, null, 8, jb), [
10899
10922
  [Ee, e.hoverVisibilities[0].value],
10900
10923
  [j, void 0, "markerPopover"]
10901
10924
  ])
@@ -10995,7 +11018,7 @@ function Gb(e, t, n, o, i, a) {
10995
11018
  onClick: (W) => e.$emit("open-map", M.key)
10996
11019
  }, {
10997
11020
  default: E(() => [
10998
- Z(ee(M.display), 1)
11021
+ Z(ne(M.display), 1)
10999
11022
  ]),
11000
11023
  _: 2
11001
11024
  }, 1032, ["onClick"])
@@ -11025,20 +11048,20 @@ function Gb(e, t, n, o, i, a) {
11025
11048
  }),
11026
11049
  P(O, { class: "backgroundControl" }, {
11027
11050
  default: E(() => [
11028
- R("div", jb, [
11051
+ R("div", Ub, [
11029
11052
  (w(!0), L(fe, null, Ke(e.viewingModes, (M, W, de) => (w(), L(fe, { key: W }, [
11030
- W === e.viewingMode ? (w(), L("span", Ub, [
11031
- R("b", null, ee(W), 1)
11053
+ W === e.viewingMode ? (w(), L("span", Wb, [
11054
+ R("b", null, ne(W), 1)
11032
11055
  ])) : (w(), L("span", {
11033
11056
  key: 1,
11034
11057
  class: "viewing-mode-unselected",
11035
11058
  onClick: (Y) => a.changeViewingMode(W)
11036
- }, ee(W), 9, Wb))
11059
+ }, ne(W), 9, qb))
11037
11060
  ], 64))), 128))
11038
11061
  ]),
11039
11062
  P(O, { class: "viewing-mode-description" }, {
11040
11063
  default: E(() => [
11041
- Z(ee(a.modeDescription), 1)
11064
+ Z(ne(a.modeDescription), 1)
11042
11065
  ]),
11043
11066
  _: 1
11044
11067
  }),
@@ -11083,7 +11106,7 @@ function Gb(e, t, n, o, i, a) {
11083
11106
  default: E(() => [
11084
11107
  P(T, { span: 12 }, {
11085
11108
  default: E(() => [
11086
- Z(ee(M), 1)
11109
+ Z(ne(M), 1)
11087
11110
  ]),
11088
11111
  _: 2
11089
11112
  }, 1024)
@@ -11228,7 +11251,7 @@ function Gb(e, t, n, o, i, a) {
11228
11251
  M == e.currentBackground ? "active" : ""
11229
11252
  ]),
11230
11253
  onClick: (W) => a.backgroundChangeCallback(M)
11231
- }, null, 10, qb))), 128))
11254
+ }, null, 10, Gb))), 128))
11232
11255
  ]),
11233
11256
  _: 1
11234
11257
  })
@@ -11315,13 +11338,13 @@ function Gb(e, t, n, o, i, a) {
11315
11338
  [B, e.loading]
11316
11339
  ]);
11317
11340
  }
11318
- const wl = /* @__PURE__ */ Kt($b, [["render", Gb], ["__scopeId", "data-v-b1c18844"]]), Or = {
11341
+ const wl = /* @__PURE__ */ Kt(Db, [["render", Jb], ["__scopeId", "data-v-d727df52"]]), Or = {
11319
11342
  "NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
11320
11343
  "NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
11321
11344
  "NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",
11322
11345
  "NCBITaxon:10090": "25285fab-48a0-5620-a6a0-f9a0374837d5",
11323
11346
  "NCBITaxon:9685": "73060497-46a6-52bf-b975-cac511c127cb"
11324
- }, Jb = {
11347
+ }, Yb = {
11325
11348
  name: "MultiFlatmapVuer",
11326
11349
  components: {
11327
11350
  Col: Wn,
@@ -11670,6 +11693,19 @@ const wl = /* @__PURE__ */ Kt($b, [["render", Gb], ["__scopeId", "data-v-b1c1884
11670
11693
  },
11671
11694
  setConnectionType: function(e) {
11672
11695
  this.getCurrentFlatmap().setConnectionType(e);
11696
+ },
11697
+ /**
11698
+ * @public
11699
+ * Function to track events.
11700
+ * @arg {Object} `data`
11701
+ */
11702
+ trackEvent: function(e) {
11703
+ const t = {
11704
+ event: "interaction_event",
11705
+ location: "flatmap",
11706
+ ...e
11707
+ };
11708
+ this.$emit("trackEvent", t);
11673
11709
  }
11674
11710
  },
11675
11711
  props: {
@@ -11947,17 +11983,17 @@ const wl = /* @__PURE__ */ Kt($b, [["render", Gb], ["__scopeId", "data-v-b1c1884
11947
11983
  }
11948
11984
  }
11949
11985
  }
11950
- }, Yb = {
11986
+ }, Zb = {
11951
11987
  class: "multi-container",
11952
11988
  ref: "multiContainer"
11953
- }, Zb = {
11989
+ }, Qb = {
11954
11990
  key: 0,
11955
11991
  style: { position: "absolute", "z-index": "100" }
11956
- }, Qb = { class: "select-box-icon" };
11957
- function Xb(e, t, n, o, i, a) {
11992
+ }, Xb = { class: "select-box-icon" };
11993
+ function e0(e, t, n, o, i, a) {
11958
11994
  const r = ea, s = zo, l = qn, u = wl, c = na;
11959
- return w(), L("div", Yb, [
11960
- n.disableUI ? V("", !0) : (w(), L("div", Zb, [
11995
+ return w(), L("div", Zb, [
11996
+ n.disableUI ? V("", !0) : (w(), L("div", Qb, [
11961
11997
  t[2] || (t[2] = R("div", { class: "species-display-text" }, "Species", -1)),
11962
11998
  P(l, {
11963
11999
  content: "Select a species",
@@ -11987,12 +12023,12 @@ function Xb(e, t, n, o, i, a) {
11987
12023
  value: f
11988
12024
  }, {
11989
12025
  default: E(() => [
11990
- R("span", Qb, [
12026
+ R("span", Xb, [
11991
12027
  R("i", {
11992
12028
  class: _(d.iconClass)
11993
12029
  }, null, 2)
11994
12030
  ]),
11995
- Z(" " + ee(f), 1)
12031
+ Z(" " + ne(f), 1)
11996
12032
  ]),
11997
12033
  _: 2
11998
12034
  }, 1032, ["label", "value"]))), 128))
@@ -12051,8 +12087,9 @@ function Xb(e, t, n, o, i, a) {
12051
12087
  showLocalSettings: n.showLocalSettings,
12052
12088
  showOpenMapButton: n.showOpenMapButton,
12053
12089
  showPathwayFilter: n.showPathwayFilter,
12090
+ onTrackEvent: a.trackEvent,
12054
12091
  externalLegends: n.externalLegends
12055
- }, null, 8, ["entry", "uuid", "biologicalSex", "displayWarning", "displayLatestChanges", "isLegacy", "enableOpenMapUI", "openMapOptions", "disableUI", "onContextRestored", "onViewLatestMap", "onResourceSelected", "onReady", "onPanZoomCallback", "annotationSidebar", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "connectivityInfoSidebar", "onConnectivityInfoOpen", "onConnectivityInfoClose", "onConnectivityError", "onNeuronConnectionFeatureClick", "onPathwaySelectionChanged", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "renderAtMounted", "render", "displayMinimap", "showStarInLegend", "mapManager", "flatmapAPI", "sparcAPI", "showLocalSettings", "showOpenMapButton", "showPathwayFilter", "externalLegends"])), [
12092
+ }, null, 8, ["entry", "uuid", "biologicalSex", "displayWarning", "displayLatestChanges", "isLegacy", "enableOpenMapUI", "openMapOptions", "disableUI", "onContextRestored", "onViewLatestMap", "onResourceSelected", "onReady", "onPanZoomCallback", "annotationSidebar", "onAnnotationOpen", "onAnnotationClose", "onUpdateOfflineAnnotationEnabled", "connectivityInfoSidebar", "onConnectivityInfoOpen", "onConnectivityInfoClose", "onConnectivityError", "onNeuronConnectionFeatureClick", "onPathwaySelectionChanged", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "renderAtMounted", "render", "displayMinimap", "showStarInLegend", "mapManager", "flatmapAPI", "sparcAPI", "showLocalSettings", "showOpenMapButton", "showPathwayFilter", "onTrackEvent", "externalLegends"])), [
12056
12093
  [Ee, e.activeSpecies == f]
12057
12094
  ])), 128)),
12058
12095
  e.multiflatmapError ? (w(), z(c, {
@@ -12061,8 +12098,8 @@ function Xb(e, t, n, o, i, a) {
12061
12098
  }, null, 8, ["flatmapError"])) : V("", !0)
12062
12099
  ], 512);
12063
12100
  }
12064
- const r0 = /* @__PURE__ */ Kt(Jb, [["render", Xb], ["__scopeId", "data-v-1a5d097a"]]);
12101
+ const s0 = /* @__PURE__ */ Kt(Yb, [["render", e0], ["__scopeId", "data-v-89ec89c8"]]);
12065
12102
  export {
12066
12103
  wl as FlatmapVuer,
12067
- r0 as MultiFlatmapVuer
12104
+ s0 as MultiFlatmapVuer
12068
12105
  };