1import s from"./custom-html-element-Cddc4xm8.js";import"./logger-pamvzmAu.js";import"./exports-NHIMKJG4.js";import"./event-zU-Y6ZHH.js";class c extends s{constructor(){super(),this._onSortChanged=this._onSortChanged.bind(this),this._onExternalToggle=this._onExternalToggle.bind(this)}connectedCallback(){document.addEventListener("select:item",this._onSortChanged),document.addEventListener("click",this._onExternalToggle)}disconnectedCallback(){document.removeEventListener("select:item",this._onSortChanged),document.removeEventListener("click",this._onExternalToggle)}_onExternalToggle(n){const e=n.target.closest("[data-select-toggle]");if(!e)return;const o=e.getAttribute("data-select-toggle"),t=document.getElementById(o);t&&typeof t.toggle=="function"&&t.toggle()}_onSortChanged(n){const e=n.target;if(!e.querySelector||!e.querySelector("#sort-by-select"))return;const o=e.querySelector('select-option[aria-selected="true"][data-sort-value]');if(!o)return;const t=o.dataset.sortValue,r=new URL(window.location.href);r.searchParams.set("sort_by",t),r.searchParams.delete("page"),this.dispatchEvent(new CustomEvent("facet:criteria-changed",{bubbles:!0,detail:{url:r.toString()}}))}}window.customElements.get("sort-by-popover")||window.customElements.define("sort-by-popover",c);
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.