import{a,r as l,b as c}from"./EchoChannel-Bg1-kez_.js";const i=["types","geographies","regions","keywords","institution","categories","awards"],f=a(null),s=l({default_searchable_models:[],query:"",winner:!1}),h=a(-1),p=a([]),d=()=>{i.forEach(e=>{var t;(t=s[e])!=null&&t.length&&(s[e]=[])}),s.winner=!1},g=()=>{let e=!0;return i.forEach(t=>{var r;(r=s[t])!=null&&r.length&&(e=!1)}),e&&(e=!s.winner),e},m=e=>{let t=[];return e.forEach(r=>{var n;(n=r.data)==null||n.forEach(o=>{o.title&&t.push(o.title)})}),t??[]},y=c(()=>{let e=!1;return s.default_searchable_models.forEach(t=>{if(t.includes("Innovation"))return e=!0}),e});export{g as a,h as b,d as c,p as d,i as f,m as g,y as i,f as o,s as r};