"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./DashboardPlugin-586a15df.cjs"),m=require("./Model-20b6a235.cjs");const h={class:"branch-slider-wrap"},f={class:"branch-slider-block"},b={class:"branch-slider-label"},v={__name:"BranchSlider",props:{dataList:{type:Array,required:!1}},emits:["onValueChange"],setup(n,{emit:d}){const o=n,u=d;let l=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"]]);o.dataList&&o.dataList.length>0&&(l.clear(),o.dataList.forEach((t,a)=>{l.set(a,t)}));const r=e.ref(8),c=t=>l.get(t);return e.watch(r,t=>{u("onValueChange",l.get(t))}),(t,a)=>{const s=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",f,[e.createVNode(s,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=i=>r.value=i),vertical:"",min:1,max:8,placement:"left","format-tooltip":c},null,8,["modelValue"])]),e.createElementVNode("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),i=>(e.openBlock(),e.createElementBlock("li",null,e.toDisplayString(i[1]),1))),256))])])}}},g=_._export_sfc(v,[["__scopeId","data-v-f3b7ad27"]]);const B=n=>(e.pushScopeId("data-v-48fabc3c"),n=n(),e.popScopeId(),n),V=B(()=>e.createElementVNode("div",{class:"fill"},null,-1)),N={class:"branch-slider"},y={__name:"LocationNav",props:{dataList:{type:Array,required:!1}},setup(n){e.inject("emitter");const d=_.useOpenerStore();let o=e.ref();function u(c){let t=o.value[c].path;d.openWidget("BiolucidaViewer",[{key:"mbfLink",value:t}])}function l(c){fetch("./dataByLocation.json").then(t=>t.json()).then(t=>r(Object.assign(new m.Dataset(t)).Imgs))}function r(c){let t=[];c.forEach(a=>{let s={name:a.ImgName,size:"...",path:a.Path};t.push(s)}),o.value=t}return(c,t)=>{const a=e.resolveComponent("el-table-column"),s=e.resolveComponent("el-button"),i=e.resolveComponent("el-table");return e.openBlock(),e.createElementBlock(e.Fragment,null,[V,e.createElementVNode("div",N,[e.createVNode(g,{dataList:n.dataList,onOnValueChange:t[0]||(t[0]=p=>l())},null,8,["dataList"])]),e.createVNode(i,{data:e.unref(o),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(s,{link:"",type:"primary",size:"small",onClick:k=>u(p.$index)},{default:e.withCtx(()=>[e.createTextVNode("Open")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])],64)}}},L=_._export_sfc(y,[["__scopeId","data-v-48fabc3c"]]);exports.default=L;
