"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./DashboardPlugin-2958aeef.cjs");class m{constructor(r){this.name=r.ImgName,this.size="...",this.path=r.Path}}const h={class:"branch-slider-wrap"},f={class:"branch-slider-block"},v={class:"branch-slider-label"},b={__name:"BranchSlider",props:{dataList:{type:Array,required:!1}},emits:["onValueChange"],setup(n,{emit:r}){const l=n,u=r;let c=new Map([[8,"Main Trunk"],[7,"Meningeal Branch"],[6,"Auricular Branch"],[5,"Pharyngeal Branch"],[4,"Cardiac Branch"],[3,"Gastric Branch"],[2,"Celiac Branch"],[1,"Heaptic Branch"]]);l.dataList&&l.dataList.length>0&&(c.clear(),l.dataList.forEach((t,a)=>{c.set(a,t)}));const s=e.ref(8),o=t=>c.get(t);return e.watch(s,t=>{u("onValueChange",c.get(t))}),(t,a)=>{const i=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",f,[e.createVNode(i,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=d=>s.value=d),vertical:"",min:1,max:8,placement:"left","format-tooltip":o},null,8,["modelValue"])]),e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),d=>(e.openBlock(),e.createElementBlock("li",null,e.toDisplayString(d[1]),1))),256))])])}}},g=_._export_sfc(b,[["__scopeId","data-v-f3b7ad27"]]);const B=n=>(e.pushScopeId("data-v-7e29f12d"),n=n(),e.popScopeId(),n),V={class:"content-header stick-to-top tw-flex tw-flex-row tw-items-center tw-justify-between tw-h-10 tw-p-1"},N=B(()=>e.createElementVNode("div",{class:"fill"},null,-1)),w={class:"branch-slider"},y={__name:"LocationNav",props:{dataList:{type:Array,required:!1}},setup(n){e.inject("emitter");const r=_.useOpenerStore();let l=e.ref();function u(o){let t=l.value[o].path;r.openWidget("BiolucidaViewer",[{key:"mbfLink",value:t}])}function c(o){fetch("./dataByLocation.json").then(t=>t.json()).then(t=>s(Object.assign(new m(t)).Imgs))}function s(o){let t=[];o.forEach(a=>{let i={name:a.ImgName,size:"...",path:a.Path};t.push(i)}),l.value=t}return(o,t)=>{const a=e.resolveComponent("el-table-column"),i=e.resolveComponent("el-button"),d=e.resolveComponent("el-table");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",V,[e.renderSlot(o.$slots,"default",{},void 0,!0)]),N,e.createElementVNode("div",w,[e.createVNode(g,{dataList:n.dataList,onOnValueChange:t[0]||(t[0]=p=>c())},null,8,["dataList"])]),e.createVNode(d,{data:e.unref(l),class:"table-of-images"},{default:e.withCtx(()=>[e.createVNode(a,{prop:"name",label:"Name"}),e.createVNode(a,{prop:"size",label:"Size"}),e.createVNode(a,{fixed:"right",label:"Img"},{default:e.withCtx(p=>[e.createVNode(i,{link:"",type:"primary",size:"small",onClick:L=>u(p.$index)},{default:e.withCtx(()=>[e.createTextVNode("Open")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])],64)}}},k=_._export_sfc(y,[["__scopeId","data-v-7e29f12d"]]);exports.default=k;
