1import{q as c,j as e}from"./index-B1io2KWE.js";import{u as r,g as l,a as d,N as m,F as g}from"./Footer-j1M_U4xV.js";import{H as u,B as x,S as j}from"./SocialFeedSection-GLM4p5Hp.js";import{c as h,L as v}from"./react-vendor-BcUBA7eT.js";import{j as p}from"./apollo-vendor-D17s89sx.js";import"./useMutation-oEbX9vNN.js";const f=p` 2 query SuggestionMenu { 3 suggestionMenu { 4 id 5 name 6 displayOrder 7 performers { 8 id 9 name 10 subtitle 11 tevoId 12 source 13 imageUrl 14 displayOrder 15 } 16 } 17 } 18`;function N({title:n,performers:i}){const a=r();return e.jsxs("div",{className:"category-container",children:[e.jsx("div",{className:"text-m",children:n}),e.jsx("div",{className:`${a?"col":"row"} align-start`,style:{flexWrap:"wrap"},children:i.map(s=>e.jsxs(v,{to:s.source==="CUSTOM"?`/event/${l({name:s.name,tevoId:s.tevoId,source:"CUSTOM"})}`:`/performer/${d(s)}`,className:"suggestion-card-container",style:{textDecoration:"none",color:"inherit"},"data-testid":`marketplace-consumer-components-home-suggestions-suggestion-card-container-${s.id}`,children:[e.jsx("div",{className:"suggestion-card",style:s.imageUrl?{backgroundImage:`url("${encodeURI(s.imageUrl)}")`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,"data-testid":`marketplace-consumer-components-home-suggestions-suggestion-card-${s.id}`}),e.jsxs("div",{className:"suggestion-text-container",children:[e.jsx("div",{className:a?"text-xs-bold":"text-s",children:s.name}),s.subtitle&&e.jsx("div",{className:a?"text-xxs":"text-xs-light",children:s.subtitle})]})]},s.id))})]})}function S(){const n=r(),{data:i,loading:a}=c(f),s=h.useMemo(()=>(i?.suggestionMenu??[]).slice().sort((t,o)=>t.displayOrder-o.displayOrder),[i]);return e.jsx("div",{className:"container-main",children:e.jsxs("div",{className:"content-main tall",children:[!n&&e.jsx("div",{className:"left text-xl",children:"Trending Events"}),a&&e.jsx("div",{className:"loading-spinner"}),!a&&s.length===0&&e.jsx("div",{className:"text-s-light",style:{padding:40},children:"Featured performers will appear here once an admin configures them."}),!a&&s.map(t=>e.jsx(N,{title:t.name,performers:t.performers},t.id))]})})}function O(){return e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"#main",className:"skip-link",children:"Skip to main content"}),e.jsx(m,{}),e.jsxs("main",{id:"main",tabIndex:-1,children:[e.jsx(u,{}),e.jsx(S,{}),e.jsx(x,{}),e.jsx(j,{})]}),e.jsx(g,{})]})}export{O 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.