"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./DashboardPlugin-2958aeef.cjs");const a=t=>(e.pushScopeId("data-v-98a86275"),t=t(),e.popScopeId(),t),d=a(()=>e.createElementVNode("div",{class:"bv-metadata tw-text-left tw-p-1 tw-text-sm"},null,-1)),u={class:"tw-h-screen tw-flex tw-justify-center"},m=["src"],_={__name:"BiolucidaViewer",props:{imageID:0,mbfLink:{type:String},listening:{tyep:Boolean}},emits:["selectWidget"],setup(t,{emit:p}){const c=e.ref("MBF Image Viewer"),r=t,l=e.inject("emitter");let s=e.ref(r.mbfLink);const n=i.useOpenerStore();return e.onMounted(()=>{n.mbfViewerCount++}),e.onUnmounted(()=>{n.mbfViewerCount--}),l.on("ImageSelector-mbfImageSelected",o=>{(n.mbfViewerCount>1&&r.listening||n.mbfViewerCount==1)&&(s.value=o)}),(o,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(o.$slots,"default",{widgetName:c.value},void 0,!0),e.createElementVNode("div",e.mergeProps(o.$attrs,{class:"tw-flex tw-flex-col tw-h-full"}),[d,e.createElementVNode("div",u,[e.createElementVNode("iframe",{class:"tw-p-1 tw-w-screen",src:e.unref(s)},null,8,m)])],16)],64))}},f=i._export_sfc(_,[["__scopeId","data-v-98a86275"]]);exports.default=f;
