import{d,g as O,af as J,p as P,f as X,c as G,ag as K,ah as Z,v as ee,e as te,_ as ne,u as ae,E as oe,h as se,F as re,n as le,o as ie}from"./entry.Cm2GWFmC.js";import{f as ce}from"./flattenTransformTicketData.XZglH7Gu.js";import{j as C,M as s,D as f,Q as t,$ as S,a0 as W,U as g,P as v,O as w,u as a,a as L,k as A,C as de,n as B,R as U,J as E,V as N,L as ue,N as M,Y as me,z as fe,b as H,m as pe,a7 as _e,T as F,X as he}from"./vue-pic.1yvOmXPY.js";import{w as ve}from"./weekday.WiKy8dof.js";import{_ as z}from"./StarRating.vue.D3q2XCwq.js";import{_ as ge}from"./Location.vue.BgyFwc3e.js";import{_ as ye}from"./InfoBanner.vue.DMyO5ZzU.js";import{a as be}from"./CTAButtons.vue.44nTgAg1.js";import{_ as xe}from"./HeroCTA.vue.C9Ngjclf.js";import{_ as ke}from"./Quote.vue.bEJY0VaY.js";import{_ as $e}from"./ShopperApprovedLinkLogo.vue.DQw4B7j9.js";import{s as we}from"./interval.IGYbNqUW.js";import{_ as Me}from"./HeroCtaPage.vue.DNr_4x6Y.js";import"./Calendar.vue.CzFGGqTF.js";import"./Ticket.vue.j_PgsoT_.js";import"./Heart.vue.DzOLXLQF.js";import"./linkIsExternal.CyKsVJUc.js";import"./TransitionExpand.BpAZAPNi.js";import"./useSharethis.Dx46mVhA.js";import"./useShopperApprovedUrl.56yjuIS2.js";const Ce={class:"p-5"},De={class:"w-full"},Te=t("thead",null,[t("tr",{class:"bg-gray-100 text-left font-body font-semibold h-12 border-b-4 border-black"},[t("th",{class:"border border-dashed"},[t("span",{class:"px-2"},"Event")]),t("th",{class:"border border-dashed"},[t("span",{class:"px-2"},"When")]),t("th",{class:"border border-dashed"},[t("span",{class:"px-2"},"Time")]),t("th",{class:"border border-dashed"},[t("span",{class:"px-2"},"Prices From")]),t("th",{class:"border border-dashed"},[t("span")])])],-1),Ye={class:"p-2 text-left font-body"},Ie={class:"text-left font-body p-2"},Ae={class:"text-left font-body p-2"},Le={class:"text-left font-body p-2"},Se={class:"p-2 float-right"},Ne=t("button",{class:"btn-pri btn-pri--sm"},"Book tickets",-1),We=C({__name:"index",props:{events:{}},setup(o){const n=e=>d(e).format("ddd, MMM D"),l=e=>({...e,performanceTicketsUrl:e.performanceExternalLink?e.performanceExternalLink:`seating?performance_id=${e.performanceId}&performance_time=${e.performanceDateTime}`}),_=ce({ticketData:o.events.inventory.ticketData,transform:l});return(e,p)=>{const r=O;return s(),f("div",Ce,[t("table",De,[Te,t("tbody",null,[(s(!0),f(S,null,W(a(_),i=>(s(),f("tr",{key:i.performanceId,class:"border border-dashed odd:bg-white even:bg-gray-100"},[t("td",Ye,g(i.performanceName),1),t("td",Ie,[t("span",null,g(n(i.performanceDateTime)),1)]),t("td",Ae,[t("span",null,g(i.performanceTime),1)]),t("td",Le,[t("span",null,"$"+g(i.performancePriceLo),1)]),t("td",Se,[v(r,{to:i.performanceTicketsUrl,class:"flex flex-row md:flex-col font-body w-full",tabindex:"0"},{default:w(()=>[Ne]),_:2},1032,["to"])])]))),128))])])])}}}),Pe=["disabled"],Ee={class:"flex flex-row mx-auto space-x-4 nl-md:w-full"},Re=["onClick"],Ue={key:0,class:"font-normal mt-1"},Oe=["disabled"],V=6,je=C({__name:"DateSelector",props:{monthData:{},activeMonth:{}},emits:["updateActiveMonth"],setup(o,{emit:n}){const l=L(null),_=L(!1),e=n,{$siteConfig:p}=P(),r=L(o.monthData.findIndex(m=>m.title===o.activeMonth.format("MMMM YYYY"))),i=L(3),D=A(()=>{if(o.monthData.length<=i.value)return o.monthData;let m=r.value>0?r.value-1:0;const u=m+i.value;return u>o.monthData.length-1&&(m-=u-o.monthData.length),m<=r.value&&r.value<=u-1?o.monthData.slice(m,u):[o.monthData[r.value]]});function x(m){e("updateActiveMonth",m)}const I=m=>{e("updateActiveMonth",d(m.title)),r.value=o.monthData.findIndex(u=>u.title===m.title)};return de(()=>{new ResizeObserver(()=>{const u=window.innerWidth>=1024?240:180,y=Math.floor(window.innerWidth/u);i.value=y<=V?y:V}).observe(document.body),setTimeout(()=>{B(()=>{if(l.value){const u={offset:l.value.getBoundingClientRect().top,onNotTop:()=>{_.value=!0},onTop:()=>{_.value=!1}};new J(l.value,u).init()}})},600)}),(m,u)=>{const y=X;return s(),f("div",{ref_key:"calendarDateSelector",ref:l,class:U([{"nl-md:shadow-md":a(_)},"flex flex-row bg-white items-center nl-md:sticky top-18 -mx-5 p-4"])},[t("button",{disabled:a(r)<=0,tabindex:"0",class:"flex items-center justify-center bg-black shrink-0 disabled:bg-gray-200 transition-colors duration-500 rounded-full w-9 h-9 mr-5","aria-label":"Previous month",onClick:u[0]||(u[0]=k=>(x(a(d)(m.activeMonth).subtract(1,"month")),r.value--))},[v(y,{class:"rotate-90 text-white",width:14,height:9})],8,Pe),t("div",Ee,[(s(!0),f(S,null,W(a(D),k=>(s(),f("span",{key:k.title,class:U(["flex flex-col font-body nl-md:title-sans nl-md:title-sans--lg font-semibold whitespace-nowrap text-center rounded-t transition-colors duration-500 md:border-b-4 nl-md:w-full p-2 pb-1",[k.title===m.activeMonth.format("MMMM YYYY")?"md:bg-gray-700 md:text-white border-black cursor-auto":"nl-md:hidden cursor-pointer"]]),tabindex:"0",onClick:c=>I(k)},[E(g(k.title)+" ",1),k.minPrice?(s(),f("span",Ue," From "+g(a(p).config.siteCurrency)+g(k.minPrice),1)):N("",!0)],10,Re))),128))]),t("button",{disabled:a(r)>=m.monthData.length-1,tabindex:"0",class:"flex items-center justify-center bg-black shrink-0 disabled:bg-gray-200 transition-colors duration-500 rounded-full w-9 h-9 ml-5","aria-label":"Next month",onClick:u[1]||(u[1]=k=>(x(a(d)(m.activeMonth).add(1,"month")),r.value++))},[v(y,{class:"-rotate-90 text-white",width:14,height:9})],8,Oe)],2)}}}),Fe={class:"grid grid-cols-7 bg-gray-300"},Ve=C({__name:"Weekdays",setup(o){const n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];return(l,_)=>(s(),f("ol",Fe,[(s(),f(S,null,W(n,e=>t("li",{key:e,class:"border-r px-2 py-2"},g(e),1)),64))]))}}),Be={class:"flex flex-col gap-2 w-full"},He={class:"flex grow nl-md:justify-center nl-md:rounded-l md:rounded-t bg-gray-300 group-hover:bg-gray-500 transition-colors duration-300 nl-md:py-1 px-1"},ze={class:"flex grow nl-md:justify-center nl-md:rounded-r md:rounded-b bg-gray-100 group-hover:bg-gray-400 transition-colors duration-300 text-black nl-md:py-1 px-1"},Q=C({__name:"Events",props:{day:{}},setup(o){const{$siteConfig:n}=P(),l=G(),_=o.day.events&&Object.values(o.day.events).sort((e,p)=>d(e.performanceDateTime).unix()-d(p.performanceDateTime).unix());return(e,p)=>{const r=O;return s(),f("ol",Be,[(s(!0),f(S,null,W(a(_),i=>(s(),f("li",{key:i.performanceId,class:"w-full group"},[v(r,ue(i.performanceExternalLink?{to:i.performanceExternalLink,target:"_blank"}:{to:a(l).fullPath.replace(/calendar.*/,`seating?performance_id=${i.performanceId}&performance_time=${i.performanceDateTime}`)},{class:"flex flex-row md:flex-col font-body w-full",tabindex:"0"}),{default:w(()=>[t("span",He,g(i.performanceTime),1),t("span",ze,"From "+g(a(n).config.siteCurrency)+g(i.performancePriceLo),1)]),_:2},1040)]))),128))])}}}),Qe=C({__name:"MonthDay",props:{day:{},isToday:{}},setup(o){const n=o.day.date?d(o.day.date).format("D"):"";return(l,_)=>{const e=Q;return s(),f("li",{class:U(["bg-white min-h-28 border-dashed border-r border-b p-2",{"text-gray-200":!l.day.isCurrentMonth,"bg-green-100":l.isToday}])},[t("span",null,g(a(n)),1),l.day.events?(s(),M(e,{key:0,day:l.day},null,8,["day"])):N("",!0)],2)}}}),qe={key:0,class:"hidden md:block border-dashed border-l border-t rounded overflow-hidden"},Je={class:"grid grid-cols-7"},Xe={key:0,class:"grid [grid-template-columns:1fr_6fr] gap-5 pt-5"},Ge={class:"flex gap-2"},Ke={class:"title-sans title-sans--xl lg:title-sans--2xl"},Ze={class:"font-body uppercase align-top"},et=C({__name:"index",props:{events:{}},setup(o){d.extend(ve),d.extend(K),d.extend(Z);const n=L(d()),l=L(null),_=c=>{n.value=c,l.value&&l.value.scrollIntoView({behavior:"smooth",block:"start"})},e=[];if(o.events&&o.events.inventory.ticketData)for(const c in o.events.inventory.ticketData)for(const h in o.events.inventory.ticketData[c]){let b=Math.min();for(const T in o.events.inventory.ticketData[c][h])for(const $ in o.events.inventory.ticketData[c][h][T])b=Math.min(b,o.events.inventory.ticketData[c][h][T][$].performancePriceLo);e.push({index:h,title:`${d(h,"M").format("MMMM")} ${c}`,minPrice:b,date:d(`${h} ${c}`,"M YYYY")})}e.sort((c,h)=>c.date.unix()-h.date.unix()),e.length>0&&(n.value=d(e[0].title,"MMMM YYYY"));const p=A(()=>d().format("YYYY-MM-DD")),r=A(()=>n.value?Number(n.value.format("MM")):Number(d().format("MM"))),i=A(()=>n.value?Number(n.value.format("YYYY")):Number(d().format("YYYY")));function D(c){return c.toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1})}const x=A(()=>{const c=n.value.daysInMonth();return[...Array(c)].map((h,b)=>{var T,$;return{date:d(`${i.value}-${r.value}-${D(b+1)}`).format("YYYY-MM-DD"),events:o.events.inventory?($=(T=o.events.inventory.ticketData[i.value])==null?void 0:T[r.value])==null?void 0:$[b+1]:[],isCurrentMonth:!0}})}),I=A(()=>{const c=k(x.value[0].date),h=d(`${i.value}-${r.value}-01`).subtract(1,"month"),b=d(x.value[0].date).subtract(c,"day").date();return[...Array(c)].map((T,$)=>({date:d(`${h.year()}-${h.month()+1}-${b+$}`).format("YYYY-MM-DD"),isCurrentMonth:!1}))}),m=A(()=>{const c=k(`${i.value}-${r.value}-${x.value.length+1}`),h=d(`${i.value}-${r.value}-01`).add(1,"month"),b=c&&7-c;return[...Array(b)].map((T,$)=>({date:d(`${h.year()}-${h.month()+1}-${$+1}`).format("YYYY-MM-DD"),isCurrentMonth:!1}))}),u=A(()=>{if(I)return[...I.value,...x.value,...m.value]}),y=A(()=>{var c;return(c=u.value)==null?void 0:c.findIndex(h=>h.events)});function k(c){return d(c).weekday()}return(c,h)=>{const b=je,T=Ve,$=Qe,R=Q;return s(),f("div",null,[v(b,{"month-data":e,"active-month":a(n),onUpdateActiveMonth:_},null,8,["active-month"]),a(u)?(s(),f("div",qe,[v(T),t("ol",Je,[(s(!0),f(S,null,W(a(u),Y=>(s(),M($,{key:Y.date,day:Y,"is-today":Y.date===a(p)},null,8,["day","is-today"]))),128))])])):N("",!0),a(u)?(s(),f("ol",{key:1,ref_key:"mobileCalendarList",ref:l,class:"flex flex-col divide-y divide-dashed scroll-m-40 gap-5 md:hidden"},[(s(!0),f(S,null,W(a(u).slice(a(y)),Y=>(s(),f(S,{key:Y.date},[Y.isCurrentMonth?(s(),f("li",Xe,[t("div",Ge,[t("span",Ke,g(a(d)(Y.date).format("D")),1),t("span",Ze,g(a(d)(Y.date).format("ddd")),1)]),v(R,{day:Y},null,8,["day"])])):N("",!0)],64))),128))],512)):N("",!0)])}}}),tt=C({__name:"Ticketing",props:{events:{}},setup(o){return(n,l)=>{const _=We,e=et;return n.events.detail.eventIsUmbrella?(s(),M(_,{key:0,events:n.events},null,8,["events"])):(s(),M(e,{key:1,events:n.events,class:"w-full pb-5"},null,8,["events"]))}}}),nt={class:"flex flex-col"},at={class:"flex justify-center bg-gray-500 rounded-t p-4"},ot={class:"flex justify-center bg-gray-100 rounded-b p-4"},st=C({__name:"InfoCalendarPageLinksCard",props:{url:{},text:{}},setup(o){const n=o;return(l,_)=>{const e=O;return s(),f("div",nt,[t("div",at,[me(l.$slots,"icon")]),t("div",ot,[v(e,{to:n.url},{default:w(()=>[E(g(n.text),1)]),_:1},8,["to"])])])}}}),rt={class:"flex flex-col bg-gray-300 rounded-b gap-5 p-5 pb-8"},lt={class:"title-sans title-sans--base lg:title-sans--lg mx-auto"},it={class:"grid grid-cols-1 md:grid-cols-2 gap-5 md:gap-12"},ct={class:"flex bg-black rounded-full w-8 h-8"},dt=C({__name:"InfoCalendarPageLinks",props:{heading:{},starLink:{},venueLink:{}},setup(o){const n=o;return(l,_)=>{const e=z,p=st,r=ge;return s(),f("div",rt,[t("h2",lt,g(n.heading),1),t("div",it,[v(p,{text:n.starLink.text,url:n.starLink.url},{icon:w(()=>[v(e,{class:"flex h-8 items-center",rating:5,fill:"black"})]),_:1},8,["text","url"]),v(p,{text:n.venueLink.text,url:n.venueLink.url},{icon:w(()=>[t("div",ct,[v(r,{class:"text-gray-500 m-auto"})])]),_:1},8,["text","url"])])])}}}),ut={class:"flex flex-col items-center text-center gap-3 px-3 md:nl-lg:py-3 py-6"},mt={class:"flex flex-col font-body font-sans-italic text-sm gap-1"},ft=t("br",null,null,-1),pt=C({__name:"ShopperApprovedRotatingWidgetReview",props:{review:{}},setup(o){const n=o,l=d(n.review.reviewDate).format("MMMM D, YYYY");return(_,e)=>{const p=z,r=ke;return s(),f("article",ut,[v(p,{rating:n.review.reviewRating},null,8,["rating"]),t("p",mt,[E(g(n.review.reviewCustomerName)+" ",1),ft,t("span",null,g(a(l)),1)]),v(r,{quote:n.review.reviewComments,class:"title-sans title-sans--base lg:title-sans--lg font-normal"},null,8,["quote"])])}}}),_t={class:"flex flex-col md:nl-lg:grid grid-cols-2 bg-white rounded items-center p-4"},ht={class:"flex flex-col text-center gap-1"},vt=t("p",{class:"font-body"},"How was your shopping experience?",-1),gt=C({__name:"ShopperApprovedRotatingWidget",props:{headingComponent:{default:"h2"}},setup(o){const n=o,l=te(),_=P(),e=L(0);let p=null;const{data:r,pending:i}=ee(`${l.public.API_BASE_URL}/content/site:${l.public.SITE_ID}/reviewsShopperApproved/detail:rotatingWidget`,{key:"shopperApprovedRotatingWidget",getCachedData(D){return _.payload.data[D]||_.static.data[D]}},"$mgpHOKMjZJ");return fe(()=>{const D=H(i,x=>{!x&&r.value&&r.value.rotatingWidget.length>1&&(p=we(()=>{e.value=(e.value+1)%r.value.rotatingWidget.length},1e4),B(()=>{D()}))},{immediate:!0})}),pe(()=>{p&&clearInterval(p)}),(D,x)=>{const I=ne,m=pt,u=$e;return s(),f("article",_t,[t("header",ht,[(s(),M(_e(n.headingComponent),{class:"title-sans title-sans--lg lg:title-sans--xl uppercase"},{default:w(()=>[E(" Website Reviews ")]),_:1})),vt]),v(F,{name:"opacity",mode:"out-in"},{default:w(()=>[a(i)?(s(),M(I,{key:0,class:"[grid-area:1/2/3/2] my-3"})):(s(),M(F,{key:1,name:"opacity",mode:"out-in"},{default:w(()=>{var y;return[(y=a(r))!=null&&y.rotatingWidget[a(e)]?(s(),M(m,{key:a(r).rotatingWidget[a(e)].reviewUrl,review:a(r).rotatingWidget[a(e)],class:"[grid-area:1/2/3/2]"},null,8,["review"])):N("",!0)]}),_:1}))]),_:1}),v(u,{class:"[&_span]:text-xs md:nl-lg:mx-auto","logo-width":150})])}}}),yt={class:"flex flex-col gap-5"},Ot=C({__name:"calendar",async setup(o){var I,m,u,y;let n,l;const _=ae(),{data:e,error:p}=([n,l]=he(()=>_),n=await n,l(),n);if(p||!e)throw oe({statusCode:(p==null?void 0:p.statusCode)||404,fatal:!0});const{$siteConfig:r,$processEmarsys:i}=P(),D=se(),x=re();return D.value.category=e.detail.eventCategoryPrimary,H(x,()=>{x.value&&(window.ScarabQueue.push(["view",`${e.detail.performanceId}${r.config.siteCode}`],["tag",e.detail.eventName]),i())},{immediate:!0}),le({script:[{type:"application/ld+json",innerHTML:(I=e.head)==null?void 0:I.schema,key:"schema"}]}),ie({title:(m=e.head)==null?void 0:m.title,description:(u=e.head)==null?void 0:u.description,keywords:(y=e.head)==null?void 0:y.keywords}),(k,c)=>{const h=tt,b=dt,T=ye,$=be,R=xe,Y=gt,q=Me;return s(),M(q,{class:"[&_#sideContentContainer]:lg:sticky [&_#sideContentContainer]:top-5 [&_#sideContentContainer]:bg-transparent [&_#sideContentContainer]:order-first [&_#sideContentContainer]:lg:order-last [&_#sideContentContainer]:nl-lg:contents [&_#sideContentContainer_>div]:nl-lg:contents [&_#heroCTAInfoTableVenue]:p-0"},{mainContent:w(()=>{var j;return[(j=a(e).inventory)!=null&&j.ticketData?(s(),M(h,{key:0,events:a(e),class:"w-full pb-5"},null,8,["events"])):(s(),M(T,{key:1,class:"my-5",heading:`Sorry, ${a(e).detail.eventName} has been & gone`,text:"So, we can't show you any tickets!"},{default:w(()=>[v(b,{heading:"Why not take a look at","star-link":{text:`The best ${a(r).config.siteCity} has to offer`,url:"/shows/"},"venue-link":{text:"What's coming up at this venue",url:a(e).detail.venueUrl||"/venues/"}},null,8,["star-link","venue-link"])]),_:1},8,["heading"]))]}),sideContent:w(()=>[t("div",yt,[v(R,{class:"bg-white rounded-b drop-shadow nl-lg:order-first [&_header]:nl-md:rounded [&_#heroCTAInfoTableVenue]:lg:pb-4 nl-md:p-5 nl-md:mt-5",event:{...a(e).detail,eventTicketsUrl:null,eventStars:null,eventQuote:null},"show-url":a(e).detail.eventMoreInfoUrl},{default:w(()=>[v($,{venue:a(e).detail.venueName,"venue-url":a(e).detail.venueUrl,class:"w-full md:nl-lg:mr-5 [&_#heroCTAInfoTableVenue]:py-2 [&_#heroCTAInfoTableVenue]:border-b [&_#heroCTAInfoTableVenue]:md:nl-lg:border-b-0 [&_#heroCTAInfoTableVenue]:border-dashed"},null,8,["venue","venue-url"])]),_:1},8,["event","show-url"]),a(r).config.siteShopperApprovedSite?(s(),M(Y,{key:0})):N("",!0)])]),_:1})}}});export{Ot as default};