PageSourceSearch

https://www.fepetanca.com/3372.9b9fb5132a4fd8e3.js

js fepetanca.com collected 2026-09-25 01:50:18 UTC 48,989 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3372],{8665:(G,O,i)=>{i.d(O,{e:()=>U});var f=i(36229),u=i(89417),x=(i(6185),i(69915)),o=i(73664),M=i(72200),n=i(88834),R=i(5951),V=i(82966),A=i(68018);const a=(h,e)=>({"ios-browser":h,"android-browser":e});function y(h,e){if(1&h&&(o.j41(0,"mat-dialog-content",10)(1,"span",11),o.EFF(2),o.nI1(3,"translate"),o.k0s(),o.j41(4,"form",12)(5,"mat-radio-group",13)(6,"div",14)(7,"mat-radio-button",15)(8,"span"),o.EFF(9),o.nI1(10,"translate"),o.k0s()()(),o.j41(11,"div",14)(12,"mat-radio-button",16)(13,"span"),o.EFF(14),o.nI1(15,"translate"),o.k0s()()(),o.j41(16,"div",14)(17,"mat-radio-button",17)(18,"span"),o.EFF(19),o.nI1(20,"translate"),o.k0s()()()()()()),2&h){const p=o.XpG();o.Y8G("ngClass",o.l_i(14,a,null==p.appService?null:p.appService.isIosBrowser,null==p.appService?null:p.appService.isAndroidBrowser)),o.R7$(2),o.JRh(o.bMT(3,6,p.message)),o.R7$(2),o.Y8G("formGroup",p.editForm),o.R7$(5),o.JRh(o.bMT(10,8,"module.calendar.none")),o.R7$(5),o.JRh(o.bMT(15,10,"module.calendar.from_this")),o.R7$(5),o.JRh(o.bMT(20,12,"module.calendar.all_events"))}}function D(h,e){1&h&&(o.j41(0,"div"),o.nrm(1,"app-skeleton-block"),o.k0s())}let U=(()=>{class h{fb;appService;data;dialogRef;editForm;loading;message="";type="edit";dataInput;modalInput;constructor(p,b,$,L){this.fb=p,this.appService=b,this.data=$,this.dialogRef=L}ngOnInit(){this.message=this.dataInput.message,this.type=this.dataInput.type,this.editForm=this.fb.group({type:["one",u.k0.required]})}continue(){this.modalInput.open("selectAction",{type:this.editForm.get("type").value,actionType:this.type})}cancel(){this.modalInput.open("view")}static \u0275fac=function(b){return new(b||h)(o.rXU(u.ok),o.rXU(x.d),o.rXU(f.e),o.rXU(f.k))};static \u0275cmp=o.VBU({type:h,selectors:[["app-select-event-editing"]],inputs:{dataInput:"dataInput",modalInput:"modalInput"},standalone:!1,decls:28,vars:29,consts:[[1,"modal-clupik"],["mat-dialog-title",""],[1,"title"],["mat-button","","mat-dialog-close","","type","button",1,"exit-button"],["class","fix-content",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"modal-fixed-actions","actions-right"],["mat-dialog-close","","type","button",1,"btn-close"],["mat-raised-button","","type","button",1,"btn-primary-outline",3,"click"],["mat-raised-button","","type","button",1,"btn-primary",3,"click"],[1,"fix-content",3,"ngClass"],[1,"clupik-card-title","acclaration"],[1,"full-width-form",3,"formGroup"],["formControlName","type"],[1,"form-row"],["value","one"],["value","multiple"],["value","all"]],template:function(b,$){1&b&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2),o.EFF(3),o.nI1(4,"translate"),o.k0s(),o.j41(5,"button",3),o.nI1(6,"translate"),o.EFF(7,"\xd7"),o.k0s()(),o.DNE(8,y,21,17,"mat-dialog-content",4)(9,D,2,0,"div",5),o.k0s(),o.j41(10,"div",6)(11,"button",7),o.nI1(12,"translate"),o.EFF(13),o.nI1(14,"translate"),o.k0s(),o.j41(15,"span",2),o.EFF(16),o.nI1(17,"translate"),o.k0s(),o.j41(18,"button",8),o.nI1(19,"translate"),o.bIt("click",function(){return $.cancel()}),o.j41(20,"span"),o.EFF(21),o.nI1(22,"translate"),o.k0s()(),o.j41(23,"button",9),o.nI1(24,"translate"),o.bIt("click",function(){return $.continue()}),o.j41(25,"span"),o.EFF(26),o.nI1(27,"translate"),o.k0s()()()),2&b&&(o.R7$(3),o.JRh(o.bMT(4,11,$.message)),o.R7$(2),o.BMQ("aria-label",o.bMT(6,13,"global.common.close")),o.R7$(3),o.Y8G("ngIf",!$.loading),o.R7$(),o.Y8G("ngIf",$.loading),o.R7$(2),o.BMQ("aria-label",o.bMT(12,15,"global.common.close")),o.R7$(2),o.JRh(o.bMT(14,17,"global.common.close")),o.R7$(3),o.JRh(o.bMT(17,19,"global.button.edit")),o.R7$(2),o.BMQ("aria-label",o.bMT(19,21,"global.button.cancel")),o.R7$(3),o.JRh(o.bMT(22,23,"global.button.cancel")),o.R7$(2),o.BMQ("aria-label",o.bMT(24,25,"global.button.continue")),o.R7$(3),o.JRh(o.bMT(27,27,"global.button.continue")))},dependencies:[M.YU,M.bT,n.$z,f.a,f.b,f.c,R.VT,R._g,u.qT,u.BC,u.cb,u.j4,u.JD,V.K,A.D9],styles:[".form-row[_ngcontent-%COMP%]{margin-bottom:.5em}.form-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}.modal-clupik[_ngcontent-%COMP%]{width:100%}.acclaration[_ngcontent-%COMP%]{margin-bottom:12px}@media (min-width: 960px){.acclaration[_ngcontent-%COMP%]{display:none}}"]})}return h})()},36593:(G,O,i)=>{i.d(O,{L:()=>te});var f=i(10467),u=i(76562),I=i(51589),x=i(60152),o=i(26742),M=i(27126),n=i(73664),R=i(36229),V=i(25596),A=i(53986),a=i(82966),y=i(68018);function D(s,g){1&s&&n.nrm(0,"app-skeleton-block")}function U(s,g){1&s&&n.nrm(0,"i",7)}function h(s,g){1&s&&n.nrm(0,"i",8)}function e(s,g){if(1&s&&(n.j41(0,"div",4),n.nVh(1,U,1,0,"i",7),n.nVh(2,h,1,0,"i",8),n.k0s()),2&s){const r=g.$index,E=n.XpG(2);n.R7$(),n.vxM(E.attendance.rating<r+1?1:-1),n.R7$(),n.vxM(E.attendance.rating>=r+1?2:-1)}}function p(s,g){if(1&s&&(n.j41(0,"div",5)(1,"p"),n.EFF(2),n.k0s()()),2&s){const r=n.XpG(2);n.R7$(2),n.JRh(r.attendance.notes)}}function b(s,g){1&s&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&s&&(n.R7$(),n.JRh(n.bMT(2,1,"module.calendar.attendance.assits")))}function $(s,g){1&s&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&s&&(n.R7$(),n.JRh(n.bMT(2,1,"module.calendar.attendance.late")))}function L(s,g){1&s&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&s&&(n.R7$(),n.JRh(n.bMT(2,1,"module.calendar.attendance.justify")))}function k(s,g){1&s&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&s&&(n.R7$(),n.JRh(n.bMT(2,1,"module.calendar.attendance.lesion")))}function S(s,g){1&s&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&s&&(n.R7$(),n.JRh(n.bMT(2,1,"module.calendar.attendance.sick")))}function J(s,g){1&s&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&s&&(n.R7$(),n.JRh(n.bMT(2,1,"module.calendar.attendance.notjustify")))}function N(s,g){if(1&s&&(n.j41(0,"div",15)(1,"p"),n.EFF(2),n.k0s()()),2&s){const r=n.XpG().$implicit;n.R7$(2),n.JRh(r.notes)}}function W(s,g){1&s&&n.nrm(0,"i",17)}function Y(s,g){1&s&&n.nrm(0,"i",18)}function X(s,g){1&s&&n.nrm(0,"i",19)}function z(s,g){1&s&&n.nrm(0,"i",20)}function Q(s,g){1&s&&n.nrm(0,"i",21)}function Z(s,g){1&s&&n.nrm(0,"i",22)}function H(s,g){if(1&s&&(n.j41(0,"div",9)(1,"div",10),n.nrm(2,"img",11),n.k0s(),n.j41(3,"div",12)(4,"div",13)(5,"span"),n.EFF(6),n.k0s()(),n.j41(7,"div",14),n.nVh(8,b,3,3,"span"),n.nVh(9,$,3,3,"span"),n.nVh(10,L,3,3,"span"),n.nVh(11,k,3,3,"span"),n.nVh(12,S,3,3,"span"),n.nVh(13,J,3,3,"span"),n.k0s(),n.nVh(14,N,3,1,"div",15),n.k0s(),n.j41(15,"div",16),n.nVh(16,W,1,0,"i",17),n.nVh(17,Y,1,0,"i",18),n.nVh(18,X,1,0,"i",19),n.nVh(19,z,1,0,"i",20),n.nVh(20,Q,1,0,"i",21),n.nVh(21,Z,1,0,"i",22),n.k0s()()),2&s){const r=g.$implicit;n.R7$(2),n.Y8G("src",r.image,n.B4B),n.R7$(4),n.E5c("",r.firstName," ",r.lastName," ",r.secondSurname),n.R7$(2),n.vxM("assits"==r.faultType?8:-1),n.R7$(),n.vxM("late"==r.faultType?9:-1),n.R7$(),n.vxM("justify"==r.faultType?10:-1),n.R7$(),n.vxM("lesion"==r.faultType?11:-1),n.R7$(),n.vxM("sick"==r.faultType?12:-1),n.R7$(),n.vxM("notjustify"==r.faultType?13:-1),n.R7$(),n.vxM(r.notes?14:-1),n.R7$(2),n.vxM("assits"==r.faultType?16:-1),n.R7$(),n.vxM("late"==r.faultType?17:-1),n.R7$(),n.vxM("justify"==r.faultType?18:-1),n.R7$(),n.vxM("lesion"==r.faultType?19:-1),n.R7$(),n.vxM("sick"==r.faultType?20:-1),n.R7$(),n.vxM("notjustify"==r.faultType?21:-1)}}function q(s,g){if(1&s&&(n.j41(0,"div",6),n.Z7z(1,H,22,17,"div",9,n.fX1),n.k0s()),2&s){const r=n.XpG(2);n.R7$(),n.Dyx(r.players)}}function ee(s,g){if(1&s&&(n.j41(0,"div",1)(1,"div",2)(2,"div",3),n.Z7z(3,e,3,2,"div",4,n.fX1),n.k0s(),n.nVh(5,p,3,1,"div",5),n.k0s(),n.nVh(6,q,3,0,"div",6),n.k0s()),2&s){const r=n.XpG();n.R7$(3),n.Dyx(r.maxStars),n.R7$(2),n.vxM(r.attendance.notes?5:-1),n.R7$(),n.vxM(r.hasPlayers?6:-1)}}let te=(()=>{class s{apiAttendance;clubsService;imagesService;teamService;dialogRef;dialog;attendance;players;hasPlayers=!1;loading=!0;maxStars=new Array(5);constructor(r,E,K,ne,ae,ie){this.apiAttendance=r,this.clubsService=E,this.imagesService=K,this.teamService=ne,this.dialogRef=ae,this.dialog=ie}ngOnInit(){var r=this;return(0,f.A)(function*(){r.attendance=yield r.apiAttendance.getActualAttendance(),r.players=r.attendance.training.attendance.map(E=>
1(E.image=r.imagesService.getUserPlayerLogoMedium(r.clubsService.getClubId(),r.teamService.getTeamId(),E.userId,E.imageId),E)),r.players.length>0&&(r.hasPlayers=!0),r.loading=!1})()}edit(){this.dialogRef.close&&this.dialog.open(u.o).afterOpened().subscribe(()=>{this.close()})}close(){this.dialogRef.close&&this.dialogRef.close()}static \u0275fac=function(E){return new(E||s)(n.rXU(M.T),n.rXU(x.X),n.rXU(o.M),n.rXU(I.n),n.rXU(R.k),n.rXU(R.h))};static \u0275cmp=n.VBU({type:s,selectors:[["app-team-attendance-view"]],standalone:!1,features:[n.Jv_([M.T])],decls:3,vars:1,consts:[["id","section-team-attendance"],["id","attendance-loaded"],[1,"valoration"],[1,"star-row"],[1,"star"],[1,"form-row"],[1,"attendance-rows"],[1,"fa-regular","fa-star"],[1,"fa-solid","fa-star"],[1,"attendance-row"],[1,"attendance-avatar"],["mat-card-avatar","","appLazyLoadImage","","type","player",3,"src"],[1,"attendance-info"],[1,"player-name"],[1,"player-status"],[1,"player-notes"],[1,"attendance-icon"],[1,"fa-solid","fa-check-circle","success"],[1,"fa-solid","fa-clock","warning"],[1,"fa-solid","fa-times-circle","warning"],[1,"fa-solid","fa-plus-circle","info-color"],[1,"fa-solid","fa-virus","info-color"],[1,"fa-solid","fa-times-circle","danger"]],template:function(E,K){1&E&&(n.j41(0,"div",0),n.nVh(1,D,1,0,"app-skeleton-block")(2,ee,7,2,"div",1),n.k0s()),2&E&&(n.R7$(),n.vxM(K.loading?1:2))},dependencies:[V.QG,A.J,a.K,y.D9],styles:["#attendance-loaded[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:nowrap}#attendance-loaded[_ngcontent-%COMP%]   .valoration[_ngcontent-%COMP%]{margin-bottom:2em}#attendance-loaded[_ngcontent-%COMP%]   .valoration[_ngcontent-%COMP%]   .star-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin-bottom:1.5em}@media (max-width: 991px){#attendance-loaded[_ngcontent-%COMP%]   .valoration[_ngcontent-%COMP%]   .star-row[_ngcontent-%COMP%]{justify-content:space-between}}#attendance-loaded[_ngcontent-%COMP%]   .valoration[_ngcontent-%COMP%]   .star-row[_ngcontent-%COMP%]   .star[_ngcontent-%COMP%]{width:40px;font-size:1.3em;text-align:center}@media (max-width: 991px){#attendance-loaded[_ngcontent-%COMP%]   .valoration[_ngcontent-%COMP%]   .star-row[_ngcontent-%COMP%]   .star[_ngcontent-%COMP%]{width:60px;font-size:2em}}#attendance-loaded[_ngcontent-%COMP%]   .attendance-rows[_ngcontent-%COMP%]   .attendance-row[_ngcontent-%COMP%]{border-top:solid 1.2px #eee;display:flex;padding:.75em}#attendance-loaded[_ngcontent-%COMP%]   .attendance-rows[_ngcontent-%COMP%]   .attendance-row[_ngcontent-%COMP%]   .attendance-avatar[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-right:1.5em;margin-top:.25em}#attendance-loaded[_ngcontent-%COMP%]   .attendance-rows[_ngcontent-%COMP%]   .attendance-row[_ngcontent-%COMP%]   .attendance-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:10px}#attendance-loaded[_ngcontent-%COMP%]   .attendance-rows[_ngcontent-%COMP%]   .attendance-row[_ngcontent-%COMP%]   .attendance-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;line-height:19px;font-size:15px;margin-top:6px}#attendance-loaded[_ngcontent-%COMP%]   .attendance-rows[_ngcontent-%COMP%]   .attendance-row[_ngcontent-%COMP%]   .attendance-info[_ngcontent-%COMP%]   .player-name[_ngcontent-%COMP%]{font-weight:600}#attendance-loaded[_ngcontent-%COMP%]   .attendance-rows[_ngcontent-%COMP%]   .attendance-row[_ngcontent-%COMP%]   .attendance-info[_ngcontent-%COMP%]   .player-notes[_ngcontent-%COMP%]{font-size:.9em;padding:1em 0;line-height:1em}#attendance-loaded[_ngcontent-%COMP%]   .attendance-rows[_ngcontent-%COMP%]   .attendance-row[_ngcontent-%COMP%]   .attendance-icon[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:1.5em;height:50px;font-size:27px}"]})}return s})()},47373:(G,O,i)=>{i.d(O,{d:()=>M});var f=i(49189),u=i(41850),I=i(73664),x=i(2615);i(25755);let M=(()=>{class n{static \u0275fac=function(A){return new(A||n)};static \u0275mod=I.$C({type:n});static \u0275inj=x.G2t({imports:[f.G,u.Qs]})}return n})()},50809:(G,O,i)=>{i.d(O,{T:()=>be});var f=i(10467),u=i(51589),x=(i(6185),i(78704)),o=i(60152),M=i(26742),n=i(25615),R=i(13961),V=i(69915),A=i(79837),a=i(27126),y=i(1460),D=i(52616),U=i(61448),h=i(3356),e=i(73664),p=i(2615),b=i(36229),$=i(91029),L=i(38132),k=i(72200),S=i(88834),J=i(82765),N=i(33746),W=i(23620),Y=i(91438),X=i(89417),z=i(53986),Q=i(82966),Z=i(25755),H=i(36593),q=i(49255),ee=i(68018);const te=(l,v)=>({"ios-browser":l,"android-browser":v}),s=()=>({standalone:!0});function g(l,v){1&l&&(e.j41(0,"span",2),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&l&&(e.R7$(),e.JRh(e.bMT(2,1,"global.common.game")))}function r(l,v){if(1&l&&(e.j41(0,"span",2),e.EFF(1),e.k0s()),2&l){const t=e.XpG();e.R7$(),e.SpI("",t.event.title," ")}}function E(l,v){if(1&l&&(e.j41(0,"span",2),e.EFF(1),e.k0s()),2&l){const t=e.XpG();e.R7$(),e.SpI("",t.event.title," ")}}function K(l,v){if(1&l&&(e.nrm(0,"app-alerts",6),e.nI1(1,"translate")),2&l){const t=e.XpG(2);e.Y8G("mensaje",e.bMT(1,2,t.alert.message))("type",t.alert.type)}}function ne(l,v){if(1&l&&(e.j41(0,"div",17)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()),2&l){const t=e.XpG(3);e.R7$(2),e.SpI("",e.bMT(3,2,"module.calendar.event_type."+t.event.extendedProps.eventType)," "),e.R7$(3),e.JRh(t.event.teamName)}}function ae(l,v){if(1&l){const t=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){p.eBV(t);const m=e.XpG(3);return p.Njj(m.delete())}),e.k0s()}if(2&l){const t=e.XpG(3);e.Y8G("disabled",t.isCancellingTraining)}}function ie(l,v){if(1&l){const t=e.RV6();e.j41(0,"button",22),e.nI1(1,"translate"),e.nI1(2,"translate"),e.bIt("click",function(){p.eBV(t);const m=e.XpG(3);return p.Njj(m.editEvent())}),e.k0s()}if(2&l){const t=e.XpG(3);e.Y8G("matTooltip",e.bMT(1,3,"module.calendar.edit_event_action"))("disabled",t.isCancellingTraining),e.BMQ("aria-label",e.bMT(2,5,"module.calendar.edit_event_action"))}}function oe(l,v){if(1&l&&(e.j41(0,"div",7)(1,"div",13),e.nrm(2,"i",14),e.k0s(),e.j41(3,"div",15)(4,"div",16)(5,"span"),e.EFF(6),e.k0s()(),e.nVh(7,ne,6,4,"div",17),e.j41(8,"div",18),e.nV
1h(9,ae,1,1,"button",19),e.nVh(10,ie,3,7,"button",20),e.k0s()()()),2&l){const t=e.XpG(2);e.R7$(6),e.JRh(t.date),e.R7$(),e.vxM(t.event.teamId?7:-1),e.R7$(2),e.vxM(t.canEdit?9:-1),e.R7$(),e.vxM(t.canEdit?10:-1)}}function le(l,v){if(1&l&&(e.j41(0,"div",29)(1,"div",35)(2,"div",36),e.EFF(3),e.k0s()(),e.j41(4,"div",37),e.nrm(5,"img",38),e.k0s()()),2&l){const t=e.XpG(3);e.Y8G("routerLink","/team/"+t.game.localTeam.id),e.R7$(3),e.JRh(t.localClubName),e.R7$(2),e.Y8G("src",t.game.localTeam.shieldUrl,e.B4B)}}function de(l,v){if(1&l&&(e.j41(0,"div",30)(1,"div",35)(2,"div",36),e.EFF(3),e.k0s()(),e.j41(4,"div",37),e.nrm(5,"img",38),e.k0s()()),2&l){const t=e.XpG(3);e.R7$(3),e.JRh(t.localClubName),e.R7$(2),e.Y8G("src",t.game.localTeam.shieldUrl,e.B4B)}}function se(l,v){if(1&l&&(e.j41(0,"div",32)(1,"div",39),e.EFF(2),e.k0s(),e.j41(3,"div",40),e.EFF(4),e.k0s()()),2&l){const t=e.XpG(3);e.R7$(2),e.JRh(t.game.localScore),e.R7$(2),e.JRh(t.game.visitorScore)}}function ce(l,v){if(1&l&&(e.j41(0,"div",32)(1,"div",16),e.EFF(2),e.k0s()()),2&l){const t=e.XpG(3);e.R7$(2),e.JRh(t.formatTime)}}function re(l,v){if(1&l&&(e.j41(0,"div",33)(1,"div",37),e.nrm(2,"img",38),e.k0s(),e.j41(3,"div",35)(4,"div",36),e.EFF(5),e.k0s()()()),2&l){const t=e.XpG(3);e.Y8G("routerLink","/team/"+t.game.visitorTeam.id),e.R7$(2),e.Y8G("src",t.game.visitorTeam.shieldUrl,e.B4B),e.R7$(3),e.JRh(t.visitorClubName)}}function _e(l,v){if(1&l&&(e.j41(0,"div",34)(1,"div",37),e.nrm(2,"img",38),e.k0s(),e.j41(3,"div",35)(4,"div",36),e.EFF(5),e.k0s()()()),2&l){const t=e.XpG(3);e.R7$(2),e.Y8G("src",t.game.visitorTeam.shieldUrl,e.B4B),e.R7$(3),e.JRh(t.visitorClubName)}}function me(l,v){if(1&l&&(e.j41(0,"div",8)(1,"div",23)(2,"div",24)(3,"div",25)(4,"div",26),e.EFF(5),e.k0s()(),e.j41(6,"div",27)(7,"div",16),e.EFF(8),e.k0s()(),e.j41(9,"div",28),e.nVh(10,le,6,3,"div",29),e.nVh(11,de,6,2,"div",30),e.j41(12,"div",31),e.nVh(13,se,5,2,"div",32),e.nVh(14,ce,3,1,"div",32),e.k0s(),e.nVh(15,re,6,3,"div",33),e.nVh(16,_e,6,2,"div",34),e.k0s()()()()),2&l){const t=e.XpG(2);e.R7$(5),e.JRh(t.competitionName),e.R7$(3),e.JRh(t.formatDate),e.R7$(2),e.vxM(t.localClubTeam?10:-1),e.R7$(),e.vxM(t.localClubTeam?-1:11),e.R7$(2),e.vxM("finished"==t.game.status?13:-1),e.R7$(),e.vxM("finished"!=t.game.status&&""!=t.formatTime?14:-1),e.R7$(),e.vxM(t.visitorClubTeam?15:-1),e.R7$(),e.vxM(t.visitorClubTeam?-1:16)}}function pe(l,v){1&l&&e.nrm(0,"app-team-attendance-create",41),2&l&&e.Y8G("everything",!0)}function ve(l,v){1&l&&e.nrm(0,"app-team-attendance-view")}function ge(l,v){if(1&l&&(e.j41(0,"div",9),e.nVh(1,pe,1,1,"app-team-attendance-create",41),e.nVh(2,ve,1,0,"app-team-attendance-view"),e.k0s()),2&l){const t=e.XpG(2);e.R7$(),e.vxM(t.ended&&t.showAttendance?1:-1),e.R7$(),e.vxM(t.ended&&t.hasAttendance&&!t.showAttendance?2:-1)}}function c(l,v){if(1&l&&(e.j41(0,"div",10)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s()()),2&l){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"module.calendar.cancelled_training")),e.R7$(3),e.JRh(t.attendanceValue.notes)}}function T(l,v){if(1&l){const t=e.RV6();e.j41(0,"div",11)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",42)(5,"mat-form-field",43)(6,"mat-label"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"textarea",44),e.nI1(10,"translate"),e.bIt("ngModelChange",function(m){p.eBV(t);const j=e.XpG(2);return p.Njj(j.reasonCancelling.message=m)}),e.k0s()()(),e.j41(11,"mat-checkbox",45),e.bIt("ngModelChange",function(m){p.eBV(t);const j=e.XpG(2);return p.Njj(j.reasonCancelling.notify=m)}),e.j41(12,"span"),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()}if(2&l){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"module.calendar.reason_cancel_training")),e.R7$(5),e.JRh(e.bMT(8,9,"module.calendar.attendance.comments")),e.R7$(2),e.Y8G("placeholder",e.bMT(10,11,"module.calendar.attendance.comments"))("ngModel",t.reasonCancelling.message),e.R7$(2),e.Y8G("ngModelOptions",e.lJ4(15,s))("ngModel",t.reasonCancelling.notify),e.R7$(2),e.JRh(e.bMT(14,13,"module.calendar.notify_cancelled_training"))}}function d(l,v){1&l&&(e.j41(0,"div",51)(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&l&&(e.R7$(2),e.JRh(e.bMT(3,1,"module.user.private_profile")))}function P(l,v){if(1&l&&(e.j41(0,"div",12)(1,"div",46),e.nrm(2,"img",47),e.k0s(),e.j41(3,"div",48)(4,"div",49)(5,"span"),e.EFF(6),e.k0s()(),e.j41(7,"div",50)(8,"span"),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.nVh(11,d,4,3,"div",51),e.k0s()()),2&l){const t=e.XpG(2);e.R7$(2),e.Y8G("src",t.userClubImageUrl,e.B4B),e.R7$(4),e.JRh(t.userCompleteName),e.R7$(3),e.Lme("",t.userAge," ",e.bMT(10,5,"module.calendar.year")),e.R7$(2),e.vxM(t.userPrivate?11:-1)}}
1function C(l,v){if(1&l&&(e.j41(0,"mat-dialog-content",4),e.nVh(1,K,2,4,"app-alerts",6),e.nVh(2,oe,11,4,"div",7),e.nVh(3,me,17,8,"div",8),e.nVh(4,ge,3,2,"div",9),e.nVh(5,c,6,4,"div",10),e.nVh(6,T,15,16,"div",11),e.nVh(7,P,12,7,"div",12),e.k0s()),2&l){const t=e.XpG();e.Y8G("ngClass",e.l_i(8,te,null==t.appService?null:t.appService.isIosBrowser,null==t.appService?null:t.appService.isAndroidBrowser)),e.R7$(),e.vxM(t.activeAlert?1:-1),e.R7$(),e.vxM("training"===t.event.extendedProps.eventType?2:-1),e.R7$(),e.vxM("game"===t.event.extendedProps.eventType?3:-1),e.R7$(),e.vxM(t.attendanceActive?4:-1),e.R7$(),e.vxM(t.isCancelled?5:-1),e.R7$(),e.vxM(t.isCancellingTraining?6:-1),e.R7$(),e.vxM("birthdate"===t.event.extendedProps.eventType?7:-1)}}function B(l,v){1&l&&(e.j41(0,"div"),e.nrm(1,"app-skeleton-block"),e.k0s())}function F(l,v){if(1&l){const t=e.RV6();e.j41(0,"button",57),e.bIt("click",function(){p.eBV(t);const m=e.XpG(2);return p.Njj(m.invertCancelEvent())}),e.nrm(1,"i",58),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&l&&(e.R7$(3),e.JRh(e.bMT(4,1,"global.button.back")))}function Ce(l,v){1&l&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&l&&(e.R7$(),e.JRh(e.bMT(2,1,"global.button.save")))}function ue(l,v){1&l&&(e.nrm(0,"div",60),e.j41(1,"span",61),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&l&&(e.R7$(2),e.SpI("",e.bMT(3,1,"global.button.saving"),"..."))}function fe(l,v){if(1&l){const t=e.RV6();e.j41(0,"button",59),e.bIt("click",function(){p.eBV(t);const m=e.XpG(2);return p.Njj(m.cancelEvent())}),e.nVh(1,Ce,3,3,"span"),e.nVh(2,ue,4,3),e.k0s()}if(2&l){const t=e.XpG(2);e.Y8G("disabled",t.isSaving),e.R7$(),e.vxM(t.isSaving?-1:1),e.R7$(),e.vxM(t.isSaving?2:-1)}}function he(l,v){if(1&l){const t=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){p.eBV(t);const m=e.XpG(2);return p.Njj(m.invertCancelEvent())}),e.j41(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&l&&(e.R7$(2),e.JRh(e.bMT(3,1,"module.calendar.cancel_training")))}function Ee(l,v){if(1&l){const t=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){p.eBV(t);const m=e.XpG(2);return p.Njj(m.viewAttendance())}),e.j41(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&l&&(e.R7$(2),e.JRh(e.bMT(3,1,"module.calendar.take_attendance")))}function Te(l,v){if(1&l){const t=e.RV6();e.j41(0,"button",57),e.bIt("click",function(){p.eBV(t);const m=e.XpG(2);return p.Njj(m.viewAttendance())}),e.nrm(1,"i",64),e.j41(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&l&&(e.R7$(3),e.JRh(e.bMT(4,1,"module.calendar.attendance.edit")))}function Pe(l,v){if(1&l&&(e.j41(0,"div",5)(1,"button",52),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",2),e.EFF(5),e.k0s(),e.nVh(6,F,5,3,"button",53),e.nVh(7,fe,3,3,"button",54),e.nVh(8,he,4,3,"button",55),e.nVh(9,Ee,4,3,"button",56),e.nVh(10,Te,5,3,"button",53),e.k0s()),2&l){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"global.common.close")),e.R7$(3),e.SpI("",t.event.title," "),e.R7$(),e.vxM(t.isCancellingTraining?6:-1),e.R7$(),e.vxM(t.isCancellingTraining?7:-1),e.R7$(),e.vxM(t.isCancelled||t.isCancellingTraining||t.hasAttendance?-1:8),e.R7$(),e.vxM(!t.isCancelled&&t.ended&&!t.hasAttendance&&t.attendanceActive?9:-1),e.R7$(),e.vxM(!t.isCancelled&&t.ended&&t.hasAttendance?10:-1)}}function Oe(l,v){if(1&l){const t=e.RV6();e.j41(0,"div",5)(1,"button",52),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",2),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",65),e.bIt("click",function(){p.eBV(t);const m=e.XpG();return p.Njj(m.dialogRef.close())}),e.j41(8,"span"),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&l){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,4,"global.common.close")),e.R7$(3),e.JRh(e.bMT(6,6,"global.common.game")),e.R7$(2),e.Y8G("routerLink","/games/"+t.game.id+"/competition"),e.R7$(2),e.JRh(e.bMT(10,8,"module.calendar.goto_game"))}}function xe(l,v){if(1&l){const t=e.RV6();e.j41(0,"button",65),e.bIt("click",function(){p.eBV(t);const m=e.XpG(2);return p.Njj(m.goToUser())}),e.j41(1,"span"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}if(2&l){const t=e.XpG(2);e.Y8G("routerLink",t.userUrl),e.R7$(2),e.JRh(e.bMT(3,2,"module.user.show_profile"))}}function Re(l,v){if(1&l&&(e.j41(0,"div",5)(1,"button",52),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",2),e.EFF(5),e.k0s(),e.nVh(6,xe,4,4,"button",66),e.k0s()),2&l){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"global.common.close")),e.R7$(3),e.SpI("",t.event.title," "),e.R7$(),e.vxM(t.a
1ppService.getIsAdmin()?6:-1)}}let be=(()=>{class l{apiClubConfigService;dialogRef;appService;router;apiUsersService;apiCalendar;apiTeamsService;globalVars;teamService;apiAttendance;apiGameService;clubsService;imageService;event;loading=!0;canEdit=!1;hasAttendance=!1;ended=!1;attendanceValue=null;attendanceText="module.calendar.take_attendance";canTakeAttendance=!1;activeAlert=!1;alert={message:"",type:""};game;competitionName;formatDate;localClubTeam=!1;localClubName;localTeamLogo;formatTime="";visitorClubTeam=!1;visitorClubName;visitorTeamLogo;showAttendance=!1;attendanceActive=!0;date;isCancellingTraining=!1;reasonCancelling={message:"",notify:!0};isCancelled=!1;isSaving=!1;moment;dataInput;modalInput;subscription=new R.yU;userClubImageUrl;userCompleteName;userAge;userPrivate;userUrl;fromTraining=!1;constructor(t,_,m,j,w,Ie,ye,Ve,Ae,De,$e,Fe,je){var Me=this;this.apiClubConfigService=t,this.dialogRef=_,this.appService=m,this.router=j,this.apiUsersService=w,this.apiCalendar=Ie,this.apiTeamsService=ye,this.globalVars=Ve,this.teamService=Ae,this.apiAttendance=De,this.apiGameService=$e,this.clubsService=Fe,this.imageService=je,this.moment=this.globalVars.getMoment(),this.subscription.add(this.teamService.subscribe("back",()=>this.viewAttendance())),this.subscription.add(this.teamService.subscribe("loadAttendance",(0,f.A)(function*(){Me.showAttendance=!1,yield Me.ngOnInit()})))}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){var t=this;return(0,f.A)(function*(){if(t.activeAlert=!1,t.loading=!0,t.canEdit=t.apiCalendar.canEdit(!0)&&!["game","birthdate"].includes(t.dataInput.extendedProps.eventType),t.event=t.dataInput,t.fromTraining=!!t.event.extendedProps.editType,["birthdate"].includes(t.dataInput.extendedProps.eventType)||(t.event.teamId=t.event.extendedProps.teamId),["game","birthdate"].includes(t.dataInput.extendedProps.eventType)||t.apiAttendance.setEventId(t.event.extendedProps.calendarEvent.id,t.event.teamId),!["birthdate"].includes(t.dataInput.extendedProps.eventType)){t.teamService.setTeamId(t.event.teamId);let _=yield t.apiTeamsService.getTeam(t.event.teamId);t.event.teamName=t.teamService.getCustomTeamName(_.team)}if(["game","birthdate"].includes(t.dataInput.extendedProps.eventType)||(t.event.startDate=t.event.start,t.event.endDate=null==t.event.end?t.event.startDate:t.event.end,t.date=t.event.allDay?`${t.moment(t.event.startDate).format("LL")} ${t.moment(t.event.endDate).isSame(t.moment(t.event.startDate),"day")?"":`- ${t.moment(t.event.endDate).format("LL")}`}`:`${t.moment(t.event.startDate).format("LLLL")} - ${t.moment(t.event.endDate).isSame(t.moment(t.event.startDate),"day")?t.moment(t.event.endDate).format("LT"):t.moment(t.event.endDate).format("LLLL")}`),"training"===t.event.extendedProps.eventType){let _=(yield t.apiClubConfigService.getClubConfig().toPromise()).calendar,m=yield t.apiCalendar.getCalendarNotifications().toPromise(),j=yield t.apiTeamsService.getTeam(t.dataInput.extendedProps.teamId);t.attendanceActive=_.attendance&&(_.attendanceTeams||null!=m.sectionsActive.find(w=>w.sectionId===j.sectionId)||null!=m.seasonsActive.find(w=>w.sectionId===j.sectionId&&w.seasonId===j.team.season.id)||null!=m.teamsActive.find(w=>w.teamId===j.teamId)),t.attendanceValue=yield t.apiAttendance.getActualAttendance(),t.isCancelled=t.attendanceValue&&t.attendanceValue.training&&!t.attendanceValue.training.active,t.moment(t.event.start||t.event.end).startOf("day").isBefore(t.moment())&&(t.ended=!0,t.attendanceValue&&t.attendanceValue.training&&(t.hasAttendance=!0)),t.canTakeAttendance=t.apiCalendar.canEdit(!0),t.canTakeAttendance&&t.ended&&t.event.extendedProps.autoOpenEdit&&(t.attendanceActive||t.hasAttendance)&&(t.showAttendance=!0,delete t.event.extendedProps.autoOpenEdit)}if("game"===t.event.extendedProps.eventType&&(t.game=yield t.apiGameService.getGameObservable(t.event.i
1d).toPromise(),t.competitionName=t.game.competition.name,t.formatDate=`${t.moment(t.game.date).format("dddd")}, ${t.moment(t.game.date).format("LL")}`,"0:00"!=t.moment(t.game.date).format("LT")&&(t.formatTime=t.moment(t.game.date).format("LT")),t.game.localTeam.clubId===t.clubsService.getClubId()&&(t.localClubTeam=!0),t.game.visitorTeam.clubId===t.clubsService.getClubId()&&(t.visitorClubTeam=!0),t.localClubName=t.teamService.getCustomTeamName(t.game.localTeam),t.visitorClubName=t.teamService.getCustomTeamName(t.game.visitorTeam),t.localTeamLogo=t.imageService.getClubLogoMediumUrl(t.game.localTeam.club.id),t.visitorTeamLogo=t.imageService.getClubLogoMediumUrl(t.game.visitorTeam.club.id)),"birthdate"===t.event.extendedProps.eventType){let _=t.event.extendedProps.calendarEvent;t.userClubImageUrl=t.imageService.getUserClubLogoLargeUrl(_.id),t.userCompleteName=`${_.firstName}${_.lastName?` ${_.lastName}`:""}  ${null!=_.secondSurname?_.secondSurname:""}`,t.userAge=_.age,t.userPrivate=!0===_.dataPrivacy,t.userUrl=`/user/${_.username}`}t.loading=!1})()}goToUser(){this.apiUsersService.getUserById(this.event.extendedProps.calendarEvent.id,!1,!0).subscribe(t=>{let _=t[0];_.title=`${_.firstName}${null!=_.lastName?` ${_.lastName}`:""}${null!=_.secondSurname?` ${_.secondSurname}`:""}`,this.dialogRef.close(),this.router.navigate(["/admin/users/database/full"]).then(()=>{setTimeout(()=>{this.appService.broadcast("addNewTab",{title:_.title,data:_,type:"user",url:`./user/${_.username}/general`,lastUrl:`./user/${_.username}/general`,renderComponent:A.r5,iconType:"user",fixed:!1})},500)})})}delete(){this.event.extendedProps.calendarEvent.recurrent?this.modalInput.open("select",{message:"module.calendar.type_delete",type:"delete"}):this.modalInput.open("delete",{type:"one"})}editEvent(){this.event.extendedProps.calendarEvent.recurrent?this.modalInput.open("select",{message:"module.calendar.type_edit",type:"edit"}):this.modalInput.open("edit",{noTeam:!1,type:"one",event:this.event,teamId:this.event.teamId})}attendance(){}viewAttendance(){(this.attendanceActive||this.hasAttendance)&&(this.showAttendance=!this.showAttendance)}invertCancelEvent(){this.isCancellingTraining=!this.isCancellingTraining}cancelEvent(){this.activeAlert=!1,this.isSaving=!0,this.apiAttendance.cancelEvent({notes:this.reasonCancelling.message,notify:this.reasonCancelling.notify}).subscribe(t=>{this.isCancellingTraining=!1,this.alert.message="module.calendar.success_training_cancelled",this.alert.type="success",this.activeAlert=!0,this.isCancelled=!0,this.isSaving=!1},t=>{this.alert.message="module.calendar.error_training_cancelled",this.alert.type="danger",this.activeAlert=!0,this.isSaving=!1})}static \u0275fac=function(_){return new(_||l)(e.rXU(x._),e.rXU(b.k),e.rXU(V.d),e.rXU($.Ix),e.rXU(y.K),e.rXU(D.W),e.rXU(U.k),e.rXU(n.Y),e.rXU(u.n),e.rXU(a.T),e.rXU(h.n),e.rXU(o.X),e.rXU(M.M))};static \u0275cmp=e.VBU({type:l,selectors:[["app-event-view"]],inputs:{dataInput:"dataInput",modalInput:"modalInput"},standalone:!1,features:[e.Jv_([a.T])],decls:12,vars:8,consts:[[1,"modal-clupik"],["mat-dialog-title","",1,"dialog-title"],[1,"title"],["mat-button","","mat-dialog-close","",1,"exit-button"],[1,"fix-content",3,"ngClass"],[1,"actions-right","modal-fixed-actions"],["dismissable","true",3,"mensaje","type"],["id","training"],["id","game-container"],["id","attendance"],["id","cancelledTraining"],["id","reasonCancelling"],["id","birthdate"],[1,"icon"],["aria-hidden","true",1,"fa-light","fa-calendar"],[1,"training-info"],[1,"date"],[1,"team"],[1,"actions-right"],[1,"fa-light","fa-trash",3,"disabled"],["type","button",1,"fa-light","fa-edit",3,"matTooltip","disabled"],[1,"fa-light","fa-trash",3,"click","disabled"],["type","button",1,"fa-light","fa-edit",3,"click","matTooltip","disabled"],["id","game-header"],[1,"game-header"],[1,"organization"],[1,"competition"],[1,"location"],[1,"scoreboard"],[1,"game-team-local",3,"routerLink"],[1,"game-team-local"],[1,"game-resume"],[1,"score"],[1,"game-team-visitor",3,"routerLink"],[1,"game-team-visitor"],[1,"name-team"],[1,"club"],[1,"club-shield"],["appLazyLoadImage","","type","club",3,"src"],[1,"score-local"],[1,"score-visitor"],[3,"everything"],[1,"form-row-outlined"],["appearance","outline",1,"field-textarea"],["cols","5","matInput","",3,"ngModelChange","placeholder","ngModel"],["type","checkbox",3,"ngModelChange","ngModelOptions","ngModel"],[1,"image"],["appLazyLoadImage","","type","user",3,"src"],[1,"birthdate-info"],[1,"name"],[1,"age"],[1,"private"],["mat-dialog-close","",1,"btn-close"],["mat-raised-button","",1,"btn-light"],["mat-raised-button","",1,"btn-primary",3,"disabled"],["mat-raised-button","",1,"btn-primary-outline"],["mat-raised-button","",1,"btn-primary"],["mat-raised-button","",1,"btn-light",3,"click"],["aria-hidden","true",1,"fa-light","fa-arrow-left"],["mat-raised-button","",1,"btn-primary",3,"click","disabled"],[1,"spinner-xxs"],[1,"message"],["mat-raised-button","",1,"btn-primary-outline",3,"click"],["mat-raised-button","",1,"btn-primary",3,"click"],[1,"fa-light","fa-edit"],["mat-raised-button","",1,"btn-go-to",3,"click","routerLink"],["mat-raised-button","",1,"btn-go-to",3,"routerLink"]],template:function(_,m){1&_&&(e.j41(0,"div",0)(1,"div",1),e.nVh(2,g,3,3,"span",2),e.nVh(3,r,2,1,"span",2),e.nVh(4,E,2,1,"span",2),e.j41(5,"button",3),e.
1EFF(6,"\xd7"),e.k0s()(),e.nVh(7,C,8,11,"mat-dialog-content",4),e.nVh(8,B,2,0,"div"),e.k0s(),e.nVh(9,Pe,11,9,"div",5),e.nVh(10,Oe,11,10,"div",5),e.nVh(11,Re,7,5,"div",5)),2&_&&(e.R7$(2),e.vxM("game"===m.event.extendedProps.eventType?2:-1),e.R7$(),e.vxM("training"===m.event.extendedProps.eventType?3:-1),e.R7$(),e.vxM("birthdate"===m.event.extendedProps.eventType?4:-1),e.R7$(3),e.vxM(m.loading?-1:7),e.R7$(),e.vxM(m.loading?8:-1),e.R7$(),e.vxM(m.showAttendance||m.loading||"training"!==m.event.extendedProps.eventType||!m.canTakeAttendance?-1:9),e.R7$(),e.vxM(m.loading||"game"!==m.event.extendedProps.eventType?-1:10),e.R7$(),e.vxM(m.loading||"birthdate"!==m.event.extendedProps.eventType?-1:11))},dependencies:[k.YU,L.Wk,S.$z,J.So,b.a,b.b,b.c,N.fg,W.j,W.M,Y.e,X.me,X.BC,X.vS,z.J,Q.K,Z.o,H.L,q.Z,ee.D9],styles:[".modal-clupik[_ngcontent-%COMP%]{width:100%}.modal-clupik[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{text-transform:unset;text-align:center}.modal-clupik[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{border-bottom:none!important}#training[_ngcontent-%COMP%]{background-color:var(--light-grey);border-radius:15px;padding:.8em 1.5em;display:flex}#training[_ngcontent-%COMP%]   .training-info[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column;line-height:1.3em;margin:0 1em}#training[_ngcontent-%COMP%]   .training-info[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{font-size:1em;font-weight:500}#training[_ngcontent-%COMP%]   .training-info[_ngcontent-%COMP%]   .team[_ngcontent-%COMP%]{font-size:.9em}#training[_ngcontent-%COMP%]   .actions-right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-right:.25em}#training[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], #training[_ngcontent-%COMP%]   .actions-right[_ngcontent-%COMP%]{font-weight:500}#game-header[_ngcontent-%COMP%]   .game-header[_ngcontent-%COMP%]{background:transparent;color:#000}#game-header[_ngcontent-%COMP%]   .game-header[_ngcontent-%COMP%]:before{background-color:transparent}#game-header[_ngcontent-%COMP%]   .location[_ngcontent-%COMP%], #game-header[_ngcontent-%COMP%]   .organization[_ngcontent-%COMP%]{color:#000}#game-header[_ngcontent-%COMP%]   .scoreboard[_ngcontent-%COMP%]   [class^=game-team][_ngcontent-%COMP%]{min-width:0}#attendance[_ngcontent-%COMP%]{margin-top:2em}#birthdate[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}#birthdate[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:50%}#birthdate[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{border-radius:50%;object-fit:contain}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:1em}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:.5em}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:2em;font-weight:600}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%]   .age[_ngcontent-%COMP%]{font-size:3em;text-transform:lowercase;font-weight:700}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%]   .private[_ngcontent-%COMP%]{font-size:1.5em}"]})}return l})()},68891:(G,O,i)=>{i.d(O,{k:()=>o});var f=i(49189),u=i(73664),I=i(2615);i(36593);let o=(()=>{class M{static \u0275fac=function(V){return new(V||M)};static \u0275mod=u.$C({type:M});static \u0275inj=I.G2t({imports:[f.G]})}return M})()},73740:(G,O,i)=>{i.d(O,{e:()=>y});var f=i(6064),u=i(47373),I=i(68891),x=i(11890),o=i(11487),M=i(99012),n=i(49189),R=i(11562),V=i(73664),A=i(2615);i(50809);let y=(()=>{class D{static \u0275fac=function(e){return new(e||D)};static \u0275mod=V.$C({type:D});static \u0275inj=A.G2t({imports:[n.G,f.E,u.d,I.k,M.F,R.YG,x.g,o._]})}return D})()},93372:(G,O,i)=>{i.d(O,{m:()=>ge});var f=i(6064),u=i(11890),I=i(11487),x=i(99012),o=i(49189),M=i(11562),n=i(90509),R=i(27126),V=i(47373),A=i(68891),a=i(73664),y=i(2615),D=i(10467),U=i(6185),h=i(78704),e=i(25615),p=i(68010),b=i(52616),$=i(61448),L=i(69915),k=i(36229),S=i(72200),J=i(88834),N=i(91438),W=i(82966),Y=i(25755),X=i(36593),z=i(49255),Q=i(68018);const Z=(c,T)=>({"ios-browser":c,"android-browser":T});function H(c,T){if(1&c&&(a.j41(0,"div",2),a.EFF(1),a.k0s()),2&c){const d=a.XpG();a.R7$(),a.SpI("",d.event.title," ")}}function q(c,T){1&c&&(a.j41(0,"div",2),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&c&&(a.R7$(),a.JRh(a.bMT(2,1,"module.calendar.attendance_literal")))}function ee(c,T){1&c&&(a.j41(0,"div"),a.nrm(1,"app-skeleton-block"),a.k0s())}function te(c,T){if(1&c&&(a.nrm(0,"app-alerts",7),a.nI1(1,"translate")),2&c){const d=a.XpG(2);a.Y8G("mensaje",a.bMT(1,2,d.alert.message))("type",d.alert.type)}}function s(c,T){if(1&c&&(a.j41(0,"div",13)(1,"span"),a.EFF(2),a.k0s()()),2&c){const d=a.XpG(3);a.R7$(2),a.JRh(d.event.place)}}function g(c,T){if(1&c){const d=a.RV6();a.j41(0,"button",17),a.bIt("click",function(){y.eBV(d);const C=a.XpG(3);return y.Njj(C.delete())}),a.k0s()}if(2&c){const d=a.XpG(3);a.Y8G("disabled",d.isCancellingTraining)}}function r(c,T){if(1&c){const d=a.RV6();a.j41(0,"button",18),a.nI1(1,"translate"),a.nI1(2,"translate"),a.bIt("click",function(){y.eBV(d);const C=a.XpG(3);return y.Njj(C.editEvent())}),a.k0s()}if(2&c){const d=a.XpG(3);a.Y8G("matTooltip",a.bMT(1,3,"module.calendar.edit_event_action"))("disabled",d.isCancellingTraining),a.BMQ("aria-label",a.bMT(2,5,"module.calendar.edit_event_action"))}}function E(c,T){if(1&c&&(a.j41(0,"div",8)(1,"div",9),a.nrm(2,"i",10),a.k0s(),a.j41(3,"div",11)(4,"div",12)(5,"span"),a.EFF(6),a.k0s()(),a.j41(7,"div",13)(8,"span"),a.EFF(9),a.k0s()(),a.nVh(10,s,3,1,"div",13),a.j41(11,"div",14),a.nVh(12,g,1,1,"button",15),a.nVh(13,r,3,7,"button",16),a.k0s()()()),2&c){const d=a.XpG(2);a.R7$(6),a.JRh(d.date),a.R7$(3),a.JRh(d.event.teamName),a.R7$(),a.vxM(d.event.place?10:-1),a.R7$(2),a.vxM(d.canEdit?12:-1),a.R7$(),a.vxM(d.canEdit?13:-1)}}function K(c,T){if(1&c&&(a.j41(0,"mat-dialog-content",4),a.nVh(1,te,2,4,"app-alerts",7),a.nVh(2,E,14,5,"div",8),a.k0s()),2&c){const d=a.XpG();a.Y8G("ngClass",a.l_i(3,Z,null==d.appService?null:d.appService.isIosBrowser,null==d.appService?null:d.appService.isAndroidBrowser)),a.R7$(),a.vxM(d.activeAlert?1:-1),a.R7$(),a.vxM("date"===d.event.extendedProps.editType?2:-1)}}function ne(c,T){if(1&c&&(a.j41(0,"span",2),a.EFF(1),a.k0s()),2&c){const d=a.XpG(2);a.R7$(),a.SpI("",d.event.title," ")}}function ae(c,T){1&c&&(a.j41(0,"span",2),a.EFF(1),a.nI1(2,"translate"),a.k0s()),2&c&&(a.R7$(),a.JRh(a.bMT(2,1,"module.calendar.attendance_literal")))}function ie(c,T){if(1&c&&(a.j41(0,"div",5)(1,"button",19),a.EFF(2),a.nI1(3,"translate"),a.k0s(),a.nVh(4,ne,2,1,"span",2),a.nVh(5,ae,3,3,"span",2),a.k0s()),2&c){const d=a.XpG();a.R7$(2),a.JRh(a.bMT(3,3,"global.common.close")),a.R7$(2),a.vxM("notes"===d.event.extendedProps.editType||"date"===d.event.extendedProps.editType?4:-1),a.R7$(),a.vxM("attendance"===d.event.extendedProps.editType?5:-1)}}function oe(c,T){if(1&c&&a.nrm(0,"app-team-attendance-create",20),2&c){const d=a.XpG(2);a.Y8G("notes","notes"===d.event.extendedProps.editType)("everything",!1)}}function le(c,T){if(1&c&&a.nrm(0,"app-team-attendance-view",21),2&c){const d=a.XpG(2);a.Y8G("notes","notes"===d.event.extendedProps.editType)}}function de(c,T){if(1&c&&(a.j41(0,"div",6),a.nVh(1,oe,1,2,"app-team-attendance-create",20),a.nVh(2,le,1,1,"app-team-attendance-view",21),a.k0s()),2&c){const d=a.XpG();a.R7$(),a.vxM(d.ended&&d.showAttendance?1:-1),a.R7$(),a.vxM(d.ended&&d.hasAttendance&&!d.showAttendance?2:-1)}}let se=(()=>{class c{apiClubConfigService;dialogRef;apiCalendar;appService;authService;apiTeamsService;globalVars;apiAttendance;event;loading=!0;canEdit=!1;hasAttendance=!1;ended=!1;attendanceValue=null;attendanceText="module.calendar.take_attendance";canTakeAttendance=!1;activeAlert=!1;alert={message:"",type:""};game;competitionName;formatDate;localClubTeam=!1;localClubName;localTeamLogo;formatTime="";visitorClubTeam=!1;visitorClubName;visitorTeamLogo;showAttendance=!1;attendanceActive=!0;date;isCancellingTraining=!1;reasonCancelling={message:"",notify:!0};isCancelled=!1;isSaving=!1;moment;dataInput;modalInput;userClubImageUrl;userCompleteName;userAge;userPrivate;userUrl;fromTraining=!1;constructor(d,P,C,B,F,Ce,ue,fe){this.apiClubConfigService=d,this.dialogRef=P,this.apiCalendar=C,this.appService=B,this.authService=F,this.apiTeamsService=Ce,this.globalVars=ue,this.apiAttendance=fe,this.moment=this.globalVars.getMoment()}ngOnDestroy(){}ngOnInit(){var d=this;return(0,D.A)(function*(){d.activeAlert=!1,d.loading=!0,d.canEdit=d.apiCalendar.canEdit(!0)&&!["game","birthdate"].includes(d.dataInput.extendedProps.eventType),d.event=d.dataInput,d.apiAttendance.setEventId(d.event.id,d.event.extendedProps.teamId),d.date=`${d.moment(d.event.start).format("dddd")}, ${d.moment(d.event.start).format("LT")}
1-${d.moment(d.event.end).format("LT")}`;let P=(yield d.apiClubConfigService.getClubConfig().toPromise()).calendar,C=yield d.apiCalendar.getCalendarNotifications().toPromise(),B=yield d.apiTeamsService.getTeam(d.dataInput.extendedProps.teamId);d.attendanceActive=P.attendance&&(P.attendanceTeams||null!=C.sectionsActive.find(F=>F.sectionId===B.sectionId)||null!=C.seasonsActive.find(F=>F.sectionId===B.sectionId&&F.seasonId===B.team.season.id)||null!=C.teamsActive.find(F=>F.teamId===B.teamId)),d.attendanceValue=yield d.apiAttendance.getSummoning(d.event.id,d.event.extendedProps.teamId).toPromise(),d.isCancelled=d.attendanceValue&&d.attendanceValue.training&&!d.attendanceValue.training.active,d.moment(d.event.start||d.event.end).startOf("day").isBefore(d.moment())&&(d.ended=!0,d.attendanceValue&&d.attendanceValue.training&&(d.hasAttendance=!0)),d.canTakeAttendance=d.authService.canUserEditTraining(B.teamId),d.canTakeAttendance&&d.ended&&d.event.extendedProps.autoOpenEdit&&(d.attendanceActive||d.hasAttendance)&&(d.showAttendance=!0,delete d.event.extendedProps.autoOpenEdit),d.loading=!1})()}delete(){this.event.extendedProps.calendarEvent.recurrent||this.event.extendedProps.calendarEvent.recurringEventId?this.modalInput.open("select","training"===this.event.extendedProps.eventType?{message:"module.calendar.type_delete",type:"delete",from:"training"}:{message:"module.calendar.type_delete",type:"delete"}):this.modalInput.open("delete","training"===this.event.extendedProps.eventType?{type:"one",from:"training"}:{type:"one"})}editEvent(){this.event.extendedProps.calendarEvent.recurrent||this.event.extendedProps.calendarEvent.recurringEventId?this.modalInput.open("select",{message:"module.calendar.type_edit",type:"edit"}):this.modalInput.open("edit",{noTeam:!1,type:"one",event:this.event,teamId:this.dataInput.extendedProps.teamId})}invertCancelEvent(){this.isCancellingTraining=!this.isCancellingTraining}cancelEvent(){this.activeAlert=!1,this.isSaving=!0,this.apiAttendance.cancelEvent({notes:this.reasonCancelling.message,notify:this.reasonCancelling.notify}).subscribe(()=>{this.isCancellingTraining=!1,this.alert.message="module.calendar.success_training_cancelled",this.alert.type="success",this.activeAlert=!0,this.isCancelled=!0,this.isSaving=!1},()=>{this.alert.message="module.calendar.error_training_cancelled",this.alert.type="danger",this.activeAlert=!0,this.isSaving=!1})}static \u0275fac=function(P){return new(P||c)(a.rXU(h._),a.rXU(k.k),a.rXU(b.W),a.rXU(L.d),a.rXU(p.u),a.rXU($.k),a.rXU(e.Y),a.rXU(R.T))};static \u0275cmp=a.VBU({type:c,selectors:[["app-event-view-training"]],inputs:{dataInput:"dataInput",modalInput:"modalInput"},standalone:!1,decls:10,vars:6,consts:[[1,"modal-clupik"],["mat-dialog-title",""],[1,"title"],["mat-button","","mat-dialog-close","",1,"exit-button"],[1,"fix-content",3,"ngClass"],[1,"modal-fixed-actions"],["id","attendance"],["dismissable","true",3,"mensaje","type"],["id","training"],[1,"icon"],["aria-hidden","true",1,"fa-light","fa-calendar"],[1,"training-info"],[1,"date"],[1,"team"],[1,"actions-right"],[1,"fa-light","fa-trash",3,"disabled"],["type","button",1,"fa-light","fa-edit",3,"matTooltip","disabled"],[1,"fa-light","fa-trash",3,"click","disabled"],["type","button",1,"fa-light","fa-edit",3,"click","matTooltip","disabled"],["mat-dialog-close","",1,"btn-close"],[3,"notes","everything"],[3,"notes"]],template:function(P,C){1&P&&(a.j41(0,"div",0)(1,"div",1),a.nVh(2,H,2,1,"div",2),a.nVh(3,q,3,3,"div",2),a.j41(4,"button",3),a.EFF(5,"\xd7"),a.k0s()(),a.nVh(6,ee,2,0,"div"),a.nVh(7,K,3,6,"mat-dialog-content",4),a.k0s(),a.nVh(8,ie,6,5,"div",5),a.nVh(9,de,3,2,"div",6)),2&P&&(a.R7$(2),a.vxM("notes"===C.event.extendedProps.editType||"date"===C.event.extendedProps.editType?2:-1),a.R7$(),a.vxM("attendance"===C.event.extendedProps.editType?3:-1),a.R7$(3),a.vxM(C.loading?6:-1),a.R7$(),a.vxM(C.loading||"attendance"===C.event.extendedProps.editType||"notes"===C.event.extendedProps.editType?-1:7),a.R7$(),a.vxM("attendance"!==C.event.extendedProps.editType&&"notes"!==C.event.extendedProps.editType?8:-1),a.R7$(),a.vxM("attendance"===C.event.extendedProps.editType||"notes"===C.event.extendedProps.editType?9:-1))},dependencies:[S.YU,J.$z,k.a,k.b,k.c,N.e,W.K,Y.o,X.L,z.Z,Q.D9],styles:[".modal-clupik[_ngcontent-%COMP%]{width:100%}.modal-clupik[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]{text-transform:unset;text-align:center}.modal-clupik[_ngcontent-%COMP%]   .mat-dialog-title[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{border-bottom:none!important}#training[_ngcontent-%COMP%]{background-color:var(--light-grey);border-radius:15px;padding:.8em 1.5em;display:flex}#training[_ngcontent-%COMP%]   .training-info[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column;line-height:1.3em;margin:0 1em}#training[_ngcontent-%COMP%]   .training-info[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{font-size:1em;font-weight:500}#training[_ngcontent-%COMP%]   .training-info[_ngcontent-%COMP%]   .team[_ngcontent-%COMP%]{font-size:.9em}#training[_ngcontent-%COMP%]   .actions-right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-right:.25em}#training[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], #training[_ngcontent-%COMP%]   .actions-right[_ngcontent-%COMP%]{font-weight:500}#game-header[_ngcontent-%COMP%]   .game-header[_ngcontent-%COMP%]{background:transparent;color:#000}#game-header[_ngcontent-%COMP%]   .game-header[_ngcontent-%COMP%]:before{background-color:transparent}#game-header[_ngcontent-%COMP%]   .location[_ngcontent-%COMP%], #game-header[_ngcontent-%COMP%]   .organization[_ngcontent-%COMP%]{color:#000}#game-header[_ngcontent-%COMP%]   .scoreboard[_ngcontent-%COMP%]   [class^=game-team][_ngcontent-%COMP%]{min-width:0}#attendance[_ngcontent-%COMP%]{margin-top:2em}#birthdate[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}#birthdate[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:50%}#birthdate[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{border-radius:50%;object-fit:contain}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:1em}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:.5em}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:2em;font-weight:600}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%]   .age[_ngcontent-%COMP%]{font-size:3em;text-transform:lowercase;font-weight:700}#birthdate[_ngcontent-%COMP%]   .birthdate-info[_ngcontent-%COMP%]   .private[_ngcontent-%COMP%]{font-size:1.5em}@media (min-width: 959px){.modal-fixed-actions[_ngcontent-%COMP%]{display:none}}"]})}return c})(),ce=(()=>{class c{static \u0275fac=function(P){return new(P||c)};static \u0275mod=a.$C({type:c});static \u0275inj=y.G2t({providers:[R.T],imports:[o.G,V.d,A.k,f.E,x.F,M.YG,u.g,I._]})}return c})();var re=i(73740),_e=i(98860),me=i(50809),pe=i(8665),ve=i(49843);let ge=(()=>{class c{static \u0275fac=function(P){return new(P||c)};static \u0275mod=a.$C({type:c});static \u0275inj=y.G2t({imports:[o.G,f.E,x.F,M.YG,u.g,I._,re.e,_e.x,n.R,ce]})}return c})();a.wjB(U.H,[S.ux,S.e1,me.T,pe.e,ve.m,se],[])},98860:(G,O,i)=>{i.d(O,{x:()=>A});
1var f=i(6064),u=i(11890),I=i(11487),x=i(99012),o=i(49189),M=i(11562),n=i(73664),R=i(2615);i(8665);let A=(()=>{class a{static \u0275fac=function(U){return new(U||a)};static \u0275mod=n.$C({type:a});static \u0275inj=R.G2t({imports:[o.G,f.E,x.F,M.YG,u.g,I._]})}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.