@abi-software/flatmapvuer 1.12.0-beta.1 → 1.12.1

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,
@@ -9518,7 +9520,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9518
9520
  searchConnectivitiesByReference: async function(e) {
9519
9521
  const t = sessionStorage.getItem("flatmap-knowledge");
9520
9522
  let n = [];
9521
- return t ? n = await Eb(e) : n = await Ib(this.mapImp, e, this.flatmapQueries), n;
9523
+ return t ? n = await Ib(e) : n = await kb(this.mapImp, e, this.flatmapQueries), n;
9522
9524
  },
9523
9525
  getFlatmapKnowledge: function() {
9524
9526
  let e = [];
@@ -9529,7 +9531,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9529
9531
  this.$emit("connectivity-error", {
9530
9532
  data: {
9531
9533
  errorData: e,
9532
- errorMessage: Rb
9534
+ errorMessage: Fb
9533
9535
  }
9534
9536
  });
9535
9537
  },
@@ -9568,7 +9570,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9568
9570
  }), o[0].feature)
9569
9571
  this.activeDrawTool || this.activeDrawMode || this.isValidDrawnCreated ? (this.featureAnnotationSubmitted = !1, this.activeDrawTool && this.createConnectivityBody(), this.displayTooltip(
9570
9572
  o[0].feature.id,
9571
- Fb(o[0].feature.geometry)
9573
+ $b(o[0].feature.geometry)
9572
9574
  )) : this.rollbackAnnotationEvent();
9573
9575
  else {
9574
9576
  const i = this.annotationEntry.filter((a) => a.featureId && a.models).map((a) => a.models);
@@ -9610,22 +9612,24 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
9610
9612
  });
9611
9613
  } else {
9612
9614
  const a = o.join();
9613
- this.connectionType.toLowerCase() === "all" && this.$emit("neuron-connection-feature-click", {
9615
+ this.connectionType.toLowerCase() === "all" ? this.$emit("neuron-connection-feature-click", {
9614
9616
  filters: [],
9615
9617
  search: a
9616
- });
9617
- }
9618
- } else {
9619
- Tb(this.mapImp, this.flatmapQueries);
9620
- let o = [];
9621
- if (this.tooltipEntry = e.filter((i) => i.resource[0] in this.mapImp.pathways.paths).map((i) => ({ title: i.label, featureId: i.resource, ready: !1 })), this.tooltipEntry.length) {
9622
- this.$emit("connectivity-info-open", this.tooltipEntry);
9623
- for (let a = 0; a < e.length; a++)
9624
- o.push(await this.getKnowledgeTooltip(e[a]));
9625
- this.tooltipEntry = await Promise.all(o);
9626
- const i = this.tooltipEntry.map((a) => a.featureId[0]);
9627
- i.length > 0 && this.displayTooltip(i);
9618
+ }) : await this.openConnectivityInfo(e);
9628
9619
  }
9620
+ } else
9621
+ await this.openConnectivityInfo(e);
9622
+ },
9623
+ openConnectivityInfo: async function(e) {
9624
+ Ab(this.mapImp, this.flatmapQueries);
9625
+ let t = [];
9626
+ 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) {
9627
+ this.$emit("connectivity-info-open", this.tooltipEntry);
9628
+ for (let o = 0; o < e.length; o++)
9629
+ t.push(await this.getKnowledgeTooltip(e[o]));
9630
+ this.tooltipEntry = await Promise.all(t);
9631
+ const n = this.tooltipEntry.map((o) => o.featureId[0]);
9632
+ n.length > 0 && this.displayTooltip(n);
9629
9633
  }
9630
9634
  },
9631
9635
  /**
@@ -10018,7 +10022,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10018
10022
  */
10019
10023
  onFlatmapReady: function(e) {
10020
10024
  var t;
10021
- 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) {
10025
+ 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) {
10022
10026
  const n = { position: "top-right" };
10023
10027
  this.mapImp.createMinimap(n), this.addResizeButtonToMinimap();
10024
10028
  }
