1jQuery(function($){var searchTimeoutID,lazyLoaded,currentCallback;if(!window.WPGMZA) 2window.WPGMZA={};WPGMZA.MarkerLibraryDialog=function(element){var self=this;this.element=element;$(element).remodal();window.addEventListener("message",function(event){if(event.data.action!="download_marker") 3return;$.ajax({url:ajaxurl,type:"POST",data:{action:"wpgmza_upload_base64_image",security:wpgmza_legacy_map_edit_page_vars.ajax_nonce,data:event.data.data.replace(/^data:.+?base64,/,''),mimeType:"image/png"},success:function(data,status,xhr){var url=data.url;currentCallback(url);$(self.element).remodal().close()}})},!1)} 4WPGMZA.MarkerLibraryDialog.prototype.open=function(callback){currentCallback=callback;$(this.element).remodal().open();$("iframe#mappity").attr("src","https://www.mappity.org?wpgmza-embed=1")} 5WPGMZA.MarkerLibraryDialog.prototype.onSearch=function(){var string=this.searchInput.val().replace(/[-\\^$*+?.()|[\]{}]/g,'\\$&');var regexp=new RegExp(string,"i");$(this.element).find("img").each(function(index,img){var li=$(img).closest("li");var filename=$(img).attr("title").replace(/\.png$/,"");if(string.length&&!filename.match(regexp)) 6$(li).addClass("wpgmza-marker-library-no-result");else $(li).removeClass("wpgmza-marker-library-no-result")})} 7WPGMZA.MarkerLibraryDialog.prototype.onIconSelected=function(event){currentCallback(event.target.src);$(this.element).remodal().close()} 8$(document).ready(function(event){var el=$(".wpgmza-marker-library-dialog");if(!el.length) 9return;$(el).css('display','');WPGMZA.markerLibraryDialog=new WPGMZA.MarkerLibraryDialog(el);function bindButtonClickHandler(button){var target=$(button).closest(".wpgmza-marker-icon-picker").find(".wpgmza-marker-icon-url");var preview=$(button).closest(".wpgmza-marker-icon-picker").find("img, .wpgmza-marker-icon-preview");$(button).on("click",function(){WPGMZA.markerLibraryDialog.open(function(src){target.val(src);target.change();if(preview.prop("tagName").match(/img/)) 10preview.attr("src",src);else preview.css({"background-image":"url("+src+")"});if(!$(button).hasClass('wpgmza-marker-directions-library')) 11$("#wpgmza_cmm>img").attr("src",src);})})} 12$("input.wpgmza-marker-library, button.wpgmza-marker-library").each(function(index,el){bindButtonClickHandler(el)})})}) 13;
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.