/* Request ID: a1048df662d0d4a6bf46ecef89f882f1 (03/19/2024 4:03am) */ /* Resource ID: eda83b99c377f72937eec49947c (places.js, minified by uglifyjs) (02/25/2024 4:47am) */ (function(e){livewhale.has_stamen=false;e(function(){if(typeof google==="object"&&typeof google.maps==="object"){if(typeof google.maps.StamenMapType==="function"){livewhale.has_stamen=true}}if(livewhale.has_stamen&&location.hostname.indexOf("whitewhale.net")===-1&&location.hostname.indexOf("livewhale.net")===-1&&location.hostname.indexOf("livewhale.com")===-1){livewhale.has_stamen=false}});e.widget("lw.lwPlaces",{options:{scrollWheel:false,mapTypeId:livewhale.googlemaps&&livewhale.googlemaps.map_type_id?google.maps.MapTypeId[livewhale.googlemaps.map_type_id.toUpperCase()]:google.maps.MapTypeId.ROADMAP,selector:null},_create:function(){var t=this,a=this.element,i=this.options,s=e.parseJSON(a.find(".lw_widget_json").text()),o=i.selector?a.find(i.selector):a.find(".lw_places_map"),l;this._markers=[];this._infoWindows=[];this._data={};if(s&&e.isArray(s.places)){this._data=s.places[0];if(this._data.markers&&typeof this._data.markers==="string"){l=e.parseJSON(this._data.markers);if(l.markers){this._data.markers=l.markers}}}if(i.latitude)this._data.latitude=i.latitude;if(i.longitude)this._data.longitude=i.longitude;if(i.markers)this._data.markers=i.markers;if(i.zoom)this._data.zoom=i.zoom;if(!this._data.latitude||!this._data.longitude){return}i.mapTypeIds={};if(livewhale.has_stamen){i.mapTypeId="watercolor";i.mapTypeIds=[i.mapTypeId]}this._map=new google.maps.Map(o.get(0),{zoom:this._data.zoom,scrollwheel:i.scrollWheel,mapTypeId:i.mapTypeId,mapTypeControlOptions:i.mapTypeIds,center:new google.maps.LatLng(this._data.latitude,this._data.longitude)});if(livewhale.has_stamen){this._map.mapTypes.set(i.mapTypeId,new google.maps.StamenMapType(i.mapTypeId))}this.addMarkers(this._data.markers);google.maps.event.addListener(this._map,"zoom_changed",function(){if(!livewhale.is_details_template)t.adjustMarkers()});google.maps.event.addListener(this._map,"dragend",function(){if(!livewhale.is_details_template)t.adjustMarkers()})},addMarkers:function(e){var t=this.options,a=this._map.getCenter();t.zoom=this._map.getZoom();t.center=a.lat()+","+a.lng();for(var i in e){this.addMarker(e[i])}},addMarker:function(t){var a="",i={news:"8000FF",events:"FF8000",galleries:"0000FF",blurbs:"00BFFF",profiles:"088A29",images:"848484",aggregate:"FE7569"};if(t.results){e.each(t.results,function(e,t){a=a===t.content_type||a===""?t.content_type:"aggregate"})}if(a===""){a="aggregate"}var s=this,o=this.element,l=this.options,n=new google.maps.LatLng(t.latitude,t.longitude),r=i[a]?i[a]:i.aggregate,p="//chart.googleapis.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|"+r,m=new google.maps.Size(21,34),h=new google.maps.Point(0,0),d=new google.maps.Point(10,34),g=new google.maps.MarkerImage(p,m,h,d),_="",c,f,w,u;if(a==="profile"&&(location.hostname==="www.whitewhale.net"||location.hostname==="whitewhale.net")){g=new google.maps.MarkerImage("http://www.whitewhale.net/images/whales.png")}if(typeof t.title!=="string"){t.title=""+t.title;if(t.title=="undefined"){t.title=""}}c=new google.maps.Marker({position:n,map:this._map,title:t.title?t.title.replace(/<(?: \s{2}\/)?[^>]+>/gi,""):null,icon:g});this._markers.push(c);if(t.results&&t.results[0]){w=t.results[1]?"":" one_result";_+='