1function u(){let i=!1;function d(){i||(i=!0,import("woody_addon_search_engine_component").then(({default:e})=>{customElements.define("woody-search-engine",e)}),import("woody_addon_search_engine_input_component").then(({default:e})=>{customElements.define("woody-search-engine-input",e)}),import("woody_addon_search_engine_input_dropdown_component").then(({default:e})=>{customElements.define("woody-search-engine-input-dropdown",e)}),import("woody_addon_search_engine_filters_component").then(({default:e})=>{customElements.define("woody-search-engine-filters",e)}),import("woody_addon_search_engine_results_component").then(({default:e})=>{customElements.define("woody-search-engine-results",e)}))}const f=new IntersectionObserver(e=>{e.forEach(async n=>{n.isIntersecting&&(d(),await customElements.whenDefined(n.target.tagName.toLowerCase()),n.target.onShow(n.target.classList.contains("overlayed-results")))})}),r=document.querySelectorAll("woody-search-engine");async function c(){document.body.style.overflow="hidden",r.forEach(async e=>{e.classList.contains("overlayed-results")&&(e.classList.add("is-active"),e.setAttribute("aria-modal",!0),await customElements.whenDefined(e.tagName.toLowerCase()),e.onShow(!0),e.addEventListener("close",a))})}async function a(){document.body.style.overflow="auto",r.forEach(async e=>{e.classList.contains("overlayed-results")&&(e.classList.remove("is-active"),e.setAttribute("aria-modal",!1),await customElements.whenDefined(e.tagName.toLowerCase()),e.onHide(),e.removeEventListener("close",a))})}if(r?.length>0){if(r.forEach(o=>{f.observe(o)}),new URLSearchParams(window.location.search).get("search_query")){const o=Array.from(r).find(t=>t.classList.contains("embed-results"));o?o.scrollIntoView({behavior:"smooth",block:"center"}):document.querySelector(".search-toggler-wrapper .results-toggler")&&c()}const l=document.querySelectorAll(".search-toggler-wrapper .results-toggler");if(l?.length>0){l.forEach(t=>{t.addEventListener("keydown",s=>{(s.key=="Enter"||s.key==" ")&&c()}),t.addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),c()})});const o=document.querySelectorAll(".search-results-close");o?.length>0&&o.forEach(t=>{t.addEventListener("keydown",s=>{(s.key=="Enter"||s.key==" ")&&a()}),t.addEventListener("click",a),t.addEventListener("keydown",a)})}}}export{u as init};
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.