function initSPPageBuilderGMap(w){var A={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",decode:function(t){var e,a,r,o,n,d,i="",s=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");s<t.length;)e=this._keyStr.indexOf(t.charAt(s++))<<2|(o=this._keyStr.indexOf(t.charAt(s++)))>>4,a=(15&o)<<4|(n=this._keyStr.indexOf(t.charAt(s++)))>>2,r=(3&n)<<6|(d=this._keyStr.indexOf(t.charAt(s++))),i+=String.fromCharCode(e),64!=n&&(i+=String.fromCharCode(a)),64!=d&&(i+=String.fromCharCode(r));return i=A._utf8_decode(i)},_utf8_decode:function(t){for(var e="",a=0,r=c1=c2=0;a<t.length;)(r=t.charCodeAt(a))<128?(e+=String.fromCharCode(r),a++):191<r&&r<224?(c2=t.charCodeAt(a+1),e+=String.fromCharCode((31&r)<<6|63&c2),a+=2):(c2=t.charCodeAt(a+1),c3=t.charCodeAt(a+2),e+=String.fromCharCode((15&r)<<12|(63&c2)<<6|63&c3),a+=3);return e}};jQuery(".sppb-addon-gmap-canvas",w).each(function(t){var e=jQuery(this).attr("id"),a=Number(jQuery(this).attr("data-mapzoom")),r=jQuery(this).attr("data-infowindow"),o="true"===jQuery(this).attr("data-mousescroll"),n=jQuery(this).attr("data-maptype"),d={lat:Number(jQuery(this).attr("data-lat")),lng:Number(jQuery(this).attr("data-lng"))},i=new google.maps.Map(w.getElementById(e),{center:new google.maps.LatLng(d),zoom:a,scrollwheel:o,disableDefaultUI:!0});if(void 0!==jQuery(this).attr("data-location")){for(var s=jQuery(this).attr("data-lat"),c=jQuery(this).attr("data-lng"),u=A.decode(r),g=JSON.stringify([{address:u,latitude:s,longitude:c}]),h=A.decode(jQuery(this).attr("data-location")),l=JSON.parse(g),f=JSON.parse(h),p=l.concat(f),m=[],y=0;y<p.length;y++){var C=p[y];m.push([C.address]+";"+[C.latitude]+";"+[C.longitude])}for(var S=[],j=0;j<m.length;j++)S.push(m[j].split(";"));var Q,v=S;r=new google.maps.InfoWindow;for(y=0;y<v.length;y++)Q=new google.maps.Marker({position:new google.maps.LatLng(v[y][1],v[y][2]),map:i}),google.maps.event.addListener(Q,"click",function(t,e){return function(){v[e][0]&&(r.setContent(v[e][0]),r.open(i,t))}}(Q,y))}i.setMapTypeId(google.maps.MapTypeId[n])})}jQuery(window).on("load",function(){initSPPageBuilderGMap(document)});