File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/9990.b92e1c14a4e0084f.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9990,1519,3900,6757,9138,5553,767,7934,315],{55553:(O,h,r)=>{r.d(h,{h:()=>o});var e=r(77897),g=r(56610),E=r(41683),f=r(13721),v=r(22882),P=r(37222),y=r(36594),c=r(2978);let o=(()=>{class p{static#e=this.\u0275fac=function(n){return new(n||p)};static#t=this.\u0275mod=c.$C({type:p});static#n=this.\u0275inj=c.G2t({imports:[g.MD,e.bv,f.h,E.Y,v.h.forChild(),P.YN,y.rJ]})}return p})()},68053:(O,h,r)=>{r.d(h,{T:()=>c});var e=r(2978),g=r(77897),E=r(7125),f=r(56610),v=r(22882);function P(o,p){if(1&o&&e.nrm(0,"img",5),2&o){const u=e.XpG();e.FCK("src","",u.image,"?_dc=",u.time,"",e.B4B)}}function y(o,p){if(1&o&&e.nrm(0,"img",6),2&o){const u=e.XpG();e.yjJ("src","",u.cityProvider._urlGallery,"popups/",u.image,"?_dc=",u.time,"",e.B4B)}}let c=(()=>{class o{constructor(u,t){this.modalCtrl=u,this.cityProvider=t}ngOnInit(){this.time=(new Date).getTime()}cancel(){this.modalCtrl.dismiss()}static#e=this.\u0275fac=function(t){return new(t||o)(e.rXU(g.W3),e.rXU(E.h))};static#t=this.\u0275cmp=e.VBU({type:o,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(t,n){1&t&&(e.j41(0,"ion-content",0),e.DNE(1,P,1,2,"img",1),e.DNE(2,y,1,3,"img",2),e.k0s(),e.j41(3,"ion-footer")(4,"ion-item")(5,"ion-label",3)(6,"ion-button",4),e.bIt("click",function(){return n.cancel()}),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()()),2&t&&(e.R7$(1),e.Y8G("ngIf",n.image.includes("http")),e.R7$(1),e.Y8G("ngIf",!n.image.includes("http")),e.R7$(5),e.JRh(e.bMT(8,3,"all.close")))},dependencies:[f.bT,g.Jm,g.W9,g.M0,g.uz,g.he,v.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 o})()},87445:(O,h,r)=>{r.d(h,{$:()=>l});var e=r(2978),g=r(77897),E=r(7125),f=r(26173),v=r(83254),P=r(56610),y=r(22882);function c(a,m){if(1&a&&(e.j41(0,"ion-title"),e.EFF(1),e.k0s()),2&a){const s=e.XpG();e.R7$(1),e.JRh(s.popup.title)}}function o(a,m){if(1&a){const s=e.RV6();e.j41(0,"img",12),e.bIt("click",function(){e.eBV(s);const _=e.XpG();return e.Njj(_.openAction(_.popup))}),e.k0s()}if(2&a){const s=e.XpG();e.FCK("src","",s.popup.image,"?_dc=",s.time,"",e.B4B)}}function p(a,m){if(1&a){const s=e.RV6();e.j41(0,"img",13),e.bIt("click",function(){e.eBV(s);const _=e.XpG();return e.Njj(_.openAction(_.popup))}),e.k0s()}if(2&a){const s=e.XpG();e.yjJ("src","",s.cityProvider._urlGallery,"popups/",s.popup.image,"?_dc=",s.time,"",e.B4B)}}function u(a,m){if(1&a&&(e.j41(0,"ion-text",14)(1,"h5",15),e.EFF(2),e.k0s()()),2&a){const s=e.XpG();e.R7$(2),e.JRh(s.popup.msj)}}function t(a,m){if(1&a){const s=e.RV6();e.j41(0,"ion-button",16),e.bIt("click",function(){e.eBV(s);const _=e.XpG();return e.Njj(_.openAction(_.popup))}),e.EFF(1),e.k0s()}if(2&a){const s=e.XpG();e.R7$(1),e.SpI(" ",s.popup.text_button_ok," ")}}function n(a,m){if(1&a){const s=e.RV6();e.j41(0,"ion-button",16),e.bIt("click",function(){e.eBV(s);const _=e.XpG();return e.Njj(_.openAction(_.popup))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&a&&(e.R7$(1),e.SpI(" ",e.bMT(2,1,"all.open")," "))}function i(a,m){if(1&a){const s=e.RV6();e.j41(0,"ion-button",17),e.bIt("click",function(){e.eBV(s);const _=e.XpG();return e.Njj(_.cancel())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&a&&(e.R7$(1),e.SpI(" ",e.bMT(2,1,"all.close")," "))}let l=(()=>{class a{constructor(s,d,_,M){this.modalCtrl=s,this.cityProvider=d,this.homeProvider=_,this.analyticsService=M}ngOnInit(){this.time=(new Date).getTime(),document.body.classList.add("modal-open")}cancel(s=!0){s&&this.analyticsService.logEvent("Popup Close: "+this.popup.title,"Popup","close",this.popup);let d=document.body.getElementsByClassName("modal-popup");(!d||1==d.length)&&document.body.classList.remove("modal-open"),this.modalCtrl.dismiss()}openAction(s){!s||!s.type_action_id||(this.analyticsService.logEvent("Popup Click: "+s.title,"Popup","click",s),this.homeProvider.openAction(s.type_action_id,s.value,s.target),this.cancel(!1))}static#e=this.\u0275fac=function(d){return new(d||a)(e.rXU(g.W3),e.rXU(E.h),e.rXU(f.X),e.rXU(v.c))};static#t=this.\u0275cmp=e.VBU({type:a,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(d,_){1&d&&(e.j41(0,"ion-toolbar",0),e.DNE(1,c,2,1,"ion-title",1),e.j41(2,"ion-buttons",2)(3,"ion-button",3),e.bIt("click",function(){return _.cancel()}),e.nrm(4,"ion-icon",4),e.k0s()()(),e.j41(5,"ion-content",5)(6,"div",6),e.DNE(7,o,1,2,"img",7),e.DNE(8,p,1,3,"img",8),e.DNE(9,u,3,1,"ion-text",9),e.k0s()(),e.j41(10,"ion-footer")(11,"ion-item")(12,"ion-label",0),e.DNE(13,t,2,1,"ion-button",10),e.DNE(14,n,3,3,"ion-button",10),e.DNE(15,i,3,3,"ion-button",11),e.k0s()()()),2&d&&(e.R7$(1),e.Y8G("ngIf",!_.popup.hide_name),e.R7$(6),e.Y8G("ngIf",_.popup.image.includes("http")),e.R7$(1),e.Y8G("ngIf",!_.popup.image.includes("http")),e.R7$(1),e.Y8G("ngIf",_.popup.msj),e.R7$(4),e.Y8G("ngIf",_.popup.type_action_id&&_.popup.text_button_ok),e.R7$(1),e.Y8G("ngIf",_.popup.type_action_id&&!_.popup.text_button_ok),e.R7$(1),e.Y8G("ngIf",!_.popup.type_action_id))},dependencies:[P.bT,g.Jm,g.QW,g.W9,g.M0,g.iq,g.uz,g.he,g.IO,g.BC,g.ai,y.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 a})()},73012:(O,h,r)=>{r.d(h,{u:()=>v});var e=r(73308),g=r(2978),E=r(3366),f=r(54171);let v=(()=>{class P{constructor(c,o){this.api=c,this.utilsService=o,this.categories=[],this.businesses=[],this.centerFirstMarker=!1,this.userHaveBusiness=!1,this.loadingBusiness=!0}getCategories(c){var o=this;return(0,e.A)(function*(){return o.categories=[],new Promise(function(){var p=(0,e.A)(function*(u,t){(yield o.api.get("business/getCategories/"+c,yield o.utilsService.getAccessToken())).subscribe(i=>{o.categories=i,u(i)},i=>{console.error("Error getCategories",i),t(i)})});return function(u,t){return p.apply(this,arguments)}}())})()}registerBusiness(c){var o=this;return(0,e.A)(function*(){let p=yield o.utilsService.getAccessToken();return new Promise(function(){var u=(0,e.A)(function*(t,n){(yield o.api.post("business/register",c,p)).subscribe(i=>{t(i)},i=>{console.error("Error registerBusiness",i),n(i)})});return function(t,n){return u.apply(this,arguments)}}())})()}getBusinesses(c){var o=this;return(0,e.A)(function*(){o.params=c;let p=yield o.utilsService.getAccessToken();return c.reset&&(o.businesses=[]),new Promise(function(){var u=(0,e.A)(function*(t,n){(yield o.api.get("business/getBusinesses",p,c)).subscribe(l=>{o.loadingBusiness=!1,c.reset?o.businesses=l:o.businesses.push(...l),c.user&&l.length&&(o.userHaveBusiness=!0),o.centerFirstMarker=!(!c.search&&1!=l.length),t(o.businesses)},l=>{console.error("Error getBusinesses",l),n(l)})});return function(t,n){return u.apply(this,arguments)}}())})()}deleteBusiness(c){var o=this;return(0,e.A)(function*(){let p=yield o.utilsService.getAccessToken();return new Promise(function(){var u=(0,e.A)(function*(t,n){(yield o.api.delete("business/delete/"+c,p)).subscribe(i=>{t(i)},i=>{console.error("Error registerBusiness",i),n(i)})});return function(t,n){return u.apply(this,arguments)}}())})()}getParameters(){var c=this;return(0,e.A)(function*(){return new Promise(function(){var o=(0,e.A)(function*(p,u){(yield c.api.get("business/getParameters",yield c.utilsService.getAccessToken())).subscribe(n=>{p(n)},n=>{console.error("Error getParemeters",n),u(n)})});return function(p,u){return o.apply(this,arguments)}}())})()}getScoringOptions(){var c=this;return(0,e.A)(function*(){return new Promise(function(){var o=(0,e.A)(function*(p,u){(yield c.api.get("business/getScoringOptions",yield c.utilsService.getAccessToken())).subscribe(n=>{p(n)},n=>{console.error("Error getParemeters",n),u(n)})});return function(p,u){return o.apply(this,arguments)}}())})()}registerScoring(c){var o=this;return(0,e.A)(function*(){let p=yield o.utilsService.getAccessToken();return new Promise(function(){var u=(0,e.A)(function*(t,n){(yield o.api.post("business/scoreRegistry",c,p)).subscribe(i=>{t(i)},i=>{console.error("Error registerScoring",i),n(i)})});return function(t,n){return u.apply(this,arguments)}}())})()}static#e=this.\u0275fac=function(o){return new(o||P)(g.KVO(E.G),g.KVO(f.T))};static#t=this.\u0275prov=g.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},1519:(O,h,r)=>{r.d(h,{p:()=>o});var e=r(73308),g=r(87445),E=r(68053),f=r(2978),v=r(3366),P=r(57291),y=r(54171),c=r(77897);let o=(()=>{class p{constructor(t,n,i,l){this.api=t,this.storage=n,this.utilsService=i,this.modalController=l}getBookcase(t){return this.api.get("comms/bookcase_embed",t)}presentModal(t){var n=this;return(0,e.A)(function*(){return yield(yield n.modalController.create({component:g.$,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!1,backdropDismiss:!1,componentProps:{popup:t}})).present()})()}presentInapp(t){var n=this;return(0,e.A)(function*(){var i=n;i.closePopup(i.popup),i.modalController.create({component:E.T,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!1,backdropDismiss:!1,componentProps:{image:t.image}}).then(l=>{l.present(),l.addEventListener("ionModalDidPresent",a=>{a.target&&a.target.addEventListener("focusout",m=>{m.sourceCapabilities&&i.popup&&i.closePopup(i.popup)})}),i.popup=l})})()}presentPopup(t,n){var i=this;return(0,e.A)(function*(){var l=i;l.closePopup(l.popup),l.modalController.create({component:t,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!0,backdropDismiss:!0,componentProps:{object:n}}).then(a=>{a.present(),a.addEventListener("ionModalDidPresent",m=>{m.target&&m.target.addEventListener("focusout",s=>{s.sourceCapabilities&&l.popup&&l.closePopup(l.popup)})}),l.popup=a})})()}closePopup(t){t&&t.dismiss()}getRadio(t){return this.api.get("comms/radio_embed",t)}getSocialNetworkAccounts(t){return this.api.get("comms/social_network_accounts",t)}getTiktok(t){return this.api.get("comms/video_tiktok",t)}getYoutube(t,n){return this.api.get("comms/video_youtube"+(n?"/"+n:""),t)}getYoutubeData(){var t=this;return(0,e.A)(function*(){return new Promise(function(){var n=(0,e.A)(function*(i,l){(yield t.api.get("comms/video_youtube",yield t.utilsService.getAccessToken())).subscribe(m=>{i(m)},m=>{l(m)})});return function(i,l){return n.apply(this,arguments)}}())})()}getInstagram(t,n){return this.api.get("comms/photo_instagram"+(n?"/"+n:""),t)}getTwitter(t){return this.api.get("comms/official_twitter",t)}getFacebook(t){return this.api.get("comms/official_facebook",t)}getBanners(t){var n=this;return(0,e.A)(function*(){return new Promise(function(){var i=(0,e.A)(function*(l,a){(yield n.api.get("comms/getBanners/"+t,yield n.utilsService.getAccessToken())).subscribe({next:s=>{l(s)},error:s=>{a(s)},complete:()=>{}})});return function(l,a){return i.apply(this,arguments)}}())})()}getPopups(t){var n=this;return(0,e.A)(function*(){n.storage.get("popups").then(i=>new Promise(function(){var l=(0,e.A)(function*(a,m){let s=i||[];(yield n.api.get("comms/getPopups/"+t,yield n.utilsService.getAccessToken())).subscribe({next:_=>{_.forEach(M=>{if(0===M.frequency)n.openPopup(M);else{let D=s.find(T=>T.id===M.id);if(D&&D.views===D.frequency)return;D?D.views+=1:(M.views=1,s.push(M)),n.openPopup(M)}}),n.storage.set("popups",s),a(_)},error:_=>{m(_)},complete:()=>{}})});return function(a,m){return l.apply(this,arguments)}}()))})()}openPopup(t){this.presentModal(t)}static#e=this.\u0275fac=function(n){return new(n||p)(f.KVO(v.G),f.KVO(P.n),f.KVO(y.T),f.KVO(c.W3))};static#t=this.\u0275prov=f.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()}}]);