1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[9949],{4521(e,t,i){i.d(t,{default:()=>a});const s={initialize:function(e){const t={filterParentSelect:$(e).find('[data-cmp-hook-filter="filter1"]'),filterChildSelect:$(e).find('[data-cmp-hook-filter="filter2"]')};e.removeAttribute("data-cmp-is");const i=JSON.parse(e.getAttribute("data-filter-json")),s=t.filterParentSelect[0];for(let e in i){const t=document.createElement("option"),l=document.createTextNode(i[e].title);t.setAttribute("data-tagkey",e),t.setAttribute("value",i[e].title),t.appendChild(l),s.appendChild(t)}s&&s.addEventListener("change",(function(){const e=s.options[s.selectedIndex].dataset.tagkey,l=t.filterChildSelect[0],n=l.querySelectorAll("option");for(const e of n)""!==e.value&&l.removeChild(e);const a=i[e].children;for(let e in a)if(a.hasOwnProperty(e)){const t=document.createElement("option"),i=document.createTextNode(a[e]);t.setAttribute("value",a[e]),t.appendChild(i),l.appendChild(t)}}))},init:function(e){$(e).find(".cmp-filter").each(((e,t)=>{this.initialize(t)}))}};var l=i(7604);const n={applyFilter:e=>{const t=$(".filter--fields--section."+e+" select").map((function(){const e=$(this).val();return{key:$(this).attr("data-name"),value:e.replace(/^\s+|\s+$/g,"")}})).get();if(t&&t.length>0){const e=new CustomEvent("build",{detail:t});window.dispatchEvent(e)}if(window.matchMedia("(max-width: 767px)").matches){const t=$(".filter--fields--section.modal."+e),i=$('.btn--show--filters[data-modal-id="'+e+'"]');t.parents().hasClass("hide-modal")||n.closeFiltersModal(e),i[0].focus()}},closeFiltersModal:e=>{const t=$(".filter--fields--section.modal."+e),i=$('.btn--show--filters[data-modal-id="'+e+'"]'),s=$(".aem-GridColumn, .header, .skip__link"),l=$(t).parents(".results.aem-GridColumn, .asset-list.aem-GridColumn");$(".main--content").removeClass("visibility--hidden"),s.removeClass("block--hidden"),l.removeClass("visibility--hidden"),t.removeClass("visibility--visible").removeAttr("aria-modal role"),t.fadeOut(500,(()=>{t.removeAttr("style"),i[0].focus()}))},showFiltersModal:e=>{const t=$(".filter--fields--section.modal."+e),i=$(".aem-GridColumn, .header, .skip__link"),s=$(t).parents(".results.aem-GridColumn, .filterset.aem-GridColumn, .asset-list.aem-GridColumn");$(".main--content").addClass("visibility--hidden"),i.addClass("block--hidden"),s.removeClass("block--hidden"),$(t).parents(".results.aem-GridColumn, .asset-list.aem-GridColumn").addClass("visibility--hidden"),t.addClass("visibility--visible").attr({"aria-modal":"true",role:"dialog"}),t.fadeIn(500),n.trapFocus(t[0]),t.on("keydown",(t=>{"Escape"===t.key&&n.closeFiltersModal(e)}))},trapFocus:e=>{if(void 0!==e){let t=(0,l.c)(e);const i=t[0],s=t[t.length-1];i.focus(),e.addEventListener("keydown",(function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===i&&(e.preventDefault(),s.focus()):document.activeElement===s&&(e.preventDefault(),i.focus()))}))}},setFilterModal(){const e=$(".btn--show--filters"),t=$(".btn--close--filters"),i=$(".apply--filter"),s=$('.enterprise-filter input[type="checkbox"]'),l=$(".enterprise-filter .sort--section select");e.on("click",(e=>{e.preventDefault(),this.showFiltersModal($(e.currentTarget).attr("data-modal-id"))})),t.on("click",(e=>{e.preventDefault(),this.closeFiltersModal($(e.currentTarget).attr("data-modal-id"))})),i.on("click",(e=>{e.preventDefault();const t=$(e.currentTarget).closest(".modal").find(".btn--close--filters")[0].getAttribute("data-modal-id");this.applyFilter(t)})),s.on("change",(e=>this.toggleHandler(e.currentTarget))),l.on("change",(e=>this.sortHandler(e.currentTarget)))},selectDropdown(){$(".asset-list .enterprise-filter select").on("change",(function(){var e=$
1(this).val(),t=$(this).attr("id");localStorage.setItem(t,e)}))},toggleHandler(e){let t={isPressRelease:!1};$(e).is(":checked")&&(t.isPressRelease=!0);const i=new CustomEvent("pressreleaseevnt",{detail:t});window.dispatchEvent(i)},sortHandler(e){const t=new CustomEvent("sortevnt",{detail:$(e).val()});window.dispatchEvent(t)},init:function(){const e=$(".enterprise-filter").not(".enterprise-asset-list");let t=$(e).find("select");const i=$(e).find("#instructionTextId");for(let e=0;e<t.length;e++){var l=$(t[e]);if("year"==l.attr("data-name")){let e=[l.find("option")[0],l.find("option").slice(1).sort((function(e,t){return $(e).text()<$(t).text()?1:-1}))];l.html(e)}else{let e=[l.find("option")[0],l.find("option").slice(1).sort((function(e,t){return $(e).text().toLowerCase()>$(t).text().toLowerCase()?1:-1}))];l.html(e)}i&&t[0].setAttribute("aria-describedby","instructionTextId")}this.setFilterModal(),this.selectDropdown(),e.each(((e,t)=>{s.init(t)})),$(".asset-list .enterprise-filter select").each((function(){$(this).val(localStorage.getItem(this.id))})),$(".asset-list .enterprise-filter").removeClass("visuallyhidden")}},a=n},7604(e,t,i){i.d(t,{c:()=>s});const s=e=>Array.from(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter((e=>!e.disabled))}}]);
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.