1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3673],{3673:(w,P,s)=>{s.r(P),s.d(P,{ListadoJornadasCompeticionPartidosPage:()=>S});var l=s(467),t=s(4438),u=s(3901),v=s(9765),M=s(3421),O=s(9369),b=s(1413),E=s(4412),I=s(9030),x=s(6977),D=s(4843),j=s(8409),f=s(7586),C=s(9914),y=s(8397),R=s(8880),c=s(6462),F=s(7749),T=s(8321),p=s(177);const L=["refresher"],A=["infiniteScroll"];function B(e,r){if(1&e&&(t.j41(0,"div",17),t.EFF(1),t.k0s()),2&e){const i=t.XpG(2);t.R7$(),t.SpI(" ",i.main.Notificacion.numNoVistas," ")}}function $(e,r){if(1&e&&(t.qex(0),t.DNE(1,B,2,1,"div",16),t.bVm()),2&e){const i=t.XpG();t.R7$(),t.Y8G("ngIf",null!=i.main.Notificacion.numNoVistas&&null!=i.main.Notificacion.numNoVistas&&i.main.Notificacion.numNoVistas>0)}}function k(e,r){if(1&e&&(t.j41(0,"h2"),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&e){const i=t.XpG();t.R7$(),t.SpI("",t.bMT(2,1,i.partidos).length," partidos")}}function N(e,r){if(1&e&&(t.j41(0,"h2"),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&e){const i=t.XpG();t.R7$(),t.SpI("",t.bMT(2,1,i.partidos).length," partido")}}function J(e,r){1&e&&(t.j41(0,"div",22)(1,"p"),t.EFF(2,"No hay partidos en estos momentos..."),t.k0s()())}function U(e,r){if(1&e&&(t.j41(0,"div",32)(1,"div"),t.nrm(2,"i",38),t.k0s(),t.j41(3,"div")(4,"p"),t.EFF(5),t.k0s()()()),2&e){const i=t.XpG().$implicit;t.R7$(5),t.JRh(i.funcionEntrenadorOJugador)}}function G(e,r){if(1&e){const i=t.RV6();t.j41(0,"ion-button",39),t.bIt("click",function(o){t.eBV(i);const a=t.XpG().$implicit;return t.XpG(2).registrarResultadosActa(a.id),t.Njj(o.stopPropagation())}),t.EFF(1," Registrar resultados "),t.k0s()}}function V(e,r){if(1&e){const i=t.RV6();t.j41(0,"ion-button",39),t.bIt("click",function(o){t.eBV(i);const a=t.XpG().$implicit,d=t.XpG(2);return d.asignarArbitros(a.id,d.objCompFecha.competicionId,d.objCompFecha.fecha),t.Njj(o.stopPropagation())}),t.EFF(1," Asignar \xe1rbitros "),t.k0s()}}function W(e,r){1&e&&(t.j41(0,"ion-button",40),t.EFF(1," Partido finalizado - No se puede registrar resultados "),t.k0s())}function K(e,r){if(1&e){const i=t.RV6();t.j41(0,"div",23)(1,"div",24),t.bIt("click",function(){const o=t.eBV(i).$implicit,a=t.XpG(2);return t.Njj(a.asignarArbitros(o.id,a.objCompFecha.competicionId,a.objCompFecha.fecha))}),t.j41(2,"div",25)(3,"div",26),t.nrm(4,"i",27),t.k0s()(),t.j41(5,"div",28)(6,"div")(7,"h2"),t.EFF(8),t.k0s()(),t.j41(9,"div",29),t.EFF(10),t.k0s()()(),t.j41(11,"div",30),t.bIt("click",function(){const o=t.eBV(i).$implicit,a=t.XpG(2);return t.Njj(a.asignarArbitros(o.id,a.objCompFecha.competicionId,a.objCompFecha.fecha))}),t.DNE(12,U,6,1,"div",31),t.j41(13,"div",32)(14,"div"),t.nrm(15,"i",33),t.k0s(),t.j41(16,"div")(17,"p"),t.EFF(18),t.k0s()()(),t.j41(19,"div",32)(20,"div"),t.nrm(21,"img",34),t.k0s(),t.j41(22,"div")(23,"p"),t.EFF(24),t.k0s()()()(),t.j41(25,"div",35),t.DNE(26,G,2,0,"ion-button",36)(27,V,2,0,"ion-button",36),t.k0s(),t.DNE(28,W,2,0,"ion-button",37),t.k0s()}if(2&e){const i=r.$implicit;t.R7$(),t.Y8G("ngClass",i.modalidadPartido),t.R7$(7),t.Lme("",i.equipoLocal," vs ",i.equipoVisitante,""),t.R7$(2),t.JRh(i.competicionDatos),t.R7$(2),t.Y8G("ngIf",null!=i.funcionEntrenadorOJugador),t.R7$(6),t.Lme("",i.fechaPartido," ",i.horaPartido,"h"),t.R7$(6),t.JRh(i.pistaPabellon),t.R7$(2),t.Y8G("ngIf",!i.partidoFinalizado),t.R7$(),t.Y8G("ngIf",!i.partidoFinalizado),t.R7$(),t.Y8G("ngIf",i.partidoFinalizado)}}function X(e,r){if(1&e&&(t.j41(0,"div",18),t.DNE(1,J,3,0,"div",19),t.nI1(2,"async"),t.j41(3,"div",20),t.DNE(4,K,29,11,"div",21),t.nI1(5,"async"),t.k0s()()),2&e){const i=t.XpG();t.R7$(),t.Y8G("ngIf",0==t.bMT(2,2,i.partidos).length),t.R7$(3),t.Y8G("ngForOf",t.bMT(5,4,i.partidos))}}function Y(e,r){if(1&e){const i=t.RV6();t.j41(0,"ion-infinite-scroll",41),t.bIt("ionInfinite",function(o){t.eBV(i);const a=t.XpG();return t.Njj(a.onIonInfinite(o))}),t.nrm(1,"ion-infinite-scroll-content"),t.k0s()}}let S=(()=>{var e;class r{constructor(n,o,a,d,m,z,H,Q){var _=this;this.activatedRoute=n,this.toastService=o,this.navCtrl=a,this.router=d,this.menu=m,this.loader=z,this.popoverController=H,this.main=Q,this.menuService=(0,t.WQX)(v.$),this.ready=!1,this.initCount=0,this.destroy$=new b.B,this.anySelected=new E.t(!1),this.start=0,this.limit=20,this.total=0,this.fe
1chaDesde=f().clone().startOf("month").format("YYYY-MM-DD"),this.fechaHasta=f().clone().endOf("month").format("YYYY-MM-DD"),this.ready=!1,this.listaComboDesignaciones=[{id:0,texto:"Todas"},{id:1,texto:"Pendientes"},{id:2,texto:"Aceptadas"},{id:3,texto:"Rechazadas"}],this.filtroRangoSeleccionado=this.listaComboDesignaciones[1].texto,this.filtroValorSeleccionado=this.listaComboDesignaciones[1].id,this.objCompFecha=this.activatedRoute.snapshot.data.datosUrl,console.log(this.objCompFecha),this.partidos=new O.A(g=>(0,I.v)((0,l.A)(function*(){_.loader.show();let h=yield _.main.Partido.getPartidosCmpJornadaFinal({start:g.start,limit:g.limit,dir:"ASC",competicionFinalId:_.objCompFecha.competicionId?_.objCompFecha.competicionId:0,fecha:_.objCompFecha.fecha,filtroBusqueda:"",pabellonId:_.objCompFecha.pabellonId});return _.loader.hide(),h})),20),this.partidos.pipe((0,x.Q)(this.destroy$)).subscribe(g=>{g.find(h=>h.Selected)?this.anySelected.next(!0):this.anySelected.next(!1)})}ngOnInit(){this.init()}init(){var n=this;return(0,l.A)(function*(){try{n.loader.show()}catch(o){console.log(o),n.toastService.showToast(o)}finally{n.loader.hide(),n.ready=!0}})()}ngAfterViewInit(){var n=this;return(0,l.A)(function*(){try{n.loader.show();let o=document.getElementById("filtroFechaDesde"),a=document.getElementById("filtroFechaHasta");o&&a&&(o.value=n.fechaDesde,a.value=n.fechaHasta),yield n.partidos.loadPage(),console.log(n.partidos)}catch{}finally{n.ready=!0,n.loader.hide()}})()}onIonInfinite(n){var o=this;return(0,l.A)(function*(){(yield(0,D._)(o.partidos.HasMoreItems))&&(yield o.partidos.loadPage()),n.target.complete()})()}handleRefresh(n){var o=this;return(0,l.A)(function*(){yield o.partidos.reset(),n.target.complete()})()}refrescarLista(){let n=document.getElementById("filtroFechaDesde"),o=document.getElementById("filtroFechaHasta");null!=n&&(this.fechaDesde=n.value),null!=o&&(this.fechaHasta=o.value),this.partidos.reset()}arbitroDisponibilidadId(n){}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ionViewDidEnter(){var n=this;return(0,l.A)(function*(){n.initCount+=1,console.log(n.initCount),n.initCount>1&&(yield n.partidos.reset())})()}openComboFiltroFechas(n){var o=this;return(0,l.A)(function*(){return yield(yield o.popoverController.create({component:j.l,componentProps:{values:o.listaComboDesignaciones,selectedValue:d=>{o.comboSelect(d)}},event:n,translucent:!0})).present()})()}comboSelect(n){for(let o=0;o<this.listaComboDesignaciones.length;o++)this.listaComboDesignaciones[o].id==n&&(this.filtroRangoSeleccionado=this.listaComboDesignaciones[o].texto,this.filtroValorSeleccionado=this.listaComboDesignaciones[o].id,this.partidos.reset())}asignarArbitros(n,o,a){this.navCtrl.navigateForward(`formulario-asignar-arbitros-jornadas/${o}/${a}/${n}`)}registrarResultadosActa(n){this.loader.show(),this.navCtrl.navigateForward(`/formulario-registro-resultados/${n}`),this.loader.hide()}}return(e=r).\u0275fac=function(n){return new(n||e)(t.rXU(C.nX),t.rXU(y.f),t.rXU(R.q9),t.rXU(C.Ix),t.rXU(c._t),t.rXU(F.Z),t.rXU(c.IE),t.rXU(T.t))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-listado-jornadas-competicion-partidos"]],viewQuery:function(n,o){if(1&n&&(t.GBs(L,5,t.aKT),t.GBs(A,5)),2&n){let a;t.mGM(a=t.lsd())&&(o.refresher=a.first),t.mGM(a=t.lsd())&&(o.infiniteScroll=a.first)}},standalone:!0,features:[t.aNF],decls:26,vars:14,consts:[["refresher",""],[1,"headerCustomizado","ion-no-border"],["slot","start"],["defaultHref","/home","text",""],[1,"campanaHome",3,"click"],[4,"ngIf"],[1,"icono"],[1,"fas","fa-bell"],[3,"fullscreen"],[1,"seccion"],[1,"cabecera","mb15"],[1,"titular"],[1,"separador"],["class","mt20",4,"ngIf"],[3,"ionInfinite",4,"ngIf"],["slot","fixed",3,"ionRefresh"],["class","numero",4,"ngIf"],[1,"numero"],[1,"mt20"],["class","empty-text",4,"ngIf"],[1,"listado"],["class","ficha",4,"ngFor","ngForOf"],[1,"empty-text"],[1,"ficha"],[1,"listado-top",3,"click","ngClass"],[1,"listado-izq"],[1,"listado-ico"],[1,"far","fa-volleyball-ball"],[1,"listado-dch"],[1,"funcion"],[1,"bottom",3,"click"],["class","fila",4,"ngIf"],[1,"fila"],[1,"far","fa-clock"],["src","/assets/images/ico-pabellon.svg","alt","Pabell\xf3n"],[1,"visitante",2,"display","flex","gap","8px"],["class","btn-resultados","expand","block","style","flex: 1;",3,"click",4,"ngIf"],["class","btn-resultados","expand","block","disabled","true",4,"ngIf"],[1,"far","fa-user"],["expand","block",1,"btn-resultados",2,"flex","1",3,"click"],["expand","block","disabled","true",1,"btn-resultados"],[3,"ionInfinite"]],template:function(n,o){if(1&n){const a=t.RV6();t.j41(0,"ion-header",1)(1,"ion-toolbar")(2,"ion-buttons",2),t.nrm(3,"ion-back-button",3),t.k0s(),t.j41(4,"ion-title"),t.EFF(5,"Partidos competici\xf3n jornada"),t.k0s(),t.j41(6,"div",4),t.bIt("click",function(){return t.eBV(a),t.Njj(o.main.openNotificaciones())}),t.DNE(7,$,2,1,"ng-container",5),t.j41(8,"div",6),t.nrm(9,"i",7),t.k0s()()()(),t.j41(10,"ion-content",8)(11,"div",9)(12,"div",10)(13,"div",11),t.nrm(14,"div",12),t.DNE(15,k,3,3,"h2",5),t.nI1(16,"async"),t.nI1(17,"async"),t.DNE(18,N,3,3,"h2",5),t.nI1(19,"async"),t.k0s()(),t.DNE(20,X,6,6,"div",13)(21,Y,2,0,"ion-infinite-scroll",14),t.nI1(22,"async"),t.j41(23,"ion-refresher",15,0),t.bIt("ionRefresh",function(m){return t.eBV(a),t.Njj(o.handleRefresh(m))}),t.nrm(25,"ion-refresher-content"),t.k0s()()()}2&n&&(t.R7$(7),t.Y8G("ngIf",null!=o.main.Notificacion.numNoVistas&&null!=o.main.Notificacion.numNoVistas&&o.main.Notificacion.numNoVistas>0),t.R7$(3),t.Y8G("fullscreen",!0),t.R7$(5),t.Y8G("ngIf",t.bMT(16,6,o.partidos).length>1||0==t.bMT(17,8,o.partidos).length),t.R7$(3),t.Y8G("ngIf",1==t.bMT(19,10,o.partidos).length),t.R7$(2),t.Y8G("ngIf",o.ready),t.R7$(),t.Y8G("ngIf",t.bMT(22,12,o.partidos.HasMoreItems)))},dependencies:[u.j,p.YU,p.Sq,p.bT,c.W9,c.eU,c.ai,c.BC,c.Jm,c.Ax,c.Hp,c.To,c.Ki,c.QW,c.el,p.Jj,M.h],styles:["ion-segment-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:18px;margin-bottom:5px}ion-segment-button[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{padding:5px}ion-footer[_ngcontent-%COMP%] ion-toolbar[_ngcontent-%COMP%]{--min-height: initial}ion-segment-button[_ngcontent-%COMP%]{letter-spacing:0;text-transform:none}.listado[_ngcontent-%COMP%]{background-color:#f3f3f3}.listado[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.listado[_ngcontent-%COMP%] .ficha[_ngcontent-%COMP%]{background-color:#fff;padding:16px;border-radius:9px}.listado[_ngcontent-%COMP%] .ficha[_ngcontent-%COMP%] .btn-resultados[_ngcontent-%COMP%]{margin-top:12px;font-size:13px}.listado[_ngcontent-%COMP%] .ficha[_ngcontent-%COMP%] .funcion[_ngcontent-%COMP%]{color:#111;font-size:13px;margin-top:1px}.listado[_ngcontent-%COMP%] .ficha[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:700;color:var(--ion-color-primary)}.listado[_ngcontent-%COMP%] .ficha[_ngcontent-%COMP%] .listado-ico[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#333;font-size:15px;border-radius:50%;width:42px;height:42px;margin:0 12px 0 0}.listado[_ngcontent-%COMP%] .ficha[_ngcontent-%COMP%] .listado-ico[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;max-height:17px;max-width:19px}.listado[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{margin-top:6px;font-size:13px}.listado[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .fila[_ngcontent-%COMP%]{display:flex}.listado[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .fila[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-right:10px;min-width:16px;text-align:center}.listado[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .fila[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.listado[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .fila[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px}.listado[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%] .fila[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:14px}.listado-top[_ngcontent-%COMP%]{display:flex}.listado-dch[_ngcontent-%COMP%]{flex-grow:1}.listado-izq[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin:0;font-size:12px;font-weight:600;color:#333}.listado-dch[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:7px 0 0;font-size:13px;font-weight:400;color:#484848}.listado-dch[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4px}.listado-dch[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 8px;font-size:14px;font-weight:400;color:#737373}.listado-bottom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .listado-bottom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{font-size:16px;color:#333;font-weight:600}
1.listado-bottom-separator[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin:0 8px;font-size:16px;display:flex;align-items:center;justify-content:center;color:#333}.voleybol[_ngcontent-%COMP%] .listado-ico[_ngcontent-%COMP%]{background-color:gold}.voleyplaya[_ngcontent-%COMP%] .listado-ico[_ngcontent-%COMP%]{background-color:#ff9800}.segment-button-checked.md[_ngcontent-%COMP%]::part(native){color:var(--ion-color-primary)}.segment-button-checked[_ngcontent-%COMP%]{--color-checked: var(--ion-color-primary);--indicator-color: var(--ion-color-primary)}"]}),r})()}}]);
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.