1function SuggestController(){this.init=function(){jQuery("form[data-suggest]").each(function(){var e=$(this),t=e.find(".tx-solr-suggest");0===t.length&&(t=e),t.css("position","relative"),e.on("submit",function(t){""===e.find(".tx-solr-suggest").val()&&(t.preventDefault(),e.find(".tx-solr-suggest").focus())});const a=getComputedStyle(t[0]).getPropertyValue("--zindex-search-autosuggest");e.find(".tx-solr-suggest").devbridgeAutocomplete({serviceUrl:e.data("suggest"),dataType:"json",paramName:"tx_solr[queryString]",groupBy:"category",maxHeight:1e3,zIndex:a,autoSelectFirst:!1,triggerSelectOnValidInput:!1,width:"flex",onSelect:function(t){t.data.link?0===t.data.link.indexOf("https://www.youtube.com")?openVideoOverlay(t.data.link):location.href=t.data.link:e.trigger("submit")},transformResult:function(t){if(!t.suggestions)return{suggestions:[]};var a,r={suggestions:$.map(t.suggestions,function(e,t){return a||(a=t),{value:t,data:{category:"suggestion",count:e}}})};return $.each(t.documents,function(t,s){var o=s,i=e.data("suggest-header")?e.data("suggest-header"):"Top results";o.category=i,o.group&&(o.category=e.data("suggest-header-"+o.group)?e.data("suggest-header-"+o.group):o.group),r.suggestions.push({value:a,data:o})}),r},beforeRender:function(e){e.find(".autocomplete-group:first").remove(),e.addClass("tx-solr-autosuggest");var a=function(e){var t=e.outerWidth();if(e.hasClass("tx-solr-suggest--full-width"))var a=1;else a=.66;return t*=a,t-Math.max(parseInt(e.css("border-bottom-left-radius"))||0,parseInt(e.css("-moz-border-radius-bottomleft"))||0,parseInt(e.css("-webkit-border-bottom-left-radius"))||0)}(t);a>0&&e.css("width",a),t.parent().addClass("autocomplete-active").fadeIn()},formatResult:function(e,t){if(!t)return e.value;var a="("+$.Autocomplete.utils.escapeRegExChars(t.trim())+")";if("suggestion"===e.data.category)return e.value.replace(new RegExp(a,"gi"),"<strong>$1</strong>").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>");var r=e.data.title.replace(new RegExp(a,"gi"),"<em>$1</em>").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/<(\/?em)>/g,"<$1>");return'<div class="'+e.data.type+'">'+(e.data.previewImage?"<figure "+(e.data.hasVideo?'class="hasVideo"':"")+'><img src="'+e.data.previewImage+'" /></figure>':"")+'<a href="'+e.data.link+'" class="internal-link">'+r+"</a></div>"}}).on("blur",function(){t.parent().removeClass("autocomplete-active");var e=$(this);setTimeout(function(){e.devbridgeAutocomplete("hide")},200)})})}}jQuery(document).ready(function(){var e=new SuggestController;e.init(),jQuery("body").on("tx_solr_updated",function(){e.init()}),document.addEventListener("acolayout:stickyheader:is-active",e.init),document.addEventListener("acolayout:stickyheader:is-inactive",e.init)});
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.