@abi-software/mapintegratedvuer 1.9.0 → 1.9.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.
@@ -7460,7 +7460,7 @@ const Bre = 11, zre = (e, t) => {
7460
7460
  (Tn = b.value) == null || Tn.handleScroll();
7461
7461
  }, He = (D) => {
7462
7462
  i.options.set(D.value, D), i.cachedOptions.set(D.value, D), D.disabled && i.disabledOptions.set(D.value, D);
7463
- }, Mt = (D, ue) => {
7463
+ }, Dt = (D, ue) => {
7464
7464
  i.options.get(D) === ue && i.options.delete(D);
7465
7465
  }, Ft = E(() => {
7466
7466
  var D, ue;
@@ -7547,7 +7547,7 @@ const Bre = 11, zre = (e, t) => {
7547
7547
  handleCompositionUpdate: k,
7548
7548
  handleCompositionEnd: C,
7549
7549
  onOptionCreate: He,
7550
- onOptionDestroy: Mt,
7550
+ onOptionDestroy: Dt,
7551
7551
  handleMenuEnter: Ht,
7552
7552
  focus: jt,
7553
7553
  blur: Qt,
@@ -16154,7 +16154,7 @@ const Zfe = 11, Qfe = (e, t) => {
16154
16154
  (Tn = b.value) == null || Tn.handleScroll();
16155
16155
  }, He = (D) => {
16156
16156
  i.options.set(D.value, D), i.cachedOptions.set(D.value, D), D.disabled && i.disabledOptions.set(D.value, D);
16157
- }, Mt = (D, ue) => {
16157
+ }, Dt = (D, ue) => {
16158
16158
  i.options.get(D) === ue && i.options.delete(D);
16159
16159
  }, Ft = E(() => {
16160
16160
  var D, ue;
@@ -16241,7 +16241,7 @@ const Zfe = 11, Qfe = (e, t) => {
16241
16241
  handleCompositionUpdate: k,
16242
16242
  handleCompositionEnd: C,
16243
16243
  onOptionCreate: He,
16244
- onOptionDestroy: Mt,
16244
+ onOptionDestroy: Dt,
16245
16245
  handleMenuEnter: Ht,
16246
16246
  focus: jt,
16247
16247
  blur: Qt,
@@ -32064,7 +32064,7 @@ bd.load = function() {
32064
32064
  if (!(!W && !O(A))) {
32065
32065
  var ve = !1, be = e.cy, me = be.zoom(), Pe = [A.clientX, A.clientY], Ce = e.projectIntoViewport(Pe[0], Pe[1]), Be = e.hoverData.mdownPos, st = e.hoverData.mdownGPos, nt = e.selection, fe = null;
32066
32066
  !e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (fe = e.findNearestElement(Ce[0], Ce[1], !0, !1));
32067
- var Te = e.hoverData.last, _e = e.hoverData.down, He = [Ce[0] - nt[2], Ce[1] - nt[3]], Mt = e.dragData.possibleDragElements, Ft;
32067
+ var Te = e.hoverData.last, _e = e.hoverData.down, He = [Ce[0] - nt[2], Ce[1] - nt[3]], Dt = e.dragData.possibleDragElements, Ft;
32068
32068
  if (st) {
32069
32069
  var Ht = Pe[0] - st[0], jt = Ht * Ht, Qt = Pe[1] - st[1], Mn = Qt * Qt, pn = jt + Mn;
32070
32070
  e.hoverData.isOverThresholdDrag = Ft = pn >= e.desktopTapThreshold2;
@@ -32152,10 +32152,10 @@ bd.load = function() {
32152
32152
  }), e.hoverData.last = fe), _e)
32153
32153
  if (Ft) {
32154
32154
  if (be.boxSelectionEnabled() && fn)
32155
- _e && _e.grabbed() && (m(Mt), _e.emit("freeon"), Mt.emit("free"), e.dragData.didDrag && (_e.emit("dragfreeon"), Mt.emit("dragfree"))), Dn();
32155
+ _e && _e.grabbed() && (m(Dt), _e.emit("freeon"), Dt.emit("free"), e.dragData.didDrag && (_e.emit("dragfreeon"), Dt.emit("dragfree"))), Dn();
32156
32156
  else if (_e && _e.grabbed() && e.nodeIsDraggable(_e)) {
32157
32157
  var Jt = !e.dragData.didDrag;
32158
- Jt && e.redrawHint("eles", !0), e.dragData.didDrag = !0, e.hoverData.draggingEles || f(Mt, {
32158
+ Jt && e.redrawHint("eles", !0), e.dragData.didDrag = !0, e.hoverData.draggingEles || f(Dt, {
32159
32159
  inDragLayer: !0
32160
32160
  });
32161
32161
  var hn = {
@@ -32166,7 +32166,7 @@ bd.load = function() {
32166
32166
  var On = e.hoverData.dragDelta;
32167
32167
  On && Xe(On[0]) && Xe(On[1]) && (hn.x += On[0], hn.y += On[1]);
32168
32168
  }
32169
- e.hoverData.draggingEles = !0, Mt.silentShift(hn).emit("position drag"), e.redrawHint("drag", !0), e.redraw();
32169
+ e.hoverData.draggingEles = !0, Dt.silentShift(hn).emit("position drag"), e.redrawHint("drag", !0), e.redraw();
32170
32170
  }
32171
32171
  } else
32172
32172
  In();
@@ -32232,8 +32232,8 @@ bd.load = function() {
32232
32232
  y: be[1]
32233
32233
  }
32234
32234
  });
32235
- var _e = function(Mt) {
32236
- return Mt.selectable() && !Mt.selected();
32235
+ var _e = function(Dt) {
32236
+ return Dt.selectable() && !Dt.selected();
32237
32237
  };
32238
32238
  ve.selectionType() === "additive" || st || ve.$(n).unmerge(Te).unselect(), Te.emit("box").stdFilter(_e).select().emit("boxselect"), e.redraw();
32239
32239
  }
@@ -32362,13 +32362,13 @@ bd.load = function() {
32362
32362
  else if (!A.touches[1] && A.touches[0]) {
32363
32363
  var _e = e.findNearestElements(ve[0], ve[1], !0, !0), He = _e[0];
32364
32364
  if (He != null && (He.activate(), e.touchData.start = He, e.touchData.starts = _e, e.nodeIsGrabbable(He))) {
32365
- var Mt = e.dragData.touchDragEles = W.collection(), Ft = null;
32365
+ var Dt = e.dragData.touchDragEles = W.collection(), Ft = null;
32366
32366
  e.redrawHint("eles", !0), e.redrawHint("drag", !0), He.selected() ? (Ft = W.$(function(pn) {
32367
32367
  return pn.selected() && e.nodeIsGrabbable(pn);
32368
32368
  }), f(Ft, {
32369
- addToList: Mt
32369
+ addToList: Dt
32370
32370
  })) : v(He, {
32371
- addToList: Mt
32371
+ addToList: Dt
32372
32372
  }), c(He);
32373
32373
  var Ht = function(pn) {
32374
32374
  return {
@@ -32426,7 +32426,7 @@ bd.load = function() {
32426
32426
  if (W && A.touches[0] && st) {
32427
32427
  for (var fe = [], Te = 0; Te < me.length; Te++)
32428
32428
  fe[Te] = me[Te] - Pe[Te];
32429
- var _e = A.touches[0].clientX - st[0], He = _e * _e, Mt = A.touches[0].clientY - st[1], Ft = Mt * Mt, Ht = He + Ft;
32429
+ var _e = A.touches[0].clientX - st[0], He = _e * _e, Dt = A.touches[0].clientY - st[1], Ft = Dt * Dt, Ht = He + Ft;
32430
32430
  nt = Ht >= e.touchTapThreshold2;
32431
32431
  }
32432
32432
  if (W && e.touchData.cxt) {
@@ -32567,7 +32567,7 @@ bd.load = function() {
32567
32567
  y: fe[1] * Ce
32568
32568
  }), be.emit("dragpan")) : nt && (e.swipePanning = !0, be.panBy({
32569
32569
  x: _e * Ce,
32570
- y: Mt * Ce
32570
+ y: Dt * Ce
32571
32571
  }), be.emit("dragpan"), $o && ($o.unactivate(), e.redrawHint("select", !0), e.touchData.start = null)));
32572
32572
  var Be = e.projectIntoViewport(A.touches[0].clientX, A.touches[0].clientY);
32573
32573
  me[0] = Be[0], me[1] = Be[1];
@@ -32651,8 +32651,8 @@ bd.load = function() {
32651
32651
  e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
32652
32652
  var He = e.dragData.touchDragEles;
32653
32653
  if (W != null) {
32654
- var Mt = W._private.grabbed;
32655
- m(He), e.redrawHint("drag", !0), e.redrawHint("eles", !0), Mt && (W.emit("freeon"), He.emit("free"), e.dragData.didDrag && (W.emit("dragfreeon"), He.emit("dragfree"))), r(W, ["touchend", "tapend", "vmouseup", "tapdragout"], A, {
32654
+ var Dt = W._private.grabbed;
32655
+ m(He), e.redrawHint("drag", !0), e.redrawHint("eles", !0), Dt && (W.emit("freeon"), He.emit("free"), e.dragData.didDrag && (W.emit("dragfreeon"), He.emit("dragfree"))), r(W, ["touchend", "tapend", "vmouseup", "tapdragout"], A, {
32656
32656
  x: Ce[0],
32657
32657
  y: Ce[1]
32658
32658
  }), W.unactivate(), e.touchData.start = null;
@@ -34288,8 +34288,8 @@ xd.drawNode = function(e, t, n) {
34288
34288
  H === "inside" && (Be = 0), H === "outside" && (Be *= 2);
34289
34289
  var st = (s + Be + (de + re)) / s, nt = (l + Be + (de + re)) / l, fe = s * st, Te = l * nt, _e = i.nodeShapes[Ce].points, He;
34290
34290
  if (h) {
34291
- var Mt = ke(fe, Te, Ce, _e);
34292
- He = Mt.path;
34291
+ var Dt = ke(fe, Te, Ce, _e);
34292
+ He = Dt.path;
34293
34293
  }
34294
34294
  if (Ce === "ellipse")
34295
34295
  i.drawEllipsePath(He || e, Pe.x, Pe.y, fe, Te);
@@ -46490,7 +46490,7 @@ function MEe(e) {
46490
46490
  });
46491
46491
  } };
46492
46492
  }
46493
- const Dt = new MEe(), kj = (e, t) => {
46493
+ const Mt = new MEe(), kj = (e, t) => {
46494
46494
  const n = e.__vccOpts || e;
46495
46495
  for (const [r, o] of t)
46496
46496
  n[r] = o;
@@ -48000,7 +48000,7 @@ const iV = (e) => {
48000
48000
  }
48001
48001
  },
48002
48002
  updateSplitPanels() {
48003
- Dt.emit("species-layout-connectivity-update");
48003
+ Mt.emit("species-layout-connectivity-update");
48004
48004
  }
48005
48005
  }
48006
48006
  }), l5e = {
@@ -48089,7 +48089,7 @@ const iV = (e) => {
48089
48089
  },
48090
48090
  methods: {
48091
48091
  closeAndRemove: function() {
48092
- this.splitFlowStore.closeSlot({ id: this.entry.id, entries: this.entries }), Dt.emit("RemoveEntryRequest", this.entry.id);
48092
+ this.splitFlowStore.closeSlot({ id: this.entry.id, entries: this.entries }), Mt.emit("RemoveEntryRequest", this.entry.id);
48093
48093
  },
48094
48094
  getEntryTitle: function(e) {
48095
48095
  if (e) {
@@ -48270,7 +48270,7 @@ function d5e(e, t, n, r, o, a) {
48270
48270
  })
48271
48271
  ]);
48272
48272
  }
48273
- const sV = /* @__PURE__ */ Ha(l5e, [["render", d5e], ["__scopeId", "data-v-0eddccab"]]), p5e = nd(() => import("./Flatmap-DrfTTLeB.js")), f5e = nd(() => import("./Iframe-DNML_G7u.js")), h5e = nd(() => import("./MultiFlatmap-Vp10mrjr.js")), v5e = nd(() => import("./Plot-BnuX-0LW.js")), g5e = nd(() => import("./Scaffold-CLNZHo3r.js")), m5e = nd(() => import("./Simulation-BEU8ep5d.js")), y5e = {
48273
+ const sV = /* @__PURE__ */ Ha(l5e, [["render", d5e], ["__scopeId", "data-v-0eddccab"]]), p5e = nd(() => import("./Flatmap-D66Ygegj.js")), f5e = nd(() => import("./Iframe-DFAzMMSw.js")), h5e = nd(() => import("./MultiFlatmap-BOOSKitQ.js")), v5e = nd(() => import("./Plot-DPxSQnwg.js")), g5e = nd(() => import("./Scaffold-DRQEE-j_.js")), m5e = nd(() => import("./Simulation-BVcaSVmW.js")), y5e = {
48274
48274
  name: "ContentVuer",
48275
48275
  props: {
48276
48276
  /**
@@ -48965,7 +48965,7 @@ const F5e = /* @__PURE__ */ E5e(O5e, [["render", T5e]]), A5e = {
48965
48965
  requestStylesUpdate: function(e) {
48966
48966
  if (this.$refs && e in this.$refs && this.$refs[e] && this.$refs[e][0] && this.$refs[e][0].$el) {
48967
48967
  const n = this.$refs[e][0].$el.getBoundingClientRect();
48968
- Dt.emit("PaneResize", { refName: e, rect: n });
48968
+ Mt.emit("PaneResize", { refName: e, rect: n });
48969
48969
  }
48970
48970
  },
48971
48971
  /**
@@ -48977,7 +48977,7 @@ const F5e = /* @__PURE__ */ E5e(O5e, [["render", T5e]]), A5e = {
48977
48977
  }));
48978
48978
  },
48979
48979
  childUnmounted: function(e) {
48980
- Dt.emit("PaneUnmounted", { refName: e });
48980
+ Mt.emit("PaneUnmounted", { refName: e });
48981
48981
  }
48982
48982
  },
48983
48983
  computed: {
@@ -49030,15 +49030,27 @@ function P5e(e, t, n, r, o, a) {
49030
49030
  const dV = /* @__PURE__ */ Ha(A5e, [["render", P5e], ["__scopeId", "data-v-0667e71f"]]), L5e = Lf("connectivities", {
49031
49031
  state: () => ({
49032
49032
  globalConnectivities: {},
49033
- activeConnectivityKey: ""
49033
+ activeConnectivityKeys: []
49034
49034
  }),
49035
- getters: {},
49035
+ getters: {
49036
+ getUniqueConnectivitiesByKeys: (e) => {
49037
+ let t = [];
49038
+ return e.activeConnectivityKeys.forEach((r) => {
49039
+ if (r in e.globalConnectivities) {
49040
+ const o = e.globalConnectivities[r];
49041
+ t.push(...o);
49042
+ }
49043
+ }), Array.from(
49044
+ new Map(t.map((r) => [r.id, r])).values()
49045
+ );
49046
+ }
49047
+ },
49036
49048
  actions: {
49037
49049
  updateGlobalConnectivities(e) {
49038
49050
  this.globalConnectivities = e;
49039
49051
  },
49040
- updateActiveConnectivityKey(e) {
49041
- this.activeConnectivityKey = e;
49052
+ updateActiveConnectivityKeys(e) {
49053
+ this.activeConnectivityKeys = e;
49042
49054
  }
49043
49055
  }
49044
49056
  }), R5e = {
@@ -49129,9 +49141,9 @@ const dV = /* @__PURE__ */ Ha(A5e, [["render", P5e], ["__scopeId", "data-v-0667e
49129
49141
  }), this.__userResize__ = !1;
49130
49142
  },
49131
49143
  onSpeciesLayoutConnectivityUpdate: function() {
49132
- let e = [], t = [], n = [], r = "", o = "";
49133
- for (const i in this.customLayout)
49134
- this.customLayout[i].id && t.push(this.customLayout[i].id);
49144
+ let e = [], t = [], n = "";
49145
+ for (const o in this.customLayout)
49146
+ this.customLayout[o].id && t.push(this.customLayout[o].id);
49135
49147
  switch (this.activeView) {
49136
49148
  case "singlepanel":
49137
49149
  e = t.slice(0, 1);
@@ -49154,30 +49166,23 @@ const dV = /* @__PURE__ */ Ha(A5e, [["render", P5e], ["__scopeId", "data-v-0667e
49154
49166
  e = t.slice(0, 6);
49155
49167
  break;
49156
49168
  }
49157
- const a = Array.from(
49169
+ const r = Array.from(
49158
49170
  new Set(
49159
- this.entries.filter((i) => e.includes(i.id) && i.uuid).map((i) => i.uuid)
49171
+ this.entries.filter((o) => e.includes(o.id) && o.uuid).map((o) => o.uuid)
49160
49172
  )
49161
49173
  );
49162
- if (this.entries.forEach((i) => {
49163
- i.sckanVersion in this.connectivitiesStore.globalConnectivities && (r = i.sckanVersion);
49164
- }), a.length) {
49165
- a.forEach((s) => {
49166
- if (s in this.connectivitiesStore.globalConnectivities) {
49167
- const l = this.connectivitiesStore.globalConnectivities[s];
49168
- n.push(...l);
49169
- }
49174
+ if (this.entries.forEach((o) => {
49175
+ o.sckanVersion in this.connectivitiesStore.globalConnectivities && (n = o.sckanVersion);
49176
+ }), r.length) {
49177
+ this.connectivitiesStore.updateActiveConnectivityKeys(r);
49178
+ const o = this.connectivitiesStore.getUniqueConnectivitiesByKeys;
49179
+ Mt.emit("connectivity-knowledge", {
49180
+ data: o
49170
49181
  });
49171
- const i = Array.from(
49172
- new Map(n.map((s) => [s.id, s])).values()
49173
- );
49174
- Dt.emit("connectivity-knowledge", {
49175
- data: i
49176
- }), a.length === 1 && this.connectivitiesStore.updateActiveConnectivityKey(o);
49177
49182
  } else
49178
- r ? (Dt.emit("connectivity-knowledge", {
49179
- data: this.connectivitiesStore.globalConnectivities[r]
49180
- }), this.connectivitiesStore.updateActiveConnectivityKey(r)) : console.warn("There has no connectivity to show!");
49183
+ n ? (Mt.emit("connectivity-knowledge", {
49184
+ data: this.connectivitiesStore.globalConnectivities[n]
49185
+ }), this.connectivitiesStore.updateActiveConnectivityKeys([n])) : console.warn("There has no connectivity to show!");
49181
49186
  }
49182
49187
  },
49183
49188
  computed: {
@@ -49218,11 +49223,11 @@ const dV = /* @__PURE__ */ Ha(A5e, [["render", P5e], ["__scopeId", "data-v-0667e
49218
49223
  }
49219
49224
  },
49220
49225
  mounted: function() {
49221
- Dt.on("PaneResize", (e) => {
49226
+ Mt.on("PaneResize", (e) => {
49222
49227
  this.setStyles(e.refName, e.rect);
49223
- }), Dt.on("PaneUnmounted", (e) => {
49228
+ }), Mt.on("PaneUnmounted", (e) => {
49224
49229
  this.hidePane(e.refName);
49225
- }), Dt.on("species-layout-connectivity-update", () => {
49230
+ }), Mt.on("species-layout-connectivity-update", () => {
49226
49231
  this.onSpeciesLayoutConnectivityUpdate();
49227
49232
  });
49228
49233
  }
@@ -49254,7 +49259,7 @@ function M5e(e, t, n, r, o, a) {
49254
49259
  ], 6))), 128))
49255
49260
  ], 512);
49256
49261
  }
49257
- const pV = /* @__PURE__ */ Ha(R5e, [["render", M5e], ["__scopeId", "data-v-5f051421"]]), D5e = {
49262
+ const pV = /* @__PURE__ */ Ha(R5e, [["render", M5e], ["__scopeId", "data-v-57bdf972"]]), D5e = {
49258
49263
  name: "SearchControls",
49259
49264
  props: {
49260
49265
  failedSearch: void 0
@@ -49408,7 +49413,7 @@ const fV = /* @__PURE__ */ Ha(D5e, [["render", H5e], ["__scopeId", "data-v-eb3db
49408
49413
  this.$emit("titleClicked", e);
49409
49414
  },
49410
49415
  startHelp: function() {
49411
- Dt.emit("startHelp");
49416
+ Mt.emit("startHelp");
49412
49417
  },
49413
49418
  onFullscreen: function() {
49414
49419
  this.$emit("onFullscreen"), this.isFullscreen = !this.isFullscreen;
@@ -49429,7 +49434,7 @@ const fV = /* @__PURE__ */ Ha(D5e, [["render", H5e], ["__scopeId", "data-v-eb3db
49429
49434
  sessionStorage.getItem("anonymous-annotation") ? this.displayShareOptions = !0 : this.getShareLink(!1);
49430
49435
  },
49431
49436
  getShareLink: function(e) {
49432
- this.displayShareOptions = !1, this.loadingLink = !0, Dt.emit("updateShareLinkRequested", e);
49437
+ this.displayShareOptions = !1, this.loadingLink = !0, Mt.emit("updateShareLinkRequested", e);
49433
49438
  },
49434
49439
  viewClicked: function(e) {
49435
49440
  this.splitFlowStore.updateActiveView({
@@ -49808,7 +49813,7 @@ const hV = /* @__PURE__ */ Ha(U5e, [["render", Q5e], ["__scopeId", "data-v-e463a
49808
49813
  citation_type: e.citation_type || "",
49809
49814
  location: e.location || ""
49810
49815
  };
49811
- localStorage.getItem("debugTagging") === "yes" && console.table(t), Dt.emit("trackEvent", t);
49816
+ localStorage.getItem("debugTagging") === "yes" && console.table(t), Mt.emit("trackEvent", t);
49812
49817
  }
49813
49818
  }, vV = (e) => !e.getAttribute("aria-owns"), gV = (e, t, n) => {
49814
49819
  const { parentNode: r } = e;
@@ -56775,10 +56780,10 @@ const Yc = Un(rLe), oLe = St({
56775
56780
  const fe = ye.value, Te = [], _e = [];
56776
56781
  if (fe.forEach((He) => _e.push(Oe(He))), I.value = _e, fe.length) {
56777
56782
  fe.slice(0, r.maxCollapseTags).forEach((Ft) => Te.push(Oe(Ft)));
56778
- const He = fe.slice(r.maxCollapseTags), Mt = He.length;
56779
- Mt && (r.collapseTags ? Te.push({
56783
+ const He = fe.slice(r.maxCollapseTags), Dt = He.length;
56784
+ Dt && (r.collapseTags ? Te.push({
56780
56785
  key: -1,
56781
- text: `+ ${Mt}`,
56786
+ text: `+ ${Dt}`,
56782
56787
  closable: !1,
56783
56788
  isCollapseTag: !0
56784
56789
  }) : He.forEach((Ft) => Te.push(Oe(Ft))));
@@ -56786,7 +56791,7 @@ const Yc = Un(rLe), oLe = St({
56786
56791
  F.value = Te;
56787
56792
  }, Ue = () => {
56788
56793
  var fe, Te;
56789
- const { filterMethod: _e, showAllLevels: He, separator: Mt } = r, Ft = (Te = (fe = x.value) == null ? void 0 : fe.getFlattedNodes(!r.props.checkStrictly)) == null ? void 0 : Te.filter((Ht) => Ht.isDisabled ? !1 : (Ht.calcText(He, Mt), _e(Ht, de.value)));
56794
+ const { filterMethod: _e, showAllLevels: He, separator: Dt } = r, Ft = (Te = (fe = x.value) == null ? void 0 : fe.getFlattedNodes(!r.props.checkStrictly)) == null ? void 0 : Te.filter((Ht) => Ht.isDisabled ? !1 : (Ht.calcText(He, Dt), _e(Ht, de.value)));
56790
56795
  le.value && (F.value.forEach((Ht) => {
56791
56796
  Ht.hitState = !1;
56792
56797
  }), I.value.forEach((Ht) => {
@@ -56798,10 +56803,10 @@ const Yc = Un(rLe), oLe = St({
56798
56803
  S.value && w.value ? Te = w.value.$el.querySelector(`.${l.e("suggestion-item")}`) : Te = (fe = x.value) == null ? void 0 : fe.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`), Te && (Te.focus(), !S.value && Te.click());
56799
56804
  }, Ve = () => {
56800
56805
  var fe, Te;
56801
- const _e = (fe = g.value) == null ? void 0 : fe.input, He = b.value, Mt = (Te = w.value) == null ? void 0 : Te.$el;
56806
+ const _e = (fe = g.value) == null ? void 0 : fe.input, He = b.value, Dt = (Te = w.value) == null ? void 0 : Te.$el;
56802
56807
  if (!(!En || !_e)) {
56803
- if (Mt) {
56804
- const Ft = Mt.querySelector(`.${l.e("suggestion-list")}`);
56808
+ if (Dt) {
56809
+ const Ft = Dt.querySelector(`.${l.e("suggestion-list")}`);
56805
56810
  Ft.style.minWidth = `${_e.offsetWidth}px`;
56806
56811
  }
56807
56812
  if (He) {
@@ -56988,8 +56993,8 @@ const Yc = Un(rLe), oLe = St({
56988
56993
  V("div", {
56989
56994
  class: B(y(l).e("collapse-tags"))
56990
56995
  }, [
56991
- (_(!0), L(ze, null, Ct(I.value.slice(fe.maxCollapseTags), (He, Mt) => (_(), L("div", {
56992
- key: Mt,
56996
+ (_(!0), L(ze, null, Ct(I.value.slice(fe.maxCollapseTags), (He, Dt) => (_(), L("div", {
56997
+ key: Dt,
56993
56998
  class: B(y(l).e("collapse-tag"))
56994
56999
  }, [
56995
57000
  (_(), ne(y(Yc), {
@@ -58967,7 +58972,7 @@ const QRe = 11, JRe = (e, t) => {
58967
58972
  (Tn = b.value) == null || Tn.handleScroll();
58968
58973
  }, He = (D) => {
58969
58974
  i.options.set(D.value, D), i.cachedOptions.set(D.value, D), D.disabled && i.disabledOptions.set(D.value, D);
58970
- }, Mt = (D, ue) => {
58975
+ }, Dt = (D, ue) => {
58971
58976
  i.options.get(D) === ue && i.options.delete(D);
58972
58977
  }, Ft = E(() => {
58973
58978
  var D, ue;
@@ -59054,7 +59059,7 @@ const QRe = 11, JRe = (e, t) => {
59054
59059
  handleCompositionUpdate: k,
59055
59060
  handleCompositionEnd: C,
59056
59061
  onOptionCreate: He,
59057
- onOptionDestroy: Mt,
59062
+ onOptionDestroy: Dt,
59058
59063
  handleMenuEnter: Ht,
59059
59064
  focus: jt,
59060
59065
  blur: Qt,
@@ -70824,7 +70829,7 @@ var oW = { exports: {} };
70824
70829
  var ae = b(J);
70825
70830
  return ae.queryParameters["X-Algolia-User-ID"] = X, q.transporter.write({ method: O, path: "1/clusters/mapping" }, ae);
70826
70831
  };
70827
- }, Mt = function(q) {
70832
+ }, Dt = function(q) {
70828
70833
  return function(X, J, ae) {
70829
70834
  var we = J.map(function(je) {
70830
70835
  return { action: "addEntry", body: je };
@@ -71293,7 +71298,7 @@ var oW = { exports: {} };
71293
71298
  return Promise.all([ot.requestsCache.clear(), ot.responsesCache.clear()]).then(function() {
71294
71299
  });
71295
71300
  } }, Ne.methods);
71296
- }(o(o({}, je), {}, { methods: { search: Te, searchForFacetValues: _e, multipleBatch: nt, multipleGetObjects: fe, multipleQueries: Te, copyIndex: De, copySettings: Oe, copySynonyms: Ie, copyRules: Se, moveIndex: st, listIndices: Ce, getLogs: Je, listClusters: Pe, multipleSearchForFacetValues: _e, getApiKey: Ve, addApiKey: se, listApiKeys: me, updateApiKey: pn, deleteApiKey: Ue, restoreApiKey: Ft, assignUserID: pe, assignUserIDs: ke, getUserID: W, searchUserIDs: Qt, listUserIDs: Be, getTopUserIDs: A, removeUserID: He, hasPendingMappings: ve, clearDictionaryEntries: Re, deleteDictionaryEntries: et, getDictionarySettings: tt, getAppTask: rt, replaceDictionaryEntries: Mt, saveDictionaryEntries: Ht, searchDictionaryEntries: jt, setDictionarySettings: Mn, waitAppTask: fn, customRequest: Fe, initIndex: function(Ne) {
71301
+ }(o(o({}, je), {}, { methods: { search: Te, searchForFacetValues: _e, multipleBatch: nt, multipleGetObjects: fe, multipleQueries: Te, copyIndex: De, copySettings: Oe, copySynonyms: Ie, copyRules: Se, moveIndex: st, listIndices: Ce, getLogs: Je, listClusters: Pe, multipleSearchForFacetValues: _e, getApiKey: Ve, addApiKey: se, listApiKeys: me, updateApiKey: pn, deleteApiKey: Ue, restoreApiKey: Ft, assignUserID: pe, assignUserIDs: ke, getUserID: W, searchUserIDs: Qt, listUserIDs: Be, getTopUserIDs: A, removeUserID: He, hasPendingMappings: ve, clearDictionaryEntries: Re, deleteDictionaryEntries: et, getDictionarySettings: tt, getAppTask: rt, replaceDictionaryEntries: Dt, saveDictionaryEntries: Ht, searchDictionaryEntries: jt, setDictionarySettings: Mn, waitAppTask: fn, customRequest: Fe, initIndex: function(Ne) {
71297
71302
  return function(Ge) {
71298
71303
  return be(Ne)(Ge, { methods: { batch: In, delete: vr, findAnswers: en, getObject: Fn, getObjects: tn, saveObject: Cl, saveObjects: Xr, search: g5, searchForFacetValues: m5, waitTask: qn, setSettings: hW, getSettings: kl, partialUpdateObject: Th, partialUpdateObjects: Fh, deleteObject: Do, deleteObjects: D, deleteBy: On, clearObjects: rr, browseObjects: Dn, getObjectPosition: sn, findObject: Tn, exists: Ke, saveSynonym: fW, saveSynonyms: _1, getSynonym: Oh, searchSynonyms: b5, browseSynonyms: hr, deleteSynonym: Le, clearSynonyms: hn, replaceAllObjects: $o, replaceAllSynonyms: Ah, searchRules: y5, getRule: Bo, deleteRule: ue, saveRule: C1, saveRules: S1, replaceAllRules: Bd, browseRules: xn, clearRules: Jt } });
71299
71304
  };
@@ -73130,10 +73135,10 @@ const wKe = {
73130
73135
  },
73131
73136
  watch: {
73132
73137
  connectivityKnowledge: function(e, t) {
73133
- JSON.stringify(e) !== JSON.stringify(t) && (this.expanded = "", this.results = e.map((n) => ({
73138
+ this.expanded = "", this.initLoading = !1, this.loadingCards = !1, JSON.stringify(e) !== JSON.stringify(t) && (this.results = e.map((n) => ({
73134
73139
  ...n,
73135
73140
  loaded: !1
73136
- })), this.numberOfHits = this.results.length, this.initLoading = !1, this.loadingCards = !1, this.numberOfHits === 1 && this.onConnectivityExplorerClicked(this.results[0]));
73141
+ })), this.numberOfHits = this.results.length, this.numberOfHits === 1 && this.onConnectivityExplorerClicked(this.results[0]));
73137
73142
  },
73138
73143
  paginatedResults: function() {
73139
73144
  this.loadingCards = !1;
@@ -73159,6 +73164,9 @@ const wKe = {
73159
73164
  resetSearch: function() {
73160
73165
  this.numberOfHits = 0, this.results = [], this.loadingCards = !1;
73161
73166
  },
73167
+ resetSearchIfNoActiveSearch: function() {
73168
+ this.searchInput || this.openSearch([], "");
73169
+ },
73162
73170
  openSearch: function(e, t = "", n = { withSearch: !0 }) {
73163
73171
  this.searchInput = t, this.resetPageNavigation(), this.cascaderIsReady ? (this.filter = this.$refs.filtersRef.getHierarchicalValidatedFilters(e), e && e.length > 0 && this.filter && this.filter.length === 0 ? (this.$refs.filtersRef.checkShowAllBoxes(), this.resetSearch()) : this.filter && (n.withSearch && this.searchKnowledge(this.filter, t), this.$refs.filtersRef.setCascader(this.filter))) : (this.filter = e, (!e || e.length == 0) && n.withSearch && this.searchKnowledge(this.filter, t));
73164
73172
  },
@@ -73350,7 +73358,7 @@ function SKe(e, t, n, r, o, a) {
73350
73358
  _: 1
73351
73359
  }, 8, ["body-style"]);
73352
73360
  }
73353
- const uW = /* @__PURE__ */ ma(wKe, [["render", SKe], ["__scopeId", "data-v-b3df2872"]]), _Ke = {
73361
+ const uW = /* @__PURE__ */ ma(wKe, [["render", SKe], ["__scopeId", "data-v-fd04a96e"]]), _Ke = {
73354
73362
  name: "AnnotationTool",
73355
73363
  components: {
73356
73364
  AnnotationPopup: ED,
@@ -73649,6 +73657,11 @@ const dW = /* @__PURE__ */ ma(TKe, [["render", PKe], ["__scopeId", "data-v-9dda8
73649
73657
  this.getTabRef(void 0, "connectivityExplorer", !0).openSearch(e, t);
73650
73658
  });
73651
73659
  },
73660
+ resetConnectivitySearch: function() {
73661
+ this.$nextTick(() => {
73662
+ this.getTabRef(void 0, "connectivityExplorer", !1).resetSearchIfNoActiveSearch();
73663
+ });
73664
+ },
73652
73665
  openSearch: function(e, t) {
73653
73666
  this.drawerOpen = !0, this.$nextTick(() => {
73654
73667
  this.getTabRef(void 0, "datasetExplorer", !0).openSearch(e, t);
@@ -73843,7 +73856,7 @@ function DKe(e, t, n, r, o, a) {
73843
73856
  }, 8, ["modelValue"])
73844
73857
  ], 512);
73845
73858
  }
73846
- const BKe = /* @__PURE__ */ ma(LKe, [["render", DKe], ["__scopeId", "data-v-2b6bf3bb"]]);
73859
+ const BKe = /* @__PURE__ */ ma(LKe, [["render", DKe], ["__scopeId", "data-v-eb25f336"]]);
73847
73860
  /*! js-cookie v3.0.5 | MIT */
73848
73861
  function Av(e) {
73849
73862
  for (var t = 1; t < arguments.length; t++) {
@@ -74276,23 +74289,23 @@ const HKe = Lf("main", {
74276
74289
  */
74277
74290
  onShowConnectivity: function(e) {
74278
74291
  const t = this.splitFlowStore.getState(), n = (t == null ? void 0 : t.activeView) || "";
74279
- Dt.emit("show-connectivity", {
74292
+ Mt.emit("show-connectivity", {
74280
74293
  featureIds: e,
74281
74294
  offset: n === "singlepanel" || n === "2horpanel"
74282
74295
  });
74283
74296
  },
74284
74297
  onShowReferenceConnectivities: function(e) {
74285
- Dt.emit("show-reference-connectivities", e);
74298
+ Mt.emit("show-reference-connectivities", e);
74286
74299
  },
74287
74300
  onConnectivityHovered: function(e) {
74288
- Dt.emit("connectivity-hovered", e);
74301
+ Mt.emit("connectivity-hovered", e);
74289
74302
  },
74290
74303
  onConnectivitySourceChange: function(e) {
74291
- this.connectivityExplorerClicked.push(!0), Dt.emit("connectivity-source-change", e);
74304
+ this.connectivityExplorerClicked.push(!0), Mt.emit("connectivity-source-change", e);
74292
74305
  },
74293
74306
  hoverChanged: function(e) {
74294
74307
  let t = [], n = [], r = "", o = [];
74295
- e ? e.type === "dataset" ? (t = e.anatomy ? e.anatomy : [], n = e.organs ? e.organs : [], r = e.doi ? e.doi : "") : e.type === "connectivity" && (o = e.id ? [e.id] : []) : o = this.connectivityHighlight, this.settingsStore.updateHoverFeatures(t, n, r, o), Dt.emit("hoverUpdate");
74308
+ e ? e.type === "dataset" ? (t = e.anatomy ? e.anatomy : [], n = e.organs ? e.organs : [], r = e.doi ? e.doi : "") : e.type === "connectivity" && (o = e.id ? [e.id] : []) : o = this.connectivityHighlight, this.settingsStore.updateHoverFeatures(t, n, r, o), Mt.emit("hoverUpdate");
74296
74309
  },
74297
74310
  searchChanged: function(e) {
74298
74311
  if (e.id === 1) {
@@ -74315,10 +74328,10 @@ const HKe = Lf("main", {
74315
74328
  }
74316
74329
  this.filterTriggered = !1;
74317
74330
  }
74318
- } else e.id === 2 && (this.connectivityEntry = [], Dt.emit("connectivity-query-filter", e));
74331
+ } else e.id === 2 && (this.connectivityEntry = [], Mt.emit("connectivity-query-filter", e));
74319
74332
  },
74320
74333
  updateMarkers: function(e) {
74321
- this.settingsStore.updateMarkers(e), Dt.emit("markerUpdate");
74334
+ this.settingsStore.updateMarkers(e), Mt.emit("markerUpdate");
74322
74335
  },
74323
74336
  updateScaffoldMarkers: function(e) {
74324
74337
  this.settingsStore.updateNumberOfDatasetsForFacets(e);
@@ -74349,7 +74362,7 @@ const HKe = Lf("main", {
74349
74362
  },
74350
74363
  openNewMap: async function(e) {
74351
74364
  const t = await GEe(e, this.settingsStore.sparcApi);
74352
- this.createNewEntry(t), t.contextCard && Dt.emit("contextUpdate", t.contextCard);
74365
+ this.createNewEntry(t), t.contextCard && Mt.emit("contextUpdate", t.contextCard);
74353
74366
  },
74354
74367
  openSearch: function(e, t) {
74355
74368
  this.search = t, this._facets = e, this.$refs && this.$refs.sideBar && (this.$refs.sideBar.openSearch(e, t), this.$refs.sideBar.tabClicked({ id: 1, type: "datasetExplorer" })), this.startUp = !1;
@@ -74385,7 +74398,7 @@ const HKe = Lf("main", {
74385
74398
  },
74386
74399
  speciesChanged: function(e) {
74387
74400
  this.$refs.sideBar && this.$nextTick(() => {
74388
- Dt.emit("species-layout-connectivity-update"), this.$refs.sideBar.close();
74401
+ Mt.emit("species-layout-connectivity-update"), this.$refs.sideBar.close();
74389
74402
  });
74390
74403
  },
74391
74404
  toggleSyncMode: function(e) {
@@ -74394,7 +74407,7 @@ const HKe = Lf("main", {
74394
74407
  }));
74395
74408
  },
74396
74409
  contextUpdate: function(e) {
74397
- Dt.emit("contextUpdate", e);
74410
+ Mt.emit("contextUpdate", e);
74398
74411
  },
74399
74412
  datalinkClicked: function(e) {
74400
74413
  const t = e || "", n = "datasets/", o = t.substring(
@@ -74426,34 +74439,36 @@ const HKe = Lf("main", {
74426
74439
  e.id === 1 && e.type === "datasetExplorer" ? t.interactiveMode = "dataset" : e.id === 2 && e.type === "connectivityExplorer" && (t.interactiveMode = "connectivity"), this.settingsStore.updateGlobalSettings(t), this.$refs.dialogToolbar.loadGlobalSettings();
74427
74440
  },
74428
74441
  onSidebarTabClosed: function(e) {
74429
- e.id === 3 && e.type === "annotation" && Dt.emit("annotation-close");
74442
+ e.id === 3 && e.type === "annotation" && Mt.emit("annotation-close");
74430
74443
  }
74431
74444
  },
74432
74445
  created: function() {
74433
74446
  this._facets = [], this._externalStateSet = !1;
74434
74447
  },
74435
74448
  mounted: function() {
74436
- Dt.on("RemoveEntryRequest", (e) => {
74449
+ Mt.on("RemoveEntryRequest", (e) => {
74437
74450
  this.removeEntry(e);
74438
- }), Dt.on("SyncModeRequest", (e) => {
74451
+ }), Mt.on("SyncModeRequest", (e) => {
74439
74452
  this.toggleSyncMode(e);
74440
- }), Dt.on("PopoverActionClick", (e) => {
74453
+ }), Mt.on("PopoverActionClick", (e) => {
74441
74454
  this.actionClick(e);
74442
- }), Dt.on("annotation-open", (e) => {
74455
+ }), Mt.on("annotation-open", (e) => {
74443
74456
  this.annotationEntry = e.annotationEntry, this.annotationCallback = jo(e.commitCallback), e.createData ? this.createData = jo(e.createData) : this.createData = jo({}), this.confirmCreateCallback = jo(e.confirmCreate), this.cancelCreateCallback = jo(e.cancelCreate), this.confirmDeleteCallback = jo(e.confirmDelete), this.confirmCommentCallback = jo(e.confirmComment), this.$refs.sideBar && (this.$refs.sideBar.tabClicked({ id: 3, type: "annotation" }), this.$refs.sideBar.setDrawerOpen(!0));
74444
- }), Dt.on("annotation-close", () => {
74457
+ }), Mt.on("annotation-close", () => {
74445
74458
  this.$refs.sideBar.tabClicked({ id: 1, type: "datasetExplorer" }), this.annotationEntry = [], this.createData = {}, this.$refs.sideBar && this.$refs.sideBar.setDrawerOpen(!1);
74446
- }), Dt.on("connectivity-info-open", (e) => {
74459
+ }), Mt.on("connectivity-info-open", (e) => {
74447
74460
  this.connectivityEntry = e, this.connectivityExplorerClicked.length || (this.connectivityKnowledge = e.map((t) => ({ label: t.title, id: t.featureId[0], detailsReady: t.ready })), this.connectivityKnowledge.every((t) => t.detailsReady) && (this.connectivityHighlight = this.connectivityKnowledge.map((t) => t.id), this.onShowConnectivity(this.connectivityHighlight)), this.$refs.sideBar && (this.$refs.sideBar.tabClicked({ id: 2, type: "connectivityExplorer" }), this.$refs.sideBar.setDrawerOpen(!0))), this.connectivityExplorerClicked.pop();
74448
- }), Dt.on("connectivity-error", (e) => {
74461
+ }), Mt.on("connectivity-info-close", (e) => {
74462
+ this.$refs.sideBar && this.$refs.sideBar.resetConnectivitySearch();
74463
+ }), Mt.on("connectivity-error", (e) => {
74449
74464
  this.$refs.sideBar && this.$refs.sideBar.updateConnectivityError(e.data);
74450
- }), Dt.on("OpenNewMap", (e) => {
74465
+ }), Mt.on("OpenNewMap", (e) => {
74451
74466
  this.openNewMap(e);
74452
- }), Dt.on("startHelp", () => {
74467
+ }), Mt.on("startHelp", () => {
74453
74468
  this.$refs.sideBar && this.$refs.sideBar.close();
74454
- }), Dt.on("connectivity-knowledge", (e) => {
74469
+ }), Mt.on("connectivity-knowledge", (e) => {
74455
74470
  this.connectivityKnowledge = e.data, this.connectivityHighlight = [], e.state === "processed" ? (this.connectivityHighlight = this.connectivityKnowledge.map((t) => t.id), this.onShowConnectivity(this.connectivityHighlight)) : this.hoverChanged();
74456
- }), Dt.on("modeUpdate", (e) => {
74471
+ }), Mt.on("modeUpdate", (e) => {
74457
74472
  e === "dataset" ? this.$refs.sideBar.tabClicked({ id: 1, type: "datasetExplorer" }) : e === "connectivity" && this.$refs.sideBar.tabClicked({ id: 2, type: "connectivityExplorer" });
74458
74473
  }), this.$nextTick(() => {
74459
74474
  this.search === "" && this._facets.length === 0 ? (this.$refs.sideBar && this.$refs.sideBar.close(), setTimeout(() => {
@@ -74547,7 +74562,7 @@ function KKe(e, t, n, r, o, a) {
74547
74562
  _: 1
74548
74563
  });
74549
74564
  }
74550
- const pW = /* @__PURE__ */ Ha(UKe, [["render", KKe], ["__scopeId", "data-v-b25f24d6"]]), WKe = {
74565
+ const pW = /* @__PURE__ */ Ha(UKe, [["render", KKe], ["__scopeId", "data-v-28b8318b"]]), WKe = {
74551
74566
  // Note that the setting store is included in MapContent.vue
74552
74567
  methods: {
74553
74568
  retrieveContextCardFromUrl: async function(e) {
@@ -74835,11 +74850,11 @@ const pW = /* @__PURE__ */ Ha(UKe, [["render", KKe], ["__scopeId", "data-v-b25f2
74835
74850
  this.options && (this.options.sparcApi && this.settingsStore.updateSparcAPI(this.options.sparcApi), this.options.algoliaIndex && this.settingsStore.updateAlgoliaIndex(this.options.algoliaIndex), this.options.algoliaKey && this.settingsStore.updateAlgoliaKey(this.options.algoliaKey), this.options.algoliaId && this.settingsStore.updateAlgoliaId(this.options.algoliaId), this.options.pennsieveApi && this.settingsStore.updatePennsieveApi(this.options.pennsieveApi), this.options.flatmapAPI && this.settingsStore.updateFlatmapAPI(this.options.flatmapAPI), this.options.nlLinkPrefix && this.settingsStore.updateNLLinkPrefix(this.options.nlLinkPrefix), this.options.rootUrl && this.settingsStore.updateRootUrl(this.options.rootUrl)), this.settingsStore.updateAllClosable(this.allClosable), (e = this.splitFlowStore) == null || e.reset(), (t = this.splitFlowStore) == null || t.getAvailableTerms(this.settingsStore.sparcApi);
74836
74851
  },
74837
74852
  mounted: async function() {
74838
- Dt.on("updateShareLinkRequested", (e) => {
74853
+ Mt.on("updateShareLinkRequested", (e) => {
74839
74854
  this.$emit("updateShareLinkRequested", e);
74840
- }), Dt.on("trackEvent", (e) => {
74855
+ }), Mt.on("trackEvent", (e) => {
74841
74856
  this.$emit("trackEvent", e);
74842
- }), this.state || (this.initialState = await YEe(this.startingMap, this.options.sparcApi)), Dt.on("mapLoaded", (e) => {
74857
+ }), this.state || (this.initialState = await YEe(this.startingMap, this.options.sparcApi)), Mt.on("mapLoaded", (e) => {
74843
74858
  this.$emit("mapLoaded", e);
74844
74859
  }), this.isReady = !0, this.settingsStore.updateUseHelpModeDialog(this.useHelpModeDialog), this.settingsStore.updateConnectivityInfoSidebar(this.connectivityInfoSidebar), this.settingsStore.updateAnnotationSidebar(this.annotationSidebar);
74845
74860
  }
@@ -74867,7 +74882,7 @@ function XKe(e, t, n, r, o, a) {
74867
74882
  const dWe = /* @__PURE__ */ Ha(GKe, [["render", XKe], ["__scopeId", "data-v-944b42f0"]]);
74868
74883
  export {
74869
74884
  VKe as A,
74870
- Dt as E,
74885
+ Mt as E,
74871
74886
  dWe as M,
74872
74887
  aWe as S,
74873
74888
  Ii as T,
@@ -1,4 +1,4 @@
1
- import { M as a } from "./index-CVfAy4kK.js";
1
+ import { M as a } from "./index-qckfB1dl.js";
2
2
  export {
3
3
  a as MapContent
4
4
  };