PageSourceSearch

https://www.unleashedsoftware.com/js/listing.js

js unleashedsoftware.com collected 2026-10-02 04:38:06 UTC 2,997 bytes, 1 lines download raw bytes

1class e{filterSummaryListContainer;filterCount;clearAllBtn;inputEls;expanders;selected={};constructor(e,t,n,r,i){this.filterSummaryListContainer=e,this.filterCount=t,this.clearAllBtn=n,this.inputEls=r,this.expanders=i,i.forEach((e=>{const t=e.querySelector(".js-expanderTrigger");t.dataset.label=t.innerText.trim()}))}onSelect(){this.updateSelected(),this.createItems(),this.updateCount(),this.updateExpanderCount()}updateSelected(){const e={};this.inputEls.forEach((t=>{const n=t.closest(".filter-field").querySelector(".filter-field__label").dataset.label;if(n&&t.checked&&(e[n]||(e[n]=[]),t.checked)){const r=t.parentElement?.querySelector("span");e[n].push(r?.textContent||t.name)}})),this.selected=e}createItems(){const e=Object.keys(this.selected).map((e=>this.createSummaryItem(e)));this.filterSummaryListContainer.innerHTML="",e.forEach((e=>{e&&this.filterSummaryListContainer.appendChild(e)}))}createSummaryItem(e){const t=this.selected[e];if(!t||0===t.length)return;const n=document.createElement("li");n.classList.add("filter-summary-item");const r=document.createElement("p");r.classList.add("filter-summary-item__title"),r.textContent=`${e.charAt(0).toUpperCase()+e.substring(1)} `;const i=document.createElement("span");i.textContent=`(${t.length}):`,r.appendChild(i);const s=document.createElement("ul");return s.classList.add("filter-summary-item__list"),t.forEach((function(e){const t=document.createElement("li");t.textContent=e,s.appendChild(t)})),n.appendChild(r),n.appendChild(s),n}updateCount(){const e=Object.values(this.selected).reduce((function(e,t){return e+t.length}),0);0===e?this.filterCount.classList.add("hidden"):(this.filterCount.textContent=`${e}`,this.filterCount.classList.remove("hidden"))}updateExpanderCount(){window.innerWidth>=1024||this.expanders.forEach((e=>{const t=e.querySelector(".js-expanderTrigger"),n=[...e.querySelectorAll(".checkbox-container input")].reduce(((e,t)=>t.checked?e+1:e+0),0);t.innerText=n>0?`${n} selected`:t.dataset.label}))}}document.querySelectorAll(".js-filter").forEach((function(t){if(function(t){const n=t.querySelector(".js-filterClear"),r=t.querySelector(".js-filterSummary"),i=t.querySelector(".js-filterCount"),s=r.querySelector(".js-filterSummaryList"),c=t.querySelector(".js-filterSubmit"),l=[...t.querySelectorAll(".checkbox-container input")],a=[...t.querySelectorAll(".js-expander")];if(window.innerWidth<1024&&a.forEach((e=>{e.setAttribute("aria-expanded","false"),e.classList.remove("active")})),!(i&&r&&s&&c))return;const o=new e(s,i,n,l,a);o.onSelect(),c.addEventListener("click",(()=>{o.onSelect()})),n.addEventListener("click",(function(){l.forEach((function(e){e.checked=!1})),o.onSelect(),c.click()}))}(t),!t.closest(".js-stickyFilterContainer"))return;const n=t.querySelector(".js-filterTrigger"),r=t.querySelector(".js-filterClose");n?.addEventListener("click",(function(){n?.setAttribute("aria-expanded","true")})),r?.addEventListener("click",(function(){n?.setAttribute("aria-expanded","false")}))}));

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.