PageSourceSearch

https://www.chcarpesa.es/37058.0e16cc6a7568ce7c.js

js chcarpesa.es collected 2026-10-09 17:23:36 UTC 58,734 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[37058],{3637:(at,A,n)=>{n.d(A,{z:()=>L});var e=n(49189),M=n(73664),d=n(2615);n(11584);let L=(()=>{class P{static \u0275fac=function(t){return new(t||P)};static \u0275mod=M.$C({type:P});static \u0275inj=d.G2t({imports:[e.G]})}return P})()},11584:(at,A,n)=>{n.d(A,{z:()=>W});var e=n(36229),M=n(45276),d=n(26450),g=n(26742),L=n(82e3),P=n(68010),s=n(69915),i=n(73664),t=n(2615),j=n(72200),H=n(88834),$=n(33746),R=n(23620),K=n(82966),J=n(68018);const Z=(u,O)=>({"ios-browser":u,"android-browser":O}),Y=u=>({selected:u});function q(u,O){1&u&&(i.j41(0,"div",7),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&u&&(i.R7$(),i.JRh(i.bMT(2,1,"module.competition.minimum_teams")))}function D(u,O){1&u&&(i.j41(0,"div",7),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&u&&(i.R7$(),i.JRh(i.bMT(2,1,"module.competition.admin_teams_error")))}function z(u,O){1&u&&i.nrm(0,"i",20)}function S(u,O){1&u&&i.nrm(0,"i",21)}function w(u,O){if(1&u&&(i.j41(0,"div",27),i.EFF(1),i.k0s()),2&u){const r=i.XpG().$implicit;i.R7$(),i.JRh(r.id)}}function C(u,O){if(1&u){const r=i.RV6();i.j41(0,"div",28)(1,"button",29),i.bIt("click",function(){t.eBV(r);const h=i.XpG().$implicit,b=i.XpG(2);return t.Njj(b.onDeleteTeam(h))}),i.nrm(2,"i",30),i.k0s()()}}function tt(u,O){if(1&u){const r=i.RV6();i.j41(0,"mat-cell",18)(1,"div",19),i.nI1(2,"translate"),i.bIt("click",function(){const h=t.eBV(r).$implicit,b=i.XpG(2);return t.Njj(b.onSelectTeam(h))}),i.nVh(3,z,1,0,"i",20),i.nVh(4,S,1,0,"i",21),i.k0s(),i.j41(5,"figure",22),i.nI1(6,"translate"),i.bIt("click",function(){const h=t.eBV(r).$implicit,b=i.XpG(2);return t.Njj(b.onSelectTeam(h))}),i.nrm(7,"img",23),i.k0s(),i.j41(8,"div",24),i.nI1(9,"translate"),i.bIt("click",function(){const h=t.eBV(r).$implicit,b=i.XpG(2);return t.Njj(b.onSelectTeam(h))}),i.j41(10,"div",25),i.EFF(11),i.k0s(),i.j41(12,"div",26),i.EFF(13),i.k0s(),i.nVh(14,w,2,1,"div",27),i.k0s(),i.nVh(15,C,3,0,"div",28),i.k0s()}if(2&u){const r=O.$implicit,p=i.XpG(2);i.Y8G("ngClass",i.eq3(18,Y,r.selected)),i.R7$(),i.BMQ("aria-label",i.bMT(2,12,"competition.select_team")),i.R7$(2),i.vxM(r.selected?-1:3),i.R7$(),i.vxM(r.selected?4:-1),i.R7$(),i.BMQ("aria-label",i.bMT(6,14,"global.common.select_team")),i.R7$(2),i.Y8G("src",r.shieldUrl,i.B4B)("alt",r.editableName),i.R7$(),i.BMQ("aria-label",i.bMT(9,16,"competition.select_team")),i.R7$(3),i.SpI("",r.editableName," "),i.R7$(2),i.JRh(r.club.name),i.R7$(),i.vxM(p.isSAdmin?14:-1),i.R7$(),i.vxM(r.selected?15:-1)}}function Q(u,O){1&u&&i.nrm(0,"mat-row")}function T(u,O){if(1&u&&(i.j41(0,"mat-table",11),i.qex(1,15),i.DNE(2,tt,16,20,"mat-cell",16),i.bVm(),i.DNE(3,Q,1,0,"mat-row",17),i.k0s()),2&u){const r=i.XpG();i.Y8G("dataSource",r.dataSource),i.R7$(3),i.Y8G("matRowDefColumns",r.displayedColumns)}}function ot(u,O){1&u&&(i.j41(0,"div"),i.nrm(1,"app-skeleton-block"),i.k0s())}function V(u,O){if(1&u){const r=i.RV6();i.j41(0,"button",31),i.bIt("click",function(){t.eBV(r);const h=i.XpG();return t.Njj(h.onSaveAssociatedTeams())}),i.j41(1,"span"),i.EFF(2),i.nI1(3,"translate"),i.k0s()()}if(2&u){const r=i.XpG();i.Y8G("disabled",r.selectedCount<r.minTeams),i.R7$(2),i.JRh(i.bMT(3,2,"global.button.save"))}}let W=(()=>{class u{competitionsService;competitionsServiceL;dialogRef;appService;authService;imagesService;data;assotiatedTeamsLoaded;assotiatedTeams;aTeamsSearched;aTeamsSelected;teams;selectedCount=0;displayedColumns=["name"];dataSource;phase;group;groupWithFinishedGames;minTeams=1;teamFilter=null;isSAdmin=!1;constructor(r,p,h,b,F,et,l){this.competitionsService=r,this.competitionsServiceL=p,this.dialogRef=h,this.appService=b,this.authService=F,this.imagesService=et,this.data=l}ngOnInit(){this.groupWithFinishedGames=!1;const r=this.data.associatedTeams;this.phase=this.data.phase,this.group=this.data.group,"playoff"==this.phase.type&&(this.minTeams=2),this.isSAdmin=this.authService.isSuperAdmin(),this.aTeamsSearched=[],this.aTeamsSelected=[],this.teams=[],this.selectedCount=0,this.assotiatedTeamsLoaded=!1,this.competitionsService.getCompetitionsAssociateTeams().subscribe(p=>
1{this.prepareProperties(p),this.assotiatedTeams=[...p],this.aTeamsSearched=[...p],this.aTeamsSelected=[...r],this.aTeamsSearched=this.deleteRepeated(this.aTeamsSearched,this.aTeamsSelected),this.aTeamsSearched.map(b=>{b.team.selected=!1,this.putTeamInList(b.team)}),this.aTeamsSelected.map(b=>{b.team.selected=!0,this.putTeamInList(b.team)&&this.selectedCount++}),this.dataSource=new d.I6(this.teams),this.assotiatedTeamsLoaded=!0})}prepareProperties(r){let p=[];return r.forEach(h=>{const b=this.changeNameProperties(h,"");p.push(b)}),p}changeNameProperties(r,p){let h={};return Object.keys(r).forEach(F=>{const et=""==p?F:`${p}.${F}`;h[et]="object"!=typeof r[F]||null==r[F]?r[F]:this.changeNameProperties(r[F],et)}),h}applyFilter(r){r=(r=r.trim()).toLowerCase(),this.dataSource.filter=r}clearTeamFilter(){this.teamFilter="",this.applyFilter(this.teamFilter)}deleteRepeated(r,p){var h=[];return r.forEach(b=>{0==p.filter(F=>F.teamId===b.teamId).length&&h.push(b)}),h}putTeamInList(r){return 0==this.teams.filter(p=>p.id===r.id).length&&(this.teams.push(r),!0)}onSelectTeam(r){if(!r.selected){var p=this.teams.filter(h=>h.id==r.id);null!=p[0]&&(p[0].selected=!0),this.selectedCount++}}onDeleteTeam(r){var p=this.teams.filter(h=>h.id==r.id);null!=p[0]&&(p[0].selected=!1),this.selectedCount--}onSaveAssociatedTeams(){let r=[];this.teams.forEach(p=>{p.selected&&r.push(p.id)}),this.competitionsService.editCompetitionPhaseGroupsTeams(this.phase.id,this.group.id,r).subscribe({next:p=>{this.competitionsServiceL.broadcast("refresh",""),this.dialogRef.close(p)},error:p=>{409===p.status&&(this.groupWithFinishedGames=!0),this.appService.broadcast("showAlert",{state:"danger",mainTitle:"",autoHide:!1})}})}static \u0275fac=function(p){return new(p||u)(i.rXU(L.Y),i.rXU(M.u),i.rXU(e.k),i.rXU(s.d),i.rXU(P.u),i.rXU(g.M),i.rXU(e.e))};static \u0275cmp=i.VBU({type:u,selectors:[["app-manage-competition-group-dialog"]],standalone:!1,decls:25,vars:18,consts:[["id","manage-competition-group"],[1,"modal-clupik"],["mat-dialog-title","mat-dialog-title"],[1,"title"],["mat-button","mat-button","mat-dialog-close","mat-dialog-close",1,"exit-button"],[1,"management-list"],[1,"fix-content",3,"ngClass"],[1,"alert-warning"],[1,"form-row-outlined"],["appearance","outline"],["matInput","matInput",3,"keyup"],["id","teams-table",1,"block-list",3,"dataSource"],[1,"actions-right","modal-fixed-actions"],["mat-dialog-close","mat-dialog-close",1,"btn-close"],["mat-raised-button","mat-raised-button",1,"btn-primary",3,"disabled"],["matColumnDef","name"],["class","content-block clickable",3,"ngClass",4,"matCellDef"],[4,"matRowDef","matRowDefColumns"],[1,"content-block","clickable",3,"ngClass"],["role","button","tabindex","0",1,"content-block-status",3,"click"],[1,"fa-light","fa-check","display-on-hover"],[1,"fa-solid","fa-check-circle","success"],["role","button","tabindex","0",1,"content-block-col",3,"click"],["type","club",3,"src","alt"],["role","button","tabindex","0",1,"content-block-col","flex-grow",3,"click"],[1,"block-title"],[1,"block-subtitle"],[1,"block-id"],[1,"content-block-actions"],[1,"btn-icon",3,"click"],[1,"fa-light","fa-trash","solid-on-hover"],["mat-raised-button","mat-raised-button",1,"btn-primary",3,"click","disabled"]],template:function(p,h){1&p&&(i.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),i.EFF(4),i.nI1(5,"translate"),i.k0s(),i.j41(6,"button",4),i.EFF(7,"\xd7"),i.k0s()(),i.j41(8,"div",5)(9,"mat-dialog-content",6),i.nVh(10,q,3,3,"div",7),i.nVh(11,D,3,3,"div",7),i.j41(12,"div",8)(13,"mat-form-field",9)(14,"mat-label"),i.EFF(15),i.nI1(16,"translate"),i.k0s(),i.j41(17,"input",10),i.bIt("keyup",function(F){return h.applyFilter(F.target.value)}),i.k0s()()(),i.nVh(18,T,4,2,"mat-table",11),i.nVh(19,ot,2,0,"div"),i.k0s()(),i.j41(20,"div",12)(21,"button",13),i.EFF(22),i.nI1(23,"translate"),i.k0s(),i.nVh(24,V,4,4,"button",14),i.k0s()()()),2&p&&(i.R7$(4),i.JRh(i.bMT(5,9,"module.competition.admin_teams")),i.R7$(5),i.Y8G("ngClass",i.l_i(15,Z,null==h.appService?null:h.appService.isIosBrowser,null==h.appService?null:h.appService.isAndroidBrowser)),i.R7$(),i.vxM(h.selectedCount<h.minTeams?10:-1),i.R7$(),i.vxM(h.groupWithFinishedGames?11:-1),i.R7$(4),i.JRh(i.bMT(16,11,"module.teams.search_team")),i.R7$(3),i.vxM(h.assotiatedTeam
1sLoaded?18:-1),i.R7$(),i.vxM(h.assotiatedTeamsLoaded?-1:19),i.R7$(3),i.JRh(i.bMT(23,13,"global.common.close")),i.R7$(2),i.vxM(h.selectedCount>=h.minTeams?24:-1))},dependencies:[j.YU,H.$z,e.a,e.b,e.c,$.fg,R.j,R.M,d.Zl,d.cC,d.YV,d.iL,d.$R,d.NB,K.K,J.D9],styles:[".fa-check-circle[_ngcontent-%COMP%]{font-size:1.2em}.alert-warning[_ngcontent-%COMP%]{width:100%}mat-dialog-content[_ngcontent-%COMP%]{max-height:50vh!important}mat-dialog-content[_ngcontent-%COMP%]   #teams-table[_ngcontent-%COMP%]{overflow-y:scroll}.selected[_ngcontent-%COMP%]{background-color:hsla(var(--link-color-h),var(--link-color-s),var(--link-color-l),.08)}"]})}return u})()},14990:(at,A,n)=>{n.d(A,{H:()=>_t});var e=n(73664),M=n(45276),d=n(13961),g=n(69241),L=n(73294),P=n(51589),s=n(60152),i=n(68010),t=n(25615),j=n(38968),H=n(11584),$=n(90688),R=n(82e3),K=n(61048),J=n(56640),Z=n(69915),Y=n(2615),q=n(36229),D=n(91029),z=n(38132),S=n(53986),w=n(82966),C=n(95176),tt=n(74173),Q=n(68264),T=n(89792),ot=n(49255),V=n(39463),W=n(62282),u=n(68018);const O=()=>[0,1,2,3,4],r=()=>[0,1,2,3,4,5,6,7,8],p=(c,k)=>k.id;function h(c,k){1&c&&(e.nrm(0,"app-alerts",1),e.nI1(1,"translate")),2&c&&e.Y8G("mensaje",e.bMT(1,1,"module.standings.standings_hidden"))}function b(c,k){1&c&&(e.j41(0,"div",3),e.nrm(1,"app-skeleton-block"),e.k0s())}function F(c,k){1&c&&e.nrm(0,"div")}function et(c,k){1&c&&e.nrm(0,"div")}function l(c,k){1&c&&(e.j41(0,"div",4)(1,"div",6),e.Z7z(2,F,1,0,"div",null,e.fX1),e.k0s(),e.j41(4,"div",7),e.Z7z(5,et,1,0,"div",null,e.fX1),e.k0s()()),2&c&&(e.R7$(2),e.Dyx(e.lJ4(0,O)),e.R7$(3),e.Dyx(e.lJ4(1,r)))}function v(c,k){if(1&c&&e.nrm(0,"app-clupik-competition-playoff",8),2&c){const a=e.XpG(4);e.Y8G("competitionIdInput",(null==a.phase?null:a.phase.competitionId)||(null==a.game?null:a.game.competitionId))("phaseIdInput",(null==a.phase?null:a.phase.id)||(null==a.game||null==a.game.group?null:a.game.group.phaseId))}}function o(c,k){if(1&c&&(e.j41(0,"div",17)(1,"div",18)(2,"div",19),e.EFF(3),e.k0s()(),e.j41(4,"div",20)(5,"div",21),e.EFF(6),e.k0s()(),e.j41(7,"div",22)(8,"div",23),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11,"-"),e.k0s(),e.j41(12,"div",24),e.EFF(13),e.k0s()(),e.j41(14,"div",25)(15,"div",21),e.EFF(16),e.k0s()()()),2&c){const a=k.$implicit;e.Y8G("routerLink","/games/"+a.id),e.R7$(3),e.JRh(a.date),e.R7$(3),e.JRh(a.localTeamName),e.R7$(3),e.JRh(a.localScore),e.R7$(4),e.JRh(a.visitorScore),e.R7$(3),e.JRh(a.visitorTeamName)}}function _(c,k){if(1&c&&(e.j41(0,"div",10)(1,"div",11)(2,"div",12),e.nrm(3,"img",13),e.j41(4,"div",14),e.EFF(5),e.k0s(),e.j41(6,"div",15),e.EFF(7),e.k0s()(),e.j41(8,"div",12),e.nrm(9,"img",13),e.j41(10,"div",14),e.EFF(11),e.k0s(),e.j41(12,"div",15),e.EFF(13),e.k0s()()(),e.j41(14,"div",16),e.Z7z(15,o,17,6,"div",17,p),e.k0s()()),2&c){const a=k.$implicit;e.R7$(3),e.Y8G("src",a.image1,e.B4B),e.R7$(2),e.JRh(a.teamName1),e.R7$(2),e.JRh(a.gamesWon1),e.R7$(2),e.Y8G("src",a.image2,e.B4B),e.R7$(2),e.JRh(a.teamName2),e.R7$(2),e.JRh(a.gamesWon2),e.R7$(2),e.Dyx(a.games)}}function m(c,k){if(1&c&&(e.qex(0,9),e.Z7z(1,_,17,6,"div",10,p),e.bVm()),2&c){const a=e.XpG(4);e.R7$(),e.Dyx(a.tableDataPlayoff)}}function y(c,k){if(1&c&&e.nVh(0,v,1,2,"app-clupik-competition-playoff",8)(1,m,3,0,"ng-container",9),2&c){const a=e.XpG(3);e.vxM(a.canPlayOffBeShown?0:1)}}function I(c,k){1&c&&e.nrm(0,"app-clupik-state-bar",26),2&c&&e.Y8G("mainTitle","module.standings.manage_draws_warning")("subtitle","module.standings.manage_draws_warning_desc")}function nt(c,k){if(1&c){const a=e.RV6();e.j41(0,"app-button-link",30),e.bIt("buttonAction",function(){Y.eBV(a);const x=e.XpG(4);return Y.Njj(x.toggleOrder())}),e.k0s()}if(2&c){const a=e.XpG(4);e.Y8G("value",a.tableView?"module.standings.manage_draws":"global.common.back")("iconLeft",!0)("icon",a.tableView?"fa-regular fa-sort-alt":"fa-regular fa-arrow-left")}}function mt(c,k){if(1&c&&e.nrm(0,"app-clupik-table",28),2&c){const a=e.XpG(4);e.Y8G("settings",a.settings)("source",a.tableData)}}function it(c,k){if(1&c&&e.nrm(0,"app-order-rows",29),2&c){const a=e.XpG(4);e.Y8G("canHaveChildren",!1)("rows",a.tableData)}}function rt(c,k){if(1&c&&(e.nVh(0,I,1,2,"app-clupik-state-bar",26),e.nVh(1,nt,1,3,"app-button-link",27),e.nVh(2,mt,1,2,"app-clupik-table",28),e.nVh(3,it,1,2,"app-order-rows",29)),2&c){const a=e.XpG(3);e.vxM(a.tableView?-1:0),e.R7$(),e.vxM(a.canEditGroup&&a.tableData.length>0&&a.showManageDraws?1:-1),e.R7$(),e.vxM(a.tableView?2:-1),e.R7$(),e.vxM(a.tableView?-1:3)}}function E(c,k){if(1&c&&(e.j41(0,"div",5),e.nVh(1,y,2,1),e.nVh(2,rt,4,4),e.k0s()),2&c){const a=e.XpG(2);e.R7$(),e.vxM(a.standingsLoaded&&a.typePlayoff?1:-1),e.R7$(),e.vxM(a.standingsLoaded&&!a.typePlayoff?2:-1)}}function X(c,k){if(1&c&&(e.nVh(0,b,2,0,"div",3),e.nVh(1,l,7,2,"div",4),e.nV
1h(2,E,3,2,"div",5)),2&c){const a=e.XpG();e.vxM(a.standingsLoaded||a.isNewLayout?-1:0),e.R7$(),e.vxM(!a.standingsLoaded&&a.isNewLayout?1:-1),e.R7$(),e.vxM(a.standingsLoaded&&(a.competitionStarted||a.typePlayoff)?2:-1)}}function U(c,k){if(1&c&&e.nrm(0,"app-games-widget",2),2&c){const a=e.XpG();e.Y8G("isClasification",a.isClasification)("groupId",a.group.id)("firstDate",a.game?a.game.date:null)}}class pt{id;date;localScore;localClubName;visitorScore;visitorClubName;status;localTeamName;visitorTeamName}let _t=(()=>{class c{EditDialog;ManageDialog;teamService;appService;globalVars;apiSectionsService;apiCompetitionsService;competitionsService;apiOrganizationsService;authService;router;layoutService;clubsService;game;teamId;ruleId;phase;group;organizationId;showTitle=!0;type="default";groupChange=new e.bkB;associatedTeamsLoaded;associatedTeams;textArray=["global.search.nothing_found","module.competition.no_teams_group"];textArrayNoStandings=["global.search.nothing_found","module.competition.no_standings"];standingsPlayOff;standingsLoaded;standings;teams;typePlayoff;tableDataPlayoff;clubId;isSuper=!1;organization;isClupikOrganization;canEdit=!1;competitionStarted=!1;imageTeamUrl;subscription=new d.yU;totalGamesDrawn;isGameTeam;standingTeamName;groupId;settings;first;isClasification=!1;ftaSettings={showTotalResults:!1,serverFiltered:!1,noDataMessage:"no_teams_found",title:"classification",columns:{teamPosition:{title:"",type:"html",class:"column-xs"},image:{title:"",type:"custom",renderComponent:g.k,class:"column-xs",item:"club"},teamName:{title:"team",type:"html"},gamesWon:{title:"PG",type:"html",class:"column-centered"},gamesLost:{title:"PP",type:"html",sort:!1,class:"column-centered"},gamesDrawn:{title:"PE",type:"html",class:"column-centered"},winPercentage:{title:"%V",type:"html",sort:!1,class:"column-centered"},pointsScored:{title:"PF",type:"html",class:"column-centered"},pointsReceived:{title:"PC",type:"html",class:"column-centered"}}};goalSettings={showTotalResults:!1,serverFiltered:!1,noDataMessage:"no_teams_found",title:"classification",columns:{teamPosition:{title:"",type:"html",class:"column-xs"},image:{title:"",type:"custom",renderComponent:g.k,class:"column-xs",item:"club"},teamName:{title:"team",type:"html"},rankingPoints:{title:"PTS",type:"html",class:"column-centered column-bold"},gamesPlayed:{title:"PJ",type:"html",class:"column-centered"},gamesWon:{title:"PG",type:"html",class:"column-centered"},gamesDrawn:{title:"PE",type:"html",class:"column-centered"},gamesLost:{title:"PP",type:"html",sort:!1,class:"column-centered"},pointsScored:{title:"GF",type:"html",class:"column-centered"},pointsReceived:{title:"GC",type:"html",class:"column-centered"}}};mySettings={showTotalResults:!1,serverFiltered:!1,noDataMessage:"no_teams_found",title:"classification",columns:{teamPosition:{title:"",type:"html",class:"column-xs"},image:{title:"",type:"custom",renderComponent:g.k,class:"column-xs",item:"club"},teamName:{title:"team",type:"html"},rankingPoints:{title:"PTS",type:"html",class:"column-centered column-bold"},gamesPlayed:{title:"PJ",type:"html",class:"column-centered"},gamesWon:{title:"PG",type:"html",class:"column-centered"},gamesDrawn:{title:"PE",type:"html",class:"column-centered"},gamesLost:{title:"PP",type:"html",sort:!1,class:"column-centered"},pointsScored:{title:"PF",type:"html",class:"column-centered"},pointsReceived:{title:"PC",type:"html",class:"column-centered"}}};tableData;moment;isRugby=!1;isFTA=!1;hasFTArules=!1;isNewLayout=!1;tableView=!0;canEditGroup=!1;sportCode;goalSettingsSports=["FUT","BLM","FTS","HKL","HKC","HKP","WTP"];showManageDraws=!0;sub1;showClassification=!0;isLogged;loggedIn;isCMCompetition=!1;constructor(a,f,x,N,B,G,st,lt,ht,ft,gt,vt,Ct){this.EditDialog=a,this.ManageDialog=f,this.teamService=x,this.appService=N,this.globalVars=B,this.apiSectionsService=G,this.apiCompetitionsService=st,this.competitionsService=lt,this.apiOrganizationsService=ht,this.authService=ft,this.router=gt,this.layoutService=vt,this.clubsService=Ct,this.moment=this.globalVars.getMoment(),this.subscription.add(this.competitionsService.subscribe("refresh",()=>{this.getGroupStandings()})),this.subscription.add(this.competitionsService.subscribe("editTeam",dt=>{this.openEditTeamDialog(dt)})),this.subscription.add(this.competitionsService.subscribe("manageDraws",()=>{this.toggleOrder()})),this.subscription.add(this.appService.subscribe("DnDresults",dt=>{this.tableData=dt.map(ut=>{let ct=this.tableData.find(bt=>bt.id==ut.id);return ct.teamPosition=ut.order+1,ct.title=`${ut.order+1} - ${ct.standingName}`,ct}),this.manageDraws()})),this.loggedIn=this.appService.subscribe("login",()=>{this.isLogged=this.authService.isClubAdministrator()})}getData(){this.showManageDraws=!this.router.url.includes("/admin/"),this.game?(this.group=this.game.group,this.phase=this.game.group.phase,this.apiOrganizationsService.getOrganization(this.game.organizationId).subscribe(a=>{1168==a.id&&delete this.mySettings.columns.rankingPoints,this.organization=a,this.get
1Sport(this.organization.sportId),this.competitionsService.setOrganization(this.organization),this.userPermissions()}),this.competitionsService.setCompetitionId(this.game.competitionId),this.competitionsService.setPhaseId(this.game.group.phaseId)):("public"===this.type&&(this.competitionsService.setPhaseId(this.phase.id),this.competitionsService.setCompetitionId(this.phase.competitionId)),this.organizationId?this.apiOrganizationsService.getOrganization(this.organizationId).subscribe(a=>{1168==a.id&&delete this.mySettings.columns.rankingPoints,this.organization=a,this.getSport(this.organization.sportId),this.competitionsService.setOrganization(this.organization),this.userPermissions()}):(this.organization=this.competitionsService.getOrganization(),"1168"==this.organization.id&&delete this.mySettings.columns.rankingPoints,this.userPermissions(),this.getSport(this.organization.sportId))),this.groupId=this.group.id}userPermissions(){this.canEdit=!1,this.canEditGroup=!1,this.competitionsService.isPrivateOrganization()&&(this.authService.isClubAdministrator(this.organization.ownerClubId)&&(this.canEditGroup=!0,this.canEdit=!0),this.authService.isClubEditor(this.organization.ownerClubId)&&(this.canEditGroup=!0)),this.competitionsService.isCommunityOrganization()&&this.authService.isAdministrator()&&(this.canEdit=!0)}getSport(a){this.apiSectionsService.getSport(a).then(f=>{this.sportCode=f.code,this.isRugby="RUG"===f.code,this.isFTA="FTA"===f.code,this.isRugby&&(this.mySettings.columns.rankingPoints={title:"PTS",type:"html",class:"column-centered column-bold"},this.mySettings.columns.pointsScored={title:"TF",type:"html",class:"column-centered"},this.mySettings.columns.pointsReceived={title:"TC",type:"html",class:"column-centered"},this.mySettings.columns.pointsAbsolute={title:"DT",type:"html",class:"column-centered"},this.mySettings.columns.tryScored={title:"EF",type:"html",class:"column-centered"},this.mySettings.columns.tryReceived={title:"EC",type:"html",class:"column-centered"},this.mySettings.columns.offensiveBonus={title:"BO",type:"html",class:"column-centered"},this.mySettings.columns.defensiveBonus={title:"BD",type:"html",class:"column-centered"})})}get canPlayOffBeShown(){return this.isCMCompetition}ngOnInit(){this.isLogged=this.authService.isClubAdministrator(),this.isSuper=this.authService.isSuperAdmin(),this.isNewLayout=this.layoutService.isNew(),this.getData(),this.getAssociatedTeams(),this.showClassification=null!=this.competitionsService.getCompetition()?this.competitionsService.getCompetition().showClassification:this.game?.competition?.showClassification,this.clubId=this.clubsService.getClubId(),this.game&&setTimeout(()=>{this.getGroupStandings()},1e3)}getAssociatedTeams(){this.associatedTeamsLoaded=!1,this.associatedTeams=[],this.apiCompetitionsService.getCompetitionPhaseGroupsTeams(this.groupId).subscribe(a=>{this.associatedTeams=a,this.associatedTeamsLoaded=!0,this.getGroupStandings()})}ngOnChanges(a){this.getData(),this.isClasification="public"===this.type,this.showClassification=null!=this.competitionsService.getCompetition()?this.competitionsService.getCompetition().showClassification:this.game?.competition?.showClassification,this.typePlayoff="playoff"===this.phase.type,this.hasFTArules="null"===this.ruleId||null===this.ruleId,a.group&&!a.group.firstChange&&this.getAssociatedTeams()}getGroupStandings(){this.standingsLoaded=!1,this.totalGamesDrawn=0,this.tableData=[],this.tableDataPlayoff=[],this.imageTeamUrl=[],this.apiCompetitionsService.getCompetitionPhaseGroupsStandings(this.groupId).subscribe(a=>{this.standings=a.standings,this.teams=[],this.isCMCompetition=null!==a.competition.leveradeCompetition,this.typePlayoff&&(this.standings=Object.keys(a).map(f=>
1a[f])),this.standings?(this.standings.forEach((f,x)=>{this.typePlayoff?this.generateStandingsPlayOff(f,x):(this.generateStandingsLigue(f,x),this.settings=this.isFTA&&this.hasFTArules?Object.assign({},this.ftaSettings):this.goalSettingsSports.includes(this.sportCode)?Object.assign({},this.goalSettings):Object.assign({},this.mySettings))}),this.mySettings.columns.gamesDrawn.hidden=!this.typePlayoff&&0==this.totalGamesDrawn,this.ftaSettings.columns.gamesDrawn.hidden=!this.typePlayoff&&0==this.totalGamesDrawn):this.appService.broadcast("hasStandings",!1),this.standingsLoaded=!0})}generateStandingsPlayOff(a,f){this.clubsService.getClubData();let N=[];a.games&&(a?.games?.forEach(B=>{let G=new pt;G.id=B.id,G.date=this.moment(B.date).format("D MMMM"),G.localScore=B.localScore,G.localClubName=this.clubsService.getClubPublicName(a.team1.teamId===B.localTeamId?a.team1.team.club:a.team2.team.club),G.visitorScore=B.visitorScore,G.visitorClubName=this.clubsService.getClubPublicName(a.team1.teamId===B.visitorTeamId?a.team1.team.club:a.team2.team.club),G.status=B.status,G.localTeamName=this.teamService.getCustomTeamName(a.team1.teamId===B.localTeamId?a.team1.team:a.team2.team),G.visitorTeamName=this.teamService.getCustomTeamName(a.team1.teamId===B.visitorTeamId?a.team1.team:a.team2.team),N.push(G)}),this.assertGameChallenge({games:N,isSuper:this.isSuper,isGameTeams:this.isGameTeam,image1:a.team1.team.shieldUrl,teamId1:a.team1.teamId,teamName1:this.teamService.getCustomTeamName(a.team1.team),clubName1:this.clubsService.getClubPublicName(a.team1.team.club),gamesWon1:a.team1.gamesWon,image2:a.team2.team.shieldUrl,teamId2:a.team2.teamId,teamName2:this.teamService.getCustomTeamName(a.team2.team),clubName2:this.clubsService.getClubPublicName(a.team2.team.club),gamesWon2:a.team2.gamesWon,id:f+""}))}assertGameChallenge(a){this.first=!1,this.first=!!this.game&&(a.teamId1===this.game.localTeamId&&a.teamId2===this.game.visitorTeamId||a.teamId2===this.game.localTeamId&&a.teamId1===this.game.visitorTeamId),this.first=!!this.teamId&&(a.teamId1===this.teamId||a.teamId2===this.teamId),this.first?this.tableDataPlayoff.splice(0,0,a):this.tableDataPlayoff.push(a)}generateStandingsLigue(a,f){if(a.team){this.teams.push(a.team),1==f&&(this.competitionStarted=!0),this.imageTeamUrl[f]=a.team.shieldUrl,this.isGameTeam=!1,this.game&&(a.teamId==this.game.localTeam.id||a.teamId==this.game.visitorTeam.id)&&(this.isGameTeam=!0),this.teamId&&a.teamId===this.teamId&&(this.isGameTeam=!0),a.team.club.name=this.clubsService.getClubPublicName(a.team.club),null==a.team.teamClub&&null!=a.team.club&&(a.team.clubId=a.team.club.id),a.team.name=this.teamService.getCustomTeamName(a.team),this.standingTeamName=a.team.clubId===this.clubsService.getClubId()?'<a href="/team/'+a.team.id+'">'+a.team.name+"</a>":a.team.name;let N,B,G,st,lt,x=a.pointsScored-a.pointsReceived;this.isRugby&&this.isGameTeam?(N=`<span class='main'>${a.offensiveBonus}</span>`,B=`<span class='main'>${a.defensiveBonus}</span>`,G=`<span class='main'>${a.tryScored}</span>`,st=`<span class='main'>${a.tryReceived}</span>`,lt=`<span class='main'>${x}</span>`):this.isRugby&&!this.isGameTeam?(N=a.offensiveBonus,B=a.defensiveBonus,G=a.tryScored,st=a.tryReceived,lt=x):this.isRugby||(N=0,B=0,G=0,st=0,lt=0),this.tableData.push({isGameTeam:this.isGameTeam,isSuper:this.isSuper,teamPosition:f+1,image:{item:"team-shield",shieldUrl:a.team.shieldUrl},id:a.team.id,title:`${f+1} - ${this.teamService.getCustomTeamName(a.team)}`,standingName:this.teamService.getCustomTeamName(a.team),teamName:this.isGameTeam?`<span class='main'>${this.standingTeamName}</span>`:this.standingTeamName,gamesPlayed:this.isGameTeam?`<span class='main'>${a.gamesPlayed}</span>`:a.gamesPlayed,gamesWon:this.isGameTeam?`<span class='main'>${a.gamesWon}</span>`:a.gamesWon,gamesDrawn:this.isGameTeam?`<span class='main'>${a.gamesDrawn}</span>`:a.gamesDrawn,gamesLost:this.isGameTeam?`<span class='main'>${a.gamesLost}</span>`:a.gamesLost,pointsScored:this.isGameTeam?`<span class='main'>${a.pointsScored}</span>`:a.pointsScored,pointsReceived:this.isGameTeam?`<span class='main'>${a.pointsReceived}</span>`:a.pointsReceived,rankingPoints:this.isGameTeam?`<span class='main'>${a.rankingPoints}</span>`:a.rankingPoints,winPercentage:a.winPercentage,offensiveBonus:N,defensiveBonus:B,tryScored:G,tryReceived:st,pointsAbsolute:lt}),a.gamesDrawn>0&&this.totalGamesDrawn++,this.appService.broadcast("hasStandings",this.tableData.length>0)}}openEditTeamDialog(a){let f=this.teams.find(N=>N.id==a.rowData.id);this.teamService.setData(f),this.EditDialog.open(L.r,{data:{}}).afterClosed().subscribe(N=>
1{N.febName&&this.getGroupStandings()})}ngOnDestroy(){this.subscription.unsubscribe(),this.loggedIn.unsubscribe()}openEditGroupDialog(){this.EditDialog.open($.K,{data:{phase:this.phase,group:this.group}}).afterClosed().subscribe(f=>{"object"==typeof f&&(this.group=f,this.groupChange.emit(this.group))})}openManageGroupDialog(){this.ManageDialog.open(H.z,{data:{phase:this.phase,group:this.group,associatedTeams:this.associatedTeams}}).afterClosed().subscribe(f=>{"object"==typeof f&&this.ngOnInit()})}getTeamPublicName(a){return this.teamService.getCustomTeamName(a)}toggleOrder(){this.tableView=!this.tableView}manageDraws(){this.apiCompetitionsService.orderCompetitionStandings(this.groupId,this.tableData.map(a=>a.id)).subscribe({next:()=>this.tableData.forEach((a,f)=>a.teamPosition=f+1),error:a=>console.error("Error managing draws:",a)})}static \u0275fac=function(f){return new(f||c)(e.rXU(q.h),e.rXU(q.h),e.rXU(P.n),e.rXU(Z.d),e.rXU(t.Y),e.rXU(j.k),e.rXU(R.Y),e.rXU(M.u),e.rXU(K.k),e.rXU(i.u),e.rXU(D.Ix),e.rXU(J.ZV),e.rXU(s.X))};static \u0275cmp=e.VBU({type:c,selectors:[["app-competition-group-clasification"]],inputs:{game:"game",teamId:"teamId",ruleId:"ruleId",phase:"phase",group:"group",organizationId:"organizationId",showTitle:"showTitle",type:"type"},outputs:{groupChange:"groupChange"},standalone:!1,features:[e.OA$],decls:4,vars:3,consts:[["id","group-clasification"],["type","warning",3,"mensaje"],[3,"isClasification","groupId","firstDate"],[1,"dashboard-flex-center"],[1,"main-container","table-skeleton"],[1,"competitions-box"],[1,"row-table","first"],[1,"row-table"],[3,"competitionIdInput","phaseIdInput"],["fxLayout","column"],["id","playoff-games"],[1,"playoff-result"],[1,"team"],["appLazyLoadImage","appLazyLoadImage","type","club",1,"team-img",3,"src"],[1,"team-name"],[1,"team-score"],[1,"playoff-games"],[1,"game-row",3,"routerLink"],[1,"date-game"],[1,"date"],[1,"team-local"],[1,"club-name"],[1,"score"],[1,"score-local"],[1,"score-visitor"],[1,"team-visitor"],["state","warning","iconState","fa-solid fa-exclamation-triangle",3,"mainTitle","subtitle"],[3,"value","iconLeft","icon"],[1,"public-table",3,"settings","source"],[3,"canHaveChildren","rows"],[3,"buttonAction","value","iconLeft","icon"]],template:function(f,x){1&f&&(e.j41(0,"div",0),e.nVh(1,h,2,3,"app-alerts",1),e.nVh(2,X,3,3),e.nVh(3,U,1,3,"app-games-widget",2),e.k0s()),2&f&&(e.R7$(),e.vxM(!x.showClassification&&x.isLogged?1:-1),e.R7$(),e.vxM(x.showClassification?2:-1),e.R7$(),e.vxM("public"===x.type&&x.standingsLoaded?3:-1))},dependencies:[z.Wk,S.J,w.K,C.D,tt.YT,Q.W,T.a,ot.Z,V.$,W.k,u.D9],styles:['@keyframes _ngcontent-%COMP%_progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]{width:100%;padding:8px 0;border-bottom:var(--border);display:flex;align-items:center;justify-content:space-between}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:100%;height:20px}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:inline-block;will-change:transform;background-color:var(--skeleton)}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,#fff0,#fff9,#fff0)}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{overflow:hidden;transform:translateZ(0)}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after, .table-skeleton[_ngcontent-%COMP%]   .row-table[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{box-sizing:border-box}.table-skeleton[_ngcontent-%COMP%]   .row-table.first[_ngcontent-%COMP%]{border-top:var(--border)}.table-skeleton[_ngcontent-%COMP%]   .row-table.first[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:40px;height:20px}app-button-link[_ngcontent-%COMP%]{display:block;margin-left:auto;width:fit-content}@media (max-width: 991px){app-button-link[_ngcontent-%COMP%]{margin-left:20px;margin-top:24px;margin-right:20px}}@media (max-width: 991px){app-clupik-state-bar[_ngcontent-%COMP%]{display:block;margin-top:24px;padding-left:20px;padding-right:20px}}.ngx-dnd-container[_ngcontent-%COMP%]{margin-top:16px}.ngx-dnd-container[_ngcontent-%COMP%]   .standing-order[_ngcontent-%COMP%]{justify-content:flex-start}.ngx-dnd-container[_ngcontent-%COMP%]   .standing-order[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:0}.ngx-dnd-container[_ngcontent-%COMP%]   .standing-order[_ngcontent-%COMP%]   .title.position[_ngcontent-%COMP%]{margin-left:6px}.ngx-dnd-container[_ngcontent-%COMP%]   .standing-order[_ngcontent-%COMP%]   app-custom-render-image-item[_ngcontent-%COMP%]{margin:0 10px}']})}return c})()},37058:(at,A,n)=>{n.d(A,{w:()=>Q});var e=n(35745),M=n(35375),d=n(11890),g=n(43213),L=n(7030),P=n(79450),s=n(49189),i=n(50630),t=n(45839),j=n(3637),H=n(83401),$=n(73664),R=n(2615);n(73294);let J=(()=>{class T{static \u0275fac=function(W){return new(W||T)};static \u0275mod=$.$C({type:T});static \u0275inj=R.G2t({imports:[s.G,H.B]})}return T})();var Z=n(63055),Y=n(62282);n(14990),n(68010),n(45276),n(1460),n(89128);let Q=(()=>{class T{static \u0275fac=function(W){return new(W||T)};static \u0275mod=$.$C({type:T});static \u0275inj=R.G2t({imports:[s.G,P.M,J,t.R,j.z,i.j,L.g,e.C,M.J,g.v,d.g,Z.K,Y.k]})}return T})()},45839:(at,A,n)=>{n.d(A,{R:()=>L});var e=n(49189),M=n(73664),d=n(2615);n(90688);let L=(()=>{class P{static \u0275fac=function(t){return new(t||P)};static \u0275mod=M.$C({type:P});static \u0275inj=d.G2t({imports:[e.G]})}return P})()},62282:(at,A,n)=>{n.d(A,{k:()=>et});var e=n(72200),M=n(17705),d=n(23597),g=n(2615),L=n(82e3),P=n(49189),s=n(25615),i=n(66220),t=n(73664),j=n(3801);const H=(l,v)=>v.id;function $(l,v){if(1&l&&(t.j41(0,"div",12)(1,"div",9),t.EFF(2),t.k0s(),t.j41(3,"div",9),t.EFF(4),t.k0s()()),2&l){const o=v.$index,_=t.XpG(3);t.R7$(),t.AVh("winner",_.isWinnerOfPartial(o,!0)),t.R7$(),t.JRh(_.getPartialScore(o,!0)),t.R7$(),t.AVh("winner",_.isWinnerOfPartial(o,!1)),t.R7$(),t.JRh(_.getPartialScore(o,!1))}}function R(l,v){if(1&l&&(t.j41(0,"div",7),t.Z7z(1,$,5,6,"div",12,H),t.k0s()),2&l){const o=t.XpG(2);t.R7$(),t.Dyx(o.partials)}}function K(l,v){if(1&l&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&l){const o=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,o.matchData.match.clupikGame.date,"dd/MM - HH:mm"))}}function J(l,v){if(1&l&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&l){const o=t.XpG(2);t.R7$(),t.JRh(t.i5U(2,1,o.date(),"dd/MM - HH:mm"))}}function Z(l,v){if(1&l){const o=t.RV6();t.j41(0,"div",1),t.bIt("click",function(){g.eBV(o);const m=t.XpG();return g.Njj(m.goToMatch())}),t.j41(1,"div",2)(2,"div",3)(3,"div",4),t.nrm(4,"app-clupik-avatar",5),t.j41(5,"div",6),t.EFF(6),t.k0s()(),t.j41(7,"div",4),t.nrm(8,"app-clupik-avatar",5),t.j41(9,"div",6),t.EFF(10),t.k0s()()(),t.j41(11,"div",7)(12,"div",8)(13,"div",9),t.EFF(14),t.k0s(),t.j41(15,"div",9),t.EFF(16),t.k0s()()(),t.nVh(17,R,3,0,"div",7),t.k0s(),t.j41(18,"div",10)(19,"div",11),t.EFF(20),t.k0s(),t.nVh(21,K,3,4,"div",11)(22,J,3,4,"div",11),t.k0s()()}if(2&l){const o=t.XpG();t.R7$(3),t.BMQ("data-team",null==o.matchData.participant1?null:o.matchData.participant1.id),t.R7$(),t.Y8G("width",24)("image",o.getTeamShield(o.matchData.participant1)),t.R7$(),t.AVh("winner",o.isWinner(o.matchData.match,!0))("more-ellipsis",o.hasPartials)("bold",o.isWinner(o.matchData.match,!0)),t.R7$(),t.JRh(o.getTeamName(o.matchData.participant1)),t.R7$(),t.BMQ("data-team",null==o.matchData.participant2?null:o.matchData.participant2.id),t.R7$(),t.Y8G("width",24)("image",o.getTeamShield(o.matchData.participant2)),t.R7$(),t.AVh("winner",o.isWinner(o.matchData.match,!1))("more-ellipsis",o.hasPartials)("bold",o.isWinner(o.matchData.match,!1)),t.R7$(),t.JRh(o.getTeamName(o.matchData.participant2)),t.R7$(3),t.AVh("winner",o.isWinner(o.matchData.match,!0))("bold",o.isWinner(o.matchData.match,!0)),t.R7$(),t.JRh(o.getScore(o.matchData.match,!0)),t.R7$(),t.AVh("winner",o.isWinner(o.matchData.match,!1))("bold",o.isWinner(o.matchData.match,!1)),t.R7$(),t.JRh(o.getScore(o.matchData.match,!1)),t.R7$(),t.vxM(o.hasPartials?17:-1),t.R7$(3),t.Lme("",o.roundData().roun
1d.name," ",o.indexOfMatch),t.R7$(),t.vxM(o.matchData.match.clupikGame&&o.matchData.match.clupikGame.date?21:22)}}let Y=(()=>{class l{match=M.hFB.required();round=M.hFB.required();matchIndex=M.hFB.required();globalVars=(0,g.WQX)(s.Y);game=(0,d.EW)(()=>this.match());roundData=(0,d.EW)(()=>this.round());date=(0,d.EW)(()=>this.matchData?.match?.clupikGame?.date?this.matchData?.match?.clupikGame?.date:this.matchData?.match?.juegos[0]?.datetime);get indexOfMatch(){return this.matchIndex()+1}get matchData(){return this.game()}get hasPartials(){return this.matchData?.match?.clupikGame?.partials?.length>0||this.matchData?.match?.hasMoreThanOneFaceoff}partials=[];ngAfterViewInit(){this.hasPartials&&this.setPartials(),"Tercer y cuarto puesto"===this.roundData().round.name&&(console.log("Rownd data:",this.round()),console.log("Game data:",this.matchData))}setPartials(){this.partials=this.matchData?.match?.clupikGame?.partials?.length>0&&!this.matchData?.match?.hasMoreThanOneFaceoff?this.matchData.match.clupikGame?.partials:this.matchData.relatedMatches.filter(o=>o.id!==this.matchData.match.clupikGame?.leveradeGame?.id)}getTeamName(o){return o&&(o.clupikTeam?.editableName||o.name)||"TBD"}getTeamShield(o){return o?.clupikTeam?.shieldUrl||null}getScore(o,_){if(!o.clupikGame)return"-";const m=_?o.clupikGame.localScore:o.clupikGame.visitorScore;return null!==m?m.toString():"-"}getPartialScore(o,_){const m=this.partials[o],y=_?m.localScore||m.localTeamScore:m.visitorScore||m.visitorTeamScore;return null!==y?y.toString():"-"}isWinner(o,_){if(!o.clupikGame||2!==o.status)return!1;const m=o.winner?.id,y=_?o.opponent1:o.opponent2;return null!==o.clupikGame.localScore&&null!==o.clupikGame.visitorScore&&y?.id===m}isWinnerOfPartial(o,_){const m=this.partials[o],y=m.localScore||m.localTeamScore,I=m.visitorScore||m.visitorTeamScore;return null!==y&&null!==I&&(_?y>I:I>y)}getMatchStatusClass(o){if(!o.opponent1?.id||!o.opponent2?.id)return"match-empty";switch(o.status){case 0:default:return"match-pending";case 2:return"match-finished"}}goToMatch(){this.globalVars.clupikNavigate(`/games/${this.matchData?.match?.clupikId}`)}static \u0275fac=function(_){return new(_||l)};static \u0275cmp=t.VBU({type:l,selectors:[["app-clupik-competition-playoff-game"]],inputs:{match:[1,"match"],round:[1,"round"],matchIndex:[1,"matchIndex"]},decls:1,vars:1,consts:[[1,"clupik-competition-playoff-game"],[1,"clupik-competition-playoff-game",3,"click"],[1,"inside"],[1,"teams"],[1,"team"],["type","club","avatarType","club",3,"width","image"],[1,"text","md","ellipsis"],[1,"scores"],[1,"match","final"],[1,"result","text","md"],[1,"extra-info"],[1,"text","sm"],[1,"match","partial"]],template:function(_,m){1&_&&t.nVh(0,Z,23,34,"div",0),2&_&&t.vxM(m.matchData?0:-1)},dependencies:[P.G,e.MD,i._,j.t,e.vh],styles:[".clupik-competition-playoff-game[_ngcontent-%COMP%]{max-width:480px;position:relative;top:-50%;border:1px solid var(--form-border);border-radius:10px;background-color:#fff;min-width:240px;white-space:nowrap;overflow:hidden;cursor:pointer}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .extra-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--form-border);padding:4px 8px}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]{display:table;overflow:hidden;border-radius:2px;width:100%}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .teams[_ngcontent-%COMP%]{display:table-cell;max-width:240px}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .teams[_ngcontent-%COMP%]   .team[_ngcontent-%COMP%]{height:40px;padding:6px 10px;display:flex;align-items:center;gap:12px;text-decoration:none;color:#9e9e9e;position:relative}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .teams[_ngcontent-%COMP%]   .team[_ngcontent-%COMP%]   .winner[_ngcontent-%COMP%]{color:var(--link-color)}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .teams[_ngcontent-%COMP%]   .team[_ngcontent-%COMP%]   .winner[_ngcontent-%COMP%]:hover, .clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .teams[_ngcontent-%COMP%]   .team.hover[_ngcontent-%COMP%]{background-color:#e7e6e6}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .teams[_ngcontent-%COMP%]   .team[_ngcontent-%COMP%]   .ellipsis[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:222px}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .teams[_ngcontent-%COMP%]   .team[_ngcontent-%COMP%]   .ellipsis.more-ellipsis[_ngcontent-%COMP%]{max-width:100px}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .scores[_ngcontent-%COMP%]{display:table-cell;width:1px;vertical-align:top}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .scores[_ngcontent-%COMP%]   .match[_ngcontent-%COMP%]{display:inline-block;height:80px;width:40px;text-align:center;text-decoration:none;position:relative;border-left:1px solid #d1d1d1}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .scores[_ngcontent-%COMP%]   .match.final[_ngcontent-%COMP%]{background-color:#fcfcfc}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .scores[_ngcontent-%COMP%]   .match[_ngcontent-%COMP%]   .result[_ngcontent-%COMP%]{display:block;height:40px;width:40px;line-height:40px;color:#9e9e9e}
1.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .scores[_ngcontent-%COMP%]   .match[_ngcontent-%COMP%]   .result.winner[_ngcontent-%COMP%]{color:var(--link-color)}.clupik-competition-playoff-game[_ngcontent-%COMP%]   .inside[_ngcontent-%COMP%]   .scores[_ngcontent-%COMP%]   .match[_ngcontent-%COMP%]:hover{background-color:#e7e6e6}"]})}return l})();var q=n(7030),D=n(60152),z=n(82966),S=n(69415);const w=l=>[l],C=()=>["No hay datos de eliminatorias disponibles"],tt=(l,v)=>v.round.id,Q=(l,v)=>v.match.id;function T(l,v){1&l&&(t.j41(0,"div",1),t.nrm(1,"app-skeleton-block"),t.k0s())}function ot(l,v){if(1&l&&(t.j41(0,"div",2),t.nrm(1,"app-empty-space",4),t.k0s()),2&l){const o=t.XpG();t.R7$(),t.Y8G("textArray",t.eq3(2,w,o.error()))("noButton",!0)}}function V(l,v){1&l&&(t.j41(0,"div",3),t.nrm(1,"app-empty-space",4),t.k0s()),2&l&&(t.R7$(),t.Y8G("textArray",t.lJ4(2,C))("noButton",!0))}function W(l,v){if(1&l){const o=t.RV6();t.j41(0,"div",15),t.bIt("click",function(){g.eBV(o);const m=t.XpG().$implicit,y=t.XpG(3);return g.Njj(m.match.clupikId?y.goToMatch(m.match):null)}),t.j41(1,"div",16),t.nrm(2,"app-clupik-competition-playoff-game",17),t.k0s()()}if(2&l){const o=t.XpG(),_=o.$implicit,m=o.$index,y=t.XpG().$implicit;t.R7$(2),t.Y8G("match",_)("round",y)("matchIndex",m)}}function u(l,v){if(1&l){const o=t.RV6();t.j41(0,"div",18),t.bIt("click",function(){g.eBV(o);const m=t.XpG().$implicit,y=t.XpG(3);return g.Njj(m.match.clupikId?y.goToMatch(m.match):null)}),t.nrm(1,"app-clupik-competition-playoff-game",17),t.k0s()}if(2&l){const o=t.XpG(),_=o.$implicit,m=o.$index,y=t.XpG().$implicit;t.R7$(),t.Y8G("match",_)("round",y)("matchIndex",m)}}function O(l,v){if(1&l&&t.nVh(0,W,3,3,"div",13)(1,u,2,3,"div",14),2&l){const o=t.XpG(3);t.vxM(o.needsBracketRepresentation?0:1)}}function r(l,v){if(1&l&&(t.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12),t.EFF(4),t.k0s()()(),t.Z7z(5,O,2,1,null,null,Q),t.k0s()),2&l){const o=v.$implicit,_=v.$index;t.HbH(0===_?"round-"+_+" round-first":"round-"+_),t.R7$(4),t.JRh(o.round.name),t.R7$(),t.Dyx(o.matches)}}function p(l,v){if(1&l){const o=t.RV6();t.j41(0,"div",18),t.bIt("click",function(){const m=g.eBV(o).$implicit,y=t.XpG(4);return g.Njj(m.match.clupikId?y.goToMatch(m.match):null)}),t.nrm(1,"app-clupik-competition-playoff-game",17),t.k0s()}if(2&l){const o=v.$implicit,_=v.$index,m=t.XpG().$implicit;t.R7$(),t.Y8G("match",o)("round",m)("matchIndex",_)}}function h(l,v){if(1&l&&(t.j41(0,"div",19)(1,"div",10)(2,"div",11)(3,"div",12),t.EFF(4),t.k0s()()(),t.Z7z(5,p,2,3,"div",14,Q),t.k0s()),2&l){const o=v.$implicit;t.R7$(4),t.JRh(o.round.name),t.R7$(),t.Dyx(o.matches)}}function b(l,v){if(1&l&&(t.j41(0,"div",8),t.Z7z(1,h,7,1,"div",19,tt),t.k0s()),2&l){const o=t.XpG(2);t.R7$(),t.Dyx(o.outsideQuadrantRounds())}}function F(l,v){if(1&l&&(t.j41(0,"div",5)(1,"div",6),t.Z7z(2,r,7,3,"div",7,tt),t.k0s()(),t.nVh(4,b,3,0,"div",8)),2&l){const o=t.XpG();t.AVh("no-brackets",!o.needsBracketRepresentation),t.R7$(2),t.Dyx(o.quadrantRounds()),t.R7$(2),t.vxM(o.outsideQuadrantRounds().length>0?4:-1)}}let et=(()=>{class l{competitionIdInput=M.hFB.required();phaseIdInput=M.hFB.required();competitionId=(0,d.EW)(()=>this.competitionIdInput());phaseId=(0,d.EW)(()=>this.phaseIdInput());processedRounds=(0,g.vPA)([]);loading=(0,g.vPA)(!0);error=(0,g.vPA)(null);quadrantRounds=(0,d.EW)(()=>this.processedRounds().filter(o=>!o.round.hasToBeOutsideQuadrant));outsideQuadrantRounds=(0,d.EW)(()=>this.processedRounds().filter(o=>o.round.hasToBeOutsideQuadrant));_apiGames=(0,g.WQX)(L.Y);globalVars=(0,g.WQX)(s.Y);clubsService=(0,g.WQX)(D.X);needsBracketRepresentation=!0;ngAfterViewInit(){this.getGames(),this.needsBracketRepresentation="37998"!=this.clubsService.getClubId()}setupTeamHover(){const o=document.querySelector(".playoff-viewer");o?(o.addEventListener("mouseover",_=>{const m=_.target.closest(".team[data-team]");m?.dataset.team&&"undefined"!==m.dataset.team&&document.querySelectorAll(`.team[data-team="${m.dataset.team}"]`).forEach(I=>{I.classList.add("hover")})}),o.addEventListener("mouseout",_=>{_.target.closest(".team[data-team]")?.dataset.team&&document.querySelectorAll(".team.hover").forEach(y=>{y.classList.remove("hover")})})):console.warn("playoff-viewer no encontrado")}getGames(){this.loading.set(!0),this.error.set(null),this._apiGames.getPlayOffs(this.competitionId(),this.phaseId()).subscribe({next:o=>{this.processPlayoffData(o),this.loading.set(!1),setTimeout(()=>this.setupTeamHover(),50)},error:o=>{console.error("Error loading playoff data:",o),this.error.set("Error al cargar los datos del playoff"),this.loading.set(!1)}})}
1processPlayoffData(o){if(!o.round||0===o.round.length)return void this.processedRounds.set([]);const _=[...o.round].sort((I,nt)=>I.number-nt.number),m=new Map;o.participant.forEach(I=>m.set(I.id,I));const y=_.map(I=>{const mt=o.match.filter(E=>E.round_id===I.id).sort((E,X)=>E.number-X.number);let it=0;const rt=mt.map(E=>(it=E.faceoffs?Math.max(E.faceoffs.length,it):it,{match:E,participant1:E.opponent1?.id&&m.get(E.opponent1.id)||null,participant2:E.opponent2?.id&&m.get(E.opponent2.id)||null,relatedMatches:E.faceoffs.map(X=>{if(o.match_game.some(U=>U.leveradeGame.id===X)){let U=o.match_game.find(pt=>pt.leveradeGame.id===X);if(U)return{id:U.leveradeGame.id,localScore:U.localScore,visitorScore:U.visitorScore}}})}));if(it)for(let E of rt)if(0===E.relatedMatches.length)for(let X=0;X<it-1;X++)E.relatedMatches.push({id:X.toString(),localScore:null,visitorScore:null});else if(E.relatedMatches.length<it){const X=new Set(E.relatedMatches.map(U=>U.id));for(let U=0;U<it-1;U++)X.has(U.toString())||E.relatedMatches.push({id:U.toString(),localScore:null,visitorScore:null})}return{round:I,matches:rt}});this.processedRounds.set(y)}static \u0275fac=function(_){return new(_||l)};static \u0275cmp=t.VBU({type:l,selectors:[["app-clupik-competition-playoff"]],inputs:{competitionIdInput:[1,"competitionIdInput"],phaseIdInput:[1,"phaseIdInput"]},decls:5,vars:1,consts:[[1,"clupik-playoff-container"],[1,"playoff-loading"],[1,"playoff-error"],[1,"playoff-empty"],["size","sm","svgImage","file-searching",3,"textArray","noButton"],["id","playoff-viewer",1,"playoff-viewer","bottom-bordered"],[1,"scrollable"],[1,"round",3,"class"],["
1id","playoff-outside-viewer",1,"playoff-outside-viewer"],[1,"round"],[1,"round-header"],[1,"inside-round"],[1,"heading-text","h5"],[1,"bracket-container"],[1,"match-item"],[1,"bracket-container",3,"click"],[1,"bracket"],[3,"match","round","matchIndex"],[1,"match-item",3,"click"],[1,"outside-round"]],template:function(_,m){1&_&&(t.j41(0,"div",0),t.nVh(1,T,2,0,"div",1)(2,ot,2,4,"div",2)(3,V,2,3,"div",3)(4,F,5,3),t.k0s()),2&_&&(t.R7$(),t.vxM(m.loading()?1:m.error()?2:0===m.processedRounds().length?3:4))},dependencies:[e.MD,P.G,z.K,Y,q.g,S.p],styles:['.clupik-playoff-container{--match-height: 150px;width:100%;overflow-x:auto;overflow-y:hidden;padding-top:24px;padding-bottom:48px}.clupik-playoff-container .playoff-loading,.clupik-playoff-container .playoff-error,.clupik-playoff-container .playoff-empty{padding:2rem;text-align:center;font-size:1rem;color:#666}.clupik-playoff-container .playoff-error{color:var(--clupik-danger)}.clupik-playoff-container .playoff-viewer{position:relative;white-space:nowrap}.clupik-playoff-container .playoff-viewer .scrollable{overflow-y:hidden;overflow-x:auto}.clupik-playoff-container .playoff-viewer .scrollable .round.round-final,.clupik-playoff-container .playoff-viewer .scrollable .round:last-child{margin-right:20px}.clupik-playoff-container .playoff-viewer .round{display:inline-block;white-space:normal;vertical-align:top;position:relative}.clupik-playoff-container .playoff-viewer .round.round-0 .bracket-container{height:var(--match-height)}.clupik-playoff-container .playoff-viewer .round.round-1 .bracket-container{height:calc(var(--match-height) * 2)}.clupik-playoff-container .playoff-viewer .round.round-2 .bracket-container{height:calc(var(--match-height) * 4)}.clupik-playoff-container .playoff-viewer .round.round-3 .bracket-container{height:calc(var(--match-height) * 8)}.clupik-playoff-container .playoff-viewer .round.round-4 .bracket-container{height:calc(var(--match-height) * 16)}.clupik-playoff-container .playoff-viewer .round.round-5 .bracket-container{height:calc(var(--match-height) * 32)}.clupik-playoff-container .playoff-viewer .round.round-6 .bracket-container{height:calc(var(--match-height) * 64)}.clupik-playoff-container .playoff-viewer .round.round-7 .bracket-container{height:calc(var(--match-height) * 128)}.clupik-playoff-container .playoff-viewer .round.round-8 .bracket-container{height:calc(var(--match-height) * 256)}.clupik-playoff-container .playoff-viewer .round.round-9 .bracket-container{height:calc(var(--match-height) * 512)}.clupik-playoff-container .playoff-viewer .round .round-header{padding:0 20px}.clupik-playoff-container .playoff-viewer .round .round-header .inside-round{padding:12px;text-align:center;background-color:var(--base-extra-light-grey);border-radius:10px;border:1px solid var(--form-border)}.clupik-playoff-container .playoff-viewer .round:first-of-type .round-header{padding-left:0}.clupik-playoff-container .playoff-viewer .round:last-of-type .round-header{padding-right:0}.clupik-playoff-container .playoff-viewer .round .bracket-container{position:relative}.clupik-playoff-container .playoff-viewer .round .bracket-container:before{content:" ";width:0;height:50%;height:calc(50% + 1px);top:25%;border-left:1px solid var(--link-color);display:block;position:absolute}.clupik-playoff-container .playoff-viewer .round .bracket-container .bracket{padding:0 20px;position:relative;top:50%;border-top:1px solid var(--link-color);height:82px}.clupik-playoff-container .playoff-viewer .round.round-first .bracket-container:before,.clupik-playoff-container .playoff-viewer .round:first-child .bracket-container:before{border-left:none}.clupik-playoff-container .playoff-viewer .round.round-first .bracket-container .bracket,.clupik-playoff-container .playoff-viewer .round:first-child .bracket-container .bracket{padding-left:0}.clupik-playoff-container .playoff-viewer .round.round-final .bracket,.clupik-playoff-container .playoff-viewer .round:last-child .bracket{padding-right:0}.clupik-playoff-container .playoff-outside-viewer{margin-top:24px}.clupik-playoff-container .playoff-outside-viewer .outside-round{margin-bottom:24px}
1.clupik-playoff-container .playoff-outside-viewer .outside-round:last-child{margin-bottom:0}.clupik-playoff-container .playoff-outside-viewer .outside-round .round-header{margin-bottom:20px}.clupik-playoff-container .playoff-outside-viewer .outside-round .round-header .inside-round{padding:12px;text-align:center;background-color:var(--base-extra-light-grey);border-radius:10px;border:1px solid var(--form-border)}.clupik-playoff-container .playoff-outside-viewer .outside-round .match-item{margin-bottom:16px}.clupik-playoff-container .playoff-outside-viewer .outside-round .match-item:last-child{margin-bottom:0}.clupik-playoff-container .playoff-viewer.no-brackets .round .round-header{margin-bottom:20px}.clupik-playoff-container .playoff-viewer.no-brackets .round .bracket-container{height:auto!important}.clupik-playoff-container .playoff-viewer.no-brackets .round .bracket-container:before{display:none}.clupik-playoff-container .playoff-viewer.no-brackets .round .bracket-container .bracket{border-top:none;height:auto;padding:0 20px;top:0}.clupik-playoff-container .playoff-viewer.no-brackets .round .match-item{padding:0 20px;margin-bottom:16px}.clupik-playoff-container .playoff-viewer.no-brackets .round .match-item:last-child{margin-bottom:0}.clupik-playoff-container .playoff-viewer.no-brackets .round.round-first .match-item,.clupik-playoff-container .playoff-viewer.no-brackets .round:first-child .match-item{padding-left:0}.clupik-playoff-container .playoff-viewer.no-brackets .round.round-final .match-item,.clupik-playoff-container .playoff-viewer.no-brackets .round:last-child .match-item{padding-right:0}\n'],encapsulation:2})}return l})()},73294:(at,A,n)=>{n.d(A,{r:()=>t});var e=n(13961),M=n(45276),d=n(73664),g=n(36229),L=n(88834),P=n(44492),s=n(68018);const i=["class","component"];let t=(()=>{class j{dialogRef;competitionsService;subscription=new e.yU;constructor($,R){this.dialogRef=$,this.competitionsService=R,this.subscription.add(this.competitionsService.subscribe("cerrarModal",K=>{this.dialogRef.close(K)}))}ngOnInit(){}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(R){return new(R||j)(d.rXU(g.k),d.rXU(M.u))};static \u0275cmp=d.VBU({type:j,selectors:[["app-groups-team-edit-dialog",8,"component"]],standalone:!1,attrs:i,decls:9,vars:4,consts:[["id","edit-user-dialog-component"],[1,"modal-clupik"],["mat-dialog-title","mat-dialog-title"],[1,"title"],["mat-button","mat-button",1,"exit-button",3,"click"],[3,"modal"]],template:function(R,K){1&R&&(d.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),d.EFF(4),d.nI1(5,"translate"),d.k0s(),d.j41(6,"button",4),d.bIt("click",function(){return K.dialogRef.close(!0)}),d.EFF(7,"\xd7"),d.k0s()(),d.nrm(8,"app-team-edit-basics",5),d.k0s()()),2&R&&(d.R7$(4),d.JRh(d.bMT(5,2,"module.competition.team_edition")),d.R7$(4),d.Y8G("modal",!0))},dependencies:[L.$z,g.b,P.I,s.D9],encapsulation:2})}return j})()},90688:(at,A,n)=>{n.d(A,{K:()=>q});var e=n(89417),M=n(36229),d=n(82e3),g=n(69915),L=n(68010),P=n(1353),s=n(73664),i=n(2615),t=n(72200),j=n(88834),H=n(33746),$=n(23620),R=n(68018);const K=(D,z)=>({"ios-browser":D,"android-browser":z});function J(D,z){1&D&&(s.j41(0,"mat-error",9),s.EFF(1),s.nI1(2,"translate"),s.k0s()),2&D&&(s.R7$(),s.JRh(s.bMT(2,1,"global.validator.required")))}function Z(D,z){1&D&&(s.j41(0,"mat-form-field",7)(1,"mat-label"),s.EFF(2),s.nI1(3,"translate"),s.k0s(),s.nrm(4,"input",13),s.nI1(5,"translate"),s.k0s()),2&D&&(s.R7$(2),s.JRh(s.bMT(3,2,"module.competition.scraper_name")),s.R7$(2),s.Y8G("placeholder",s.bMT(5,4,"module.competition.scraper_name")))}function Y(D,z){if(1&D){const S=s.RV6();s.j41(0,"button",14),s.nI1(1,"translate"),s.bIt("click",function(){i.eBV(S);const C=s.XpG();return i.Njj(C.validate())}),s.j41(2,"span"),s.EFF(3),s.nI1(4,"translate"),s.k0s()()}2&D&&(s.BMQ("aria-label",s.bMT(1,2,"global.button.save")),s.R7$(3),s.JRh(s.bMT(4,4,"global.button.save")))}let q=(()=>{class D{fb;competitionsService;appService;authService;dialogRef;data;group=new P.q;groupForm;isSubmitted;submitLoading;isSuper;constructor(S,w,C,tt,Q,T){this.fb=S,this.competitionsService=w,this.appService=C,this.authService=tt,this.dialogRef=Q,this.data=T}ngOnInit(){this.group=this.data.group,this.isSuper=this.authService.isSuperAdmin(),this.isSubmitted=!1,this.submitLoading=!1,this.buildForm()}validate(){if(this.groupForm.valid)this.onSubmit(this.groupForm.value);else for(let S in this.groupForm.controls)this.groupForm.controls[S].markAsTouched()}buildForm(){this.groupForm=this.fb.group({title:[this.group.title,[e.k0.required]],scraperName:[this.group.scraperName]})}onSubmit(S){if(this.isSubmitted=!0,this.submitLoading=!0,this.isSuper){var w={id:parseInt(this.group.id),title:S.title,scraperName:S.scraperName};let C=[];C.push(w),this.competitionsService.setScraperName("groups",C).subscribe(()=>{this.submitLoading=!1,this.group.scraperName=S.scraperName,this.dialogRef.close(this.group)})}else this.isSuper?this.dialogRef.close(this.group):this.competitionsService.editCompetitionPhaseGroups([{id:this.group.id,title:S.title}],this.group.phaseId).subscribe(()=>{this.dialogRef.close(this.group)})}static \u0275fac=function(w){return new(w||D)(s.rXU(e.ok),s.rXU(d.Y),s.rXU(g.d),s.rXU(L.u),s.rXU(M.k),s.rXU(M.e))};static \u0275cmp=s.VBU({type:D,selectors:[["app-edit-competition-group-dialog"]],standalone:!1,decls:29,vars:29,consts:[[1,"modal-clupik"],["mat-dialog-title","mat-dialog-title"],[1,"title"],["type","button","mat-button","mat-button","mat-dialog-close","mat-dialog-close",1,"exit-button"],[1,"fix-content",3,"ngClass"],[1,"publish-form",3,"formGroup"],[1,"form-row-outlined"],["appearance","outline"],["id","title","matInput","matInput","type","text","formControlName","title","required","required",3,"placeholder"],["align","start"],[1,"actions-right","modal
1-fixed-actions"],["type","button","mat-dialog-close","mat-dialog-close",1,"btn-close"],["type","button","mat-raised-button","mat-raised-button",1,"btn-primary"],["id","scraper","matInput","matInput","type","text","formControlName","scraperName",3,"placeholder"],["type","button","mat-raised-button","mat-raised-button",1,"btn-primary",3,"click"]],template:function(w,C){1&w&&(s.j41(0,"div",0)(1,"div",1)(2,"span",2),s.EFF(3),s.nI1(4,"translate"),s.k0s(),s.j41(5,"button",3),s.nI1(6,"translate"),s.EFF(7,"\xd7"),s.k0s()(),s.j41(8,"mat-dialog-content",4)(9,"form",5)(10,"div",6)(11,"mat-form-field",7)(12,"mat-label"),s.EFF(13),s.nI1(14,"translate"),s.k0s(),s.nrm(15,"input",8),s.nI1(16,"translate"),s.nVh(17,J,3,3,"mat-error",9),s.k0s()(),s.j41(18,"div",6),s.nVh(19,Z,6,6,"mat-form-field",7),s.k0s()()()(),s.j41(20,"div",10)(21,"button",11),s.nI1(22,"translate"),s.EFF(23),s.nI1(24,"translate"),s.k0s(),s.j41(25,"span",2),s.EFF(26),s.nI1(27,"translate"),s.k0s(),s.nVh(28,Y,5,6,"button",12),s.k0s()),2&w&&(s.R7$(3),s.JRh(s.bMT(4,12,"module.competition.edit_group")),s.R7$(2),s.BMQ("aria-label",s.bMT(6,14,"global.common.close")),s.R7$(3),s.Y8G("ngClass",s.l_i(26,K,null==C.appService?null:C.appService.isIosBrowser,null==C.appService?null:C.appService.isAndroidBrowser)),s.R7$(),s.Y8G("formGroup",C.groupForm),s.R7$(4),s.JRh(s.bMT(14,16,"global.placeholder.name")),s.R7$(2),s.Y8G("placeholder",s.bMT(16,18,"global.placeholder.name")),s.R7$(2),s.vxM((C.groupForm.get("title").touched||C.isSubmitted)&&C.groupForm.get("title").hasError("required")?17:-1),s.R7$(2),s.vxM(C.isSuper?19:-1),s.R7$(2),s.BMQ("aria-label",s.bMT(22,20,"global.common.close")),s.R7$(2),s.JRh(s.bMT(24,22,"global.common.close")),s.R7$(3),s.JRh(s.bMT(27,24,"module.competition.edit_group")),s.R7$(2),s.vxM(C.submitLoading?-1:28))},dependencies:[t.YU,j.$z,M.a,M.b,M.c,H.fg,$.j,$.M,$.b,e.qT,e.me,e.BC,e.cb,e.YS,e.j4,e.JD,R.D9],encapsulation:2})}return D})()}}]);

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.