Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/media/plg_fields_acfosm/js/ |
var ACF_OSM_Map_Loader=function(){function e(){this.map_items=[],this.init()}var r=e.prototype;return r.init=function(){this.renderMaps()},r.renderMaps=function(){var n=this;!function(){if(window.IntersectionObserver){var r=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){var r=e.target.getAttribute("data-backend");r="1"==r,n.renderMap(e.target,r),t.unobserve(e.target)}})},{rootMargin:"0px 0px 0px 0px"});document.querySelectorAll(".nr-address-component.osm").forEach(function(e){r.observe(e)})}}()},r.renderMap=function(e,r){void 0===r&&(r=!1);var t=new ACF_OSM_Map(e);if(!r)return t.render(),t.addMarker(),void t.addMarkerPopup();if(this.map_items.push(t),t.render(),t.addMarker(),t.getGeocoderStatus()){if(t.addGeocoder(),"1"==e.getAttribute("data-disabled"))return;t.handleGeocoderEvent(),t.handleGeocoderAddressUpdate()}"1"!=e.getAttribute("data-disabled")&&(t.handleClearButton(),t.onMarkerDrag(),t.onMapClickUpdateMarker())},e}();window.addEventListener("load",function(){new ACF_OSM_Map_Loader});