PageSourceSearch

https://www.distillerytrail.com/wp-content/plugins/directories-pro…/js/location-leaflet-map.min.js?ver=1.14.38

js distillerytrail.com collected 2026-10-02 11:06:52 UTC 7,996 bytes, 1 lines download raw bytes

1"use strict";var _createClass=function(){function t(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,r,o){return r&&t(e.prototype,r),o&&t(e,o),e}}(),_get=function t(e,r,o){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,r);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,r,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0};function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}!function(t){DRTS.Location=DRTS.Location||{},DRTS.Location.leaflet=DRTS.Location.leaflet||{},DRTS.Location.leaflet.map=function(e){function r(t,e){_classCallCheck(this,r);var o=_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,t,e)),i={zoomControl:!1,zoom:o.options.default_zoom,scrollWheelZoom:o.options.scrollwheel,center:L.latLng(o.options.default_location.lat,o.options.default_location.lng),layers:[L.tileLayer(o.options.use_custom_tile_url&&o.options.tile_url?o.options.tile_url:"//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{id:"osm",attribution:!(!o.options.add_attribution&&void 0!==o.options.add_attribution)&&(o.options.attribution||'&copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors')})],gestureHandling:!0};return o.map=L.map(o.$map.get(0),i),L.control.zoom({position:"bottomright"}).addTo(o.map),o.map.attributionControl.setPrefix("Leaflet"),o.currentCircle=null,o.markerCluster=null,o.options.marker_clusters&&(o.markerCluster=L.markerClusterGroup({spiderfyOnMaxZoom:!0,showCoverageOnHover:!1,zoomToBoundsOnClick:!0})),o.options.infobox&&o.map.on("resize movestart zoomstart",(function(t){o.getPopover().sabaiPopover("hide"),o.currentMarker=null})),o.map.on("click",(function(t){o.container.trigger("map_clicked.sabai",{map:o.map,latlng:[t.latlng.lat,t.latlng.wrap().lng]})})),o.map.on("zoomend",(function(t){o.container.trigger("map_zoom_changed.sabai",{map:o.map,zoom:o.map.getZoom()})})),o.map.on("dragend",(function(t){o.container.trigger("map_dragend.sabai",{map:o.map})})),o.map.on("mousedown",(function(t){o.container.trigger("map_mousedown.sabai",{map:o.map})})),o}return _inherits(r,DRTS.Map.map),_createClass(r,[{key:"clearMarkers",value:function(){for(var t in this.markers)this.markers.hasOwnProperty(t)&&this.map.removeLayer(this.markers[t]);return this.markerCluster&&this.markerCluster.clearLayers(),_get(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"clearMarkers",this).call(this)}},{key:"addMarker",value:function(e){if(!e.lat||!e.lng)return this;var r=void 0,o=void 0,i={riseOnHover:!0};return this.options.marker_custom&&(o=e.icon?DRTS.Location.leaflet.map.divIcon({html:e.icon.url?t("<img/>").attr("src",e.icon.url)[0].outerHTML:null,icon:e.icon.icon||this.options.marker_icon,icon_color:e.icon.icon_color||this.options.marker_icon_color,size:e.icon.size||this.options.marker_size,color:e.icon.color||this.options.marker_color||"#fff",full:!!e.icon.is_full}):DRTS.Location.leaflet.map.divIcon({icon:this.options.marker_icon||"",icon_color:this.options.marker_icon_color,size:this.options.marker_size,color:this.options.marker_color||"#fff"}),i.icon=o),(r=L.marker([e.lat,e.lng],i))._id=e.entity_id+"-"+e.index,r._content=e.content,r._entity_id=e.entity_id,r._key=e.index,this.markers[r._id]=r,this}},{key:"getMarkerLatlng",value:function(t){if(null==t){var e=Object.keys(this.markers)[0];t=this.markers[e]}var r=t.getLatLng();return[r.lat,r.lng]}},{key:"getMarkerContent",value:function(t){return t._content}},{key:"getMarkerPosition",value:function(t){return this.map.latLngToContainerPoint(t.getLatLng())}},{key:"getMarkerHeight",value:function(t){return t._marker_height}},{key:"getMarkerEntityId",value:function(t){return t._entity_id}},{key:"getMarkerKey",value:function(t){return t._key}},{key:"draw",value:function(e){var r=this;if(e=e||{},this.currentMarker=null,this.currentCircle&&this.currentCircle.remove(),Object.keys(this.markers).length>0){var o=void 0,i=[];for(var n in o=void 0===e.fit_bounds?this.options.fit_bounds:e.fit_bounds,Object.keys(this.markers).length<=1&&(o=!1),this.markers)if(this.markers.hasOwnProperty(n)){if(this.markerCluster||this.markers[n].addTo(this.map),o){var a=this.markers[n].getLatLng();i.push(a),e.center&&i.push([2*e.center[0]-a.lat,2*e.center[1]-a.lng])}this.markers[n].on(this.options.infobox_event,function(t,e){return function(r){t.clickMarker(e)}}(this,this.markers[n]))}if(this.markerCluster&&(this.markerCluster.addLayers(Object.values(this.markers)),this.map.addLayer(this.markerCluster)),o){var s=void 0===e.fit_bounds_padding?this.options.fit_bounds_padding:e.fit_bounds_padding;this.map.fitBounds(i,{padding:[s,s]})}else e.center||(this.options.center_default?e.center=[this.options.default_location.lat,this.options.default_location.lng]:e.center=this.markers[Object.keys(this.markers)[0]].getLatLng()),setTimeout((function(){r.map.invalidateSize()}),500)}
1return e.center&&(this.map.setView(e.center,e.zoom||this.options.default_zoom||10),e.circle&&(this.currentCircle=L.circle(e.center,e.circle.radius,{color:e.circle.stroke_color||"#99f",opacity:.8,weight:1,fill:!0,fillColor:e.circle.fill_color||"#99f",fillOpacity:.3}).addTo(this.map))),t(DRTS).trigger("map_drawn.sabai",{map:this}),this}},{key:"clickMarker",value:function(t,e){var r=this;if(this.currentMarker){if(this.currentMarker===t._id)return this.showMarkerContent(t,e),this.currentMarker=t._id,void(e||this.container.trigger("marker_click.sabai",{map:this,marker:t}));this.markers[this.currentMarker].setZIndexOffset(0)}return t.setZIndexOffset(2e3),e&&this.markerCluster&&(this.currentMarker&&(this.map.removeLayer(this.markers[this.currentMarker]),this.markerCluster.addLayer(this.markers[this.currentMarker])),this.markerCluster.removeLayer(t),t.addTo(this.map)),this.map.getBounds()&&!this.map.getBounds().contains(t.getLatLng())?(this.map.panTo(t.getLatLng(),{duration:.25}),setTimeout((function(){r.showMarkerContent(t)}),300)):this.showMarkerContent(t,e),this.currentMarker=t._id,e||this.container.trigger("marker_click.sabai",{map:this,marker:t}),this}},{key:"animateMarker",value:function(t){t.bounce({duration:800,height:50})}},{key:"onResized",value:function(){return this.map.invalidateSize(),this}},{key:"getZoom",value:function(){return this.map.getZoom()}},{key:"getSouthWest",value:function(){var t=this.map.getBounds();
1return[t.getSouthWest().lat,t.getSouthWest().lng]}},{key:"getNorthEast",value:function(){var t=this.map.getBounds();return[t.getNorthEast().lat,t.getNorthEast().lng]}}]),r}(),DRTS.Location.leaflet.map.divIcon=function(t){var e=document.createElement("div"),r="drts-map-marker";if(t.full)r+=" drts-map-marker-full",e.innerHTML=t.html;else{var o=t.size||39,i=document.createElement("div");t.color&&(e.style.backgroundColor=e.style.color=i.style.borderColor=t.color),e.style.width=o+"px",e.style.height=o+"px",e.style.marginTop="-"+(o*Math.sqrt(2)-DRTS.Map.markerHeight(o))+"px",t.html?i.innerHTML=t.html:t.icon?(i.innerHTML='<i class="'+t.icon+'"></i>',t.icon_color&&(i.style.backgroundColor=t.icon_color)):(i.style.boxShadow="none",t.icon_color&&(i.style.backgroundColor=t.icon_color)),e.appendChild(i)}return e.className=r,t.data&&(e.dataset=t.data),L.divIcon({html:e.outerHTML,iconSize:[0,0]})},DRTS.Map.api.getMap=function(t,e){return new DRTS.Location.leaflet.map(t,e)}}(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.