1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[11793],{11793:(ft,g,i)=>{i.r(g),i.d(g,{CompetitionManagerDigitalRecordGamesDetailResumeModule:()=>ut});var v=i(61479),d=i(38132),_=i(10467),b=i(52612),C=i(39652),R=i(59960),T=i(52538),y=i(25615),u=i(84412),G=i(50932),D=i(69915),x=i(50433),t=i(73664),r=i(2615),h=i(91029),S=i(75281),m=i(72200),M=i(90852),A=i(89792),I=i(69415),Y=i(15449),$=i(72357),V=i(64927),X=i(47649),B=i(52806),L=i(91724);const f=(n,l,e)=>({name:n,score:l,image:e}),j=(n,l,e,a)=>({hour:n,status:l,local:e,visitor:a}),N=n=>({value:n,is:!0}),P=n=>({value:n,is:!1}),p=n=>[n];function k(n,l){1&n&&t.eu8(0)}function H(n,l){if(1&n&&(t.qex(0),t.DNE(1,k,1,0,"ng-container",3),t.bVm()),2&n){t.XpG();const e=t.sdS(3);t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function O(n,l){1&n&&t.eu8(0)}function w(n,l){if(1&n&&(t.qex(0),t.j41(1,"app-block-column",4),t.DNE(2,O,1,0,"ng-container",3),t.k0s(),t.bVm()),2&n){const e=t.XpG(),a=t.sdS(3);t.R7$(),t.Y8G("loading",e.loading),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function U(n,l){if(1&n&&t.nrm(0,"app-scoreboard",16),2&n){const e=t.XpG().ngIf,a=t.XpG(2);t.Y8G("game",a.game)("gameStatus","incomplete"==e?"playing":"finish")("fromLive",!1)}}function F(n,l){if(1&n){const e=t.RV6();t.j41(0,"app-clupik-state-bar",17),t.bIt("buttonAction",function(){r.eBV(e);const o=t.XpG(3);return r.Njj(o.link())}),t.k0s()}}function E(n,l){if(1&n){const e=t.RV6();t.j41(0,"app-empty-space",18),t.bIt("buttonAction",function(){r.eBV(e);const o=t.XpG(3);return r.Njj(o.sendActa())}),t.k0s()}if(2&n){const e=t.XpG(3);t.Y8G("textArray",t.eq3(3,p,e.literalStart+"finished_game"))("noButton",!1)("buttonText",e.literalStart+"show_acta")}}function z(n,l){if(1&n&&t.nrm(0,"app-empty-space",19),2&n){const e=t.XpG(3);t.Y8G("textArray",t.eq3(2,p,e.literalStart+"incomplete_game"))("noButton",!0)}}function J(n,l){if(1&n){const e=t.RV6();t.j41(0,"app-empty-space",20),t.bIt("buttonAction",function(){r.eBV(e);const o=t.XpG(3);return r.Njj(o.recover())}),t.k0s()}if(2&n){const e=t.XpG(3);t.Y8G("textArray",t.eq3(3,p,e.literalStart+"notplayed_game"))("noButton",!e.canManageTeam())("buttonText",e.literalStart+"recover")}}function W(n,l){if(1&n&&(t.qex(0),t.nrm(1,"app-form-separator",10),t.j41(2,"div",21)(3,"div",22),t.EFF(4),t.k0s()(),t.bVm()),2&n){const e=t.XpG(3);t.R7$(4),t.JRh(null==e.game||null==e.game.configuration?null:e.game.configuration.observations)}}function K(n,l){1&n&&t.eu8(0)}function Q(n,l){1&n&&t.eu8(0)}function Z(n,l){if(1&n&&(t.qex(0),t.j41(1,"app-block-item",6),t.nrm(2,"app-list-item-game",7),t.DNE(3,U,1,3,"app-scoreboard",8),t.nrm(4,"app-list-item",9)(5,"app-list-item",9)(6,"app-form-separator",10),t.DNE(7,F,1,0,"app-clupik-state-bar",11)(8,E,1,5,"app-empty-space",12)(9,z,1,4,"app-empty-space",13)(10,J,1,5,"app-empty-space",14)(11,W,5,1,"ng-container",2),t.k0s(),t.DNE(12,K,1,0,"ng-container",15)(13,Q,1,0,"ng-container",15),t.bVm()),2&n){const e=l.ngIf,a=t.XpG(2),o=t.sdS(5);t.R7$(),t.Y8G("whiteBorder",!0)("showTitle",!1),t.R7$(),t.Y8G("game",t.ziG(31,j,null==a.game||null==a.game.match||null==a.game.match.attributes?null:a.game.match.attributes.datetime,a.status,t.sMw(23,f,null==a.local?null:a.local.name,a.homePoints,null==a.local?null:a.local.avatar),t.sMw(27,f,null==a.visitor?null:a.visitor.name,a.awayPoints,null==a.visitor?null:a.visitor.avatar))),t.R7$(),t.Y8G("ngIf","notplayed_game"!==e&&a.isVolley),t.R7$(),t.Y8G("infoStyle",!0)("mainTitle",null==a.tournament||null==a.tournament.attributes?null:a.tournament.attributes.name)("subtitle",null==a.round||null==a.round.attributes?null:a.round.attributes.name)("hasHover",!1)("isCollapsed",!0),t.R7$(),t.Y8G("infoStyle",!0)("mainTitle",(null==a.venue||null==a.venue.attributes?null:a.venue.attributes.name)||"-")("subtitle",a.gameTime)("hasHover",a.globalVars.desktop)("isCollapsed",!0),t.R7$(2),t.Y8G("ngIf",a.gameNeedsLink),t.R7$(),t.Y8G("ngIf","finished_game"==e),t.R7$(),t.Y8G("ngIf","incomplete"==e),t.R7$(),t.Y8G("ngIf","notplayed_game"==e),t.R7$(),t.Y8G("ngIf",null==a.game||null==a.game.configuration?null:a.game.configuration.observations),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(36,N,a.local)),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(38,P,a.visitor))}}function q(n,l){if(1&n&&(t.j41(0,"div",5),t.DNE(1,Z,14,40,"ng-container",2),t.nI1(2,"async"),t.k0s()),2&n){const e=t.XpG();t.AVh("bottom-fix",e.hasNavbar),t.R7$(),t.Y8G("ngIf",t.bMT(2,3,e.activeView$))}}function tt(n,l){if(1&n&&t.nrm(0,"app-list-item",32),2&n){let e,a;const o=t.XpG().is,s=t.XpG();t.Y8G("infoStyle",!1)("subtitle","module.mng.digital_record.main_coach")("image",(null==(e=s.mainCoac
1h(o))?null:e.avatar)||"#")("mainTitle",s.mainCoach&&(null==(a=s.mainCoach(o))?null:a.name)||"-")("hasHover",!1)("isCollapsed",!0)}}function et(n,l){if(1&n&&t.nrm(0,"app-list-item",32),2&n){const e=l.$implicit,a=t.XpG(2);t.Y8G("infoStyle",!1)("subtitle","module.mng.digital_record.aux_coach")("image",(null==e?null:e.avatar)||"#")("mainTitle",a.mainCoach&&(null==e?null:e.name)||"-")("hasHover",!1)("isCollapsed",!0)}}function at(n,l){if(1&n&&t.nrm(0,"app-list-item",33),2&n){const e=l.$implicit,a=t.XpG(2);t.Y8G("isDorsal",!0)("hasHover",!1)("dorsal",a.getDorsal(e))("mainTitle",e.name)("subtitle",e.description)("image",e.avatar||"#")}}function nt(n,l){if(1&n){const e=t.RV6();t.j41(0,"app-block-item",23)(1,"div",24)(2,"div",25),t.nrm(3,"app-navbar-resume",26),t.DNE(4,tt,1,6,"app-list-item",27)(5,et,1,6,"app-list-item",28),t.k0s(),t.nrm(6,"app-form-separator",10),t.j41(7,"div",29)(8,"app-navbar-resume",30),t.bIt("buttonAction",function(){const o=r.eBV(e).is,s=t.XpG();return r.Njj(s.addPlayers(o?"LOC":"VIS"))}),t.k0s(),t.DNE(9,at,1,6,"app-list-item",31),t.k0s()()()}if(2&n){let e;const a=l.value,o=l.is,s=t.XpG();t.Y8G("image",null==a?null:a.avatar)("whiteBorder",!0)("mainTitle",null==a?null:a.name)("subtitle","module.competition."+(o?"local":"visitor"))("hasButton",!1),t.R7$(3),t.Y8G("capitalLetters",!0)("transparent",!0)("mainTitle","Cuerpo t\xe9cnico")("hasButton",!1),t.R7$(),t.Y8G("ngIf",s.mainCoach(o)),t.R7$(),t.Y8G("ngForOf",s.normalCoaches(o)),t.R7$(3),t.Y8G("descriptionNumber",null==(e=s.getSummonedPlayers(o))?null:e.length)("capitalLetters",!0)("transparent",!0)("mainTitle","Deportistas")("hasButton",!1)("buttonIcon","fa-solid fa-pen"),t.R7$(),t.Y8G("ngForOf",s.getSummonedPlayers(o))}}const it=[{path:"",component:(()=>{class n{globalVars;_activatedRoute;_router;_cmHistory;_clubMenu;_gameService;_apiDates;_modalCtrl;_appService;_cmService;activeView$=new u.t("finished_game");literalStart="module.mng.digital_record.resume.";consoled=!1;get loading(){return null===this.game}get isVolley(){return this._gameService.isVolley}get game(){return this._gameService.selectedGame&&!this.consoled&&(this.consoled=!0,this.setData()),this._gameService.selectedGame}local$=new u.t(null);set local(e){this.local$.next(e)}get local(){return this.local$.value}visitor$=new u.t(null);set visitor(e){this.visitor$.next(e)}get visitor(){return this.visitor$.value}get tournament(){return this.game?.match?.tournaments?this.game?.match?.tournaments[0]:""}get venue(){return this.game?.match?.facility}get round(){return this.game?.match?.round}get status(){return this._gameService?.gameStatus()}get homePoints(){return this.game?.match?.homePoints}get awayPoints(){return this.game?.match?.awayPoints}get hasNavbar(){return this._cmHistory.showAppFooter&&this.globalVars.responsive&&this._clubMenu.appLinks?.length>0}get gameTime(){return this._apiDates.formatLocalUtcDate(this.game?.match?.attributes?.datetime,"YYYY-MM-DD HH:mm:ss","DD/MM/YYYY [-] HH:mm")}get gameNeedsLink(){return this._gameService.gameNeedsLink}get canRecordLiveResults(){return this.game?.match?.rules?.match_visible_minute_by_minute}constructor(e,a,o,s,c,pt,gt,dt,_t,ht){this.globalVars=e,this._activatedRoute=a,this._router=o,this._cmHistory=s,this._clubMenu=c,this._gameService=pt,this._apiDates=gt,this._modalCtrl=dt,this._appService=_t,this._cmService=ht}ngAfterViewInit(){this.activeView$.next(this._gameService.isGameFinished?"finished_game":this._gameService.isGameIncomplete?"incomplete":"notplayed_game"),this.globalVars.navbarTop.title=this.literalStart+this.activeView$.value}setData(){this.local=this.game?.match.homeTeam,this.visitor=this.game?.match.awayTeam,this.game.match.homeTeam.setColorToDorsals(""),this.game.match.awayTeam.setColorToDorsals(""),this.game.match.homeTeam.toggleSelectableDorsals(!1),this.game.match.awayTeam.toggleSelectableDorsals(!1)}goToGames(){this._cmHistory.setCurrent(),this._cmHistory.showAppFooter=!1,this.globalVars.clupikNavigate("/user/digital-record/games")}canManageTeam(){return!!this._cmService.mainProfile&&this._cmService.licenses.some(o=>"referee"===o.attributes.type)}sendActa(){var e=this;return(0,_.A)(function*(){e.getActa()})()}openPDF(e,a){var o=this;return(0,_.A)(function*(){const s=o.globalVars.app?"inappbrowser":"newtab";yield(yield o._modalCtrl.create({...o.globalVars.modalConfigIframe,component:G.s,componentProps:{targetUrl:e,title:a,type:s,hasToWait:!0}})).present()})()}getActa(){let e=null;this.globalVars.responsive?(this.openPDF("","Acta"),e=this._gameService.getActaUrl(this.canRecordLiveResults)):e=this._gameService.downloadActa(this.canRecordLiveResults),e.subscribe({next:a=>{if(this.globalVars.responsive)this._appService.broadcast("endLoading",{loading:!1,url:a.url});else{let o=a;const s=document.createElement("a");document.body.appendChild(s),s.style.display="none";const c=window.URL.createObjectURL(o);s.href=c,s.target="_blank",s.download="Acta.pdf",s.click(),window.URL.revokeObjectURL(c),s.remove()}},error:a=>{console.error("Error downloading acta",a),this._appService.broadcast("errorLoading",{loading:!1})}})}recover(){this._gameService.selectedGame.configuration.matchStatus="PENDING",this._gameService.saveActualGame(!1),this._router.navigate(["../pregame"],{relativeTo:this._activatedRoute})}link(){this._router.navigate(["../link"],{relativeTo:this._activatedRoute})}getSummonedCoaches(e){return this.game?.match[e?"homeTeam":"awayTeam"]?.summonedCoaches}getSummonedPlayers(e){return this.game?.match[e?"homeTeam":"awayTeam"]?.summonedPlayers}
1mainCoach(e){return this.getSummonedCoaches(e)?.find(a=>a.isMain)||null}normalCoaches(e){return this.getSummonedCoaches(e)?.filter(a=>!a.isMain)}getDorsal(e){return{...e.dorsal,status:"default",position:"",isDesqualified:!1,isExpulsed:!1}}static \u0275fac=function(a){return new(a||n)(t.rXU(y.Y),t.rXU(h.nX),t.rXU(h.Ix),t.rXU(R.C),t.rXU(C.$),t.rXU(T.T),t.rXU(b.C),t.rXU(S.ModalController),t.rXU(D.d),t.rXU(x.y))};static \u0275cmp=t.VBU({type:n,selectors:[["app-competition-manager-digital-record-games-detail-resume"]],standalone:!1,decls:6,vars:2,consts:[["commonContentResume",""],["commonBlockTeamResume",""],[4,"ngIf"],[4,"ngTemplateOutlet"],[3,"loading"],[1,"competition-manager-digital-record-games-detail-resume"],[3,"whiteBorder","showTitle"],[3,"game"],[3,"game","gameStatus","fromLive",4,"ngIf"],[3,"infoStyle","mainTitle","subtitle","hasHover","isCollapsed"],[1,"divider-line-sm"],["state","warning","direction","column","mainTitle","module.mng.digital_record.unlinked_licenses","subtitle","module.mng.digital_record.unlinked_licenses_desc","buttonText","global.button.link","buttonType","button","buttonConfig","main",3,"buttonAction",4,"ngIf"],["size","default","svgImage","completed","icon","fa-regular fa-clipboard-list-check","buttonType","button","buttonConfig","outlined",3,"textArray","noButton","buttonText","buttonAction",4,"ngIf"],["size","default","svgImage","completed",3,"textArray","noButton",4,"ngIf"],["size","default","svgImage","completed","buttonType","button","buttonConfig","outlined",3,"textArray","noButton","buttonText","buttonAction",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"game","gameStatus","fromLive"],["state","warning","direction","column","mainTitle","module.mng.digital_record.unlinked_licenses","subtitle","module.mng.digital_record.unlinked_licenses_desc","buttonText","global.button.link","buttonType","button","buttonConfig","main",3,"buttonAction"],["size","default","svgImage","completed","icon","fa-regular fa-clipboard-list-check","buttonType","button","buttonConfig","outlined",3,"buttonAction","textArray","noButton","buttonText"],["size","default","svgImage","completed",3,"textArray","noButton"],["size","default","svgImage","completed","buttonType","button","buttonConfig","outlined",3,"buttonAction","textArray","noButton","buttonText"],[1,"observations"],[1,"text","md"],[3,"image","whiteBorder","mainTitle","subtitle","hasButton"],[1,"team-info"],[1,"team-coaches-info"],["titleClass","h4",3,"capitalLetters","transparent","mainTitle","hasButton"],["imageType","user",3,"infoStyle","subtitle","image","mainTitle","hasHover","isCollapsed",4,"ngIf"],["imageType","user",3,"infoStyle","subtitle","image","mainTitle","hasHover","isCollapsed",4,"ngFor","ngForOf"],[1,"team-players-info"],["description","global.common.guests","titleClass","h4","buttonLabel","global.common.edit","buttonConfig","outlined",3,"buttonAction","descriptionNumber","capitalLetters","transparent","mainTitle","hasButton","buttonIcon"],["imageType","user",3,"isDorsal","hasHover","dorsal","mainTitle","subtitle","image",4,"ngFor","ngForOf"],["imageType","user",3,"infoStyle","subtitle","image","mainTitle","hasHover","isCollapsed"],["imageType","user",3,"isDorsal","hasHover","dorsal","mainTitle","subtitle","image"]],template:function(a,o){1&a&&t.DNE(0,H,2,1,"ng-container",2)(1,w,3,2,"ng-container",2)(2,q,3,5,"ng-template",null,0,t.C5r)(4,nt,10,18,"ng-template",null,1,t.C5r),2&a&&(t.Y8G("ngIf",o.globalVars.desktop),t.R7$(),t.Y8G("ngIf",o.globalVars.responsive))},dependencies:[m.Sq,m.bT,m.T3,M.n,A.a,I.p,Y.P,$.W,V.h,X.P,B.j,L.a,m.Jj],styles:[".competition-manager-digital-record-games-detail-resume[_ngcontent-%COMP%]{width:100%;max-height:none;min-height:calc(100dvh - var(--main-nav-top) - var(--ion-safe-area-top) - var(--ion-safe-area-bottom))}.competition-manager-digital-record-games-detail-resume.bottom-fix[_ngcontent-%COMP%]{min-height:calc(100dvh - var(--main-nav-top) - var(--ion-safe-area-top) - var(--ion-safe-area-bottom) - 64px)}.observations[_ngcontent-%COMP%]{display:flex;padding:6px 0;align-items:flex-start;align-self:stretch}"]})}return n})()}];let ot=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275mod=t.$C({type:n});
1static \u0275inj=r.G2t({imports:[d.iI.forChild(it),d.iI]})}return n})();var lt=i(49189),st=i(21867),rt=i(66124),mt=i(62470);let ct=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275mod=t.$C({type:n});static \u0275inj=r.G2t({imports:[m.MD,lt.G,st.v,rt.M,mt.k]})}return n})(),ut=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275mod=t.$C({type:n});static \u0275inj=r.G2t({imports:[v.O,ct,ot]})}return n})()}}]);
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.