import{b as d,c as f,j as i,p as w,k as x,i as g,g as v,H as k,T as y,t as _,u as a,a as c}from"./vue-Cm77DuTi.js";import{aM as h,bt as M,_ as B}from"./app-QjDgb7aF.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const P=d({__name:"MkUrlPreviewPopup",props:{showing:{type:Boolean},url:{},source:{}},emits:["closed"],setup(o,{emit:p}){const s=o,m=p,u=h("middle");let n=c(0),r=c(0);return f(()=>{const e=s.source.getBoundingClientRect(),t=Math.max(e.left+s.source.offsetWidth/2-300/2,6)+window.pageXOffset,l=e.top+s.source.offsetHeight+window.pageYOffset;n.value=l,r.value=t}),(e,t)=>(i(),w("div",{class:"fgmtyycl",style:_({zIndex:a(u),top:a(n)+"px",left:a(r)+"px"})},[x(y,{name:e.$store.state.animation?"zoom":"",onAfterLeave:t[0]||(t[0]=l=>m("closed"))},{default:g(()=>[o.showing?(i(),v(M,{key:0,class:"_popup _shadow",url:o.url},null,8,["url"])):k("",!0)]),_:1},8,["name"])],4))}}),U=B(P,[["__scopeId","data-v-d3bad9e9"]]);export{U as default};
//# sourceMappingURL=MkUrlPreviewPopup-BEDqB5xZ.js.map
