Server IP : 192.64.112.168 / Your IP : 18.191.234.61 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/themes/woodmart/js/libs/ |
Upload File : |
!function(l,t,p,i){"use strict";var o,s,e;function n(t){this.VERSION="0.1.33",this.loaded=!1,this.markers=[],this.circles=[],this.oMap=!1,this.view_all_key="all",this.infowindow=null,this.maxZIndex=0,this.ln=0,this.oMap=!1,this.oBounds=null,this.map_div=null,this.canvas_map=null,this.controls_wrapper=null,this.current_control=null,this.current_index=null,this.Polyline=null,this.Polygon=null,this.Fusion=null,this.directionsService=null,this.directionsDisplay=null,this.o={debug:!1,map_div:"#gmap",controls_div:"#controls",generate_controls:!0,controls_type:"dropdown",controls_cssclass:"",controls_title:"",controls_on_map:!0,controls_applycss:!0,controls_position:p.maps.ControlPosition.RIGHT_TOP,type:"marker",view_all:!0,view_all_text:"View All",pan_on_click:!0,start:0,locations:[],shared:{},map_options:{mapTypeId:p.maps.MapTypeId.ROADMAP},stroke_options:{strokeColor:"#0000FF",strokeOpacity:.8,strokeWeight:2,fillColor:"#0000FF",fillOpacity:.4},directions_options:{travelMode:p.maps.TravelMode.DRIVING,unitSystem:p.maps.UnitSystem.METRIC,optimizeWaypoints:!1,provideRouteAlternatives:!1,avoidHighways:!1,avoidTolls:!1},circle_options:{radius:100,visible:!0},styles:{},fusion_options:{},directions_panel:null,draggable:!1,editable:!1,show_infowindows:!0,show_markers:!0,infowindow_type:"bubble",listeners:{},beforeViewAll:function(){},afterViewAll:function(){},beforeShow:function(t,o,i){},afterShow:function(t,o,i){},afterCreateMarker:function(t,o,i){},beforeCloseInfowindow:function(t,o){},afterCloseInfowindow:function(t,o){},beforeOpenInfowindow:function(t,o,i){},afterOpenInfowindow:function(t,o,i){},afterRoute:function(t,o,i){},onPolylineClick:function(t){},onPolygonClick:function(t){},circleRadiusChanged:function(t,o,i){},circleCenterChanged:function(t,o,i){},drag:function(t,o,i){},dragEnd:function(t,o,i){},dragStart:function(t,o,i){}},this.AddControl("dropdown",o),this.AddControl("list",s),t&&"directions"===t.type&&(t.show_markers||(t.show_markers=!1),t.show_infowindows||(t.show_infowindows=!1)),l.extend(!0,this.o,t)}o={activateCurrent:function(t){this.html_element.find("select").val(t)},getHtml:function(){var t,o,i=this,s="";if(1<this.ln){for(s+='<select class="dropdown controls '+this.o.controls_cssclass+'">',this.ShowOnMenu(this.view_all_key)&&(s+='<option value="'+this.view_all_key+'">'+this.o.view_all_text+"</option>"),o=0;o<this.ln;o+=1)this.ShowOnMenu(o)&&(s+='<option value="'+(o+1)+'">'+(this.o.locations[o].title||"#"+(o+1))+"</option>");s=l(s+="</select>").bind("change",function(){i.ViewOnMap(this.value)})}return t=this.o.controls_title,this.o.controls_title&&(t=l('<div class="controls_title"></div>').css(this.o.controls_applycss?{fontWeight:"bold",fontSize:this.o.controls_on_map?"12px":"inherit",padding:"3px 10px 5px 0"}:{}).append(this.o.controls_title)),this.html_element=l('<div class="wrap_controls"></div>').append(t).append(s),this.html_element}},s={html_a:function(t,o,i){var s=this,o=o||t+1,i=i||this.o.locations[t].title,o=l('<a data-load="'+o+'" id="ullist_a_'+o+'" href="#'+o+'" title="'+i+'"><span>'+(i||"#"+(t+1))+"</span></a>");return o.css(this.o.controls_applycss?{color:"#666",display:"block",padding:"5px",fontSize:this.o.controls_on_map?"12px":"inherit",textDecoration:"none"}:{}),o.on("click",function(t){t.preventDefault();t=l(this).attr("data-load");s.ViewOnMap(t)}),o},activateCurrent:function(t){this.html_element.find("li").removeClass("active"),this.html_element.find("#ullist_a_"+t).parent().addClass("active")},getHtml:function(){var t,o,i=l("<ul class='ullist controls "+this.o.controls_cssclass+"'></ul>").css(this.o.controls_applycss?{margin:0,padding:0,listStyleType:"none"}:{});for(this.ShowOnMenu(this.view_all_key)&&i.append(l("<li></li>").append(s.html_a.call(this,!1,this.view_all_key,this.o.view_all_text))),o=0;o<this.ln;o++)this.ShowOnMenu(o)&&i.append(l("<li></li>").append(s.html_a.call(this,o)));return t=this.o.controls_title,this.o.controls_title&&(t=l('<div class="controls_title"></div>').css(this.o.controls_applycss?{fontWeight:"bold",padding:"3px 10px 5px 0",fontSize:this.o.controls_on_map?"12px":"inherit"}:{}).append(this.o.controls_title)),this.html_element=l('<div class="wrap_controls"></div>').append(t).append(i),this.html_element}},n.prototype.controls={},n.prototype.create_objMap=function(){var t,o=0;for(t in this.o.styles)this.o.styles.hasOwnProperty(t)&&(0===o&&(this.o.map_options.mapTypeControlOptions={mapTypeIds:[p.maps.MapTypeId.ROADMAP]}),o++,this.o.map_options.mapTypeControlOptions.mapTypeIds.push("map_style_"+o));if(this.loaded)this.oMap.setOptions(this.o.map_options);else try{this.map_div.css({position:"relative",overflow:"hidden"}),this.canvas_map=l("<div>").addClass("canvas_map").css({width:"100%",height:"100%"}).appendTo(this.map_div),this.oMap=new p.maps.Map(this.canvas_map.get(0),this.o.map_options)}catch(t){this.debug("create_objMap::"+this.map_div.selector,t.toString())}for(t in o=0,this.o.styles)this.o.styles.hasOwnProperty(t)&&(o++,this.oMap.mapTypes.set("map_style_"+o,new p.maps.StyledMapType(this.o.styles[t],{name:t})),this.oMap.setMapTypeId("map_style_"+o))},n.prototype.add_markers_to_objMap=function(){var t,o,i=this.o.type||"marker";if("marker"===i)for(t=0;t<this.ln;t++)o=this.create_objPoint(t),this.create.marker.call(this,t,o);else this.create[i].apply(this)},n.prototype.create_objPoint=function(t){var t=l.extend({},this.o.locations[t]),o=t.visible===i?i:t.visible;return t.type||(t.type=this.o.type),t.map=this.oMap,t.position=new p.maps.LatLng(t.lat,t.lon),t.zIndex=t.zIndex===i?1e4:t.zIndex+100,t.visible=o===i?this.o.show_markers:o,this.o.maxZIndex=t.zIndex>this.maxZIndex?t.zIndex:this.maxZIndex,t.image&&(t.icon=new p.maps.MarkerImage(t.image,new p.maps.Size(t.image_w||32,t.image_h||32),new p.maps.Point(0,0),new p.maps.Point((t.image_w||32)/2,(t.image_h||32)/2))),t},n.prototype.create_objCircle=function(t){var o=l.extend({},t),i=l.extend({},this.o.stroke_options),s=l.extend({},this.o.circle_options);return l.extend(i,t.stroke_options||{}),l.extend(o,i),l.extend(s,t.circle_options||{}),l.extend(o,s),o.center=t.position,o.draggable=!1,o.zIndex=0<t.zIndex?t.zIndex-10:1,o},n.prototype.add_markerEv=function(o,i,s){var e=this;p.maps.event.addListener(s,"click",function(t){e.o.beforeShow(o,i,s),e.o.show_infowindows&&!1!==i.show_infowindow&&e.open_infowindow(o,s,t),e.o.pan_on_click&&!1!==i.pan_on_click&&(e.oMap.panTo(i.position),i.zoom)&&e.oMap.setZoom(i.zoom),e.current_control&&e.o.generate_controls&&e.current_control.activateCurrent&&e.current_control.activateCurrent.call(e,o+1),e.current_index=o,e.o.afterShow(o,i,s)}),i.draggable&&this.add_dragEv(o,i,s)},n.prototype.add_circleEv=function(t,o,i){var s=this;p.maps.event.addListener(i,"click",function(){s.ViewOnMap(t+1)}),p.maps.event.addListener(i,"center_changed",function(){s.o.circleCenterChanged(t,o,i)}),p.maps.event.addListener(i,"radius_changed",function(){s.o.circleRadiusChanged(t,o,i)}),o.draggable&&this.add_dragEv(t,o,i)},n.prototype.add_dragEv=function(a,r,l){var h=this;p.maps.event.addListener(l,"drag",function(t){var o,i;if(l.getPosition)o=l.getPosition();else{if(!l.getCenter)return;o=l.getCenter()}if(h.circles[a]&&h.circles[a].setCenter(o),h.Polyline?i="Polyline":h.Polygon&&(i="Polygon"),i){for(var s=h[i].getPath().getArray(),e=[],n=0;n<s.length;++n)e[n]=a===n?new p.maps.LatLng(o.lat(),o.lng()):new p.maps.LatLng(s[n].lat(),s[n].lng());h[i].setPath(new p.maps.MVCArray(e)),h.add_polyEv(i)}h.o.drag(a,r,l)}),p.maps.event.addListener(l,"dragend",function(){h.o.dragEnd(a,r,l)}),p.maps.event.addListener(l,"dragstart",function(){h.o.dragStart(a,r,l)}),p.maps.event.addListener(l,"center_changed",function(){h.markers[a]&&l.getCenter&&h.markers[a].setPosition(l.getCenter()),h.o.drag(a,r,l)})},n.prototype.add_polyEv=function(s){var e=this;p.maps.event.addListener(this[s].getPath(),"set_at",function(t,o){var i=e[s].getPath().getAt(t),i=new p.maps.LatLng(i.lat(),i.lng());e.markers[t]&&e.markers[t].setPosition(i),e.circles[t]&&e.circles[t].setCenter(i),e.o["on"+s+"Changed"](t,o,e[s].getPath().getArray())})},n.prototype.create={marker:function(t,o,i){var s;return"circle"!=o.type||i||(s=this.create_objCircle(o),o.visible||(s.draggable=o.draggable),i=new p.maps.Circle(s),this.add_circleEv(t,s,i),this.circles[t]=i),o.type="marker",i=new p.maps.Marker(o),this.add_markerEv(t,o,i),this.oBounds.extend(o.position),this.markers[t]=i,this.o.afterCreateMarker(t,o,i),i},circle:function(){for(var t,o,i,s=0;s<this.ln;s++)"circle"==(t=this.create_objPoint(s)).type&&(o=this.create_objCircle(t),t.visible||(o.draggable=t.draggable),i=new p.maps.Circle(o),this.add_circleEv(s,o,i),this.circles[s]=i),t.type="marker",this.create.marker.call(this,s,t,i)},polyline:function(){var t,o,i=l.extend({},this.o.stroke_options);for(i.path=[],i.draggable=this.o.draggable,i.editable=this.o.editable,i.map=this.oMap,i.zIndex=this.o.maxZIndex+100,t=0;t<this.ln;t++)o=this.create_objPoint(t),this.create.marker.call(this,t,o),i.path.push(o.position);this.Polyline?this.Polyline.setOptions(i):this.Polyline=new p.maps.Polyline(i),this.add_polyEv("Polyline")},polygon:function(){var t,o,i=this,s=l.extend({},this.o.stroke_options);for(s.path=[],s.draggable=this.o.draggable,s.editable=this.o.editable,s.map=this.oMap,s.zIndex=this.o.maxZIndex+100,t=0;t<this.ln;t++)o=this.create_objPoint(t),this.create.marker.call(this,t,o),s.path.push(o.position);this.Polygon?this.Polygon.setOptions(s):this.Polygon=new p.maps.Polygon(s),p.maps.event.addListener(this.Polygon,"click",function(t){i.o.onPolygonClick(t)}),this.add_polyEv("Polygon")},fusion:function(){this.o.fusion_options.styles=[this.o.stroke_options],this.o.fusion_options.map=this.oMap,this.Fusion?this.Fusion.setOptions(this.o.fusion_options):this.Fusion=new p.maps.FusionTablesLayer(this.o.fusion_options)},directions:function(){for(var t,o,i,s,e=this,n=[],a=0,r=0;r<this.ln;r++)t=this.create_objPoint(r),0===r?i=t.position:r===this.ln-1?s=t.position:(o=!0===this.o.locations[r].stopover,n.push({location:t.position,stopover:o})),this.create.marker.call(this,r,t);this.o.directions_options.origin=i,this.o.directions_options.destination=s,this.o.directions_options.waypoints=n,this.directionsService||(this.directionsService=new p.maps.DirectionsService),this.directionsDisplay?this.directionsDisplay.setOptions({draggable:this.o.draggable}):this.directionsDisplay=new p.maps.DirectionsRenderer({draggable:this.o.draggable}),this.directionsDisplay.setMap(this.oMap),this.o.directions_panel&&(this.o.directions_panel=l(this.o.directions_panel),this.directionsDisplay.setPanel(this.o.directions_panel.get(0))),this.o.draggable&&p.maps.event.addListener(this.directionsDisplay,"directions_changed",function(){a=e.compute_distance(e.directionsDisplay.directions),e.o.afterRoute(a)}),this.directionsService.route(this.o.directions_options,function(t,o){o===p.maps.DirectionsStatus.OK&&(a=e.compute_distance(t),e.directionsDisplay.setDirections(t)),e.o.afterRoute(a,o,t)})}},n.prototype.compute_distance=function(t){for(var o=0,i=t.routes[0],s=i.legs.length,e=0;e<s;e++)o+=i.legs[e].distance.value;return o},n.prototype.type_to_open={bubble:function(t){this.infowindow=new p.maps.InfoWindow({content:t.html||""})}},n.prototype.open_infowindow=function(t,o,i){this.CloseInfoWindow();var s=this.o.locations[t],e=this.o.infowindow_type;s.html&&this.type_to_open[e]&&(this.o.beforeOpenInfowindow(t,s,o),this.type_to_open[e].call(this,s),this.infowindow.open(this.oMap,o),this.o.afterOpenInfowindow(t,s,o))},n.prototype.get_html_controls=function(){return this.controls[this.o.controls_type]&&this.controls[this.o.controls_type].getHtml?(this.current_control=this.controls[this.o.controls_type],this.current_control.getHtml.apply(this)):""},n.prototype.generate_controls=function(){var t,o;this.o.controls_on_map?(t=l('<div class="on_gmap '+this.o.controls_type+' gmap_controls"></div>').css(this.o.controls_applycss?{margin:"5px"}:{}),o=l(this.get_html_controls()).css(this.o.controls_applycss?{background:"#fff",padding:"5px",border:"1px solid rgb(113,123,135)",boxShadow:"rgba(0, 0, 0, 0.4) 0px 2px 4px",maxHeight:this.map_div.find(".canvas_map").outerHeight()-80,minWidth:100,overflowY:"auto",overflowX:"hidden"}:{}),t.append(o),this.oMap.controls[this.o.controls_position].push(t.get(0))):(this.controls_wrapper.empty(),this.controls_wrapper.append(this.get_html_controls()))},n.prototype.init_map=function(){var i=this;this.Polyline&&this.Polyline.setMap(null),this.Polygon&&this.Polygon.setMap(null),this.Fusion&&this.Fusion.setMap(null),this.directionsDisplay&&this.directionsDisplay.setMap(null);for(var t=this.markers.length-1;0<=t;--t)try{this.markers[t]&&this.markers[t].setMap(null)}catch(t){i.debug("init_map::markers::setMap",t.stack)}this.markers.length=0,this.markers=[];for(t=this.circles.length-1;0<=t;--t)try{this.circles[t]&&this.circles[t].setMap(null)}catch(t){i.debug("init_map::circles::setMap",t.stack)}this.circles.length=0,this.circles=[],this.o.controls_on_map&&this.oMap.controls&&this.oMap.controls[this.o.controls_position].forEach(function(t,o){try{i.oMap.controls[this.o.controls_position].removeAt(o)}catch(t){i.debug("init_map::removeAt",t.stack)}}),this.oBounds=new p.maps.LatLngBounds},n.prototype.perform_load=function(){1===this.ln?(this.o.map_options.set_center?this.oMap.setCenter(new p.maps.LatLng(this.o.map_options.set_center[0],this.o.map_options.set_center[1])):(this.oMap.fitBounds(this.oBounds),this.ViewOnMap(1)),this.o.map_options.zoom&&this.oMap.setZoom(this.o.map_options.zoom)):0===this.ln?(this.o.map_options.set_center?this.oMap.setCenter(new p.maps.LatLng(this.o.map_options.set_center[0],this.o.map_options.set_center[1])):this.oMap.fitBounds(this.oBounds),this.oMap.setZoom(this.o.map_options.zoom||1)):(this.oMap.fitBounds(this.oBounds),"number"==typeof+this.o.start&&0<this.o.start&&this.o.start<=this.ln?this.ViewOnMap(this.o.start):this.o.map_options.set_center?this.oMap.setCenter(new p.maps.LatLng(this.o.map_options.set_center[0],this.o.map_options.set_center[1])):this.ViewOnMap(this.view_all_key),this.o.map_options.zoom&&this.oMap.setZoom(this.o.map_options.zoom))},n.prototype.debug=function(t,o){return this.o.debug&&console.log(t,o),this},n.prototype.AddControl=function(t,o){return t&&o?(this.controls[t]=o,this):(self.debug("AddControl",'Missing "name" and "func" callback.'),!1)},n.prototype.CloseInfoWindow=function(){return this.infowindow&&(this.current_index||0===this.current_index)&&(this.o.beforeCloseInfowindow(this.current_index,this.o.locations[this.current_index]),this.infowindow.close(),this.infowindow=null,this.o.afterCloseInfowindow(this.current_index,this.o.locations[this.current_index])),this},n.prototype.ShowOnMenu=function(t){if(t===this.view_all_key&&this.o.view_all&&1<this.ln)return!0;if("number"==typeof+(t=parseInt(t,10))&&0<=t&&t<this.ln&&!1!==this.o.locations[t].on_menu)return!0;return!1},n.prototype.ViewOnMap=function(t){if(t===this.view_all_key)this.o.beforeViewAll(),this.current_index=t,0<this.o.locations.length&&this.o.generate_controls&&this.current_control&&this.current_control.activateCurrent&&this.current_control.activateCurrent.apply(this,[t]),this.oMap.fitBounds(this.oBounds),this.CloseInfoWindow(),this.o.afterViewAll();else if("number"==typeof+(t=parseInt(t,10))&&0<t&&t<=this.ln)try{p.maps.event.trigger(this.markers[t-1],"click")}catch(t){this.debug("ViewOnMap::trigger",t.stack)}return this},n.prototype.SetLocations=function(t,o){return this.o.locations=t,o&&this.Load(),this},n.prototype.AddLocations=function(t,o){var i=this;return Array.isArray(t)&&l.each(t,function(t,o){i.o.locations.push(o)}),l.isPlainObject(t)&&this.o.locations.push(t),o&&this.Load(),this},n.prototype.AddLocation=function(t,o,i){return l.isPlainObject(t)&&this.o.locations.splice(o,0,t),i&&this.Load(),this},n.prototype.RemoveLocations=function(t,o){var i=this,s=0;return Array.isArray(t)?l.each(t,function(t,o){o-s<i.ln&&i.o.locations.splice(o-s,1),s++}):t<this.ln&&this.o.locations.splice(t,1),o&&this.Load(),this},n.prototype.Loaded=function(){return this.loaded},n.prototype._init=function(){this.ln=this.o.locations.length;for(var t=0;t<this.ln;t++){var o=l.extend({},this.o.shared);this.o.locations[t]=l.extend(o,this.o.locations[t]),this.o.locations[t].html&&(this.o.locations[t].html=this.o.locations[t].html.replace("%index",t+1),this.o.locations[t].html=this.o.locations[t].html.replace("%title",this.o.locations[t].title||""))}return this.map_div=l(this.o.map_div),this.controls_wrapper=l(this.o.controls_div),this},n.prototype.Load=function(t){l.extend(!0,this.o,t),t&&t.locations&&(this.o.locations=t.locations),this._init(),!1===this.o.visualRefresh?p.maps.visualRefresh=!1:p.maps.visualRefresh=!0,this.init_map(),this.create_objMap(),this.add_markers_to_objMap(),1<this.ln&&this.o.generate_controls||this.o.force_generate_controls?(this.o.generate_controls=!0,this.generate_controls()):this.o.generate_controls=!1;var o,i=this;if(this.loaded)this.perform_load();else for(o in p.maps.event.addListenerOnce(this.oMap,"idle",function(){i.perform_load()}),p.maps.event.addListener(this.oMap,"resize",function(){i.canvas_map.css({width:i.map_div.width(),height:i.map_div.height()})}),this.o.listeners){var s=this.oMap,e=this.o.listeners[o];this.o.listeners.hasOwnProperty(o)&&p.maps.event.addListener(this.oMap,o,function(t){e(s,t)})}return this.loaded=!0,this},e=n,"function"==typeof define&&define.amd?define(function(){return e}):t.Maplace=e}(jQuery,this,google);