File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/2744.0ecba3a0467dd202.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2744,5553,7934,315],{55553:(P,d,o)=>{o.d(d,{h:()=>_});var h=o(77897),c=o(56610),g=o(41683),a=o(13721),m=o(22882),t=o(37222),C=o(36594),p=o(2978);let _=(()=>{class u{static#t=this.\u0275fac=function(b){return new(b||u)};static#n=this.\u0275mod=p.$C({type:u});static#i=this.\u0275inj=p.G2t({imports:[c.MD,h.bv,a.h,g.Y,m.h.forChild(),t.YN,C.rJ]})}return u})()},32744:(P,d,o)=>{o.r(d),o.d(d,{ClubContentPageModule:()=>F});var h=o(55553),c=o(56610),g=o(37222),a=o(77897),m=o(36075),t=o(2978),C=o(54171),p=o(22882),_=o(77299),u=o(367);function S(n,s){if(1&n&&(t.j41(0,"ion-slide"),t.nrm(1,"app-card-publication-content",3),t.k0s()),2&n){const i=s.$implicit,e=t.XpG(2);t.R7$(1),t.Y8G("publicationContent",i)("timeScroll",e.timeScroll)("publication",e.publication)}}function f(n,s){if(1&n&&(t.j41(0,"div")(1,"ion-slides",1),t.DNE(2,S,2,3,"ion-slide",2),t.k0s()()),2&n){const i=t.XpG();t.R7$(1),t.FS9("pager",i.publication.publication_content.length>1),t.R7$(1),t.Y8G("ngForOf",i.publication.publication_content)}}let b=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(e){return new(e||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["app-card-publication"]],inputs:{publication:"publication",timeScroll:"timeScroll"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"pager"],[4,"ngFor","ngForOf"],[3,"publicationContent","timeScroll","publication"]],template:function(e,l){1&e&&t.DNE(0,f,3,2,"div",0),2&e&&t.Y8G("ngIf",l.publication)},dependencies:[c.Sq,c.bT,a.q3,a.tR,u.t],styles:["ion-slide[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{width:100%}"]})}return n})();function E(n,s){1&n&&t.nrm(0,"app-card-publication",16),2&n&&t.Y8G("publication",s.$implicit)}function T(n,s){if(1&n){const i=t.RV6();t.j41(0,"div")(1,"ion-refresher",14),t.bIt("ionRefresh",function(l){t.eBV(i);const r=t.XpG();return t.Njj(r.doRefresh(l))}),t.nrm(2,"ion-refresher-content"),t.k0s(),t.DNE(3,E,1,1,"app-card-publication",15),t.k0s()}if(2&n){const i=t.XpG();t.R7$(3),t.Y8G("ngForOf",i.photoClub)}}function O(n,s){if(1&n&&t.nrm(0,"app-card-publication",18),2&n){const i=s.$implicit,e=t.XpG(2);t.Y8G("publication",i)("timeScroll",e.timeScroll)}}function R(n,s){if(1&n&&(t.j41(0,"div"),t.DNE(1,O,1,2,"app-card-publication",17),t.k0s()),2&n){const i=t.XpG();t.R7$(1),t.Y8G("ngForOf",i.videos)}}function D(n,s){1&n&&t.nrm(0,"app-card-publication",16),2&n&&t.Y8G("publication",s.$implicit)}function I(n,s){if(1&n&&(t.j41(0,"div"),t.DNE(1,D,1,1,"app-card-publication",15),t.k0s()),2&n){const i=t.XpG();t.R7$(1),t.Y8G("ngForOf",i.podcast)}}function G(n,s){1&n&&t.nrm(0,"app-card-publication",16),2&n&&t.Y8G("publication",s.$implicit)}function M(n,s){if(1&n&&(t.j41(0,"div"),t.DNE(1,G,1,1,"app-card-publication",15),t.k0s()),2&n){const i=t.XpG();t.R7$(1),t.Y8G("ngForOf",i.news)}}const N=[{path:"",component:(()=>{class n{constructor(i,e,l,r){this.utilsService=i,this.translateService=e,this.modalCtrl=l,this.publicationClubService=r,this.typeContent="photo",this.photoClub=[],this.videos=[],this.podcast=[],this.news=[]}ngOnInit(){this.loadInit()}loadInit(i=0){this.time=(new Date).getTime(),setTimeout(()=>new Promise((e,l)=>{this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{Promise.all([this.getPhotos()]).then(()=>{this.utilsService.closeAllAlerts(),this.utilsService.loadingPage=!1,e(!1)}).catch(r=>{this.utilsService.closeAllAlerts(),this.utilsService.loadingPage=!1,console.log("Error loadInit HomeSc",r),l(r)})})}),i)}getPhotos(){this.publicationClubService.get("photo",50).then(i=>{this.photoClub=i})}getVideos(){this.publicationClubService.get("video",50).then(i=>{this.timeScroll=null,this.videos=i})}getPodcast(){this.publicationClubService.get("podcast",50).then(i=>{this.podcast=i})}getNews(){this.publicationClubService.get("news",50).then(i=>{this.news=i})}changedTypeOrder(i){switch(this.typeContent=i.detail.value,this.typeContent){case"photo":this.getPhotos();break;case"video":this.getVideos();break;case"podcast":this.getPodcast();break;case"news":this.getNews()}}doRefresh(i){this.loadInit(500),i.target.complete()}onScroll(i){this.timeScroll=(new Date).getTime()}static#t=this.\u0275fac=function(e){return new(e||n)(t.rXU(C.T),t.rXU(p.c$),t.rXU(a.W3),t.rXU(_.i))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["app-club-content"]],decls:38,vars:22,consts:[["slot","start"],[1,"ion-text-center"],[3,"value","ionChange"],["value","photo"],["name","images-outline","size","large",1,"ion-no-margin"],["value","video"],["name","videocam-outline","size","large",1,"ion-no-margin"],["value","podcast"],["name","mic-outline","size","large",1,"ion-no-margin"],["value","news"],["name","newspaper-outline","size","large",1,"ion-no-margin"],[3,"scrollEvents","ionScrollStart"],[3,"ngSwitch"],[4,"ngSwitchCase"],["slot","fixed",3,"ionRefresh"],[3,"publication",4,"ngFor","ngForOf"],[3,"publication"],[3,"publication","timeScroll",4,"ngFor","ngForOf"],[3,"publication","timeScroll"]],template:function(e,l){1&e&&(t.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0),t.nrm(3,"ion-back-button"),t.k0s(),t.j41(4,"ion-title",1),t.EFF(5),t.nI1(6,"translate"),t.k0s()()(),t.j41(7,"ion-segment",2),t.bIt("ionChange",function(v){return l.changedTypeOrder(v)}),t.j41(8,"ion-segment-button",3)(9,"span"),t.nrm(10,"ion-icon",4)(11,"br"),t.EFF(12),t.nI1(13,"translate"),t.k0s()(),t.j41(14,"ion-segment-button",5)(15,"span"),t.nrm(16,"ion-icon",6)(17,"br"),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"ion-segment-button",7)(21,"span"),t.nrm(22,"ion-icon",8)(23,"br"),t.EFF(24),t.nI1(25,"translate"),t.k0s()(),t.j41(26,"ion-segment-button",9)(27,"span"),t.nrm(28,"ion-icon",10)(29,"br"),t.EFF(30),t.nI1(31,"translate"),t.k0s()()(),t.j41(32,"ion-content",11),t.bIt("ionScrollStart",function(v){return l.onScroll(v)}),t.j41(33,"div",12),t.DNE(34,T,4,1,"div",13),t.DNE(35,R,2,1,"div",13),t.DNE(36,I,2,1,"div",13),t.DNE(37,M,2,1,"div",13),t.k0s()()),2&e&&(t.R7$(5),t.JRh(t.bMT(6,12,"CLUB_CONTENT.CLUB_CONTENT")),t.R7$(2),t.Y8G("value",l.typeContent),t.R7$(5),t.SpI(" ",t.bMT(13,14,"CLUB_CONTENT.PHOTOS")," "),t.R7$(6),t.SpI(" ",t.bMT(19,16,"CLUB_CONTENT.VIDEOS")," "),t.R7$(6),t.SpI(" ",t.bMT(25,18,"CLUB_CONTENT.PODCASTS")," "),t.R7$(6),t.SpI(" ",t.bMT(31,20,"CLUB_CONTENT.NEWS")," "),t.R7$(2),t.Y8G("scrollEvents",!0),t.R7$(1),t.Y8G("ngSwitch",l.typeContent),t.R7$(1),t.Y8G("ngSwitchCase","photo"),t.R7$(1),t.Y8G("ngSwitchCase","video"),t.R7$(1),t.Y8G("ngSwitchCase","podcast"),t.R7$(1),t.Y8G("ngSwitchCase","news"))},dependencies:[c.Sq,c.ux,c.e1,a.el,a.QW,a.W9,a.eU,a.iq,a.To,a.Ki,a.Gp,a.eP,a.BC,a.ai,a.Je,a.tY,b,p.D9],styles:[".hr[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;margin-left:5px;margin-right:5px}"]})}return n})()}];let $=(()=>{class n{static#t=this.\u0275fac=function(e){return new(e||n)};static#n=this.\u0275mod=t.$C({type:n});static#i=this.\u0275inj=t.G2t({imports:[m.iI.forChild(N),m.iI]})}return n})(),F=(()=>{class n{static#t=this.\u0275fac=function(e){return new(e||n)};static#n=this.\u0275mod=t.$C({type:n});static#i=this.\u0275inj=t.G2t({imports:[c.MD,g.YN,a.bv,$,p.h,h.h]})}return n})()}}]);