1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6055],{6055:(C,p,e)=>{e.r(p),e.d(p,{CompetitionDetailComponent:()=>S});var l=e(10467),n=e(2615),r=e(91029),E=e(75281),d=e(68018),c=e(89079),h=e(54843),M=e(82e3),u=e(60152),f=e(26221),I=e(17633),P=e(5044),R=e(7030),g=e(35424),T=e(53671),t=e(73664),s=e(69415),m=e(48142),O=e(88817),A=e(79146);const L=()=>["global.search.nothing_found","module.competition.competition_detail.load_error"];function x(a,D){1&a&&(t.j41(0,"div",0),t.nrm(1,"app-skeleton-line",2),t.j41(2,"div",3)(3,"div",4),t.nrm(4,"app-skeleton-line",2)(5,"app-skeleton-line",2)(6,"app-skeleton-line",2)(7,"app-skeleton-line",2),t.k0s()()()),2&a&&(t.R7$(),t.Y8G("width",100)("height",200),t.R7$(3),t.Y8G("width",10)("height",14),t.R7$(),t.Y8G("width",10)("height",14),t.R7$(),t.Y8G("width",10)("height",14),t.R7$(),t.Y8G("width",10)("height",14))}function B(a,D){1&a&&t.nrm(0,"app-empty-space",1),2&a&&t.Y8G("noButton",!0)("textArray",t.lJ4(2,L))}function b(a,D){if(1&a&&(t.j41(0,"span",9),t.EFF(1),t.k0s()),2&a){const i=t.XpG(2);t.R7$(),t.JRh(i.competition().season.title)}}function y(a,D){if(1&a&&(t.j41(0,"span",9),t.EFF(1),t.k0s()),2&a){const i=t.XpG(2);t.R7$(),t.JRh(i.competition().organization.name)}}function U(a,D){if(1&a&&(t.j41(0,"span",9),t.EFF(1),t.k0s()),2&a){const i=t.XpG(2);t.R7$(),t.JRh(i.genderLabel())}}function K(a,D){if(1&a&&(t.j41(0,"app-clupik-header",5)(1,"div",6)(2,"div",7),t.EFF(3),t.k0s(),t.j41(4,"div",8),t.nVh(5,b,2,1,"span",9),t.nVh(6,y,2,1,"span",9),t.nVh(7,U,2,1,"span",9),t.k0s()()(),t.nrm(8,"app-clupik-public-navtabs",10),t.j41(9,"div",11),t.nrm(10,"router-outlet"),t.k0s()),2&a){let i,o,_;const v=t.XpG();t.Y8G("isDarkMode",!0)("hasSelect",!1),t.R7$(),t.BMQ("data-test","competition-detail-header"),t.R7$(2),t.JRh(null==(i=v.competition())?null:i.name),t.R7$(2),t.vxM(null!=(o=v.competition())&&null!=o.season&&o.season.title?5:-1),t.R7$(),t.vxM(null!=(_=v.competition())&&null!=_.organization&&_.organization.name?6:-1),t.R7$(),t.vxM(v.genderLabel()?7:-1),t.R7$(),t.Y8G("tabs",v.navTabs())}}let S=(()=>{class a{route=(0,n.WQX)(r.nX);router=(0,n.WQX)(r.Ix);translate=(0,n.WQX)(d.c$);destroyRef=(0,n.WQX)(n.abz);clubsService=(0,n.WQX)(u.X);apiCompetitionsService=(0,n.WQX)(M.Y);gamesFiltersState=(0,n.WQX)(f.j);competitionId=(0,n.vPA)(null);competition=(0,n.vPA)(null);loading=(0,n.vPA)(!0);failed=(0,n.vPA)(!1);navTabs=(0,n.vPA)([]);skeletonRows=[0,1,2,3,4,5];ngOnInit(){this.route.paramMap.pipe((0,c.pQ)(this.destroyRef)).subscribe(i=>{const o=i.get("tournamentId");o&&o!==this.competitionId()&&(this.competitionId.set(o),this.load(o))})}genderLabel(){const i=this.competition()?.gender;return"male"===i?(0,g.S)(this.translate,"module.user.male","Masculino"):"female"===i?(0,g.S)(this.translate,"module.user.female","Femenino"):"mixed"===i?(0,g.S)(this.translate,"global.common.mixed","Mixto"):""}load(i){var o=this;return(0,l.A)(function*(){o.loading.set(!0),o.failed.set(!1);try{const _=yield(0,h._)(o.apiCompetitionsService.getCompetition(i));o.competition.set(_??null),o.failed.set(!_),o.loading.set(!1),o.buildNavTabs(i),_&&o.gamesFiltersState.patch({season:_.seasonId??null,organizer:_.organizationId??null,competition:i})}catch{o.competition.set(null),o.failed.set(!0),o.loading.set(!1)}})()}buildNavTabs(i){const o=`/${this.clubsService.getLanguageInUseCode()}/competitions/tournaments/${i}`;this.navTabs.set([["module.competition.competition_detail.tabs.summary","resumen","Resumen"],["module.competition.competition_detail.tabs.stats","estadisticas","Estadisticas"],["module.competition.competition_detail.tabs.games","partidos","Partidos"],["module.competition.competition_detail.tabs.standings","clasificacion","Clasificacion"]].map(([v,W,k])=>({name:(0,g.S)(this.translate,v,k),type:"router",link:`${o}/${W}`,active:this.router.url.includes(`/${W}`)})))}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=t.VBU({type:a,selectors:[["app-competition-detail"]],decls:3,vars:3,consts:[[1,"tournament-skeleton"],["size","sm","svgImage","file-searching",3,"noButton","textArray"],[3,"width","height"],[1,"main-container"],[1,"nav"],[3,"isDarkMode","hasSelect"],[1,"competition-detail__header"],[1,"title-text","h1","competition-detail__name","dark-color"],[1,"competition-detail__meta"],[1,"text","sm","dark-color"],[3,"tabs"],[1,"competition-detail__c
1ontent","main-container","public-dashboard","extra-padding","white"]],template:function(o,_){1&o&&(t.nVh(0,x,8,10,"div",0),t.nVh(1,B,1,3,"app-empty-space",1),t.nVh(2,K,11,8)),2&o&&(t.vxM(_.loading()?0:-1),t.R7$(),t.vxM(!_.loading()&&_.failed()?1:-1),t.R7$(),t.vxM(_.loading()||_.failed()?-1:2))},dependencies:[r.n3,E.IonicModule,R.g,s.p,I.E,m.x,P.r,O.W,T.Y,A.B],styles:['@charset "UTF-8";.competition-detail__header[_ngcontent-%COMP%]{padding:24px 16px 16px}.competition-detail__name[_ngcontent-%COMP%]{overflow-wrap:anywhere}.competition-detail__meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px}.competition-detail__meta[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:not(:last-child):after{content:"\\2022";margin-left:8px}.competition-detail__content[_ngcontent-%COMP%]{min-height:40vh}.competition-detail__content.main-container[_ngcontent-%COMP%]{padding-left:0;padding-right:0}@media (max-width: 991px){.competition-detail__content.main-container[_ngcontent-%COMP%]{padding-left:20px;padding-right:20px}}.competition-detail__skeleton[_ngcontent-%COMP%]{padding:16px}.competition-detail__skeleton[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:4px;margin-bottom:8px}.competition-detail__skeleton-header[_ngcontent-%COMP%]{height:72px}.competition-detail__skeleton-tabs[_ngcontent-%COMP%]{height:40px}.competition-detail__skeleton-row[_ngcontent-%COMP%]{height:32px}.tournament-skeleton[_ngcontent-%COMP%]{padding-bottom:calc(var(--module) * 2)}.tournament-skeleton[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{padding:var(--module) 0}.tournament-skeleton[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] app-skeleton-line[_ngcontent-%COMP%]{margin-right:var(--module)}']})}return a})()},17633:(C,p,e)=>{e.d(p,{E:()=>M});var l=e(72200),n=e(19072),r=e(35745),E=e(49189),d=e(73664),c=e(2615);e(48142);let M=(()=>{class u{static \u0275fac=function(P){return new(P||u)};static \u0275mod=d.$C({type:u});static \u0275inj=c.G2t({imports:[E.G,r.C,l.MD,n.$]})}return u})()},19072:(C,p,e)=>{e.d(p,{$:()=>d});var l=e(49189),n=e(73664),r=e(2615);e(31165);let d=(()=>{class c{static \u0275fac=function(u){return new(u||c)};static \u0275mod=n.$C({type:c});static \u0275inj=r.G2t({imports:[l.G]})}return c})()},26221:(C,p,e)=>{e.d(p,{j:()=>R});var l=e(2615),n=e(23597),r=e(89079),E=e(91029),d=e(23294),c=e(25558),h=e(19724),M=e(96354),u=e(27544),f=e(60152),I=e(82101);const P=["season","from","to","live","section","team","organizer","competition","phase"];let R=(()=>{class g{_router=(0,l.WQX)(E.Ix);_clubsService=(0,l.WQX)(f.X);_apiSeasonsService=(0,l.WQX)(u.o);_moment=(0,l.WQX)(I.O).getMoment();_rawParams=(0,l.vPA)(this._router.routerState.snapshot.root.queryParamMap);_resolvedSeasonId=(0,l.vPA)(void 0);constructor(){this._router.events.pipe((0,r.pQ)()).subscribe(()=>{const t=this._router.routerState.snapshot.root.queryParamMap;t!==this._rawParams()&&this._rawParams.set(t)}),(0,r.br)((0,n.EW)(()=>this._rawParams().get("season"))).pipe((0,d.F)(),(0,c.n)(t=>t?(0,h.H)([t]):(0,h.H)(this._apiSeasonsService.getCurrentSeason()).pipe((0,M.T)(s=>s?.id??null))),(0,r.pQ)()).subscribe(t=>this._resolvedSeasonId.set(t))}seasonReady=(0,n.EW)(()=>void 0!==this._resolvedSeasonId());clubMode=(0,n.EW)(()=>this._clubsService.isClubCLB?"section-team":"competition");seasonId=(0,n.EW)(()=>this._resolvedSeasonId());isLive=(0,n.EW)(()=>"true"===this._rawParams().get("live"));dateRange=(0,n.EW)(()=>{const t=this._rawParams(),s=t.get("from"),m=t.get("to");return s||m?{from:this._moment(s??m).startOf("day").toISOString(),to:this._moment(m??s).endOf("day").toISOString()}:"true"===t.get("live")?{from:this._moment().subtract(1,"day").startOf("day").toISOString(),to:this._moment().add(7,"days").endOf("day").toISOString()}:{from:this._moment().weekday(0).startOf("day").toISOString(),to:this._moment().weekday(6).endOf("day").toISOString()}});sectionId=(0,n.EW)(()=>this._param("section"));teamId=(0,n.EW)(()=>this._param("team"));organizerId=(0,n.EW)(()=>this._param("organizer"));competitionId=(0,n.EW)(()=>this._param("competition"));phaseGroupId=(0,n.EW)(()=>this._param("phase"));filters=(0,n.EW)(()=>({seasonId:this.seasonId(),...this.dateRange(),isLive:this.isLive(),sectionId:this.sectionId(),teamId:this.teamId(),organizerId:this.organizerId(),competitionId:this.competitionId(),phaseGroupId:this.phaseGroupId()}));patch(t){const s={};for(const m of Object.keys(t)){const O=t[m];s[m]=null==O||"-1"===O?null:O}return this._router.navigate([],{queryParams:s,queryParamsHandling:"merge"})}reset(t=!0){const s={};for(const m of P)t&&"season"===m||(s[m]=null);return this._router.navigate([],{queryParams:s,queryParamsHandling:"merge"})}_param(t){const s=this._rawParams().get(t);return s&&"-1"!==s?s:null}static \u0275fac=function(s){return new(s||g)};static \u0275prov=l.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},35424:(C,p,e)=>{function l(n,r,E){const d=n.instant(r);return d&&d!==r?d:E}e.d(p,{S:()=>l})}}]);
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.