File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/895.d6e90ca0ea475125.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[895,2697,4769,5553,7150,9531,7934,1337,315],{55553:(x,f,n)=>{n.d(f,{h:()=>_});var t=n(77897),u=n(56610),a=n(41683),s=n(13721),g=n(22882),e=n(37222),l=n(36594),P=n(2978);let _=(()=>{class c{static#t=this.\u0275fac=function(C){return new(C||c)};static#e=this.\u0275mod=P.$C({type:c});static#n=this.\u0275inj=P.G2t({imports:[u.MD,t.bv,s.h,a.Y,g.h.forChild(),e.YN,l.rJ]})}return c})()},81337:(x,f,n)=>{n.d(f,{O:()=>e});var t=n(2978),u=n(56610),a=n(77897);function s(l,P){if(1&l&&t.nrm(0,"img",5),2&l){const _=t.XpG();t.FS9("src",_.emptySettingsSlide.urlImage,t.B4B)}}function g(l,P){if(1&l&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&l){const _=t.XpG();t.R7$(1),t.SpI(" ",_.emptySettingsSlide.text," ")}}let e=(()=>{class l{constructor(){this.emptySettingsSlide=[],this.slideOpts={allowSlidePrev:!1,allowSlideNext:!1,initialSlide:1,speed:400}}ngOnInit(){}static#t=this.\u0275fac=function(c){return new(c||l)};static#e=this.\u0275cmp=t.VBU({type:l,selectors:[["app-empty-component"]],inputs:{emptySettingsSlide:"emptySettingsSlide"},decls:6,vars:3,consts:[["pager","false",3,"options"],[1,"slide_center"],[1,"slide"],["alt","image_camponent",3,"src",4,"ngIf"],[4,"ngIf"],["alt","image_camponent",3,"src"]],template:function(c,E){1&c&&(t.j41(0,"ion-slides",0)(1,"ion-slide",1)(2,"div",2),t.DNE(3,s,1,1,"img",3),t.j41(4,"ion-label"),t.DNE(5,g,2,1,"p",4),t.k0s()()()()),2&c&&(t.Y8G("options",E.slideOpts),t.R7$(3),t.Y8G("ngIf",E.emptySettingsSlide.showImage),t.R7$(2),t.Y8G("ngIf",E.emptySettingsSlide.showText))},dependencies:[u.bT,a.he,a.q3,a.tR],styles:["ion-slides[_ngcontent-%COMP%]{height:100%}.swiper-slide[_ngcontent-%COMP%]{display:block}.swiper-slide[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:2.8rem}.swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:50%;max-width:40%;margin:60px 0 40px;pointer-events:none}b[_ngcontent-%COMP%]{font-weight:500}p[_ngcontent-%COMP%]{padding:0 40px;font-size:14px;line-height:1.5;color:var(--ion-color-step-600, #60646b)}p[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--ion-text-color, #000000)}.slide_center[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}"]})}return l})()},67433:(x,f,n)=>{n.d(f,{E:()=>T});var t=n(2978),u=n(56610),a=n(77897);function s(o,d){1&o&&(t.j41(0,"ion-thumbnail",7),t.nrm(1,"ion-skeleton-text"),t.k0s())}function g(o,d){if(1&o&&(t.j41(0,"ion-item"),t.DNE(1,s,2,0,"ion-thumbnail",3),t.j41(2,"ion-label")(3,"h3"),t.nrm(4,"ion-skeleton-text",4),t.k0s(),t.j41(5,"p"),t.nrm(6,"ion-skeleton-text",5),t.k0s(),t.j41(7,"p"),t.nrm(8,"ion-skeleton-text",6),t.k0s()()()),2&o){const p=t.XpG(2);t.R7$(1),t.Y8G("ngIf",p.image)}}const e=function(){return[1,1,1,1,1,1,1]};function l(o,d){1&o&&(t.j41(0,"ion-list")(1,"ion-list-header"),t.nrm(2,"ion-skeleton-text",1),t.k0s(),t.DNE(3,g,9,1,"ion-item",2),t.k0s()),2&o&&(t.R7$(3),t.Y8G("ngForOf",t.lJ4(1,e)))}function P(o,d){1&o&&(t.j41(0,"ion-card"),t.nrm(1,"ion-skeleton-text",8),t.k0s())}const _=function(){return[1,1,1]};function c(o,d){1&o&&(t.j41(0,"div"),t.DNE(1,P,2,0,"ion-card",2),t.k0s()),2&o&&(t.R7$(1),t.Y8G("ngForOf",t.lJ4(1,_)))}function E(o,d){1&o&&(t.j41(0,"ion-col",11)(1,"ion-card"),t.nrm(2,"ion-skeleton-text",12),t.k0s()())}function O(o,d){1&o&&(t.j41(0,"ion-col",13)(1,"ion-card"),t.nrm(2,"ion-skeleton-text",12),t.k0s()())}function C(o,d){1&o&&(t.j41(0,"ion-col",13)(1,"ion-card"),t.nrm(2,"ion-skeleton-text",12),t.k0s()())}function S(o,d){if(1&o&&(t.j41(0,"ion-row"),t.DNE(1,E,3,0,"ion-col",9),t.DNE(2,O,3,0,"ion-col",10),t.DNE(3,C,3,0,"ion-col",10),t.k0s()),2&o){const p=t.XpG(2);t.R7$(1),t.Y8G("ngIf",p.size<=p.maximumCategoryCards),t.R7$(1),t.Y8G("ngIf",p.size>p.maximumCategoryCards),t.R7$(1),t.Y8G("ngIf",p.size>p.maximumCategoryCards)}}function M(o,d){1&o&&(t.j41(0,"div")(1,"ion-card"),t.nrm(2,"ion-skeleton-text",8),t.k0s(),t.j41(3,"ion-grid"),t.DNE(4,S,4,3,"ion-row",2),t.k0s()()),2&o&&(t.R7$(4),t.Y8G("ngForOf",t.lJ4(1,_)))}let T=(()=>{class o{constructor(){this.image=!0,this.iscard=!1,this.islist=!1,this.iscardhome=!1,this.maximumCategoryCards=4}ngOnInit(){}static#t=this.\u0275fac=function(v){return new(v||o)};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["app-skeleton-progress"]],inputs:{image:"image",iscard:"iscard",islist:"islist",iscardhome:"iscardhome",size:"size"},decls:3,vars:3,consts:[[4,"ngIf"],["animated","",2,"width","80px"],[4,"ngFor","ngForOf"],["slot","start",4,"ngIf"],["animated","",2,"width","80%"],["animated","",2,"width","60%"],["animated","",2,"width","30%"],["slot","start"],["animated","",1,"ion-no-margin","card_skeleton"],["size","12",4,"ngIf"],["size","6",4,"ngIf"],["size","12"],["animated","",1,"ion-no-margin","card_skeleton_small"],["size","6"]],template:function(v,i){1&v&&(t.DNE(0,l,4,2,"ion-list",0),t.DNE(1,c,2,2,"div",0),t.DNE(2,M,5,2,"div",0)),2&v&&(t.Y8G("ngIf",i.islist),t.R7$(1),t.Y8G("ngIf",i.iscard),t.R7$(1),t.Y8G("ngIf",i.iscardhome))},dependencies:[u.Sq,u.bT,a.b_,a.hU,a.lO,a.uz,a.he,a.nf,a.AF,a.ln,a.ds,a.Zx],styles:[".card_skeleton[_ngcontent-%COMP%]{height:214px}.card_skeleton_small[_ngcontent-%COMP%]{height:125px}"]})}return o})()},80895:(x,f,n)=>{n.r(f),n.d(f,{AcademyReportsPageModule:()=>v});var t=n(56610),u=n(37222),a=n(22882),s=n(77897),g=n(36075),e=n(2978),l=n(54171),P=n(57992),_=n(26173),c=n(81337),E=n(67433);function O(i,R){1&i&&e.nrm(0,"app-skeleton-progress",7),2&i&&e.Y8G("iscard",!0)("islist",!1)}function C(i,R){if(1&i&&e.nrm(0,"app-empty-component",8),2&i){const r=e.XpG();e.Y8G("emptySettingsSlide",r.emptySettingsSlide)}}function S(i,R){if(1&i){const r=e.RV6();e.qex(0),e.j41(1,"ion-card")(2,"ion-card-content")(3,"ion-row")(4,"ion-col",10)(5,"ion-list")(6,"ion-item",11)(7,"ion-thumbnail",1),e.nrm(8,"img",12),e.k0s()()()(),e.j41(9,"ion-col",10)(10,"ion-chip",13),e.bIt("click",function(){const y=e.eBV(r).$implicit,I=e.XpG(2);return e.Njj(I.viewReport(y.link))}),e.nrm(11,"ion-icon",14),e.j41(12,"ion-label",15),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.j41(15,"ion-col",16)(16,"ion-item",11)(17,"ion-label"),e.EFF(18),e.nI1(19,"translate"),e.k0s()()()()()(),e.bVm()}if(2&i){const r=R.$implicit;e.R7$(13),e.JRh(e.bMT(14,3,"LABEL_VIEW_REPORT")),e.R7$(5),e.Lme("",e.bMT(19,5,"LABEL_PERIOD")," \u279c ",r.period,"")}}function M(i,R){if(1&i&&(e.j41(0,"div"),e.DNE(1,S,20,7,"ng-container",9),e.k0s()),2&i){const r=e.XpG();e.R7$(1),e.Y8G("ngForOf",r.academy_reports)}}const o=[{path:"",component:(()=>{class i{constructor(r,m,h,y,I,D,k,A){this.translateService=r,this.utilsService=m,this.navCtrl=h,this.modalCtrl=y,this.academyService=I,this.alertController=D,this.route=k,this.homeProvider=A,this.academy_users=[],this.academy_reports=[]}ngOnInit(){this.academy_user_id=this.route.snapshot.paramMap.get("academy_user_id"),this.loadReport(100),this.emptySettingsSlide={showImage:!1,urlImage:"",showText:!0,text:this.translateService.instant("NOT_SPORTS_REPORT")}}loadReport(r=0){setTimeout(()=>(this.time=(new Date).getTime(),new Promise((m,h)=>{this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{Promise.all([this.academyService.getReports(this.academy_user_id).then(y=>{this.academy_reports=y})]).then(()=>{this.utilsService.closeAllAlerts(),m(!1)}).catch(y=>{this.utilsService.closeAllAlerts(),console.log("Error loadReport AcademyReportsPage",y),h(y)})})})),r)}viewReport(r){this.utilsService.openLink(r)}static#t=this.\u0275fac=function(m){return new(m||i)(e.rXU(a.c$),e.rXU(l.T),e.rXU(s.q9),e.rXU(s.W3),e.rXU(P.k),e.rXU(s.hG),e.rXU(g.nX),e.rXU(_.X))};static#e=this.\u0275cmp=e.VBU({type:i,selectors:[["app-academy-reports"]],decls:10,vars:6,consts:[[1,"ion-no-border"],["slot","start"],[1,"ion-text-center"],["padding",""],[3,"iscard","islist",4,"ngIf"],[3,"emptySettingsSlide",4,"ngIf"],[4,"ngIf"],[3,"iscard","islist"],[3,"emptySettingsSlide"],[4,"ngFor","ngForOf"],["size","6"],["lines","none"],["alt","Silhouette of mountains","src","../../assets/img/added_file.png"],["color","secondary",1,"chip_payment",3,"click"],["name","document-outline","color","secondary"],["color","secondary",1,"responsive-text"],["size","12"]],template:function(m,h){1&m&&(e.j41(0,"ion-header",0)(1,"ion-toolbar"),e.nrm(2,"ion-back-button",1),e.j41(3,"ion-title",2),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"ion-content",3),e.DNE(7,O,1,2,"app-skeleton-progress",4),e.DNE(8,C,1,1,"app-empty-component",5),e.DNE(9,M,2,1,"div",6),e.k0s()),2&m&&(e.R7$(4),e.JRh(e.bMT(5,4,"TITLE_SPORTS_REPORT")),e.R7$(3),e.Y8G("ngIf",!h.academy_reports),e.R7$(1),e.Y8G("ngIf",h.academy_reports&&!h.academy_reports.length),e.R7$(1),e.Y8G("ngIf",0!=h.academy_reports.length))},dependencies:[t.Sq,t.bT,s.el,s.b_,s.I9,s.ZB,s.hU,s.W9,s.eU,s.iq,s.uz,s.he,s.nf,s.ln,s.Zx,s.BC,s.ai,s.tY,c.O,E.E,a.D9],styles:[".image_wallet[_ngcontent-%COMP%]{width:100%;height:175px}.h-214[_ngcontent-%COMP%]{height:auto;position:relative}.photo[_ngcontent-%COMP%]{box-shadow:1px 2px 2px 1px gray;border-radius:50%}"]})}return i})()}];let d=(()=>{class i{static#t=this.\u0275fac=function(m){return new(m||i)};static#e=this.\u0275mod=e.$C({type:i});static#n=this.\u0275inj=e.G2t({imports:[g.iI.forChild(o),g.iI]})}return i})();var p=n(55553);let v=(()=>{class i{static#t=this.\u0275fac=function(m){return new(m||i)};static#e=this.\u0275mod=e.$C({type:i});static#n=this.\u0275inj=e.G2t({imports:[t.MD,u.YN,s.bv,a.h,d,p.h]})}return i})()}}]);