1import{eQ as p,j as e,av as L,a as T,aa as b,u as f,aF as H,e7 as _,eR as u,a6 as y,r as h,eS as E}from"./index.03b766a6.js";import{E as U}from"./ExhibitorCard.6d8c4e2b.js";import{C as A}from"./CommunityCard.bf67bfff.js";import{e as G}from"./queries.9ae29538.js";import{S as x}from"./SquareItemListGrid.9ba6a791.js";import{I as m}from"./InfiniteListRenderer.b1bd91db.js";import{I as d}from"./InfiniteQueryRenderer.7e1ccc55.js";import{S as c,a as g}from"./StatefulSegmentNav.a5c1f607.js";import{G as Q}from"./GuestCard.018c0534.js";import{P as O}from"./PostCardList.2b42ca22.js";import{E as I}from"./EmptyState.f3a6a9c7.js";import{U as P}from"./UserCard.dc7977b0.js";import{C as R}from"./ConventionCard.3f32e1dc.js";import{u as N}from"./useUserRolesQuery.3eb2f7f8.js";function W({query:i}){var l,S;const r=p(i,{type:"upcoming"}),t=p(i,{type:"past"}),s=N(),a=((l=s.data)==null?void 0:l.isAdmin)||((S=s.data)==null?void 0:S.isOrganizationAdmin),n=C=>C.filter(v=>v.goLive!=="Admin Only"||a);return e(g,null,e(c,{title:"Upcoming"},e(d,{...r,items:n(r.items),renderItems:R.renderList,renderEmpty:o})),e(c,{title:"Past"},e(d,{...t,items:n(t.items),renderItems:R.renderList,renderEmpty:o})))}const o=()=>e(I,{text:"The term you entered did not bring up any results."});function Y(){const{search:i}=T(),r=b(),t=i.get("query")||"",s=f(),a=[{title:"Events",route:r.WITH_QUERY(r.SEARCH_CONVENTIONS,t),content:e("div",{css:{marginTop:"-1rem"}},e(W,{query:t}))},{title:"Communities",route:r.WITH_QUERY(r.SEARCH_COMMUNITIES,t),content:e(m,{list:s.communityStore.searchCommunityLists.get(t),renderItems:A.renderList,renderEmpty:o})},{title:"Exhibit Hall",route:r.WITH_QUERY(r.SEARCH_EXHIBIT_HALL,t),content:e("div",{css:{marginTop:"-1rem"}},e(j,{query:t}))},{title:"Guests",route:r.WITH_QUERY(r.SEARCH_GUESTS,t),content:e(m,{list:s.guestStore.searchLists.get(t),renderItems:Q.renderList,renderEmpty:o})},{title:"Attendees",route:r.WITH_QUERY(r.SEARCH_USERS,t),content:e(m,{list:s.userStore.searchUsersLists.get(t),renderItems:P.renderList,renderEmpty:o})},{title:"Posts",route:r.WITH_QUERY(r.SEARCH_POSTS,t),content:e(m,{list:s.postStore.searchPostsLists.get(t),renderItems:n=>e(O,{items:n}),renderEmpty:o})}];return e(y,{theme:u.darkTheme},e("div",{"data-cy":"GlobalSearchResults",css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"}}},e(H,{title:`Search${t?` for "${t}"`:""}`}),e("h1",{css:_},"Search Results ",t?` for "${t}"`:""),e(u.TitleBar,{segments:a}),t?e(u.Routes,{segments:a}):e(I,{text:"Enter a search query to get started!"})))}var $=L(Y),te=Object.freeze(Object.defineProperty({__proto__:null,renderNoResults:o,default:$},Symbol.toStringTag,{value:"Module"}));function j({query:i,renderEmpty:r=o,exhibitorsRoute:t,itemsRoute:s}){const a=f(),n=G({query:i});return e(y,{theme:u.darkTheme}
1,e(g,null,e(c,{title:"Exhibitors",route:t},e(h.exports.Suspense,{fallback:e(E,null)},e(m,{list:a.exhibitorStore.searchExhibitors.get(i),renderItems:U.renderGrid,renderEmpty:r}))),e(c,{title:"Items",route:s},e(h.exports.Suspense,{fallback:e(E,null)},e(d,{...n,renderItems:l=>e(x,{items:l}),renderEmpty:r})))))}export{j as E,te as G};
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.