File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/4231.c50b09e3c2067619.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4231,1519,3900,6757,9138,2697,5553,767,7934,1337,315],{55553:(C,h,o)=>{o.d(h,{h:()=>_});var t=o(77897),p=o(56610),P=o(41683),f=o(13721),M=o(22882),v=o(37222),m=o(36594),E=o(2978);let _=(()=>{class r{static#t=this.\u0275fac=function(s){return new(s||r)};static#e=this.\u0275mod=E.$C({type:r});static#n=this.\u0275inj=E.G2t({imports:[p.MD,t.bv,f.h,P.Y,M.h.forChild(),v.YN,m.rJ]})}return r})()},81337:(C,h,o)=>{o.d(h,{O:()=>v});var t=o(2978),p=o(56610),P=o(77897);function f(m,E){if(1&m&&t.nrm(0,"img",5),2&m){const _=t.XpG();t.FS9("src",_.emptySettingsSlide.urlImage,t.B4B)}}function M(m,E){if(1&m&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&m){const _=t.XpG();t.R7$(1),t.SpI(" ",_.emptySettingsSlide.text," ")}}let v=(()=>{class m{constructor(){this.emptySettingsSlide=[],this.slideOpts={allowSlidePrev:!1,allowSlideNext:!1,initialSlide:1,speed:400}}ngOnInit(){}static#t=this.\u0275fac=function(r){return new(r||m)};static#e=this.\u0275cmp=t.VBU({type:m,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(r,d){1&r&&(t.j41(0,"ion-slides",0)(1,"ion-slide",1)(2,"div",2),t.DNE(3,f,1,1,"img",3),t.j41(4,"ion-label"),t.DNE(5,M,2,1,"p",4),t.k0s()()()()),2&r&&(t.Y8G("options",d.slideOpts),t.R7$(3),t.Y8G("ngIf",d.emptySettingsSlide.showImage),t.R7$(2),t.Y8G("ngIf",d.emptySettingsSlide.showText))},dependencies:[p.bT,P.he,P.q3,P.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 m})()},68053:(C,h,o)=>{o.d(h,{T:()=>E});var t=o(2978),p=o(77897),P=o(7125),f=o(56610),M=o(22882);function v(_,r){if(1&_&&t.nrm(0,"img",5),2&_){const d=t.XpG();t.FCK("src","",d.image,"?_dc=",d.time,"",t.B4B)}}function m(_,r){if(1&_&&t.nrm(0,"img",6),2&_){const d=t.XpG();t.yjJ("src","",d.cityProvider._urlGallery,"popups/",d.image,"?_dc=",d.time,"",t.B4B)}}let E=(()=>{class _{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||_)(t.rXU(p.W3),t.rXU(P.h))};static#e=this.\u0275cmp=t.VBU({type:_,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,m,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:[f.bT,p.Jm,p.W9,p.M0,p.uz,p.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 _})()},87445:(C,h,o)=>{o.d(h,{$:()=>l});var t=o(2978),p=o(77897),P=o(7125),f=o(26173),M=o(83254),v=o(56610),m=o(22882);function E(i,u){if(1&i&&(t.j41(0,"ion-title"),t.EFF(1),t.k0s()),2&i){const n=t.XpG();t.R7$(1),t.JRh(n.popup.title)}}function _(i,u){if(1&i){const n=t.RV6();t.j41(0,"img",12),t.bIt("click",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.openAction(a.popup))}),t.k0s()}if(2&i){const n=t.XpG();t.FCK("src","",n.popup.image,"?_dc=",n.time,"",t.B4B)}}function r(i,u){if(1&i){const n=t.RV6();t.j41(0,"img",13),t.bIt("click",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.openAction(a.popup))}),t.k0s()}if(2&i){const n=t.XpG();t.yjJ("src","",n.cityProvider._urlGallery,"popups/",n.popup.image,"?_dc=",n.time,"",t.B4B)}}function d(i,u){if(1&i&&(t.j41(0,"ion-text",14)(1,"h5",15),t.EFF(2),t.k0s()()),2&i){const n=t.XpG();t.R7$(2),t.JRh(n.popup.msj)}}function e(i,u){if(1&i){const n=t.RV6();t.j41(0,"ion-button",16),t.bIt("click",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.openAction(a.popup))}),t.EFF(1),t.k0s()}if(2&i){const n=t.XpG();t.R7$(1),t.SpI(" ",n.popup.text_button_ok," ")}}function s(i,u){if(1&i){const n=t.RV6();t.j41(0,"ion-button",16),t.bIt("click",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.openAction(a.popup))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&i&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"all.open")," "))}function c(i,u){if(1&i){const n=t.RV6();t.j41(0,"ion-button",17),t.bIt("click",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.cancel())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&i&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"all.close")," "))}let l=(()=>{class i{constructor(n,g,a,O){this.modalCtrl=n,this.cityProvider=g,this.homeProvider=a,this.analyticsService=O}ngOnInit(){this.time=(new Date).getTime(),document.body.classList.add("modal-open")}cancel(n=!0){n&&this.analyticsService.logEvent("Popup Close: "+this.popup.title,"Popup","close",this.popup);let g=document.body.getElementsByClassName("modal-popup");(!g||1==g.length)&&document.body.classList.remove("modal-open"),this.modalCtrl.dismiss()}openAction(n){!n||!n.type_action_id||(this.analyticsService.logEvent("Popup Click: "+n.title,"Popup","click",n),this.homeProvider.openAction(n.type_action_id,n.value,n.target),this.cancel(!1))}static#t=this.\u0275fac=function(g){return new(g||i)(t.rXU(p.W3),t.rXU(P.h),t.rXU(f.X),t.rXU(M.c))};static#e=this.\u0275cmp=t.VBU({type:i,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(g,a){1&g&&(t.j41(0,"ion-toolbar",0),t.DNE(1,E,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,_,1,2,"img",7),t.DNE(8,r,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&g&&(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,p.Jm,p.QW,p.W9,p.M0,p.iq,p.uz,p.he,p.IO,p.BC,p.ai,m.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 i})()},1519:(C,h,o)=>{o.d(h,{p:()=>_});var t=o(73308),p=o(87445),P=o(68053),f=o(2978),M=o(3366),v=o(57291),m=o(54171),E=o(77897);let _=(()=>{class r{constructor(e,s,c,l){this.api=e,this.storage=s,this.utilsService=c,this.modalController=l}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:p.$,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:P.T,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!1,backdropDismiss:!1,componentProps:{image:e.image}}).then(l=>{l.present(),l.addEventListener("ionModalDidPresent",i=>{i.target&&i.target.addEventListener("focusout",u=>{u.sourceCapabilities&&c.popup&&c.closePopup(c.popup)})}),c.popup=l})})()}presentPopup(e,s){var c=this;return(0,t.A)(function*(){var l=c;l.closePopup(l.popup),l.modalController.create({component:e,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!0,backdropDismiss:!0,componentProps:{object:s}}).then(i=>{i.present(),i.addEventListener("ionModalDidPresent",u=>{u.target&&u.target.addEventListener("focusout",n=>{n.sourceCapabilities&&l.popup&&l.closePopup(l.popup)})}),l.popup=i})})()}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,l){(yield e.api.get("comms/video_youtube",yield e.utilsService.getAccessToken())).subscribe(u=>{c(u)},u=>{l(u)})});return function(c,l){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*(l,i){(yield s.api.get("comms/getBanners/"+e,yield s.utilsService.getAccessToken())).subscribe({next:n=>{l(n)},error:n=>{i(n)},complete:()=>{}})});return function(l,i){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 l=(0,t.A)(function*(i,u){let n=c||[];(yield s.api.get("comms/getPopups/"+e,yield s.utilsService.getAccessToken())).subscribe({next:a=>{a.forEach(O=>{if(0===O.frequency)s.openPopup(O);else{let D=n.find(y=>y.id===O.id);if(D&&D.views===D.frequency)return;D?D.views+=1:(O.views=1,n.push(O)),s.openPopup(O)}}),s.storage.set("popups",n),i(a)},error:a=>{u(a)},complete:()=>{}})});return function(i,u){return l.apply(this,arguments)}}()))})()}openPopup(e){this.presentModal(e)}static#t=this.\u0275fac=function(s){return new(s||r)(f.KVO(M.G),f.KVO(v.n),f.KVO(m.T),f.KVO(E.W3))};static#e=this.\u0275prov=f.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()}}]);