1var $=jQuery.noConflict();function post_filter_data(e,t,i,a,l,s,o,r,n,c,p,f,u,g,m,d,h,_){console.log("fetch results.."),$.ajax({type:"POST",dataType:"json",url:filter_obj.ajax_url,data:{action:"fetch_post_list",pager:e,posts_per_page:t,search_text:i,capability_areas:l,lg_capability_areas_select:s,focus_areas:o,lg_focus_areas_select:r,topics:n,lg_topics_select:c,asset_types:p,lg_asset_types_select:f,award_types:u,lg_award_types_select:g,select_post_type_option:h,select_post_type:m,select_multi_post_type:_,page_id:d,sort_value:a},beforeSend:function(){var e=$(".filter-cell-right").outerHeight();$(".filter-cell-right").css("min-height",e+"px"),$(".post-ajax-filter form.listing-filter-form .filter-load-more").show(),$(".post-ajax-filter form.listing-filter-form .lg-grid-main-row").hide()},success:function(e){var t=$(".cat-filter:checked").length;console.log(t),0!=t?$(".post-reset-btn").show(500):$(".post-reset-btn").hide(500),$(".post-ajax-filter form.listing-filter-form .filter-load-more").hide(),$(".post-ajax-filter form.listing-filter-form .lg-grid-main-row").html(e.data).hide().show(),$(".post-ajax-filter form.listing-filter-form").length&&($("html, body").animate({scrollTop:$(".post-ajax-filter form.listing-filter-form").position().top-160},1e3,(function(){setTimeout((function(){console.log("Animation complete."),$(".filter-cell-right").css("min-height","auto")}),500)})),equalizeHeights(),$(window).on("resize",equalizeHeights)),e.total_pages&&$('.post-ajax-filter form.listing-filter-form input[name="max_pages"]').val(e.total_pages),e.pager&&$(".post-ajax-filter form.listing-filter-form #pager").val(e.pager),e.showing&&$(".post-ajax-filter form.listing-filter-form .showing-result").text(e.showing);var i=$('.post-ajax-filter form.listing-filter-form input[name="current_page_url"]').val();$(".pagination a.page-numbers:not(.prev,.next)").each((function(){var e=parseInt($(this).text());$(this).attr("href",i+"?pager="+e)})),$(".pagination a.page-numbers.prev:not(.disabled)").each((function(){var t=e.pager-1;$(this).attr("href",i+"?pager="+t)})),$(".pagination a.page-numbers.next:not(.disabled)").each((function(){var t=parseInt(e.pager,10)+1;$(this).attr("href",i+"?pager="+t)}))},error:function(e){console.log("AJAX error:",e)}})}function modify_post_filter_url(e,t,i,a,l,s,o,r){var n="",c=$('.post-ajax-filter form.listing-filter-form input[name="current_page_url"]').val();console.log(c),n+="pager="+e,""!=a&&void 0!==a&&(n+="&capability_areas="+a),""!=l&&void 0!==l&&(n+="&focus_areas="+l),""!=s&&void 0!==s&&(n+="&topics="+s),""!=o&&void 0!==o&&(n+="&asset_types="+o),""!=r&&void 0!==r&&(n+="&award_types="+r),""!=t&&void 0!==t&&(n+="&search_text="+t),""!=i&&void 0!==i&&(n+="&filter_order="+i);var p=c.includes("?")?"&":"?",f=c+""+p+n;history.pushState(null,null,f)}function equalizeHeights(){$(".post-listing-grid .filter-box").each((function(){let e=[],t=0;$(this).find(".filter-cell").each((function(i){let a=$(this).find(".filter-publications-oldest");a.css("height","auto"),e.push(a),t=Math.max(t,a.outerHeight()),(i+1)%3!=0&&i!==$(this).siblings().length||(e.forEach((e=>e.height(t))),e=[],t=0)}))}))}document.addEventListener("DOMContentLoaded",(()=>{function e(){equalizeHeights()}function t(){var e=$(window).width();$(".post-listing-grid .filter-group").each((function(t){e>991&&0===t?$(this).addClass("open").find(".filter-dropdown").show():$(this).removeClass("open").find(".filter-dropdown").hide()}))}e(),t(),$(window).on("resize orientationchange",(function(){e(),t()}));var i=!1;$(window).on("touchstart",(function(){i=!1})),$(window).on("touchmove",(function(){i=!0})),$(window).on("scroll",(function(){})),$(".post-listing-grid .filter-group .filter-group-title").on("click touchend",(function(e){if(e.preventDefault(),i)i=!1;else{var t=$(this).closest(".filter-group");t.hasClass("open")?t.removeClass("open").find(".filter-dropdown").slideUp(300):($(".post-listing-grid .filter-group").removeClass("open").find(".filter-dropdown").slideUp(300),t.addClass("open").find(".filter-dropdown").slideDown(300))}})),$(".post-ajax-filter form.listing-filter-form").on("submit",(function(e){e.preventDefault();var t=[],i=[],a=[],l=[],s=[];$(".lg-filter-selected-list").empty(),$('.post-ajax-filter form.listing-filter-form input[name="capability_areas"]:checked').each((function(){t.push($(this).val());
1var e=$(this).closest("li").find("label").data("label");$(".lg-filter-selected-list").append('<button class="lg-selected capability_areas-selected" data-slug="capability_areas_'+$(this).val()+'"><em class="close-icon"></em>'+e+"</button>")})),$('.post-ajax-filter form.listing-filter-form input[name="focus_areas"]:checked').each((function(){i.push($(this).val());var e=$(this).closest("li").find("label").data("label");$(".lg-filter-selected-list").append('<button class="lg-selected focus_areas-selected" data-slug="focus_areas_'+$(this).val()+'"><em class="close-icon"></em>'+e+"</button>")})),$('.post-ajax-filter form.listing-filter-form input[name="topics"]:checked').each((function(){a.push($(this).val());var e=$(this).closest("li").find("label").data("label");$(".lg-filter-selected-list").append('<button class="lg-selected topics-selected" data-slug="topics_'+$(this).val()+'"><em class="close-icon"></em>'+e+"</button>")})),$('.post-ajax-filter form.listing-filter-form input[name="asset_types"]:checked').each((function(){l.push($(this).val());var e=$(this).closest("li").find("label").data("label");$(".lg-filter-selected-list").append('<button class="lg-selected asset_types-selected" data-slug="asset_types_'+$(this).val()+'"><em class="close-icon"></em>'+e+"</button>")})),$('.post-ajax-filter form.listing-filter-form input[name="award_types"]:checked').each((function(){s.push($(this).val());var e=$(this).closest("li").find("label").data("label");$(".lg-filter-selected-list").append('<button class="lg-selected award_types-selected" data-slug="award_types_'+$(this).val()+'"><em class="close-icon"></em>'+e+"</button>")}));const o=$(".post-ajax-filter form.listing-filter-form #pager").val();posts_per_page=$('.post-ajax-filter form.listing-filter-form input[name="posts_per_page"]').val();const r=$(".post-ajax-filter form.listing-filter-form #plg_select_post_type_option").val(),n=$(".post-ajax-filter form.listing-filter-form #plg_select_post_type").val(),c=$(".post-ajax-filter form.listing-filter-form #plg_select_multi_post_type").val();search_text=$('.post-ajax-filter form.listing-filter-form input[name="search_text"]').val();const p=$(".post-ajax-filter form.listing-filter-form #page_id").val();sort_value=$('.post-ajax-filter form.listing-filter-form input[name="filter_order"]:checked').val(),lg_capability_areas_select=$('.post-ajax-filter form.listing-filter-form input[name="plg_pre_filter_by_capability_areas"]').val(),lg_focus_areas_select=$('.post-ajax-filter form.listing-filter-form input[name="plg_pre_filter_by_missionfocus_areas"]').val(),lg_topics_select=$('.post-ajax-filter form.listing-filter-form input[name="plg_pre_filter_by_topic"]').val(),lg_asset_types_select=$('.post-ajax-filter form.listing-filter-form input[name="plg_pre_filter_by_asset_type"]').val(),lg_award_types_select=$('.post-ajax-filter form.listing-filter-form input[name="plg_pre_filter_by_award_type"]').val();t=$('.post-ajax-filter form.listing-filter-form input[name="capability_areas"]:checked').map((function(){return this.value})).get().join(","),i=$('.post-ajax-filter form.listing-filter-form input[name="focus_areas"]:checked').map((function(){return this.value})).get().join(","),a=$('.post-ajax-filter form.listing-filter-form input[name="topics"]:checked').map((function(){return this.value})).get().join(","),l=$('.post-ajax-filter form.listing-filter-form input[name="asset_types"]:checked').map((function(){return this.value})).get().join(","),s=$('.post-ajax-filter form.listing-filter-form input[name="award_types"]:checked').map((function(){return this.value})).get().join(",");modify_post_filter_url(o,search_text,sort_value,t,i,a,l,s),post_filter_data(o,posts_per_page,search_text,sort_value,t,lg_capability_areas_select,i,lg_focus_areas_select,a,lg_topics_select,l,lg_asset_types_select,s,lg_award_types_select,n,p,r,c)}))})),window.onresize=()=>{$(window).width()<=991&&($(".post-listing-grid .filter-group").removeClass("open"),$(".post-listing-grid .filter-group .filter-dropdown").hide()),$(".post-listing-grid .filter-group .filter-group-title").on("click",(function(e){e.stopPropagation();var t=$(this).closest(".filter-group");t.toggleClass("open"),t.find(".filter-dropdown").stop().slideToggle()}))},$(document).on("change keydown",".post-ajax-filter form.listing-filter-form .search-text",(function(e){$(".post-ajax-filter form.listing-filter-form #pager").val(1)})),$(document).on("click",".post-ajax-filter form.listing-filter-form .icon-search",(function(e){e.preventDefault(),$(".post-ajax-filter form.listing-filter-form #pager").val(1),$(".post-ajax-filter form.listing-filter-form").submit()})),$(document).on("click",".lg-filter-selected-list .lg-selected",(function(){var e=$
1(this).data("slug");$("#"+e).prop("checked",!1),$(this).remove(),$(".post-ajax-filter form.listing-filter-form #pager").val(1),$(".listing-filter-form").submit()})),$(document).ready((function(e){e(document).on("click",".post-listing-grid .filter-search .close",(function(){console.log("clear the search field by close icon."),e(".post-ajax-filter form.listing-filter-form #pager").val(1),e(".listing-filter-form").submit()})),e("#capability-area-all").on("change",(function(){e(this).is(":checked")?e('input[name="capability_areas"]').prop("checked",!0):e('input[name="capability_areas"]').prop("checked",!1),e(".listing-filter-form").submit()})),e('input[name="capability_areas"]').on("change",(function(){const t=e('input[name="capability_areas"]:checked').length===e('input[name="capability_areas"]').length;e("#capability-area-all").prop("checked",t)})),e(document).on("click",".capability_areas-selected",(function(){e("#capability-area-all").prop("checked",!1)}));var t=e('input[name="capability_areas"]').length===e('input[name="capability_areas"]:checked').length;e("#capability-area-all").prop("checked",t),e("#focus-area-all").on("change",(function(){e(this).is(":checked")?e('input[name="focus_areas"]').prop("checked",!0):e('input[name="focus_areas"]').prop("checked",!1),e(".listing-filter-form").submit()})),e('input[name="focus_areas"]').on("change",(function(){const t=e('input[name="focus_areas"]:checked').length===e('input[name="focus_areas"]').length;e("#focus-area-all").prop("checked",t)})),e(document).on("click",".focus_areas-selected",(function(){e("#focus-area-all").prop("checked",!1)}));t=e('input[name="focus_areas"]').length===e('input[name="focus_areas"]:checked').length;e("#focus-area-all").prop("checked",t),e("#topic-all").on("change",(function(){e(this).is(":checked")?e('input[name="topics"]').prop("checked",!0):e('input[name="topics"]').prop("checked",!1),e(".listing-filter-form").submit()})),e('input[name="topics"]').on("change",(function(){const t=e('input[name="topics"]:checked').length===e('input[name="topics"]').length;e("#topic-all").prop("checked",t)})),e(document).on("click",".topics-selected",(function(){e("#topic-all").prop("checked",!1)}));t=e('input[name="topics"]').length===e('input[name="topics"]:checked').length;e("#topic-all").prop("checked",t),e("#asset-type-all").on("change",(function(){e(this).is(":checked")?e('input[name="asset_types"]').prop("checked",!0):e('input[name="asset_types"]').prop("checked",!1),e(".listing-filter-form").submit()})),e('input[name="asset_types"]').on("change",(function(){const t=e('input[name="asset_types"]:checked').length===e('input[name="asset_types"]').length;e("#asset-type-all").prop("checked",t)})),e(document).on("click",".asset_types-selected",(function(){e("#asset-type-all").prop("checked",!1)}));t=e('input[name="asset_types"]').length===e('input[name="asset_types"]:checked').length;e("#asset-type-all").prop("checked",t),e("#award-type-all").on("change",(function(){e(this).is(":checked")?e('input[name="award_types"]').prop("checked",!0):e('input[name="award_types"]').prop("checked",!1),e(".listing-filter-form").submit()})),e('input[name="award_types"]').on("change",(function(){const t=e('input[name="award_types"]:checked').length===e('input[name="award_types"]').length;e("#award-type-all").prop("checked",t)})),e(document).on("click",".award_types-selected",(function(){e("#award-type-all").prop("checked",!1)}));t=e('input[name="award_types"]').length===e('input[name="award_types"]:checked').length;e("#award-type-all").prop("checked",t)})),$(".post-ajax-filter form.listing-filter-form .cat-filter, .post-ajax-filter form.listing-filter-form .filter-order").change((function(){$(".post-ajax-filter form.listing-filter-form #pager").val(1),$(".post-ajax-filter form.listing-filter-form").submit()})),$(".post-reset-btn").click((function(e){e.preventDefault(),$(".post-ajax-filter form.listing-filter-form #pager").val(1),$('.post-ajax-filter input[value="most-recent"]').prop("checked",!0),$('.post-ajax-filter input[type="checkbox"]').prop("checked",!1),$(".post-ajax-filter form.listing-filter-form #pager").val(1),$(".post-ajax-filter form.listing-filter-form").submit()}));
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.