1import{r as C}from"../chunks/Bq-rPRmx.js";import{g as x}from"../chunks/B7fph2b5.js";import"../chunks/GymLTR-r.js";import"../chunks/B0XwC4Ot.js";import{S as c,a as L}from"../chunks/8UinBQ7p.js";import{g as O,i as b}from"../chunks/CBIXvIqJ.js";import"../chunks/DsnmJJEf.js";import"../chunks/DOoDc4tg.js";import{v as D,A as G,i as _,B as R,an as j,j as k,ar as m,D as i,G as l,at as g,as as y,ap as H,L as I,n as P,K as q,ab as A}from"../chunks/Ndri3sLk.js";import{s as M}from"../chunks/NBiqQv3d.js";import{i as N}from"../chunks/CQN3pcvY.js";import{i as z}from"../chunks/DpZMeqx-.js";import{p as B}from"../chunks/DXIylsJt.js";import{n as E}from"../chunks/K-GNXj2_.js";import{S as K}from"../chunks/AzEABP82.js";import{S as U}from"../chunks/8D1XD7YV.js";const F=async({fetch:f,params:t,parent:a,route:v,url:u})=>{const e=x(u,v),r=O(t.type),h=L.withDefaultDependencies(e,f),o=u.searchParams.get("q");o||C(302,".");let s;switch(r){case c.Publisher:s={publisherShortCode:t.id};break;case c.Institution:s={institutionShortCode:t.id};break;case c.Collection:s={collectionTag:t.id};break;case c.ResearchGroup:s={rgid:t.id};break;default:throw new Error(`Unsupported showcase type ${r}`)}const w=await h.search({searchText:o,...s}),d=await a();return{searchText:o,result:w,searchAction:"",onSearchResetGoto:".",showLogosOnCards:r===c.Collection||r===c.Institution,metadata:{...d.metadata,title:`${o} â ${d.metadata.title}`,description:`Search results for â${o}â.`},breadcrumbs:[{label:"Home",href:"/"},{label:"Showcases",href:"/showcase/list"},{label:(await a()).branding.listingTitle,href:"."},{label:"Search results"}]}},pe=Object.freeze(Object.defineProperty({__proto__:null,load:F},Symbol.toStringTag,{value:"Module"}));var J=k('<div class="no-results svelte-tc05n0"><h2 class="svelte-tc05n0"> </h2> <p>Some suggestions:</p> <ul><li>Make sure all words are spelled correctly.</li> <li>Try different keywords.</li> <li>Try more general keywords.</li> <li>Try fewer keywords.</li></ul></div>'),Q=k('<p class="count svelte-tc05n0"><!></p> <section class="ruled-block"><h2 class="sr-only">Search results</h2> <!></section>',1);function ue(f,t){D(t,!1);const a=()=>H(E,"$navigating",v),[v,u]=j();let e=B(t,"data",8);z();var r=Q(),h=G(r),o=m(h);K(o,{get itemCount(){return i(e()),l(()=>e().result.items.length)},get totalHits(){return i(e()),l(()=>e().result.totalHits)}}),g(h);var s=y(h,2),w=y(m(s),2);{var d=n=>{{let p=A(()=>(i(b),a(),l(()=>b(a()))));U(n,{get items(){return i(e()),l(()=>e().result.items)},get showLoading(){return I(p)},get showLogos(){return i(e()),l(()=>e().showLogosOnCards)}})}},T=n=>{var p=J(),S=m(p),$=m(S);g(S),P(4),g(p),q(()=>M($,`No results found for â${i(e()),l(()=>e().searchText)??""}â`)),_(n,p)};N(w,n=>{i(e()),a(),l(()=>e().result.items.length||a())?n(d):n(T,-1)})}g(s),_(f,r),R(),u()}export{ue as component,pe as universal};
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.