1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[29704],{29704:(R,r,e)=>{e.r(r),e.d(r,{TeamGamesModule:()=>P});var h=e(49189),g=e(72200),l=e(38132),u=e(3356),v=e(60152),f=e(63924),p=e(51589),S=e(25615),t=e(73664),b=e(91029),x=e(80322),M=e(71760),O=e(68018);let I=(()=>{class a{globalVars;teamService;clubService;gamesService;sectionsService;router;games=[];loading=!1;multipleSections=!1;teamId;sub1;team;moment;start;end;dateTitle;constructor(s,n,i,o,m,j){this.globalVars=s,this.teamService=n,this.clubService=i,this.gamesService=o,this.sectionsService=m,this.router=j,this.moment=this.globalVars.getMoment(),this.sub1=this.teamService.subscribe("teamReady",()=>{this.getInitialData()})}ngOnDestroy(){this.sub1.unsubscribe()}ngOnInit(){this.multipleSections=this.sectionsService.getSections().length>1||!1,this.teamId||this.getInitialData()}getInitialData(){this.loading=!0,this.team=this.teamService.getTeam(),this.teamId=this.teamService.getTeam()?.teamId,this.start=this.moment().startOf("month").toISOString(),this.end=this.moment().endOf("month").toISOString(),this.teamService.setMeta(this.router.url,"games"),this.teamId&&this.loadGames()}next(){this.loading=!0,this.start=this.moment(this.start).add(1,"months").startOf("month").toISOString(),this.end=this.moment(this.start).endOf("month").toISOString(),this.teamId&&this.loadGames()}prev(){this.loading=!0,this.start=this.moment(this.start).subtract(1,"months").startOf("month").toISOString(),this.end=this.moment(this.start).endOf("month").toISOString(),this.teamId&&this.loadGames()}loadGames(){this.games=[],this.dateTitle=this.moment(this.start).format("MMMM"),this.gamesService.getGames(this.clubService.getClubId(),this.teamId,this.start,this.end,null,this.clubService.getClubId()).subscribe({next:s=>{if(this.games=s.games,this.games.length>0){let n=[];this.games.forEach(i=>{n.some(o=>this.moment(o.date).isSame(this.moment(i.date),"day"))?n.find(m=>this.moment(m.date).isSame(this.moment(i.date),"day")).games.push(i):n.push({date:i.date,games:[i]})}),this.games.push(n)}this.loading=!1},error:s=>console.error("Error getting team games:",s)})}static \u0275fac=function(n){return new(n||a)(t.rXU(S.Y),t.rXU(p.n),t.rXU(v.X),t.rXU(u.n),t.rXU(f.c),t.rXU(b.Ix))};static \u0275cmp=t.VBU({type:a,selectors:[["app-team-games"]],standalone:!1,decls:10,vars:10,consts:[[1,"main-container"],[1,"date-nav"],["role","button","tabindex","0",1,"fa-solid","fa-chevron-left","prev",3,"click"],[1,"clupik-title-h2","center","first-letter"],["role","button","tabindex","0",1,"fa-solid","fa-chevron-right","next",3,"click"],[3,"loading","selectedGames","multipleSections"],["position","center",1,"banner-no-pb"]],template:function(n,i){1&n&&(t.j41(0,"div",0)(1,"div",1)(2,"i",2),t.nI1(3,"translate"),t.bIt("click",function(){return i.prev()}),t.k0s(),t.j41(4,"span",3),t.EFF(5),t.k0s(),t.j41(6,"i",4),t.nI1(7,"translate"),t.bIt("click",function(){return i.next()}),t.k0s()(),t.nrm(8,"app-games-show",5),t.k0s(),t.nrm(9,"app-banners",6)),2&n&&(t.R7$(2),t.BMQ("aria-label",t.bMT(3,6,"global.common.previous")),t.R7$(3),t.JRh(i.dateTitle),t.R7$(),t.BMQ("aria-label",t.bMT(7,8,"global.common.next")),t.R7$(2),t.Y8G("loading",i.loading)("selectedGames",i.games)("multipleSections",i.multipleSections))},dependencies:[x.w,M.L,O.D9],styles:[".main-container[_ngcontent-%COMP%]{padding-top:var(--module)}@media (max-width: 991px){.main-container[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.date-nav[_ngcontent-%COMP%]{margin:0 auto;display:flex;align-items:center;justify-content:center;margin-bottom:var(--module)}@media (max-width: 991px){.date-nav[_ngcontent-%COMP%]{margin-left:0;margin-right:0;flex-grow:1;margin-bottom:0;border-top:var(--border);border-bottom:var(--border);padding:10px 20px}}.date-nav[_ngcontent-%COMP%] .clupik-title-h2[_ngcontent-%COMP%]{cursor:pointer;margin:0 var(--module);min-width:300px}@media (max-width: 991px){.date-nav[_ngcontent-%COMP%] .clupik-title-h2[_ngcontent-%COMP%]{margin-left:0;margin-right:0;flex-grow:1}}.date-nav[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;color:var(--link-color)}@media (max-width: 991px){.date-nav[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:var(--module)}}@media (max-width: 991px){.prev[_ngcontent-%COMP%]{margin-left:0;display:flex;align-items:center;justify-content:flex-start}}@media (max-width: 991px){.next[_ngcontent-%COMP%]{margin-right:0;display:flex;align-items:center;justify-content:flex-end}}"]})}return a})();
1var d=e(2615);const C=[{path:"",component:I}];let c=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275mod=t.$C({type:a});static \u0275inj=d.G2t({imports:[l.iI.forChild(C),l.iI]})}return a})();var G=e(42533),y=e(90399),T=e(53671);let P=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275mod=t.$C({type:a});static \u0275inj=d.G2t({imports:[g.MD,h.G,c,G.x,y.e,T.Y,c]})}return a})()}}]);
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.