PageSourceSearch

https://afsp.org/_astro/searchHeader.astro_astro_type_script_index_0_lang.BDiysqVI.js

js afsp.org collected 2026-09-24 08:30:49 UTC 3,101 bytes, 17 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/index.BdIKV0Dk.js","_astro/index.BdAgIBCY.js","_astro/_commonjsHelpers.DsqdWQfm.js","_astro/___vite-browser-external_commonjs-proxy.DX5pRjDX.js","_astro/index.D6Zk28MO.js","_astro/infinite-hits.BCps3pVf.js","_astro/preact.module.BFQYowTw.js","_astro/clear-refinements.HVA8YGJa.js","_astro/search-box.B8j90Drk.js","_astro/menu.JtFFOLDu.js","_astro/index.-XBEMYSh.js"])))=>i.map(i=>d[i]);
2import{_ as r}from"./preload-helper.CVfkMyKi.js";customElements.define("site-search",class extends HTMLElement{searchReady=null;constructor(){super();const t=this.id,s=document.querySelector("#close-menu"),a=document.querySelector(`#${t}`);s.addEventListener("click",()=>{a.classList.toggle("-translate-y-full"),document.body.classList.toggle("overflow-hidden")}),document.addEventListener("keydown",o=>{o.key==="Escape"&&!a.classList.contains("-translate-y-full")&&document.body.classList.contains("overflow-hidden")&&(a.classList.add("-translate-y-full"),document.body.classList.remove("overflow-hidden"))})}initSearch(){return this.searchReady||(this.searchReady=this.mountSearch()),this.searchReady}async mountSearch(){const t=this.dataset,s="AFSP",[{liteClient:a},{default:o},{searchBox:c,hits:d},{default:l}]=await Promise.all([r(()=>import("./browser.DiM3sh7S.js"),[]),r(()=>import("./index.BdIKV0Dk.js"),__vite__mapDeps([0,1,2,3])),r(()=>import("./index.D6Zk28MO.js"),__vite__mapDeps([4,1,2,5,6,7,8,9])),r(()=>import("./index.-XBEMYSh.js").then(e=>e.i),__vite__mapDeps([10,2,3]))]),n=o({indexName:s,routing:{stateMapping:{stateToRoute(e){return{search:e[s].query}},routeToState(e){return{[s]:{query:e.search}}}}},searchClient:a("BONWJFMMRS","dc6a5a451c85739a43419955d7a505c1"),searchFunction(e){if(t.hits){const i=document.querySelector(`#${t.hits}`);i.style.display=e.state.query===""?"none":"",e.search()}}});n.addWidgets([c({container:`#${t.input}`,placeholder:"Search afsp.org",showReset:!1,showSubmit:!1}),d({container:`#${t.hits}`,templates:{item(e,{html:i}){const u=l(e.title,{allowedTags:[],allowedAttributes:{}});return i`<div
3                                    class="rounded-md bg-white p-3 px-4 hover:bg-gray-200 hover:ring-8 hover:ring-inset hover:ring-brandBlue-700"
4                                >
5                                    <a
6                                        data-astro-prefetch
7                                        href="${e.url}"
8                                        class="flex items-center gap-4 before:hidden"
9                                    >
10                                        <img
11                                            src="${e.image}"
12                                            class="w-1/4 rounded-lg shadow-xl"
13                                            loading="lazy"
14                                            decoding="async"
15                                        />${u}</a
16                                    >
17                                </div>`},empty:'<div class="text-white font-avenirDemi">No results were found for {{ query }}</div>.'}})]),n.start()}});

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.