1import{d as P,v,a as g,x as A,o as l,e as r,k as a,F as E,p as N,aa as T,Z as V,t as b,j as k,P as W,R as j,S as z}from"../../entry/js/main-DqXmKUqu.js";const w=c=>(W("data-v-69c0da7a"),c=c(),j(),c),R={class:"region-map-content-wrapper bg-[#e5f5fe] py-1"},X={id:"region-map-container",class:"mx-auto my-0 max-h-[700px] max-w-[550px]"},Y={id:"svgcontainer",class:"scaling-svg-container",style:{}},Z=["viewBox"],q=["width","height","xlink:href","href"],G=["width","height","xlink:href","href"],J=["disabled","href","onMouseenter","onClick"],K=["points","aria-label"],O=w(()=>a("div",{class:"hoverTop"},null,-1)),Q={class:"mainContent"},ee={class:"mappopupheader"},te=["src"],ae=w(()=>a("div",{class:"hoverBottom"},null,-1)),oe=P({__name:"DocHotSpotMap.async",props:{mapConfiguration:{},disableLink:{type:Boolean,default:!1}},emits:["hot-spot-clicked"],setup(c,{emit:C}){const u=c,I=C,t=v(),d=v(0),h=v(0),_=g(()=>{var e;return t.value?t==null?void 0:t.value.imageUrl:(e=u.mapConfiguration)==null?void 0:e.baseLayerImageUrl}),L=g(()=>{var e;return((e=u.mapConfiguration)==null?void 0:e.showPopover)&&t.value}),M=g(()=>{if(t.value){const e=H(t.value.coordinates),o=$(e);return{left:`${o[0]}px`,top:`${o[1]}px`,display:"block"}}return null}),S=e=>{t.value=e},U=()=>{t.value=null},B=e=>{I("hot-spot-clicked",e)},H=e=>{let s=e.split(",").slice(),n=[];for(;s.length;)n.push(s.splice(0,2));return n},$=e=>{let o=e.map(i=>parseInt(i[0])),s=e.map(i=>parseInt(i[1])),n=Math.max.apply(Math,o),m=Math.max.apply(Math,s);return[n,m]},D=e=>e.url;return A(()=>{var o;let e=new Image;e.addEventListener("load",function(){h.value=this.naturalHeight,d.value=this.naturalWidth}),e.src=(o=u.mapConfiguration)==null?void 0:o.baseLayerImageUrl}),(e,o)=>{var s,n,m,i,f,y,x;return l(),r("div",R,[a("div",X,[a("div",Y,[(l(),r("svg",{class:"scaling-svg",viewBox:`0 0 ${d.value} ${h.value}`},[a("image",{id:"baseimage",width:d.value,height:h.value,"xlink:href":(s=e.mapConfiguration)==null?void 0:s.baseLayerImageUrl,href:(n=e.mapConfiguration)==null?void 0:n.baseLayerImageUrl},null,8,q),a("image",{id:"hoverimage",width:d.value,height:h.value,"xlink:href":_.value,href:_.value},null,8,G),(l(!0),r(E,null,N((m=e.mapConfiguration)==null?void 0:m.layers,(p,F)=>(l(),r("a",{key:F,class:"border-5 border-solid outline-2 !outline-doc-green-500",disabled:u.disableLink,href:u.disableLink?void 0:D(p),onMouseenter:()=>S(p),onMouseleave:U,onClick:T(()=>B(p),["stop"])},[a("polygon",{points:p.coordinates,"aria-label":p.display,role:"button"},null,8,K)],40,J))),128))],8,Z)),L.value?(l(),r("div",{key:0,class:"svgpopup",style:V(M.value)},[O,a("div",Q,[a("h3",ee,b((i=t.value)==null?void 0:i.display),1),(f=t.value)!=null&&f.thumbnailUrl?(l(),r("img",{key:0,src:(y=t.value)==null?void 0:y.thumbnailUrl,alt:""},null,8,te)):k("",!0),a("p",null,b((x=t.value)==null?void 0:x.introductionText),1)]),ae],4)):k("",!0)])])])}}}),ne=z(oe,[["__scopeId","data-v-69c0da7a"]]);export{ne as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.