PageSourceSearch

https://dartmouthsports.com/_nuxt/BRohPm_2.js

js dartmouthsports.com collected 2026-10-02 05:30:01 UTC 2,124 bytes, 1 lines download raw bytes

1import{a as e}from"./BRDo1DkI.js";import{A as t,D as n,E as r,Et as i,F as a,I as o,Vt as s,Yt as c,ft as l,it as u,kt as d,st as f,y as p}from"./Z4KK5gRn.js";import{f as m}from"./D0dDAhjT.js";import{r as h}from"./BWV6Cjd7.js";import{n as g}from"./DxMDzjIl.js";import{dt as _}from"./hbJ7YfQR.js";import{A as v,O as y}from"./BH4P2eOT2.js";import"./BWrzisge2.js";import{t as b}from"./CxTHZNCH2.js";var x=class{fetch;resource=`/api/v2/Search`;constructor({fetch:e}){this.fetch=e}async get(){return this.fetch(this.resource).then(e=>_(e)).catch(e=>(console.error(`[SearchRepo] get() Request error caught`,e),{}))}},S=g(`search`,{state:()=>({searchBar:{}}),actions:{async fetchSearchBarId({fetch:e}){let t=await new x({fetch:e}).get();this.searchBar=t}},getters:{getSearchBarId:e=>e.searchBar}}),C={class:`max-w-7x1 mx-auto`,"data-test-id":`search-page__root`},w={class:`px-4 pb-4`},T={class:`mb-4 px-4 space-y-6`},E={class:`space-y-4`},D={__name:`SearchPage`,setup(g){let _=s(0),x=S(),D=m(),{$customFetch:O}=e(),k=r(()=>x.getSearchBarId?.googleCseId??``),A=r(()=>!k.value),j=()=>x.fetchSearchBarId({fetch:O}),M=()=>{let e=k.value;if(!e)return;let t=document.createElement(`script`);t.type=`text/javascript`,t.async=!0,t.src=`https://cse.google.com/cse.js?cx=${e}`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n)};return u(async()=>{await j(),M()}),h({script:[{src:()=>`https://cse.google.com/cse.js?cx=${k.value}`,async:!0}]}),i(D,e=>{e?.query&&(_.value+=1,M())}),(e,r)=>(f(),t(`div`,C,[n(`div`,w,[o(b,null,{title:d(()=>[...r[0]||=[a(` Site Results `,-1)]]),_:1})]),o(c(y),{isLoading:c(A)},{content:d(()=>[(f(),t(`div`,{key:c(_),class:`mb-4 px-4`},[...r[1]||=[n(`div`,{class:`gcse-search`},null,-1)]]))]),default:d(()=>[n(`div`,T,[o(c(v),{class:`h-[44px] w-full rounded-md`}),o(c(v),{class:`h-[16px] w-1/3 rounded-sm`}),n(`div`,E,[(f(),t(p,null,l(8,e=>n(`div`,{key:`sk-res-${e}`,class:`space-y-1`},[o(c(v),{class:`h-[18px] w-2/3 rounded-sm`}),o(c(v),{class:`h-[14px] w-full rounded-sm`}),o(c(v),{class:`h-[14px] w-5/6 rounded-sm`})])),64))])])]),_:1},8,[`isLoading`])]))}};export{D as default};

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.