"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[7712],{27712:function(e,a,n){n.r(a),n.d(a,{default:function(){return o}});var i=n(66252),t=n(2262);const r=e=>((0,i.dD)("data-v-f8ede37c"),e=e(),(0,i.Cn)(),e),l={class:"minimap-container"},m=r((()=>(0,i._)("span",null,"画布小地图",-1)));var s={__name:"MinimapPanel",props:{minimapManager:Object},setup(e){const a=e,n=(0,t.iH)(null);let r=null;const s=()=>{r&&clearTimeout(r),r=setTimeout((()=>{a.minimapManager&&a.minimapManager.refresh()}),50)};(0,i.bv)((()=>{a.minimapManager&&n.value&&(a.minimapManager.mount(n.value),setTimeout(s,200))})),(0,i.YP)((()=>a.minimapManager),(e=>{e&&n.value&&e.mount(n.value)}));let u=null;return(0,i.bv)((()=>{window.ResizeObserver&&(u=new ResizeObserver((()=>{s()})),n.value&&u.observe(n.value.parentElement))})),(0,i.Jd)((()=>{u&&n.value&&(u.unobserve(n.value.parentElement),u.disconnect()),r&&clearTimeout(r)})),(e,a)=>((0,i.wg)(),(0,i.iD)("div",l,[(0,i._)("div",{class:"minimap-header"},[m,(0,i._)("button",{class:"minimap-refresh",onClick:s,title:"刷新小地图"}," ⟳ ")]),(0,i._)("div",{class:"minimap-content",ref_key:"minimapContainerRef",ref:n},null,512)]))}},u=n(83744);const c=(0,u.Z)(s,[["__scopeId","data-v-f8ede37c"]]);var o=c}}]);