1import {f,P}from'./chunk-DRo9RRaj.js';import {g as ge}from'./chunk-DiogWLgf.js';import {A as Ae$1}from'./chunk-D2OmXeCI.js';import {O,L as L$1,K,G,m as me}from'./chunk-gqX2Nv2x.js';import {g as g$1,v,$,u,_,L as L$2}from'./chunk-BSp6k9am.js';import {$ as $e$1,A as Ae}from'./chunk-OtqAvhA_.js';import {b}from'./chunk-BVrLIgui.js';import {Y as YG,g,cE as n$1,aU as H$1,q as qd,f as qS,H as yt$1,bo as gt$1,L as gv,ak as jv,T as cN,O as On,a3 as L,X as X8,p as ni,bP as mx,i as ta,aA as oM,dq as nM,P as Pd,ap as BM,u as uT,aB as iM,C as Ce,h8 as e3,cK as ID,cL as XM,cM as ED,J as J8,l as le,Z as Zv,S as SN,cb as gt$2,d as de,c as Xl,fQ as cc,cw as lp,ac as qG,ck as mt$1,M as Ma,aE as fM,bu as Hd,Q as QM,aF as sh,ar as yM,aG as ah,I as eM,bv as $d,y as yD,N as tM,m as iD,ai as wD,aJ as tN,j as Vv,bw as EN,aj as eN,k as Pv,G as Gd,h9 as TN,de as rM,bQ as fN,ha as w,al as DM,an as EM,dc as Gm}from'./main-DQKPBURG.js';import'./chunk-DBe14GeB.js';function ot(e,o){if(e&1&&(ta(0,"div",5),Vv(1,"div",6),ta(2,"div",7),Vv(3,"div",8)(4,"div",9),Pd(),Vv(5,"div",10),Pd()),e&2){let t=yM(2);BM(t.cardClass());}}function at(e,o){e&1&&(Vv(0,"hr",15),ta(1,"section",16),Vv(2,"div",17)(3,"div",17)(4,"div",17),Pd());}function st(e,o){if(e&1&&(ta(0,"div",11)(1,"section",12),Vv(2,"div",13)(3,"div",14)(4,"div",13),Pd(),eM(5,at,5,0),Pd()),e&2){let t=yM(2);BM(t.cardClass()),uT(),jv("ngClass",t.isListItemChrome()?"gap-2 p-4":"gap-3 px-3 py-2"),uT(),jv("ngClass",t.isListItemChrome()?"size-[2.125rem]":"size-8"),uT(2),jv("ngClass",t.isListItemChrome()?"size-8":"size-7"),uT(),tM(t.showDetails()?5:-1);}}function rt(e,o){if(e&1&&(ta(0,"li",2),eM(1,ot,6,2,"div",3)(2,st,6,6,"div",4),Pd()),e&2){let t=yM();iD("pb-2",t.isListItemChrome()),uT(),tM(t.isTile()?1:2);}}var Qe=(()=>{class e{constructor(){this.rows=X8(4),this.density=X8("row"),this.rowChrome=X8("list-item"),this.showDetail
1s=X8(true,{transform:ni}),this.cardClass=X8("bg-backgrounds-canvas"),this.skeletonRows=qd(()=>Array.from({length:Math.max(0,Math.trunc(this.rows()))})),this.isTile=qd(()=>this.density()==="tile"),this.isListItemChrome=qd(()=>!this.isTile()&&this.rowChrome()==="list-item"),this.listClass=qd(()=>this.isTile()?"m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2 md:grid-cols-3":this.rowChrome()==="list-row"?"m-0 flex list-none flex-col gap-3 p-0":"m-0 flex list-none flex-col gap-0 px-1.5 py-4 max-sm:pb-28");}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-list-card-skeleton"]],hostAttrs:[1,"block"],inputs:{rows:[1,"rows"],density:[1,"density"],rowChrome:[1,"rowChrome"],showDetails:[1,"showDetails"],cardClass:[1,"cardClass"]},decls:3,vars:2,consts:[["aria-busy","true","aria-live","polite"],["aria-hidden","true",3,"pb-2"],["aria-hidden","true"],[1,"border-borders-primary","flex","animate-pulse","items-center","gap-3","rounded-lg","border","px-3","py-2",3,"class"],[1,"border-borders-primary","flex","animate-pulse","flex-col","rounded-lg","border",3,"class"],[1,"border-borders-primary","flex","animate-pulse","items-center","gap-3","rounded-lg","border","px-3","py-2"],[1,"bg-backgrounds-skeleton-default","size-8","shrink-0","rounded-lg"],[1,"flex","min-w-0","flex-1","flex-col","gap-1"],[1,"bg-backgrounds-skeleton-default","h-4","max-w-[14rem]","rounded"],[1,"bg-backgrounds-skeleton-default","h-3","w-2/3","max-w-[10rem]","rounded"],[1,"bg-backgrounds-skeleton-default","size-7","shrink-0","rounded-lg"],[1,"border-borders-primary","flex","animate-pulse","flex-col","rounded-lg","border"],[1,"flex","w-full","items-center",3,"ngClass"],[1,"bg-backgrounds-skeleton-default","shrink-0","rounded-lg",3,"ngClass"],[1,"bg-backgrounds-skeleton-default","h-4","min-w-0","max-w-[14rem]","flex-1","rounded"],[1,"bg-borders-primary","mx-2","h-px","w-[calc(100%-theme(spacing.4))]"],[1,"flex","flex-col","gap-2","px-3","py-2","sm:grid","sm:grid-cols-3","sm:gap-3"],[1,"bg-backgrounds-skeleton-default","h-3","w-3/4","rounded"]],template:function(i,n){i&1&&(ta(0,"ul",0),oM(1,rt,3,3,"li",1,nM),Pd()),i&2&&(BM(n.listClass()),uT(),iM(n.skeletonRows()));},dependencies:[mx],encapsulation:2});}}return e})();var mt=200,lt=0,Oe=(()=>{class e{#t;#i;#n;#e;constructor(){this.#t=g(gt$2),this.#i=g(de),this.bottomOffset=X8(lt),this.minHeight=X8(mt),this.maxHeight=X8(void 0),this.#n=50,this.#e=On(0),this.remainingHeight=qd(()=>{this.#e();let t=this.maxHeight(),i=this.#t.nativeElement.getBoundingClientRect();if(typeof window>"u")return this.minHeight();let n=window.innerHeight-i.top-this.bottomOffset();return Math.max(this.minHeight(),t?Math.min(t,n):n)}),Xl(()=>{this.#e.set(1),cc(window,"resize").pipe(lp(this.#n),qG(this.#i)).subscribe(()=>this.#e.update(t=>t+1));});}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275dir=mt$1({type:e,selectors:[["","mspotFillHeight",""]],hostVars:2,hostBindings:function(i,n){i&2&&Ma("height",n.remainingHeight(),"px");},inputs:{bottomOffset:[1,"bottomOffset"],minHeight:[1,"minHeight"],maxHeight:[1,"maxHeight"]}});}}return e})();function H(e){return e==="upcoming"}function oe(e){return (e??[]).flatMap(o=>[...o.docs??[]])}function je(e,o){return [...e??[],...oe(o)]}function ze(e,o,t){return H(e)?[...o]:[...t]}function $e(e,o,t){return H(e)?o:t}function qe(e,o,t){(H(e)?o:t).fetchNextPage();}function Ke(e,o=Ae,t=new Date){let i=[],n=null;for(let d of e){let C=d,u$1=u(C.startsAt,o);u$1!==n&&(i.push({kind:"day-header",dayKey:u$1,id:`day-${u$1}`}),n=u$1),i.push({kind:"event",event:d,id:C._id});}return i}function Be(e,o,t){return o==="past"?null:e.find(i=>v(i,t))??e.find(i=>$(i,t))??null}var ae=(()=>{class e{constructor(){this._eventsTanstack=g($e$1),this.tab=On("upcoming"),this.now=On(new Date),this.timeZone=g$1(),this.pageLimit=this._eventsTanstack.eventsPageSize,this.nowQuery=this._eventsTanstack.getNowQuery(this.now),this.upcomingQuery=this._eventsTanstack.getUpcomingInfiniteQuery(this.now),this.pastQuery=this._eventsTanstack.getPastInfiniteQuery(this.now),this.upcomingEvents=qd(()=>je(this.nowQuery.data()?.docs,this.upcomingQuery.data()?.pages)),this.pastEvents=qd(()=>oe(this.pastQuery.data()?.pages)),this.isUpcomingTab=qd(()=>H(this.tab())),this.events=qd(()=>ze(this.tab(),this.upcomingEvents(),this.pastEvents())),this.featuredEvent=qd(()=>Be(this.events(),this.tab(),this.now())),this.scheduleItems=qd(()=>Ke(this.events(),this.timeZone,this.now())),this._queryFlags=qd(()=>$e(this.tab(),{isLoading:this.nowQuery.isLoading()||this.upcomingQuery.isLoading(),isError:this.nowQuery.isError()||this.upcomingQuery.isError(),hasNextPage:this.upcomingQuery.hasNextPage(),isFetchingNextPage:this.upcomingQuery.isFetchingNextPage()},{isLoading:this.pastQuery.isLoading(),isError:this.pastQuery.isError(),hasNextPage:this.pastQuery.hasNextPage(),isFetchingNextPage:this.pastQuery.isFetchingNextPage()})),this.isLoading=qd(()=>this._queryFlags().isLoading),this.isError=qd(()=>this._queryFlags().isError),this.hasNextPage=qd(()=>this._queryFlags().hasNextPage),this.isFetchingNextPage=qd(()=>this._queryFlags().isFetchingNextPage),this.isEmpty=qd(()=>!this.isLoading()&&!this.isError()&&this.events().length===0);}setTab(t){this.tab.set(t),this.repinNow();}fetchNextPage(){qe(this.tab(),this.upcomingQuery,this.pastQuery);}repinNow(){this.now.set(new Date);}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275prov=L({token:e,factory:e.\u0275fac});}}return e})();function We(e,o,t=Ae){return w.fromISO(e,{zone:t}).setLocale(o).toFormat("d. MMMM")}function Xe(e,o,t=Ae){return w.fromISO(e,{zone:t}).setLocale(o).toFormat("EEEE")}function dt(e,o){if(e&1&&QM(0),e&2){let t=yM().$implicit;Gd(" ",t("eventsView.temporal.today")," ");}}function ct(e,o){if(e&1&&QM(0),e&2){let t=yM().$implicit;Gd(" ",t("eventsView.temporal.tomorrow")," ");}}function pt(e,o){if(e&1&&QM(0),e&2){let t=yM(2);Gd(" ",t.dateLabel()," ");}}function gt(e,o){if(e&1&&(ta(0,"div",1)(1,"span",2),eM(2,dt,1,1)(3,ct,1,1)(4,pt,1,1),Pd(),ta(5,"span",3),QM(6),Pd()()),e&2){let t,i=yM();
1Pv("data-cy","events-day-header-"+i.dayKey()),uT(2),tM((t=i.relative())==="today"?2:t==="tomorrow"?3:4),uT(4),Gd("/ ",i.weekday());}}var Ge=(()=>{class e{constructor(){this._transloco=g(Ce),this.dayKey=X8.required(),this.now=X8(new Date),this.timeZone=X8(Ae),this.weekday=qd(()=>Xe(this.dayKey(),this._transloco.getActiveLang(),this.timeZone())),this.dateLabel=qd(()=>We(this.dayKey(),this._transloco.getActiveLang(),this.timeZone())),this.relative=qd(()=>_(this.dayKey(),this.now(),this.timeZone()));}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-event-day-header"]],hostAttrs:[1,"block"],inputs:{dayKey:[1,"dayKey"],now:[1,"now"],timeZone:[1,"timeZone"]},features:[cN([L$1()])],decls:1,vars:0,consts:[["class","flex items-baseline gap-1 pt-1",4,"transloco"],[1,"flex","items-baseline","gap-1","pt-1"],[1,"text-text-default","shrink-0","text-xs","font-semibold"],[1,"text-text-subtle","shrink-0","text-xs"]],template:function(i,n){i&1&&gv(0,gt,7,3,"div",0);},dependencies:[yt$1],encapsulation:2});}}return e})();function ut(e,o){if(e&1&&Vv(0,"img",11),e&2){let t=yM(),i=tN(0);iD("opacity-80",t.past()),jv("src",o,Gm),Pv("data-cy","events-featured-"+i._id+"-cover");}}function vt(e,o){e&1&&(ta(0,"div",3),Vv(1,"ng-icon",12),Pd());}function ht(e,o){e&1&&(ta(0,"p",10),QM(1),Pd()),e&2&&(uT(),yD(o));}var Je=(()=>{class e{constructor(){this._transloco=g(Ce),this.event=X8.required(),this.now=X8(new Date),this.timeZone=X8(Ae),this.openDetails=J8(),this.locale=qd(()=>this._transloco.getActiveLang()),this.coverUrl=qd(()=>K(this.event().coverUrl)),this.description=qd(()=>G(this.event())),this.past=qd(()=>this.event().endsAt.getTime()<=this.now().getTime());}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-event-featured"]],hostAttrs:[1,"block"],inputs:{event:[1,"event"],now:[1,"now"],timeZone:[1,"timeZone"]},outputs:{openDetails:"openDetails"},decls:15,vars:14,consts:[["type","button",1,"group/event-item","relative","flex","w-full","flex-col","text-left",3,"click"],[1,"relative","h-44","overflow-hidden","rounded-xl"],["alt","",1,"size-full","object-cover",3,"src","opacity-80"],[1,"from-backgrounds-subtle","to-backgrounds-surface-raised","bg-linear-to-br","flex","size-full","items-center","justify-center"],["aria-hidden","true",1,"absolute","inset-x-0","bottom-0","h-28","backdrop-blur-md","[mask-image:linear-gradient(to_top,black,transparent)]"],[1,"absolute","inset-x-0","bottom-0","z-[1]","flex","flex-col","gap-1","bg-gradient-to-t","from-black/70","to-transparent","px-4","pb-4","pt-16"],[1,"w-fit","max-w-full","text-xl","font-semibold","leading-snug","text-white"],[1,"flex","min-w-0","flex-wrap","items-center","gap-2"],[1,"min-w-0","truncate","text-xs","text-white/80"],[3,"event","now","timeZone"],[1,"line-clamp-1","text-xs","text-white/80"],["alt","",1,"size-full","object-cover",3,"src"],["name","hero-calendar-days",1,"text-text-subtle","text-4xl"]],template:function(i,n){if(i&1){let d=fM();wD(0),ta(1,"button",0),Zv("click",function(){sh(d);let u=tN(0);return ah(n.openDetails.emit(u))}),ta(2,"div",1),eM(3,ut,1,4,"img",2)(4,vt,2,0,"div",3),Vv(5,"div",4),ta(6,"div",5)(7,"h2",6),QM(8),Pd(),ta(9,"div",7)(10,"p",8),QM(11),EN(12,"eventTimeRange"),Pd(),Vv(13,"mspot-event-status-badge",9),Pd(),eM(14,ht,2,1,"p",10),Pd()()();}if(i&2){let d,C,u=eN(n.event());uT(3),tM((d=n.coverUrl())?3:4,d),uT(4),Pv("data-cy","events-list-item-"+u._id),uT(),Gd(" ",u.title," "),uT(3),Gd(" ",TN(12,9,u.startsAt,u.endsAt,n.timeZone(),n.locale())," "),uT(2),jv("event",u)("now",n.now())("timeZone",n.timeZone()),uT(),tM((C=n.description())?14:-1,C);}},dependencies:[me,le,P],encapsulation:2});}}return e})();var ft=[[["","eventItemMeta",""]],[["","eventItemActions",""]]],_t=["[eventItemMeta]","[eventItemActions]"];function xt(e,o){if(e&1&&Vv(0,"img",3),e&2){let t=yM();jv("src",o,Gm),Pv("data-cy",t.titleDataCy()+"-cover");}}function bt(e,o){e&1&&(ta(0,"div",4),Vv(1,"ng-icon",13),Pd());}function Ct(e,o){e&1&&(ta(0,"del",8),QM(1),Pd()),e&2&&(uT(),yD(o));}function yt(e,o){e&1&&(ta(0,"p",9),QM(1),Pd()),e&2&&(uT(),Gd(" ",o," "));}var Ye=(()=>{class e{constructor(){this.title=X8.required(),this.timeRange=X8.required(),this.event=X8.required(),this.coverUrl=X8(null),this.description=X8(null),this.titleDataCy=X8(),this.now=X8(new Date),this.timeZone=X8(Ae),this.activated=J8(),this.previousStartLabel=qd(()=>{let i=this.event().previousStartsAt?.at(-1);if(i)return L$2([i],this.timeZone())[0]});}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-event-item-view"]],hostAttrs:[1,"block"],inputs:{title:[1,"title"],timeRange:[1,"timeRange"],event:[1,"event"],
1coverUrl:[1,"coverUrl"],description:[1,"description"],titleDataCy:[1,"titleDataCy"],now:[1,"now"],timeZone:[1,"timeZone"]},outputs:{activated:"activated"},ngContentSelectors:_t,decls:17,vars:9,consts:[[1,"group/event-item","hover:bg-backgrounds-subtle","relative","grid","w-full","min-w-0","grid-cols-[auto_minmax(0,1fr)_auto]","items-start","gap-x-3","gap-y-1","overflow-hidden","rounded-lg"],[1,"col-start-1","row-span-2","row-start-1","h-24"],[1,"bg-backgrounds-subtle","relative","h-24","min-w-24","max-w-24","overflow-hidden","rounded-lg","sm:min-w-40","sm:max-w-40"],["alt","",1,"h-full","w-full","object-cover",3,"src"],[1,"text-text-subtle","flex","h-full","w-full","items-center","justify-center"],["type","button",1,"col-start-2","row-start-1","flex","w-full","min-w-0","flex-col","gap-0.5","text-left",3,"click"],[1,"text-text-default","min-w-0","truncate","text-sm","font-semibold"],[1,"text-text-subtle","text-xs"],["data-cy","events-item-moved",1,"text-text-subtle","text-xs"],[1,"text-text-subtle","line-clamp-1","hidden","text-xs","sm:block"],[1,"mt-0.5",3,"event","now","timeZone"],[1,"col-start-2","row-start-2","min-w-0","[&:not(:has([eventItemMeta]))]:hidden"],[1,"col-start-3","row-span-2","row-start-1","self-start"],["name","hero-calendar-days",1,"text-xl"]],template:function(i,n){if(i&1&&(DM(ft),ta(0,"div",0)(1,"div",1)(2,"div",2),eM(3,xt,1,2,"img",3)(4,bt,2,0,"div",4),Pd()(),ta(5,"button",5),Zv("click",function(){return n.activated.emit()}),ta(6,"span",6),QM(7),Pd(),ta(8,"p",7),QM(9),Pd(),eM(10,Ct,2,1,"del",8),eM(11,yt,2,1,"p",9),Vv(12,"mspot-event-status-badge",10),Pd(),ta(13,"div",11),EM(14),Pd(),ta(15,"div",12),EM(16,1),Pd()()),i&2){let d,C,u;uT(3),tM((d=n.coverUrl())?3:4,d),uT(3),Pv("data-cy",n.titleDataCy()),uT(),Gd(" ",n.title()," "),uT(2),yD(n.timeRange()),uT(),tM((C=n.previousStartLabel())?10:-1,C),uT(),tM((u=n.description())?11:-1,u),uT(),jv("event",n.event())("now",n.now())("timeZone",n.timeZone());}},dependencies:[le,me],encapsulation:2});}}return e})();var et=(()=>{class e{constructor(){this._transloco=g(Ce),this.event=X8.required(),this.now=X8(new Date),this.timeZone=X8(Ae),this.openDetails=J8(),this.locale=qd(()=>this._transloco.getActiveLang()),this.description=qd(()=>G(this.event()));}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-event-item"]],hostAttrs:[1,"block"],inputs:{event:[1,"event"],now:[1,"now"],timeZone:[1,"timeZone"]},outputs:{openDetails:"openDetails"},decls:3,vars:14,consts:[[3,"activated","title","timeRange","event","now","timeZone","coverUrl","description","titleDataCy"]],template:function(i,n){if(i&1){let d=fM();wD(0),ta(1,"mspot-event-item-view",0),EN(2,"eventTimeRange"),Zv("activated",function(){sh(d);let u=tN(0);return ah(n.openDetails.emit(u))}),Pd();}if(i&2){let d=eN(n.event());uT(),jv("title",d.title)("timeRange",TN(2,9,d.startsAt,d.endsAt,n.timeZone(),n.locale()))("event",d)("now",n.now())("timeZone",n.timeZone())("coverUrl",d.coverUrl)("description",n.description())("titleDataCy","events-list-item-"+d._id);}},dependencies:[Ye,P],encapsulation:2});}}return e})();function wt(e,o){if(e&1&&Vv(0,"mspot-event-day-header",5),e&2){let t=yM(),i=t.$implicit,n=t.index,d=yM();iD("mt-2",n>1),jv("dayKey",i.dayKey)("now",d.now())("timeZone",d.timeZone());}}function Et(e,o){if(e&1){let t=fM();ta(0,"mspot-event-featured",6),Zv("openDetails",function(n){sh(t);let d=yM(2);return ah(d.openDetails.emit(n))}),Pd();}if(e&2){let t=yM().$implicit,i=yM();jv("event",t.event)("now",i.now())("timeZone",i.timeZone());}}function Dt(e,o){if(e&1){let t=fM();ta(0,"mspot-event-item",6),Zv("openDetails",function(n){sh(t);let d=yM(2);return ah(d.openDetails.emit(n))}),Pd();}if(e&2){let t=yM().$implicit,i=yM();jv("event",t.event)("now",i.now())("timeZone",i.timeZone());}}function Nt(e,o){if(e&1&&eM(0,wt,1,5,"mspot-event-day-header",3)(1,Et,1,3,"mspot-event-featured",4)(2,Dt,1,3,"mspot-event-item",4),e&2){let t=o.$implicit,i=yM();tM(t.kind==="day-header"?0:i.featuredEventId()===t.event._id?1:2);}}function Tt(e,o){e&1&&(ta(0,"div",7),Vv(1,"ng-icon",8),Pd());}var tt=(()=>{class e{constructor(){this.items=X8.required(),this.pageLimit=X8.required(),this.hasNextPage=X8(false),this.isFetchingNextPage=X8(false),this.now=X8(new Date),this.timeZone=X8(Ae),this.featuredEventId=X8(null),this.fetchNextPage=J8(),this.openDetails=J8();}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-events-schedule-list"]],hostAttrs:[1,"flex","min-h-0"],inputs:{items:[1,"items"],pageLimit:[1,"pageLimit"],hasNextPage:[1,"hasNextPage"],isFetchingNextPage:[1,"isFetchingNextPage"],now:[1,"now"],timeZone:[1,"timeZone"],featuredEventId:[1,"featuredEventId"]},outputs:{fetchNextPage:"fetchNextPage",openDetails:"openDetails"},decls:5,vars:5,consts:[["infiniteListItem",""],["infiniteListLoading",""],["containerClass","px-1.5 py-2",1,"min-h-0","flex-1",3,"fetchNextPage","items","pageLimit","estimateSize","hasNextPage","isFetchingNextPage"],[3,"mt-2","dayKey","now","timeZone"],[1,"py-1",3,"event","now","timeZone"],[3,"dayKey","now","timeZone"],[1,"py-1",3,"openDetails","event","now","timeZone"],[1,"text-text-subtle","flex","items-center","justify-center","gap-2","py-4","text-sm"],["name","hero-arrow-path",1,"animate-spin","text-base"]],template:function(i,n){i&1&&(ta(0,"mspot-infinite-list",2),Zv("fetchNextPage",function(){return n.fetchNextPage.emit()}),gv(1,Nt,3,1,"ng-template",null,0,SN)(3,Tt,2,0,"ng-template",null,1,SN),Pd()),i&2&&jv("items",n.items())("pageLimit",n.pageLimit())("estimateSize",120)("hasNextPage",n.hasNextPage())("isFetchingNextPage",n.isFetchingNextPage());},dependencies:[Ae$1,Ge,Je,et,le],encapsulation:2});}}return e})();var it=(()=>{class e{constructor(){this._transloco=g(Ce),this._activeLang=YG(this._transloco.langChanges$,{initialValue:this._transloco.getActiveLang()}),this.tab=e3.required(),this.ariaLabel=X8(void 0),this.tabs=qd(()=>(this._activeLang(),[{tabId:"upcoming",label:{translated:this._transloco.translate("events.page.upcomingTab")},dataCy:"events-tab-upcoming"},{tabId:"past",label:{translated:this._transloco.translate("events.page.pastTab")},dataCy:"events-tab-past"}]));}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-events-toolbar"]],hostAttrs:[1,"block","w-full"],inputs:{tab:[1,"tab"],ariaLabel:[1,"ariaLabel"]},outputs:{tab:"tabChange"},decls:1,vars:3,consts:[["variant","switch","tabClass","w-1/2",1,"w-full",3,"activeTabIdC
1hange","tabs","activeTabId","ariaLabel"]],template:function(i,n){i&1&&(ta(0,"mspot-tabs",0),ID("activeTabIdChange",function(C){return XM(n.tab,C)||(n.tab=C),C}),Pd()),i&2&&(jv("tabs",n.tabs()),ED("activeTabId",n.tab),jv("ariaLabel",n.ariaLabel()));},dependencies:[ge],encapsulation:2});}}return e})();var Mt=e=>[e];function Lt(e,o){if(e&1&&(Hd(0),QM(1),$d()),e&2){let t=o.$implicit;uT(),yD(t("text.events"));}}function Pt(e,o){e&1&&Vv(0,"mspot-list-card-skeleton",7),e&2&&jv("rows",6)("showDetails",false);}function St(e,o){if(e&1&&Vv(0,"mspot-empty-state",8),e&2){let t=yM().$implicit;jv("title",t("errorTitle"));}}function It(e,o){if(e&1&&(ta(0,"mspot-card",9),Vv(1,"mspot-empty-state",10),Pd()),e&2){let t=yM().$implicit,i=yM();uT(),jv("title",i.store.isUpcomingTab()?t("emptyUpcomingTitle"):t("emptyPastTitle"))("description",i.store.isUpcomingTab()?t("emptyUpcomingDescription"):t("emptyPastDescription"));}}function Ft(e,o){if(e&1){let t=fM();ta(0,"mspot-events-schedule-list",12),Zv("fetchNextPage",function(){sh(t);let n=yM(3);return ah(n.store.fetchNextPage())})("openDetails",function(n){sh(t);let d=yM(3);return ah(d.openDetails(n))}),Pd();}if(e&2){let t=yM(3);jv("minHeight",t.scheduleListMinHeight())("bottomOffset",32)("items",t.store.scheduleItems())("featuredEventId",t.store.featuredEvent()?._id??null)("pageLimit",t.store.pageLimit)("now",t.store.now())("timeZone",t.store.timeZone)("hasNextPage",t.store.hasNextPage())("isFetchingNextPage",t.store.isFetchingNextPage());}}function kt(e,o){if(e&1&&oM(0,Ft,1,9,"mspot-events-schedule-list",11,rM),e&2){let t=yM(2);iM(fN(0,Mt,t.store.tab()));}}function Zt(e,o){if(e&1){let t=fM();Hd(0),ta(1,"div",1)(2,"header",2)(3,"h1",3),gv(4,Lt,2,1,"ng-container",4),Pd(),ta(5,"p",5),QM(6),Pd()(),ta(7,"mspot-events-toolbar",6),Zv("tabChange",function(n){sh(t);let d=yM();return ah(d.store.setTab(n))}),Pd(),eM(8,Pt,1,2,"mspot-list-card-skeleton",7)(9,St,1,1,"mspot-empty-state",8)(10,It,2,2,"mspot-card",9)(11,kt,2,2),Pd(),$d();}if(e&2){let t=o.$implicit,i=yM();uT(6),yD(t("subtitle")),uT(),jv("tab",i.store.tab())("ariaLabel",t("tabsLabel")),uT(),tM(i.store.isLoading()?8:i.store.isError()?9:i.store.isEmpty()?10:11);}}var nt=(()=>{class e{constructor(){this._isXs=YG(g(n$1),{initialValue:false}),this._router=g(H$1),this.store=g(ae),this.scheduleListMinHeight=qd(()=>this._isXs()?480:200);}ngOnInit(){this.store.repinNow();}openDetails(t){O(this._router,t._id);}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-events-page"]],features:[cN([ae])],decls:1,vars:1,consts:[[4,"transloco","translocoPrefix"],[1,"flex","flex-col","gap-4","px-4","pt-4"],[1,"flex","flex-col","gap-1"],[1,"heading1"],[4,"transloco"],[1,"text-text-subtle","text-sm"],[3,"tabChange","tab","ariaLabel"],["density","row","cardClass","bg-backgrounds-surface-raised shadow",3,"rows","showDetails"],["variant","error","icon","heroExclamationCircle",3,"title"],[1,"block","p-6"],["variant","first-use","icon","heroCalendar",3,"title","description"],["mspotFillHeight","",3,"minHeight","bottomOffset","items","featuredEventId","pageLimit","now","timeZone","hasNextPage","isFetchingNextPage"],["mspotFillHeight","",3,"fetchNextPage","openDetails","minHeight","bottomOffset","items","featuredEventId","pageLimit","now","timeZone","hasNextPage","isFetchingNextPage"]],template:function(i,n){i&1&&gv(0,Zt,12,4,"ng-container",0),i&2&&jv("translocoPrefix","events.page");},dependencies:[yt$1,gt$1,Qe,b,it,tt,Oe],encapsulation:2});}}return e})();var fn=[{path:"",providers:[f()],children:[{path:"",component:nt}]}];export{fn as eventsRoutes};
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.