File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/1386.855d2e1d66a537c8.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1386],{37737:(b,p,s)=>{s.d(p,{a:()=>_});const _=(0,s(22126).F3)("AppLauncher",{web:()=>s.e(2347).then(s.bind(s,52347)).then(u=>new u.AppLauncherWeb)})},71386:(b,p,s)=>{s.r(p),s.d(p,{ModalBusinessPageModule:()=>j});var r=s(56610),_=s(37222),u=s(77897),n=s(36075),d=s(39795),i=s(2978);const m=[{path:"",component:d.l}];let f=(()=>{class l{static#n=this.\u0275fac=function(g){return new(g||l)};static#e=this.\u0275mod=i.$C({type:l});static#t=this.\u0275inj=i.G2t({imports:[n.iI.forChild(m),n.iI]})}return l})(),j=(()=>{class l{static#n=this.\u0275fac=function(g){return new(g||l)};static#e=this.\u0275mod=i.$C({type:l});static#t=this.\u0275inj=i.G2t({imports:[r.MD,_.YN,u.bv,f]})}return l})()},39795:(b,p,s)=>{s.d(p,{l:()=>v});var r=s(73308),_=s(23867),u=s(37737),n=s(2978),d=s(54171),i=s(77897),m=s(7125),f=s(56610);function j(t,c){1&t&&(n.j41(0,"ion-card"),n.nrm(1,"img",6),n.k0s())}function l(t,c){if(1&t&&n.nrm(0,"img",8),2&t){const e=n.XpG(2);n.FS9("src",e.object.image,n.B4B)}}function P(t,c){if(1&t&&n.nrm(0,"img",8),2&t){const e=n.XpG(2);n.FCK("src","",e.cityProvider._urlGallery,"business/",e.object.image,"",n.B4B)}}function M(t,c){if(1&t&&(n.j41(0,"ion-card"),n.DNE(1,l,1,1,"img",7),n.DNE(2,P,1,2,"img",7),n.k0s()),2&t){const e=n.XpG();n.R7$(1),n.Y8G("ngIf",e.object.image.includes("http")),n.R7$(1),n.Y8G("ngIf",!e.object.image.includes("http"))}}function g(t,c){if(1&t&&(n.j41(0,"h3",9)(1,"b"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG();n.R7$(2),n.SpI("Nombre: ",e.object.name,"")}}function I(t,c){if(1&t&&(n.j41(0,"p",9),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(1),n.SpI("Direcci\xf3n: ",e.object.address.direction,"")}}function h(t,c){if(1&t&&(n.j41(0,"p",9),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(1),n.SpI("Indicaciones adicionales: ",e.object.address.indications," ")}}function B(t,c){if(1&t&&(n.j41(0,"p",9),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(1),n.SpI("Barrio: ",e.object.address.district,"")}}function F(t,c){if(1&t&&(n.j41(0,"p",9),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(1),n.SpI("Descripci\xf3n del negocio: ",e.object.description,"")}}function R(t,c){if(1&t&&(n.j41(0,"p",9),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(1),n.SpI("A\xf1os de funcionamiento: ",e.object.age,"")}}function T(t,c){if(1&t){const e=n.RV6();n.j41(0,"p",9),n.EFF(1),n.j41(2,"ion-icon",10),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.sendMessage(o.object))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(1),n.SpI("Contacto: ",e.object.phone," ")}}function D(t,c){if(1&t){const e=n.RV6();n.j41(0,"p",9),n.EFF(1),n.j41(2,"ion-icon",11),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.goToInstagram(o.object.instagram))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(1),n.SpI("Instagram: ",e.object.instagram," ")}}function G(t,c){if(1&t&&(n.j41(0,"p",9),n.EFF(1),n.nrm(2,"ion-icon",12),n.k0s()),2&t){const e=n.XpG();n.R7$(1),n.SpI("Facebook: ",e.object.facebook," ")}}function O(t,c){if(1&t){const e=n.RV6();n.j41(0,"p",9)(1,"a",13),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.goToWebsite(o.object.website))}),n.EFF(2,"Sitio web "),n.k0s(),n.j41(3,"ion-icon",14),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.goToWebsite(o.object.website))}),n.k0s()()}}function $(t,c){if(1&t&&(n.j41(0,"p",9),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(1),n.SpI("Calificaci\xf3n: ",e.object.score,"")}}let v=(()=>{class t{constructor(e,a,o,E){this.utilsService=e,this.modalCtrl=a,this.cityProvider=o,this.platform=E}ngOnInit(){}cancel(){this.modalCtrl.dismiss()}sendMessage(e){e.code=e.address?.city?.state?.country?.code,this.utilsService.sendMessage(e)}goToInstagram(e){return(0,r.A)(function*(){e&&((yield u.a.openUrl({url:`instagram://user?username=${e}`})).completed||_.P.open({url:`https://www.instagram.com/${e}`}))})()}goToWebsite(e){return(0,r.A)(function*(){e&&((yield u.a.openUrl({url:e})).completed||_.P.open({url:e}))})()}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(d.T),n.rXU(i.W3),n.rXU(m.h),n.rXU(i.OD))};static#e=this.\u0275cmp=n.VBU({type:t,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(a,o){1&a&&(n.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),n.EFF(3,"Informaci\xf3n"),n.k0s(),n.j41(4,"ion-buttons",1)(5,"ion-button",2),n.bIt("click",function(){return o.cancel()}),n.nrm(6,"ion-icon",3),n.k0s()()()(),n.j41(7,"ion-content"),n.DNE(8,j,2,0,"ion-card",4),n.DNE(9,M,3,2,"ion-card",4),n.DNE(10,g,3,1,"h3",5),n.DNE(11,I,2,1,"p",5),n.DNE(12,h,2,1,"p",5),n.DNE(13,B,2,1,"p",5),n.DNE(14,F,2,1,"p",5),n.DNE(15,R,2,1,"p",5),n.DNE(16,T,3,1,"p",5),n.DNE(17,D,3,1,"p",5),n.DNE(18,G,3,1,"p",5),n.DNE(19,O,4,0,"p",5),n.DNE(20,$,2,1,"p",5),n.k0s()),2&a&&(n.R7$(8),n.Y8G("ngIf",!o.object.image),n.R7$(1),n.Y8G("ngIf",o.object.image),n.R7$(1),n.Y8G("ngIf",o.object.name),n.R7$(1),n.Y8G("ngIf",o.object.address.direction),n.R7$(1),n.Y8G("ngIf",o.object.address.indications),n.R7$(1),n.Y8G("ngIf",o.object.address.district),n.R7$(1),n.Y8G("ngIf",o.object.description),n.R7$(1),n.Y8G("ngIf",o.object.age),n.R7$(1),n.Y8G("ngIf",o.object.phone),n.R7$(1),n.Y8G("ngIf",o.object.instagram),n.R7$(1),n.Y8G("ngIf",o.object.facebook),n.R7$(1),n.Y8G("ngIf",o.object.website),n.R7$(1),n.Y8G("ngIf",o.object.score))},dependencies:[f.bT,i.Jm,i.QW,i.b_,i.W9,i.eU,i.iq,i.BC,i.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 t})()}}]);