import{af as a,ag as e,Y as n,e as o,ah as i,o as t,j as s,ai as p,r as l,J as r}from"./index-9da7d198.js";var c={exports:{}};const d=e(c.exports=function(){function a(a){var o=[];return a.AMapUI&&o.push(e(a.AMapUI)),a.Loca&&o.push(n(a.Loca)),Promise.all(o)}function e(a){return new Promise((function(e,n){var i=[];if(a.plugins)for(var l=0;l{const a=new o.value.InfoWindow({offset:new o.value.Pixel(2,15),closeWhenClickMap:!0,isCustom:!0,anchor:"top-left"}),i=await n.get({url:"/vadmin/record/analysis/user/login/distribute"});if(i){const n=i.data.map((n=>{const i=n.center;let t=l();if(n.total>40){t.value=new o.value.Marker({position:i,offset:new o.value.Pixel(0,15)});var s=document.createElement("div");s.className="alarmDevice",t.value.setContent(s)}else t.value=new o.value.CircleMarker({center:i,radius:n.total>30?20:n.total/2,strokeColor:"#f05b72",strokeWeight:2,strokeOpacity:.5,fillColor:"#f05b72",fillOpacity:.5,zIndex:10,bubble:!0,cursor:"pointer",clickable:!0});return t.value.on("mouseover",(()=>{a.setContent(`
\n
\n \n ${n.name}\n
\n ${n.total}\n
`),a.open(e.value,i)})),t.value.on("mouseout",(()=>{a.close(e.value,i)})),t.value}));e.value.add(n)}};return(async()=>{const a=await p({tab_id:8});a&&d.load({key:a.data.map_key,version:"2.0",plugins:[""]}).then((async n=>{o.value=n,e.value=new n.Map("map-container",{pitch:a.data.map_pitch,terrain:!0,viewMode:a.data.map_view_mode,zoom:a.data.map_zoom,resizeEnable:!0,mapStyle:a.data.map_style,center:JSON.parse(a.data.map_center)}),await r()})).catch((a=>{}))})(),(a,e)=>(t(),s("div",u))}}),[["__scopeId","data-v-f3fb4ae5"]]);export{v as default};