1class FrontpageBoxFilter{constructor(){jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,i,r,n){return jQuery.easing[jQuery.easing.def](e,t,i,r,n)},easeInQuad:function(e,t,i,r,n){return r*(t/=n)*t+i},easeOutQuad:function(e,t,i,r,n){return-r*(t/=n)*(t-2)+i},easeInOutQuad:function(e,t,i,r,n){return(t/=n/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i}})}setup(){$(document).ready(function(){var c,e;$(".vrtx-listing-filter-custom").length&&(c=$("#vrtx-main-content .grid-container .vrtx-frontpage-box").filter(":not(.filter-always-visible)").filter(function(e){for(var t=this.className.split(/\s/),e=0,i=t.length;e<i;e++)if(/^checked\-/.test(t[e]))return!0}),$(".vrtx-listing-filter-custom").attr("role","group"),$(".vrtx-listing-filter-custom").each(function(){$(this).find("li a").attr({"aria-checked":"false",role:"checkbox"}),$(this).find("li").attr("role","presentation"),$(this).find("li.selected a").attr("aria-checked","true"),$(this).find("li.selected").removeClass("selected")}),e=UiO2.isPageLangEnglish?"Number of hits":"Antall treff",$(`<p class="vrtx-listing-filter-custom-status" role="status">${e}: <span class="vrtx-listing-filter-found">${c.filter(":visible").closest(".grid-container").length}</span></p>`).insertAfter($(".vrtx-listing-filter-custom")),$(document).on("click",".vrtx-listing-filter-custom a",function(e){for(var t=$(this),i=t.attr("id"),r=t.parent(),n=("checkAll"===i?(t.attr("aria-checked","true"),r.nextAll().each(function(){$(this).find("a").attr("aria-checked","false")})):("true"===t.attr("aria-checked")?t.attr("aria-checked","false"):t.attr("aria-checked","true"),r.parent().find("#checkAll").attr("aria-checked","false")),[]),a=r.parent().find("[aria-checked='true']"),s=0;s<a.length;s++){var l=a[s],i=$(l).attr("id");n.push(i)}if(0===n.length&&$("#checkAll").attr("aria-checked","true"),c.removeClass("visible"),1===n.length&&"checkAll"===n[0]||0===n.length)c.closest(".grid-container:not(:visible)").slideDown(200,"easeInOutQuad");else{for(s=0;s<n.length;s++){i=n[s];c.filter(".checked-"+i).closest(".grid-container:not(:visible)").slideDown(200,"easeInOutQuad"),c.filter(".checked-"+i).addClass("visible")}c.filter(":not(.visible)").closest(".grid-container:visible").slideUp(200,"easeInOutQuad")}setTimeout(function(){var e=c.filter(":visible").closest(".grid-container").length;$(".vrtx-listing-filter-found").text(e)},250),e.stopPropagation(),e.preventDefault()}))})}}export default new FrontpageBoxFilter;
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.