PageSourceSearch

https://pxdocs.com/wp-content/plugins/directories-pro/assets/js/map-api.min.js?ver=2.0.10

js pxdocs.com collected 2026-10-02 04:07:24 UTC 6,971 bytes, 1 lines download raw bytes

1"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_toPropertyKey(r.key),r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}!function(t){DRTS.Map=DRTS.Map||{},DRTS.Map.api={settings:{},getMap:function(t,e){}},DRTS.Map.markerHeight=function(t){var e=t*Math.sqrt(2);return e-(e-t)/2},DRTS.Map.enableDirections=function(e){var n=e.getContainer().find(".drts-map-directions");n.length&&(n.find(".drts-map-directions-input").val(""),DRTS.Location&&DRTS.Location.api&&DRTS.Location.api.autocomplete(".drts-map-directions-input",function(){}),n.find(".drts-map-directions-trigger").off("click").on("click",function(r){var i,o,a,s;r.preventDefault(),""!==(i=n.find(".drts-map-directions-destination").val())&&(o=e.getMarker(i))&&((a=e.getMarkerLatlng(o))?(s="https://www.google.com/maps/dir/?api=1&origin="+encodeURIComponent(n.find(".drts-map-directions-input").val())+"&destination="+encodeURIComponent(a.join(","))+"&travelmode="+encodeURIComponent(t(this).data("travel-mode")||"driving"),window.open().location.href=s):console.log("Invalid destination"))}))},DRTS.Map.map=function(){return _createClass(function t(e,n){_classCallCheck(this,t);var r=DRTS.container(e);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=n,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.$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 t=[];for(var e in this.markers)this.markers.hasOwnProperty(e)&&t.push(e);return t}},{key:"keepMarkers",value:function(t){var e={};for(var n in t){e[this.addMarker(t[n])]=!0}for(var r in this.markers)e.hasOwnProperty(r)||(this.removeMarker(this.markers[r]),delete this.markers[r]);return this}},{key:"setMarkers",value:function(t){for(var e in t)this.addMarker(t[e]);return this}},{key:"clearMarkers",value:function(){for(var t in this.markers)this.markers.hasOwnProperty(t)&&this.removeMarker(this.markers[t]);return this.markers={},this}},{key:"removeMarker",value:function(t){return this}},{key:"createMarker",value:function(t,e){}},{key:"addMarker",value:function(t){var e=t.entity_id+"-"+t.index;return this.markers.hasOwnProperty(e)||(this.markers[e]=this.createMarker(e,t)),e}},{key:"getMarker",value:function(t){if(!1!=t in this.markers)return this.markers[t]}},{key:"getMarkerLatlng",value:function(t){}}
1,{key:"getMarkerContent",value:function(t){}},{key:"getMarkerPosition",value:function(t){}},{key:"getMarkerHeight",value:function(t){}},{key:"getMarkerEntityId",value:function(t){}},{key:"getMarkerKey",value:function(t){}},{key:"clickMarker",value:function(t,e){return this}},{key:"showMarkerContent",value:function(e,n){var r,i,o,a,s,u,c,l;return this.hidePopover(),!n&&this.options.infobox||this.options.disable_animate_marker||this.animateMarker(e),n&&!this.options.trigger_infobox?this:(r=this.getMarkerContent(e))?((o=this.getMarkerEntityId(e))&&(a=this.container.find('.drts-entity[data-entity-id="'+o+'"]'),console.log(a.length,n),a.length&&(l=t(r),(s=a.find('.drts-map-marker-trigger[data-key="'+this.getMarkerKey(e)+'"]')).length&&l.find(".drts-map-marker-address").length&&l.find(".drts-map-marker-address").text(s.text()),u='a.drts-entity-permalink[data-content-type="'+a.data("content-type")+'"]',(c=a.find(u)).length?l.find(u).text(c.text()).attr("href",c.attr("href")).attr("target",c.attr("target")||"").attr("rel",c.attr("rel")||"").attr("title",c.attr("title")||""):l.find(u).each(function(){t(this).replaceWith(t(this).text())}),r=l.prop("outerHTML"))),(i=this.getMarkerPosition(e))?(this.getPopover(i,this.getMarkerHeight(e)||38,r),this):void 0):this}},{key:"animateMarker",value:function(t){}},{key:"drawMarkers",value:function(t){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(e,n,r){var i=this;if(this.options.infobox){var o=this.container.find("span.drts-map-popover");if(o.length||(o=t('<span style="position:absolute;" class="drts-map-popover"></span>').prependTo(this.container.find(".drts-map-container"))),o.removeClass("drts-popover-processed"),e){var a=e.y;n&&(a-=n),o.css({left:e.x+"px",top:a+"px"})}return r&&o.attr("data-bs-content",r),DRTS.popover(o,{html:!0,width:this.options.infobox_width||240,noPadding:!0,noHeader:!0,placement:"top",container:this.container,sanitize:!1}),o.on("hidden.bs.popover",function(){i.currentMarker=null}),o}}},{key:"hidePopover",value:function(){var t=this.container.find("span.drts-map-popover");t.length&&bootstrap.Popover.getInstance(t.get(0)).hide()}},{key:"getBlurredLatLng",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.005;return{lat:t+(Math.random()-.5)*n,lng:e+(Math.random()-.5)*n}}},{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.