@@ -10036,7 +10040,11 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10036
10040
  });
10037
10041
  },
10038
10042
  onContextLost: function() {
10039
- 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 = {
10043
+ this.lastViewport = Re(this.mapImp.getState()), this.flatmapError = {}, this.flatmapError.title = "GL context lost!", this.flatmapError.messages = [`A display issue has occurred due
10044
+ to a limit on available WebGL contexts. You can restore the display
10045
+ using the Restore Context button. Please see the
10046
+ <a href="https://docs.sparc.science/docs/integrated-maps-viewer-overview#limit-on-available-webgl-contexts" target='_blank'>documentation</a>
10047
+ for more details.`], this.flatmapError.button = {
10040
10048
  text: "Restore Context",
10041
10049
  callback: () => {
10042
10050
  this.forceContextRestore();
@@ -10442,13 +10450,13 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10442
10450
  // 15
10443
10451
  ],
10444
10452
  helpModeActiveIndex: this.helpModeInitialIndex,
10445
- yellowstar: Mb,
10453
+ yellowstar: _b,
10446
10454
  isFC: !1,
10447
10455
  inHelp: !1,
10448
10456
  currentBackground: "white",
10449
10457
  availableBackground: ["white", "lightskyblue", "black"],
10450
10458
  loading: !1,
10451
- flatmapMarker: Sb,
10459
+ flatmapMarker: Cb,
10452
10460
  tooltipEntry: [],
10453
10461
  connectivityDataSource: "",
10454
10462
  connectivityTooltipVisible: !1,
@@ -10523,7 +10531,7 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10523
10531
  };
10524
10532
  },
10525
10533
  computed: {
10526
- ...du(Pb, ["userToken"]),
10534
+ ...du(Lb, ["userToken"]),
10527
10535
  isValidDrawnCreated: function() {
10528
10536
  return Object.keys(this.drawnCreatedEvent).length > 0;
10529
10537
  },
@@ -10595,35 +10603,35 @@ const Ii = new Lb(), Rb = "cannot be found on the map.", Fb = (e) => {
10595
10603
  this.mapManager ? this.mapManagerRef = this.mapManager : (this.mapManagerRef = Re(new Vr.MapViewer(this.flatmapAPI, { container: void 0 })), this.$emit("mapmanager-loaded", this.mapManagerRef));
10596
10604
  },
10597
10605
  mounted: function() {
10598
- 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();
10606
+ 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();
10599
10607
  }
10600
- }, Db = {
10608
+ }, Nb = {
10601
10609
  class: "flatmap-container",
10602
10610
  ref: "flatmapContainer",
10603
10611
  "element-loading-text": "Loading...",
10604
10612
  "element-loading-background": "rgba(0, 0, 0, 0.3)"
10605
- }, Nb = { style: { height: "100%", width: "100%", position: "relative", "overflow-y": "none" } }, Bb = {
10613
+ }, Bb = { style: { height: "100%", width: "100%", position: "relative", "overflow-y": "none" } }, Vb = {
10606
10614
  style: { height: "100%", width: "100%" },
10607
10615
  ref: "display",
10608
10616
  class: "flatmap-display"
10609
- }, Vb = { class: "beta-popovers" }, zb = {
10617
+ }, zb = { class: "beta-popovers" }, Hb = {
10610
10618
  key: 2,
10611
10619
  class: "warning-text"
10612
- }, Hb = { class: "bottom-right-control" }, Kb = ["innerHTML"], jb = { style: { "margin-bottom": "2px" } }, Ub = {
10620
+ }, Kb = { class: "bottom-right-control" }, jb = ["innerHTML"], Ub = { style: { "margin-bottom": "2px" } }, Wb = {
10613
10621
  key: 0,
10614
10622
  class: "viewing-mode-title"
10615
- }, Wb = ["onClick"], qb = ["onClick"];
10616
- function Gb(e, t, n, o, i, a) {
10623
+ }, qb = ["onClick"], Gb = ["onClick"];
10624
+ function Jb(e, t, n, o, i, a) {
10617
10625
  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;
10618
- return ie((w(), L("div", Db, [
10626
+ return ie((w(), L("div", Nb, [
10619
10627
  P(r),
10620
- R("div", Nb, [
10621
- R("div", Bb, null, 512),
10628
+ R("div", Bb, [
10629
+ R("div", Vb, null, 512),
10622
10630
  e.flatmapError ? (w(), z(s, {
10623
10631
  key: 0,
10624
10632
  flatmapError: e.flatmapError
10625
10633
  }, null, 8, ["flatmapError"])) : V("", !0),
10626
- ie(R("div", Vb, [
10634
+ ie(R("div", zb, [
10627
10635
  R("div", null, [
10628
10636
  n.displayWarning || n.isLegacy ? (w(), z(c, {
10629
10637
  key: 0,
@@ -10651,7 +10659,7 @@ function Gb(e, t, n, o, i, a) {
10651
10659
  class: "latest-map-text",
10652
10660
  onClick: t[6] || (t[6] = (...M) => a.viewLatestMap && a.viewLatestMap(...M))
10653
10661
  }, " Click here for the latest map ")
10654
- ], 64)) : n.displayWarning ? (w(), L("span", zb, "Beta")) : V("", !0)
10662
+ ], 64)) : n.displayWarning ? (w(), L("span", Hb, "Beta")) : V("", !0)
10655
10663
  ], 32)
10656
10664
  ]),
10657
10665
  default: E(() => [
@@ -10764,7 +10772,7 @@ function Gb(e, t, n, o, i, a) {
10764
10772
  onHideTooltip: a.hideTooltip,
10765
10773
  ref: "toolbarPopover"
10766
10774
  }, null, 8, ["mapCanvas", "toolbarOptions", "activeDrawTool", "activeDrawMode", "newlyDrawnEntry", "connectionEntry", "hoverVisibilities", "onClickToolbar", "onFeatureTooltip", "onConfirmDrawn", "onCancelDrawn", "onShowTooltip", "onHideTooltip"])) : V("", !0),
10767
- ie(R("div", Hb, [
10775
+ ie(R("div", Kb, [
10768
10776
  P(c, {
10769
10777
  content: "Zoom in",
10770
10778
  placement: "left",
@@ -10893,7 +10901,7 @@ function Gb(e, t, n, o, i, a) {
10893
10901
  ie(R("div", {
10894
10902
  class: "flatmap-marker-help",
10895
10903
  innerHTML: e.flatmapMarker
10896
- }, null, 8, Kb), [
10904
+ }, null, 8, jb), [
10897
10905
  [Ee, e.hoverVisibilities[0].value],
10898
10906
  [j, void 0, "markerPopover"]
10899
10907
  ])
@@ -10993,7 +11001,7 @@ function Gb(e, t, n, o, i, a) {
10993
11001
  onClick: (W) => e.$emit("open-map", M.key)
10994
11002
  }, {
10995
11003
  default: E(() => [
10996
- Z(ee(M.display), 1)
11004
+ Z(ne(M.display), 1)
10997
11005
  ]),
10998
11006
  _: 2
10999
11007
  }, 1032, ["onClick"])
@@ -11023,20 +11031,20 @@ function Gb(e, t, n, o, i, a) {
11023
11031
  }),
11024
11032
  P(O, { class: "backgroundControl" }, {
11025
11033
  default: E(() => [
11026
- R("div", jb, [
11034
+ R("div", Ub, [
11027
11035
  (w(!0), L(fe, null, Ke(e.viewingModes, (M, W, de) => (w(), L(fe, { key: W }, [
11028
- W === e.viewingMode ? (w(), L("span", Ub, [
11029
- R("b", null, ee(W), 1)
11036
+ W === e.viewingMode ? (w(), L("span", Wb, [
11037
+ R("b", null, ne(W), 1)
11030
11038
  ])) : (w(), L("span", {
11031
11039
  key: 1,
11032
11040
  class: "viewing-mode-unselected",
11033
11041
  onClick: (Y) => a.changeViewingMode(W)
11034
- }, ee(W), 9, Wb))
11042
+ }, ne(W), 9, qb))
11035
11043
  ], 64))), 128))
11036
11044
  ]),
11037
11045
  P(O, { class: "viewing-mode-description" }, {
11038
11046
  default: E(() => [
11039
- Z(ee(a.modeDescription), 1)
11047
+ Z(ne(a.modeDescription), 1)
11040
11048
  ]),
11041
11049
  _: 1
11042
11050
  }),
@@ -11081,7 +11089,7 @@ function Gb(e, t, n, o, i, a) {
11081
11089
  default: E(() => [
11082
11090
  P(T, { span: 12 }, {
11083
11091
  default: E(() => [
11084
- Z(ee(M), 1)
11092
+ Z(ne(M), 1)
11085
11093
  ]),
11086
11094
  _: 2
11087
11095
  }, 1024)
@@ -11226,7 +11234,7 @@ function Gb(e, t, n, o, i, a) {
11226
11234
  M == e.currentBackground ? "active" : ""
11227
11235
  ]),
11228
11236
  onClick: (W) => a.backgroundChangeCallback(M)
11229
- }, null, 10, qb))), 128))
11237
+ }, null, 10, Gb))), 128))
11230
11238
  ]),
11231
11239
  _: 1
11232
11240
  })
@@ -11313,13 +11321,13 @@ function Gb(e, t, n, o, i, a) {
11313
11321
  [B, e.loading]
11314
11322
  ]);
11315
11323
  }
11316
- const wl = /* @__PURE__ */ Kt($b, [["render", Gb], ["__scopeId", "data-v-ba0755eb"]]), Or = {
11324
+ const wl = /* @__PURE__ */ Kt(Db, [["render", Jb], ["__scopeId", "data-v-84e0038d"]]), Or = {
11317
11325
  "NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
11318
11326
  "NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
11319
11327
  "NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",
11320
11328
  "NCBITaxon:10090": "25285fab-48a0-5620-a6a0-f9a0374837d5",
11321
11329
  "NCBITaxon:9685": "73060497-46a6-52bf-b975-cac511c127cb"
11322
- }, Jb = {
11330
+ }, Yb = {
11323
11331
  name: "MultiFlatmapVuer",
11324
11332
  components: {
11325
11333
  Col: Wn,
@@ -11347,48 +11355,69 @@ const wl = /* @__PURE__ */ Kt($b, [["render", Gb], ["__scopeId", "data-v-ba0755e
11347
11355
  */
11348
11356
  initialise: function() {
11349
11357
  return this.multiflatmapError = null, new Promise((e) => {
11350
- this.requireInitialisation ? (this.requireInitialisation = !1, fetch(this.flatmapAPI).then((t) => t.json()).then((t) => {
11351
- t.status_code === 404 && (console.error("Flatmap API endpoint is incorrect", t), this.multiflatmapError = {}, this.multiflatmapError.title = "MultiFlatmap Error!", this.multiflatmapError.messages = [
11352
- `Sorry, the component could not be loaded because the specified
11358
+ if (this.requireInitialisation) {
11359
+ this.requireInitialisation = !1;
11360
+ const t = new AbortController(), n = t.signal, o = setTimeout(() => t.abort(), 5e3);
11361
+ fetch(this.flatmapAPI, { signal: n }).then((i) => {
11362
+ if (!i.ok) {
11363
+ if (i.status === 404)
11364
+ return this.multiflatmapError = {}, this.multiflatmapError.title = "MultiFlatmap Error!", this.multiflatmapError.messages = [
11365
+ `Sorry, the component could not be loaded because the specified
11366
+ flatmap API endpoint is incorrect. Please check the endpoint URL
11367
+ or contact support if the problem persists.`
11368
+ ], this.initialised = !0, e(), this.resolveList.forEach((a) => a()), Promise.reject({ handled: !0 });
11369
+ throw new Error(`HTTP ${i.status}: ${i.statusText}`);
11370
+ }
11371
+ return i.json();
11372
+ }).then((i) => {
11373
+ if (i && i.status_code === 404) {
11374
+ console.error("Flatmap API endpoint is incorrect", i), this.multiflatmapError = {}, this.multiflatmapError.title = "MultiFlatmap Error!", this.multiflatmapError.messages = [
11375
+ `Sorry, the component could not be loaded because the specified
11353
11376
  flatmap API endpoint is incorrect. Please check the endpoint URL
11354
11377
  or contact support if the problem persists.`
11355
- ]), Object.keys(this.availableSpecies).forEach((o) => {
11356
- const i = this.availableSpecies[o].uuid;
11357
- if (i && t.length && t.map((a) => a.uuid).indexOf(i) > 0)
11358
- this.speciesList[o] = this.availableSpecies[o];
11359
- else
11360
- for (let a = 0; a < t.length; a++)
11361
- if (this.availableSpecies[o].taxo === t[a].taxon)
11362
- if (this.availableSpecies[o].biologicalSex) {
11363
- if (t[a].biologicalSex && t[a].biologicalSex === this.availableSpecies[o].biologicalSex) {
11364
- this.speciesList[o] = this.availableSpecies[o];
11378
+ ], this.initialised = !0, e(), this.resolveList.forEach((r) => r());
11379
+ return;
11380
+ }
11381
+ Object.keys(this.availableSpecies).forEach((r) => {
11382
+ const s = this.availableSpecies[r].uuid;
11383
+ if (s && i.length && i.map((l) => l.uuid).indexOf(s) > 0)
11384
+ this.speciesList[r] = this.availableSpecies[r];
11385
+ else
11386
+ for (let l = 0; l < i.length; l++)
11387
+ if (this.availableSpecies[r].taxo === i[l].taxon)
11388
+ if (this.availableSpecies[r].biologicalSex) {
11389
+ if (i[l].biologicalSex && i[l].biologicalSex === this.availableSpecies[r].biologicalSex) {
11390
+ this.speciesList[r] = this.availableSpecies[r];
11391
+ break;
11392
+ }
11393
+ } else {
11394
+ this.speciesList[r] = this.availableSpecies[r];
11365
11395
  break;
11366
11396
  }
11367
- } else {
11368
- this.speciesList[o] = this.availableSpecies[o];
11369
- break;
11370
- }
11371
- });
11372
- let n = this.initial;
11373
- if (this.state) {
11374
- const o = this.state.state;
11375
- (!o || !o.uuid && !o.entry) && this.state.species ? n = this.state.species : n = void 0;
11376
- }
11377
- n && (n && this.speciesList[n] !== void 0 ? this.activeSpecies = n : this.activeSpecies = Object.keys(this.speciesList)[0], this.setSpecies(
11378
- this.activeSpecies,
11379
- this.state ? this.state.state : void 0,
11380
- 5
11381
- )), this.initialised = !0, e(), this.resolveList.forEach((o) => {
11382
- o();
11383
- });
11384
- }).catch((t) => {
11385
- console.error("Error fetching flatmap:", t), this.initialised = !0, this.multiflatmapError = {}, this.multiflatmapError.title = "MultiFlatmap Error!", this.multiflatmapError.messages = [
11386
- `Sorry, the component could not be loaded due to an unexpected error.
11397
+ });
11398
+ let a = this.initial;
11399
+ if (this.state) {
11400
+ const r = this.state.state;
11401
+ (!r || !r.uuid && !r.entry) && this.state.species ? a = this.state.species : a = void 0;
11402
+ }
11403
+ a && (a && this.speciesList[a] !== void 0 ? this.activeSpecies = a : this.activeSpecies = Object.keys(this.speciesList)[0], this.setSpecies(
11404
+ this.activeSpecies,
11405
+ this.state ? this.state.state : void 0,
11406
+ 5
11407
+ )), this.initialised = !0, e(), this.resolveList.forEach((r) => {
11408
+ r();
11409
+ });
11410
+ }).catch((i) => {
11411
+ i && i.handled || (console.error("Error fetching flatmap:", i), this.initialised = !0, this.multiflatmapError = {}, this.multiflatmapError.title = "MultiFlatmap Error!", this.multiflatmapError.messages = [
11412
+ `Sorry, the component could not be loaded due to an unexpected error.
11387
11413
  Please try again later or contact support if the problem persists.`
11388
- ], e(), this.resolveList.forEach((n) => {
11389
- n();
11414
+ ], e(), this.resolveList.forEach((a) => {
11415
+ a();
11416
+ }));
11417
+ }).finally(() => {
11418
+ clearTimeout(o);
11390
11419
  });
11391
- })) : this.initialised ? e() : this.resolveList.push(e);
11420
+ } else this.initialised ? e() : this.resolveList.push(e);
11392
11421
  });
11393
11422
  },
11394
11423
  /**
@@ -11924,17 +11953,17 @@ const wl = /* @__PURE__ */ Kt($b, [["render", Gb], ["__scopeId", "data-v-ba0755e
11924
11953
  }
11925
11954
  }
11926
11955
  }
11927
- }, Yb = {
11956
+ }, Zb = {
11928
11957
  class: "multi-container",
11929
11958
  ref: "multiContainer"
11930
- }, Zb = {
11959
+ }, Qb = {
11931
11960
  key: 0,
11932
11961
  style: { position: "absolute", "z-index": "100" }
11933
- }, Qb = { class: "select-box-icon" };
11934
- function Xb(e, t, n, o, i, a) {
11962
+ }, Xb = { class: "select-box-icon" };
11963
+ function e0(e, t, n, o, i, a) {
11935
11964
  const r = ea, s = zo, l = qn, u = wl, c = na;
11936
- return w(), L("div", Yb, [
11937
- n.disableUI ? V("", !0) : (w(), L("div", Zb, [
11965
+ return w(), L("div", Zb, [
11966
+ n.disableUI ? V("", !0) : (w(), L("div", Qb, [
11938
11967
  t[2] || (t[2] = R("div", { class: "species-display-text" }, "Species", -1)),
11939
11968
  P(l, {
11940
11969
  content: "Select a species",
@@ -11964,12 +11993,12 @@ function Xb(e, t, n, o, i, a) {
11964
11993
  value: f
11965
11994
  }, {
11966
11995
  default: E(() => [
11967
- R("span", Qb, [
11996
+ R("span", Xb, [
11968
11997
  R("i", {
11969
11998
  class: _(d.iconClass)
11970
11999
  }, null, 2)
11971
12000
  ]),
11972
- Z(" " + ee(f), 1)
12001
+ Z(" " + ne(f), 1)
11973
12002
  ]),
11974
12003
  _: 2
11975
12004
  }, 1032, ["label", "value"]))), 128))
@@ -12038,8 +12067,8 @@ function Xb(e, t, n, o, i, a) {
12038
12067
  }, null, 8, ["flatmapError"])) : V("", !0)
12039
12068
  ], 512);
12040
12069
  }
12041
- const r0 = /* @__PURE__ */ Kt(Jb, [["render", Xb], ["__scopeId", "data-v-7b90a46d"]]);
12070
+ const s0 = /* @__PURE__ */ Kt(Yb, [["render", e0], ["__scopeId", "data-v-1a5d097a"]]);
12042
12071
  export {
12043
12072
  wl as FlatmapVuer,
12044
- r0 as MultiFlatmapVuer
12073
+ s0 as MultiFlatmapVuer
12045
12074
  };