@abi-software/mapintegratedvuer 1.22.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/{ConnectivityGraph-BBZ3Dgat.js → ConnectivityGraph-CCxk8vcE.js} +6 -6
  2. package/dist/{ContentMixin-B-O_IwPg.js → ContentMixin-Db8nqZax.js} +303 -247
  3. package/dist/{DynamicMarkerMixin-B9iqtP_f.js → DynamicMarkerMixin-LB2RYdSY.js} +1 -1
  4. package/dist/{Flatmap-BoEFI50b.js → Flatmap-CqUzOkdl.js} +5 -5
  5. package/dist/{Iframe-Slj-LQTF.js → Iframe-I-xdZ2FP.js} +2 -2
  6. package/dist/{MultiFlatmap-l6aBn6x3.js → MultiFlatmap-11L97ycJ.js} +6 -6
  7. package/dist/{Plot-CIhEip5b.js → Plot-Bd9RqyVD.js} +2 -2
  8. package/dist/{Scaffold-D5ZGCDvt.js → Scaffold-CySWXQxI.js} +46 -36
  9. package/dist/Simulation-ChUbGudZ.js +32 -0
  10. package/dist/{connectivities-Br3MpoAv.js → connectivities-LtlFwLOp.js} +6399 -5790
  11. package/dist/es-D-YkSGXX.js +436 -0
  12. package/dist/mapintegratedvuer.js +13061 -11664
  13. package/dist/mapintegratedvuer.umd.cjs +191 -190
  14. package/dist/style.css +1 -1
  15. package/package.json +7 -7
  16. package/src/assets/header-icon.scss +9 -3
  17. package/src/components/ContentBar.vue +172 -92
  18. package/src/components/ContentVuer.vue +41 -1
  19. package/src/components/ContextCard.vue +15 -3
  20. package/src/components/DatasetHeader.vue +4 -1
  21. package/src/components/DialogToolbarContent.vue +45 -4
  22. package/src/components/EventBus.js +8 -0
  23. package/src/components/MapContent.vue +85 -31
  24. package/src/components/ResizeSensor.vue +7 -9
  25. package/src/components/ScreenshotPopover.vue +526 -0
  26. package/src/components/SplitDialog.vue +94 -93
  27. package/src/components/SplitFlow.vue +158 -96
  28. package/src/components/scripts/utilities.js +56 -1
  29. package/src/components/viewers/Flatmap.vue +1 -0
  30. package/src/components/viewers/MultiFlatmap.vue +3 -0
  31. package/src/components/viewers/Scaffold.vue +25 -13
  32. package/src/components/viewers/Simulation.vue +23 -1
  33. package/src/components.d.ts +2 -0
  34. package/src/mixins/ContentMixin.js +23 -10
  35. package/src/services/screenshot.js +1186 -0
  36. package/src/stores/connectivities.js +38 -5
  37. package/src/stores/settings.js +18 -0
  38. package/vite.config.js +27 -4
  39. package/dist/Simulation-C5o5DXRb.js +0 -25
@@ -1,84 +1,144 @@
1
- import { O as e, b as t, i as n, n as r, r as i, s as a, t as o, u as s, v as c, w as l, y as u } from "./connectivities-Br3MpoAv.js";
2
- import { markRaw as d } from "vue";
3
- import { mapStores as f } from "pinia";
1
+ import { A as e, D as t, I as n, U as r, b as i, i as a, m as o, n as s, p as c, r as l, s as u, t as d, u as f, y as p } from "./connectivities-LtlFwLOp.js";
2
+ import { markRaw as m } from "vue";
3
+ import { mapStores as h } from "pinia";
4
4
  //#region node_modules/@abi-software/flatmapvuer/src/services/flatmapQueries.js
