1"use strict";(globalThis["webpackChunkgk_jss_app"]=globalThis["webpackChunkgk_jss_app"]||[]).push([[8592],{54277:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var s=a(20641),n=a(50953),l=a(94626),r=a(56820),i=a(50258),o=a(43972),d=a(72761),u=a(60423),c=a(44539),f=a(46810),v=a(20484),k=(a(22489),a(61701),a(13579),a(74353)),g=a.n(k),m=a(89277);const p=12,_=e=>e.nearestOccurrence?g()(e.nearestOccurrence.startAt):g()(e.startAt),A=(e,t)=>e.occurrences?e.occurrences.length>0:!g()(e.endAt).isBefore(t),b=(e,t)=>!t.length||t.includes(e.category||""),R=(e,t,a)=>!t&&!a||(e.occurrences?e.occurrences.some((e=>(!t||!g()(e.endAt).isBefore(t))&&(!a||!g()(e.startAt).isAfter(a)))):(!t||!g()(e.endAt).isBefore(t))&&(!a||!g()(e.startAt).isAfter(a)));function h(e,t={}){return(0,s.EW)((()=>{const a=(0,n.BA)(e)?.data,s=a?.events??[],l=a?.recurringEvents??[],r=l.map(m.o1).filter((e=>Boolean(e))),i=[...s,...r];if(!i.length)return[];const o=g()(),d=t.categories??[],u=t.dateRangeFrom?g()(t.dateRangeFrom):null,c=t.dateRangeTo?g()(t.dateRangeTo).endOf("day"):null,f=Number(t.limit)||p;return i.filter((e=>A(e,o))).filter((e=>b(e,d))).filter((e=>R(e,u,c))).sort(((e,t)=>_(e).unix()-_(t).unix())).slice(0,f)}))}var F=a(30843),x=a(20002),E=a(26901),L=a(34958);const O={class:"featured-events-carousel__skeleton"},y={key:0,class:"featured-events-carousel__footer"},B=(0,s.pM)({__name:"FeaturedEventsCarousel",props:{fields:{default:()=>({})},rendering:{},params:{default:()=>({})}},setup(e){const{t}=(0,i.s9)(),a=(0,F.B)(),{isMedia:k}=(0,x.A)("(min-width: 768px)"),{isMedia:g}=(0,x.A)("(min-width: 1024px)"),m=e,{trackLinkState:p}=(0,L.k)({componentName:"featured-events-carousel"}),{data:_,isPending:A,isError:b}=(0,v.A)(m.fields.venueId?.value),R=h(_,{categories:m.fields.categories?.value,dateRangeFrom:m.fields.dateRangeFrom?.value,dateRangeTo:m.fields.dateRangeTo?.value,limit:m.fields.cardsLimit?.value}),B=(0,n.KR)(null),C=(0,s.EW)((()=>R.value.length>0||A.value)),w=(0,s.EW)((()=>{const e=_.value?.data?.venue?.address,t=[a.venueName,...e&&Object.keys(e).length>0?Object.values(e):[]].filter(Boolean);return t.join(", ")})),T=(0,s.EW)((()=>g.value?3:k.value?2:1)),P={0:{slidesPerView:1,slidesOffsetBefore:4,slidesOffsetAfter:8},[(0,E.U)(768)??768]:{slidesPerView:2,slidesOffsetBefore:4,slidesOffsetAfter:8},[(0,E.U)(1024)??1024]:{slidesPerView:3,slidesOffsetBefore:4,slidesOffsetAfter:8}},j=e=>{B.value=e},M=()=>{B.value=null};return(i,v)=>C.value||i.$isPageEditing?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.bF)(o.A,{items:(0,n.R1)(R),"is-loading":(0,n.R1)(A),"is-error":(0,n.R1)(b),"tracking-component-name":"featured-events",class:"featured-events-carousel",breakpoints:P,"sr-loading-text":(0,n.R1)(t)("events-content-loading"),"sr-loaded-text":(0,n.R1)(t)("events-content-loaded")},{header:(0,s.k6)((()=>[(0,s.bF)((0,n.R1)(l.E),{class:"featured-events-carousel__title font-l",field:e.fields.title,tag:e.params.headingType??"h2"},null,8,["field","tag"]),(0,s.bF)((0,n.R1)(r.s),{class:"featured-events-carousel__description",field:e.fields.description,tag:"p"},null,8,["field"])])),default:(0,s.k6)((({item:e})=>[(0,s.bF)(d.A,{event:e,location:w.value,"brand-name":(0,n.R1)(a).brandName,"tracking-component-name":"featured-event-card",onOpenModal:j},null,8,["event","location","brand-name"])])),loading:(0,s.k6)((()=>[(0,s.Lk)("div",O,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(T.value,(e=>((0,s.uX)(),(0,s.CE)("div",{key:e,class:"featured-events-carousel__skeleton-card"},[...v[1]||(v[1]=[(0,s.Lk)("div",{class:"featured-events-carousel__skeleton-image"},null,-1),(0,s.Lk)("div",{class:"featured-events-carousel__skeleton-content"},[(0,s.Lk)("span",{class:"featured-events-carousel__skeleton-title"}),(0,s.Lk)("span",{class:"featured-events-carousel__skeleton-date"}),(0,s.Lk)("span",{class:"featured-events-carousel__skeleton-desc"}),(0,s.Lk)("span",{class:"featured-events-carousel__skeleton-cta"})],-1)])])))),128))])])),error:(0,s.k6)((()=>[(0,s.bF)(c.A,{text:(0,n.R1)(t)("events-error-message")},null,8,["text"])])),empty:(0,s.k6)((()=>[(0,s.bF)(c.A,{text:(0,n.R1)(t)("events-no-results-message")},null,8,["text"])])),footer:(0,s.k6)((()=>[e.fields.ctaLink?.value?.href?((0,s.uX)(),(0,s.CE)("div",y,[(0,s.bF)(f.A,{type:"link",variant:"secondary",link:e.fields.ctaLink.value,onClick:v[0]||(v[0]=t=>(0,n.R1)(p)(e.fields.ctaLink.value?.text||""))},null,8,["link"])])):(0,s.Q3)("",!0)])),_:1},8,["items","is-loading","is-error","sr-loading-text","sr-loaded-text"]),B.value?((0,s.uX)(),(0,s.Wv)(u.A,{
1key:0,event:B.value,location:w.value,"event-page-url":e.fields.eventPageUrl?.value,"brand-name":(0,n.R1)(a).brandName,"tracking-component-name":"featured-event-modal",onCloseModal:M},null,8,["event","location","event-page-url","brand-name"])):(0,s.Q3)("",!0)],64)):(0,s.Q3)("",!0)}}),C=B,w=C}}]); 2//# sourceMappingURL=FeaturedEventsCarousel.279bc555.js.map
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.