1import{i as e}from"./DUgKJ0rD.js";import{D as t,F as n,Ft as r,I as i,K as a,L as o,Pt as s,Qt as c,R as l,U as u,V as d,W as f,gt as p,yn as m,yt as h}from"./CI1QfElZ.js";import{f as g}from"./nN7mEdLy.js";import{t as _}from"./Ctl0WwoK.js";import{t as v}from"./h0MhM7YV.js";import{C as y,D as b,r as x}from"#entry";import{t as S}from"./iDgk5gtC.js";import{o as C}from"./S2d76qmX.js";import{t as w}from"./Bg4S6DWs.js";import{t as T}from"./JM54Pemb.js";import{t as E}from"./MV8mMghj.js";import{t as D}from"./CEeL_NsV.js";import{t as O}from"./DMWRyXXk.js";import{t as k}from"./XY7H5C2y.js";import{t as A}from"./BEiJWt0J.js";import{t as j}from"./DCF6aIw7.js";var M={class:`flex flex-col title-sans title-sans--xl lg:title-sans--4xl uppercase`},N={class:`title-sans title-sans--lg lg:title-sans--xl capitalize`},P=Object.assign(a({__name:`ShowsPageHeaders`,props:{heading:{}},setup(e){let t=e;return(e,r)=>(p(),l(`h1`,M,[u(m(t.heading.primary)+` `,1),n(`span`,N,m(t.heading.secondary),1)]))}}),{__name:`ShowsPageHeaders`}),F={class:`bg-white rounded p-5 lg:p-4`},I={class:`flex flex-col divide-y divide-dashed gap-6`},L={class:`flex flex-col !text-black nl-lg:gap-x-5 gap-2 pt-6`},R={class:`flex gap-2`},z={class:`title-sans title-sans--lg my-auto`},B={class:`font-body line-clamp-2 h-fit`},V=Object.assign(a({__name:`ShowsPageLatestNews`,props:{latestNews:{}},setup(e){let a=e,o=a.latestNews.map(e=>w(e,e.eventId).value);return(e,s)=>{let u=_,d=S;return p(),l(`aside`,F,[f(u,{class:`!text-black`,to:`/news`},{default:r(()=>[...s[0]||=[n(`h1`,{class:`title-sans title-sans--xl uppercase`},`Latest News`,-1)]]),_:1}),n(`div`,I,[(p(!0),l(t,null,h(a.latestNews,(e,t)=>(p(),i(u,{key:e.newsId,"aria-label":`Read more about ${e.newsHeading}`,to:e.newsLink},{default:r(()=>[n(`article`,L,[n(`div`,R,[f(d,{class:`rounded w-[25vw] lg:w-1/4 max-w-[13.75rem] h-fit shrink-0 aspect-fugardImage`,"event-id":c(o)[t].id,"srcset-resolutions":[`333x219`,`606x398`,`1023x672`,`1279x840`,`1599x1050`,`1818x1194`],sizes:`(min-width: 1024px) calc(25vw * 0.25 - 32px), (min-width: 768px) calc(25vw * 0.3 - 90px), calc(50vw - 30px)`,identifier:c(o)[t].identifier||`hero`,alt:e.newsHeading??void 0,"image-type":c(o)[t].imageType},null,8,[`event-id`,`identifier`,`alt`,`image-type`]),n(`h2`,z,m(e.newsHeading),1)]),n(`p`,B,m(e.newsIntroParagraph),1),s[1]||=n(`div`,{class:`btn-sec btn-sec--sm w-full lg:w-fit h-fit ml-auto mt-auto`},[n(`span`,{class:`nl-lg:mx-auto`},` Read more `)],-1)])]),_:2},1032,[`aria-label`,`to`]))),128))]),f(u,{to:`/news`},{default:r(()=>[...s[2]||=[n(`div`,{class:`btn-sec btn-sec--sm lg:w-fit mx-auto mt-6`},[n(`span`,{class:`nl-lg:mx-auto`},` Read more news `)],-1)]]),_:1})])}}}),{__name:`ShowsPageLatestNews`}),H={class:`flex flex-col md:hidden bg-white gap-5`},U={class:`flex flex-col text-center rounded bg-black text-white p-3`},W={class:`bg-gray-300 rounded-b text-center p-4`},G={class:`font-body`},K=Object.assign(a({__name:`ShowsPage`,props:{category:{}},async setup(a){let S,w,M=g(),N=a,{$siteConfig:F}=e(),{isMobile:I}=b(),{gtmTrack:L}=y(),{data:R}=([S,w]=s(()=>v()),S=await S,w(),S),z={bestSellers:`Best sellers`,showRating:`Top rated`,justAnnounced:`Just announced`,currentlyPlaying:`Currently playing`,upcoming:`Upcoming`},B=(e,t)=>[...t].sort((t,n)=>(t[e]?Date.parse(t[e]):0)-(n[e]?Date.parse(n[e]):0));function K(e,t){switch(e){case`showRating`:t=[...N.category.all].sort((e,t)=>(t.eventStars?+t.eventStars:0)-(e.eventStars?+e.eventStars:0));break;case`justAnnounced`:{let e=Date.now();t=N.category.all.filter(t=>t.eventAnnounced&&e-Date.parse(t.eventAnnounced)<=6048e5),t=B(`eventStartDate`,t);break}case`currentlyPlaying`:{let e=Date.now();t=N.category.all.filter(t=>t.eventEndDate&&t.eventStartDate&&Date.parse(t.eventEndDate)>=e&&Date.parse(t.eventStartDate)<=e),t=B(`eventEndDate`,t);break}case`upcoming`:{let e=Date.now();t=N.category.all.filter(t=>t.eventStartDate&&Date.parse(t.eventStartDate)>=e),t=B(`eventStartDate`,t);break}}return t}let q=()=>{let e=M.params.category||`home`;L(`view_item_list`,{item_list_name:`Shows ${e}`,eventList:N.category.all}),k()};return(e,s)=>{let g=P,v=C,y=j,b=x,S=A,w=_,k=T,L=D,B=V,J=E,Y=O;
1return p(),i(Y,{"wrapper-element":`main`,class:`[&_#sideContentContainer]:bg-transparent`},d({mainContent:r(()=>[n(`div`,H,[n(`div`,U,[f(g,{heading:N.category.heading},null,8,[`heading`])]),f(b,{"formkit-classes":{outer:`mx-0`}})]),N.category.all?(p(),i(S,{key:0,events:N.category.all,"sort-by-filters":z,"sort-by":K,"show-cta-heading-component":`h2`,onVnodeMounted:q},null,8,[`events`])):(p(),l(t,{key:1},[f(k,{heading:`Sorry, no ${(c(R)?.shows)?.all.find(e=>e.path===c(M).fullPath)?.displayName||`shows`} found`,class:`my-5`},{default:r(()=>[n(`div`,W,[n(`p`,G,[s[0]||=u(` Why not take a look at `,-1),f(w,{to:`/shows`},{default:r(()=>[u(` our selection of the best `+m(c(F).config.siteCity)+` has to offer`,1)]),_:1}),s[1]||=u(`. `,-1)])])]),_:1},8,[`heading`]),f(L,{"list-view":``,"emarsys-event-category":c(F).config.siteEmarsysCategory,class:`min-h-160`},null,8,[`emarsys-event-category`])],64))]),sideContent:r(()=>[a.category.news?.length?(p(),i(B,{key:0,"latest-news":a.category.news,class:`mb-5`},null,8,[`latest-news`])):o(``,!0),f(J)]),_:2},[N.category.highlights&&!c(I)?{name:`header`,fn:r(()=>[f(y,{class:`nl-md:hidden`,"carousel-items":N.category.highlights,"hero-cta-heading-component":`h2`,"content-info-mobile-alignment":`bottom`},d({default:r(()=>[n(`span`,null,[f(g,{heading:N.category.heading},null,8,[`heading`])])]),_:2},[h(N.category.highlights.filter(e=>e.eventId),e=>({name:e.eventId,fn:r(()=>[f(v,{venue:e.venueName,"venue-url":e.venueUrl,"cms-venue-id":e.venueId?.toString(),"formatted-date":e.eventDisplayDateLong,"event-on-sale-date":e.eventOnSaleDate,"tickets-page-url":e.eventTicketsUrl,class:`w-full`},null,8,[`venue`,`venue-url`,`cms-venue-id`,`formatted-date`,`event-on-sale-date`,`tickets-page-url`])])}))]),1032,[`carousel-items`])]),key:`0`}:void 0]),1024)}}}),{__name:`ShowsPage`});export{K as t};
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.