5
- var p = function(e) {
6
- return e ? [...new Set(e.map((e) => JSON.stringify(e)))].map((e) => JSON.parse(e)) : [];
7
- }, m = function(e) {
5
+ var g = function(e) {
6
+ if (!e) return [];
7
+ let t = /* @__PURE__ */ new Set();
8
+ return e.filter((e) => {
9
+ let n = JSON.stringify(e);
10
+ return !t.has(n) && (t.add(n), !0);
11
+ });
12
+ }, _ = function(e) {
13
+ return new Set((e || []).map((e) => JSON.stringify(e)));
14
+ }, v = function(e) {
8
15
  if (!e) return [];
9
16
  let t = /* @__PURE__ */ new Set(), n = [];
10
17
  return e.forEach((e) => {
11
18
  let { id: r, name: i } = e, a = `${r.toLowerCase()}:${i.toLowerCase()}`;
12
19
  t.has(a) || (t.add(a), n.push(e));
13
20
  }), n;
14
- }, h = [], g = async function(e, t) {
15
- let n = t.filter((e) => h.some((t) => t.taxon === e)), r = h.filter((e) => n.includes(e.taxon)), i = t.filter((e) => !n.includes(e));
16
- if (i.length) {
17
- let t = await e.queryLabels(i);
18
- if (t.length) return t.forEach((e) => {
19
- let { entity: t, label: n } = e;
20
- n === "Mammalia" && (n = "Mammalia not otherwise specified");
21
- let i = {
22
- taxon: t,
23
- label: n
24
- };
25
- r.push(i), h.push(i);
26
- }), r;
27
- } else return r;
28
- }, _ = function(e, t) {
29
- if (!e || !t) return !1;
30
- let n = JSON.stringify(e), r = JSON.stringify(t);
31
- return n.indexOf(r) !== -1;
32
- }, v = (e, t) => {
21
+ }, y = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), x = 100, S = /* @__PURE__ */ new Map(), C = function(e, t) {
22
+ if (S.has(e)) {
23
+ let t = S.get(e);
24
+ return S.delete(e), S.set(e, t), t;
25
+ }
26
+ let n = t().catch((t) => {
27
+ throw S.get(e) === n && S.delete(e), t;
28
+ });
29
+ return S.set(e, n), S.size > x && S.delete(S.keys().next().value), n;
30
+ }, w = async function(e, t) {
31
+ let n = [...new Set(t)], r = n.filter((e) => !y.has(e) && !b.has(e));
32
+ if (r.length) {
33
+ let t = e.queryLabels(r).then((e) => {
34
+ (e || []).forEach((e) => {
35
+ let { entity: t, label: n } = e;
36
+ n === "Mammalia" && (n = "Mammalia not otherwise specified"), y.set(t, n);
37
+ });
38
+ }).finally(() => {
39
+ r.forEach((e) => b.delete(e));
40
+ });
41
+ r.forEach((e) => b.set(e, t));
42
+ }
43
+ let i = new Set(n.map((e) => b.get(e)).filter(Boolean));
44
+ return await Promise.all(i), n.filter((e) => y.has(e)).map((e) => ({
45
+ taxon: e,
46
+ label: y.get(e)
47
+ }));
48
+ }, T = (e, t) => {
33
49
  let n = e.name ?? e, r = t.name ?? t, i = n.toUpperCase(), a = r.toUpperCase();
34
50
  return i < a ? -1 : +(i > a);
35
- }, y = function() {
51
+ }, E = function() {
52
+ return {
53
+ destinations: [],
54
+ origins: [],
55
+ components: [],
56
+ destinationsWithDatasets: [],
57
+ originsWithDatasets: [],
58
+ componentsWithDatasets: [],
59
+ destinationsCombinations: [],
60
+ originsCombinations: [],
61
+ componentsCombinations: [],
62
+ singleConnectivityList: [],
63
+ rawURLs: [],
64
+ expertConsultants: []
65
+ };
66
+ }, D = function(e, t, n, r) {
67
+ let { sckanNodeId: i, sckanNodeLabel: a, mapNodeId: o, mapNodeLabel: s } = n;
68
+ e.push({
69
+ sckanId: i,
70
+ sckanLabel: a,
71
+ mapId: o,
72
+ mapLabel: s
73
+ }), o.forEach((e, n) => {
74
+ let i = typeof e == "string" ? e : e[0];
75
+ i && t.push({
76
+ id: i,
77
+ name: r[n]
78
+ });
79
+ });
80
+ }, O = function() {
36
81
  this.initialise = function(e) {
37
- this.flatmapAPI = e, this.destinations = [], this.origins = [], this.components = [], this.destinationsWithDatasets = [], this.originsWithDatasets = [], this.componentsWithDatasets = [], this.destinationsCombinations = [], this.originsCombinations = [], this.componentsCombinations = [], this.singleConnectivityList = [], this.hasSingleConnectivityList = !1, this.rawURLs = [], this.controller = void 0, this.uberons = [], this.lookUp = [], this.connectivitySource = "map", this.noMapConnectivity = !1;
38
- }, this.createTooltipData = async function(e, t) {
39
- let n;
40
- n = t.feature.hyperlinks && t.feature.hyperlinks.length > 0 ? t.feature.hyperlinks : this.rawURLs;
82
+ this.flatmapAPI = e, Object.assign(this, E()), this.hasSingleConnectivityList = !1, this.controller = void 0, this.uberons = [], this.lookUp = [], this.connectivitySource = "map", this.noMapConnectivity = !1, this._requestId = 0;
83
+ }, this._buildTooltipData = async function(e, t, n) {
41
84
  let r;
42
- if (t.provenanceTaxonomy) {
43
- r = [];
85
+ r = n.feature?.hyperlinks && n.feature.hyperlinks.length > 0 ? n.feature.hyperlinks : e.rawURLs;
86
+ let i;
87
+ if (n.provenanceTaxonomy) {
88
+ i = [];
44
89
  try {
45
- let n = await g(e, t.provenanceTaxonomy);
46
- n.length && n.forEach((e) => {
47
- let { label: t } = e;
48
- r.push(t);
90
+ (await w(t, n.provenanceTaxonomy)).forEach((e) => {
91
+ i.push(e.label);
49
92
  });
50
93
  } catch (e) {
51
94
  console.log(e);
52
95
  }
53
96
  }
54
97
  return {
55
- destinations: this.destinations,
56
- origins: this.origins,
57
- components: this.components,
58
- destinationsWithDatasets: m(this.destinationsWithDatasets),
59
- originsWithDatasets: m(this.originsWithDatasets),
60
- componentsWithDatasets: m(this.componentsWithDatasets),
61
- destinationsCombinations: this.destinationsCombinations,
62
- originsCombinations: this.originsCombinations,
63
- componentsCombinations: this.componentsCombinations,
64
- hasSingleConnectivityList: this.singleConnectivityList.length > 0,
65
- title: t.label,
66
- featureId: t.resource,
67
- hyperlinks: n,
68
- provenanceTaxonomy: t.provenanceTaxonomy,
69
- provenanceTaxonomyLabel: r,
70
- connectivitySource: this.connectivitySource,
71
- noMapConnectivity: this.noMapConnectivity
98
+ destinations: e.destinations,
99
+ origins: e.origins,
100
+ components: e.components,
101
+ destinationsWithDatasets: v(e.destinationsWithDatasets),
102
+ originsWithDatasets: v(e.originsWithDatasets),
103
+ componentsWithDatasets: v(e.componentsWithDatasets),
104
+ destinationsCombinations: e.destinationsCombinations,
105
+ originsCombinations: e.originsCombinations,
106
+ componentsCombinations: e.componentsCombinations,
107
+ hasSingleConnectivityList: e.singleConnectivityList.length > 0,
108
+ title: n.label,
109
+ featureId: n.resource,
110
+ hyperlinks: r,
111
+ "expert-consultants": e.expertConsultants,
112
+ provenanceTaxonomy: n.provenanceTaxonomy,
113
+ provenanceTaxonomyLabel: i,
114
+ connectivitySource: e.connectivitySource,
115
+ noMapConnectivity: e.noMapConnectivity
72
116
  };
117
+ }, this.createTooltipData = async function(e, t) {
118
+ return this._buildTooltipData(this, e, t);
119
+ }, this.queryTooltipData = async function(e, t) {
120
+ let n = t.resource, r = {
121
+ ...E(),
122
+ connectivitySource: "map",
123
+ noMapConnectivity: !1
124
+ };
125
+ if (n && n.length > 0 && n[0]) {
126
+ let { state: t } = await this._fetchConnectivity(e, n[0], "map", !0);
127
+ r = {
128
+ ...r,
129
+ ...t
130
+ };
131
+ }
132
+ return this._buildTooltipData(r, e, t);
73
133
  }, this.updateTooltipData = function(e) {
74
134
  return {
75
135
  ...e,
76
136
  origins: this.origins,
77
- originsWithDatasets: m(this.originsWithDatasets),
137
+ originsWithDatasets: v(this.originsWithDatasets),
78
138
  components: this.components,
79
- componentsWithDatasets: m(this.componentsWithDatasets),
139
+ componentsWithDatasets: v(this.componentsWithDatasets),
80
140
  destinations: this.destinations,
81
- destinationsWithDatasets: m(this.destinationsWithDatasets),
141
+ destinationsWithDatasets: v(this.destinationsWithDatasets),
82
142
  destinationsCombinations: this.destinationsCombinations,
83
143
  originsCombinations: this.originsCombinations,
84
144
  componentsCombinations: this.componentsCombinations,
@@ -90,17 +150,21 @@ var p = function(e) {
90
150
  return e.forEach((e) => {
91
151
  n.push(this.createLabelFromNeuralNode(e[0]), t), e.length === 2 && n.push(this.createLabelFromNeuralNode(e[1]), t);
92
152
  }), n;
93
- }, this.createLabelLookup = async function(e, t) {
94
- let n = {};
95
- this.uberons = [];
96
- let r = await g(e, t);
97
- return r.length && r.forEach((e) => {
98
- let { taxon: t, label: r } = e;
99
- n[t] = r, this.uberons.push({
153
+ }, this._buildLabelLookup = async function(e, t) {
154
+ let n = {}, r = [];
155
+ return (await w(e, t)).forEach((e) => {
156
+ let { taxon: t, label: i } = e;
157
+ n[t] = i, r.push({
100
158
  id: t,
101
- name: r
159
+ name: i
102
160
  });
103
- }), n;
161
+ }), {
162
+ lookUp: n,
163
+ uberons: r
164
+ };
165
+ }, this.createLabelLookup = async function(e, t) {
166
+ let { lookUp: n, uberons: r } = await this._buildLabelLookup(e, t);
167
+ return this.uberons = r, n;
104
168
  }, this.buildConnectivitySqlStatement = function(e) {
105
169
  let t = "select knowledge from knowledge where entity in (";
106
170
  if (e.length === 1) t += `'${e[0]}')`;
@@ -112,48 +176,43 @@ var p = function(e) {
112
176
  else if (e.length > 1) for (let n in e) t += `'${e[n]}'${n >= e.length - 1 ? ")" : ","} `;
113
177
  return t;
114
178
  }, this.findAllIdsFromConnectivity = function(e) {
115
- let t = e.connectivity.flat(), n = [...new Set(t)], r = [];
116
- return n.forEach((e) => {
117
- Array.isArray(e) ? r.push(e.flat()) : r.push(e);
118
- }), [...new Set(r.flat())];
179
+ return [...new Set(e.connectivity.flat(3))];
119
180
  }, this.flattenConnectivity = function(e) {
120
- let t = e.flat(), n = [...new Set(t)], r = [];
121
- return n.forEach((e) => {
122
- Array.isArray(e) ? r.push(e.flat()) : r.push(e);
123
- }), r.flat();
181
+ return e.flat(3);
124
182
  }, this.findComponents = function(e, t, n, r) {
125
- let i = p(e.connectivity.flat()), a = [], o = !1;
126
- return i.forEach((e) => {
127
- o = !1, _(t, e) && (o = !0), r && _(r, e) && (o = !0), _(n, e) && (o = !0), o || a.push(e);
128
- }), a;
183
+ let i = g(e.connectivity.flat()), a = [
184
+ t,
185
+ r,
186
+ n
187
+ ].filter((e) => e).map((e) => JSON.stringify(e));
188
+ return i.filter((e) => {
189
+ let t = JSON.stringify(e);
190
+ return !a.some((e) => e.indexOf(t) !== -1);
191
+ });
129
192
  }, this.retrieveFlatmapKnowledgeForEvent = async function(e, t) {
130
- this.controller && this.controller.abort(), this.controller = new AbortController();
193
+ this.controller && this.controller.abort(), this.controller = new AbortController(), this._requestId++;
131
194
  let n = t.resource;
132
- if (this.destinations = [], this.origins = [], this.components = [], this.destinationsWithDatasets = [], this.originsWithDatasets = [], this.componentsWithDatasets = [], this.destinationsCombinations = [], this.originsCombinations = [], this.componentsCombinations = [], this.singleConnectivityList = [], this.rawURLs = [], !n || n.length === 0 || !n[0]) return;
133
- let r = await this.queryForConnectivityNew(e, n[0]);
134
- return await Promise.all([r]);
195
+ if (Object.assign(this, E()), !(!n || n.length === 0 || !n[0])) return [await this.queryForConnectivityNew(e, n[0])];
135
196
  }, this.queryForConnectivityNew = async function(e, t, n = "map", r = !0) {
136
- let i = /^sckan-(\d{4})/.exec(e.knowledgeSource || ""), a = (i ? Number(i[1]) : 0) >= 2026, o = e.mapMetadata.uuid, s = this.flatmapAPI;
137
- return this.connectivitySource = a ? "sckan" : n, a && (this.singleConnectivityList = await l(s, o, t)), new Promise((n) => {
138
- (this.connectivitySource === "map" ? this.queryMapConnectivity(e.mapMetadata.uuid, t) : e.queryKnowledge(t)).then((i) => {
139
- if (this.checkConnectivityExists(i)) {
140
- this.connectivitySource === "map" && (this.noMapConnectivity = !1);
141
- let t = i;
142
- r ? this.processConnectivity(e, t).then((e) => {
143
- i.references && (this.rawURLs = [...i.references]), n(e);
144
- }) : n(t);
145
- } else this.connectivitySource === "map" ? (this.connectivitySource = "sckan", this.noMapConnectivity = !0, e.queryKnowledge(t).then((t) => {
146
- if (this.checkConnectivityExists(t)) {
147
- let i = t;
148
- r ? this.processConnectivity(e, i).then((e) => {
149
- t.references && (this.rawURLs = [...t.references]), n(e);
150
- }) : n(i);
151
- } else n(!1);
152
- }).catch(() => n(!1))) : n(!1);
153
- }).catch((e) => {
154
- e.name === "AbortError" || console.warn(`Unable to get the knowledge for the entity ${t}.`), n(!1);
155
- });
156
- });
197
+ let i = ++this._requestId, { state: a, value: o } = await this._fetchConnectivity(e, t, n, r);
198
+ return i === this._requestId && Object.assign(this, a), o;
199
+ }, this._fetchConnectivity = async function(t, n, r, i) {
200
+ let a = /^sckan-(\d{4})/.exec(t.knowledgeSource || ""), o = (a ? Number(a[1]) : 0) >= 2026, s = t.mapMetadata.uuid, c = this.flatmapAPI, l = E();
201
+ l.connectivitySource = o ? "sckan" : r;
202
+ let u = o ? C(`cq27|${c}|${s}|${n}`, () => e(c, s, n)).catch(() => []) : Promise.resolve([]), d = () => C(`sckan|${c}|${s}|${n}`, () => t.queryKnowledge(n)), f = l.connectivitySource === "map" ? C(`map|${c}|${s}|${n}`, () => this.queryMapConnectivity(s, n)) : d(), p = !1;
203
+ try {
204
+ let e = await f;
205
+ if (l.singleConnectivityList = await u, this.checkConnectivityExists(e) ? l.connectivitySource === "map" && (l.noMapConnectivity = !1) : l.connectivitySource === "map" ? (l.connectivitySource = "sckan", l.noMapConnectivity = !0, e = await d().catch(() => void 0)) : e = void 0, this.checkConnectivityExists(e) && (p = e, i)) {
206
+ let n = await this._processConnectivity(t, e, l.singleConnectivityList);
207
+ Object.assign(l, n.state), p = n.value, e.references && (l.rawURLs = [...e.references]), e["expert-consultants"] && (l.expertConsultants = [...e["expert-consultants"]]);
208
+ }
209
+ } catch (e) {
210
+ l.singleConnectivityList = await u, e.name === "AbortError" || console.warn(`Unable to get the knowledge for the entity ${n}.`), p = !1;
211
+ }
212
+ return {
213
+ state: l,
214
+ value: p
215
+ };
157
216
  }, this.queryMapConnectivity = async function(e, t) {
158
217
  let n = this.flatmapAPI + `flatmap/${e}/connectivity/${t}`;
159
218
  try {
@@ -176,7 +235,7 @@ var p = function(e) {
176
235
  let i = JSON.parse(n.values[0][0]);
177
236
  r ? this.processConnectivity(e, i).then((e) => {
178
237
  t(e);
179
- }) : t(i);
238
+ }).catch(() => t(!1)) : t(i);
180
239
  } else t(!1);
181
240
  }).catch((e) => {
182
241
  e.name === "AbortError" || console.error("Error:", e), t(!1);
@@ -185,7 +244,11 @@ var p = function(e) {
185
244
  }, this.checkConnectivityExists = function(e) {
186
245
  return e && e.connectivity?.length;
187
246
  }, this.connectivityExists = function(e) {
188
- return !!(e.values && e.values.length > 0 && JSON.parse(e.values[0][0]).connectivity && JSON.parse(e.values[0][0]).connectivity.length > 0);
247
+ if (e.values && e.values.length > 0) {
248
+ let t = JSON.parse(e.values[0][0]).connectivity;
249
+ return !!(t && t.length > 0);
250
+ }
251
+ return !1;
189
252
  }, this.findIfNodeIsSingle = function(e) {
190
253
  return e.length === 1 ? (console.error("Server returns a single node", e), e[0]) : e.length === 2 && e[1].length === 0 && e[0];
191
254
  }, this.createLabelFromNeuralNode = function(e, t) {
@@ -195,69 +258,57 @@ var p = function(e) {
195
258
  return e.length === 2 && e[1].length > 0 && e[1].forEach((e) => {
196
259
  t[e] == null ? r += `, ${e}` : r += `, ${t[e]}`;
197
260
  }), r;
198
- }, this.flattenAndFindDatasets = function(e, t, n) {
199
- let r = this.flattenConnectivity(e), i = this.flattenConnectivity(t), a = this.flattenConnectivity(n);
200
- this.originsWithDatasets = this.uberons.filter((e) => r.indexOf(e.id) !== -1).sort(v), this.componentsWithDatasets = this.uberons.filter((e) => i.indexOf(e.id) !== -1).sort(v), this.destinationsWithDatasets = this.uberons.filter((e) => a.indexOf(e.id) !== -1).sort(v), this.singleConnectivityList.length > 0 && this.singleConnectivityList.forEach((r) => {
201
- let { sckanNodeId: i, sckanNodeLabel: a, mapNodeId: o, mapNodeLabel: s } = r;
202
- n.find((e) => JSON.stringify(e) === JSON.stringify(i)) && (this.destinationsCombinations.push({
203
- sckanId: i,
204
- sckanLabel: a,
205
- mapId: o,
206
- mapLabel: s
207
- }), o.forEach((e, t) => {
208
- let n = typeof e == "string" ? e : e[0];
209
- n && this.destinationsWithDatasets.push({
210
- id: n,
211
- name: s.split(",")[t]
212
- });
213
- })), e.find((e) => JSON.stringify(e) === JSON.stringify(i)) && (this.originsCombinations.push({
214
- sckanId: i,
215
- sckanLabel: a,
216
- mapId: o,
217
- mapLabel: s
218
- }), o.forEach((e, t) => {
219
- let n = typeof e == "string" ? e : e[0];
220
- n && this.originsWithDatasets.push({
221
- id: n,
222
- name: s.split(",")[t]
223
- });
224
- })), t.find((e) => JSON.stringify(e) === JSON.stringify(i)) && (this.componentsCombinations.push({
225
- sckanId: i,
226
- sckanLabel: a,
227
- mapId: o,
228
- mapLabel: s
229
- }), o.forEach((e, t) => {
230
- let n = typeof e == "string" ? e : e[0];
231
- n && this.componentsWithDatasets.push({
232
- id: n,
233
- name: s.split(",")[t]
234
- });
235
- }));
236
- });
237
- }, this.processConnectivity = function(e, t) {
238
- return new Promise((n) => {
239
- let r = [], i = [], a;
240
- t && t["node-phenotypes"] ? (["ilxtr:hasSomaLocatedIn"].forEach((e) => {
241
- e in t["node-phenotypes"] && r.push(...t["node-phenotypes"][e]);
242
- }), r = p(r), ["ilxtr:hasAxonPresynapticElementIn", "ilxtr:hasAxonSensorySubcellularElementIn"].forEach((e) => {
243
- e in t["node-phenotypes"] && i.push(...t["node-phenotypes"][e]);
244
- }), i = p(i)) : (i = p(t.axons), t.somas && t.somas.length > 0 && r.push(...t.somas), t.dendrites && t.dendrites.length > 0 && r.push(...t.dendrites), r = p(r), a = t.somas);
245
- let o = this.findComponents(t, i, r, a), s = this.findAllIdsFromConnectivity(t);
246
- this.createLabelLookup(e, s).then((e) => {
247
- this.origins = r.map((t) => this.createLabelFromNeuralNode(t, e)).sort(v), this.components = o.map((t) => this.createLabelFromNeuralNode(t, e)).sort(v), this.destinations = i.map((t) => this.createLabelFromNeuralNode(t, e)).sort(v), this.flattenAndFindDatasets(r, o, i), n({
248
- ids: {
249
- dendrites: r,
250
- components: o,
251
- axons: i
252
- },
253
- labels: {
254
- origins: this.origins,
255
- components: this.components,
256
- destinations: this.destinations
257
- }
258
- });
261
+ }, this._findDatasets = function(e, t, n, r, i) {
262
+ let a = new Set(this.flattenConnectivity(e)), o = new Set(this.flattenConnectivity(t)), s = new Set(this.flattenConnectivity(n)), c = {
263
+ originsWithDatasets: r.filter((e) => a.has(e.id)).sort(T),
264
+ componentsWithDatasets: r.filter((e) => o.has(e.id)).sort(T),
265
+ destinationsWithDatasets: r.filter((e) => s.has(e.id)).sort(T),
266
+ destinationsCombinations: [],
267
+ originsCombinations: [],
268
+ componentsCombinations: []
269
+ };
270
+ if (i.length > 0) {
271
+ let r = _(n), a = _(e), o = _(t);
272
+ i.forEach((e) => {
273
+ let t = JSON.stringify(e.sckanNodeId), n = e.mapNodeLabel.split(",");
274
+ r.has(t) && D(c.destinationsCombinations, c.destinationsWithDatasets, e, n), a.has(t) && D(c.originsCombinations, c.originsWithDatasets, e, n), o.has(t) && D(c.componentsCombinations, c.componentsWithDatasets, e, n);
259
275
  });
260
- });
276
+ }
277
+ return c;
278
+ }, this.flattenAndFindDatasets = function(e, t, n) {
279
+ Object.assign(this, this._findDatasets(e, t, n, this.uberons, this.singleConnectivityList));
280
+ }, this._processConnectivity = async function(e, t, n) {
281
+ let r = [], i = [], a;
282
+ t && t["node-phenotypes"] ? (["ilxtr:hasSomaLocatedIn"].forEach((e) => {
283
+ e in t["node-phenotypes"] && r.push(...t["node-phenotypes"][e]);
284
+ }), r = g(r), ["ilxtr:hasAxonPresynapticElementIn", "ilxtr:hasAxonSensorySubcellularElementIn"].forEach((e) => {
285
+ e in t["node-phenotypes"] && i.push(...t["node-phenotypes"][e]);
286
+ }), i = g(i)) : (i = g(t.axons), t.somas && t.somas.length > 0 && r.push(...t.somas), t.dendrites && t.dendrites.length > 0 && r.push(...t.dendrites), r = g(r), a = t.somas);
287
+ let o = this.findComponents(t, i, r, a), s = this.findAllIdsFromConnectivity(t), { lookUp: c, uberons: l } = await this._buildLabelLookup(e, s), u = r.map((e) => this.createLabelFromNeuralNode(e, c)).sort(T), d = o.map((e) => this.createLabelFromNeuralNode(e, c)).sort(T), f = i.map((e) => this.createLabelFromNeuralNode(e, c)).sort(T);
288
+ return {
289
+ state: {
290
+ uberons: l,
291
+ origins: u,
292
+ components: d,
293
+ destinations: f,
294
+ ...this._findDatasets(r, o, i, l, n)
295
+ },
296
+ value: {
297
+ ids: {
298
+ dendrites: r,
299
+ components: o,
300
+ axons: i
301
+ },
302
+ labels: {
303
+ origins: u,
304
+ components: d,
305
+ destinations: f
306
+ }
307
+ }
308
+ };
309
+ }, this.processConnectivity = async function(e, t) {
310
+ let { state: n, value: r } = await this._processConnectivity(e, t, this.singleConnectivityList);
311
+ return Object.assign(this, n), r;
261
312
  }, this.buildPubmedSqlStatement = function(e) {
262
313
  let t = "select distinct publication from publications where entity in (";
263
314
  if (e.length === 1) t += `'${e[0]}')`;
@@ -279,7 +330,7 @@ var p = function(e) {
279
330
  if ("error" in i) throw TypeError(i.error);
280
331
  return i.values;
281
332
  };
282
- }, b = [
333
+ }, k = [
283
334
  {
284
335
  id: 0,
285
336
  nerve_id: "ILX:0793723",
@@ -1164,9 +1215,9 @@ var p = function(e) {
1164
1215
  "FMA subclasses (in human nerves)": ["FMA:6892", "FMA:6893"],
1165
1216
  "subclass labels": ["Right T9 grey ramus communicans", "Left T9 grey ramus communicans"]
1166
1217
  }
1167
- ], x = () => {
1218
+ ], A = () => {
1168
1219
  let e = {};
1169
- return b.forEach((t) => {
1220
+ return k.forEach((t) => {
1170
1221
  let n = t.nerve_id, r = t.label.toLowerCase(), i = t["subclass labels"];
1171
1222
  if (n && r !== "nerve") {
1172
1223
  if (!i.length) return;
@@ -1178,13 +1229,13 @@ var p = function(e) {
1178
1229
  };
1179
1230
  }
1180
1231
  }), e;
1181
- }, S = () => {
1232
+ }, j = () => {
1182
1233
  let e = [], t = {
1183
1234
  key: "scaffold.connectivity.nerve",
1184
1235
  label: "Nerves",
1185
1236
  children: []
1186
1237
  }, n = [];
1187
- for (let e of b) {
1238
+ for (let e of k) {
1188
1239
  if (e.label === "nerve") continue;
1189
1240
  let t = {
1190
1241
  facetPropPath: "scaffold.connectivity.nerve",
@@ -1201,14 +1252,15 @@ var p = function(e) {
1201
1252
  };
1202
1253
  //#endregion
1203
1254
  //#region src/mixins/ContentMixin.js
1204
- function C(e) {
1255
+ function M(e) {
1205
1256
  return e[0].toUpperCase() + e.substring(1);
1206
1257
  }
1207
- var w = {
1258
+ var N = {
1208
1259
  emits: [
1209
1260
  "flatmap-provenance-ready",
1210
1261
  "resource-selected",
1211
- "species-changed"
1262
+ "species-changed",
1263
+ "viewer-ready"
1212
1264
  ],
1213
1265
  props: {
1214
1266
  entry: Object,
@@ -1229,7 +1281,7 @@ var w = {
1229
1281
  showIdInTooltip: { default: !0 }
1230
1282
  },
1231
1283
  computed: {
1232
- ...f(i, c, r, o),
1284
+ ...h(l, n, s, d),
1233
1285
  idNamePair() {
1234
1286
  return this.splitFlowStore.idNamePair;
1235
1287
  },
@@ -1247,10 +1299,10 @@ var w = {
1247
1299
  }
1248
1300
  },
1249
1301
  beforeUnmount: function() {
1250
- this.alive = !1;
1302
+ this.alive = !1, window.removeEventListener("mousedown", this.checkEndHelpMouseDown), clearTimeout(this.highlightDelay);
1251
1303
  },
1252
1304
  mounted: function() {
1253
- this.$refs.multiflatmap && (this.multiflatmapRef = d(this.$refs.multiflatmap)), this.$refs.flatmap && (this.flatmapRef = d(this.$refs.flatmap)), this.$refs.iframe && (this.iframeRef = d(this.$refs.iframe)), this.$refs.plot && (this.plotRef = d(this.$refs.plot)), this.$refs.simulation && (this.simulationRef = d(this.$refs.simulation)), (this.iframeRef || this.plotRef || this.simulationRef) && this.loadExplorerConfig(), this.connectivityKnowledge = this.connectivitiesStore.globalConnectivities, this.connectivityFilterOptions = this.connectivitiesStore.filterOptions, this.connectivityFilterSources = this.connectivitiesStore.filterSources;
1305
+ this.$refs.multiflatmap && (this.multiflatmapRef = m(this.$refs.multiflatmap)), this.$refs.flatmap && (this.flatmapRef = m(this.$refs.flatmap)), this.$refs.iframe && (this.iframeRef = m(this.$refs.iframe)), this.$refs.plot && (this.plotRef = m(this.$refs.plot)), this.$refs.simulation && (this.simulationRef = m(this.$refs.simulation)), (this.iframeRef || this.plotRef || this.simulationRef) && this.loadExplorerConfig(), this.connectivityKnowledge = this.connectivitiesStore.globalConnectivities, this.connectivityFilterOptions = this.connectivitiesStore.filterOptions, this.connectivityFilterSources = this.connectivitiesStore.filterSources;
1254
1306
  },
1255
1307
  methods: {
1256
1308
  toggleMinimap: function(e, t) {
@@ -1276,14 +1328,18 @@ var w = {
1276
1328
  }
1277
1329
  },
1278
1330
  getState: function() {},
1331
+ getScreenshotSources: async function(e) {
1332
+ let t = this.getFlatmapImp?.()?.map;
1333
+ return t ? [await r(t, e)] : [];
1334
+ },
1279
1335
  openMap: function(e) {
1280
- t.emit("OpenNewMap", e), this.trackOpenMap(`open_new_${e}_map`);
1336
+ i.emit("OpenNewMap", e), this.trackOpenMap(`open_new_${e}_map`);
1281
1337
  },
1282
1338
  onMapmanagerLoaded: function(e) {
1283
1339
  this.settingsStore.updateMapManager(e);
1284
1340
  },
1285
1341
  trackOpenMap: function(e) {
1286
- u.sendEvent({
1342
+ p.sendEvent({
1287
1343
  event: "interaction_event",
1288
1344
  event_name: "portal_maps_open_map",
1289
1345
  category: e,
@@ -1301,52 +1357,52 @@ var w = {
1301
1357
  return !1;
1302
1358
  },
1303
1359
  searchSuggestions: function() {},
1304
- resourceSelected: function(e, n) {
1305
- let r = n[0];
1306
- if (this.resourceHasAction(r)) {
1307
- t.emit("PopoverActionClick", r);
1360
+ resourceSelected: function(e, t) {
1361
+ let n = t[0];
1362
+ if (this.resourceHasAction(n)) {
1363
+ i.emit("PopoverActionClick", n);
1308
1364
  return;
1309
1365
  }
1310
- let i, a = !1, o = {
1366
+ let r, a = !1, o = {
1311
1367
  paneIndex: this.entry.id,
1312
1368
  type: e,
1313
- resource: n,
1369
+ resource: t,
1314
1370
  internalName: void 0,
1315
1371
  eventType: void 0
1316
1372
  };
1317
1373
  if (e == "MultiFlatmap" || e == "Flatmap") {
1318
- if (o.internalName = r?.feature?.label ? r.feature.label : this.idNamePair[r.feature.models], r.eventType == "click") {
1319
- if (o.eventType = "selected", r.feature.type == "marker") {
1374
+ if (o.internalName = n?.feature?.label ? n.feature.label : this.idNamePair[n.feature.models], n.eventType == "click") {
1375
+ if (o.eventType = "selected", n.feature.type == "marker") {
1320
1376
  let t = o.internalName;
1321
- if (this.settingsStore.isFeaturedMarkerIdentifier(r.feature.id)) i = {
1377
+ if (this.settingsStore.isFeaturedMarkerIdentifier(n.feature.id)) r = {
1322
1378
  type: "Search",
1323
- term: this.settingsStore.featuredMarkerDoi(r.feature.id),
1379
+ term: this.settingsStore.featuredMarkerDoi(n.feature.id),
1324
1380
  featuredDataset: !0
1325
1381
  };
1326
1382
  else {
1327
- i = {
1383
+ r = {
1328
1384
  type: "Facet",
1329
1385
  facets: [t]
1330
1386
  };
1331
1387
  let e = /* @__PURE__ */ new Set();
1332
- if (r.feature["dataset-terms"].forEach((t) => {
1388
+ if (n.feature["dataset-terms"].forEach((t) => {
1333
1389
  e.add(t.label ? t.label : t.term);
1334
- }), e.size === 0 && e.add(t), i.facets = [...e], this.settingsStore.hasAppliedFacets(e) && this.settingsStore.appliedFacets.length <= e.size) return;
1390
+ }), e.size === 0 && e.add(t), r.facets = [...e], this.settingsStore.hasAppliedFacets(e) && this.settingsStore.appliedFacets.length <= e.size) return;
1335
1391
  if (this.settingsStore.appliedFacets.length) {
1336
1392
  if (!this.settingsStore.hasAppliedFacets(e)) {
1337
1393
  let t = [.../* @__PURE__ */ new Set([...this.settingsStore.appliedFacets, ...e])];
1338
1394
  this.settingsStore.updateAppliedFacets(t);
1339
1395
  }
1340
- } else e.size > 1 && (i.type = "Facets"), this.settingsStore.updateAppliedFacets(i.facets);
1396
+ } else e.size > 1 && (r.type = "Facets"), this.settingsStore.updateAppliedFacets(r.facets);
1341
1397
  }
1342
1398
  a = !0, e == "MultiFlatmap" && this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults();
1343
1399
  }
1344
- } else r.eventType == "mouseenter" && (o.eventType = "highlighted", a = !0);
1345
- } else e == "Scaffold" && (r && ((r.data?.id === void 0 || r.data?.id === "") && (r.data.id = r.data?.group), o.internalName = r.data.id, r.data.lastActionOnMarker === !0 && (i = {
1400
+ } else n.eventType == "mouseenter" && (o.eventType = "highlighted", a = !0);
1401
+ } else e == "Scaffold" && (n && ((n.data?.id === void 0 || n.data?.id === "") && (n.data.id = n.data?.group), o.internalName = n.data.id, n.data.lastActionOnMarker === !0 && (r = {
1346
1402
  type: "Facet",
1347
- facets: [C(r.data.id)]
1403
+ facets: [M(n.data.id)]
1348
1404
  })), o.eventType = "selected", a = !0);
1349
- i && t.emit("PopoverActionClick", i), a && this.$emit("resource-selected", o);
1405
+ r && i.emit("PopoverActionClick", r), a && this.$emit("resource-selected", o);
1350
1406
  },
1351
1407
  resourceHasAction: function(e) {
1352
1408
  return e && (e.type === "URL" || e.type === "Search" || e.type === "Neuron Search" || e.type == "Facet" || e.type == "Facets");
@@ -1399,7 +1455,7 @@ var w = {
1399
1455
  t.forEach((e) => {
1400
1456
  let { models: t } = e.feature;
1401
1457
  n.push(t);
1402
- }), u.sendEvent({
1458
+ }), p.sendEvent({
1403
1459
  event: "interaction_event",
1404
1460
  event_name: "portal_maps_connectivity",
1405
1461
  category: n.join(", "),
@@ -1480,40 +1536,40 @@ var w = {
1480
1536
  }
1481
1537
  },
1482
1538
  onAnnotationOpen: function(e) {
1483
- t.emit("annotation-open", e);
1539
+ i.emit("annotation-open", e);
1484
1540
  },
1485
1541
  onAnnotationClose: function() {
1486
- t.emit("sidebar-annotation-close");
1542
+ i.emit("sidebar-annotation-close");
1487
1543
  },
1488
1544
  updateOfflineAnnotationEnabled: function(e) {
1489
- t.emit("update-offline-annotation-enabled", e);
1545
+ i.emit("update-offline-annotation-enabled", e);
1490
1546
  },
1491
1547
  onConnectivityInfoOpen: function(e) {
1492
- t.emit("connectivity-info-open", e);
1548
+ i.emit("connectivity-info-open", e);
1493
1549
  },
1494
1550
  onConnectivityError: function(e) {
1495
- t.emit("connectivity-error", e);
1551
+ i.emit("connectivity-error", e);
1496
1552
  },
1497
1553
  onConnectivityInfoClose: function() {
1498
- t.emit("connectivity-info-close");
1554
+ i.emit("connectivity-info-close");
1499
1555
  },
1500
1556
  onSidebarAnnotationClose: function() {},
1501
1557
  onNeuronConnectionFeatureClick: function(e) {
1502
- t.emit("neuron-connection-feature-click", e);
1558
+ i.emit("neuron-connection-feature-click", e);
1503
1559
  },
1504
1560
  showConnectivity: function() {},
1505
1561
  showConnectivityTooltips: function() {},
1506
1562
  setVisibilityFilter: function() {},
1507
1563
  loadExplorerConfig: async function() {
1508
- this.flatmapService = await this.mockUpFlatmapService(), this.loadConnectivityExplorerConfig(this.flatmapService);
1564
+ this.flatmapService = m(await this.mockUpFlatmapService()), this.loadConnectivityExplorerConfig(this.flatmapService);
1509
1565
  },
1510
1566
  mockUpFlatmapService: async function() {
1511
- let t = (await (await fetch(this.flatmapAPI)).json()).filter((e) => e.id === "human-flatmap_male").sort((e, t) => t.created.localeCompare(e.created))[0], n = t.uuid, r = t.sckan["knowledge-source"], i = await (await fetch(`${this.flatmapAPI}/flatmap/${n}/pathways`)).json();
1512
- this.flatmapQueries = d(new y()), this.flatmapQueries.initialise(this.flatmapAPI);
1567
+ let e = await o(this.flatmapAPI, "human-flatmap_male"), n = e.uuid, r = e.sckan["knowledge-source"], i = await c(this.flatmapAPI, n);
1568
+ this.flatmapQueries = m(new O()), this.flatmapQueries.initialise(this.flatmapAPI);
1513
1569
  let a = {
1514
1570
  mapMetadata: {
1515
1571
  uuid: n,
1516
- connectivity: { ...t.sckan }
1572
+ connectivity: { ...e.sckan }
1517
1573
  },
1518
1574
  pathways: i,
1519
1575
  resource: this.entry.resource,
@@ -1533,42 +1589,42 @@ var w = {
1533
1589
  }
1534
1590
  return a;
1535
1591
  }
1536
- }, o = S();
1592
+ }, s = j();
1537
1593
  return {
1538
1594
  mockup: !0,
1539
- getFilterOptions: async (t, n) => {
1540
- let r = await e(this.flatmapAPI, t, n, void 0);
1541
- return [...o, ...r];
1595
+ getFilterOptions: async (e, n) => {
1596
+ let r = await t(this.flatmapAPI, e, n, void 0);
1597
+ return [...s, ...r];
1542
1598
  },
1543
- getTermNerveMaps: x,
1599
+ getTermNerveMaps: A,
1544
1600
  mapImp: a
1545
1601
  };
1546
1602
  },
1547
1603
  loadConnectivityExplorerConfig: async function(e) {
1548
- let r = e.mapImp, i = n(r), o = e.mockup ? r.resource : r.uuid, s = [];
1549
- if (!this.connectivityKnowledge[i]) {
1550
- this.flatmapQueries = d(new y()), this.flatmapQueries.initialise(this.flatmapAPI);
1551
- let e = await a(r, this.flatmapQueries);
1552
- this.connectivityKnowledge[i] = e.filter((e) => e.connectivity?.length).sort((e, t) => e.label.localeCompare(t.label));
1604
+ let t = e.mapImp, n = a(t), r = e.mockup ? t.resource : t.uuid, o = [];
1605
+ if (!this.connectivityKnowledge[n]) {
1606
+ this.flatmapQueries = m(new O()), this.flatmapQueries.initialise(this.flatmapAPI);
1607
+ let e = await u(t, this.flatmapQueries);
1608
+ this.connectivityKnowledge[n] = e.filter((e) => e.connectivity?.length).sort((e, t) => e.label.localeCompare(t.label));
1553
1609
  }
1554
- if (!this.connectivityKnowledge[o]) {
1555
- let e = r.pathways?.paths || {};
1556
- this.connectivityKnowledge[o] = this.connectivityKnowledge[i].filter((t) => t.id in e);
1610
+ if (!this.connectivityKnowledge[r]) {
1611
+ let e = t.pathways?.paths || {};
1612
+ this.connectivityKnowledge[r] = this.connectivityKnowledge[n].filter((t) => t.id in e);
1557
1613
  }
1558
- if (!this.connectivityFilterOptions[o] && !e.mockup && (this.connectivityFilterOptions[o] = await e.getFilterOptions(r, this.connectivityKnowledge[o])), e.mockup) {
1559
- let t = e.getTermNerveMaps() || {}, n = JSON.parse(JSON.stringify(this.connectivityKnowledge[o]));
1560
- this.connectivityKnowledge[o] = n.map((e) => {
1561
- let n = e;
1614
+ if (!this.connectivityFilterOptions[r] && !e.mockup && (this.connectivityFilterOptions[r] = await e.getFilterOptions(t, this.connectivityKnowledge[r])), e.mockup) {
1615
+ let n = e.getTermNerveMaps() || {}, i = JSON.parse(JSON.stringify(this.connectivityKnowledge[r]));
1616
+ this.connectivityKnowledge[r] = i.map((e) => {
1617
+ let t = e;
1562
1618
  if (e.nerves?.length) {
1563
- let r = e.nerves.flat(Infinity).reduce((e, n) => (n in t && e.push(t[n]), e), []);
1564
- r?.length && (s.push(...r), n["nerve-label"] = r.sort((e, t) => e.nerve.localeCompare(t.nerve)));
1619
+ let r = e.nerves.flat(Infinity).reduce((e, t) => (t in n && e.push(n[t]), e), []);
1620
+ r?.length && (o.push(...r), t["nerve-label"] = r.sort((e, t) => e.nerve.localeCompare(t.nerve)));
1565
1621
  }
1566
- return n;
1567
- }).filter((e) => e["nerve-label"]), this.connectivityFilterOptions[o] || (this.connectivityFilterOptions[o] = await e.getFilterOptions(r, this.connectivityKnowledge[o])), s = s.map((e) => e.nerve.toLowerCase());
1568
- let i = JSON.parse(JSON.stringify(this.connectivityFilterOptions[o]));
1569
- this.connectivityFilterOptions[o] = i.map((e) => {
1622
+ return t;
1623
+ }).filter((e) => e["nerve-label"]), this.connectivityFilterOptions[r] || (this.connectivityFilterOptions[r] = await e.getFilterOptions(t, this.connectivityKnowledge[r])), o = o.map((e) => e.nerve.toLowerCase());
1624
+ let a = JSON.parse(JSON.stringify(this.connectivityFilterOptions[r]));
1625
+ this.connectivityFilterOptions[r] = a.map((e) => {
1570
1626
  if (e.key === "scaffold.connectivity.nerve") {
1571
- let t = e.children.filter((e) => s.includes(e.label.toLowerCase()));
1627
+ let t = e.children.filter((e) => o.includes(e.label.toLowerCase()));
1572
1628
  return {
1573
1629
  ...e,
1574
1630
  children: t
@@ -1576,8 +1632,8 @@ var w = {
1576
1632
  }
1577
1633
  return e;
1578
1634
  });
1579
- } else this.connectivityFilterSources[o] || (this.connectivityFilterSources[o] = e.getFilterSources()), this.connectivitiesStore.updateFilterSources(this.connectivityFilterSources);
1580
- this.connectivitiesStore.updateFilterOptions(this.connectivityFilterOptions), this.connectivitiesStore.updateGlobalConnectivities(this.connectivityKnowledge), t.emit("species-layout-connectivity-update");
1635
+ } else this.connectivityFilterSources[r] || (this.connectivityFilterSources[r] = e.getFilterSources()), this.connectivitiesStore.updateFilterSources(this.connectivityFilterSources);
1636
+ this.connectivitiesStore.updateFilterOptions(this.connectivityFilterOptions), this.connectivitiesStore.updateGlobalConnectivities(this.connectivityKnowledge), i.emit("species-layout-connectivity-update");
1581
1637
  },
1582
1638
  knowledgeTooltipQuery: async function(e) {
1583
1639
  await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(this.flatmapService.mapImp, { resource: [e.id] });
@@ -1587,24 +1643,24 @@ var w = {
1587
1643
  provenanceTaxonomy: e.taxons,
1588
1644
  feature: []
1589
1645
  });
1590
- return t.knowledgeSource = n(this.flatmapService.mapImp), t.mapId = this.flatmapService.mapImp.mapMetadata.id, t.mapuuid = this.flatmapService.mapImp.mapMetadata.uuid, t["nerve-label"] = e["nerve-label"], t.ready = !0, t;
1646
+ return t.knowledgeSource = a(this.flatmapService.mapImp), t.mapId = this.flatmapService.mapImp.mapMetadata.id, t.mapuuid = this.flatmapService.mapImp.mapMetadata.uuid, t["nerve-label"] = e["nerve-label"], t.ready = !0, t;
1591
1647
  },
1592
1648
  getKnowledgeTooltip: async function(e) {
1593
1649
  this.tooltipEntry = [], e.data.forEach((e) => this.tooltipEntry.push({
1594
1650
  title: e.label,
1595
1651
  featureId: [e.id],
1596
1652
  ready: !1
1597
- })), t.emit("connectivity-info-open", this.tooltipEntry);
1598
- let n = [];
1599
- for (let t = 0; t < e.data.length; t++) n.push(await this.knowledgeTooltipQuery(e.data[t]));
1600
- this.tooltipEntry = await Promise.all(n), this.tooltipEntry.map((e) => e.featureId[0]).length > 0 && t.emit("connectivity-info-open", this.tooltipEntry);
1653
+ })), i.emit("connectivity-info-open", this.tooltipEntry);
1654
+ let t = [];
1655
+ for (let n = 0; n < e.data.length; n++) t.push(await this.knowledgeTooltipQuery(e.data[n]));
1656
+ this.tooltipEntry = await Promise.all(t), this.tooltipEntry.map((e) => e.featureId[0]).length > 0 && i.emit("connectivity-info-open", this.tooltipEntry);
1601
1657
  },
1602
- changeConnectivitySource: async function(e, n) {
1603
- let { entry: r, connectivitySource: i } = e, a = this?.flatmapService?.mapImp?.mapMetadata.uuid;
1604
- n.includes(a) || (n.push(a), await this.flatmapQueries.queryForConnectivityNew(this.flatmapService.mapImp, r.featureId[0], i), this.tooltipEntry = this.tooltipEntry.map((e) => e.featureId[0] === r.featureId[0] ? this.flatmapQueries.updateTooltipData(e) : e), t.emit("connectivity-info-open", this.tooltipEntry));
1658
+ changeConnectivitySource: async function(e, t) {
1659
+ let { entry: n, connectivitySource: r } = e, a = this?.flatmapService?.mapImp?.mapMetadata.uuid;
1660
+ t.includes(a) || (t.push(a), await this.flatmapQueries.queryForConnectivityNew(this.flatmapService.mapImp, n.featureId[0], r), this.tooltipEntry = this.tooltipEntry.map((e) => e.featureId[0] === n.featureId[0] ? this.flatmapQueries.updateTooltipData(e) : e), i.emit("connectivity-info-open", this.tooltipEntry));
1605
1661
  },
1606
1662
  trackEvent: function(e) {
1607
- u.sendEvent(e);
1663
+ p.sendEvent(e);
1608
1664
  },
1609
1665
  tooltipPathLabelProvider: function(e) {
1610
1666
  if (!(this.showLongLabel?.value ?? this.showLongLabel)) return null;
@@ -1620,7 +1676,7 @@ var w = {
1620
1676
  ], s = [...this.showIdInTooltip ? a : [], ...r ? o : []].join(";");
1621
1677
  if (e && e["long-label"]) {
1622
1678
  let r = [];
1623
- r.push(`<div style="${s}">${C(e["long-label"])}</div>`), this.showIdInTooltip && r.push(`<span class="id-tag">${t}</span>`), n.push(r.join(""));
1679
+ r.push(`<div style="${s}">${M(e["long-label"])}</div>`), this.showIdInTooltip && r.push(`<span class="id-tag">${t}</span>`), n.push(r.join(""));
1624
1680
  }
1625
1681
  }
1626
1682
  }
@@ -1630,7 +1686,7 @@ var w = {
1630
1686
  data: function() {
1631
1687
  return {
1632
1688
  apiLocation: void 0,
1633
- activeSpecies: s,
1689
+ activeSpecies: f,
1634
1690
  scaffoldCamera: void 0,
1635
1691
  mainStyle: {
1636
1692
  height: this.entry.datasetTitle ? "calc(100% - 30px)" : "100%",
@@ -1667,4 +1723,4 @@ var w = {
1667
1723
  } }
1668
1724
  };
1669
1725
  //#endregion
1670
- export { w as t };
1726
+ export { N as t };