File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/767.696ebaa26544fa97.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[767,1519,3900,6757,9138,5553,7934,315],{55553:(I,E,i)=>{i.d(E,{h:()=>r});var t=i(77897),l=i(56610),h=i(41683),g=i(13721),M=i(22882),v=i(37222),D=i(36594),P=i(2978);let r=(()=>{class m{static#t=this.\u0275fac=function(s){return new(s||m)};static#e=this.\u0275mod=P.$C({type:m});static#o=this.\u0275inj=P.G2t({imports:[l.MD,t.bv,g.h,h.Y,M.h.forChild(),v.YN,D.rJ]})}return m})()},68053:(I,E,i)=>{i.d(E,{T:()=>P});var t=i(2978),l=i(77897),h=i(7125),g=i(56610),M=i(22882);function v(r,m){if(1&r&&t.nrm(0,"img",5),2&r){const d=t.XpG();t.FCK("src","",d.image,"?_dc=",d.time,"",t.B4B)}}function D(r,m){if(1&r&&t.nrm(0,"img",6),2&r){const d=t.XpG();t.yjJ("src","",d.cityProvider._urlGallery,"popups/",d.image,"?_dc=",d.time,"",t.B4B)}}let P=(()=>{class r{constructor(d,e){this.modalCtrl=d,this.cityProvider=e}ngOnInit(){this.time=(new Date).getTime()}cancel(){this.modalCtrl.dismiss()}static#t=this.\u0275fac=function(e){return new(e||r)(t.rXU(l.W3),t.rXU(h.h))};static#e=this.\u0275cmp=t.VBU({type:r,selectors:[["app-modal-inapp"]],decls:9,vars:5,consts:[[1,"content"],["onerror","this.style.display='none';","class","image_popup","alt","popup",3,"src",4,"ngIf"],["class","image_popup","alt","popup",3,"src",4,"ngIf"],[1,"ion-text-center"],["size","default",3,"click"],["onerror","this.style.display='none';","alt","popup",1,"image_popup",3,"src"],["alt","popup",1,"image_popup",3,"src"]],template:function(e,s){1&e&&(t.j41(0,"ion-content",0),t.DNE(1,v,1,2,"img",1),t.DNE(2,D,1,3,"img",2),t.k0s(),t.j41(3,"ion-footer")(4,"ion-item")(5,"ion-label",3)(6,"ion-button",4),t.bIt("click",function(){return s.cancel()}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()()),2&e&&(t.R7$(1),t.Y8G("ngIf",s.image.includes("http")),t.R7$(1),t.Y8G("ngIf",!s.image.includes("http")),t.R7$(5),t.JRh(t.bMT(8,3,"all.close")))},dependencies:[g.bT,l.Jm,l.W9,l.M0,l.uz,l.he,M.D9],styles:["ion-content[_ngcontent-%COMP%]{scrollbar-width:none!important}.content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;overflow:hidden}.image_popup[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-flow:column;margin:auto}"]})}return r})()},87445:(I,E,i)=>{i.d(E,{$:()=>p});var t=i(2978),l=i(77897),h=i(7125),g=i(26173),M=i(83254),v=i(56610),D=i(22882);function P(n,_){if(1&n&&(t.j41(0,"ion-title"),t.EFF(1),t.k0s()),2&n){const o=t.XpG();t.R7$(1),t.JRh(o.popup.title)}}function r(n,_){if(1&n){const o=t.RV6();t.j41(0,"img",12),t.bIt("click",function(){t.eBV(o);const a=t.XpG();return t.Njj(a.openAction(a.popup))}),t.k0s()}if(2&n){const o=t.XpG();t.FCK("src","",o.popup.image,"?_dc=",o.time,"",t.B4B)}}function m(n,_){if(1&n){const o=t.RV6();t.j41(0,"img",13),t.bIt("click",function(){t.eBV(o);const a=t.XpG();return t.Njj(a.openAction(a.popup))}),t.k0s()}if(2&n){const o=t.XpG();t.yjJ("src","",o.cityProvider._urlGallery,"popups/",o.popup.image,"?_dc=",o.time,"",t.B4B)}}function d(n,_){if(1&n&&(t.j41(0,"ion-text",14)(1,"h5",15),t.EFF(2),t.k0s()()),2&n){const o=t.XpG();t.R7$(2),t.JRh(o.popup.msj)}}function e(n,_){if(1&n){const o=t.RV6();t.j41(0,"ion-button",16),t.bIt("click",function(){t.eBV(o);const a=t.XpG();return t.Njj(a.openAction(a.popup))}),t.EFF(1),t.k0s()}if(2&n){const o=t.XpG();t.R7$(1),t.SpI(" ",o.popup.text_button_ok," ")}}function s(n,_){if(1&n){const o=t.RV6();t.j41(0,"ion-button",16),t.bIt("click",function(){t.eBV(o);const a=t.XpG();return t.Njj(a.openAction(a.popup))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"all.open")," "))}function c(n,_){if(1&n){const o=t.RV6();t.j41(0,"ion-button",17),t.bIt("click",function(){t.eBV(o);const a=t.XpG();return t.Njj(a.cancel())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&n&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"all.close")," "))}let p=(()=>{class n{constructor(o,u,a,f){this.modalCtrl=o,this.cityProvider=u,this.homeProvider=a,this.analyticsService=f}ngOnInit(){this.time=(new Date).getTime(),document.body.classList.add("modal-open")}cancel(o=!0){o&&this.analyticsService.logEvent("Popup Close: "+this.popup.title,"Popup","close",this.popup);let u=document.body.getElementsByClassName("modal-popup");(!u||1==u.length)&&document.body.classList.remove("modal-open"),this.modalCtrl.dismiss()}openAction(o){!o||!o.type_action_id||(this.analyticsService.logEvent("Popup Click: "+o.title,"Popup","click",o),this.homeProvider.openAction(o.type_action_id,o.value,o.target),this.cancel(!1))}static#t=this.\u0275fac=function(u){return new(u||n)(t.rXU(l.W3),t.rXU(h.h),t.rXU(g.X),t.rXU(M.c))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-modal-popup"]],inputs:{popup:"popup"},decls:16,vars:7,consts:[[1,"ion-text-center"],[4,"ngIf"],["slot","end"],["expand","block","size","large","color","light",3,"click"],["name","close-circle-outline"],[1,"content"],[1,"container"],["onerror","this.style.display='none';","class","image-popup","alt","popup",3,"src","click",4,"ngIf"],["class","image-popup","alt","popup",3,"src","click",4,"ngIf"],["color","dark","class","ion-text-center",4,"ngIf"],["expand","block","size","default","class","press-effect",3,"click",4,"ngIf"],["expand","block","size","default",3,"click",4,"ngIf"],["onerror","this.style.display='none';","alt","popup",1,"image-popup",3,"src","click"],["alt","popup",1,"image-popup",3,"src","click"],["color","dark",1,"ion-text-center"],[1,"not-margin"],["expand","block","size","default",1,"press-effect",3,"click"],["expand","block","size","default",3,"click"]],template:function(u,a){1&u&&(t.j41(0,"ion-toolbar",0),t.DNE(1,P,2,1,"ion-title",1),t.j41(2,"ion-buttons",2)(3,"ion-button",3),t.bIt("click",function(){return a.cancel()}),t.nrm(4,"ion-icon",4),t.k0s()()(),t.j41(5,"ion-content",5)(6,"div",6),t.DNE(7,r,1,2,"img",7),t.DNE(8,m,1,3,"img",8),t.DNE(9,d,3,1,"ion-text",9),t.k0s()(),t.j41(10,"ion-footer")(11,"ion-item")(12,"ion-label",0),t.DNE(13,e,2,1,"ion-button",10),t.DNE(14,s,3,3,"ion-button",10),t.DNE(15,c,3,3,"ion-button",11),t.k0s()()()),2&u&&(t.R7$(1),t.Y8G("ngIf",!a.popup.hide_name),t.R7$(6),t.Y8G("ngIf",a.popup.image.includes("http")),t.R7$(1),t.Y8G("ngIf",!a.popup.image.includes("http")),t.R7$(1),t.Y8G("ngIf",a.popup.msj),t.R7$(4),t.Y8G("ngIf",a.popup.type_action_id&&a.popup.text_button_ok),t.R7$(1),t.Y8G("ngIf",a.popup.type_action_id&&!a.popup.text_button_ok),t.R7$(1),t.Y8G("ngIf",!a.popup.type_action_id))},dependencies:[v.bT,l.Jm,l.QW,l.W9,l.M0,l.iq,l.uz,l.he,l.IO,l.BC,l.ai,D.D9],styles:["ion-content[_ngcontent-%COMP%]{scrollbar-width:none!important}.content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;overflow:hidden}.container[_ngcontent-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center;height:100%;width:100%}.image-popup[_ngcontent-%COMP%]{width:100%;display:flex;flex-flow:column;margin:auto}"]})}return n})()},1519:(I,E,i)=>{i.d(E,{p:()=>r});var t=i(73308),l=i(87445),h=i(68053),g=i(2978),M=i(3366),v=i(57291),D=i(54171),P=i(77897);let r=(()=>{class m{constructor(e,s,c,p){this.api=e,this.storage=s,this.utilsService=c,this.modalController=p}getBookcase(e){return this.api.get("comms/bookcase_embed",e)}presentModal(e){var s=this;return(0,t.A)(function*(){return yield(yield s.modalController.create({component:l.$,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!1,backdropDismiss:!1,componentProps:{popup:e}})).present()})()}presentInapp(e){var s=this;return(0,t.A)(function*(){var c=s;c.closePopup(c.popup),c.modalController.create({component:h.T,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!1,backdropDismiss:!1,componentProps:{image:e.image}}).then(p=>{p.present(),p.addEventListener("ionModalDidPresent",n=>{n.target&&n.target.addEventListener("focusout",_=>{_.sourceCapabilities&&c.popup&&c.closePopup(c.popup)})}),c.popup=p})})()}presentPopup(e,s){var c=this;return(0,t.A)(function*(){var p=c;p.closePopup(p.popup),p.modalController.create({component:e,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!0,backdropDismiss:!0,componentProps:{object:s}}).then(n=>{n.present(),n.addEventListener("ionModalDidPresent",_=>{_.target&&_.target.addEventListener("focusout",o=>{o.sourceCapabilities&&p.popup&&p.closePopup(p.popup)})}),p.popup=n})})()}closePopup(e){e&&e.dismiss()}getRadio(e){return this.api.get("comms/radio_embed",e)}getSocialNetworkAccounts(e){return this.api.get("comms/social_network_accounts",e)}getTiktok(e){return this.api.get("comms/video_tiktok",e)}getYoutube(e,s){return this.api.get("comms/video_youtube"+(s?"/"+s:""),e)}getYoutubeData(){var e=this;return(0,t.A)(function*(){return new Promise(function(){var s=(0,t.A)(function*(c,p){(yield e.api.get("comms/video_youtube",yield e.utilsService.getAccessToken())).subscribe(_=>{c(_)},_=>{p(_)})});return function(c,p){return s.apply(this,arguments)}}())})()}getInstagram(e,s){return this.api.get("comms/photo_instagram"+(s?"/"+s:""),e)}getTwitter(e){return this.api.get("comms/official_twitter",e)}getFacebook(e){return this.api.get("comms/official_facebook",e)}getBanners(e){var s=this;return(0,t.A)(function*(){return new Promise(function(){var c=(0,t.A)(function*(p,n){(yield s.api.get("comms/getBanners/"+e,yield s.utilsService.getAccessToken())).subscribe({next:o=>{p(o)},error:o=>{n(o)},complete:()=>{}})});return function(p,n){return c.apply(this,arguments)}}())})()}getPopups(e){var s=this;return(0,t.A)(function*(){s.storage.get("popups").then(c=>new Promise(function(){var p=(0,t.A)(function*(n,_){let o=c||[];(yield s.api.get("comms/getPopups/"+e,yield s.utilsService.getAccessToken())).subscribe({next:a=>{a.forEach(f=>{if(0===f.frequency)s.openPopup(f);else{let O=o.find(T=>T.id===f.id);if(O&&O.views===O.frequency)return;O?O.views+=1:(f.views=1,o.push(f)),s.openPopup(f)}}),s.storage.set("popups",o),n(a)},error:a=>{_(a)},complete:()=>{}})});return function(n,_){return p.apply(this,arguments)}}()))})()}openPopup(e){this.presentModal(e)}static#t=this.\u0275fac=function(s){return new(s||m)(g.KVO(M.G),g.KVO(v.n),g.KVO(D.T),g.KVO(P.W3))};static#e=this.\u0275prov=g.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()}}]);