@abi-software/flatmapvuer 0.6.1-auth.3 → 0.6.1-auth.4
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.
- package/dist/flatmapvuer.js +3 -6
- package/dist/flatmapvuer.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/main.js +1 -1
- package/src/store/index.js +1 -7
package/dist/flatmapvuer.js
CHANGED
|
@@ -90592,16 +90592,13 @@ const rht = tht("main", {
|
|
|
90592
90592
|
state: () => ({
|
|
90593
90593
|
userProfile: {
|
|
90594
90594
|
token: ""
|
|
90595
|
-
}
|
|
90596
|
-
marker: "flatmapvuer marker"
|
|
90595
|
+
}
|
|
90597
90596
|
}),
|
|
90598
90597
|
getters: {
|
|
90599
90598
|
userToken(e) {
|
|
90600
|
-
return e.userProfile.token;
|
|
90599
|
+
return console.log("🚀 ~ flatmapvuer userToken ~ state:", e), e.userProfile.token;
|
|
90601
90600
|
}
|
|
90602
|
-
}
|
|
90603
|
-
actions: {},
|
|
90604
|
-
persist: {}
|
|
90601
|
+
}
|
|
90605
90602
|
}), JD = (e, t) => {
|
|
90606
90603
|
const r = [];
|
|
90607
90604
|
let n = e.organs ? e.organs : e.ftus;
|
package/dist/flatmapvuer.umd.cjs
CHANGED
|
@@ -1697,4 +1697,4 @@ ${r.vs}`,r}setDataProperty(r,n,i){const o=be(this,Z4).get(+r);o&&(!(n in o)||o[n
|
|
|
1697
1697
|
state: () => new MyClass()
|
|
1698
1698
|
Found in store "${U.$id}".`),x&&o&&r.hydrate&&r.hydrate(U.$state,x),d=!0,Q=!0,U}function _8t(e,t,r){let n,i;const o=typeof t=="function";if(typeof e=="string")n=e,i=o?r:t;else if(i=e,n=e.id,process.env.NODE_ENV!=="production"&&typeof n!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function a(s,h){const d=T.hasInjectionContext();if(s=(process.env.NODE_ENV==="test"&&o8&&o8._testing?null:s)||(d?T.inject(p8t,null):null),s&&qd(s),process.env.NODE_ENV!=="production"&&!o8)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1699
1699
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1700
|
-
This will fail in production.`);s=o8,s._s.has(n)||(o?_y(n,t,i,s):LO(n,i,s),process.env.NODE_ENV!=="production"&&(a._pinia=s));const Q=s._s.get(n);if(process.env.NODE_ENV!=="production"&&h){const p="__hot:"+n,g=o?_y(p,t,i,s,!0):LO(p,co({},i),s,!0);h._hotUpdate(g),delete s.state.value[p],s._s.delete(p)}if(process.env.NODE_ENV!=="production"&&my){const p=T.getCurrentInstance();if(p&&p.proxy&&!h){const g=p.proxy,_="_pStores"in g?g._pStores:g._pStores={};_[n]=Q}}return Q}return a.$id=n,a}function v8t(e,t){return Array.isArray(t)?t.reduce((r,n)=>(r[n]=function(){return e(this.$pinia)[n]},r),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){const i=e(this.$pinia),o=t[n];return typeof o=="function"?o.call(this,i):i[o]},r),{})}const x8t=_8t("main",{state:()=>({userProfile:{token:""},marker:"flatmapvuer marker"}),getters:{userToken(e){return e.userProfile.token}},actions:{},persist:{}}),wO=(e,t)=>{const r=[];let n=e.organs?e.organs:e.ftus;const i=n?n.filter((o,a)=>n.findIndex(s=>s.label===o.label)===a):void 0;return i&&i.forEach(o=>{const a={label:o.label,models:o.models,key:`${t}.${o.label}`},s=wO(o,a.key);s.length>0&&(a.children=s),r.push(a)}),r},b8t=function(){return{destinations:[],origins:[],components:[],destinationsWithDatasets:[],originsWithDatasets:[],componentsWithDatasets:[],resource:void 0}},L8t={name:"FlatmapVuer",components:{Button:na,Col:K3,Loading:e$,Radio:Kx,RadioGroup:Yx,Row:qa,Select:B6,MapSvgIcon:M1.MapSvgIcon,MapSvgSpriteColor:M1.MapSvgSpriteColor,Tooltip:FT,TreeControls:Eb,SelectionsGroup:wb,SvgLegends:Mb,ElIconWarningFilled:bv,ElIconArrowDown:F3,ElIconArrowLeft:vv},beforeCreate:function(){this.mapManager=void 0,this.mapImp=void 0,this.setStateRequired=!1},methods:{setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enable3dPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(r=>{const n={colour:r.colour,enabled:r.enabled,label:r.id,key:r.id},i=wO(r,n.key);i.length>0&&(n.children=i),t.children.push(n)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,t.forEach(r=>{Ab(e,r).then(n=>{const i={taxon:r,label:n};this.taxonConnectivity.push(i)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setColour({colour:e,outline:this.outlinesRadio})},setOutlines:function(e){this.outlineRadio=e,this.mapImp&&this.mapImp.setColour({colour:this.colourRadio,outline:e})},resetView:function(){this.mapImp&&(this.mapImp.resetMap(),this.$refs.centrelinesSelection&&this.$refs.centrelinesSelection.reset(),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset())},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},centreLinesSelected:function(e){this.mapImp&&this.mapImp.enableCentrelines(e.value)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},highlightConnectedPaths:function(e){if(this.mapImp){let r=[...this.mapImp.pathModelNodes(e)].map(i=>this.mapImp.featureProperties(i)),n=[];r.forEach(i=>{this.mapImp.nodePathModels(i.featureId).forEach(o=>{n.push(o)})}),this.mapImp.zoomToFeatures(n,{noZoomIn:!0})}},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},checkAllTaxons:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableConnectivityByTaxonIds(t,e.value))},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},eventCallback:function(){return(e,t,...r)=>{if(e!=="pan-zoom"){const n=t.label,i=[t.models],o=this.entry,a=this.biologicalSex;let s;t.taxons&&(typeof t.taxons!="object"?s=JSON.parse(t.taxons):s=t.taxons);const h={dataset:t.dataset,biologicalSex:a,taxonomy:o,resource:i,label:n,feature:t,userData:r,eventType:e,provenanceTaxonomy:s};e==="click"?this.viewingMode==="Network Discovery"?this.highlightConnectedPaths([t.models]):this.currentActive=t.models?t.models:"":e==="mouseenter"&&this.viewingMode!=="Network Discovery"&&(this.currentHover=t.models?t.models:""),t&&t.type!=="marker"&&e==="click"&&this.viewingMode!=="Network Discovery"&&this.checkAndCreatePopups(h),this.$emit("resource-selected",h)}else this.$emit("pan-zoom-callback",t)}},checkAndCreatePopups:async function(e){if(this.viewingMode==="Annotation")e.feature&&e.feature.featureId&&e.feature.models?(this.annotationEntry={...e.feature,resourceId:this.serverUUID},this.displayTooltip(e.feature.models)):this.annotation={};else{let t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(e);(t[0]||t[1]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(this.resourceForTooltip=e.resource[0],e.resourceForTooltip=this.resourceForTooltip,this.createTooltipFromNeuronCuration(e))}},popUpCssHacks:function(){let e=document.querySelector(".flatmap-tooltip-popup");e&&(e.style.display="none"),document.querySelector(".maplibregl-popup-close-button").style.display="block",this.$refs.tooltip.$el.style.display="flex",document.querySelector(".maplibregl-popup-close-button").onclick=()=>{document.querySelector(".flatmap-tooltip-popup").style.display="block"}},closeTooltip:function(){this.$refs.tooltip.$el.style.display="none",document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},createTooltipFromNeuronCuration:async function(e){this.tooltipEntry=await this.flatmapQueries.createTooltipData(e),this.displayTooltip(e.resource[0])},showPopup:function(e,t,r){let n=r;this.mapImp&&(n?n.className||(n.className="custom-popup"):n={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,n))},showMarkerPopup:function(e,t,r){this.mapImp&&this.mapImp.showMarkerPopup(e,t,r)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){e?(this.inHelp=!0,this.hoverVisibilities.forEach(t=>{t.value=!0}),this.openFlatmapHelpPopup()):(this.inHelp=!1,this.hoverVisibilities.forEach(t=>{t.value=!1}),this.closeFlatmapHelpPopup())},showToolitip:function(e){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0},500))},hideToolitip:function(e){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},500))},displayTooltip:function(e){this.tooltipDisplay=!0,this.disableUI||this.$nextTick(()=>{this.displayPopup(e)})},displayPopup:function(e){this.mapImp.showPopup(this.mapImp.modelFeatureIds(e)[0],this.$refs.tooltip.$el,{className:"flatmapvuer-popover",positionAtLastClick:!0}),this.popUpCssHacks()},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"})}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let r of t.values())r.label&&e.push(r.label);return Array.from(new Set(e))}},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?e.viewport&&this.mapImp.setState(e.viewport):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){e&&(e.viewport&&this.mapImp.setState(e.viewport),e.searchTerm&&this.searchAndShowResult(e.searchTerm,!0))},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!0))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0;let t=!1;this.displayMinimap&&(t={position:"top-right"});let r={taxon:this.entry};this.uuid&&(r.uuid=this.uuid),e?e.uuid?r={uuid:e.uuid}:e.entry&&(r.taxon=e.entry,e.biologicalSex?r.biologicalSex=e.biologicalSex:r.taxon==="NCBITaxon:9606"&&(r.biologicalSex="PATO:0000384")):this.biologicalSex&&(r.biologicalSex=this.biologicalSex),this.mapManager.loadMap(r,this.$refs.display,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:t}).then(i=>{this.mapImp=i,this.serverUUID=this.mapImp.getIdentifier().uuid;let o=this.mapImp.details.version;this.setFlightPathInfo(o),this.onFlatmapReady(),this._stateToBeSet?this.restoreMapState(this._stateToBeSet):this.restoreMapState(e)})}else e&&(this._stateToBeSet={viewport:e.viewport,searchTerm:e.searchTerm},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),r=parseInt(t.paddingTop)+parseInt(t.paddingBottom),n=e.clientHeight-r;this.pathwaysMaxHeight=n-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&(this.mapImp.resize(),this.showMinimap(this.displayMinimap),this.mapImp._minimap&&this.mapImp._minimap._miniMap.resize())}catch{console.error("Map resize error")}},onFlatmapReady:function(){this.sensor=new _G(this.$refs.display,this.mapResize),this.mapImp.options&&this.mapImp.options.style==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.mapImp.enableCentrelines(!1),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.flatmapAPI,this.mapImp.taxonIdentifiers),this.addResizeButtonToMinimap(),this.loading=!1,this.computePathControlsMaximumHeight(),this.drawerOpen=!0,this.mapResize(),this.$emit("ready",this)},showMinimap:function(e){this.mapImp&&this.mapImp.showMinimap(e)},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t){if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),!0;{const r=this.mapImp.search(e);if(r&&r.results&&r.results.length>0){if(this.mapImp.showSearchResults(r),t&&r.results[0].featureId&&r.results[0].text){const n=this.mapImp.annotation(r.results[0].featureId);this.mapImp.showPopup(r.results[0].featureId,n.label,{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}return!0}else this.mapImp.clearSearchResults()}}return!1},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:4},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,userApiKey:this.userToken}},data:function(){return{annotationEntry:{},tooltipDisplay:!1,serverUUID:void 0,layers:[],pathways:[],sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],centreLines:[{label:"Display Nerves",key:"centrelines",enabled:!1}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,hoverVisibilities:[{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1}],yellowstar:gG,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:pG,tooltipEntry:b8t(),connectivityTooltipVisible:!1,drawerOpen:!1,annotationRadio:!1,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",currentHover:"",viewingMode:"Exploration",viewingModes:["Annotation","Exploration","Network Discovery"],openMapRef:void 0,backgroundIconRef:void 0}},computed:{...v8t(x8t,["userToken"])},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(val)},state:{handler:function(e,t){e!==t&&(this.mapManager?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},disableUI:function(e){e&&this.closeTooltip()}},mounted:function(){this.openMapRef=T.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=T.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait=[],this.tooltipWait.length=this.hoverVisibilities.length,this.mapManager=new yO(this.flatmapAPI),this.flatmapQueries=new mG,this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap()}},Po=e=>(T.pushScopeId("data-v-4f5a6743"),e=e(),T.popScopeId(),e),w8t={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},E8t={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},M8t={style:{height:"100%",width:"100%"},ref:"display"},A8t={class:"beta-popovers"},C8t=Po(()=>T.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),S8t=Po(()=>T.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),H8t=Po(()=>T.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),O8t=Po(()=>T.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),V8t=Po(()=>T.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),D8t={key:1,class:"warning-text"},P8t=Po(()=>T.createElementVNode("span",{class:"warning-text"},"What's new?",-1)),I8t=Po(()=>T.createElementVNode("b",null,"Network discovery mode",-1)),k8t=Po(()=>T.createElementVNode("p",null," You can now view the network of neurons connected to a selected neuron. This mode is located in the settings at the bottom right. Once discovery mode is on, click on a neuron to see its connections. ",-1)),R8t=Po(()=>T.createElementVNode("b",null,"Now can display up to 6 panes",-1)),B8t=Po(()=>T.createElementVNode("p",null," You can now display up to 6 panes in the flatmap. This allows you to compare between different datasets and/or different views of the same dataset. ",-1)),N8t={class:"bottom-right-control"},F8t=Po(()=>T.createElementVNode("div",null,[T.createTextVNode(" Fit to "),T.createElementVNode("br"),T.createTextVNode(" window ")],-1)),j8t=["innerHTML"],z8t=["innerHTML"],U8t=["onClick"];function $8t(e,t,r,n,i,o){const a=T.resolveComponent("map-svg-sprite-color"),s=bv,h=yi,d=Vc,Q=F3,p=T.resolveComponent("map-svg-icon"),g=Mb,_=Eb,x=wb,b=vv,A=na,E=qa,O=K3,V=Oc,k=B6,j=Kx,$=Yx,U=FT,J=Qb,tt=Bc;return T.withDirectives((T.openBlock(),T.createElementBlock("div",w8t,[T.createVNode(a),T.createElementVNode("div",E8t,[T.createElementVNode("div",M8t,null,512),T.withDirectives(T.createElementVNode("div",A8t,[T.createElementVNode("div",null,[T.createVNode(d,{placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[6].value,ref:"warningPopover"},{reference:T.withCtx(()=>[r.displayWarning?(T.openBlock(),T.createElementBlock("div",{key:0,class:"warning-icon",onMouseover:t[7]||(t[7]=rt=>o.showToolitip(6)),onMouseout:t[8]||(t[8]=rt=>o.hideToolitip(6))},[T.createVNode(h,null,{default:T.withCtx(()=>[T.createVNode(s)]),_:1}),r.isLegacy?(T.openBlock(),T.createElementBlock(T.Fragment,{key:0},[V8t,T.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...rt)=>o.viewLatestMap&&o.viewLatestMap(...rt))}," Click here for the latest map ")],64)):(T.openBlock(),T.createElementBlock("span",D8t,"Beta"))],32)):T.createCommentVNode("",!0)]),default:T.withCtx(()=>[r.isLegacy?(T.openBlock(),T.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=rt=>o.showToolitip(6)),onMouseout:t[1]||(t[1]=rt=>o.hideToolitip(6))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(T.openBlock(),T.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=rt=>o.showToolitip(6)),onMouseout:t[3]||(t[3]=rt=>o.hideToolitip(6))},[T.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),C8t,T.createTextVNode(" models available in "),S8t,T.createTextVNode(". ")],32)):(T.openBlock(),T.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=rt=>o.showToolitip(6)),onMouseout:t[5]||(t[5]=rt=>o.hideToolitip(6))},[T.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),H8t,T.createTextVNode(" models available in "),O8t,T.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")],32))]),_:1},8,["visible"])]),r.displayLatestChanges?(T.openBlock(),T.createBlock(d,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[7].value},{reference:T.withCtx(()=>[r.displayLatestChanges?(T.openBlock(),T.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=rt=>o.showToolitip(7)),onMouseout:t[10]||(t[10]=rt=>o.hideToolitip(7))},[T.createVNode(h,null,{default:T.withCtx(()=>[T.createVNode(s)]),_:1}),P8t],32)):T.createCommentVNode("",!0)]),default:T.withCtx(()=>[I8t,k8t,R8t,B8t]),_:1},8,["visible"])):T.createCommentVNode("",!0)],512),[[T.vShow,!r.disableUI]]),T.withDirectives(T.createVNode(h,{class:T.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:o.closeMinimap},{default:T.withCtx(()=>[T.createVNode(Q)]),_:1},8,["class","onClick"]),[[T.vShow,e.minimapResizeShow]]),T.withDirectives(T.createElementVNode("div",N8t,[T.createVNode(d,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[0].value},{reference:T.withCtx(()=>[T.createVNode(p,{icon:"zoomIn",class:"icon-button zoomIn",onClick:t[11]||(t[11]=rt=>o.zoomIn()),onMouseover:t[12]||(t[12]=rt=>o.showToolitip(0)),onMouseout:t[13]||(t[13]=rt=>o.hideToolitip(0))})]),_:1},8,["visible"]),T.createVNode(d,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper popper-zoomout",visible:e.hoverVisibilities[1].value},{reference:T.withCtx(()=>[T.createVNode(p,{icon:"zoomOut",class:"icon-button zoomOut",onClick:t[14]||(t[14]=rt=>o.zoomOut()),onMouseover:t[15]||(t[15]=rt=>o.showToolitip(1)),onMouseout:t[16]||(t[16]=rt=>o.hideToolitip(1))})]),_:1},8,["visible"]),T.createVNode(d,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value},{reference:T.withCtx(()=>[T.createVNode(p,{icon:"fitWindow",class:"icon-button fitWindow",onClick:t[17]||(t[17]=rt=>o.resetView()),onMouseover:t[18]||(t[18]=rt=>o.showToolitip(2)),onMouseout:t[19]||(t[19]=rt=>o.hideToolitip(2))})]),default:T.withCtx(()=>[F8t]),_:1},8,["visible"])],512),[[T.vShow,!r.disableUI]]),T.createVNode(d,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual","popper-class":"flatmap-popper",visible:e.hoverVisibilities[4].value,ref:"checkBoxPopover"},{reference:T.withCtx(()=>[T.withDirectives(T.createElementVNode("div",{class:T.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[T.withDirectives((T.openBlock(),T.createElementBlock("div",{class:T.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:T.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[e.isFC?T.createCommentVNode("",!0):(T.openBlock(),T.createBlock(g,{key:0,class:"svg-legends-container"})),T.createVNode(d,{content:"Location of the featured dataset",placement:"right",teleported:!1,trigger:"hover","popper-class":"flatmap-popper popper-bump-right",visible:e.hoverVisibilities[9].value,ref:"featuredMarkerPopover"},{reference:T.withCtx(()=>[T.withDirectives(T.createElementVNode("div",{class:"yellow-star-legend",innerHTML:e.yellowstar},null,8,j8t),[[T.vShow,r.showStarInLegend],[J,void 0,"featuredMarkerPopover"]])]),_:1},8,["visible"]),T.createVNode(d,{content:"Find these markers for data",placement:"right",teleported:!1,trigger:"manual","popper-class":"flatmap-popper popper-bump-right",visible:e.hoverVisibilities[5].value,ref:"markerPopover"},{reference:T.withCtx(()=>[T.withDirectives(T.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,z8t),[[T.vShow,e.hoverVisibilities[5].value],[J,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(T.openBlock(),T.createBlock(_,{key:1,active:e.currentActive,hover:e.currentHover,"tree-data":e.systems,ref:"treeControls",onChanged:o.systemSelected,onCheckAll:o.checkAllSystems,onChangeActive:o.ftuSelected},null,8,["active","hover","tree-data","onChanged","onCheckAll","onChangeActive"])):T.createCommentVNode("",!0),!e.isFC&&e.centreLines&&e.centreLines.length>0?(T.openBlock(),T.createBlock(x,{title:"Nerves",labelKey:"label",identifierKey:"key",selections:e.centreLines,onChanged:o.centreLinesSelected,ref:"centrelinesSelection",key:"centrelinesSelection"},null,8,["selections","onChanged"])):T.createCommentVNode("",!0),!e.isFC&&e.taxonConnectivity&&e.taxonConnectivity.length>0?(T.openBlock(),T.createBlock(x,{title:"Observed in",labelKey:"label",identifierKey:"taxon",selections:e.taxonConnectivity,onChanged:o.taxonsSelected,onCheckAll:o.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckAll"])):T.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(T.openBlock(),T.createBlock(x,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,onChanged:o.pathwaysSelected,onCheckAll:o.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","onChanged","onCheckAll"])):T.createCommentVNode("",!0)],6)),[[J,void 0,"checkBoxPopover"]]),T.createElementVNode("div",{onClick:t[20]||(t[20]=(...rt)=>o.toggleDrawer&&o.toggleDrawer(...rt)),class:T.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[T.createVNode(h,null,{default:T.withCtx(()=>[T.createVNode(b)]),_:1})],2)],2),[[T.vShow,!r.disableUI]])]),_:1},8,["visible"]),e.openMapRef?(T.openBlock(),T.createBlock(d,{key:0,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(r.openMapOptions,rt=>(T.openBlock(),T.createBlock(E,{key:rt.key},{default:T.withCtx(()=>[T.createVNode(A,{type:"primary",plain:"",onClick:st=>e.$emit("open-map",rt.key)},{default:T.withCtx(()=>[T.createTextVNode(T.toDisplayString(rt.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):T.createCommentVNode("",!0),T.createVNode(d,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"200",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:T.withCtx(()=>[T.createElementVNode("div",null,[T.createVNode(E,{class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Viewing Mode")]),_:1}),T.createVNode(E,{class:"backgroundControl"},{default:T.withCtx(()=>[T.createVNode(k,{teleported:!1,modelValue:e.viewingMode,"onUpdate:modelValue":t[21]||(t[21]=rt=>e.viewingMode=rt),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown"},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(e.viewingModes,(rt,st)=>(T.openBlock(),T.createBlock(V,{key:rt+st,label:rt,value:rt},{default:T.withCtx(()=>[T.createVNode(E,null,{default:T.withCtx(()=>[T.createVNode(O,{span:12},{default:T.withCtx(()=>[T.createTextVNode(T.toDisplayString(rt),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.displayFlightPathOption?(T.openBlock(),T.createBlock(E,{key:0,class:"backgroundSpacer"})):T.createCommentVNode("",!0),e.displayFlightPathOption?(T.openBlock(),T.createBlock(E,{key:1,class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Flight path display")]),_:1})):T.createCommentVNode("",!0),e.displayFlightPathOption?(T.openBlock(),T.createBlock(E,{key:2,class:"backgroundControl"},{default:T.withCtx(()=>[T.createVNode($,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[22]||(t[22]=rt=>e.flightPath3DRadio=rt),class:"flatmap-radio",onChange:o.setFlightPath3D},{default:T.withCtx(()=>[T.createVNode(j,{label:!1},{default:T.withCtx(()=>[T.createTextVNode("2D")]),_:1}),T.createVNode(j,{label:!0},{default:T.withCtx(()=>[T.createTextVNode("3D")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):T.createCommentVNode("",!0),T.createVNode(E,{class:"backgroundSpacer"}),T.createVNode(E,{class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Organs display")]),_:1}),T.createVNode(E,{class:"backgroundControl"},{default:T.withCtx(()=>[T.createVNode($,{modelValue:e.colourRadio,"onUpdate:modelValue":t[23]||(t[23]=rt=>e.colourRadio=rt),class:"flatmap-radio",onChange:o.setColour},{default:T.withCtx(()=>[T.createVNode(j,{label:!0},{default:T.withCtx(()=>[T.createTextVNode("Colour")]),_:1}),T.createVNode(j,{label:!1},{default:T.withCtx(()=>[T.createTextVNode("Greyscale")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),T.createVNode(E,{class:"backgroundSpacer"}),T.createVNode(E,{class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Outlines display")]),_:1}),T.createVNode(E,{class:"backgroundControl"},{default:T.withCtx(()=>[T.createVNode($,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[24]||(t[24]=rt=>e.outlinesRadio=rt),class:"flatmap-radio",onChange:o.setOutlines},{default:T.withCtx(()=>[T.createVNode(j,{label:!0},{default:T.withCtx(()=>[T.createTextVNode("Show")]),_:1}),T.createVNode(j,{label:!1},{default:T.withCtx(()=>[T.createTextVNode("Hide")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),T.createVNode(E,{class:"backgroundSpacer"}),T.createVNode(E,{class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Change background")]),_:1}),T.createVNode(E,{class:"backgroundControl"},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(e.availableBackground,rt=>(T.openBlock(),T.createElementBlock("div",{key:rt,class:T.normalizeClass(["backgroundChoice",rt,rt==e.currentBackground?"active":""]),onClick:st=>o.backgroundChangeCallback(rt)},null,10,U8t))),128))]),_:1})])]),_:1},8,["virtual-ref"]),T.withDirectives(T.createElementVNode("div",{class:T.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[T.createVNode(E,null,{default:T.withCtx(()=>[T.createVNode(d,{visible:e.hoverVisibilities[8].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper"},{reference:T.withCtx(()=>[r.enableOpenMapUI&&r.openMapOptions.length>0?(T.openBlock(),T.createBlock(p,{key:0,ref:"openMapRef",icon:"openMap",class:"icon-button open-map-button",onMouseover:t[25]||(t[25]=rt=>o.showToolitip(8)),onMouseout:t[26]||(t[26]=rt=>o.hideToolitip(8))},null,512)):T.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1}),T.createVNode(E,null,{default:T.withCtx(()=>[T.createVNode(d,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[3].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper"},{reference:T.withCtx(()=>[T.createVNode(p,{ref:"backgroundIconRef",icon:"changeBckgd",class:"icon-button",onMouseover:t[27]||(t[27]=rt=>o.showToolitip(3)),onMouseout:t[28]||(t[28]=rt=>o.hideToolitip(3))},null,512)]),_:1},8,["visible"])]),_:1})],2),[[T.vShow,!r.disableUI]]),T.withDirectives(T.createVNode(U,{ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,entry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation"},null,8,["annotationEntry","entry","annotationDisplay"]),[[T.vShow,e.tooltipDisplay]])])])),[[tt,e.loading]])}const vy=Wa(L8t,[["render",$8t],["__scopeId","data-v-4f5a6743"]]),EO={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},G8t={name:"MultiFlatmapVuer",components:{Col:K3,Row:qa,Option:Oc,Select:B6,Popover:Vc,FlatmapVuer:vy},beforeMount(){this._resolveList=[],this._initialised=!1},mounted:function(){this.initialise(),Nc.on("onActionClick",e=>{this.resourceSelected(e)})},methods:{initialise:function(){return new Promise(e=>{this.requireInitialisation?(this.requireInitialisation=!1,fetch(this.flatmapAPI).then(t=>t.json()).then(t=>{Object.keys(this.availableSpecies).forEach(n=>{const i=this.availableSpecies[n].uuid;if(i&&t.map(o=>o.uuid).indexOf(i)>0)this.speciesList[n]=T.reactive(this.availableSpecies[n]);else for(let o=0;o<t.length;o++)if(this.availableSpecies[n].taxo===t[o].taxon)if(this.availableSpecies[n].biologicalSex){if(t[o].biologicalSex&&t[o].biologicalSex===this.availableSpecies[n].biologicalSex){this.speciesList[n]=T.reactive(this.availableSpecies[n]);break}}else{this.speciesList[n]=T.reactive(this.availableSpecies[n]);break}});let r=this.initial;if(this.state){const n=this.state.state;(!n||!n.uuid&&!n.entry)&&this.state.species?r=this.state.species:r=void 0}r&&(r&&this.speciesList[r]!==void 0?this.activeSpecies=r:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this._initialised=!0,e(),this._resolveList.forEach(n=>{n()})})):this._initialised?e():this._resolveList.push(e)})},resourceSelected:function(e){this.$emit("resource-selected",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},showPopup:function(e,t,r){this.getCurrentFlatmap().showPopup(e,t,r)},showMarkerPopup:function(e,t,r){this.getCurrentFlatmap().showMarkerPopup(e,t,r)},setSpecies:function(e,t,r){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(r){const n=r-1;n>=0&&this.$nextTick(()=>{this.setSpecies(e,t,n)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let r=0;r<t.length;r++){const n=this.speciesList[t[r]];if(!n.isLegacy&&n.taxo===e.entry&&n.biologicalSex===e.biologicalSex){this.setSpecies(t[r],e,0);return}}},createLegacyEntry:function(e,t,r){if(r&&t){let n="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?n=e.species:n=n+` ${e.species}`),this.speciesList[n]=T.reactive({taxo:t,isLegacy:!0,displayWarning:!0}),{species:n,state:{entry:t,uuid:r,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const r=e.state;if(r.uuid){if(r.entry)return new Promise(()=>{const n=new yO(this.flatmapAPI),i={taxon:r.entry};r.biologicalSex&&(i.biologicalSex=r.biologicalSex),n.findMap_(i).then(o=>{if(o.uuid!==r.uuid)return this.createLegacyEntry(e,r.entry,r.uuid)}).then(o=>{t(o||e)}).catch(()=>{t(e)})})}else if(r.entry){const n=r.entry in EO?EO[r.entry]:void 0,i=this.createLegacyEntry(e,r.entry,n);t(i||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})})}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:4},renderAtMounted:{type:Boolean,default:!1},helpMode:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0}}},Z8t=e=>(T.pushScopeId("data-v-5550e1f2"),e=e(),T.popScopeId(),e),q8t={class:"multi-container",ref:"multiContainer"},W8t={key:0,style:{position:"absolute","z-index":"10"}},X8t=Z8t(()=>T.createElementVNode("div",{class:"species-display-text"},"Species",-1)),K8t={class:"select-box-icon"};function Y8t(e,t,r,n,i,o){const a=Oc,s=B6,h=Vc,d=vy;return T.openBlock(),T.createElementBlock("div",q8t,[r.disableUI?T.createCommentVNode("",!0):(T.openBlock(),T.createElementBlock("div",W8t,[X8t,T.createVNode(h,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper right-popper",visible:r.helpMode,teleported:!1,ref:"selectPopover"},{reference:T.withCtx(()=>[T.createVNode(s,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=Q=>e.activeSpecies=Q),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:o.setSpecies},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(e.speciesList,(Q,p)=>(T.openBlock(),T.createBlock(a,{key:p,label:p,value:p},{default:T.withCtx(()=>[T.createElementVNode("span",K8t,[T.createElementVNode("i",{class:T.normalizeClass(Q.iconClass)},null,2)]),T.createTextVNode(" "+T.toDisplayString(p),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(e.speciesList,(Q,p)=>T.withDirectives((T.openBlock(),T.createBlock(d,{key:p,entry:Q.taxo,uuid:Q.uuid,biologicalSex:Q.biologicalSex,displayWarning:Q.displayWarning,displayLatestChanges:Q.displayLatestChanges,isLegacy:Q.isLegacy,ref_for:!0,ref:p,enableOpenMapUI:r.enableOpenMapUI,openMapOptions:r.openMapOptions,disableUI:r.disableUI,onViewLatestMap:o.viewLatestMap,onResourceSelected:o.resourceSelected,onReady:o.FlatmapReady,onPanZoomCallback:o.panZoomCallback,onOpenMap:t[1]||(t[1]=g=>e.$emit("open-map",g)),minZoom:r.minZoom,helpMode:r.helpMode,renderAtMounted:r.renderAtMounted,displayMinimap:r.displayMinimap,showStarInLegend:r.showStarInLegend,style:{height:"100%"},flatmapAPI:r.flatmapAPI,sparcAPI:r.sparcAPI},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","minZoom","helpMode","renderAtMounted","displayMinimap","showStarInLegend","flatmapAPI","sparcAPI"])),[[T.vShow,e.activeSpecies==p]])),128))],512)}const J8t=Wa(G8t,[["render",Y8t],["__scopeId","data-v-5550e1f2"]]);Fr.FlatmapVuer=vy,Fr.MultiFlatmapVuer=J8t,Fr.Tooltip=FT,Object.defineProperty(Fr,Symbol.toStringTag,{value:"Module"})});
|
|
1700
|
+
This will fail in production.`);s=o8,s._s.has(n)||(o?_y(n,t,i,s):LO(n,i,s),process.env.NODE_ENV!=="production"&&(a._pinia=s));const Q=s._s.get(n);if(process.env.NODE_ENV!=="production"&&h){const p="__hot:"+n,g=o?_y(p,t,i,s,!0):LO(p,co({},i),s,!0);h._hotUpdate(g),delete s.state.value[p],s._s.delete(p)}if(process.env.NODE_ENV!=="production"&&my){const p=T.getCurrentInstance();if(p&&p.proxy&&!h){const g=p.proxy,_="_pStores"in g?g._pStores:g._pStores={};_[n]=Q}}return Q}return a.$id=n,a}function v8t(e,t){return Array.isArray(t)?t.reduce((r,n)=>(r[n]=function(){return e(this.$pinia)[n]},r),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){const i=e(this.$pinia),o=t[n];return typeof o=="function"?o.call(this,i):i[o]},r),{})}const x8t=_8t("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return console.log("🚀 ~ flatmapvuer userToken ~ state:",e),e.userProfile.token}}}),wO=(e,t)=>{const r=[];let n=e.organs?e.organs:e.ftus;const i=n?n.filter((o,a)=>n.findIndex(s=>s.label===o.label)===a):void 0;return i&&i.forEach(o=>{const a={label:o.label,models:o.models,key:`${t}.${o.label}`},s=wO(o,a.key);s.length>0&&(a.children=s),r.push(a)}),r},b8t=function(){return{destinations:[],origins:[],components:[],destinationsWithDatasets:[],originsWithDatasets:[],componentsWithDatasets:[],resource:void 0}},L8t={name:"FlatmapVuer",components:{Button:na,Col:K3,Loading:e$,Radio:Kx,RadioGroup:Yx,Row:qa,Select:B6,MapSvgIcon:M1.MapSvgIcon,MapSvgSpriteColor:M1.MapSvgSpriteColor,Tooltip:FT,TreeControls:Eb,SelectionsGroup:wb,SvgLegends:Mb,ElIconWarningFilled:bv,ElIconArrowDown:F3,ElIconArrowLeft:vv},beforeCreate:function(){this.mapManager=void 0,this.mapImp=void 0,this.setStateRequired=!1},methods:{setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enable3dPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(r=>{const n={colour:r.colour,enabled:r.enabled,label:r.id,key:r.id},i=wO(r,n.key);i.length>0&&(n.children=i),t.children.push(n)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,t.forEach(r=>{Ab(e,r).then(n=>{const i={taxon:r,label:n};this.taxonConnectivity.push(i)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setColour({colour:e,outline:this.outlinesRadio})},setOutlines:function(e){this.outlineRadio=e,this.mapImp&&this.mapImp.setColour({colour:this.colourRadio,outline:e})},resetView:function(){this.mapImp&&(this.mapImp.resetMap(),this.$refs.centrelinesSelection&&this.$refs.centrelinesSelection.reset(),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset())},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},centreLinesSelected:function(e){this.mapImp&&this.mapImp.enableCentrelines(e.value)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},highlightConnectedPaths:function(e){if(this.mapImp){let r=[...this.mapImp.pathModelNodes(e)].map(i=>this.mapImp.featureProperties(i)),n=[];r.forEach(i=>{this.mapImp.nodePathModels(i.featureId).forEach(o=>{n.push(o)})}),this.mapImp.zoomToFeatures(n,{noZoomIn:!0})}},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},checkAllTaxons:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableConnectivityByTaxonIds(t,e.value))},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},eventCallback:function(){return(e,t,...r)=>{if(e!=="pan-zoom"){const n=t.label,i=[t.models],o=this.entry,a=this.biologicalSex;let s;t.taxons&&(typeof t.taxons!="object"?s=JSON.parse(t.taxons):s=t.taxons);const h={dataset:t.dataset,biologicalSex:a,taxonomy:o,resource:i,label:n,feature:t,userData:r,eventType:e,provenanceTaxonomy:s};e==="click"?this.viewingMode==="Network Discovery"?this.highlightConnectedPaths([t.models]):this.currentActive=t.models?t.models:"":e==="mouseenter"&&this.viewingMode!=="Network Discovery"&&(this.currentHover=t.models?t.models:""),t&&t.type!=="marker"&&e==="click"&&this.viewingMode!=="Network Discovery"&&this.checkAndCreatePopups(h),this.$emit("resource-selected",h)}else this.$emit("pan-zoom-callback",t)}},checkAndCreatePopups:async function(e){if(this.viewingMode==="Annotation")e.feature&&e.feature.featureId&&e.feature.models?(this.annotationEntry={...e.feature,resourceId:this.serverUUID},this.displayTooltip(e.feature.models)):this.annotation={};else{let t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(e);(t[0]||t[1]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(this.resourceForTooltip=e.resource[0],e.resourceForTooltip=this.resourceForTooltip,this.createTooltipFromNeuronCuration(e))}},popUpCssHacks:function(){let e=document.querySelector(".flatmap-tooltip-popup");e&&(e.style.display="none"),document.querySelector(".maplibregl-popup-close-button").style.display="block",this.$refs.tooltip.$el.style.display="flex",document.querySelector(".maplibregl-popup-close-button").onclick=()=>{document.querySelector(".flatmap-tooltip-popup").style.display="block"}},closeTooltip:function(){this.$refs.tooltip.$el.style.display="none",document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},createTooltipFromNeuronCuration:async function(e){this.tooltipEntry=await this.flatmapQueries.createTooltipData(e),this.displayTooltip(e.resource[0])},showPopup:function(e,t,r){let n=r;this.mapImp&&(n?n.className||(n.className="custom-popup"):n={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,n))},showMarkerPopup:function(e,t,r){this.mapImp&&this.mapImp.showMarkerPopup(e,t,r)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){e?(this.inHelp=!0,this.hoverVisibilities.forEach(t=>{t.value=!0}),this.openFlatmapHelpPopup()):(this.inHelp=!1,this.hoverVisibilities.forEach(t=>{t.value=!1}),this.closeFlatmapHelpPopup())},showToolitip:function(e){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0},500))},hideToolitip:function(e){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},500))},displayTooltip:function(e){this.tooltipDisplay=!0,this.disableUI||this.$nextTick(()=>{this.displayPopup(e)})},displayPopup:function(e){this.mapImp.showPopup(this.mapImp.modelFeatureIds(e)[0],this.$refs.tooltip.$el,{className:"flatmapvuer-popover",positionAtLastClick:!0}),this.popUpCssHacks()},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"})}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let r of t.values())r.label&&e.push(r.label);return Array.from(new Set(e))}},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?e.viewport&&this.mapImp.setState(e.viewport):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){e&&(e.viewport&&this.mapImp.setState(e.viewport),e.searchTerm&&this.searchAndShowResult(e.searchTerm,!0))},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!0))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0;let t=!1;this.displayMinimap&&(t={position:"top-right"});let r={taxon:this.entry};this.uuid&&(r.uuid=this.uuid),e?e.uuid?r={uuid:e.uuid}:e.entry&&(r.taxon=e.entry,e.biologicalSex?r.biologicalSex=e.biologicalSex:r.taxon==="NCBITaxon:9606"&&(r.biologicalSex="PATO:0000384")):this.biologicalSex&&(r.biologicalSex=this.biologicalSex),this.mapManager.loadMap(r,this.$refs.display,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:t}).then(i=>{this.mapImp=i,this.serverUUID=this.mapImp.getIdentifier().uuid;let o=this.mapImp.details.version;this.setFlightPathInfo(o),this.onFlatmapReady(),this._stateToBeSet?this.restoreMapState(this._stateToBeSet):this.restoreMapState(e)})}else e&&(this._stateToBeSet={viewport:e.viewport,searchTerm:e.searchTerm},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),r=parseInt(t.paddingTop)+parseInt(t.paddingBottom),n=e.clientHeight-r;this.pathwaysMaxHeight=n-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&(this.mapImp.resize(),this.showMinimap(this.displayMinimap),this.mapImp._minimap&&this.mapImp._minimap._miniMap.resize())}catch{console.error("Map resize error")}},onFlatmapReady:function(){this.sensor=new _G(this.$refs.display,this.mapResize),this.mapImp.options&&this.mapImp.options.style==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.mapImp.enableCentrelines(!1),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.flatmapAPI,this.mapImp.taxonIdentifiers),this.addResizeButtonToMinimap(),this.loading=!1,this.computePathControlsMaximumHeight(),this.drawerOpen=!0,this.mapResize(),this.$emit("ready",this)},showMinimap:function(e){this.mapImp&&this.mapImp.showMinimap(e)},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t){if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),!0;{const r=this.mapImp.search(e);if(r&&r.results&&r.results.length>0){if(this.mapImp.showSearchResults(r),t&&r.results[0].featureId&&r.results[0].text){const n=this.mapImp.annotation(r.results[0].featureId);this.mapImp.showPopup(r.results[0].featureId,n.label,{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}return!0}else this.mapImp.clearSearchResults()}}return!1},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:4},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,userApiKey:this.userToken}},data:function(){return{annotationEntry:{},tooltipDisplay:!1,serverUUID:void 0,layers:[],pathways:[],sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],centreLines:[{label:"Display Nerves",key:"centrelines",enabled:!1}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,hoverVisibilities:[{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1},{value:!1}],yellowstar:gG,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:pG,tooltipEntry:b8t(),connectivityTooltipVisible:!1,drawerOpen:!1,annotationRadio:!1,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",currentHover:"",viewingMode:"Exploration",viewingModes:["Annotation","Exploration","Network Discovery"],openMapRef:void 0,backgroundIconRef:void 0}},computed:{...v8t(x8t,["userToken"])},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(val)},state:{handler:function(e,t){e!==t&&(this.mapManager?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},disableUI:function(e){e&&this.closeTooltip()}},mounted:function(){this.openMapRef=T.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=T.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait=[],this.tooltipWait.length=this.hoverVisibilities.length,this.mapManager=new yO(this.flatmapAPI),this.flatmapQueries=new mG,this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap()}},Po=e=>(T.pushScopeId("data-v-4f5a6743"),e=e(),T.popScopeId(),e),w8t={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},E8t={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},M8t={style:{height:"100%",width:"100%"},ref:"display"},A8t={class:"beta-popovers"},C8t=Po(()=>T.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),S8t=Po(()=>T.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),H8t=Po(()=>T.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1)),O8t=Po(()=>T.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1)),V8t=Po(()=>T.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),D8t={key:1,class:"warning-text"},P8t=Po(()=>T.createElementVNode("span",{class:"warning-text"},"What's new?",-1)),I8t=Po(()=>T.createElementVNode("b",null,"Network discovery mode",-1)),k8t=Po(()=>T.createElementVNode("p",null," You can now view the network of neurons connected to a selected neuron. This mode is located in the settings at the bottom right. Once discovery mode is on, click on a neuron to see its connections. ",-1)),R8t=Po(()=>T.createElementVNode("b",null,"Now can display up to 6 panes",-1)),B8t=Po(()=>T.createElementVNode("p",null," You can now display up to 6 panes in the flatmap. This allows you to compare between different datasets and/or different views of the same dataset. ",-1)),N8t={class:"bottom-right-control"},F8t=Po(()=>T.createElementVNode("div",null,[T.createTextVNode(" Fit to "),T.createElementVNode("br"),T.createTextVNode(" window ")],-1)),j8t=["innerHTML"],z8t=["innerHTML"],U8t=["onClick"];function $8t(e,t,r,n,i,o){const a=T.resolveComponent("map-svg-sprite-color"),s=bv,h=yi,d=Vc,Q=F3,p=T.resolveComponent("map-svg-icon"),g=Mb,_=Eb,x=wb,b=vv,A=na,E=qa,O=K3,V=Oc,k=B6,j=Kx,$=Yx,U=FT,J=Qb,tt=Bc;return T.withDirectives((T.openBlock(),T.createElementBlock("div",w8t,[T.createVNode(a),T.createElementVNode("div",E8t,[T.createElementVNode("div",M8t,null,512),T.withDirectives(T.createElementVNode("div",A8t,[T.createElementVNode("div",null,[T.createVNode(d,{placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[6].value,ref:"warningPopover"},{reference:T.withCtx(()=>[r.displayWarning?(T.openBlock(),T.createElementBlock("div",{key:0,class:"warning-icon",onMouseover:t[7]||(t[7]=rt=>o.showToolitip(6)),onMouseout:t[8]||(t[8]=rt=>o.hideToolitip(6))},[T.createVNode(h,null,{default:T.withCtx(()=>[T.createVNode(s)]),_:1}),r.isLegacy?(T.openBlock(),T.createElementBlock(T.Fragment,{key:0},[V8t,T.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...rt)=>o.viewLatestMap&&o.viewLatestMap(...rt))}," Click here for the latest map ")],64)):(T.openBlock(),T.createElementBlock("span",D8t,"Beta"))],32)):T.createCommentVNode("",!0)]),default:T.withCtx(()=>[r.isLegacy?(T.openBlock(),T.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=rt=>o.showToolitip(6)),onMouseout:t[1]||(t[1]=rt=>o.hideToolitip(6))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(T.openBlock(),T.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=rt=>o.showToolitip(6)),onMouseout:t[3]||(t[3]=rt=>o.hideToolitip(6))},[T.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),C8t,T.createTextVNode(" models available in "),S8t,T.createTextVNode(". ")],32)):(T.openBlock(),T.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=rt=>o.showToolitip(6)),onMouseout:t[5]||(t[5]=rt=>o.hideToolitip(6))},[T.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),H8t,T.createTextVNode(" models available in "),O8t,T.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")],32))]),_:1},8,["visible"])]),r.displayLatestChanges?(T.openBlock(),T.createBlock(d,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[7].value},{reference:T.withCtx(()=>[r.displayLatestChanges?(T.openBlock(),T.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=rt=>o.showToolitip(7)),onMouseout:t[10]||(t[10]=rt=>o.hideToolitip(7))},[T.createVNode(h,null,{default:T.withCtx(()=>[T.createVNode(s)]),_:1}),P8t],32)):T.createCommentVNode("",!0)]),default:T.withCtx(()=>[I8t,k8t,R8t,B8t]),_:1},8,["visible"])):T.createCommentVNode("",!0)],512),[[T.vShow,!r.disableUI]]),T.withDirectives(T.createVNode(h,{class:T.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:o.closeMinimap},{default:T.withCtx(()=>[T.createVNode(Q)]),_:1},8,["class","onClick"]),[[T.vShow,e.minimapResizeShow]]),T.withDirectives(T.createElementVNode("div",N8t,[T.createVNode(d,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[0].value},{reference:T.withCtx(()=>[T.createVNode(p,{icon:"zoomIn",class:"icon-button zoomIn",onClick:t[11]||(t[11]=rt=>o.zoomIn()),onMouseover:t[12]||(t[12]=rt=>o.showToolitip(0)),onMouseout:t[13]||(t[13]=rt=>o.hideToolitip(0))})]),_:1},8,["visible"]),T.createVNode(d,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper popper-zoomout",visible:e.hoverVisibilities[1].value},{reference:T.withCtx(()=>[T.createVNode(p,{icon:"zoomOut",class:"icon-button zoomOut",onClick:t[14]||(t[14]=rt=>o.zoomOut()),onMouseover:t[15]||(t[15]=rt=>o.showToolitip(1)),onMouseout:t[16]||(t[16]=rt=>o.hideToolitip(1))})]),_:1},8,["visible"]),T.createVNode(d,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value},{reference:T.withCtx(()=>[T.createVNode(p,{icon:"fitWindow",class:"icon-button fitWindow",onClick:t[17]||(t[17]=rt=>o.resetView()),onMouseover:t[18]||(t[18]=rt=>o.showToolitip(2)),onMouseout:t[19]||(t[19]=rt=>o.hideToolitip(2))})]),default:T.withCtx(()=>[F8t]),_:1},8,["visible"])],512),[[T.vShow,!r.disableUI]]),T.createVNode(d,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual","popper-class":"flatmap-popper",visible:e.hoverVisibilities[4].value,ref:"checkBoxPopover"},{reference:T.withCtx(()=>[T.withDirectives(T.createElementVNode("div",{class:T.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[T.withDirectives((T.openBlock(),T.createElementBlock("div",{class:T.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:T.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[e.isFC?T.createCommentVNode("",!0):(T.openBlock(),T.createBlock(g,{key:0,class:"svg-legends-container"})),T.createVNode(d,{content:"Location of the featured dataset",placement:"right",teleported:!1,trigger:"hover","popper-class":"flatmap-popper popper-bump-right",visible:e.hoverVisibilities[9].value,ref:"featuredMarkerPopover"},{reference:T.withCtx(()=>[T.withDirectives(T.createElementVNode("div",{class:"yellow-star-legend",innerHTML:e.yellowstar},null,8,j8t),[[T.vShow,r.showStarInLegend],[J,void 0,"featuredMarkerPopover"]])]),_:1},8,["visible"]),T.createVNode(d,{content:"Find these markers for data",placement:"right",teleported:!1,trigger:"manual","popper-class":"flatmap-popper popper-bump-right",visible:e.hoverVisibilities[5].value,ref:"markerPopover"},{reference:T.withCtx(()=>[T.withDirectives(T.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,z8t),[[T.vShow,e.hoverVisibilities[5].value],[J,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(T.openBlock(),T.createBlock(_,{key:1,active:e.currentActive,hover:e.currentHover,"tree-data":e.systems,ref:"treeControls",onChanged:o.systemSelected,onCheckAll:o.checkAllSystems,onChangeActive:o.ftuSelected},null,8,["active","hover","tree-data","onChanged","onCheckAll","onChangeActive"])):T.createCommentVNode("",!0),!e.isFC&&e.centreLines&&e.centreLines.length>0?(T.openBlock(),T.createBlock(x,{title:"Nerves",labelKey:"label",identifierKey:"key",selections:e.centreLines,onChanged:o.centreLinesSelected,ref:"centrelinesSelection",key:"centrelinesSelection"},null,8,["selections","onChanged"])):T.createCommentVNode("",!0),!e.isFC&&e.taxonConnectivity&&e.taxonConnectivity.length>0?(T.openBlock(),T.createBlock(x,{title:"Observed in",labelKey:"label",identifierKey:"taxon",selections:e.taxonConnectivity,onChanged:o.taxonsSelected,onCheckAll:o.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckAll"])):T.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(T.openBlock(),T.createBlock(x,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,onChanged:o.pathwaysSelected,onCheckAll:o.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","onChanged","onCheckAll"])):T.createCommentVNode("",!0)],6)),[[J,void 0,"checkBoxPopover"]]),T.createElementVNode("div",{onClick:t[20]||(t[20]=(...rt)=>o.toggleDrawer&&o.toggleDrawer(...rt)),class:T.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[T.createVNode(h,null,{default:T.withCtx(()=>[T.createVNode(b)]),_:1})],2)],2),[[T.vShow,!r.disableUI]])]),_:1},8,["visible"]),e.openMapRef?(T.openBlock(),T.createBlock(d,{key:0,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(r.openMapOptions,rt=>(T.openBlock(),T.createBlock(E,{key:rt.key},{default:T.withCtx(()=>[T.createVNode(A,{type:"primary",plain:"",onClick:st=>e.$emit("open-map",rt.key)},{default:T.withCtx(()=>[T.createTextVNode(T.toDisplayString(rt.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):T.createCommentVNode("",!0),T.createVNode(d,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"200",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:T.withCtx(()=>[T.createElementVNode("div",null,[T.createVNode(E,{class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Viewing Mode")]),_:1}),T.createVNode(E,{class:"backgroundControl"},{default:T.withCtx(()=>[T.createVNode(k,{teleported:!1,modelValue:e.viewingMode,"onUpdate:modelValue":t[21]||(t[21]=rt=>e.viewingMode=rt),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown"},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(e.viewingModes,(rt,st)=>(T.openBlock(),T.createBlock(V,{key:rt+st,label:rt,value:rt},{default:T.withCtx(()=>[T.createVNode(E,null,{default:T.withCtx(()=>[T.createVNode(O,{span:12},{default:T.withCtx(()=>[T.createTextVNode(T.toDisplayString(rt),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.displayFlightPathOption?(T.openBlock(),T.createBlock(E,{key:0,class:"backgroundSpacer"})):T.createCommentVNode("",!0),e.displayFlightPathOption?(T.openBlock(),T.createBlock(E,{key:1,class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Flight path display")]),_:1})):T.createCommentVNode("",!0),e.displayFlightPathOption?(T.openBlock(),T.createBlock(E,{key:2,class:"backgroundControl"},{default:T.withCtx(()=>[T.createVNode($,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[22]||(t[22]=rt=>e.flightPath3DRadio=rt),class:"flatmap-radio",onChange:o.setFlightPath3D},{default:T.withCtx(()=>[T.createVNode(j,{label:!1},{default:T.withCtx(()=>[T.createTextVNode("2D")]),_:1}),T.createVNode(j,{label:!0},{default:T.withCtx(()=>[T.createTextVNode("3D")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):T.createCommentVNode("",!0),T.createVNode(E,{class:"backgroundSpacer"}),T.createVNode(E,{class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Organs display")]),_:1}),T.createVNode(E,{class:"backgroundControl"},{default:T.withCtx(()=>[T.createVNode($,{modelValue:e.colourRadio,"onUpdate:modelValue":t[23]||(t[23]=rt=>e.colourRadio=rt),class:"flatmap-radio",onChange:o.setColour},{default:T.withCtx(()=>[T.createVNode(j,{label:!0},{default:T.withCtx(()=>[T.createTextVNode("Colour")]),_:1}),T.createVNode(j,{label:!1},{default:T.withCtx(()=>[T.createTextVNode("Greyscale")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),T.createVNode(E,{class:"backgroundSpacer"}),T.createVNode(E,{class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Outlines display")]),_:1}),T.createVNode(E,{class:"backgroundControl"},{default:T.withCtx(()=>[T.createVNode($,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[24]||(t[24]=rt=>e.outlinesRadio=rt),class:"flatmap-radio",onChange:o.setOutlines},{default:T.withCtx(()=>[T.createVNode(j,{label:!0},{default:T.withCtx(()=>[T.createTextVNode("Show")]),_:1}),T.createVNode(j,{label:!1},{default:T.withCtx(()=>[T.createTextVNode("Hide")]),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),T.createVNode(E,{class:"backgroundSpacer"}),T.createVNode(E,{class:"backgroundText"},{default:T.withCtx(()=>[T.createTextVNode("Change background")]),_:1}),T.createVNode(E,{class:"backgroundControl"},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(e.availableBackground,rt=>(T.openBlock(),T.createElementBlock("div",{key:rt,class:T.normalizeClass(["backgroundChoice",rt,rt==e.currentBackground?"active":""]),onClick:st=>o.backgroundChangeCallback(rt)},null,10,U8t))),128))]),_:1})])]),_:1},8,["virtual-ref"]),T.withDirectives(T.createElementVNode("div",{class:T.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[T.createVNode(E,null,{default:T.withCtx(()=>[T.createVNode(d,{visible:e.hoverVisibilities[8].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper"},{reference:T.withCtx(()=>[r.enableOpenMapUI&&r.openMapOptions.length>0?(T.openBlock(),T.createBlock(p,{key:0,ref:"openMapRef",icon:"openMap",class:"icon-button open-map-button",onMouseover:t[25]||(t[25]=rt=>o.showToolitip(8)),onMouseout:t[26]||(t[26]=rt=>o.hideToolitip(8))},null,512)):T.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1}),T.createVNode(E,null,{default:T.withCtx(()=>[T.createVNode(d,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[3].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper"},{reference:T.withCtx(()=>[T.createVNode(p,{ref:"backgroundIconRef",icon:"changeBckgd",class:"icon-button",onMouseover:t[27]||(t[27]=rt=>o.showToolitip(3)),onMouseout:t[28]||(t[28]=rt=>o.hideToolitip(3))},null,512)]),_:1},8,["visible"])]),_:1})],2),[[T.vShow,!r.disableUI]]),T.withDirectives(T.createVNode(U,{ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,entry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation"},null,8,["annotationEntry","entry","annotationDisplay"]),[[T.vShow,e.tooltipDisplay]])])])),[[tt,e.loading]])}const vy=Wa(L8t,[["render",$8t],["__scopeId","data-v-4f5a6743"]]),EO={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},G8t={name:"MultiFlatmapVuer",components:{Col:K3,Row:qa,Option:Oc,Select:B6,Popover:Vc,FlatmapVuer:vy},beforeMount(){this._resolveList=[],this._initialised=!1},mounted:function(){this.initialise(),Nc.on("onActionClick",e=>{this.resourceSelected(e)})},methods:{initialise:function(){return new Promise(e=>{this.requireInitialisation?(this.requireInitialisation=!1,fetch(this.flatmapAPI).then(t=>t.json()).then(t=>{Object.keys(this.availableSpecies).forEach(n=>{const i=this.availableSpecies[n].uuid;if(i&&t.map(o=>o.uuid).indexOf(i)>0)this.speciesList[n]=T.reactive(this.availableSpecies[n]);else for(let o=0;o<t.length;o++)if(this.availableSpecies[n].taxo===t[o].taxon)if(this.availableSpecies[n].biologicalSex){if(t[o].biologicalSex&&t[o].biologicalSex===this.availableSpecies[n].biologicalSex){this.speciesList[n]=T.reactive(this.availableSpecies[n]);break}}else{this.speciesList[n]=T.reactive(this.availableSpecies[n]);break}});let r=this.initial;if(this.state){const n=this.state.state;(!n||!n.uuid&&!n.entry)&&this.state.species?r=this.state.species:r=void 0}r&&(r&&this.speciesList[r]!==void 0?this.activeSpecies=r:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this._initialised=!0,e(),this._resolveList.forEach(n=>{n()})})):this._initialised?e():this._resolveList.push(e)})},resourceSelected:function(e){this.$emit("resource-selected",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},showPopup:function(e,t,r){this.getCurrentFlatmap().showPopup(e,t,r)},showMarkerPopup:function(e,t,r){this.getCurrentFlatmap().showMarkerPopup(e,t,r)},setSpecies:function(e,t,r){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(r){const n=r-1;n>=0&&this.$nextTick(()=>{this.setSpecies(e,t,n)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let r=0;r<t.length;r++){const n=this.speciesList[t[r]];if(!n.isLegacy&&n.taxo===e.entry&&n.biologicalSex===e.biologicalSex){this.setSpecies(t[r],e,0);return}}},createLegacyEntry:function(e,t,r){if(r&&t){let n="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?n=e.species:n=n+` ${e.species}`),this.speciesList[n]=T.reactive({taxo:t,isLegacy:!0,displayWarning:!0}),{species:n,state:{entry:t,uuid:r,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const r=e.state;if(r.uuid){if(r.entry)return new Promise(()=>{const n=new yO(this.flatmapAPI),i={taxon:r.entry};r.biologicalSex&&(i.biologicalSex=r.biologicalSex),n.findMap_(i).then(o=>{if(o.uuid!==r.uuid)return this.createLegacyEntry(e,r.entry,r.uuid)}).then(o=>{t(o||e)}).catch(()=>{t(e)})})}else if(r.entry){const n=r.entry in EO?EO[r.entry]:void 0,i=this.createLegacyEntry(e,r.entry,n);t(i||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})})}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:4},renderAtMounted:{type:Boolean,default:!1},helpMode:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0}}},Z8t=e=>(T.pushScopeId("data-v-5550e1f2"),e=e(),T.popScopeId(),e),q8t={class:"multi-container",ref:"multiContainer"},W8t={key:0,style:{position:"absolute","z-index":"10"}},X8t=Z8t(()=>T.createElementVNode("div",{class:"species-display-text"},"Species",-1)),K8t={class:"select-box-icon"};function Y8t(e,t,r,n,i,o){const a=Oc,s=B6,h=Vc,d=vy;return T.openBlock(),T.createElementBlock("div",q8t,[r.disableUI?T.createCommentVNode("",!0):(T.openBlock(),T.createElementBlock("div",W8t,[X8t,T.createVNode(h,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper right-popper",visible:r.helpMode,teleported:!1,ref:"selectPopover"},{reference:T.withCtx(()=>[T.createVNode(s,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=Q=>e.activeSpecies=Q),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:o.setSpecies},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(e.speciesList,(Q,p)=>(T.openBlock(),T.createBlock(a,{key:p,label:p,value:p},{default:T.withCtx(()=>[T.createElementVNode("span",K8t,[T.createElementVNode("i",{class:T.normalizeClass(Q.iconClass)},null,2)]),T.createTextVNode(" "+T.toDisplayString(p),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(e.speciesList,(Q,p)=>T.withDirectives((T.openBlock(),T.createBlock(d,{key:p,entry:Q.taxo,uuid:Q.uuid,biologicalSex:Q.biologicalSex,displayWarning:Q.displayWarning,displayLatestChanges:Q.displayLatestChanges,isLegacy:Q.isLegacy,ref_for:!0,ref:p,enableOpenMapUI:r.enableOpenMapUI,openMapOptions:r.openMapOptions,disableUI:r.disableUI,onViewLatestMap:o.viewLatestMap,onResourceSelected:o.resourceSelected,onReady:o.FlatmapReady,onPanZoomCallback:o.panZoomCallback,onOpenMap:t[1]||(t[1]=g=>e.$emit("open-map",g)),minZoom:r.minZoom,helpMode:r.helpMode,renderAtMounted:r.renderAtMounted,displayMinimap:r.displayMinimap,showStarInLegend:r.showStarInLegend,style:{height:"100%"},flatmapAPI:r.flatmapAPI,sparcAPI:r.sparcAPI},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","minZoom","helpMode","renderAtMounted","displayMinimap","showStarInLegend","flatmapAPI","sparcAPI"])),[[T.vShow,e.activeSpecies==p]])),128))],512)}const J8t=Wa(G8t,[["render",Y8t],["__scopeId","data-v-5550e1f2"]]);Fr.FlatmapVuer=vy,Fr.MultiFlatmapVuer=J8t,Fr.Tooltip=FT,Object.defineProperty(Fr,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
package/src/main.js
CHANGED
package/src/store/index.js
CHANGED
|
@@ -5,17 +5,11 @@ export const useMainStore = defineStore('main', {
|
|
|
5
5
|
userProfile: {
|
|
6
6
|
token: ''
|
|
7
7
|
},
|
|
8
|
-
marker: 'flatmapvuer marker'
|
|
9
8
|
}),
|
|
10
9
|
getters: {
|
|
11
10
|
userToken(state) {
|
|
11
|
+
console.log("🚀 ~ flatmapvuer userToken ~ state:", state)
|
|
12
12
|
return state.userProfile.token
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
|
-
actions: {
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
persist: {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
15
|
})
|