File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/2902.2c11f922acfcf7a2.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2902],{12902:(X,I,c)=>{c.r(I),c.d(I,{HomeScPageModule:()=>Vt});var u=c(56610),y=c(37222),p=c(77897),T=c(36075),k=c(73308),t=c(2978),C=c(76098),s=c(26173),a=c(7125),v=c(26409),d=c(29885),g=c(46868),S=c(18674),f=c(57291),x=c(1519),R=c(45588),et=c(54171),it=c(88885),nt=c(35981),L=c(22882),ot=c(25668),rt=c(83254),st=c(77299),at=c(1587),ct=c(87473),lt=c(55267),dt=c(367);const _t=["parent"];function gt(i,_){1&i&&t.nrm(0,"ion-icon",49)}function ut(i,_){if(1&i&&(t.j41(0,"ion-badge",50),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(1),t.SpI("",e.notificationsNotViewedCount," ")}}function pt(i,_){if(1&i&&(t.j41(0,"div",51),t.nrm(1,"div",52),t.j41(2,"div",53)(3,"h3",54),t.EFF(4),t.k0s()()()),2&i){const e=t.XpG();t.R7$(4),t.Lme("Hola, ",e.userInfo.first_name," ",e.userInfo.last_name,"")}}function mt(i,_){if(1&i){const e=t.RV6();t.j41(0,"ion-slide")(1,"div",58),t.bIt("click",function(){const o=t.eBV(e).$implicit,l=t.XpG(2);return t.Njj(l.actionClickBanner(o))}),t.nrm(2,"img",59),t.k0s()()}if(2&i){const e=_.$implicit,r=t.XpG(2);t.R7$(2),t.FCK("src","",r.cityProvider._urlGallery,"banners/",e.image,"",t.B4B)}}function ht(i,_){if(1&i&&(t.j41(0,"ion-slides",55,56),t.DNE(2,mt,3,2,"ion-slide",57),t.k0s()),2&i){const e=t.XpG();t.Y8G("options",e.slideOpts),t.R7$(2),t.Y8G("ngForOf",e.banners)}}function ft(i,_){1&i&&(t.j41(0,"div",68),t.nrm(1,"ion-icon",69),t.k0s())}function vt(i,_){if(1&i&&(t.j41(0,"div",70),t.nrm(1,"ion-icon",71),t.k0s()),2&i){const e=t.XpG(2).$implicit,r=t.XpG(2);t.Y8G("ngStyle",r.getTextAndIconColor(e.button_text_color)),t.R7$(1),t.Y8G("name",e.icon_name)}}function bt(i,_){if(1&i){const e=t.RV6();t.j41(0,"div",64),t.bIt("click",function(){t.eBV(e);const n=t.XpG().$implicit,o=t.XpG(2);return t.Njj(o.goToSection(n.name,n.path,n.button_link))}),t.DNE(1,ft,2,0,"div",65),t.DNE(2,vt,2,2,"div",66),t.j41(3,"h1",67),t.EFF(4),t.k0s()()}if(2&i){const e=t.XpG().$implicit,r=t.XpG(2);t.Y8G("ngStyle",r.getButtonBackgroundColor(e.button_color)),t.R7$(1),t.Y8G("ngIf",!e.icon_name),t.R7$(1),t.Y8G("ngIf",e.icon_name),t.R7$(1),t.Y8G("ngStyle",r.getTextAndIconColor(e.button_text_color)),t.R7$(1),t.SpI("",e.name," ")}}function kt(i,_){if(1&i&&t.nrm(0,"ion-img",74),2&i){const e=t.XpG(2).$implicit;t.FS9("src",e.button_image)}}function St(i,_){if(1&i){const e=t.RV6();t.j41(0,"div",72),t.bIt("click",function(){t.eBV(e);const n=t.XpG().$implicit,o=t.XpG(2);return t.Njj(o.goToSection(n.name,n.path,n.button_link))}),t.DNE(1,kt,1,1,"ion-img",73),t.k0s()}if(2&i){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("ngIf",e.button_image)}}function yt(i,_){if(1&i&&(t.j41(0,"ion-col",61),t.DNE(1,bt,5,5,"div",62),t.DNE(2,St,2,1,"div",63),t.k0s()),2&i){const e=_.$implicit;t.Y8G("size",e.button_width),t.R7$(1),t.Y8G("ngIf",!e.button_image),t.R7$(1),t.Y8G("ngIf",e.button_image)}}function Pt(i,_){if(1&i&&(t.j41(0,"div")(1,"ion-grid")(2,"ion-row"),t.DNE(3,yt,3,3,"ion-col",60),t.k0s()()()),2&i){const e=t.XpG();t.R7$(3),t.Y8G("ngForOf",e.dataSections)}}function Tt(i,_){if(1&i&&(t.j41(0,"ion-item",78)(1,"ion-label",79),t.EFF(2),t.k0s()()),2&i){const e=t.XpG().$implicit;t.R7$(2),t.JRh(e.name)}}function xt(i,_){if(1&i&&(t.j41(0,"ion-slide")(1,"div",76),t.nrm(2,"img",59),t.DNE(3,Tt,3,1,"ion-item",77),t.k0s()()),2&i){const e=_.$implicit,r=t.XpG(2);t.R7$(1),t.Mz_("routerLink","/app/tabs/settings/request/",e.id,""),t.R7$(1),t.FCK("src","",r.cityProvider._urlGallery,"form/",e.image,"",t.B4B),t.R7$(1),t.Y8G("ngIf",e.show_text)}}function Et(i,_){if(1&i&&(t.j41(0,"ion-slides",75,56),t.DNE(2,xt,4,4,"ion-slide",57),t.k0s()),2&i){const e=t.XpG();t.Y8G("options",e.slideOpts),t.R7$(2),t.Y8G("ngForOf",e.homeProvider._listForms)}}function wt(i,_){if(1&i&&t.nrm(0,"iframe",80),2&i){const e=t.XpG();t.Y8G("src",e.statisticUrlOnly,t.f$h)}}function It(i,_){1&i&&(t.j41(0,"p",87),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(1),t.JRh(t.bMT(2,1,"NEW_NEWS")))}function Ct(i,_){if(1&i&&t.nrm(0,"img",74),2&i){const e=t.XpG().$implicit;t.FS9("src",e.imgUrl,t.B4B)}}function Ot(i,_){if(1&i&&(t.j41(0,"ion-card-subtitle"),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(1),t.JRh(e.category)}}function Mt(i,_){if(1&i&&(t.j41(0,"ion-card-subtitle"),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(1),t.JRh(e.publicationDate)}}function $t(i,_){if(1&i&&(t.j41(0,"h3",88),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(1),t.JRh(e.title)}}function jt(i,_){if(1&i){const e=t.RV6();t.j41(0,"div",58),t.bIt("click",function(){t.eBV(e);const n=t.XpG(3);return t.Njj(n.goToNews())}),t.DNE(1,It,3,3,"p",84),t.DNE(2,Ct,1,1,"img",73),t.j41(3,"div",85),t.DNE(4,Ot,2,1,"ion-card-subtitle",9),t.DNE(5,Mt,2,1,"ion-card-subtitle",9),t.DNE(6,$t,2,1,"h3",86),t.k0s()()}if(2&i){const e=_.$implicit;t.R7$(1),t.Y8G("ngIf",e.new),t.R7$(1),t.Y8G("ngIf",e),t.R7$(2),t.Y8G("ngIf",e),t.R7$(1),t.Y8G("ngIf",e),t.R7$(1),t.Y8G("ngIf",e)}}function Nt(i,_){if(1&i){const e=t.RV6();t.j41(0,"ion-accordion-group",13),t.bIt("click",function(n){t.eBV(e);const o=t.XpG(2);return t.Njj(o.scrollTo(n))}),t.j41(1,"ion-accordion",14)(2,"ion-item",15),t.nrm(3,"ion-icon",81),t.j41(4,"ion-label"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"ion-icon",17),t.bIt("click",function(){t.eBV(e);const n=t.XpG(2);return t.Njj(n.goToNews())}),t.k0s()(),t.j41(8,"div",28)(9,"section",82),t.DNE(10,jt,7,5,"div",83),t.nI1(11,"slice"),t.k0s()()()()}if(2&i){const e=t.XpG(2);t.R7$(5),t.JRh(t.bMT(6,2,"TITLE_HOME_NEWS")),t.R7$(5),t.Y8G("ngForOf",t.brH(11,4,e.arr,0,3))}}function Rt(i,_){if(1&i&&(t.j41(0,"div",24),t.DNE(1,Nt,12,8,"ion-accordion-group",25),t.k0s()),2&i){const e=t.XpG();t.R7$(1),t.Y8G("ngIf",!e.homeProvider._activateNewsLink)}}function Dt(i,_){if(1&i){const e=t.RV6();t.j41(0,"ion-accordion-group",13),t.bIt("click",function(n){t.eBV(e);const o=t.XpG();return t.Njj(o.scrollTo(n))}),t.j41(1,"ion-accordion",14)(2,"ion-item",15),t.nrm(3,"ion-icon",81),t.j41(4,"ion-label"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"ion-icon",17),t.bIt("click",function(){t.eBV(e);const n=t.XpG();return t.Njj(n.goToNewsLink())}),t.k0s()(),t.j41(8,"div",28)(9,"section",19)(10,"div",43),t.bIt("click",function(){t.eBV(e);const n=t.XpG();return t.Njj(n.goToNewsLink())}),t.j41(11,"div",36),t.nrm(12,"img",89),t.k0s()()()()()()}if(2&i){const e=t.XpG();t.R7$(5),t.JRh(t.bMT(6,3,"TITLE_HOME_NEWS")),t.R7$(7),t.FCK("src","",e.cityProvider._urlGallery,"public/news.jpeg?_dc=",e.time,"",t.B4B)}}function Gt(i,_){if(1&i){const e=t.RV6();t.j41(0,"div",92),t.bIt("click",function(){t.eBV(e);const n=t.XpG().$implicit,o=t.XpG();return t.Njj(o.launchVideo(n.link))}),t.nrm(1,"iframe",93),t.k0s()}if(2&i){const e=t.XpG().$implicit;t.R7$(1),t.Y8G("src",e.sanitizedSource,t.f$h)}}function Ht(i,_){if(1&i&&(t.j41(0,"div",90),t.DNE(1,Gt,2,1,"div",91),t.k0s()),2&i){const e=_.$implicit;t.R7$(1),t.Y8G("ngIf",e)}}function At(i,_){if(1&i&&t.nrm(0,"iframe",96),2&i){const e=t.XpG().$implicit;t.Y8G("src",e.sanitizedSource,t.f$h)}}function Bt(i,_){if(1&i){const e=t.RV6();t.j41(0,"div",94),t.bIt("click",function(){const o=t.eBV(e).$implicit,l=t.XpG();return t.Njj(l.launchStorie(o.link))}),t.DNE(1,At,1,1,"iframe",95),t.k0s()}if(2&i){const e=_.$implicit;t.R7$(1),t.Y8G("ngIf",e)}}function Ut(i,_){if(1&i&&t.nrm(0,"iframe",97),2&i){const e=t.XpG();t.Y8G("src",e.statisticUrlStanding,t.f$h)}}function Ft(i,_){if(1&i&&t.nrm(0,"app-card-publication-content",98),2&i){const e=t.XpG();t.Y8G("publicationContent",e.photoClub[0].publication_content.at(-1))("publication",e.photoClub[0])}}const Xt=[{path:"",component:(()=>{class i{constructor(e,r,n,o,l,m,h,G,E,H,w,$,P,A,Kt,zt,Wt,Jt,Qt,Zt,qt,te){this.router=e,this.dom=r,this.homeProvider=n,this.cityProvider=o,this.http=l,this.userProvider=m,this.cartProvider=h,this.orderProvider=G,this.storage=E,this.commsService=H,this.lealService=w,this.location=$,this.utilsService=P,this.parameterService=A,this.sectionService=Kt,this.translateService=zt,this.termProvider=Wt,this.analyticsService=Jt,this.publicationClubService=Qt,this.dataPolicyService=Zt,this.notificationService=qt,this.offlineTicketingService=te,this.loading=!1,this.arr=[],this.targetUrl="https://dimoficial.com/feed/eclectica104_rss",this.userInfo={},this.parameters={},this.banners=[],this.dataSections=[],this.allDataSections=[],this.photoClub=[],this.slideOpts={initialSlide:0,speed:400,autoplay:{delay:5e3}},this.slideOptsTickets={initialSlide:0,speed:600,autoplay:{delay:6e3},slidesPerView:1,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},on:{beforeInit(){const b=this;b.classNames.push(`${b.params.containerModifierClass}coverflow`),b.classNames.push(`${b.params.containerModifierClass}3d`),b.params.watchSlidesProgress=!0,b.originalParams.watchSlidesProgress=!0},setTranslate(){const b=this,{width:B,height:ee,slides:J,$wrapperEl:ie,slidesSizesGrid:ne}=b,N=b.params.coverflowEffect,O=b.isHorizontal(),Q=b.translate,Z=O?B/2-Q:ee/2-Q,q=O?N.rotate:-N.rotate,oe=N.depth;for(let D=0,re=J.length;D<re;D+=1){const j=J.eq(D),tt=ne[D],M=(Z-j[0].swiperSlideOffset-tt/2)/tt*N.modifier;let Y=O?q*M:0,V=O?0:q*M,K=-oe*Math.abs(M),z=O?0:N.stretch*M,W=O?N.stretch*M:0;if(Math.abs(W)<.001&&(W=0),Math.abs(z)<.001&&(z=0),Math.abs(K)<.001&&(K=0),Math.abs(Y)<.001&&(Y=0),Math.abs(V)<.001&&(V=0),j.transform(`translate3d(${W}px,${z}px,${K}px) rotateX(${V}deg) rotateY(${Y}deg)`),j[0].style.zIndex=1-Math.abs(Math.round(M)),N.slideShadows){let U=j.find(O?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),F=j.find(O?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===U.length&&(U=b.$(`<div class="swiper-slide-shadow-${O?"left":"top"}"></div>`),j.append(U)),0===F.length&&(F=b.$(`<div class="swiper-slide-shadow-${O?"right":"bottom"}"></div>`),j.append(F)),U.length&&(U[0].style.opacity=M>0?M:0),F.length&&(F[0].style.opacity=-M>0?-M:0)}}(b.support.pointerEvents||b.support.prefixedPointerEvents)&&(ie[0].style.perspectiveOrigin=`${Z}px 50%`)},setTransition(b){this.slides.transition(b).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(b)}}},e.events.subscribe(b=>{if(("popstate"===b.navigationTrigger||"imperative"===b.navigationTrigger)&&b.url&&"/app/tabs/home"==b.url){this.parameterService.startApp(!1);let B=this.sectionService.sectionName;this.getNotifications(),setTimeout(()=>{B&&this.goToSection(B,"")},600)}})}ngOnInit(){this.loadInit(),this.homeProvider._activateNewsLink||this.loadXML()}loadInit(e=0){this.time=(new Date).getTime(),this.getStatisticsUrl(),setTimeout(()=>new Promise((r,n)=>{this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{Promise.all([this.parameterService.getParameters().then(o=>{this.parameters=o.parameters}),this.userProvider.getInfoUser().then(o=>{this.userInfo=o,this.analyticsService.setUserId(o.id),this.userProvider.isRestrictedUser()||(this.getNotifications(),this.termProvider.validateTerms(),this.dataPolicyService.validate())}),this.commsService.getPopups("home"),this.commsService.getBanners("home").then(o=>{this.banners=o}),this.parameterService.startApp(!1),this.getSectionHome(),this.homeProvider.getForms(),this.homeProvider.getTeamData(),this.userProvider.updateLastSession(),this.getInstagram(2),this.getYoutube(2),this.userProvider.savePlayerOnesignal(),this.offlineTicketingService.saveData()]).then(()=>{this.utilsService.closeAllAlerts(),this.utilsService.loadingPage=!1,r(!1)}).catch(o=>{this.utilsService.closeAllAlerts(),this.utilsService.loadingPage=!1,console.log("Error loadInit HomeSc",o),n(o)})})}),e)}getPublications(){this.checkAttributeValue("Contenido")&&this.publicationClubService.get().then(e=>{this.photoClub=e})}actionClickBanner(e){return this.analyticsService.logEvent("Banner Click: "+e.name,"Banner","click",e),this.homeProvider.openAction(e.type_action_id,e.value,e.target)}loadXML(){this.http.get(this.targetUrl,{responseType:"text"}).subscribe(e=>{let r=(new DOMParser).parseFromString(e,"text/xml");this.news=this.xmlToJson(r);for(let n in this.news.rss.channel.item){let o=this.news.rss.channel.item[n],l=o.pubDate,m=l.substring(0,4)+"/"+l.substring(4,6)+"/"+l.substring(6,8)+" "+l.substring(8,10)+":"+l.substring(10,12)+":"+l.substring(12,14),h=this.utilsService.getWeeksDiff(new Date(m),new Date);this.arr.push({imgUrl:o.imgUrl,category:o.category,title:o.title,publicationDate:m,new:0==h})}})}xmlToJson(e){let r={};if(1==e.nodeType){if(e.attributes.length>0){r["@attributes"]={};for(let o=0;o<e.attributes.length;o++){let l=e.attributes.item(o);r["@attributes"][l.nodeName]=l.nodeValue}}}else 3==e.nodeType&&(r=e.nodeValue);let n=[].slice.call(e.childNodes).filter(function(o){return 3===o.nodeType});if(e.hasChildNodes()&&e.childNodes.length===n.length)r=[].slice.call(e.childNodes).reduce(function(o,l){return o+l.nodeValue},"");else if(e.hasChildNodes())for(let o=0;o<e.childNodes.length;o++){let l=e.childNodes.item(o),m=l.nodeName;if(typeof r[m]>"u")r[m]=this.xmlToJson(l);else{if(typeof r[m].push>"u"){let h=r[m];r[m]=[],r[m].push(h)}r[m].push(this.xmlToJson(l))}}return r}launchStorie(e){this.utilsService.openLink(e)}launchVideo(e){this.utilsService.openLink(e)}getYoutube(e){var r=this;this.storage.get("token").then(function(){var n=(0,k.A)(function*(o){o&&(yield r.commsService.getYoutube(o.access_token,e)).subscribe(l=>{let m=l;for(let h=0;h<m.length;++h)m[h].link="https://www.youtube-nocookie.com/embed/"+m[h].code,m[h].sanitizedSource=r.sanitizer(m[h].link);r.videos=m},l=>{console.log("error GetYoutube",l)})});return function(o){return n.apply(this,arguments)}}())}getInstagram(e){var r=this;this.storage.get("token").then(function(){var n=(0,k.A)(function*(o){o&&(yield r.commsService.getInstagram(o.access_token,e)).subscribe(l=>{r.photoInstagram=Object.values(l);for(let m=0;m<r.photoInstagram.length;++m)r.photoInstagram[m].link=r.photoInstagram[m].link.split("?")[0]+"embed",r.photoInstagram[m].sanitizedSource=r.sanitizer(r.photoInstagram[m].link);r.instagram=r.photoInstagram},l=>{console.log("error GetInstagram",l)})});return function(o){return n.apply(this,arguments)}}())}goToStatistics(){this.analyticsService.logEvent("Statistics Click",this.utilsService.categoryHome),this.router.navigate(["/app/tabs/home/statistics"])}goToCoins(){this.router.navigate(["/app/tabs/home/coins"])}goToNotifications(){this.router.navigate(["/notification"])}goToBookcase(){this.router.navigate(["/app/tabs/bookcase"])}goToSocial(){this.analyticsService.logEvent("Social Click",this.utilsService.categoryHome),this.router.navigate(["/app/tabs/home/social"])}goToNews(){this.analyticsService.logEvent("News Click",this.utilsService.categoryHome),this.router.navigate(["/app/tabs/home/news"])}goToNewsLink(){this.analyticsService.logEvent("News Link Click",this.utilsService.categoryHome),this.utilsService.openLink(this.homeProvider._urlNewsLink)}sanitizer(e){return this.dom.bypassSecurityTrustResourceUrl(e)}doRefresh(e){setTimeout(()=>{this.loadInit(100),this.homeProvider._activateNewsLink||this.loadXML(),e.target.complete()},500)}loadCoins(){var e=this;this.storage.get("infoUser").then(r=>{r&&this.storage.get("token").then(function(){var n=(0,k.A)(function*(o){o&&(yield e.lealService.login(o.access_token)).subscribe(function(){var l=(0,k.A)(function*(m){(yield e.lealService.coins(o.access_token,r.coin_uid?r.coin_uid:0)).subscribe(h=>{e.coins=(h.external_coins?parseInt(h.external_coins):0)+(h.credit_coins?parseInt(h.credit_coins):0),parseInt(h.external_coins),parseInt(h.credit_coins)},h=>{console.log("Error coins",h)})});return function(m){return l.apply(this,arguments)}}())});return function(o){return n.apply(this,arguments)}}())})}goToPlayers(){this.analyticsService.logEvent("Players Click",this.utilsService.categoryHome),this.router.navigate(["/app/tabs/home/player"])}getStatisticsUrl(){var e=this;return(0,k.A)(function*(){let r=yield e.cityProvider.getAdminUrl();e.statisticUrlOnly=e.sanitizer(r+"/statistics/showData/only?_dc="+e.time),e.statisticUrlStanding=e.sanitizer(r+"/statistics/showData/standing?_dc="+e.time)})()}goToClubContent(){this.analyticsService.logEvent("Club Content Click",this.utilsService.categoryHome),this.router.navigate(["/club-content"])}getStatisticsUrlOnly(){return this.statisticUrlOnly}getStatisticsUrlStanding(){return this.statisticUrlStanding}getNotifications(){var e=this;return(0,k.A)(function*(){e.notificationsNotViewedCount=0;let r=localStorage.getItem("viewedNotificationsCount")??0;(yield e.notificationService.getNotificationsCount()).subscribe(n=>{e.notificationsCount=n,e.notificationsNotViewedCount=e.notificationsCount-Number(r)})})()}goToSection(e,r,n=null){this.dataSections.find(function(l){return l.name==e})&&(this.sectionService.sectionName="",this.analyticsService.logEvent(e+" Click",this.utilsService.categoryHome),n?n.includes("&iframe")?(n=n.split("&iframe")[0],r.includes("browser")?this.utilsService.openLink(n):(this.homeProvider._urlIframe=n,this.router.navigate(["/website/"+e]))):this.utilsService.openLink(n):this.router.navigate([r]))}getButtonBackgroundColor(e){if(e)return{background:"linear-gradient(135deg, "+e+" 50%, black 150%)"}}getTextAndIconColor(e){if(e)return{color:""+e}}getBase64Data(){return Buffer.from(`{\n \u201ccountryCode\u201d: \u201c+57\u201d,\n \u201cphoneNumber\u201d: "${this.userInfo.phone}",\n \u201cemail\u201d: "${this.userInfo.email}",\n \u201cusername\u201d: "${this.userInfo.document}",\n \u201ccountry\u201d: \u201cColombia\u201d,\n \u201cdob\u201d: "${this.userInfo.user_info.dob}"\n }`).toString("base64")}getSectionHome(){var e=this;return(0,k.A)(function*(){let r=[],n=[];var o=null,h=e.parentRef.nativeElement,G=[];e.parentRef.nativeElement.childNodes.forEach(function $(P){P.id&&(P.style.display="none"),P.nodeType===Node.TEXT_NODE&&n.push(P.nodeValue.trim()),P.childNodes.forEach($)}),n.join(" "),yield e.sectionService.getSections().then($=>{r=$.data.sort((P,A)=>P.button_order-A.button_order).filter(function(P){return 1==P.enable_section_on_home||0==P.enable_section_on_home}),e.allDataSections=$.data,e.dataSections=$.data.sort((P,A)=>P.button_order-A.button_order).filter(function(P){return P.enable_on_home}),e.getPublications()});const E=r.filter($=>n.some(P=>P===$.name)).reverse();if(E){for(var H,w=0;w<E.length;w++)E[w].name&&1==E[w].enable_section_on_home?(o=yield e.getParentFromLabel(E[w].name),E[w].link_section_home&&(G=o.querySelectorAll("img")).length>0&&(G[0].src=E[w].link_section_home),o.style.display="",o.firstChild.value=[],w==E.length-1&&(H=o.firstChild),h.insertBefore(o,h.firstChild)):(yield e.getParentFromLabel(E[w].name)).style.display="none";H&&(H.value=["first"])}})()}getParentFromLabel(e){var r=this;return(0,k.A)(function*(){let o=[];var l=null;return r.parentRef.nativeElement.childNodes.forEach(function m(h){h.nodeType===Node.TEXT_NODE&&(o.push(h.nodeValue.trim()),e===h.nodeValue.trim()&&(l=h.parentElement.parentElement.parentElement.parentElement.parentElement)),h.childNodes.forEach(m)}),l})()}scrollTo(e){setTimeout(()=>{this.content.scrollToPoint(0,e.screenY,500)},200)}checkAttributeValue(e){return this.allDataSections.some(r=>r.name.includes(e))}static#t=this.\u0275fac=function(r){return new(r||i)(t.rXU(T.Ix),t.rXU(C.up),t.rXU(s.X),t.rXU(a.h),t.rXU(v.Qq),t.rXU(d.D),t.rXU(g.m),t.rXU(S.Q),t.rXU(f.n),t.rXU(x.p),t.rXU(R.k),t.rXU(u.hb),t.rXU(et.T),t.rXU(it.f),t.rXU(nt.z),t.rXU(L.c$),t.rXU(ot.U),t.rXU(rt.c),t.rXU(st.i),t.rXU(at.k),t.rXU(ct.J),t.rXU(lt.n))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["app-home-sc"]],viewQuery:function(r,n){if(1&r&&(t.GBs(_t,5),t.GBs(p.W9,5)),2&r){let o;t.mGM(o=t.lsd())&&(n.parentRef=o.first),t.mGM(o=t.lsd())&&(n.content=o.first)}},decls:99,vars:35,consts:[["mode","ios",1,"toolbar"],["src","assets/img/appicon.png",2,"height","35px"],["slot","end"],[3,"click"],["slot","icon-only","name","notifications-outline","class","button-shopping","style","margin-right: 12px;",4,"ngIf"],["color","secondary","class","badge-cart",4,"ngIf"],["slot","fixed",3,"ionRefresh"],["class","headerHome",4,"ngIf"],["class","ion-margin-top",3,"options",4,"ngIf"],[4,"ngIf"],["style","margin-top: 16px;",3,"options",4,"ngIf"],["parent",""],["id","Partidos",2,"display","none"],[2,"margin-top","10px",3,"click"],["value","first"],["slot","header","color","medium-shade",1,"title"],["name","football-outline",2,"margin-right","10px"],["name","open-outline","color","primary",3,"click"],["slot","content"],[1,"d-flex","justify-content-center"],[1,"sectionButton"],[1,"mirrorButton",3,"click"],["width","94%","height","145","frameborder","0","scrolling","no","allowfullscreen","",3,"src",4,"ngIf"],["id","Noticias","style","display: none;",4,"ngIf"],["id","Noticias",2,"display","none"],["style","margin-top: 10px;",3,"click",4,"ngIf"],["id","Redes_Sociales",2,"display","none"],["name","earth-outline",2,"margin-right","10px"],["slot","content",2,"padding-top","5px"],[1,"social-list"],["class","banner-video",4,"ngFor","ngForOf"],["class","banner-instagram",3,"click",4,"ngFor","ngForOf"],["id","Revista",2,"display","none"],["name","book-outline",2,"margin-right","10px"],[1,"d-flex","justify-content-center",3,"click"],[1,"sectionDiv"],[1,"d-flex"],["alt","Header Revista Academias Saprissa",3,"src"],["id","Datos_y_estad\xedsticas",2,"display","none"],["name","stats-chart-outline",2,"margin-right","10px"],["width","94%","height","500","frameborder","0","scrolling","yes","allowfullscreen","",3,"src",4,"ngIf"],["id","Equipo",2,"display","none"],["name","shirt-outline",2,"margin-right","10px"],[1,"sectionDiv",3,"click"],["alt","Header Equipo Academias Saprissa",1,"sectionImage",3,"src"],["id","Contenido exclusivo",2,"display","none"],["name","image",2,"margin-right","10px"],["slot","content",1,"ion-margin-start","ion-margin-end",2,"padding-top","5px"],[3,"publicationContent","publication",4,"ngIf"],["slot","icon-only","name","notifications-outline",1,"button-shopping",2,"margin-right","12px"],["color","secondary",1,"badge-cart"],[1,"headerHome"],[1,"gradient"],[1,"headerText"],[1,"home"],[1,"ion-margin-top",3,"options"],["Slides",""],[4,"ngFor","ngForOf"],[1,"sectionNewsContent",3,"click"],[1,"sectionImage",3,"src"],[3,"size",4,"ngFor","ngForOf"],[3,"size"],["class","cardMainOptions",3,"ngStyle","click",4,"ngIf"],["class","cardMainOptions",3,"click",4,"ngIf"],[1,"cardMainOptions",3,"ngStyle","click"],["class","cardSubMainOptions",4,"ngIf"],["class","cardSubMainOptions",3,"ngStyle",4,"ngIf"],[1,"cardTextOptions",3,"ngStyle"],[1,"cardSubMainOptions"],["name","help-circle-outline"],[1,"cardSubMainOptions",3,"ngStyle"],[3,"name"],[1,"cardMainOptions",3,"click"],[3,"src",4,"ngIf"],[3,"src"],[2,"margin-top","16px",3,"options"],["detail","true",1,"sectionNewsContent",3,"routerLink"],["lines","none",4,"ngIf"],["lines","none"],["color","medium",2,"font-size","0.8em"],["width","94%","height","145","frameborder","0","scrolling","no","allowfullscreen","",3,"src"],["name","newspaper-outline",2,"margin-right","10px"],[1,"news-list"],["class","sectionNewsContent",3,"click",4,"ngFor","ngForOf"],["class","newNews",4,"ngIf"],[1,"content"],["style","font-weight: bold;",4,"ngIf"],[1,"newNews"],[2,"font-weight","bold"],["alt","Header Noticias Academias Saprissa",1,"sectionImage",3,"src"],[1,"banner-video"],["class","d-flex",3,"click",4,"ngIf"],[1,"d-flex",3,"click"],["width","100%","height","240","frameborder","0","allowfullscreen","",3,"src"],[1,"banner-instagram",3,"click"],["width","100%","height","300","frameborder","0","allowfullscreen","",3,"src",4,"ngIf"],["width","100%","height","300","frameborder","0","allowfullscreen","",3,"src"],["width","94%","height","500","frameborder","0","scrolling","yes","allowfullscreen","",3,"src"],[3,"publicationContent","publication"]],template:function(r,n){1&r&&(t.j41(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-title"),t.nrm(3,"img",1),t.k0s(),t.j41(4,"ion-buttons",2)(5,"div",3),t.bIt("click",function(){return n.goToNotifications()}),t.DNE(6,gt,1,0,"ion-icon",4),t.DNE(7,ut,2,1,"ion-badge",5),t.k0s()()()(),t.j41(8,"ion-content")(9,"ion-refresher",6),t.bIt("ionRefresh",function(l){return n.doRefresh(l)}),t.nrm(10,"ion-refresher-content"),t.k0s(),t.DNE(11,pt,5,2,"div",7),t.DNE(12,ht,3,2,"ion-slides",8),t.DNE(13,Pt,4,1,"div",9),t.DNE(14,Et,3,2,"ion-slides",10),t.j41(15,"div",null,11)(17,"div",12)(18,"ion-accordion-group",13),t.bIt("click",function(l){return n.scrollTo(l)}),t.j41(19,"ion-accordion",14)(20,"ion-item",15),t.nrm(21,"ion-icon",16),t.j41(22,"ion-label"),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.j41(25,"ion-icon",17),t.bIt("click",function(){return n.goToStatistics()}),t.k0s()(),t.j41(26,"div",18)(27,"div",19)(28,"section",20)(29,"ion-button",21),t.bIt("click",function(){return n.goToStatistics()}),t.k0s()(),t.DNE(30,wt,1,1,"iframe",22),t.k0s()()()()(),t.DNE(31,Rt,2,1,"div",23),t.j41(32,"div",24),t.DNE(33,Dt,13,5,"ion-accordion-group",25),t.k0s(),t.j41(34,"div",26)(35,"ion-accordion-group",13),t.bIt("click",function(l){return n.scrollTo(l)}),t.j41(36,"ion-accordion",14)(37,"ion-item",15),t.nrm(38,"ion-icon",27),t.j41(39,"ion-label"),t.EFF(40),t.nI1(41,"translate"),t.k0s(),t.j41(42,"ion-icon",17),t.bIt("click",function(){return n.goToSocial()}),t.k0s()(),t.j41(43,"div",28)(44,"section",19)(45,"div",29),t.DNE(46,Ht,2,1,"div",30),t.DNE(47,Bt,2,1,"div",31),t.k0s()()()()()(),t.j41(48,"div",32)(49,"ion-accordion-group",13),t.bIt("click",function(l){return n.scrollTo(l)}),t.j41(50,"ion-accordion",14)(51,"ion-item",15),t.nrm(52,"ion-icon",33),t.j41(53,"ion-label"),t.EFF(54),t.nI1(55,"translate"),t.k0s(),t.j41(56,"ion-icon",17),t.bIt("click",function(){return n.goToBookcase()}),t.k0s()(),t.j41(57,"div",28)(58,"section",34),t.bIt("click",function(){return n.goToBookcase()}),t.j41(59,"div",35)(60,"div",36),t.nrm(61,"img",37),t.k0s()()()()()()(),t.j41(62,"div",38)(63,"ion-accordion-group",13),t.bIt("click",function(l){return n.scrollTo(l)}),t.j41(64,"ion-accordion",14)(65,"ion-item",15),t.nrm(66,"ion-icon",39),t.j41(67,"ion-label"),t.EFF(68),t.nI1(69,"translate"),t.k0s(),t.j41(70,"ion-icon",17),t.bIt("click",function(){return n.goToStatistics()}),t.k0s()(),t.j41(71,"div",28)(72,"div",19),t.DNE(73,Ut,1,1,"iframe",40),t.k0s()()()()(),t.j41(74,"div",41)(75,"ion-accordion-group",13),t.bIt("click",function(l){return n.scrollTo(l)}),t.j41(76,"ion-accordion",14)(77,"ion-item",15),t.nrm(78,"ion-icon",42),t.j41(79,"ion-label"),t.EFF(80),t.nI1(81,"translate"),t.k0s(),t.j41(82,"ion-icon",17),t.bIt("click",function(){return n.goToPlayers()}),t.k0s()(),t.j41(83,"div",28)(84,"section",19)(85,"div",43),t.bIt("click",function(){return n.goToPlayers()}),t.j41(86,"div",36),t.nrm(87,"img",44),t.k0s()()()()()()(),t.j41(88,"div",45)(89,"ion-accordion-group",13),t.bIt("click",function(l){return n.scrollTo(l)}),t.j41(90,"ion-accordion",14)(91,"ion-item",15),t.nrm(92,"ion-icon",46),t.j41(93,"ion-label"),t.EFF(94),t.nI1(95,"translate"),t.k0s(),t.j41(96,"ion-icon",17),t.bIt("click",function(){return n.goToClubContent()}),t.k0s()(),t.j41(97,"div",47),t.DNE(98,Ft,1,2,"app-card-publication-content",48),t.k0s()()()()()()),2&r&&(t.R7$(6),t.Y8G("ngIf",n.notificationsCount),t.R7$(1),t.Y8G("ngIf",n.notificationsNotViewedCount>0),t.R7$(4),t.Y8G("ngIf",n.homeProvider._homeImage),t.R7$(1),t.Y8G("ngIf",n.banners&&n.banners.length),t.R7$(1),t.Y8G("ngIf",n.dataSections&&n.dataSections.length),t.R7$(1),t.Y8G("ngIf",n.homeProvider._listForms&&n.homeProvider._listForms.length),t.R7$(9),t.JRh(t.bMT(24,23,"TITLE_HOME_MATCHES")),t.R7$(7),t.Y8G("ngIf",n.statisticUrlOnly),t.R7$(1),t.Y8G("ngIf",!n.homeProvider._activateNewsLink),t.R7$(2),t.Y8G("ngIf",n.homeProvider._activateNewsLink),t.R7$(7),t.JRh(t.bMT(41,25,"TITLE_HOME_SOCIAL")),t.R7$(6),t.Y8G("ngForOf",n.videos),t.R7$(1),t.Y8G("ngForOf",n.instagram),t.R7$(7),t.JRh(t.bMT(55,27,"TITLE_HOME_MAGAZINE")),t.R7$(7),t.FCK("src","",n.cityProvider._urlGallery,"public/magazine.jpeg?_dc=",n.time,"",t.B4B),t.R7$(7),t.JRh(t.bMT(69,29,"TITLE_HOME_DATA")),t.R7$(5),t.Y8G("ngIf",n.statisticUrlStanding),t.R7$(7),t.JRh(t.bMT(81,31,"TITLE_HOME_PLAYERS")),t.R7$(7),t.FCK("src","",n.cityProvider._urlGallery,"public/team.jpeg?_dc=",n.time,"",t.B4B),t.R7$(7),t.JRh(t.bMT(95,33,"CLUB_CONTENT.CLUB_CONTENT")),t.R7$(4),t.Y8G("ngIf",n.photoClub.length))},dependencies:[u.Sq,u.bT,u.B3,p.xk,p.YH,p.In,p.Jm,p.QW,p.HW,p.hU,p.W9,p.lO,p.eU,p.iq,p.KW,p.uz,p.he,p.To,p.Ki,p.ln,p.q3,p.tR,p.BC,p.ai,p.N7,T.Wk,dt.t,u.P9,L.D9],styles:["ion-content[_ngcontent-%COMP%]{--background: #f9f9f9}.headerHome[_ngcontent-%COMP%]{background-position:center;background-repeat:no-repeat;background-size:cover;padding:7px 16px;display:flex;justify-content:end;flex-direction:column;gap:4px;position:relative}.headerText[_ngcontent-%COMP%]{z-index:1;display:flex;align-items:center;color:#fff;justify-content:space-between}.icon-home[_ngcontent-%COMP%]{height:30px;width:30px;margin-right:5px}.gradient[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;left:0;top:0;background:var(--ion-color-primary-shade)}.titleGreet[_ngcontent-%COMP%]{margin-bottom:0}.home[_ngcontent-%COMP%]{font-size:18px;margin-bottom:0;color:#fff}.sectionHeader[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:12px 16px;max-width:640px;margin:auto}.news-list[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column}.sectionNewsContent[_ngcontent-%COMP%]{background-color:#fff;display:flex;margin-bottom:12px;border-radius:10px;margin-left:16px;margin-right:16px;overflow:hidden;box-shadow:0 1px 6px gray;max-width:640px;flex-direction:column;width:-webkit-fill-available;max-height:250px}.newNews[_ngcontent-%COMP%]{position:absolute;width:78px;background-color:var(--ion-color-primary);color:#fff;font-weight:700;padding:0 5px;text-transform:uppercase;text-align:center;box-shadow:0 1px 6px gray;border-bottom-right-radius:5px}.newsTitle[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.content[_ngcontent-%COMP%]{padding:4px 16px 8px}.title-section[_ngcontent-%COMP%]{font-weight:700;margin-bottom:0;font-size:18px;text-transform:uppercase}.social-list[_ngcontent-%COMP%]{max-width:640px;width:100%;margin-left:16px;margin-right:16px}.banner-video[_ngcontent-%COMP%]{background-color:#fff;margin-bottom:12px;border-radius:10px;overflow:hidden;box-shadow:0 1px 6px gray;max-width:640px}.banner-video[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%}.banner-instagram[_ngcontent-%COMP%]{background-color:#fff;margin-bottom:12px;border-radius:10px;overflow:hidden;box-shadow:0 1px 6px gray;display:flex}.sectionDiv[_ngcontent-%COMP%]{background-color:#fff;margin-bottom:12px;border-radius:10px;margin-left:16px;margin-right:16px;overflow:hidden;box-shadow:0 1px 6px gray;max-width:640px;width:-webkit-fill-available}.contentRevista[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:12px 16px;background:#ffffff}.subtitleRevista[_ngcontent-%COMP%]{color:#636363;margin-bottom:0}.titleRevista[_ngcontent-%COMP%]{margin-bottom:0}.d-flex[_ngcontent-%COMP%]{display:flex}.justify-content-center[_ngcontent-%COMP%]{justify-content:center;display:flex}.scroll-x[_ngcontent-%COMP%]{overflow-x:scroll;margin-right:16px;margin-left:16px}.contentStatics[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#fff;margin-bottom:12px;border-radius:10px;margin-left:16px;margin-right:16px;overflow:hidden;box-shadow:0 1px 6px gray}.infoCoins[_ngcontent-%COMP%]{display:flex;background:linear-gradient(135deg,var(--ion-color-primary) 0%,black 150%);border-radius:16px;height:28px;color:#efefef;box-shadow:0 1px 6px gray;align-items:center}.iconInfoCoins[_ngcontent-%COMP%]{height:34px;position:relative;right:4px;top:0}.textInfoCoins[_ngcontent-%COMP%]{font-weight:700;margin-bottom:0;margin-right:8px;font-size:20px;text-align:right}.headerTable[_ngcontent-%COMP%]{padding:8px;background:var(--ion-color-primary);color:#fff;font-weight:700}.none-events[_ngcontent-%COMP%]{pointer-events:none}.data-card[_ngcontent-%COMP%]{max-width:640px;width:100%;margin-left:16px;margin-right:16px}.container[_ngcontent-%COMP%]{position:relative;overflow:hidden;width:100%;padding-top:56.25%}.responsive-iframe[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%}.cardSubMain[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-size:3em;font-weight:700}.cardText[_ngcontent-%COMP%]{font-size:min(4vw,20px);margin-bottom:0;margin-left:5px;font-weight:700}.cardShop[_ngcontent-%COMP%], .cardTicket[_ngcontent-%COMP%]{background:linear-gradient(135deg,var(white) 50%,white 150%)}.textOpenSection[_ngcontent-%COMP%]{text-transform:uppercase}.sectionOptions[_ngcontent-%COMP%]{display:flex;flex-flow:column;width:-webkit-fill-available;margin:0 10px;max-width:650px}.carouselOptions[_ngcontent-%COMP%]{display:flex;flex-flow:row}.cardMainOptions[_ngcontent-%COMP%]{display:flex;box-shadow:0 1px 6px gray;border-radius:10px;margin:0 5px;padding:2px 5px;align-items:center;width:-webkit-fill-available;height:70px;min-width:calc(50% - 10px);overflow:hidden}.cardTextOptions[_ngcontent-%COMP%]{font-size:min(4vw,20px);margin-bottom:0;margin-left:10px;width:70%;line-height:20px}.cardSubMainOptions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-size:2.3em;color:gray;margin-left:5px}.sectionImage[_ngcontent-%COMP%]{width:-webkit-fill-available}.sectionButton[_ngcontent-%COMP%]{display:flex;position:absolute;height:135px;width:60%;min-height:-moz-fit-content;min-height:fit-content;opacity:0}.sectionButtonStandings[_ngcontent-%COMP%]{display:flex;position:absolute;height:390px;width:60%;min-height:-moz-fit-content;min-height:fit-content;opacity:0}.mirrorButton[_ngcontent-%COMP%]{height:-webkit-fill-available;width:-webkit-fill-available}.badge-cart[_ngcontent-%COMP%]{position:absolute;right:0;top:0;margin-top:-2px}.title[_ngcontent-%COMP%]{background:rgb(235,235,235);margin:0 15px;color:gray}"]})}return i})()}];let Lt=(()=>{class i{static#t=this.\u0275fac=function(r){return new(r||i)};static#e=this.\u0275mod=t.$C({type:i});static#i=this.\u0275inj=t.G2t({imports:[T.iI.forChild(Xt),T.iI]})}return i})();var Yt=c(55553);let Vt=(()=>{class i{static#t=this.\u0275fac=function(r){return new(r||i)};static#e=this.\u0275mod=t.$C({type:i});static#i=this.\u0275inj=t.G2t({imports:[u.MD,y.YN,p.bv,Lt,L.h,Yt.h]})}return i})()},45588:(X,I,c)=>{c.d(I,{k:()=>k});var u=c(73308),y=c(2978),p=c(3366),T=c(57291);let k=(()=>{class t{constructor(s,a){this.api=s,this.storage=a}userValidation(s){var a=this;this.storage.get("token").then(function(){var v=(0,u.A)(function*(d){d&&(yield a.login(d.access_token)).subscribe(function(){var g=(0,u.A)(function*(S){S.r&&!s.coin_uid&&s.document&&(yield a.register(d.access_token,{})).subscribe(function(){var f=(0,u.A)(function*(x){x.uid?(s.coin_uid=x.uid,a.storage.set("infoUser",s)):(yield a.update(d.access_token)).subscribe(R=>{R.uid&&(s.coin_uid=R.uid,a.storage.set("infoUser",s))},R=>{console.log("Error update leal",R)})});return function(x){return f.apply(this,arguments)}}(),f=>{console.log("Error register leal",f)})});return function(S){return g.apply(this,arguments)}}(),g=>{console.log("Error login leal",g)})});return function(d){return v.apply(this,arguments)}}())}login(s){return this.api.post("leal/login",{},s)}coins(s,a){return this.api.get(`leal/coins/${a}`,s)}register(s,a){return this.api.post("leal/user/register",a,s)}update(s){return this.api.get("leal/user/update",s)}generateOTP(s,a){return this.api.post("leal/payment/generateOTP",a,s)}generateOrderPaymentCoins(s,a){return this.api.post("leal/payment/generateOrderPaymentCoins",a,s)}static#t=this.\u0275fac=function(a){return new(a||t)(y.KVO(p.G),y.KVO(T.n))};static#e=this.\u0275prov=y.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},87473:(X,I,c)=>{c.d(I,{J:()=>T});var u=c(73308),y=c(2978),p=c(3366);let T=(()=>{class k{constructor(C){this.api=C}getNotifications(){var C=this;return(0,u.A)(function*(){return C.api.get("notification/get")})()}getNotificationsCount(){var C=this;return(0,u.A)(function*(){return C.api.get("notification/count")})()}static#t=this.\u0275fac=function(s){return new(s||k)(y.KVO(p.G))};static#e=this.\u0275prov=y.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},55267:(X,I,c)=>{c.d(I,{n:()=>s});var u=c(73308),y=c(2978),p=c(55467),T=c(57291),k=c(26173),t=c(7125),C=c(12692);let s=(()=>{class a{constructor(d,g,S,f,x){this.ticketsService=d,this.storage=g,this.homeProvider=S,this.cityService=f,this.networkingService=x}saveData(){this.networkingService.isOnline&&(this.saveCityConnection(),this.saveTicketParameters(),this.saveTickets(),this.saveSymbolicTickets(),this.saveTeamData())}saveTickets(){var d=this;return(0,u.A)(function*(){(yield d.ticketsService.getTickets(50,0)).subscribe({next:g=>{d.storage.set("tickets",JSON.stringify(g))},error:g=>{console.log("error getTickets: ",g)}})})()}saveTicketParameters(){var d=this;return(0,u.A)(function*(){d.ticketsService.getParameters().then(g=>{d.storage.set("ticketParameters",JSON.stringify(g.parameters))})})()}saveSymbolicTickets(){var d=this;return(0,u.A)(function*(){(yield d.homeProvider.getSimbolicTickets(50,0)).subscribe({next:g=>{d.storage.set("symbolicTickets",JSON.stringify(g))},error:g=>{console.log("error getTickets: ",g)}})})()}saveTeamData(){var d=this;return(0,u.A)(function*(){d.homeProvider.getTeamData().then(g=>{d.storage.set("teamData",JSON.stringify(g))})})()}saveCityConnection(){var d=this;return(0,u.A)(function*(){d.cityService.getListCitiesConnection().then(function(){var g=(0,u.A)(function*(S){S.listCities&&(yield d.storage.set("infoHost",S.listCities[0])),d.cityService.getInfoHost()});return function(S){return g.apply(this,arguments)}}())})()}getTickets(){var d=this;return(0,u.A)(function*(){return JSON.parse(yield d.storage.get("tickets"))})()}getTicketParameters(){var d=this;return(0,u.A)(function*(){return JSON.parse(yield d.storage.get("ticketParameters"))})()}getSymbolicTickets(){var d=this;return(0,u.A)(function*(){return JSON.parse(yield d.storage.get("symbolicTickets"))})()}getTeamData(){var d=this;return(0,u.A)(function*(){return JSON.parse(yield d.storage.get("teamData"))})()}static#t=this.\u0275fac=function(g){return new(g||a)(y.KVO(p.t),y.KVO(T.n),y.KVO(k.X),y.KVO(t.h),y.KVO(C.w))};static#e=this.\u0275prov=y.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})()},55467:(X,I,c)=>{c.d(I,{t:()=>k});var u=c(73308),y=c(2978),p=c(3366),T=c(54171);let k=(()=>{class t{constructor(s,a){this.api=s,this.utilsService=a,this.parameters={},this.matchEvents={}}getMatchEvents(s){return this.api.get("tickets/match_events",s)}loadStadiumZones(s,a){return this.api.get("tickets/loadStadiumZones",s,a)}getSeats(s,a,v){return this.api.get(`tickets/get_seats/${a}/${v}`,s)}getSeatPrice(s,a,v){return this.api.get(`tickets/get_seat_price/${a}/${v}`,s)}generateBlock(s,a){return this.api.post("tickets/createBlock",a,s)}getMatchEventsSuscription(s,a){return this.api.get("tickets/getMatchEventsSuscription",s,a)}isPreabonado(s,a){return this.api.get(`tickets/isPreabonado/${a}`,s)}createBlocks(s,a){return this.api.post("tickets/createBlocks",a,s)}purchaseTickets(s){let v=`${this.api.getUrl()}/tickets/purchase?id=`+s;this.utilsService.openLink(v)}purchaseAbonos(){let a=`${this.api.getUrl()}/abonados/abonados.html`;this.utilsService.openLink(a)}getTickets(s,a){return this.api.get(`tickets/get_tickets/${s}/${a}`)}getPdf(s,a){var v=this;return(0,u.A)(function*(){return v.api.post("tickets/pdf",{code:s,platform:a},yield v.utilsService.getAccessToken())})()}generateTicketBycoins(s,a){return this.api.get(`coins/generateTickets/${a}`,s)}validateUserTickets(s,a,v){return this.api.get(`flash_tickets/validateUserTickets/${a}/${v}`,s)}getTribunesParentFlashTicket(s,a,v,d){return this.api.get(`flash_tickets/getTribunesParent/${a}?availableCupon=${v}&cuponCode=${d}`,s)}validateSeatsAvailableByCapacity(s,a){return this.api.post("flash_tickets/validateSeatsAvailableByCapacity",a,s)}getTicketsSubscriptions(s,a){return this.api.get(`tickets/getTicketsSubscriptions/${a}`,s)}createPurchaseSubscribers(s,a){return this.api.post("tickets/createPurchaseSubscribers",a,s)}validateCouponExist(s,a){var v=this;return(0,u.A)(function*(){let d=yield v.utilsService.getAccessToken();return new Promise(function(){var g=(0,u.A)(function*(S,f){(yield v.api.get(`flash_tickets/validateACoupon/${s}/${a}`,d)).subscribe(x=>{S(x)},x=>{console.error("Error validateCouponExist",x),f(x)})});return function(S,f){return g.apply(this,arguments)}}())})()}userTransferTickets(s){var a=this;return(0,u.A)(function*(){let v=yield a.utilsService.getAccessToken();return new Promise(function(){var d=(0,u.A)(function*(g,S){(yield a.api.post("tickets/transfer",s,v)).subscribe(f=>{g(f)},f=>{console.error("Error userTransferTickets",f),S(f)})});return function(g,S){return d.apply(this,arguments)}}())})()}userInformation(s){var a=this;return(0,u.A)(function*(){let v=yield a.utilsService.getAccessToken();return new Promise(function(){var d=(0,u.A)(function*(g,S){(yield a.api.post("tickets/userInformationToTransferTicket",s,v)).subscribe(f=>{g(f)},f=>{console.error("Error userInformation",f),S(f)})});return function(g,S){return d.apply(this,arguments)}}())})()}getParameters(s){var a=this;return new Promise(function(){var v=(0,u.A)(function*(d,g){(yield a.api.get("tickets/parameters/info"+(s?"?keys="+s:""))).subscribe(f=>{"success"==f.status&&(s||(a.parameters=f.parameters)),d(f)},f=>{console.error("Error provider getParameters",f),g(f)})});return function(d,g){return v.apply(this,arguments)}}())}static#t=this.\u0275fac=function(a){return new(a||t)(y.KVO(p.G),y.KVO(T.T))};static#e=this.\u0275prov=y.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()}}]);