@abi-software/mapintegratedvuer 0.7.0-annotator.1 → 0.7.0-annotator.2

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.
@@ -22011,7 +22011,7 @@ const vne = function(e = {}) {
22011
22011
  r[n] = i;
22012
22012
  return r;
22013
22013
  }, JSt = {
22014
- name: "RelevanceDialog",
22014
+ name: "ConnectionDialog",
22015
22015
  components: {
22016
22016
  Row: r4,
22017
22017
  Col: l6,
@@ -22025,7 +22025,7 @@ const vne = function(e = {}) {
22025
22025
  type: Boolean,
22026
22026
  default: !1
22027
22027
  },
22028
- relevance: {
22028
+ connection: {
22029
22029
  type: Boolean,
22030
22030
  default: !1
22031
22031
  }
@@ -22036,7 +22036,7 @@ const vne = function(e = {}) {
22036
22036
  };
22037
22037
  },
22038
22038
  watch: {
22039
- relevance: function() {
22039
+ connection: function() {
22040
22040
  this.tooltipId = void 0;
22041
22041
  }
22042
22042
  },
@@ -22051,7 +22051,7 @@ const vne = function(e = {}) {
22051
22051
  this.tooltipId = void 0, this.$emit("popup", !0);
22052
22052
  }
22053
22053
  }
22054
- }, eMt = (e) => (y1("data-v-acd4f6d6"), e = e(), T1(), e), tMt = { class: "dialog-container" }, rMt = {
22054
+ }, eMt = (e) => (y1("data-v-fb3049ea"), e = e(), T1(), e), tMt = { class: "dialog-container" }, rMt = {
22055
22055
  key: 0,
22056
22056
  class: "dialog-title"
22057
22057
  }, nMt = {
@@ -22065,7 +22065,7 @@ function oMt(e, t, r, n, i, o) {
22065
22065
  return ie(), Ie("div", tMt, [
22066
22066
  st(l, null, {
22067
22067
  default: Be(() => [
22068
- r.drawing ? (ie(), Ie("span", rMt, "Finalise drawing")) : (ie(), Ie("span", nMt, "Visualise relevance")),
22068
+ r.drawing ? (ie(), Ie("span", rMt, "Finalise drawing")) : (ie(), Ie("span", nMt, "Visualise connection")),
22069
22069
  r.drawing ? (ie(), xt(l, { key: 2 }, {
22070
22070
  default: Be(() => [
22071
22071
  st(s, { span: 13 }, {
@@ -22118,7 +22118,7 @@ function oMt(e, t, r, n, i, o) {
22118
22118
  ]),
22119
22119
  _: 1
22120
22120
  }),
22121
- r.relevance ? (ie(), xt(l, { key: 0 }, {
22121
+ r.connection ? (ie(), xt(l, { key: 0 }, {
22122
22122
  default: Be(() => [
22123
22123
  st(s, null, {
22124
22124
  default: Be(() => [
@@ -22129,17 +22129,17 @@ function oMt(e, t, r, n, i, o) {
22129
22129
  default: Be(() => [
22130
22130
  st(c, {
22131
22131
  shadow: "hover",
22132
- onClick: (f) => o.handleTooltipOpen(h)
22132
+ onClick: (f) => o.handleTooltipOpen(p)
22133
22133
  }, {
22134
22134
  default: Be(() => [
22135
- Ze("span", null, Lr(o.capitalise(p)), 1)
22135
+ Ze("span", null, Lr(o.capitalise(h.label)), 1)
22136
22136
  ]),
22137
22137
  _: 2
22138
22138
  }, 1032, ["onClick"])
22139
22139
  ]),
22140
22140
  _: 2
22141
22141
  }, 1024),
22142
- h === e.tooltipId ? (ie(), xt(s, {
22142
+ p === e.tooltipId ? (ie(), xt(s, {
22143
22143
  key: 0,
22144
22144
  span: 4
22145
22145
  }, {
@@ -22164,7 +22164,7 @@ function oMt(e, t, r, n, i, o) {
22164
22164
  })) : ft("", !0)
22165
22165
  ]);
22166
22166
  }
22167
- const aMt = /* @__PURE__ */ c6(JSt, [["render", oMt], ["__scopeId", "data-v-acd4f6d6"]]), sMt = {
22167
+ const aMt = /* @__PURE__ */ c6(JSt, [["render", oMt], ["__scopeId", "data-v-fb3049ea"]]), sMt = {
22168
22168
  name: "ExternalResourceCard",
22169
22169
  components: {
22170
22170
  Button: zh
@@ -22660,7 +22660,7 @@ const vVe = /* @__PURE__ */ c6(pMt, [["render", HMt], ["__scopeId", "data-v-a3d0
22660
22660
  e.name && e.email ? (this.creator = e, e.orcid || (this.creator.orcid = "0000-0000-0000-0000"), this.authenticated = !0, this.updatePrevSubmissions()) : this.errorMessage = "";
22661
22661
  });
22662
22662
  }
22663
- }, Ry = (e) => (y1("data-v-bb5defc8"), e = e(), T1(), e), FMt = { class: "block" }, VMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("span", { class: "title" }, "Feature Annotations", -1)), NMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", { class: "sub-title" }, "Previous submissions:", -1)), DMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", null, "Evidence: ", -1)), BMt = ["href"], zMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", null, "Comment: ", -1)), jMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", { class: "sub-title" }, "Suggest changes:", -1)), UMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", null, "Evidvence:", -1)), GMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", null, "Comment:", -1)), WMt = { class: "sub-title" };
22663
+ }, Ry = (e) => (y1("data-v-08d8c524"), e = e(), T1(), e), FMt = { class: "block" }, VMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("span", { class: "title" }, "Feature Annotations", -1)), NMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", { class: "sub-title" }, "Previous submissions:", -1)), DMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", null, "Evidence: ", -1)), BMt = ["href"], zMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", null, "Comment: ", -1)), jMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", { class: "sub-title" }, "Suggest changes:", -1)), UMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", null, "Evidence:", -1)), GMt = /* @__PURE__ */ Ry(() => /* @__PURE__ */ Ze("strong", null, "Comment:", -1)), WMt = { class: "sub-title" };
22664
22664
  function qMt(e, t, r, n, i, o) {
22665
22665
  const a = r4, s = kz, l = F1, c = tg, u = WRe, d = FTt, h = DTt, p = l6, f = wx, m = Dz, v = xw, g = Rz, y = zh, x = sVe;
22666
22666
  return ie(), xt(x, { class: "main" }, {
@@ -22932,7 +22932,7 @@ function qMt(e, t, r, n, i, o) {
22932
22932
  _: 1
22933
22933
  });
22934
22934
  }
22935
- const yVe = /* @__PURE__ */ c6(RMt, [["render", qMt], ["__scopeId", "data-v-bb5defc8"]]), ZMt = {
22935
+ const yVe = /* @__PURE__ */ c6(RMt, [["render", qMt], ["__scopeId", "data-v-08d8c524"]]), ZMt = {
22936
22936
  name: "Tooltip",
22937
22937
  components: {
22938
22938
  AnnotationTool: yVe,
@@ -103693,14 +103693,14 @@ var Wie = Gie(alr, { path: "/" }), up = function(e, t, r, n, i) {
103693
103693
  if (typeof t == "function" ? e !== t || !n : !t.has(e))
103694
103694
  throw new TypeError("Cannot read private member from an object whose class did not declare it");
103695
103695
  return r === "m" ? n : r === "a" ? n.call(e) : n ? n.value : t.get(e);
103696
- }, L5, VE, ku, dp, Sm;
103696
+ }, L5, VE, dp, ku, Sm;
103697
103697
  const slr = 1e4;
103698
103698
  class llr {
103699
103699
  /**
103700
103700
  * @param serverEndpoint The URL of a map annotation service.
103701
103701
  */
103702
103702
  constructor(t) {
103703
- L5.add(this), VE.set(this, void 0), ku.set(this, null), dp.set(
103703
+ L5.add(this), VE.set(this, void 0), dp.set(this, null), ku.set(
103704
103704
  this,
103705
103705
  null
103706
103706
  /**
@@ -103739,7 +103739,7 @@ class llr {
103739
103739
  * Unauthenticate with the annotation service.
103740
103740
  *
103741
103741
  * @param userApiKey The Api token of the logged-in Pennsieve user
103742
- * @return A Promise with data about the call.
103742
+ * @return A Promise with data about the call.
103743
103743
  */
103744
103744
  async unauthenticate(t) {
103745
103745
  up(this, ku, null, "f"), up(this, dp, null, "f");
@@ -103749,17 +103749,21 @@ class llr {
103749
103749
  /**
103750
103750
  * Get identifiers of all annotated items in a resource.
103751
103751
  *
103752
- * @param userApiKey The Api token of the logged-in Pennsieve user
103753
- * @param resourceId The resource's identifier
103754
- * @return A Promise resolving to either a list of
103755
- * identifiers of annotated items or a reason
103756
- * why identifiers couldn't be retrieved.
103752
+ * @param userApiKey The Api token of the logged-in Pennsieve user
103753
+ * @param resourceId The resource's identifier
103754
+ * @param userId A user identifier (ORCID). Optional
103755
+ * @param participated Get items the user was involved in annotating or not.
103756
+ * Optional, default ``true``
103757
+ * @return A Promise resolving to either a list of identifiers of annotated
103758
+ * items or a reason why identifiers couldn't be retrieved.
103757
103759
  */
103758
- async annotatedItemIds(t, r) {
103759
- const n = await _l(this, L5, "m", Sm).call(this, t, "items/", "GET", {
103760
+ async annotatedItemIds(t, r, n, i) {
103761
+ const o = {
103760
103762
  resource: r
103761
- });
103762
- return "error" in n ? Promise.resolve(_l(this, ku, "f")) : Promise.resolve(n);
103763
+ };
103764
+ n !== void 0 && (o.user = n), i !== void 0 && (o.participated = i);
103765
+ const a = await _l(this, L5, "m", Sm).call(this, t, "items/", "GET", o);
103766
+ return "error" in a ? Promise.resolve(_l(this, ku, "f")) : Promise.resolve(a);
103763
103767
  }
103764
103768
  /**
103765
103769
  * Get all annotated features drawn on a resource.
@@ -103770,11 +103774,13 @@ class llr {
103770
103774
  * features drawn on the resource or a reason why
103771
103775
  * features couldn't be retrieved.
103772
103776
  */
103773
- async drawnFeatures(t, r) {
103774
- const n = await _l(this, L5, "m", Sm).call(this, t, "features/", "GET", {
103777
+ async drawnFeatures(t, r, n) {
103778
+ const i = {
103775
103779
  resource: r
103776
- });
103777
- return "error" in n ? Promise.resolve(_l(this, ku, "f")) : Promise.resolve(n);
103780
+ };
103781
+ n !== void 0 && (i.items = n);
103782
+ const o = await _l(this, L5, "m", Sm).call(this, t, "features/", "GET", i);
103783
+ return "error" in o ? Promise.resolve(_l(this, ku, "f")) : Promise.resolve(o);
103778
103784
  }
103779
103785
  /**
103780
103786
  * Get all annotations about a specific item in a resource.
@@ -103833,7 +103839,7 @@ class llr {
103833
103839
  return Promise.resolve(_l(this, ku, "f"));
103834
103840
  }
103835
103841
  }
103836
- VE = /* @__PURE__ */ new WeakMap(), ku = /* @__PURE__ */ new WeakMap(), dp = /* @__PURE__ */ new WeakMap(), L5 = /* @__PURE__ */ new WeakSet(), Sm = async function(e, t, r = "GET", n = {}) {
103842
+ VE = /* @__PURE__ */ new WeakMap(), dp = /* @__PURE__ */ new WeakMap(), ku = /* @__PURE__ */ new WeakMap(), L5 = /* @__PURE__ */ new WeakSet(), Sm = async function(e, t, r = "GET", n = {}) {
103837
103843
  let i = !0;
103838
103844
  const o = new AbortController();
103839
103845
  setTimeout(() => {
@@ -104285,23 +104291,23 @@ const glr = flr("main", {
104285
104291
  resourceId: this.serverURL
104286
104292
  }, this.rollbackAnnotationEvent(), this.initialiseDrawing());
104287
104293
  },
104288
- displayRelevantFeatureTooltip: function(e) {
104294
+ displayConnectedFeatureTooltip: function(e) {
104289
104295
  if (this.mapImp) {
104290
104296
  const t = this.mapImp.featureProperties(e);
104291
104297
  this.checkAndCreatePopups({ feature: t });
104292
104298
  }
104293
104299
  },
104294
104300
  confirmDrawnFeature: function() {
104295
- this.createdEvent && (this.checkAndCreatePopups(this.createdEvent), Object.keys(this.relevanceEntry).length > 0 && (this.annotationEntry.feature.relevance = this.relevanceEntry), this.initialiseDrawing());
104301
+ this.createdEvent && (this.checkAndCreatePopups(this.createdEvent), Object.keys(this.connectionEntry).length > 0 && (this.annotationEntry.feature.connection = this.connectionEntry), this.initialiseDrawing());
104296
104302
  },
104297
104303
  initialiseDialog: function() {
104298
- this.relevanceDisplay = !1, this.relevanceEntry = {};
104304
+ this.connectionDisplay = !1, this.connectionEntry = {};
104299
104305
  },
104300
- relevanceDialogPopup: function() {
104301
- !this.$el.querySelector(".drawRelevance").classList.contains("inactive") && !this.inDrawing && (this.closePopup(), this.relevanceDisplay = !this.relevanceDisplay);
104306
+ connectionDialogPopup: function() {
104307
+ !this.$el.querySelector(".drawConnection").classList.contains("inactive") && !this.inDrawing && (this.closePopup(), this.connectionDisplay = !this.connectionDisplay);
104302
104308
  },
104303
104309
  drawingEvent: function(e) {
104304
- if (this.closePopup(), this.drawnTypes.includes(e) && !this.activeDrawMode && !this.relevanceDisplay) {
104310
+ if (this.closePopup(), this.drawnTypes.includes(e) && !this.activeDrawMode && !this.connectionDisplay) {
104305
104311
  if (e === "Point") {
104306
104312
  const t = this.$el.querySelector(".mapbox-gl-draw_point");
104307
104313
  this.$el.querySelector(".mapbox-gl-draw_point").click(), this.activeDrawTool = t.classList.contains("active") ? "Point" : void 0;
@@ -104338,6 +104344,7 @@ const glr = flr("main", {
104338
104344
  },
104339
104345
  setFeatureAnnotated: function() {
104340
104346
  this.mapImp && this.annotator.annotatedItemIds(this.userToken, this.serverURL).then((e) => {
104347
+ "resource" in e && (e = e.items);
104341
104348
  for (const t of e)
104342
104349
  this.mapImp.setFeatureAnnotated(t);
104343
104350
  }).catch((e) => {
@@ -104346,7 +104353,7 @@ const glr = flr("main", {
104346
104353
  },
104347
104354
  addAnnotationFeature: function() {
104348
104355
  this.mapImp && (this.annotationSubmitted || this.clearAnnotationFeature(), this.drawnType !== "None" && (this.annotationSubmitted || (this.loading = !0), this.annotator.drawnFeatures(this.userToken, this.serverURL).then((e) => {
104349
- if (this.drawnType !== "All tools" && (e = e.filter((t) => t.geometry.type === this.drawnType)), this.drawnAnnotationFeatures = e, this.loading = !1, !this.annotationSubmitted)
104356
+ if ("resource" in e && (e = e.features), this.drawnType !== "All tools" && (e = e.filter((t) => t.geometry.type === this.drawnType)), this.drawnAnnotationFeatures = e, this.loading = !1, !this.annotationSubmitted)
104350
104357
  for (const t of e)
104351
104358
  this.annotatedType !== "Anyone" ? this.annotator.itemAnnotations(this.userToken, this.serverURL, t.id).then((r) => {
104352
104359
  let n = r.filter((i) => i.creator.name === this.userInformation.name && i.creator.email === this.userInformation.email).length > 0;
@@ -104640,11 +104647,11 @@ const glr = flr("main", {
104640
104647
  if (t.type === "aborted")
104641
104648
  this.annotationSubmitted ? this.annotationSubmitted = !1 : this.rollbackAnnotationEvent();
104642
104649
  else if (t.type === "modeChanged")
104643
- t.feature.mode.startsWith("draw_") ? (this.initialiseDialog(), this.inDrawing = !0) : t.feature.mode === "simple_select" && this.inDrawing ? this.createdEvent ? this.relevanceDisplay = !0 : this.initialiseDrawing() : t.feature.mode === "direct_select" && (this.doubleClickedFeature = !0);
104650
+ t.feature.mode.startsWith("draw_") ? (this.initialiseDialog(), this.inDrawing = !0) : t.feature.mode === "simple_select" && this.inDrawing ? this.createdEvent ? this.connectionDisplay = !0 : this.initialiseDrawing() : t.feature.mode === "direct_select" && (this.doubleClickedFeature = !0);
104644
104651
  else if (t.type === "selectionChanged") {
104645
104652
  if (this.currentDrawnFeature = t.feature.features.length === 0 ? void 0 : t.feature.features[0], n.feature.feature = this.currentDrawnFeature, !this.inDrawing && (this.initialiseDialog(), this.currentDrawnFeature)) {
104646
104653
  let i = this.drawnAnnotationFeatures.filter((o) => o.id === this.currentDrawnFeature.id)[0];
104647
- i && i.relevance && (this.relevanceEntry = i.relevance), this.drawModeEvent(n);
104654
+ i && i.connection && (this.connectionEntry = i.connection), this.drawModeEvent(n);
104648
104655
  }
104649
104656
  } else {
104650
104657
  if (t.type === "created" || t.type === "updated") {
@@ -104672,9 +104679,14 @@ const glr = flr("main", {
104672
104679
  if (e === "click") {
104673
104680
  if (this.viewingMode === "Network Discovery")
104674
104681
  this.highlightConnectedPaths([t.models]);
104675
- else if (this.currentActive = t.models ? t.models : "", this.inDrawing && !this.relevanceDisplay) {
104676
- let c = t.label ? t.label : `*${t.id}`;
104677
- c && this.activeDrawTool === "LineString" && (this.relevanceEntry[c] = t.featureId);
104682
+ else if (this.currentActive = t.models ? t.models : "", this.inDrawing && !this.connectionDisplay) {
104683
+ let c = t.label ? t.label : `Feature ${t.id}`;
104684
+ c && this.activeDrawTool === "LineString" && (this.connectionEntry[t.featureId] = Object.assign(
104685
+ { label: c },
104686
+ Object.fromEntries(
104687
+ Object.entries(t).filter(([u]) => ["featureId", "models"].includes(u))
104688
+ )
104689
+ ));
104678
104690
  }
104679
104691
  } else
104680
104692
  e === "mouseenter" && this.viewingMode !== "Network Discovery" && (this.currentHover = t.models ? t.models : "");
@@ -104687,7 +104699,7 @@ const glr = flr("main", {
104687
104699
  // for dialog popup
104688
104700
  dialogCssHacks: function() {
104689
104701
  this.$nextTick(() => {
104690
- const e = this.$el.querySelector(".relevance-dialog");
104702
+ const e = this.$el.querySelector(".connection-dialog");
104691
104703
  vlr(this.$el, e);
104692
104704
  let t, r;
104693
104705
  const n = this.$el.getBoundingClientRect(), i = e.getBoundingClientRect();
@@ -104695,14 +104707,14 @@ const glr = flr("main", {
104695
104707
  });
104696
104708
  },
104697
104709
  drawIconCssHacks: function() {
104698
- (this.$el.querySelector(".iconSelected") || !this.relevanceDisplay) && (this.drawnTypes.map((e) => {
104710
+ (this.$el.querySelector(".iconSelected") || !this.connectionDisplay) && (this.drawnTypes.map((e) => {
104699
104711
  const t = this.$el.querySelector(`.draw${e}`);
104700
104712
  t && (t.classList.remove("iconSelected"), t.classList.remove("inactive"));
104701
104713
  }), this.drawModes.map((e) => {
104702
104714
  this.$el.querySelector(`.draw${e}`).classList.remove("iconSelected"), this.$el.querySelector(`.draw${e}`).classList.remove("inactive");
104703
104715
  })), this.activeDrawTool ? (this.$el.querySelector(`.draw${this.activeDrawTool}`).classList.add("iconSelected"), this.drawModes.map((e) => {
104704
104716
  this.$el.querySelector(`.draw${e}`).classList.add("inactive");
104705
- })) : (this.activeDrawMode || this.relevanceDisplay) && (this.activeDrawMode && this.$el.querySelector(`.draw${this.activeDrawMode}`).classList.add("iconSelected"), this.drawnTypes.map((e) => {
104717
+ })) : (this.activeDrawMode || this.connectionDisplay) && (this.activeDrawMode && this.$el.querySelector(`.draw${this.activeDrawMode}`).classList.add("iconSelected"), this.drawnTypes.map((e) => {
104706
104718
  const t = this.$el.querySelector(`.draw${e}`);
104707
104719
  t && t.classList.add("inactive");
104708
104720
  }));
@@ -104719,16 +104731,14 @@ const glr = flr("main", {
104719
104731
  },
104720
104732
  // checkNeuronClicked shows a neuron path pop up if a path was recently clicked
104721
104733
  createConnectivityBody: function() {
104722
- if (Object.keys(this.relevanceEntry).length > 0) {
104723
- const e = Object.values(this.relevanceEntry), t = {
104734
+ if (Object.keys(this.connectionEntry).length > 0) {
104735
+ const e = Object.values(this.connectionEntry), t = {
104724
104736
  type: "connectivity",
104725
- sourceId: e[0],
104726
- targetId: e[e.length - 1],
104727
- intermediateIds: []
104737
+ source: e[0],
104738
+ target: e[e.length - 1],
104739
+ intermediates: e.slice(1, -1)
104728
104740
  };
104729
- e.length > 2 && e.slice(1, -1).forEach((r) => {
104730
- t.intermediateIds.push(r);
104731
- }), this.annotationEntry.body = t;
104741
+ this.annotationEntry.body = t;
104732
104742
  }
104733
104743
  },
104734
104744
  /**
@@ -105324,8 +105334,8 @@ const glr = flr("main", {
105324
105334
  createdEvent: void 0,
105325
105335
  annotationSubmitted: !1,
105326
105336
  inDrawing: !1,
105327
- relevanceDisplay: !1,
105328
- relevanceEntry: {},
105337
+ connectionDisplay: !1,
105338
+ connectionEntry: {},
105329
105339
  drawnAnnotationFeatures: void 0,
105330
105340
  // Store all exist drawn features
105331
105341
  doubleClickedFeature: !1,
@@ -105341,8 +105351,8 @@ const glr = flr("main", {
105341
105351
  },
105342
105352
  computed: {
105343
105353
  ...mlr(glr, ["userToken"]),
105344
- relevance: function() {
105345
- return Object.keys(this.relevanceEntry).length > 0;
105354
+ connection: function() {
105355
+ return Object.keys(this.connectionEntry).length > 0;
105346
105356
  }
105347
105357
  },
105348
105358
  watch: {
@@ -105366,17 +105376,17 @@ const glr = flr("main", {
105366
105376
  this.drawIconCssHacks();
105367
105377
  },
105368
105378
  /**
105369
- * hide dialog when relevanceEntry is empty
105379
+ * hide dialog when connectionEntry is empty
105370
105380
  */
105371
- relevance: function(e) {
105372
- const t = this.$el.querySelector(".drawRelevance");
105373
- e ? t.classList.remove("inactive") : (this.relevanceDisplay = !1, t.classList.add("inactive"));
105381
+ connection: function(e) {
105382
+ const t = this.$el.querySelector(".drawConnection");
105383
+ e ? t.classList.remove("inactive") : (this.connectionDisplay = !1, t.classList.add("inactive"));
105374
105384
  },
105375
105385
  /**
105376
105386
  * popup dialog via click icon
105377
105387
  */
105378
- relevanceDisplay: function(e) {
105379
- const t = this.$el.querySelector(".drawRelevance");
105388
+ connectionDisplay: function(e) {
105389
+ const t = this.$el.querySelector(".drawConnection");
105380
105390
  e ? (t.classList.add("iconSelected"), this.dialogCssHacks()) : t.classList.remove("iconSelected"), this.drawIconCssHacks();
105381
105391
  },
105382
105392
  /**
@@ -105404,7 +105414,7 @@ const glr = flr("main", {
105404
105414
  mounted: function() {
105405
105415
  this.openMapRef = Gi(this.$refs.openMapRef), this.backgroundIconRef = Gi(this.$refs.backgroundIconRef), this.tooltipWait = [], this.tooltipWait.length = this.hoverVisibilities.length, this.mapManager = new Mje(this.flatmapAPI), this.flatmapQueries = new bEt(), this.flatmapQueries.initialise(this.flatmapAPI), this.state ? this.setStateRequired && this.setState(this.state) : this.renderAtMounted && this.createFlatmap();
105406
105416
  }
105407
- }, s4 = (e) => (y1("data-v-aca187ee"), e = e(), T1(), e), Qlr = {
105417
+ }, s4 = (e) => (y1("data-v-41674482"), e = e(), T1(), e), Qlr = {
105408
105418
  class: "flatmap-container",
105409
105419
  ref: "flatmapContainer",
105410
105420
  "element-loading-text": "Loading...",
@@ -105548,7 +105558,7 @@ function Blr(e, t, r, n, i, o) {
105548
105558
  ]),
105549
105559
  Rr(Ze("div", Hlr, [
105550
105560
  st(c, {
105551
- content: "Relevance",
105561
+ content: "Draw Connection",
105552
105562
  placement: "top",
105553
105563
  teleported: !1,
105554
105564
  trigger: "manual",
@@ -105559,8 +105569,8 @@ function Blr(e, t, r, n, i, o) {
105559
105569
  reference: Be(() => [
105560
105570
  st(d, {
105561
105571
  icon: "connection",
105562
- class: "icon-button drawRelevance inactive",
105563
- onClick: o.relevanceDialogPopup,
105572
+ class: "icon-button drawConnection inactive",
105573
+ onClick: o.connectionDialogPopup,
105564
105574
  onMouseover: t[11] || (t[11] = (H) => o.showToolitip(10)),
105565
105575
  onMouseout: t[12] || (t[12] = (H) => o.hideToolitip(10))
105566
105576
  }, null, 8, ["onClick"])
@@ -106246,24 +106256,24 @@ function Blr(e, t, r, n, i, o) {
106246
106256
  [wn, e.tooltipDisplay]
106247
106257
  ]),
106248
106258
  Rr(st(E, {
106249
- class: "relevance-dialog",
106250
- entry: e.relevanceEntry,
106259
+ class: "connection-dialog",
106260
+ entry: e.connectionEntry,
106251
106261
  drawing: e.inDrawing,
106252
- relevance: o.relevance,
106253
- onDisplay: o.relevanceDialogPopup,
106262
+ connection: o.connection,
106263
+ onDisplay: o.connectionDialogPopup,
106254
106264
  onConfirm: o.confirmDrawnFeature,
106255
106265
  onCancel: o.cancelDrawnFeature,
106256
106266
  onPopup: o.closePopup,
106257
- onTooltip: o.displayRelevantFeatureTooltip
106258
- }, null, 8, ["entry", "drawing", "relevance", "onDisplay", "onConfirm", "onCancel", "onPopup", "onTooltip"]), [
106259
- [wn, e.relevanceDisplay]
106267
+ onTooltip: o.displayConnectedFeatureTooltip
106268
+ }, null, 8, ["entry", "drawing", "connection", "onDisplay", "onConfirm", "onCancel", "onPopup", "onTooltip"]), [
106269
+ [wn, e.connectionDisplay]
106260
106270
  ])
106261
106271
  ])
106262
106272
  ])), [
106263
106273
  [O, e.loading]
106264
106274
  ]);
106265
106275
  }
106266
- const o0e = /* @__PURE__ */ c6(blr, [["render", Blr], ["__scopeId", "data-v-aca187ee"]]), Gye = {
106276
+ const o0e = /* @__PURE__ */ c6(blr, [["render", Blr], ["__scopeId", "data-v-41674482"]]), Gye = {
106267
106277
  "NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
106268
106278
  "NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
106269
106279
  "NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",