@abi-software/mapintegratedvuer 1.2.0 → 1.2.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { u as w, b as N, E as m, T as E } from "./index-pesDJRzH.js";
2
- import { mapStores as b } from "pinia";
3
- const u = [
1
+ import { u as w, b as N, E as p, T as E } from "./index-8kI96-xR.js";
2
+ import { mapStores as S } from "pinia";
3
+ const f = [
4
4
  {
5
5
  id: "ilxtr:neuron-type-keast-13",
6
6
  centrelines: [
@@ -204,9 +204,9 @@ const u = [
204
204
  ]
205
205
  }
206
206
  ];
207
- function p(t, a, n, s, i) {
207
+ function u(t, a, n, i, s) {
208
208
  let e = {};
209
- if (e.dataset = n, e.scaffold = s, e.simulations = i, a ? e.title = a : e.title = t, e.description = "", e.actions = [], t)
209
+ if (e.dataset = n, e.scaffold = i, e.simulations = s, a ? e.title = a : e.title = t, e.description = "", e.actions = [], t)
210
210
  switch (t) {
211
211
  case "ICN":
212
212
  e.title = "RNA", e.description = "The distribution of neurons in the intrinsic cardiac nervous system (ICN) were mapped and visualized in a 3D reconstruction of a male rat heart.", e.actions = {
@@ -238,7 +238,7 @@ function p(t, a, n, s, i) {
238
238
  e.actions = [];
239
239
  return e;
240
240
  }
241
- function S(t, a, n, s, i) {
241
+ function b(t, a, n, i, s) {
242
242
  if (t || a) {
243
243
  let e = {};
244
244
  switch (t) {
@@ -300,19 +300,19 @@ function S(t, a, n, s, i) {
300
300
  };
301
301
  break;
302
302
  default:
303
- e = p(t, a, n, s, i);
303
+ e = u(t, a, n, i, s);
304
304
  break;
305
305
  }
306
306
  return e;
307
307
  }
308
308
  }
309
- function k(t, a, n, s, i) {
309
+ function v(t, a, n, i, s) {
310
310
  if (t || a) {
311
311
  let e = {};
312
312
  switch (t) {
313
313
  case "UBERON:0000948":
314
314
  case "UBERON:0002080":
315
- i ? e = p(t, a, n, s, i) : (e.title = "Heart", e.description = "", e.actions = {
315
+ s ? e = u(t, a, n, i, s) : (e.title = "Heart", e.description = "", e.actions = {
316
316
  search: {
317
317
  title: "Explore data",
318
318
  label: "Heart",
@@ -438,13 +438,13 @@ function k(t, a, n, s, i) {
438
438
  };
439
439
  break;
440
440
  default:
441
- e = p(t, a, n, s, i);
441
+ e = u(t, a, n, i, s);
442
442
  break;
443
443
  }
444
444
  return e;
445
445
  }
446
446
  }
447
- function v(t, a, n, s, i) {
447
+ function k(t, a, n, i, s) {
448
448
  if (t || a) {
449
449
  let e = {};
450
450
  switch (t) {
@@ -491,13 +491,13 @@ function v(t, a, n, s, i) {
491
491
  };
492
492
  break;
493
493
  default:
494
- e = p(t, a, n, s, i);
494
+ e = u(t, a, n, i, s);
495
495
  break;
496
496
  }
497
497
  return e;
498
498
  }
499
499
  }
500
- function R(t, a, n, s, i) {
500
+ function R(t, a, n, i, s) {
501
501
  if (t || a) {
502
502
  let e = {};
503
503
  switch (t) {
@@ -549,24 +549,24 @@ function R(t, a, n, s, i) {
549
549
  };
550
550
  break;
551
551
  default:
552
- e = p(t, a, n, s, i);
552
+ e = u(t, a, n, i, s);
553
553
  break;
554
554
  }
555
555
  return e;
556
556
  }
557
557
  }
558
- function L(t, a, n, s, i, e) {
558
+ function L(t, a, n, i, s, e) {
559
559
  switch (a) {
560
560
  case "NCBITaxon:9606":
561
- return S(t, n, s, i, e);
561
+ return b(t, n, i, s, e);
562
562
  case "NCBITaxon:9823":
563
- return R(t, n, s, i, e);
563
+ return R(t, n, i, s, e);
564
564
  case "NCBITaxon:10090":
565
- return v(t, n, s, i, e);
565
+ return k(t, n, i, s, e);
566
566
  case "NCBITaxon:10114":
567
- return k(t, n, s, i, e);
567
+ return v(t, n, i, s, e);
568
568
  default:
569
- return p(t, a, n, s, i);
569
+ return u(t, a, n, i, s);
570
570
  }
571
571
  }
572
572
  function B() {
@@ -585,11 +585,11 @@ function U() {
585
585
  }
586
586
  function _(t) {
587
587
  if (t)
588
- for (let a = 0; a < u.length; a++) {
589
- if (u[a].id == t)
590
- return u[a].centrelines;
591
- if (u[a].centrelines.find((s) => s === t))
592
- return [u[a].id];
588
+ for (let a = 0; a < f.length; a++) {
589
+ if (f[a].id == t)
590
+ return f[a].centrelines;
591
+ if (f[a].centrelines.find((i) => i === t))
592
+ return [f[a].id];
593
593
  }
594
594
  return [];
595
595
  }
@@ -612,9 +612,9 @@ function O(t, a) {
612
612
  if (t && t.resource) {
613
613
  let n = t.resource;
614
614
  Array.isArray(n) && n[0] && (n = n[0]);
615
- let s, i, e, o, l, c = n.taxonomy;
616
- if (n.data && n.data.id ? (s = n.data.id, i = n.data.id) : n.feature && (s = n.feature.models, i = n.feature.label, e = n.feature.dataset, o = n.feature.scaffold, l = n.feature.simulations), s || i) {
617
- let d = L(s, c, i, e, o, l);
615
+ let i, s, e, o, l, c = n.taxonomy;
616
+ if (n.data && n.data.id ? (i = n.data.id, s = n.data.id) : n.feature && (i = n.feature.models, s = n.feature.label, e = n.feature.dataset, o = n.feature.scaffold, l = n.feature.simulations), i || s) {
617
+ let d = L(i, c, s, e, o, l);
618
618
  if (d && d.actions)
619
619
  return d.actions[a];
620
620
  }
@@ -875,7 +875,7 @@ const T = [
875
875
  function C(t) {
876
876
  return t[0].toUpperCase() + t.substring(1);
877
877
  }
878
- const I = {
878
+ const x = {
879
879
  emits: ["flatmap-provenance-ready", "resource-selected", "species-changed"],
880
880
  props: {
881
881
  /**
@@ -893,16 +893,19 @@ const I = {
893
893
  }
894
894
  },
895
895
  computed: {
896
- ...b(w, N),
896
+ ...S(w, N),
897
897
  syncMode() {
898
898
  return this.splitFlowStore.syncMode;
899
899
  },
900
900
  useHelpModeDialog() {
901
901
  return this.settingsStore.useHelpModeDialog;
902
+ },
903
+ connectivityInfoSidebar() {
904
+ return this.settingsStore.connectivityInfoSidebar;
902
905
  }
903
906
  },
904
907
  mounted: function() {
905
- m.on("startHelp", () => {
908
+ p.on("startHelp", () => {
906
909
  this.startHelp();
907
910
  }), this.multiflatmapRef = this.$refs.multiflatmap, this.flatmapRef = this.$refs.flatmap, this.scaffoldRef = this.$refs.scaffold;
908
911
  },
@@ -912,7 +915,7 @@ const I = {
912
915
  getState: function() {
913
916
  },
914
917
  openMap: function(t) {
915
- t === "SYNC" ? (this.toggleSyncMode(), this.trackOpenMap("toggle_map_sync_mode")) : (m.emit("OpenNewMap", t), this.trackOpenMap(`open_new_${t}_map`));
918
+ t === "SYNC" ? (this.toggleSyncMode(), this.trackOpenMap("toggle_map_sync_mode")) : (p.emit("OpenNewMap", t), this.trackOpenMap(`open_new_${t}_map`)), this.onConnectivityInfoClose();
916
919
  },
917
920
  trackOpenMap: function(t) {
918
921
  E.sendEvent({
@@ -941,10 +944,10 @@ const I = {
941
944
  resourceSelected: function(t, a, n) {
942
945
  var l, c, d;
943
946
  if (this.resourceHasAction(a)) {
944
- m.emit("PopoverActionClick", a);
947
+ p.emit("PopoverActionClick", a);
945
948
  return;
946
949
  }
947
- let s, i = "none", e = !1;
950
+ let i, s = "none", e = !1;
948
951
  const o = {
949
952
  paneIndex: this.entry.id,
950
953
  type: t,
@@ -956,37 +959,37 @@ const I = {
956
959
  if (o.internalName = this.idNamePair[a.feature.models], a.eventType == "click")
957
960
  if (o.eventType = "selected", a.feature.type == "marker") {
958
961
  let y = this.idNamePair[a.feature.models], g = T.filter(
959
- (f) => f.id === a.feature.models
962
+ (m) => m.id === a.feature.models
960
963
  );
961
964
  this.settingsStore.isFeaturedMarkerIdentifier(
962
965
  a.feature.id
963
- ) ? s = {
966
+ ) ? i = {
964
967
  type: "Search",
965
968
  term: this.settingsStore.featuredMarkerDoi(
966
969
  a.feature.id
967
970
  ),
968
971
  featuredDataset: !0
969
- } : g.filter((f) => f.keyword).length > 0 ? s = {
972
+ } : g.filter((m) => m.keyword).length > 0 ? i = {
970
973
  type: "Search",
971
974
  term: "http://purl.obolibrary.org/obo/" + a.feature.models.replace(":", "_")
972
- } : s = {
975
+ } : i = {
973
976
  type: "Facet",
974
977
  facet: y,
975
978
  facetPropPath: "anatomy.organ.category.name",
976
979
  term: "Anatomical structure"
977
980
  }, e = !0, t == "MultiFlatmap" && this.$refs.multiflatmap.getCurrentFlatmap().mapImp.clearSearchResults();
978
981
  } else
979
- a.feature.type == "feature" && (this.syncMode ? e = !0 : i = "scaffold");
982
+ a.feature.type == "feature" && (this.syncMode ? e = !0 : s = "scaffold");
980
983
  else
981
984
  a.eventType == "mouseenter" && (o.eventType = "highlighted", e = !0);
982
985
  else
983
- t == "Scaffold" && (a && a[0] && ((((l = a[0].data) == null ? void 0 : l.id) === void 0 || ((c = a[0].data) == null ? void 0 : c.id) === "") && (a[0].data.id = (d = a[0].data) == null ? void 0 : d.group), o.internalName = a[0].data.id, a[0].data.lastActionOnMarker === !0 && (s = {
986
+ t == "Scaffold" && (a && a[0] && ((((l = a[0].data) == null ? void 0 : l.id) === void 0 || ((c = a[0].data) == null ? void 0 : c.id) === "") && (a[0].data.id = (d = a[0].data) == null ? void 0 : d.group), o.internalName = a[0].data.id, a[0].data.lastActionOnMarker === !0 && (i = {
984
987
  type: "Facet",
985
988
  facet: C(a[0].data.id),
986
989
  facetPropPath: "anatomy.organ.category.name",
987
990
  term: "Anatomical structure"
988
- })), o.eventType = "selected", e = !0, i = "search");
989
- s === void 0 && n && (s = O(o, i)), s && m.emit("PopoverActionClick", s), e && this.$emit("resource-selected", o);
991
+ })), o.eventType = "selected", e = !0, s = "search");
992
+ i === void 0 && n && (i = O(o, s)), i && p.emit("PopoverActionClick", i), e && this.$emit("resource-selected", o);
990
993
  },
991
994
  resourceHasAction: function(t) {
992
995
  return t.type === "URL" || t.type === "Search" || t.type === "Neuron Search" || t.type == "Facet" || t.type == "Facets";
@@ -1015,9 +1018,9 @@ const I = {
1015
1018
  if (e.length > 0)
1016
1019
  return e;
1017
1020
  }
1018
- let i = A(a);
1019
- if (i)
1020
- return i;
1021
+ let s = A(a);
1022
+ if (s)
1023
+ return s;
1021
1024
  if (n && t.eventType === "selected")
1022
1025
  return fetch(`${this.apiLocation}get-related-terms/${n}`).then((e) => e.json()).then((e) => {
1023
1026
  if (e.uberon.array.length > 0)
@@ -1028,8 +1031,8 @@ const I = {
1028
1031
  if (a === "Bladder")
1029
1032
  a = "Urinary Bladder";
1030
1033
  else {
1031
- const s = _(a);
1032
- s.length > 0 && (a = s[0]);
1034
+ const i = _(a);
1035
+ i.length > 0 && (a = i[0]);
1033
1036
  }
1034
1037
  return { id: n, name: a };
1035
1038
  },
@@ -1037,17 +1040,17 @@ const I = {
1037
1040
  getDatasetAnatomyInfo: function(t) {
1038
1041
  fetch(`${this.apiLocation}dataset_info/anatomy?identifier=${t}`).then((a) => a.json()).then((a) => {
1039
1042
  const n = a.result[0];
1040
- let s;
1043
+ let i;
1041
1044
  try {
1042
- s = n.anatomy.organ[0].curie;
1045
+ i = n.anatomy.organ[0].curie;
1043
1046
  } catch {
1044
- s = void 0;
1047
+ i = void 0;
1045
1048
  }
1046
- let i;
1049
+ let s;
1047
1050
  try {
1048
- i = n.item.curie;
1051
+ s = n.item.curie;
1049
1052
  } catch {
1050
- i = void 0;
1053
+ s = void 0;
1051
1054
  }
1052
1055
  let e;
1053
1056
  try {
@@ -1061,8 +1064,8 @@ const I = {
1061
1064
  }
1062
1065
  this.settingsStore.updateFeaturedMarker({
1063
1066
  identifier: t,
1064
- marker: s,
1065
- doi: i,
1067
+ marker: i,
1068
+ doi: s,
1066
1069
  species: e
1067
1070
  });
1068
1071
  });
@@ -1125,8 +1128,8 @@ const I = {
1125
1128
  fetch(`${this.apiLocation}get-organ-curies`, {
1126
1129
  signal: a
1127
1130
  }).then((n) => n.json()).then((n) => {
1128
- this._controller = void 0, n.uberon.array.forEach((s) => {
1129
- this.idNamePair[s.id.toUpperCase()] = s.name.charAt(0).toUpperCase() + s.name.slice(1);
1131
+ this._controller = void 0, n.uberon.array.forEach((i) => {
1132
+ this.idNamePair[i.id.toUpperCase()] = i.name.charAt(0).toUpperCase() + i.name.slice(1);
1130
1133
  });
1131
1134
  });
1132
1135
  }
@@ -1163,6 +1166,12 @@ const I = {
1163
1166
  */
1164
1167
  checkEndHelpMouseDown: function(t) {
1165
1168
  t.target.closest(".help-mode-dialog") || this.endHelp();
1169
+ },
1170
+ onConnectivityInfoOpen: function(t) {
1171
+ p.emit("connectivity-info-open", t);
1172
+ },
1173
+ onConnectivityInfoClose: function() {
1174
+ p.emit("connectivity-info-close");
1166
1175
  }
1167
1176
  },
1168
1177
  data: function() {
@@ -1196,5 +1205,5 @@ const I = {
1196
1205
  }
1197
1206
  };
1198
1207
  export {
1199
- I as C
1208
+ x as C
1200
1209
  };
@@ -1,14 +1,14 @@
1
- import { G as h, B as c } from "./flatmapvuer-55QdueQf.js";
2
- import { _ as u, t as M, T as s, E as i } from "./index-pesDJRzH.js";
3
- import { C as g } from "./ContentMixin-7nqS_zW1.js";
4
- import { D as I } from "./style-BohN0-1G.js";
5
- import { resolveComponent as r, openBlock as p, createElementBlock as y, createVNode as v, createBlock as S, createCommentVNode as F } from "vue";
6
- const w = {
1
+ import { _ as d, t as h, T as i, E as s } from "./index-8kI96-xR.js";
2
+ import { C as u } from "./ContentMixin-Ds5gEPQF.js";
3
+ import { D as I, $ as y } from "./style-XspK9sVJ.js";
4
+ import { C as v } from "./style-Cq_72gg0.js";
5
+ import { resolveComponent as r, openBlock as p, createElementBlock as M, createVNode as g, createBlock as S, createCommentVNode as C } from "vue";
6
+ const F = {
7
7
  name: "Flatmap",
8
- mixins: [g, I],
8
+ mixins: [u, I],
9
9
  components: {
10
- FlatmapVuer: h,
11
- HelpModeDialog: c
10
+ FlatmapVuer: y,
11
+ HelpModeDialog: v
12
12
  },
13
13
  methods: {
14
14
  getState: function() {
@@ -36,8 +36,8 @@ const w = {
36
36
  featureId: t.feature.featureId || "",
37
37
  taxonomy: t.taxonomy || "",
38
38
  resources: t.resource.join(", ")
39
- }, a = M(o);
40
- s.sendEvent({
39
+ }, a = h(o);
40
+ i.sendEvent({
41
41
  event: "interaction_event",
42
42
  event_name: "portal_maps_connectivity",
43
43
  category: a,
@@ -47,11 +47,11 @@ const w = {
47
47
  },
48
48
  flatmapReadyCall: function(e) {
49
49
  let t = { id: this.entry.id, prov: this.getFlatmapImp().provenance };
50
- i.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.getAvailableTerms(), this.entry.resource === "FunctionalConnectivity" && this.flatmapReadyForMarkerUpdates(e);
50
+ s.emit("mapImpProv", t), this.$emit("flatmap-provenance-ready", t), this.getAvailableTerms(), this.entry.resource === "FunctionalConnectivity" && this.flatmapReadyForMarkerUpdates(e);
51
51
  },
52
52
  onPathwaySelectionChanged: function(e) {
53
53
  const { label: t, property: o, checked: a, selectionsTitle: n } = e;
54
- s.sendEvent({
54
+ i.sendEvent({
55
55
  event: "interaction_event",
56
56
  event_name: "portal_maps_pathway_change",
57
57
  category: t + " [" + o + "] " + a,
@@ -96,18 +96,18 @@ const w = {
96
96
  }
97
97
  },
98
98
  mounted: function() {
99
- this.getAvailableTerms(), i.on("markerUpdate", () => {
99
+ this.getAvailableTerms(), s.on("markerUpdate", () => {
100
100
  this.flatmapMarkerUpdate(void 0);
101
101
  });
102
102
  }
103
- }, C = { class: "viewer-container" };
104
- function T(e, t, o, a, n, l) {
103
+ }, w = { class: "viewer-container" };
104
+ function b(e, t, o, a, n, l) {
105
105
  const m = r("FlatmapVuer"), f = r("HelpModeDialog");
106
- return p(), y("div", C, [
107
- v(m, {
106
+ return p(), M("div", w, [
107
+ g(m, {
108
108
  state: e.entry.state,
109
109
  entry: e.entry.resource,
110
- onResourceSelected: t[0] || (t[0] = (d) => l.flatmaprResourceSelected(e.entry.type, d)),
110
+ onResourceSelected: t[0] || (t[0] = (c) => l.flatmaprResourceSelected(e.entry.type, c)),
111
111
  onPanZoomCallback: e.flatmapPanZoomCallback,
112
112
  name: e.entry.resource,
113
113
  style: { height: "100%", width: "100%" },
@@ -119,6 +119,9 @@ function T(e, t, o, a, n, l) {
119
119
  onHelpModeLastItem: e.onHelpModeLastItem,
120
120
  onShownTooltip: e.onTooltipShown,
121
121
  onShownMapTooltip: e.onMapTooltipShown,
122
+ onConnectivityInfoOpen: e.onConnectivityInfoOpen,
123
+ onConnectivityInfoClose: e.onConnectivityInfoClose,
124
+ connectivityInfoSidebar: e.connectivityInfoSidebar,
122
125
  pathControls: !0,
123
126
  ref: "flatmap",
124
127
  onReady: l.flatmapReadyCall,
@@ -129,7 +132,7 @@ function T(e, t, o, a, n, l) {
129
132
  sparcAPI: e.apiLocation,
130
133
  onOpenMap: e.openMap,
131
134
  onPathwaySelectionChanged: l.onPathwaySelectionChanged
132
- }, null, 8, ["state", "entry", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged"]),
135
+ }, null, 8, ["state", "entry", "onPanZoomCallback", "name", "minZoom", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onConnectivityInfoOpen", "onConnectivityInfoClose", "connectivityInfoSidebar", "onReady", "flatmapAPI", "sparcAPI", "onOpenMap", "onPathwaySelectionChanged"]),
133
136
  e.helpMode && e.useHelpModeDialog ? (p(), S(f, {
134
137
  key: 0,
135
138
  ref: "flatmapHelp",
@@ -137,10 +140,10 @@ function T(e, t, o, a, n, l) {
137
140
  lastItem: e.helpModeLastItem,
138
141
  onShowNext: e.onHelpModeShowNext,
139
142
  onFinishHelpMode: e.onFinishHelpMode
140
- }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : F("", !0)
143
+ }, null, 8, ["flatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : C("", !0)
141
144
  ]);
142
145
  }
143
- const $ = /* @__PURE__ */ u(w, [["render", T], ["__scopeId", "data-v-22cc3124"]]);
146
+ const P = /* @__PURE__ */ d(F, [["render", b], ["__scopeId", "data-v-b68cfcba"]]);
144
147
  export {
145
- $ as default
148
+ P as default
146
149
  };
@@ -1,6 +1,6 @@
1
- import { C as r } from "./ContentMixin-7nqS_zW1.js";
1
+ import { C as r } from "./ContentMixin-Ds5gEPQF.js";
2
2
  import { openBlock as o, createElementBlock as t, createElementVNode as s } from "vue";
3
- import { _ as n } from "./index-pesDJRzH.js";
3
+ import { _ as n } from "./index-8kI96-xR.js";
4
4
  const a = {
5
5
  name: "Iframe",
6
6
  mixins: [r]
@@ -1,9 +1,9 @@
1
- import { _ as u, a as h, g as M, E as l, t as g, T as p } from "./index-pesDJRzH.js";
2
- import { D as y, B as v } from "./flatmapvuer-55QdueQf.js";
3
- import { C as I } from "./ContentMixin-7nqS_zW1.js";
4
- import { D as S } from "./style-BohN0-1G.js";
1
+ import { _ as u, a as h, g as y, E as l, t as M, T as p } from "./index-8kI96-xR.js";
2
+ import { C as g } from "./ContentMixin-Ds5gEPQF.js";
3
+ import { D as v, y as I } from "./style-XspK9sVJ.js";
4
+ import { C as S } from "./style-Cq_72gg0.js";
5
5
  import { resolveComponent as d, openBlock as f, createElementBlock as C, createVNode as F, createBlock as k, createCommentVNode as w } from "vue";
6
- const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>', c = (e) => {
6
+ const b = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><path d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z" stroke="#000000" stroke-width="2"/></svg>', c = (e) => {
7
7
  const t = [
8
8
  {
9
9
  display: "Open AC Map",
@@ -29,12 +29,12 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
29
29
  break;
30
30
  }
31
31
  return t;
32
- }, b = {
32
+ }, R = {
33
33
  name: "MultiFlatmap",
34
- mixins: [I, S],
34
+ mixins: [g, v],
35
35
  components: {
36
- MultiFlatmapVuer: y,
37
- HelpModeDialog: v
36
+ MultiFlatmapVuer: I,
37
+ HelpModeDialog: S
38
38
  },
39
39
  data: function() {
40
40
  return {
@@ -61,7 +61,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
61
61
  title: "View 3D scaffold",
62
62
  layout: "2horpanel",
63
63
  type: "SyncMap"
64
- } : (this.activeSpecies === "Human Male" || this.activeSpecies === "Human Female") && ("human" in this.scaffoldResource || (this.scaffoldResource.human = await M(this.apiLocation, "human")), e = {
64
+ } : (this.activeSpecies === "Human Male" || this.activeSpecies === "Human Female") && ("human" in this.scaffoldResource || (this.scaffoldResource.human = await y(this.apiLocation, "human")), e = {
65
65
  contextCardUrl: this.scaffoldResource.human.datasetInfo.contextCardUrl,
66
66
  discoverId: this.scaffoldResource.human.datasetInfo.discoverId,
67
67
  s3uri: this.scaffoldResource.human.datasetInfo.s3uri,
@@ -103,8 +103,8 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
103
103
  searchSuggestions: function(e, t) {
104
104
  const a = this.$refs.multiflatmap.getCurrentFlatmap();
105
105
  e && a.mapImp && a.mapImp.search(e).__featureIds.forEach((o) => {
106
- const s = a.mapImp.annotation(o);
107
- s && s.label && t.push(s.label);
106
+ const i = a.mapImp.annotation(o);
107
+ i && i.label && t.push(i.label);
108
108
  });
109
109
  },
110
110
  flatmaprResourceSelected: function(e, t) {
@@ -116,7 +116,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
116
116
  featureId: t.feature.featureId || "",
117
117
  taxonomy: t.taxonomy || "",
118
118
  resources: t.resource.join(", ")
119
- }, o = g(n);
119
+ }, o = M(n);
120
120
  p.sendEvent({
121
121
  event: "interaction_event",
122
122
  event_name: "portal_maps_connectivity",
@@ -147,13 +147,13 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
147
147
  */
148
148
  handleSyncPanZoomEvent: function(e) {
149
149
  if (!this.mouseHovered && e.type !== this.entry.type) {
150
- const t = e.payload.zoom, a = e.payload.target, n = this.$el.clientHeight, o = this.$el.clientWidth, s = Math.max(o, n);
151
- let i = o / s / t;
152
- const r = n / s / t, m = [
153
- a[0] / 2 + 0.5 - i / 2,
150
+ const t = e.payload.zoom, a = e.payload.target, n = this.$el.clientHeight, o = this.$el.clientWidth, i = Math.max(o, n);
151
+ let s = o / i / t;
152
+ const r = n / i / t, m = [
153
+ a[0] / 2 + 0.5 - s / 2,
154
154
  0.5 - a[1] / 2 - r / 2
155
155
  ];
156
- this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [i, r]);
156
+ this.$refs.multiflatmap.getCurrentFlatmap().mapImp.panZoomTo(m, [s, r]);
157
157
  }
158
158
  },
159
159
  displayTooltip: function(e) {
@@ -187,7 +187,7 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
187
187
  }
188
188
  },
189
189
  flatmapChanged: async function(e) {
190
- this.activeSpecies = e, this.openMapOptions = c(e), this.$emit("species-changed", e), this.entry.state && this.entry.state.species === this.activeSpecies || this.syncMode == !0 && await this.toggleSyncMode(), this.updateProvCard(), p.sendEvent({
190
+ this.activeSpecies = e, this.openMapOptions = c(e), this.$emit("species-changed", e), this.entry.state && this.entry.state.species === this.activeSpecies || this.syncMode == !0 && await this.toggleSyncMode(), this.updateProvCard(), this.onConnectivityInfoClose(), p.sendEvent({
191
191
  event: "interaction_event",
192
192
  event_name: "portal_maps_species_change",
193
193
  category: this.activeSpecies
@@ -230,16 +230,16 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
230
230
  return !1;
231
231
  let o = a;
232
232
  if (o || (o = this.getFlatmapImp()), o) {
233
- let s = document.createElement("div");
234
- s.innerHTML = R;
235
- const i = o.addMarker(e, {
236
- element: s,
233
+ let i = document.createElement("div");
234
+ i.innerHTML = b;
235
+ const s = o.addMarker(e, {
236
+ element: i,
237
237
  className: "highlight-marker",
238
238
  cluster: !1
239
239
  });
240
240
  return this.settingsStore.updateFeaturedMarkerIdentifier({
241
241
  index: t,
242
- markerIdentifier: i
242
+ markerIdentifier: s
243
243
  }), !0;
244
244
  }
245
245
  return !1;
@@ -267,15 +267,15 @@ const R = '<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"><pa
267
267
  });
268
268
  }
269
269
  }, H = { class: "viewer-container" };
270
- function P(e, t, a, n, o, s) {
271
- const i = d("MultiFlatmapVuer"), r = d("HelpModeDialog");
270
+ function P(e, t, a, n, o, i) {
271
+ const s = d("MultiFlatmapVuer"), r = d("HelpModeDialog");
272
272
  return f(), C("div", H, [
273
- F(i, {
273
+ F(s, {
274
274
  availableSpecies: e.availableSpecies,
275
- onFlatmapChanged: s.flatmapChanged,
276
- onReady: s.multiFlatmapReady,
275
+ onFlatmapChanged: i.flatmapChanged,
276
+ onReady: i.multiFlatmapReady,
277
277
  state: e.entry.state,
278
- onResourceSelected: t[0] || (t[0] = (m) => s.flatmaprResourceSelected(e.entry.type, m)),
278
+ onResourceSelected: t[0] || (t[0] = (m) => i.flatmaprResourceSelected(e.entry.type, m)),
279
279
  style: { height: "100%", width: "100%" },
280
280
  initial: e.entry.resource,
281
281
  helpMode: e.helpMode,
@@ -284,6 +284,9 @@ function P(e, t, a, n, o, s) {
284
284
  onHelpModeLastItem: e.onHelpModeLastItem,
285
285
  onShownTooltip: e.onTooltipShown,
286
286
  onShownMapTooltip: e.onMapTooltipShown,
287
+ onConnectivityInfoOpen: e.onConnectivityInfoOpen,
288
+ onConnectivityInfoClose: e.onConnectivityInfoClose,
289
+ connectivityInfoSidebar: e.connectivityInfoSidebar,
287
290
  ref: "multiflatmap",
288
291
  displayMinimap: !0,
289
292
  showStarInLegend: e.showStarInLegend,
@@ -291,12 +294,12 @@ function P(e, t, a, n, o, s) {
291
294
  openMapOptions: e.openMapOptions,
292
295
  flatmapAPI: e.flatmapAPI,
293
296
  sparcAPI: e.apiLocation,
294
- onPanZoomCallback: s.flatmapPanZoomCallback,
297
+ onPanZoomCallback: i.flatmapPanZoomCallback,
295
298
  onOpenMap: e.openMap,
296
299
  onFinishHelpMode: e.endHelp,
297
- onPathwaySelectionChanged: s.onPathwaySelectionChanged,
298
- onOpenPubmedUrl: s.onOpenPubmedUrl
299
- }, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl"]),
300
+ onPathwaySelectionChanged: i.onPathwaySelectionChanged,
301
+ onOpenPubmedUrl: i.onOpenPubmedUrl
302
+ }, null, 8, ["availableSpecies", "onFlatmapChanged", "onReady", "state", "initial", "helpMode", "helpModeActiveItem", "helpModeDialog", "onHelpModeLastItem", "onShownTooltip", "onShownMapTooltip", "onConnectivityInfoOpen", "onConnectivityInfoClose", "connectivityInfoSidebar", "showStarInLegend", "openMapOptions", "flatmapAPI", "sparcAPI", "onPanZoomCallback", "onOpenMap", "onFinishHelpMode", "onPathwaySelectionChanged", "onOpenPubmedUrl"]),
300
303
  e.helpMode && e.useHelpModeDialog ? (f(), k(r, {
301
304
  key: 0,
302
305
  ref: "multiflatmapHelp",
@@ -307,7 +310,7 @@ function P(e, t, a, n, o, s) {
307
310
  }, null, 8, ["multiflatmapRef", "lastItem", "onShowNext", "onFinishHelpMode"])) : w("", !0)
308
311
  ]);
309
312
  }
310
- const A = /* @__PURE__ */ u(b, [["render", P], ["__scopeId", "data-v-3e284237"]]);
313
+ const _ = /* @__PURE__ */ u(R, [["render", P], ["__scopeId", "data-v-83efd5d2"]]);
311
314
  export {
312
- A as default
315
+ _ as default
313
316
  };
@@ -1,7 +1,7 @@
1
1
  import { C as o } from "./plotvuer-X4h-Lj3L.js";
2
- import { C as a } from "./ContentMixin-7nqS_zW1.js";
2
+ import { C as a } from "./ContentMixin-Ds5gEPQF.js";
3
3
  import { resolveComponent as r, openBlock as n, createBlock as s } from "vue";
4
- import { _ as m } from "./index-pesDJRzH.js";
4
+ import { _ as m } from "./index-8kI96-xR.js";
5
5
  const p = {
6
6
  name: "Plot",
7
7
  mixins: [a],