(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[290],{6949:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var r=i(7379),n=i(3453),a=i(3768),o=i(5893),s=r.ZP.div.withConfig({displayName:"ProgramGrid__EventsCardWrapper",componentId:"sc-19t7jez-0"})(["grid-column:span 8;@media ","{grid-column:span 12;}@media ","{grid-column:1 / -1;}"],(function(e){return e.theme.mediaBreakpoints.tabletMedium}),(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),l=function(e){var t=e.data,i=e.favouritesArr,r=e.handleSetFavourites;return(0,o.jsx)(a.Z,{rowGap:"20px",align:"auto",children:t&&t.map((function(e,t){var a,l,d,c,u,m,p,v;return(0,o.jsx)(s,{children:(0,o.jsx)(n.Z,{genres:null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.genres,heroImage:null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.hero_image,presenter:null===e||void 0===e||null===(d=e.data)||void 0===d?void 0:d.presenter,supportActs:null===e||void 0===e||null===(c=e.data)||void 0===c?void 0:c.support_acts,title:null===e||void 0===e||null===(u=e.data)||void 0===u?void 0:u.title,venues:null===e||void 0===e||null===(m=e.data)||void 0===m?void 0:m.venues,bgColour:null===e||void 0===e||null===(p=e.data)||void 0===p?void 0:p.colour_theme,link:"/program/".concat(null===e||void 0===e?void 0:e.uid),uid:null===e||void 0===e?void 0:e.uid,dateOverride:null===e||void 0===e||null===(v=e.data)||void 0===v?void 0:v.date_override,favouritesArr:i,handleSetFavourites:r,data:e.data})},t)}))})}},6309:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return ke},default:function(){return Fe}});var r=i(7294),n=i(7379),a=i(5820),o=i(2962),s=i(1163),l=i(6949),d=i(1796),c=i(3768),u=i(1664),m=i.n(u),p=i(814),v=i(5893),h=(0,n.ZP)(p.Z).withConfig({displayName:"FavouriteButton__FavouriteBtnIcon",componentId:"sc-1y9s04a-0"})(["stroke:",";width:0.9rem;height:0.9rem;display:block;transition:all "," ease;fill:",";@media ","{width:0.8rem;height:0.8rem;}"],(function(e){return e.$isFavourite?e.theme.colours.red:e.theme.colours.black}),(function(e){return e.theme.transitionSpeed.fast}),(function(e){return e.$isFavourite?e.theme.colours.red:"transparent"}),(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),f=n.ZP.button.withConfig({displayName:"FavouriteButton__FavouriteBtn",componentId:"sc-1y9s04a-1"})(["position:absolute;top:-0.125rem;right:0;z-index:2;cursor:pointer;"," @media (pointer:fine){&:hover ","{stroke:",";fill:",";}}@keyframes heart{0%{transform:scale(1);}50%{transform:scale(1.2) rotate(5deg);}}"],(function(e){return e.$isFavourite?"animation: heart 0.3125s forwards;":""}),h,(function(e){return e.theme.colours.red}),(function(e){return e.theme.colours.red})),g=function(e){var t=e.className,i=e.favouritesArr,n=e.handleSetFavourites,a=e.uid,o=(0,r.useState)(!1),s=o[0],l=o[1];return(0,r.useEffect)((function(){i.includes(a)?l(!0):l(!1)}),[i]),(0,v.jsx)(f,{className:t,$isFavourite:!!i.includes(a),onClick:function(){return n(a,l,s)},children:(0,v.jsx)(h,{$isFavourite:!!i.includes(a)})})},w=i(6636),y=n.ZP.div.withConfig({displayName:"ProgramDayCell__ProgramDayCellWrapper",componentId:"sc-1k5ri2-0"})(["position:relative;&:not(:first-child){margin-top:1rem;@media ","{margin-top:0.5rem;}}&:not(:last-child)::after{content:'';position:absolute;bottom:0;left:0;width:",";height:1px;background:",";transition:all "," ease;}@media ","{margin-top:0.5rem;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait}),(function(e){return e.inView?"100%":"0"}),(function(e){return e.theme.colours.black}),(function(e){return e.theme.transitionSpeed.slow}),(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),b=n.ZP.a.withConfig({displayName:"ProgramDayCell__ProgramDayCellLink",componentId:"sc-1k5ri2-1"})(["padding-bottom:2.5rem;display:block;color:",";@media ","{margin-bottom:16px;padding-bottom:18px;}"],(function(e){return e.theme.colours.black}),(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),A=n.ZP.div.withConfig({displayName:"ProgramDayCell__CardContentWrapper",componentId:"sc-1k5ri2-2"})(["position:relative;z-index:1;"]),_=n.ZP.p.withConfig({displayName:"ProgramDayCell__Presenter",componentId:"sc-1k5ri2-3"})(["text-transform:uppercase;margin-bottom:0.25rem;padding-right:2rem;"]),x=n.ZP.div.withConfig({displayName:"ProgramDayCell__DetailsWrapper",componentId:"sc-1k5ri2-4"})(["padding-right:30%;position:relative;"]),S=n.ZP.h3.withConfig({displayName:"ProgramDayCell__Artist",componentId:"sc-1k5ri2-5"})(["margin-bottom:22px;@media ","{margin-bottom:15px;padding-right:30%;}@media ","{padding-right:10%;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait}),(function(e){return e.theme.mediaBreakpoints.mobile})),D=n.ZP.p.withConfig({displayName:"ProgramDayCell__Venue",componentId:"sc-1k5ri2-6"})(["&:not(:last-child){margin-bottom:0.3125rem;}"]),j=n.ZP.div.withConfig({displayName:"ProgramDayCell__StampWrapper",componentId:"sc-1k5ri2-7"})(["position:absolute;right:0;top:0;@media ","{right:-0.8rem;}@media ","{top:unset;bottom:-30px;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait}),(function(e){return e.theme.mediaBreakpoints.mobile})),P=n.ZP.div.withConfig({displayName:"ProgramDayCell__Stamp",componentId:"sc-1k5ri2-8"})(["background-color:var(--colour-black800);color:",";padding:0.5rem 1rem;"],(function(e){return e.theme.colours.white})),k=function(e){var t,i,r=e.data,n=e.favouritesArr,a=e.handleSetFavourites,o=e.archivedYear;return(0,v.jsxs)(y,{children:[(0,v.jsx)(g,{favouritesArr:n,handleSetFavourites:a,uid:r.uid}),(0,v.jsx)(m(),{href:"/program/".concat(r.uid),passHref:!0,children:(0,v.jsx)(b,{children:(0,v.jsxs)(A,{children:[r.presenter&&(0,v.jsx)(w.Z,{children:(0,v.jsx)(_,{children:r.presenter})}),(0,v.jsxs)(x,{children:[r.title&&(0,v.jsx)(w.Z,{children:(0,v.jsx)(S,{children:r.title})}),(0,v.jsx)(w.Z,{children:(0,v.jsx)(D,{children:r.currentVenue?r.currentVenue.title:"N/A"})}),(null===(t=r.currentVenue)||void 0===t?void 0:t.country_name)&&(0,v.jsx)(w.Z,{children:(0,v.jsx)(D,{children:null===(i=r.currentVenue)||void 0===i?void 0:i.country_name})}),r.supportActs&&(0,v.jsx)(w.Z,{children:(0,v.jsx)(D,{children:r.supportActs})}),(r.justAddedStamp||r.soldOutStamp||r.sellingFastStamp)&&(0,v.jsxs)(j,{children:[r.justAddedStamp&&!o&&(0,v.jsx)(P,{$stamp:"just-added",children:"Just added"}),r.soldOutStamp&&!o&&(0,v.jsx)(P,{$stamp:"sold-out",children:"Sold out"}),r.sellingFastStamp&&!o&&(0,v.jsx)(P,{$stamp:"selling-fast",children:"Selling fast"})]}),o&&(0,v.jsx)(j,{children:(0,v.jsx)(P,{$stamp:"year",children:o})})]})]})})})]})},F=n.ZP.div.withConfig({displayName:"DayBlock__DayBlockWrapper",componentId:"sc-tep91h-0"})(["border-top:1px solid ",";padding-top:0.5rem;@media ","{border-top:none;padding-top:0;}"],(function(e){return e.theme.colours.black}),(function(e){return e.theme.mediaBreakpoints.tabletMedium})),Z=n.ZP.h3.withConfig({displayName:"DayBlock__Day",componentId:"sc-tep91h-1"})(["grid-column:1 / 10;position:sticky;top:25px;left:0;z-index:2;@media ","{grid-column:1 / -1;padding:36px 20px;background:",";color:",";margin-left:-20px;width:calc(100% + 40px);margin-bottom:15px;top:0;border-bottom:1px solid ",";}"],(function(e){return e.theme.mediaBreakpoints.tabletMedium}),(function(e){return e.theme.colours.white}),(function(e){return e.theme.colours.black}),(function(e){return e.theme.colours.black})),C=n.ZP.div.withConfig({displayName:"DayBlock__ProgramDayList",componentId:"sc-tep91h-2"})(["grid-column:10 / -1;@media ","{grid-column:1 / -1;}"],(function(e){return e.theme.mediaBreakpoints.tabletMedium})),I=function(e){var t=e.data,i=e.favouritesArr,n=e.handleSetFavourites,a=e.archivedYear,o=(0,r.useState)([]),s=o[0],l=o[1];return(0,r.useEffect)((function(){var e=t.items.sort((function(e,t){return new Date(e.currentStartDate)-new Date(t.currentStartDate)}));l(e)}),[t]),s.length>0&&(0,v.jsx)(F,{children:(0,v.jsxs)(c.Z,{children:[t.dayString&&(0,v.jsx)(Z,{children:(0,v.jsx)(w.Z,{children:t.dayString})}),s.length>=1&&(0,v.jsx)(C,{children:s.map((function(e,t){return(0,v.jsx)(k,{data:e,favouritesArr:i,handleSetFavourites:n,archivedYear:a},t)}))})]})})},N=n.ZP.section.withConfig({displayName:"ProgramList__ProgramListWrapper",componentId:"sc-1m0b2sm-0"})([""]),B=function(e){var t=e.data,i=e.favouritesArr,r=e.handleSetFavourites,n=e.archivedYear;return(0,v.jsx)(N,{children:(0,v.jsx)(d.Z,{children:t.map((function(e,t){return(0,v.jsx)(w.Z,{children:(0,v.jsx)(I,{data:e[1],favouritesArr:i,handleSetFavourites:r,archivedYear:n})},t)}))})})},L=i(4507),O=i(33),T=i(9503),M=i(565),E=i(5601),z=i(7987),W=i(1273),R=i(5935),G=n.ZP.form.withConfig({displayName:"ProgramArchiveFilter__ProgramSearchFilterModuleWrapper",componentId:"sc-18wuw8l-0"})([""]),q=n.ZP.div.withConfig({displayName:"ProgramArchiveFilter__ProgramSearchFilterModuleInner",componentId:"sc-18wuw8l-1"})(["padding-block:",";margin-bottom:",";background:var(--colour-grey);@media ","{padding-block:",";}"],(0,z.Z)(50),(0,z.Z)(40),(function(e){return e.theme.mediaBreakpoints.tabletPortrait}),(0,z.Z)(24)),$=(0,n.ZP)(E.Z).withConfig({displayName:"ProgramArchiveFilter__ProgramArchiveSearchWrapper",componentId:"sc-18wuw8l-2"})(["width:calc(33% - 0.32rem);display:inline-block;@media ","{width:50%;}@media ","{width:100%;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait}),(function(e){return e.theme.mediaBreakpoints.mobile})),Y=(0,n.ZP)(L.E.div).withConfig({displayName:"ProgramArchiveFilter__ProgramArchiveFilterClearWrapper",componentId:"sc-18wuw8l-3"})(["width:calc(16.5% - 0.32rem);display:inline-block;overflow:hidden;vertical-align:top;@media ","{width:100%;display:block;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),V=n.ZP.button.withConfig({displayName:"ProgramArchiveFilter__ProgramArchiveFilterClear",componentId:"sc-18wuw8l-4"})(["cursor:pointer;display:block;text-align:center;background:var(--colour-black);border-radius:100px;color:var(--colour-white);padding:0.28rem 2rem;text-transform:uppercase;font-size:0.8rem;transition:all "," ease;border:1px solid var(--colour-black);@media ","{margin:1rem auto 0;}@media (pointer:fine){&:hover{background-color:var(--colour-white);color:var(--colour-black);}}"],(function(e){return e.theme.transitionSpeed.fast}),(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),H=n.ZP.h3.withConfig({displayName:"ProgramArchiveFilter__FilterHeading",componentId:"sc-18wuw8l-5"})(["margin:2rem 0 1rem;font-size:",";letter-spacing:0;line-height:1.2;font-family:var(--font-figtree);font-weight:bold;@media ","{margin-top:1.5rem;}"],(0,z.Z)(16),(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),U=n.ZP.ul.withConfig({displayName:"ProgramArchiveFilter__FilterWrapper",componentId:"sc-18wuw8l-6"})(["margin-bottom:2.5rem;@media ","{margin-bottom:1.5rem;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),J=n.ZP.ul.withConfig({displayName:"ProgramArchiveFilter__FilterList",componentId:"sc-18wuw8l-7"})(["list-style:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0.32rem 0.64rem;@media ","{grid-template-columns:repeat(3,minmax(0,1fr));}@media ","{grid-template-columns:1fr;gap:0;}"],(function(e){return e.theme.mediaBreakpoints.tabletLandscape}),(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),X=n.ZP.div.withConfig({displayName:"ProgramArchiveFilter__AdditionalFilterWrapper",componentId:"sc-18wuw8l-8"})(["display:flex;align-items:center;justify-content:space-between;padding-bottom:0.5rem;@media ","{text-align:center;flex-wrap:wrap;justify-content:center;padding-bottom:1rem;flex-direction:column;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),K=n.ZP.ul.withConfig({displayName:"ProgramArchiveFilter__FilterStatusWrapper",componentId:"sc-18wuw8l-9"})(["list-style:none;display:flex;align-items:center;@media ","{justify-content:center;width:100%;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),Q=(0,n.ZP)(p.Z).withConfig({displayName:"ProgramArchiveFilter__FavouriteButtonIcon",componentId:"sc-18wuw8l-10"})(["stroke:",";width:0.9rem;height:0.9rem;display:block;transition:all "," ease;fill:",";"," @media ","{width:0.8rem;height:0.8rem;}@keyframes heart{0%{transform:scale(1);}50%{transform:scale(1.2) rotate(5deg);}}"],(function(e){return e.$isFavourites?e.theme.colours.red:e.theme.colours.black}),(function(e){return e.theme.transitionSpeed.fast}),(function(e){return e.$isFavourites?e.theme.colours.red:"transparent"}),(function(e){return e.$isFavourites?"animation: heart 0.3125s forwards;":""}),(function(e){return e.theme.mediaBreakpoints.tabletPortrait})),ee=n.ZP.p.withConfig({displayName:"ProgramArchiveFilter__FavouriteButtonText",componentId:"sc-18wuw8l-11"})(["text-transform:uppercase;font-size:0.8rem;margin:-0.125rem 0 0 0.5rem;transition:color "," ease;color:",";"],(function(e){return e.theme.transitionSpeed.fast}),(function(e){return e.$isFavourites?e.theme.colours.red:e.theme.colours.black})),te=n.ZP.button.withConfig({displayName:"ProgramArchiveFilter__FavouriteButton",componentId:"sc-18wuw8l-12"})(["cursor:pointer;display:inline-flex;align-items:center;@media (pointer:fine){&:hover ","{stroke:",";fill:",";}&:hover ","{color:",";}}"],Q,(function(e){return e.theme.colours.red}),(function(e){return e.theme.colours.red}),ee,(function(e){return e.theme.colours.red})),ie=n.ZP.div.withConfig({displayName:"ProgramArchiveFilter__RHSWrapper",componentId:"sc-18wuw8l-13"})(["display:flex;align-items:center;@media ","{flex-direction:column;}"],(function(e){return e.theme.mediaBreakpoints.tabletMedium})),re=(0,n.ZP)(R.Z).withConfig({displayName:"ProgramArchiveFilter__DownloadProgramLink",componentId:"sc-18wuw8l-14"})(["margin-left:",";padding-inline:",";background:transparent;border:2px solid;&:hover{border-color:var(--colour-black);}@media ","{margin:"," 0 0;}"],(0,z.Z)(20),(0,z.Z)(32),(function(e){return e.theme.mediaBreakpoints.mobile}),(0,z.Z)(16)),ne=n.ZP.div.withConfig({displayName:"ProgramArchiveFilter__LHSWrapper",componentId:"sc-18wuw8l-15"})(["display:flex;align-items:center;@media ","{margin-bottom:",";}@media ","{flex-direction:column;justify-content:center;}"],(function(e){return e.theme.mediaBreakpoints.tabletPortrait}),(0,z.Z)(24),(function(e){return e.theme.mediaBreakpoints.mobile})),ae=n.ZP.div.withConfig({displayName:"ProgramArchiveFilter__TopWrapper",componentId:"sc-18wuw8l-16"})(["width:100%;display:flex;justify-content:space-between;@media ","{flex-direction:column;}"],(function(e){return e.theme.mediaBreakpoints.mobile})),oe=n.ZP.div.withConfig({displayName:"ProgramArchiveFilter__LayoutSwitchWrapper",componentId:"sc-18wuw8l-17"})(["display:flex;transition-delay:150ms;border:1px solid var(--colour-black);@media ","{margin-top:",";width:100%;}"],(function(e){return e.theme.mediaBreakpoints.mobile}),(0,z.Z)(24)),se=n.ZP.div.withConfig({displayName:"ProgramArchiveFilter__SwitchButton",componentId:"sc-18wuw8l-18"})(["padding:"," "," ",";background:",";color:",";font-size:1rem;cursor:pointer;&:hover{background:",";color:",";}transition:all "," ease;@media ","{width:100%;text-align:center;}"],(0,z.Z)(8),(0,z.Z)(30),(0,z.Z)(9),(function(e){return e.isActive?e.theme.colours.black:e.theme.colours.white}),(function(e){return e.isActive?e.theme.colours.white:e.theme.colours.black}),(function(e){return e.theme.colours.black}),(function(e){return e.theme.colours.white}),(function(e){return e.theme.transitionSpeed.default}),(function(e){return e.theme.mediaBreakpoints.mobile})),le=n.ZP.div.withConfig({displayName:"ProgramArchiveFilter__SearchButtonWrapper",componentId:"sc-18wuw8l-19"})(["margin-right:",";@media ","{margin-right:0;margin-bottom:",";}"],(0,z.Z)(60),(function(e){return e.theme.mediaBreakpoints.mobile}),(0,z.Z)(24)),de={hidden:{opacity:0,height:0,transition:{duration:.5}},visible:{opacity:1,height:"auto",transition:{duration:.5}}},ce=function(e){var t,i=e.handleMyFavourites,n=e.isFavourites,o=e.datesActive,s=e.setDatesActive,l=e.genresActive,c=e.setGenresActive,u=e.statusesActive,m=e.setStatusesActive,p=e.handleClear,h=e.searchValue,f=e.setSearchValue,g=e.regionsActive,w=e.setRegionsActive,y=e.typesActive,b=e.setTypesActive,A=e.alpresentsActive,_=e.setAlpresentsActive,x=e.accessibilityActive,S=e.setAccessibilityActive,D=e.setGridActive,j=e.gridActive,P=e.canSearch,k=e.formSubmit,F=e.siteOptions,Z=e.alwaysLiveItems,C=(0,r.useState)(!1),I=C[0],N=C[1];return(0,v.jsx)(G,{onSubmit:k,children:(0,v.jsx)(q,{children:(0,v.jsxs)(d.Z,{children:[(0,v.jsxs)(ae,{children:[(0,v.jsx)($,{searchValue:h,setSearchValue:f}),(0,v.jsxs)(oe,{children:[(0,v.jsx)(se,{isActive:j,onClick:function(){return D(!0)},children:"Grid"}),(0,v.jsx)(se,{isActive:!j,onClick:function(){return D(!1)},children:"List"})]})]}),(0,v.jsxs)(U,{children:[(0,v.jsx)(H,{children:"Filter by"}),(0,v.jsxs)(J,{children:[(0,v.jsx)(O.Z,{dropDownActive:I,setDropDownActive:N,id:"date-filter",title:"Date"}),(0,v.jsx)(T.Z,{mobile:!0,dropDownActive:I,filtersActive:o,setFiltersActive:s,selectSingle:!0,size:6,id:"date-filter",options:["Upcoming","Today","This week","The weekend","This month","Date"]}),(0,v.jsx)(O.Z,{dropDownActive:I,setDropDownActive:N,id:"genre-filter",title:"Genre"}),(0,v.jsx)(T.Z,{mobile:!0,dropDownActive:I,filtersActive:l,setFiltersActive:c,selectSingle:!1,size:6,id:"genre-filter",options:["Alternative","Blues","Country","Dance/Electronic","Family","Folk","Hard Rock/Metal","Indie","Jazz/Funk","Pop","Punk","Reggae/Roots","RnB/Hip Hop/Rap","Rock","Singer-Songwriter","Other"]}),(0,v.jsx)(O.Z,{dropDownActive:I,setDropDownActive:N,id:"region-filter",title:"Region"}),(0,v.jsx)(T.Z,{mobile:!0,dropDownActive:I,filtersActive:g,setFiltersActive:w,selectSingle:!1,size:3,id:"region-filter",options:["Melbourne","Yarra Valley & Dandenong Ranges","Phillip Island","Daylesford & the Macedon Ranges","Mornington Peninsula","Geelong & the Bellarine","Grampians","Great Ocean Road","Goldfields","High Country","Gippsland","The Murray"]}),(0,v.jsx)(O.Z,{dropDownActive:I,setDropDownActive:N,id:"type-filter",title:"Type"}),(0,v.jsx)(T.Z,{mobile:!0,dropDownActive:I,filtersActive:y,setFiltersActive:b,selectSingle:!1,size:6,id:"type-filter",options:["All Ages","Family","First Nations","Free","Livestream","Professional Development"]}),(0,v.jsx)(O.Z,{dropDownActive:I,setDropDownActive:N,id:"always-live-presents-filter",title:"Always Live Presents"}),(0,v.jsx)(T.Z,{mobile:!0,dropDownActive:I,filtersActive:A,setFiltersActive:_,selectSingle:!1,size:6,id:"always-live-presents-filter",options:Z.map((function(e){return e.data.title}))}),(0,v.jsx)(O.Z,{dropDownActive:I,setDropDownActive:N,id:"accessibility-filter",title:"Accessibility"}),(0,v.jsx)(T.Z,{mobile:!0,dropDownActive:I,filtersActive:x,setFiltersActive:S,selectSingle:!1,size:3,id:"accessibility-filter",options:["Wheelchair access","Assisted listening device","AUSLAN interpreted","Standing","Seated","Seated & standing"]})]}),(0,v.jsx)(T.Z,{dropDownActive:I,filtersActive:o,setFiltersActive:s,selectSingle:!0,size:6,id:"date-filter",options:["Upcoming","Today","This week","The weekend","This month","Date"]}),(0,v.jsx)(T.Z,{dropDownActive:I,filtersActive:l,setFiltersActive:c,selectSingle:!1,size:6,id:"genre-filter",options:["Alternative","Blues","Country","Dance/Electronic","Family","Folk","Hard Rock/Metal","Indie","Jazz/Funk","Pop","Punk","Reggae/Roots","RnB/Hip Hop/Rap","Rock","Singer-Songwriter","Other"]}),(0,v.jsx)(T.Z,{dropDownActive:I,filtersActive:g,setFiltersActive:w,selectSingle:!1,size:3,id:"region-filter",options:["Melbourne","Yarra Valley & Dandenong Ranges","Phillip Island","Daylesford & the Macedon Ranges","Mornington Peninsula","Geelong & the Bellarine","Grampians","Great Ocean Road","Goldfields","High Country","Gippsland","The Murray"]}),(0,v.jsx)(T.Z,{dropDownActive:I,filtersActive:y,setFiltersActive:b,selectSingle:!1,size:6,id:"type-filter",options:["All Ages","Family","First Nations","Free","Livestream","Professional Development"]}),(0,v.jsx)(T.Z,{dropDownActive:I,filtersActive:A,setFiltersActive:_,selectSingle:!1,size:6,id:"always-live-presents-filter",options:Z.map((function(e){return e.data.title}))}),(0,v.jsx)(T.Z,{dropDownActive:I,filtersActive:x,setFiltersActive:S,selectSingle:!1,size:3,id:"accessibility-filter",options:["Wheelchair access","Assisted listening device","AUSLAN interpreted","Standing","Seated","Seated & standing"]})]}),(0,v.jsxs)(X,{children:[(0,v.jsxs)(ne,{children:[(0,v.jsx)(le,{children:(0,v.jsx)(W.Z,{title:"Search",type:"submit",isDarkTheme:!0,isInactive:!P})}),(0,v.jsx)(K,{children:["Just added","Sold out","Selling fast"].map((function(e,t){return(0,v.jsx)(M.Z,{status:e,statusesActive:u,setStatusesActive:m},t)}))})]}),(0,v.jsxs)(ie,{children:[(0,v.jsxs)(te,{$isFavourites:n,onClick:i,children:[(0,v.jsx)(Q,{$isFavourites:n}),(0,v.jsx)(ee,{$isFavourites:n,children:"My favourites"})]}),(null===F||void 0===F||null===(t=F.program_download)||void 0===t?void 0:t.url)&&(0,v.jsx)(re,{title:"Download Program",link:F.program_download,target:"_blank"})]})]}),(0,v.jsx)(a.M,{children:P&&(0,v.jsx)(Y,{variants:de,initial:"hidden",animate:"visible",exit:"hidden",children:(0,v.jsx)(V,{type:"button",onClick:p,children:"Clear"})})})]})})})},ue=i(9499),me=i(120);function pe(e,t,i){if(i){var r=!1,n=new Date(e.date_time),a=new Date(n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate());if("Upcoming"==i&&a.getTime()>t.getTime()&&(r=!0),"Today"==i&&a.getTime()===t.getTime()&&(r=!0),"This week"==i){var o=new Date,s=new Date(o.getFullYear()+"-"+(o.getMonth()+1)+"-"+o.getDate());s.setDate(s.getDate()-s.getDay());var l=new Date,d=new Date(l.getFullYear()+"-"+(l.getMonth()+1)+"-"+l.getDate());d.setDate(l.getDate()+6),a.getTime()>=s.getTime()&&a.getTime()<=d.getTime()&&(r=!0)}if("This weekend"==i){var c=new Date,u=new Date(c.getFullYear()+"-"+(c.getMonth()+1)+"-"+c.getDate());0==u.getDay()?u.setDate(u.getDate()-1):6==nthisWeekendStartDateSimplified.getDay()?u.setDate(u.getDate()):u.setDate(u.getDate()+(6-u.getDay()));var m=new Date,p=new Date(m.getFullYear()+"-"+(m.getMonth()+1)+"-"+m.getDate());p.setDate(p.getDate()+1),a.getTime()>=u.getTime()&&a.getTime()<=p.getTime()&&(r=!0)}if("This month"==i&&a.getMonth()===t.getMonth()&&(r=!0),i.includes("-")){var v=new Date(i);v=new Date(v.getFullYear()+"-"+(v.getMonth()+1)+"-"+v.getDate()),a.getTime()===v.getTime()&&(r=!0)}return r}return!0}function ve(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function he(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(i),!0).forEach((function(t){(0,ue.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ve(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function fe(e,t){var i={},r=[],n=new Date,a=new Date("".concat(n.getFullYear(),"-").concat(n.getMonth()+1,"-").concat(n.getDate()));e.map((function(e){var i,n={eventInfo:[],title:e.data.title,venues:e.data.venues,firstEventDate:e.data.first_event_date,heroImage:e.data.hero_image,justAddedStamp:e.data.just_added_stamp,presenter:e.data.presenter,sellingFastStamp:e.data.selling_fast_stamp,soldOutStamp:e.data.sold_out_stamp,artistsAddedStamp:e.data.artists_added_stamp,supportsAnnouncedStamp:e.data.supports_announced_stamp,supportActs:e.data.support_acts,uid:e.uid};e.data.slices1&&(null===(i=e.data.slices1[0])||void 0===i||i.items.map((function(e){if(pe(e,a,t)){var i=e.venue,r=e.date_time,o=e.date_end_time,s={startDate:r,endDate:o,formattedStartDate:me.ou.fromISO(r).toFormat("yLLdd"),formattedEndDate:me.ou.fromISO(o).toFormat("yLLdd"),venue:i};n.eventInfo.push(s)}})));r.push(n)}));return r.forEach((function(e){var t,r;e.eventInfo.length>0?e.eventInfo.forEach((function(t){var r,n=e,a=t.formattedStartDate,o=(r=t.startDate,me.ou.fromISO(r).toFormat("ccc dd LLLL")),s=t.venue,l=t.startDate,d=t.endDate;null!==i&&void 0!==i&&i[a]||(i[a]={dayString:o.includes("Invalid")?"Coming Soon":o,rawDay:l,formattedStartDate:a,items:[]});var c=function(e,t,i){var r=me.ou.fromISO(t).toFormat("h.mm"),n=me.ou.fromISO(i).toFormat("h.mma");return"".concat(e," \u2014 ").concat(r," \u2192 ").concat(n)}(o,l,d);c.includes("Invalid")&&(c="N/A"),n.currentVenue=s,n.currentStartDate=l,n.currentFormattedStartDate=o,n.currentEndDate=d,n.listCurrentDateTime=c,n.currentYMD=me.ou.fromISO(l).toFormat("yLLdd"),i[a].items.push(he({},n))})):(!(null!==(t=i["Coming soon"])&&void 0!==t&&null!==(r=t.items)&&void 0!==r&&r.length)>0&&(i["Coming soon"]={dayString:"Coming Soon",rawDay:"Coming soon",formattedStartDate:"Coming soon",items:[]}),i["Coming soon"].items.push(he({},e)))})),Object.entries(i).sort((function(e,t){return e[1].formattedStartDate-t[1].formattedStartDate}))}var ge=i(4679),we=function(e){var t=e.data,i=e.favouritesArr,r=e.handleSetFavourites,n={primary:{title:"Featured Events"},items:t};return!e.hibernate&&(0,v.jsx)(w.Z,{children:(0,v.jsx)(ge.Z,{data:n,favouritesArr:i,handleSetFavourites:r})})},ye=i(2293);function be(e,t){var i="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"===typeof e)return Ae(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ae(e,t)}(e))||t&&e&&"number"===typeof e.length){i&&(e=i);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw a}}}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}var _e=(0,n.ZP)(w.Z).withConfig({displayName:"program__ProgramWrapper",componentId:"sc-1wthdu8-0"})(["padding-top:",";"],(0,z.Z)(24)),xe=(0,n.ZP)(w.Z).withConfig({displayName:"program__MotionWrapper",componentId:"sc-1wthdu8-1"})(["margin:"," 0;"],(0,z.Z)(48)),Se=n.ZP.h2.withConfig({displayName:"program__Title",componentId:"sc-1wthdu8-2"})(["margin-bottom:",";"],(0,z.Z)(25)),De=n.ZP.div.withConfig({displayName:"program__ProgramNothing",componentId:"sc-1wthdu8-3"})(["margin-top:1rem;padding:"," 0 ",";"],(0,z.Z)(24),(0,z.Z)(64)),je=n.ZP.h3.withConfig({displayName:"program__ProgramNothingHeading",componentId:"sc-1wthdu8-4"})([""]),Pe=n.ZP.h1.withConfig({displayName:"program__AllEventsHeader",componentId:"sc-1wthdu8-5"})(["background:var(--colour-black);color:var(--colour-white);padding:"," 0;text-align:center;"],(0,z.Z)(40)),ke=!0,Fe=function(e){var t,i,n,c=e.pageData,u=e.siteOptions,m=e.favouritesArr,p=e.handleSetFavourites,h=e.programData,f=e.isMobile,g=e.alwaysLiveItems,y=(0,r.useState)(!0),b=y[0],A=y[1],_=(0,r.useState)(!1),x=_[0],S=_[1],D=(0,r.useState)(!1),j=D[0],P=D[1],k=(0,r.useState)(""),F=k[0],Z=k[1],C=(0,r.useState)(!1),I=C[0],N=C[1],L=(0,r.useState)(""),O=L[0],T=L[1],M=(0,r.useState)([]),E=M[0],z=M[1],W=(0,r.useState)([]),R=W[0],G=W[1],q=(0,r.useState)([]),$=q[0],Y=q[1],V=(0,r.useState)([]),H=V[0],U=V[1],J=(0,r.useState)([]),X=J[0],K=J[1],Q=(0,r.useState)(""),ee=Q[0],te=Q[1],ie=(0,r.useState)([]),re=ie[0],ne=ie[1],ae=(0,r.useState)(null),oe=ae[0],se=ae[1],le=(0,r.useState)(null),de=le[0],ue=le[1],me=(0,r.useState)(!1),ve=me[0],he=me[1],ge=(0,s.useRouter)(),Ae=function(e){return e.split("-").map((function(e){return e.charAt(0)+e.slice(1)})).join(" ")},ke=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Fe=function(e){return e.replace(/\b[a-z]/g,(function(e){return e.toUpperCase()}))},Ze=(0,r.useCallback)((function(){if(ve){var e=h;if(ee&&(e=h.filter((function(e){if(!ee||"Just added"===ee&&e.data.just_added_stamp||"Sold out"===ee&&e.data.sold_out_stamp||"Selling fast"===ee&&e.data.selling_fast_stamp)return e}))),F&&(e=e.filter((function(e){var t,i,r;if(null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.title.toLowerCase().includes(F.toLowerCase())||null!==e&&void 0!==e&&null!==(i=e.data)&&void 0!==i&&null!==(r=i.support_acts)&&void 0!==r&&r.toLowerCase().includes(F.toLowerCase()))return e}))),O){var t=new Date,i=new Date("".concat(t.getFullYear(),"-").concat(t.getMonth()+1,"-").concat(t.getDate()));e=e.filter((function(e){var t,r;if((null===(t=e.data)||void 0===t||null===(r=t.slices1)||void 0===r?void 0:r.length)>0){var n,a,o=!1;if(null===(n=e.data)||void 0===n||null===(a=n.slices1[0])||void 0===a||a.items.forEach((function(e){e.date_time&&(o||(o=pe(e,i,O)))})),o)return e}}))}R.length>0&&(e=e.filter((function(e){var t,i;if((null===(t=e.data)||void 0===t||null===(i=t.regions)||void 0===i?void 0:i.length)>0){var r,n=!1;if(null===(r=e.data)||void 0===r||r.regions.forEach((function(e){e.region&&R.map((function(e){return e.toLowerCase()})).includes(e.region.toLowerCase())&&(n=!0)})),n)return e}}))),E.length>0&&(e=e.filter((function(e){var t,i;if((null===(t=e.data)||void 0===t||null===(i=t.genres)||void 0===i?void 0:i.length)>0){var r,n=!1;if(null===(r=e.data)||void 0===r||r.genres.forEach((function(e){e.genre&&E.map((function(e){return e.toLowerCase()})).includes(e.genre.toLowerCase())&&(n=!0)})),n)return e}}))),$.length>0&&(e=e.filter((function(e){var t,i;if((null===(t=e.data)||void 0===t||null===(i=t.types)||void 0===i?void 0:i.length)>0){var r,n=!1;if(null===(r=e.data)||void 0===r||r.types.forEach((function(e){e.type&&$.map((function(e){return e.toLowerCase()})).includes(e.type.toLowerCase())&&(n=!0)})),n)return e}}))),H.length>0&&(e=e.filter((function(e){var t,i;if((null===(t=e.data)||void 0===t||null===(i=t.always_live_presents)||void 0===i?void 0:i.length)>0){var r,n=!1;if(null===(r=e.data)||void 0===r||r.always_live_presents.forEach((function(e){var t;null!==(t=e.item.data)&&void 0!==t&&t.title&&H.length>0&&H.map((function(e){return e.toLowerCase()})).includes(e.item.data.title.toLowerCase())&&(n=!0)})),n)return e}}))),X.length>0&&(e=e.filter((function(e){var t,i;if((null===(t=e.data)||void 0===t||null===(i=t.venues)||void 0===i?void 0:i.length)>0){var r,n=!1;if(null===(r=e.data)||void 0===r||r.venues.forEach((function(e){var t=e.venue.data;X.includes("AUSLAN interpreted")&&(n=null===t||void 0===t?void 0:t.accessibility_auslan),X.includes("Assisted listening device")&&(n=null===t||void 0===t?void 0:t.accessibility_hearing_loop,null===t||void 0===t||!t.accessibility_hearing_loop)||X.includes("Standing")&&(n=null===t||void 0===t?void 0:t.accessibility_standing,null===t||void 0===t||!t.accessibility_standing)||X.includes("Wheelchair access")&&(n=null===t||void 0===t?void 0:t.accessibility_wheel_chair,null===t||void 0===t||!t.accessibility_wheel_chair)||X.includes("Seated")&&(n=null===t||void 0===t?void 0:t.accessibility_sitting,null===t||void 0===t||!t.accessibility_sitting)||!X.includes("Seated & standing")||(n=null===t||void 0===t?void 0:t.accessibility_standing_seated,null!==t&&void 0!==t&&t.accessibility_standing_seated)})),n)return e}}))),j&&(e=e.filter((function(e){if(e.uid&&m.includes(e.uid))return e}))),se(e),ue(fe(e,O))}}),[X,H,O,m,E,j,ve,h,R,F,ee,$]),Ce=function(){ve?Ze():he(!0)};(0,r.useEffect)((function(){Ze()}),[ve]);return(0,r.useEffect)((function(){if(se(function(){var e,t=be(h);try{for(t.s();!(e=t.n()).done;){var i,r,n,a=e.value,o=a.data.slices1;(null===o||void 0===o?void 0:o.length)>0&&(null===(i=o[0].items)||void 0===i?void 0:i.length)>0&&null!==(r=o[0].items[0])&&void 0!==r&&r.date_time?a.alSortDate=null===(n=o[0].items[0])||void 0===n?void 0:n.date_time:a.alSortDate=""}}catch(s){t.e(s)}finally{t.f()}return h.sort((function(e,t){return new Date(t.alSortDate)-new Date(e.alSortDate)})),h.reverse(),h}()),ue(fe(h,O)),ge.query){var e=!1;if(ge.query["search-value"]){var t=ge.query["search-value"],i=Ae(t);Z(i),N(!0),e=!0}if(ge.query["accessibility-active"]){var r=ge.query["accessibility-active"],n=Ae(r);n=Fe(n),K([n]),e=!0}if(ge.query["alpresents-active"]){var a=ge.query["alpresents-active"],o=Ae(a);o=ke(o),U([o])}if(ge.query["dates-active"]){var s=ge.query["dates-active"],l=Ae(s);l=ke(l),T(l),e=!0}if(ge.query["genres-active"]){var d=ge.query["genres-active"],c=Ae(d);c=Fe(c),z([c]),e=!0}if(ge.query["regions-active"]){var u=ge.query["regions-active"],m=Ae(u);m=Fe(m),G([m]),e=!0}if(ge.query["statuses-active"]){var p=ge.query["statuses-active"],v=Ae(p);v=Fe(v),te([v]),e=!0}if(ge.query["types-active"]){var f=ge.query["types-active"],g=Ae(f);g=Fe(g),Y([g]),e=!0}e&&Ce()}var w=h.filter((function(e){return e.data.is_featured}));ne(w)}),[ge]),(0,r.useEffect)((function(){I||O||F||E.length>0||R.length>0||$.length>0||H.length>0||X.length>0||ee||j?S(!0):S(!1)}),[I,O,E,R,$,H,X,ee,j,F]),c&&(0,v.jsxs)(_e,{fade:!0,children:[(0,v.jsx)(o.PB,{title:(null===c||void 0===c?void 0:c.data.seo_title)||(null===u||void 0===u?void 0:u.seo_title),description:(null===c||void 0===c?void 0:c.data.seo_description)||(null===u||void 0===u?void 0:u.seo_description),openGraph:{images:[{url:null===u||void 0===u||null===(t=u.seo_image)||void 0===t?void 0:t.url,width:1200,height:630}]}}),(null===c||void 0===c||null===(i=c.data)||void 0===i?void 0:i.title)&&(0,v.jsx)(w.Z,{children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(Se,{children:c.data.title})})}),(0,v.jsx)(w.Z,{children:(0,v.jsx)(ce,{handleMyFavourites:function(){P(!j)},isFavourites:j,datesActive:O,setDatesActive:T,genresActive:E,setGenresActive:z,statusesActive:ee,setStatusesActive:te,handleClear:function(e){e.preventDefault(),Z(""),N(!1),T(""),z([]),G([]),Y([]),U([]),K([]),te(""),he(!1),se(h),ue(fe(h,O))},searchValue:F,setSearchValue:Z,regionsActive:R,setRegionsActive:G,typesActive:$,setTypesActive:Y,alpresentsActive:H,setAlpresentsActive:U,accessibilityActive:X,setAccessibilityActive:K,pageData:c,setGridActive:A,gridActive:b,canSearch:x,formSubmit:function(e){e.preventDefault(),Ce()},siteOptions:u,alwaysLiveItems:g})}),(0,v.jsx)(a.M,{children:(null===oe||void 0===oe?void 0:oe.length)>0&&(null===de||void 0===de?void 0:de.length)>0?(0,v.jsxs)(v.Fragment,{children:[!ve&&(null===re||void 0===re?void 0:re.length)>0&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(we,{data:re,favouritesArr:m,handleSetFavourites:p}),(0,v.jsx)(w.Z,{children:(0,v.jsx)(Pe,{children:"All events \u2193"})})]}),b?(0,v.jsx)(xe,{children:(0,v.jsx)(d.Z,{children:(null===oe||void 0===oe?void 0:oe.length)>0&&(0,v.jsx)(l.Z,{data:oe,favouritesArr:m,handleSetFavourites:p})})}):(0,v.jsx)(xe,{children:de&&(0,v.jsx)(B,{data:de,favouritesArr:m,handleSetFavourites:p})})]}):(0,v.jsx)(De,{children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(w.Z,{children:(0,v.jsx)(je,{children:"Sorry, no events found."})})})})}),(0,v.jsx)(ye.Z,{data:null===c||void 0===c||null===(n=c.data)||void 0===n?void 0:n.slices,siteOptions:u,favouritesArr:m,handleSetFavourites:p,isMobile:f})]})}},2506:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/program",function(){return i(6309)}])}},function(e){e.O(0,[662,743,173,759,293,774,888,179],(function(){return t=2506,e(e.s=t);var t}));var t=e.O();_N_E=t}]);