PageSourceSearch

https://www.wvao.org/wp-content/plugins/directories-pro/assets/js/map-api.min.js?ver=2.0.29

js wvao.org collected 2026-10-02 18:25:00 UTC 9,295 bytes, 1 lines download raw bytes

1"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}!function(e){DRTS.Map=DRTS.Map||{},DRTS.Map.api={settings:{},getMap:function(e,t){}},DRTS.Map.markerHeight=function(e){var t=e*Math.sqrt(2);return t-(t-e)/2},DRTS.Map.enableDirections=function(t){var i=t.getContainer().find(".drts-map-directions");i.length&&(i.find(".drts-map-directions-input").val(""),DRTS.Location&&DRTS.Location.api&&DRTS.Location.api.autocomplete(".drts-map-directions-input",{callback:function(e){e.text&&i.find(".drts-map-directions-input").attr("value",e.text).end().find(".drts-map-directions-place-id").val(e.placeId||"")}}),i.find(".drts-map-directions-trigger").off("click").on("click",function(r){var o,n,a,s;if(r.preventDefault(),""!==(o=i.find(".drts-map-directions-destination").val())&&(n=t.getMarker(o)))if(a=t.getMarkerLatlng(n)){var l=i.find(".drts-map-directions-place-id").val();s="https://www.google.com/maps/dir/?api=1&origin="+encodeURIComponent(i.find(".drts-map-directions-input").attr("value"))+(l?"&origin_place_id="+l:"")+"&destination="+encodeURIComponent(a.join(","))+"&travelmode="+encodeURIComponent(e(this).data("travel-mode")||"driving"),window.open().location.href=s}else console.log("Invalid destination")}))},DRTS.Map.map=function(){return _createClass(function e(t,i){_classCallCheck(this,e);var r=DRTS.container(t);this.container=r.container,this.containerName=r.name,this.containerSelector=r.selector,this.container.find(this.containerName+"-view-term-entities").length&&(this.container=this.container.find(this.containerName+"-view-term-entities"),this.containerSelector=this.containerSelector+"-view-term-entities"),this.options=i,this.options.infobox=!(void 0!==this.options.infobox&&!this.options.infobox),this.options.infobox_event=this.options.infobox_event||"click",this.options.default_location=this.options.default_location||{lat:40.69847,lng:-73.95144},this.options.default_zoom=parseInt(this.options.default_zoom,10)||10,this.options.scrollwheel=!!this.options.scrollwheel,this.options.fit_bounds_padding=this.options.fit_bounds_padding||7,this.options.disable_animate_marker=!!this.options.disable_animate_marker,this.markers=[],this.currentMarker=null,this.popover=null,this.clusterClicked=!1,this.hidePopoverTimeout=null,this.showPopoverTimeout=null,this.$map=this.container.find(".drts-map-map").addClass("drts-popover-ignore-click").outerHeight(this.options.height)},[{key:"initView",value:function(){return this}},{key:"getOptions",value:function(){return this.options}},{key:"getContainer",value:function(){return this.container}},{key:"getContainerName",value:function(){return this.containerName}},{key:"getContainerSelector",value:function(){return this.containerSelector}},{key:"getMarkerIds",value:function(){var e=[];for(var t in this.markers)this.markers.hasOwnProperty(t)&&e.push(t);return e}},{key:"keepMarkers",value:function(e){var t={};for(var i in e){t[this.addMarker(e[i])]=!0}for(var r in this.markers)t.hasOwnProperty(r)||(this.removeMarker(this.markers[r]),delete this.markers[r]);return this}},{key:"setMarkers",value:function(e){for(var t in e)this.addMarker(e[t]);return this}},{key:"clearMarkers",value:function(){for(var e in this.markers)this.markers.hasOwnProperty(e)&&this.removeMarker(this.markers[e]);return this.markers={},this}},{key:"removeMarker",value:function(e){return this}},{key:"createMarker",value:function(e,t){}},{key:"addMarker",value:function(e){var t=e.entity_id+"-"+e.index;if(!this.markers.hasOwnProperty(t)){var i=this.createMarker(t,e);i&&(this.markers[t]=i)}return t}},{key:"getMarker",value:function(e){if(!1!=e in this.markers)return this.markers[e]}},{key:"getMarkerLatlng",value:function(e){}},{key:"getMarkerContent",value:function(e){}},{key:"getMarkerPosition",value:function(e){}},{key:"getMarkerHeight",value:function(e){}},{key:"getMarkerEntityId",value:function(e){}},{key:"getMarkerKey",value:function(e){}},{key:"getMarkerDetailUrl",value:function(e){}},{key:"getMarkerTitle",value:function(e){}},{key:"clickMarker",value:function(e,t){return this}},{key:"showMarkerContent",value:function(t,i){var r,o,n,a,s,l,u,c;return this.hidePopover(),!i&&this.options.infobox||this.options.disable_animate_marker||this.animateMarker(t,1e3),i&&!this.options.trigger_infobox?this:(r=this.getMarkerContent(t))?((n=this.getMarkerEntityId(t))&&(a=this.container.find('.drts-entity[data-entity-id="'+n+'"]')).length&&(c=e(r),(s=a.find('.drts-map-marker-trigger[data-key="'+this.getMarkerKey(t)+'"]')).length&&c.find(".drts-map-marker-a
1ddress").length&&c.find(".drts-map-marker-address").text(s.text()),l='a.drts-entity-permalink[data-content-type="'+a.data("content-type")+'"]',(u=a.find(l)).length?c.find(l).text(u.text()).attr("href",u.attr("href")).attr("target",u.attr("target")||"").attr("rel",u.attr("rel")||"").attr("title",u.attr("title")||""):c.find(l).each(function(){e(this).replaceWith(e(this).text())}),r=c.prop("outerHTML")),(o=this.getMarkerPosition(t))?(this.getPopover(o,this.getMarkerHeight(t)||38,r),this):void 0):this}},{key:"animateMarker",value:function(e,t){}},{key:"drawMarkers",value:function(e){return this}},{key:"onResized",value:function(){return this}},{key:"getZoom",value:function(){}},{key:"getSouthWest",value:function(){}},{key:"getNorthEast",value:function(){}},{key:"getMarkerClusterer",value:function(){}},{key:"getPopover",value:function(t,i,r){var o=this;if(this.options.infobox){var n=this.container.find("span.drts-map-popover");if(n.length||(n=e('<span style="position:absolute;" class="drts-map-popover"></span>').prependTo(this.container.find(".drts-map-container"))),n.removeClass("drts-popover-processed"),t){var a=t.y;i&&(a-=i),n.css({left:t.x+"px",top:a+"px"})}r&&n.attr("data-bs-content",r);var s=bootstrap.Popover.getInstance(n.get(0));s&&s.dispose(),DRTS.popover(n,{html:!0,width:this.options.infobox_width||240,noPadding:!0,noHeader:!0,placement:"top",container:this.container,sanitize:!1,extraClass:"drts-map-marker-popover"+(this.options.infobox_detail_modal?" drts-map-marker-popover-clickable":""),trigger:"manual"}),n.on("hidden.bs.popover",function(){o.currentMarker=null});var l=this.container.find("."+DRTS.bsPrefix+"popover");return l.off("mouseenter.mapPopover").on("mouseenter.mapPopover",function(){o.cancelHidePopoverDelayed()}),l.off("mouseleave.mapPopover").on("mouseleave.mapPopover",function(){o.hidePopoverDelayed()}),l.off("click.mapPopover").on("click.mapPopover",function(t){var i=e(t.target).closest("a, button, [onclick]");if(i.length){if(!i.is("a")||!i.find("img").length)return;t.preventDefault()}if(o.currentMarker){var r=o.getMarkerDetailUrl(o.currentMarker);if(r){var n=DRTS.buildUrlWithParams(r,{view:o.options.view_name||""});DRTS.ajax({container:"#drts-modal",modalSize:"xl",modalTitle:o.getMarkerTitle(o.currentMarker),modalAppendButtons:!1,url:n}),e("#drts-modal").find("."+DRTS.bsPrefix+"modal-dialog").addClass(DRTS.bsPrefix+"modal-fullscreen-md-down").end().off("hidden.bs.modal.mapModalFullscreen").one("hidden.bs.modal.mapModalFullscreen",function(){e(this).find("."+DRTS.bsPrefix+"modal-dialog").removeClass(DRTS.bsPrefix+"modal-fullscreen-md-down")})}}}),n}}},{key:"hidePopover",value:function(){this.cancelHidePopoverDelayed();var e=this.container.find("span.drts-map-popover");if(e.length){var t=bootstrap.Popover.getInstance(e.get(0));if(t)try{t.hide()}catch(e){}}}},{key:"hidePopoverDelayed",value:function(e){var t=this;this.cancelHidePopoverDelayed(),this.hidePopoverTimeout=setTimeout(function(){t.hidePopoverTimeout=null,t.hidePopover()},void 0===e?200:e)}},{key:"cancelHidePopoverDelayed",value:function(){this.hidePopoverTimeout&&(clearTimeout(this.hidePopoverTimeout),this.hidePopoverTimeout=null)}},{key:"showMarkerDelayed",value:function(e,t){var i=this;this.cancelShowPopoverDelayed(),this.showPopoverTimeout=setTimeout(function(){i.showPopoverTimeout=null,i.clickMarker(e)},void 0===t?150:t)}},{key:"cancelShowPopoverDelayed",value:function(){this.showPopoverTimeout&&(clearTimeout(this.showPopoverTimeout),this.showPopoverTimeout=null)}},{key:"getBlurredLatLng",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.005;return{lat:e+(Math.random()-.5)*i,lng:t+(Math.random()-.5)*i}}},{key:"invalidateSize",value:function(){return this}}])}()}(jQuery);

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.