HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/6811.8cc9ed16e5e27b31.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6811,8030],{37737:(v,f,c)=>{c.d(f,{a:()=>i});const i=(0,c(22126).F3)("AppLauncher",{web:()=>c.e(2347).then(c.bind(c,52347)).then(m=>new m.AppLauncherWeb)})},8030:(v,f,c)=>{c.r(f),c.d(f,{DEFAULT_ID:()=>i,Loader:()=>e,LoaderStatus:()=>m});var _=function p(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){if(o.constructor!==a.constructor)return!1;var g,h,d;if(Array.isArray(o)){if((g=o.length)!=a.length)return!1;for(h=g;0!=h--;)if(!p(o[h],a[h]))return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===a.toString();if((g=(d=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(h=g;0!=h--;)if(!Object.prototype.hasOwnProperty.call(a,d[h]))return!1;for(h=g;0!=h--;){var b=d[h];if(!p(o[b],a[b]))return!1}return!0}return o!=o&&a!=a};const i="__googleMapsScriptId";var m=function(p){return p[p.INITIALIZED=0]="INITIALIZED",p[p.LOADING=1]="LOADING",p[p.SUCCESS=2]="SUCCESS",p[p.FAILURE=3]="FAILURE",p}(m||{});class e{constructor({apiKey:o,channel:a,client:g,id:h=i,libraries:d=[],language:b,region:M,version:I,mapIds:k,nonce:E,retries:C=3,url:P="https://maps.googleapis.com/maps/api/js"}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=I,this.apiKey=o,this.channel=a,this.client=g,this.id=h||i,this.libraries=d,this.language=b,this.region=M,this.mapIds=k,this.nonce=E,this.retries=C,this.url=P,e.instance){if(!_(this.options,e.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(e.instance.options)}`);return e.instance}e.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}get status(){return this.errors.length?m.FAILURE:this.done?m.SUCCESS:this.loading?m.LOADING:m.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let o=this.url;return o+=`?callback=${this.CALLBACK}`,this.apiKey&&(o+=`&key=${this.apiKey}`),this.channel&&(o+=`&channel=${this.channel}`),this.client&&(o+=`&client=${this.client}`),this.libraries.length>0&&(o+=`&libraries=${this.libraries.join(",")}`),this.language&&(o+=`&language=${this.language}`),this.region&&(o+=`&region=${this.region}`),this.version&&(o+=`&v=${this.version}`),this.mapIds&&(o+=`&map_ids=${this.mapIds.join(",")}`),o}deleteScript(){const o=document.getElementById(this.id);o&&o.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((o,a)=>{this.loadCallback(g=>{g?a(g.error):o(window.google)})})}loadCallback(o){this.callbacks.push(o),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const o=this.createUrl(),a=document.createElement("script");a.id=this.id,a.type="text/javascript",a.src=o,a.onerror=this.loadErrorCallback.bind(this),a.defer=!0,a.async=!0,this.nonce&&(a.nonce=this.nonce),document.head.appendChild(a)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(o){if(this.errors.push(o),this.errors.length<=this.retries){const a=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${a} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},a)}else this.onerrorEvent=o,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(o=>{o(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}},26811:(v,f,c)=>{c.d(f,{i:()=>y});var _=c(73308),i=c(2978),m=c(39795),e=c(8030),p=c(77897),o=c(1519),a=c(7125),g=c(26409);let h=(()=>{class n{constructor(t){this.http=t}getPublicIpLocation(){return this.http.get("https://json.geoiplookup.io/")}static#e=this.\u0275fac=function(s){return new(s||n)(i.KVO(g.Qq))};static#t=this.\u0275prov=i.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var d=c(22882),b=c(54171),M=c(56610),I=c(37222),k=c(36594);const E=["search"];function C(n,l){if(1&n){const t=i.RV6();i.j41(0,"div",2)(1,"input",3,4),i.bIt("keydown.enter",function(r){return r.preventDefault()})("ngModelChange",function(r){i.eBV(t);const u=i.XpG();return i.Njj(u.searchText=r)}),i.nI1(3,"translate"),i.k0s()()}if(2&n){const t=i.XpG();i.R7$(1),i.FS9("placeholder",i.bMT(3,2,"SEARCH_ADDRESS")),i.Y8G("ngModel",t.searchText)}}function P(n,l){if(1&n&&i.nrm(0,"map-marker",9),2&n){const t=i.XpG(2);i.Y8G("position",t.userPosition)("icon",t.userPositionIcon)}}const j=function(){return{draggable:!0}};function D(n,l){if(1&n){const t=i.RV6();i.j41(0,"map-marker",10),i.bIt("mapDragend",function(r){i.eBV(t);const u=i.XpG(2);return i.Njj(u.markerDragEnd(r))}),i.k0s()}if(2&n){const t=i.XpG(2);i.Y8G("position",t.searchMarkerPosition)("gmpDraggable",!0)("options",i.lJ4(3,j))}}const x=function(n){return{text:n,fontSize:"12px"}};function F(n,l){if(1&n){const t=i.RV6();i.j41(0,"map-marker",11),i.bIt("mapClick",function(){const u=i.eBV(t).$implicit,R=i.XpG(2);return i.Njj(R.markerClicked(u))}),i.k0s()}if(2&n){const t=l.$implicit,s=i.XpG(2);i.Y8G("position",s.getNumericMarkerPosition(t.address))("icon",s.getIconUrl(t))("label",i.eq3(3,x,t.name+" \u2605"+t.score))}}const G=function(){return{mapId:"SC_MAP_ID"}};function T(n,l){if(1&n&&(i.j41(0,"google-map",5),i.DNE(1,P,1,2,"map-marker",6),i.DNE(2,D,1,4,"map-marker",7),i.DNE(3,F,1,5,"map-marker",8),i.k0s()),2&n){const t=i.XpG();i.Y8G("height",t.height)("center",t.mapCenter)("zoom",t.zoom)("options",i.lJ4(7,G)),i.R7$(1),i.Y8G("ngIf",!t.searchMarkerPosition),i.R7$(1),i.Y8G("ngIf",t.showSearchField&&t.searchMarkerPosition),i.R7$(1),i.Y8G("ngForOf",t.businesses)}}let y=(()=>{class n{constructor(t,s,r,u,R,O,S){this.platform=t,this.commsService=s,this.cityProvider=r,this.ngZone=u,this.locationApiService=R,this.translateService=O,this.utilsService=S,this.businesses=[],this.centerFirstMarker={},this.showSearchField=!1,this.location=new i.bkB,this.errorGettingLocation=new i.bkB,this.height="30vh",this.userPositionIcon="../assets/img/user_location.png",this.zoom=17,this.searchText=""}ngOnChanges(t){if(t.businesses&&t.businesses.currentValue&&this.businesses.length&&this.centerFirstMarker){let s=this.businesses[0].address;return this.mapCenter={lat:Number(s.lat),lng:Number(s.long)},this.zoom=13,void(this.height="85vh")}t.searchMarkerPosition&&t.searchMarkerPosition.currentValue?(this.searchText=this.searchMarkerPosition.direction,this.updateCenterMap(this.searchMarkerPosition.lat,this.searchMarkerPosition.lng)):this.getCurrentLocation(),this.zoom=17,t.showSearchField&&t.showSearchField.currentValue&&(this.height="23vh")}ngOnInit(){}ngAfterViewInit(){this.configureSearchField()}configureSearchField(){this.showSearchField&&new e.Loader({apiKey:"AIzaSyDv579f74i_47NZHBfdxAxprOsZ526iHVI",libraries:["places"]}).load().then(()=>{let s=new google.maps.places.Autocomplete(this.searchElementRef.nativeElement);s.addListener("place_changed",()=>{this.ngZone.run(()=>{let r=s.getPlace();if(null==r.geometry)return;let u=r.geometry.location;this.updateCenterMap(u.lat(),u.lng())})})})}getCurrentLocation(){var t=this;return(0,_.A)(function*(){navigator.geolocation.getCurrentPosition(s=>{t.manageCurrentLocation(s.coords.latitude,s.coords.longitude)},s=>{t.errorGettingLocation.emit(!0),t.getPublicIpLocation()})})()}getPublicIpLocation(){this.locationApiService.getPublicIpLocation().subscribe(t=>{this.manageCurrentLocation(t.latitude,t.longitude)})}manageCurrentLocation(t,s){this.userPosition||(this.userPosition={lat:t,lng:s}),this.updateCenterMap(t,s)}updateCenterMap(t,s){this.mapCenter={lat:Number(t),lng:Number(s)},this.searchMarkerPosition=this.mapCenter,this.outputLocation(this.mapCenter.lat,this.mapCenter.lng)}markerClicked(t){this.commsService.presentPopup(m.l,t)}getIconUrl(t){return"../assets/img/business_icon.png"}markerDragEnd(t){this.searchMarkerPosition={lat:t.latLng.lat(),lng:t.latLng.lng()},this.outputLocation(t.latLng.lat(),t.latLng.lng())}outputLocation(t,s){this.searchElementRef&&this.location.emit({lat:t,lng:s,address:this.searchElementRef.nativeElement.value})}getNumericMarkerPosition(t){return{lat:Number(t.lat),lng:Number(t.long)}}static#e=this.\u0275fac=function(s){return new(s||n)(i.rXU(p.OD),i.rXU(o.p),i.rXU(a.h),i.rXU(i.SKi),i.rXU(h),i.rXU(d.c$),i.rXU(b.T))};static#t=this.\u0275cmp=i.VBU({type:n,selectors:[["app-map"]],viewQuery:function(s,r){if(1&s&&i.GBs(E,5),2&s){let u;i.mGM(u=i.lsd())&&(r.searchElementRef=u.first)}},inputs:{businesses:"businesses",centerFirstMarker:"centerFirstMarker",showSearchField:"showSearchField",searchMarkerPosition:"searchMarkerPosition"},outputs:{location:"location",errorGettingLocation:"errorGettingLocation"},features:[i.OA$],decls:3,vars:2,consts:[["class","ion-margin-bottom",4,"ngIf"],["width","100%",3,"height","center","zoom","options",4,"ngIf"],[1,"ion-margin-bottom"],["type","text","autocorrect","off","autocapitalize","off","spellcheck","off","type","text",1,"border-input",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["search",""],["width","100%",3,"height","center","zoom","options"],[3,"position","icon",4,"ngIf"],[3,"position","gmpDraggable","options","mapDragend",4,"ngIf"],[3,"position","icon","label","mapClick",4,"ngFor","ngForOf"],[3,"position","icon"],[3,"position","gmpDraggable","options","mapDragend"],[3,"position","icon","label","mapClick"]],template:function(s,r){1&s&&(i.j41(0,"ion-content"),i.DNE(1,C,4,4,"div",0),i.DNE(2,T,4,8,"google-map",1),i.k0s()),2&s&&(i.R7$(1),i.Y8G("ngIf",r.showSearchField),i.R7$(1),i.Y8G("ngIf",r.mapCenter))},dependencies:[M.Sq,M.bT,p.W9,I.me,I.BC,I.vS,k.u6,k.fU,d.D9],styles:[".gm-style div[aria-hidden=true]{background-color:#393939!important;color:#fff!important;padding:3px;border-radius:5px;margin-top:50px;font-size:5px}.ion-text-center[_ngcontent-%COMP%]{width:100%;background:white;height:40px}.border-input[_ngcontent-%COMP%]{border:1px solid #dedede;width:-webkit-fill-available;border-radius:5px;background-color:#fff;height:40px;padding:10px}agm-map[_ngcontent-%COMP%]{display:inline;height:calc(100% - 80px)!important}"]})}return n})()},39795:(v,f,c)=>{c.d(f,{l:()=>y});var _=c(73308),i=c(23867),m=c(37737),e=c(2978),p=c(54171),o=c(77897),a=c(7125),g=c(56610);function h(n,l){1&n&&(e.j41(0,"ion-card"),e.nrm(1,"img",6),e.k0s())}function d(n,l){if(1&n&&e.nrm(0,"img",8),2&n){const t=e.XpG(2);e.FS9("src",t.object.image,e.B4B)}}function b(n,l){if(1&n&&e.nrm(0,"img",8),2&n){const t=e.XpG(2);e.FCK("src","",t.cityProvider._urlGallery,"business/",t.object.image,"",e.B4B)}}function M(n,l){if(1&n&&(e.j41(0,"ion-card"),e.DNE(1,d,1,1,"img",7),e.DNE(2,b,1,2,"img",7),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.Y8G("ngIf",t.object.image.includes("http")),e.R7$(1),e.Y8G("ngIf",!t.object.image.includes("http"))}}function I(n,l){if(1&n&&(e.j41(0,"h3",9)(1,"b"),e.EFF(2),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI("Nombre: ",t.object.name,"")}}function k(n,l){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.SpI("Direcci\xf3n: ",t.object.address.direction,"")}}function E(n,l){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.SpI("Indicaciones adicionales: ",t.object.address.indications," ")}}function C(n,l){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.SpI("Barrio: ",t.object.address.district,"")}}function P(n,l){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.SpI("Descripci\xf3n del negocio: ",t.object.description,"")}}function j(n,l){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.SpI("A\xf1os de funcionamiento: ",t.object.age,"")}}function D(n,l){if(1&n){const t=e.RV6();e.j41(0,"p",9),e.EFF(1),e.j41(2,"ion-icon",10),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.sendMessage(r.object))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(1),e.SpI("Contacto: ",t.object.phone," ")}}function x(n,l){if(1&n){const t=e.RV6();e.j41(0,"p",9),e.EFF(1),e.j41(2,"ion-icon",11),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.goToInstagram(r.object.instagram))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(1),e.SpI("Instagram: ",t.object.instagram," ")}}function F(n,l){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.nrm(2,"ion-icon",12),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.SpI("Facebook: ",t.object.facebook," ")}}function G(n,l){if(1&n){const t=e.RV6();e.j41(0,"p",9)(1,"a",13),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.goToWebsite(r.object.website))}),e.EFF(2,"Sitio web "),e.k0s(),e.j41(3,"ion-icon",14),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.goToWebsite(r.object.website))}),e.k0s()()}}function T(n,l){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(1),e.SpI("Calificaci\xf3n: ",t.object.score,"")}}let y=(()=>{class n{constructor(t,s,r,u){this.utilsService=t,this.modalCtrl=s,this.cityProvider=r,this.platform=u}ngOnInit(){}cancel(){this.modalCtrl.dismiss()}sendMessage(t){t.code=t.address?.city?.state?.country?.code,this.utilsService.sendMessage(t)}goToInstagram(t){return(0,_.A)(function*(){t&&((yield m.a.openUrl({url:`instagram://user?username=${t}`})).completed||i.P.open({url:`https://www.instagram.com/${t}`}))})()}goToWebsite(t){return(0,_.A)(function*(){t&&((yield m.a.openUrl({url:t})).completed||i.P.open({url:t}))})()}static#e=this.\u0275fac=function(s){return new(s||n)(e.rXU(p.T),e.rXU(o.W3),e.rXU(a.h),e.rXU(o.OD))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-modal-business"]],decls:21,vars:13,consts:[[1,"ion-no-border"],["slot","end"],["color","light",3,"click"],["name","close-outline"],[4,"ngIf"],["class","ion-no-margin",4,"ngIf"],["alt","popup","src","assets/img/default.png",1,"image_popup"],["class","image_popup","alt","popup",3,"src",4,"ngIf"],["alt","popup",1,"image_popup",3,"src"],[1,"ion-no-margin"],["name","logo-whatsapp",1,"ion-no-margin","businessWhatsapp",3,"click"],["name","logo-instagram",1,"ion-no-margin","businessInsta",3,"click"],["name","logo-facebook",1,"ion-no-margin","businessFace"],[1,"ion-no-margin",3,"click"],["name","earth-outline",1,"ion-no-margin","businessFace",3,"click"]],template:function(s,r){1&s&&(e.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),e.EFF(3,"Informaci\xf3n"),e.k0s(),e.j41(4,"ion-buttons",1)(5,"ion-button",2),e.bIt("click",function(){return r.cancel()}),e.nrm(6,"ion-icon",3),e.k0s()()()(),e.j41(7,"ion-content"),e.DNE(8,h,2,0,"ion-card",4),e.DNE(9,M,3,2,"ion-card",4),e.DNE(10,I,3,1,"h3",5),e.DNE(11,k,2,1,"p",5),e.DNE(12,E,2,1,"p",5),e.DNE(13,C,2,1,"p",5),e.DNE(14,P,2,1,"p",5),e.DNE(15,j,2,1,"p",5),e.DNE(16,D,3,1,"p",5),e.DNE(17,x,3,1,"p",5),e.DNE(18,F,3,1,"p",5),e.DNE(19,G,4,0,"p",5),e.DNE(20,T,2,1,"p",5),e.k0s()),2&s&&(e.R7$(8),e.Y8G("ngIf",!r.object.image),e.R7$(1),e.Y8G("ngIf",r.object.image),e.R7$(1),e.Y8G("ngIf",r.object.name),e.R7$(1),e.Y8G("ngIf",r.object.address.direction),e.R7$(1),e.Y8G("ngIf",r.object.address.indications),e.R7$(1),e.Y8G("ngIf",r.object.address.district),e.R7$(1),e.Y8G("ngIf",r.object.description),e.R7$(1),e.Y8G("ngIf",r.object.age),e.R7$(1),e.Y8G("ngIf",r.object.phone),e.R7$(1),e.Y8G("ngIf",r.object.instagram),e.R7$(1),e.Y8G("ngIf",r.object.facebook),e.R7$(1),e.Y8G("ngIf",r.object.website),e.R7$(1),e.Y8G("ngIf",r.object.score))},dependencies:[g.bT,o.Jm,o.QW,o.b_,o.W9,o.eU,o.iq,o.BC,o.ai],styles:["ion-content[_ngcontent-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center;text-align:center}ion-card[_ngcontent-%COMP%]{height:150px;max-height:150px}.ion-no-margin[_ngcontent-%COMP%]{overflow:initial}.image_popup[_ngcontent-%COMP%]{height:150px;display:flex;flex-flow:column;margin:auto}.businessWhatsapp[_ngcontent-%COMP%]{color:green}.businessInsta[_ngcontent-%COMP%]{color:#d6249f}.businessFace[_ngcontent-%COMP%]{color:#3b5998}"]})}return n})()}}]);