File: /var/www/html/wptoho/wp-content/themes/themify-ultra/themify/js/modules/azure-map.js
var ThemifyAzureMap;((t,a,s,o)=>{"use strict";let e=async t=>fetch("https://atlas.microsoft.com/geocode?api-version=2023-06-01&subscription-key="+s.azure_key+"&query="+t).then((t=>t.json())).then((t=>t));t.on("tf_azure_init",(o=>{t.loadJs("https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js",!!a.atlas?.Map).then((()=>{(a=>{for(let o=a.length-1;o>-1;--o){let i=a[o];t.requestIdleCallback((async()=>{const a=i.dataset,o=(await e(a.address)).features[0].geometry.coordinates,n=new atlas.Map(i,{center:o,zoom:~~a.zoom,style:a.type,scrollZoomInteraction:"1"===a.scroll,dragPanInteraction:"1"===(t.isTouch?a.mdrag:a.drag),authOptions:{authType:"subscriptionKey",subscriptionKey:s.azure_key}});var c=new atlas.HtmlMarker({color:"DodgerBlue",text:"",position:o,popup:new atlas.Popup({content:'<div style="padding:10px">'+a.infoWindow+"</div>",pixelOffset:[0,-30]})});n.markers.add(c),n.events.add("click",c,(()=>{c.togglePopup()})),n.events.add("ready",(()=>{"1"!==a.control&&n.controls.add([new atlas.control.StyleControl,new atlas.control.ZoomControl],{position:"top-right"})}))}),1e3*(o+1))}})(o)})),t.loadCss("https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css")}))})(Themify,window,themify_vars);