File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/2341.22e34b746c5a24fc.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2341,1519,3900,6757,9138,8674],{67433:(j,O,r)=>{r.d(O,{E:()=>d});var t=r(2978),n=r(56610),E=r(77897);function k(_,a){1&_&&(t.j41(0,"ion-thumbnail",7),t.nrm(1,"ion-skeleton-text"),t.k0s())}function b(_,a){if(1&_&&(t.j41(0,"ion-item"),t.DNE(1,k,2,0,"ion-thumbnail",3),t.j41(2,"ion-label")(3,"h3"),t.nrm(4,"ion-skeleton-text",4),t.k0s(),t.j41(5,"p"),t.nrm(6,"ion-skeleton-text",5),t.k0s(),t.j41(7,"p"),t.nrm(8,"ion-skeleton-text",6),t.k0s()()()),2&_){const u=t.XpG(2);t.R7$(1),t.Y8G("ngIf",u.image)}}const e=function(){return[1,1,1,1,1,1,1]};function D(_,a){1&_&&(t.j41(0,"ion-list")(1,"ion-list-header"),t.nrm(2,"ion-skeleton-text",1),t.k0s(),t.DNE(3,b,9,1,"ion-item",2),t.k0s()),2&_&&(t.R7$(3),t.Y8G("ngForOf",t.lJ4(1,e)))}function T(_,a){1&_&&(t.j41(0,"ion-card"),t.nrm(1,"ion-skeleton-text",8),t.k0s())}const h=function(){return[1,1,1]};function I(_,a){1&_&&(t.j41(0,"div"),t.DNE(1,T,2,0,"ion-card",2),t.k0s()),2&_&&(t.R7$(1),t.Y8G("ngForOf",t.lJ4(1,h)))}function y(_,a){1&_&&(t.j41(0,"ion-col",11)(1,"ion-card"),t.nrm(2,"ion-skeleton-text",12),t.k0s()())}function l(_,a){1&_&&(t.j41(0,"ion-col",13)(1,"ion-card"),t.nrm(2,"ion-skeleton-text",12),t.k0s()())}function m(_,a){1&_&&(t.j41(0,"ion-col",13)(1,"ion-card"),t.nrm(2,"ion-skeleton-text",12),t.k0s()())}function v(_,a){if(1&_&&(t.j41(0,"ion-row"),t.DNE(1,y,3,0,"ion-col",9),t.DNE(2,l,3,0,"ion-col",10),t.DNE(3,m,3,0,"ion-col",10),t.k0s()),2&_){const u=t.XpG(2);t.R7$(1),t.Y8G("ngIf",u.size<=u.maximumCategoryCards),t.R7$(1),t.Y8G("ngIf",u.size>u.maximumCategoryCards),t.R7$(1),t.Y8G("ngIf",u.size>u.maximumCategoryCards)}}function P(_,a){1&_&&(t.j41(0,"div")(1,"ion-card"),t.nrm(2,"ion-skeleton-text",8),t.k0s(),t.j41(3,"ion-grid"),t.DNE(4,v,4,3,"ion-row",2),t.k0s()()),2&_&&(t.R7$(4),t.Y8G("ngForOf",t.lJ4(1,h)))}let d=(()=>{class _{constructor(){this.image=!0,this.iscard=!1,this.islist=!1,this.iscardhome=!1,this.maximumCategoryCards=4}ngOnInit(){}static#e=this.\u0275fac=function(g){return new(g||_)};static#t=this.\u0275cmp=t.VBU({type:_,selectors:[["app-skeleton-progress"]],inputs:{image:"image",iscard:"iscard",islist:"islist",iscardhome:"iscardhome",size:"size"},decls:3,vars:3,consts:[[4,"ngIf"],["animated","",2,"width","80px"],[4,"ngFor","ngForOf"],["slot","start",4,"ngIf"],["animated","",2,"width","80%"],["animated","",2,"width","60%"],["animated","",2,"width","30%"],["slot","start"],["animated","",1,"ion-no-margin","card_skeleton"],["size","12",4,"ngIf"],["size","6",4,"ngIf"],["size","12"],["animated","",1,"ion-no-margin","card_skeleton_small"],["size","6"]],template:function(g,M){1&g&&(t.DNE(0,D,4,2,"ion-list",0),t.DNE(1,I,2,2,"div",0),t.DNE(2,P,5,2,"div",0)),2&g&&(t.Y8G("ngIf",M.islist),t.R7$(1),t.Y8G("ngIf",M.iscard),t.R7$(1),t.Y8G("ngIf",M.iscardhome))},dependencies:[n.Sq,n.bT,E.b_,E.hU,E.lO,E.uz,E.he,E.nf,E.AF,E.ln,E.ds,E.Zx],styles:[".card_skeleton[_ngcontent-%COMP%]{height:214px}.card_skeleton_small[_ngcontent-%COMP%]{height:125px}"]})}return _})()},92341:(j,O,r)=>{r.r(O),r.d(O,{ListMasterPageModule:()=>Me});var t=r(56610),n=r(77897),E=r(22882),k=r(36075),b=r(73308),e=r(2978),D=r(29885),T=r(7125),h=r(57291),I=r(96168),y=r(54171);function l(o,f){1&o&&e.nrm(0,"ion-icon",13)}function m(o,f){if(1&o){const i=e.RV6();e.j41(0,"ion-item",11),e.bIt("click",function(){const p=e.eBV(i).$implicit,x=e.XpG(2);return e.Njj(x.changeAddressUser(p.id,p.last_used))}),e.j41(1,"ion-label")(2,"h2"),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s()(),e.DNE(6,l,1,0,"ion-icon",12),e.k0s()}if(2&o){const i=f.$implicit;e.R7$(3),e.JRh(i.tag),e.R7$(2),e.JRh(i.direction),e.R7$(1),e.Y8G("ngIf",i.last_used)}}function v(o,f){if(1&o&&(e.j41(0,"ion-list",8)(1,"ion-list-header",9),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,m,7,3,"ion-item",10),e.k0s()),2&o){const i=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,2,"TITLE_ADDRESS_LIST")," "),e.R7$(2),e.Y8G("ngForOf",i.infoUser.addresses)}}function P(o,f){1&o&&e.nrm(0,"ion-icon",13)}function d(o,f){if(1&o){const i=e.RV6();e.j41(0,"ion-item",11),e.bIt("click",function(){const p=e.eBV(i).$implicit,x=e.XpG(2);return e.Njj(x.changeSucursal(p))}),e.j41(1,"ion-label")(2,"p"),e.EFF(3),e.k0s()(),e.DNE(4,P,1,0,"ion-icon",12),e.k0s()}if(2&o){const i=f.$implicit,s=e.XpG(2);e.R7$(3),e.JRh(i.name),e.R7$(1),e.Y8G("ngIf",s.sucursalSelected.id==i.id)}}function _(o,f){if(1&o&&(e.j41(0,"ion-list")(1,"ion-list-header",9),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,d,5,2,"ion-item",10),e.k0s()),2&o){const i=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,2,"TITLE_CHANGE_SUCURSAL")," "),e.R7$(2),e.Y8G("ngForOf",i.listSucursals)}}function a(o,f){1&o&&e.nrm(0,"ion-icon",13)}function u(o,f){if(1&o){const i=e.RV6();e.j41(0,"ion-item",11),e.bIt("click",function(){const p=e.eBV(i).$implicit,x=e.XpG(2);return e.Njj(x.changeCity(p))}),e.j41(1,"ion-label")(2,"p"),e.EFF(3),e.k0s()(),e.DNE(4,a,1,0,"ion-icon",12),e.k0s()}if(2&o){const i=f.$implicit,s=e.XpG(2);e.R7$(3),e.JRh(i.name),e.R7$(1),e.Y8G("ngIf",s.cityConnection.id==i.id)}}function g(o,f){if(1&o&&(e.j41(0,"ion-list")(1,"ion-list-header",9),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,u,5,2,"ion-item",10),e.k0s()),2&o){const i=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,2,"TITLE_CHANGE_LOCATION")," "),e.R7$(2),e.Y8G("ngForOf",i.listCities)}}let M=(()=>{class o{constructor(i,s,c,p,x,B,X,V,Y){this.userProvider=i,this.cityProvider=s,this.storage=c,this.modalCtrl=p,this.alertCtrl=x,this.translateService=B,this.sucursalProvider=X,this.utilsService=V,this.router=Y,this.translateService.get(["TITLE_CONFIRM_CHANGE_LOCATION","TEXT_CONFIRM_CHANGE_LOCATION"]).subscribe(F=>{this.messageText={titleConfirmChangeLocation:F.TITLE_CONFIRM_CHANGE_LOCATION,textConfirmChangeLocation:F.TEXT_CONFIRM_CHANGE_LOCATION}})}ngOnInit(){}ionViewWillEnter(){this.storage.get("infoUser").then(i=>{i&&(this.infoUser=i)}),this.storage.get("listCities").then(i=>{i&&(this.listCities=i)}),this.storage.get("infoHost").then(i=>{this.cityConnection=i}),this.storage.get("listSucursals").then(i=>{i&&(this.listSucursals=i)}),this.storage.get("sucursalSelected").then(i=>{i&&(this.sucursalSelected=i)})}addNewAddress(){this.cancel(!1),setTimeout(()=>{this.router.navigate(["/address/addressListCreate/true"])},500)}cancel(i,s=""){this.modalCtrl.dismiss({status:i,origin:s})}changeAddressUser(i,s){s||this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{this.userProvider.updateLastUsedAddress(i),setTimeout(()=>{this.storage.get("infoUser").then(c=>{c&&(this.infoUser=c,this.utilsService.dismissLoading())})},500)})}changeCity(i){var s=this;return(0,b.A)(function*(){s.cityConnection.id!=i.id&&(yield(yield s.alertCtrl.create({header:s.messageText.titleConfirmChangeLocation,message:s.messageText.textConfirmChangeLocation,buttons:[{text:"No",handler:()=>{console.log("Disagree clicked")}},{text:"Si",handler:()=>{s.utilsService.presentLoading(s.translateService.instant("all.loading")).then(()=>{s.storage.set("infoHost",i),setTimeout(()=>{s.utilsService.dismissLoading(),s.cityProvider.getInfoHost(),s.cancel(!0)},500)})}}]})).present())})()}changeSucursal(i){var s=this;this.sucursalSelected.id!=i.id&&this.storage.get("token").then(c=>{c&&this.utilsService.presentLoading(this.translateService.instant("all.loading")).then((0,b.A)(function*(){(yield s.sucursalProvider.updateSucursalUser(i.id,c.access_token)).subscribe(p=>{s.utilsService.dismissLoading(),"success"==p.status&&(s.storage.set("sucursalSelected",i),s.sucursalSelected=i,s.cancel(!1,"changeSucursal"))},p=>{console.log("changeSucursal: ",p),s.utilsService.dismissLoading()})}))})}static#e=this.\u0275fac=function(s){return new(s||o)(e.rXU(D.D),e.rXU(T.h),e.rXU(h.n),e.rXU(n.W3),e.rXU(n.hG),e.rXU(E.c$),e.rXU(I.g),e.rXU(y.T),e.rXU(k.Ix))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["page-change-direction"]],decls:16,vars:12,consts:[[1,"ion-no-border"],[1,"ion-text-center"],["slot","end"],["strong","","color","light",3,"click"],[1,"ion-padding"],["color","secondary","expand","block","fill","solid",3,"click"],["margin-top","",4,"ngIf"],[4,"ngIf"],["margin-top",""],["no-margin",""],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["name","checkmark-circle-outline","slot","end",4,"ngIf"],["name","checkmark-circle-outline","slot","end"]],template:function(s,c){1&s&&(e.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title",1),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"ion-buttons",2)(6,"ion-button",3),e.bIt("click",function(){return c.cancel(!1)}),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()(),e.j41(9,"ion-content",4)(10,"ion-button",5),e.bIt("click",function(){return c.addNewAddress()}),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.DNE(13,v,5,4,"ion-list",6),e.DNE(14,_,5,4,"ion-list",7),e.DNE(15,g,5,4,"ion-list",7),e.k0s()),2&s&&(e.R7$(3),e.JRh(e.bMT(4,6,"CHANGE_DIRECTION_TITLE")),e.R7$(4),e.JRh(e.bMT(8,8,"all.close")),e.R7$(4),e.JRh(e.bMT(12,10,"BUTTON_NEW_ADDRESS")),e.R7$(2),e.Y8G("ngIf",c.infoUser),e.R7$(1),e.Y8G("ngIf",c.listSucursals&&c.sucursalSelected),e.R7$(1),e.Y8G("ngIf",c.listCities&&c.cityConnection))},dependencies:[t.Sq,t.bT,n.Jm,n.QW,n.W9,n.eU,n.iq,n.uz,n.he,n.nf,n.AF,n.BC,n.ai,E.D9]})}return o})();var A=r(26173),N=r(46868),oe=r(18674),ne=r(88885),re=r(1519),ae=r(83254),le=r(67433);let ce=(()=>{class o{constructor(i){this.utilsService=i}transform(i){if(i&&i.length)for(let s=0;s<i.length;s++){let c=i[s];c.is_salable=!(!this.utilsService.validateDate(c.start_date,"start")||!this.utilsService.validateDate(c.end_date,"end"))}return i}static#e=this.\u0275fac=function(s){return new(s||o)(e.rXU(y.T,16))};static#t=this.\u0275pipe=e.EJ8({name:"validateSimbolicTickets",type:o,pure:!0})}return o})();function _e(o,f){if(1&o&&(e.j41(0,"ion-badge",11),e.EFF(1),e.k0s()),2&o){const i=e.XpG();e.R7$(1),e.SpI("",i.cartProvider.productsCart.length," ")}}function de(o,f){if(1&o&&e.nrm(0,"app-skeleton-progress",12),2&o){const i=e.XpG();e.Y8G("iscardhome",!0)("size",i.homeProvider._listCategories.length)}}function pe(o,f){if(1&o){const i=e.RV6();e.j41(0,"ion-slide",18)(1,"ion-card",4),e.bIt("click",function(){const p=e.eBV(i).$implicit,x=e.XpG(3);return e.Njj(x.actionClickBanner(p))}),e.nrm(2,"img",19),e.j41(3,"ion-item",20)(4,"ion-label",21),e.EFF(5),e.k0s(),e.j41(6,"ion-button",22),e.EFF(7,"Ver m\xe1s"),e.k0s()()()()}if(2&o){const i=f.$implicit,s=e.XpG(3);e.R7$(2),e.FCK("src","",s.cityProvider._urlGallery,"banners/",i.image,"",e.B4B),e.R7$(3),e.JRh(i.description)}}function ge(o,f){if(1&o&&(e.j41(0,"ion-slides",15,16),e.DNE(2,pe,8,3,"ion-slide",17),e.k0s()),2&o){const i=e.XpG(2);e.Y8G("options",i.slideOpts),e.R7$(2),e.Y8G("ngForOf",i.banners)}}const me=function(o){return{image_tickets_disabled:o}};function he(o,f){if(1&o){const i=e.RV6();e.j41(0,"ion-slide")(1,"ion-card",26),e.bIt("click",function(){const p=e.eBV(i).$implicit,x=e.XpG(3);return e.Njj(x.openDetailBallot(p))}),e.nrm(2,"img",27),e.k0s()()}if(2&o){const i=f.$implicit,s=e.XpG(3);e.R7$(2),e.FCK("src","",s.cityProvider._urlGallery,"symbolic_tickets/",i.path_image,"",e.B4B),e.Y8G("ngClass",e.eq3(3,me,!i.is_salable))}}function ue(o,f){if(1&o&&(e.j41(0,"div")(1,"ion-slides",23,24),e.DNE(3,he,3,5,"ion-slide",25),e.nI1(4,"validateSimbolicTickets"),e.k0s()()),2&o){const i=e.XpG(2);e.R7$(1),e.Y8G("options",i.slideOptsTickets),e.R7$(2),e.Y8G("ngForOf",e.bMT(4,2,i.homeProvider._listSymbolicBallots))}}function fe(o,f){if(1&o){const i=e.RV6();e.j41(0,"ion-row",30)(1,"ion-card",31),e.bIt("click",function(){const p=e.eBV(i).index,x=e.XpG(3);return e.Njj(x.openItemCategory(x.homeProvider._listCategories[p]))}),e.nrm(2,"img",32),e.j41(3,"ion-card-header",33)(4,"ion-card-subtitle"),e.EFF(5),e.k0s()()()()}if(2&o){const i=f.index,s=e.XpG(3);e.R7$(2),e.FCK("src","",s.cityProvider._urlGallery,"categories/",s.homeProvider._listCategories[i].image,"",e.B4B),e.R7$(3),e.SpI("",s.homeProvider._listCategories[i].name," \u279c ")}}function ve(o,f){if(1&o&&(e.j41(0,"ion-grid",28),e.DNE(1,fe,6,3,"ion-row",29),e.k0s()),2&o){const i=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",i.homeProvider._listCategories)}}function Pe(o,f){if(1&o){const i=e.RV6();e.j41(0,"ion-col",36),e.bIt("click",function(){e.eBV(i);const c=e.XpG(2).index,p=e.XpG(3);return e.Njj(p.openItemCategory(p.homeProvider._listCategories[c+1]))}),e.j41(1,"ion-card",37),e.nrm(2,"img",38),e.j41(3,"ion-card-header",33)(4,"ion-card-subtitle"),e.EFF(5),e.k0s()()()()}if(2&o){const i=e.XpG(2).index,s=e.XpG(3);e.R7$(2),e.FCK("src","",s.cityProvider._urlGallery,"categories/",s.homeProvider._listCategories[i+1].image,"",e.B4B),e.R7$(3),e.JRh(s.homeProvider._listCategories[i+1].name)}}function Ce(o,f){if(1&o){const i=e.RV6();e.j41(0,"span",35)(1,"ion-col",36),e.bIt("click",function(){e.eBV(i);const c=e.XpG().index,p=e.XpG(3);return e.Njj(p.openItemCategory(p.homeProvider._listCategories[c]))}),e.j41(2,"ion-card",37),e.nrm(3,"img",38),e.j41(4,"ion-card-header",33)(5,"ion-card-subtitle"),e.EFF(6),e.k0s()()()(),e.DNE(7,Pe,6,3,"ion-col",39),e.k0s()}if(2&o){const i=e.XpG().index,s=e.XpG(3);e.R7$(3),e.FCK("src","",s.cityProvider._urlGallery,"categories/",s.homeProvider._listCategories[i].image,"",e.B4B),e.R7$(3),e.JRh(s.homeProvider._listCategories[i].name),e.R7$(1),e.Y8G("ngIf",s.homeProvider._listCategories[i+1])}}function Te(o,f){if(1&o&&(e.j41(0,"ion-row",30),e.DNE(1,Ce,8,4,"span",34),e.k0s()),2&o){const i=f.index;e.R7$(1),e.Y8G("ngIf",i%2==0)}}function Ee(o,f){if(1&o&&(e.j41(0,"ion-grid",28),e.DNE(1,Te,2,1,"ion-row",29),e.k0s()),2&o){const i=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",i.homeProvider._listCategories)}}function Ie(o,f){if(1&o&&(e.j41(0,"div"),e.DNE(1,ge,3,2,"ion-slides",13),e.DNE(2,ue,5,4,"div",10),e.DNE(3,ve,2,1,"ion-grid",14),e.DNE(4,Ee,2,1,"ion-grid",14),e.k0s()),2&o){const i=e.XpG();e.R7$(1),e.Y8G("ngIf",i.banners&&i.banners.length),e.R7$(1),e.Y8G("ngIf",i.homeProvider._listSymbolicBallots&&i.homeProvider._listSymbolicBallots.length),e.R7$(1),e.Y8G("ngIf",i.homeProvider._listCategories&&i.homeProvider._listCategories.length<=i.maximumCategoryCards),e.R7$(1),e.Y8G("ngIf",i.homeProvider._listCategories&&i.homeProvider._listCategories.length>i.maximumCategoryCards)}}const ye=[{path:"",component:(()=>{class o{constructor(i,s,c,p,x,B,X,V,Y,F,Oe,De,Q,Re,Se,Le,Ae,Ge){this.navCtrl=i,this.modalCtrl=s,this.alertCtrl=c,this.storage=p,this.homeProvider=x,this.userProvider=B,this.cartProvider=X,this.orderProvider=V,this.cityProvider=Y,this.utilsService=F,this.translateService=Oe,this.routerOutlet=De,this.router=Q,this.route=Re,this.alertController=Se,this.parameterService=Le,this.commsService=Ae,this.analyticsService=Ge,this.loading_skeleton=!0,this.banners=[],this.maximumCategoryCards=4,this.slideOpts={initialSlide:0,speed:400,autoplay:{delay:5e3}},this.slideOptsTickets={initialSlide:0,speed:600,autoplay:{delay:6e3},slidesPerView:1,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},on:{beforeInit(){const C=this;C.classNames.push(`${C.params.containerModifierClass}coverflow`),C.classNames.push(`${C.params.containerModifierClass}3d`),C.params.watchSlidesProgress=!0,C.originalParams.watchSlidesProgress=!0},setTranslate(){const C=this,{width:Z,height:Ue,slides:q,$wrapperEl:je,slidesSizesGrid:$e}=C,G=C.params.coverflowEffect,R=C.isHorizontal(),ee=C.translate,te=R?Z/2-ee:Ue/2-ee,ie=R?G.rotate:-G.rotate,we=G.depth;for(let U=0,Fe=q.length;U<Fe;U+=1){const L=q.eq(U),se=$e[U],S=(te-L[0].swiperSlideOffset-se/2)/se*G.modifier;let W=R?ie*S:0,K=R?0:ie*S,z=-we*Math.abs(S),H=R?0:G.stretch*S,J=R?G.stretch*S:0;if(Math.abs(J)<.001&&(J=0),Math.abs(H)<.001&&(H=0),Math.abs(z)<.001&&(z=0),Math.abs(W)<.001&&(W=0),Math.abs(K)<.001&&(K=0),L.transform(`translate3d(${J}px,${H}px,${z}px) rotateX(${K}deg) rotateY(${W}deg)`),L[0].style.zIndex=1-Math.abs(Math.round(S)),G.slideShadows){let $=L.find(R?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),w=L.find(R?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===$.length&&($=C.$(`<div class="swiper-slide-shadow-${R?"left":"top"}"></div>`),L.append($)),0===w.length&&(w=C.$(`<div class="swiper-slide-shadow-${R?"right":"bottom"}"></div>`),L.append(w)),$.length&&($[0].style.opacity=S>0?S:0),w.length&&(w[0].style.opacity=-S>0?-S:0)}}(C.support.pointerEvents||C.support.prefixedPointerEvents)&&(je[0].style.perspectiveOrigin=`${te}px 50%`)},setTransition(C){this.slides.transition(C).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(C)}}},this.translateService.get(["TEXT_TOAST_END_VERSION_HOME","TITLE_VALIDATE_INVITED","TEXT_VALIDATE_INVITED","TITLE_COMPLETE_PROFILE","TEXT_COMPLETE_PROFILE"]).subscribe(C=>{this.messageText={TextToastEndVersionHome:C.TEXT_TOAST_END_VERSION_HOME,titleValidateInvited:C.TITLE_VALIDATE_INVITED,textValidateInvited:C.TEXT_VALIDATE_INVITED,titleCompleteProfle:C.TITLE_COMPLETE_PROFILE,textCompleteProfle:C.TEXT_COMPLETE_PROFILE}}),Q.events.subscribe(C=>{"popstate"===C.navigationTrigger&&C.url.includes("shop")&&setTimeout(()=>{this.getInfoAddressLastUsed()},500)})}ngOnInit(){this.cartProvider.storeType=this.route.snapshot.paramMap.get("storeType")??"main",this.validateStoreDataAcademy(),this.loading_skeleton=!0,this.storage.get("infoUser").then(i=>{this.isSubscriber=1==i.is_subscriber}),this.storage.get("parameters").then(i=>{this.parameters=i,this.presuscriptionMsj=i.presuscription_msj}),this.loadInit(100)}loadInit(i=0){return i&&this.cartProvider.deleteAllProductsCart(),new Promise((s,c)=>{Promise.all([this.userProvider.getInfoUser().then(p=>{2!=p.id&&this.commsService.getPopups("app-store")}),this.orderProvider.getPendingOrders(),this.commsService.getBanners("app-store").then(p=>{this.banners=p}),this.homeProvider.infoCategories(this.cartProvider.storeType),this.homeProvider.getSymbolicBallot(),this.cartProvider.getProductsCart(),this.cartProvider.getPriceDomicile(),this.cartProvider.getPaymentTypesDomicile()]).then(()=>{setTimeout(()=>{this.loading_skeleton=!1},1e3),s(!1)},c)})}ionViewWillEnter(){let i=this.route.snapshot.paramMap.get("storeType")??"main";i!=this.cartProvider.storeType&&(this.cartProvider.storeType=i,this.loadInit(100)),setTimeout(()=>{this.getInfoAddressLastUsed(),this.storage.get("infoEndVersion").then(s=>{s&&s.end_version_home&&null!=s.end_version_home&&this.utilsService.presentToast(4e3,"warning","top",this.messageText.TextToastEndVersionHome)})},500),this.cityProvider._urlGallery||this.cityProvider.getInfoHost()}goToSearch(){this.router.navigate("main"==this.cartProvider.storeType?["/app/tabs/shop/search"]:["/shop/"+this.cartProvider.storeType+"/search"])}goToCart(){this.analyticsService.logEvent("Cart Click",this.utilsService.categoryShop),this.router.navigate(["/app/tabs/shop/cart"])}openItemCategory(i){this.analyticsService.logEvent("Category Click",this.utilsService.categoryShop),this.homeProvider._currentCategory=i,this.router.navigate(["/shop/"+this.cartProvider.storeType+"/item-detail"])}actionClickBanner(i){switch(this.analyticsService.logEvent("Banner Click",this.utilsService.categoryShop),i.type_action_id){case 1:this.infocategory=this.homeProvider._listCategories.find(c=>c.id===parseInt(i.value)),this.openItemCategory(this.infocategory);break;case 2:this.utilsService.openLink(i.value);break;case 3:this.router.navigate("main"==this.cartProvider.storeType?[i.value]:["/shop/"+this.cartProvider.storeType])}}doRefresh(i,s){this.loadInit().then(()=>{s?(this.cartProvider.deleteAllProductsCart(),setTimeout(()=>{this.getInfoAddressLastUsed()},500)):i.target.complete()})}doRefreshSucursal(){this.homeProvider.infoCategories(),this.cartProvider.deleteAllProductsCart(),this.getInfoAddressLastUsed()}getInfoAddressLastUsed(){this.userProvider.getInfoUser().then(i=>{this.addressUser=i.addresses,this.addressLastUsed=this.addressUser.find(s=>1===s.last_used)})}changeAddress(){var i=this;return(0,b.A)(function*(){const s=yield i.modalCtrl.create({component:M,swipeToClose:!0,presentingElement:i.routerOutlet.nativeEl,componentProps:{}});yield s.present();const{data:c}=yield s.onWillDismiss();c&&c.status?i.utilsService.presentLoading(i.translateService.instant("all.loading")).then(()=>{null==i.userProvider._infoUser.user_info.social_provider?i.userProvider.changeCityUser(i.userProvider._infoUser.email,i.userProvider._infoUser.password).then(p=>{i.utilsService.dismissLoading(),p.user.user_info.is_initial?i.navigateAddress():i.doRefresh(!1,!0)}).catch(p=>{i.utilsService.dismissLoading(),console.log("error changeAddress: ",p)}):"facebook"==i.userProvider._infoUser.user_info.social_provider&&i.storage.get("authResponseFacebook").then(p=>{p&&i.userProvider.changeCityUserFacebook(p).then(x=>{i.utilsService.dismissLoading(),x.userInfo.user_info.is_initial?i.navigateAddress():i.doRefresh(!1,!0)}).catch(x=>{console.log("error changeAddress Facebook: ",x)})})}):c&&!c.status&&"changeSucursal"==c.origin?i.doRefreshSucursal():i.getInfoAddressLastUsed()})()}navigateAddress(){this.router.navigate(["/address/addressListCreate/false"]).then(()=>{this.doRefresh(!1,!0)})}alertUserInvited(){var i=this;return(0,b.A)(function*(){yield(yield i.alertCtrl.create({header:i.messageText.titleValidateInvited,message:i.messageText.textValidateInvited,buttons:[{text:"Cancelar",handler:()=>{}},{text:"Registrarme",handler:()=>{i.storage.remove("token"),i.storage.remove("infoUser"),i.navCtrl.navigateRoot("/city-connection")}}]})).present()})()}openDetailBallot(i){i.is_salable?i.is_subscriber&&!this.isSubscriber?this.utilsService.presentAlertInfo(this.translateService.instant("tickets.alert"),"",this.presuscriptionMsj):this.alertUserInvitedOrder(i):this.simbolicTicketNotAvailable()}simbolicTicketNotAvailable(){var i=this;return(0,b.A)(function*(){yield(yield i.alertController.create({header:i.translateService.instant("TICKET_NOT_AVAILABLE_HEADER"),message:i.translateService.instant("TICKET_NOT_AVAILABLE_MESSAGE"),buttons:[{text:i.translateService.instant("BUTTON_OK"),handler:()=>{}}]})).present()})()}alertUserInvitedOrder(i){var s=this;return(0,b.A)(function*(){2==s.userProvider._infoUser.id?yield(yield s.alertCtrl.create({header:s.messageText.titleValidateInvited,message:s.messageText.textValidateInvited,backdropDismiss:!1,buttons:[{text:"Cancelar",handler:()=>{s.router.navigate("main"==s.cartProvider.storeType?["/app/tabs/shop"]:["/shop/"+s.cartProvider.storeType])}},{text:"Registrarme",handler:()=>{s.storage.remove("token"),s.storage.remove("infoUser"),s.navCtrl.navigateRoot("/welcome")}}]})).present():s.router.navigate(["/symbolic-ballot/"+i.id])})()}alertUserMustFillData(){var i=this;return(0,b.A)(function*(){yield(yield i.alertCtrl.create({header:i.messageText.titleCompleteProfle,message:i.messageText.textCompleteProfle,buttons:[{text:"Ok",handler:()=>{}}]})).present()})()}validateStoreDataAcademy(){"academy"!=this.cartProvider.storeType&&(this.cartProvider.currentAcademyUserId=null)}static#e=this.\u0275fac=function(s){return new(s||o)(e.rXU(n.q9),e.rXU(n.W3),e.rXU(n.hG),e.rXU(h.n),e.rXU(A.X),e.rXU(D.D),e.rXU(N.m),e.rXU(oe.Q),e.rXU(T.h),e.rXU(y.T),e.rXU(E.c$),e.rXU(n.Rg),e.rXU(k.Ix),e.rXU(k.nX),e.rXU(n.hG),e.rXU(ne.f),e.rXU(re.p),e.rXU(ae.c))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["page-list-master"]],decls:15,vars:6,consts:[[1,"ion-no-border"],["defaultHref","/app/tabs/home","slot","start"],[1,"ion-text-center"],["slot","end"],[3,"click"],["slot","icon-only","name","cart-outline"],["color","secondary","class","badge-cart",4,"ngIf"],["slot","fixed",3,"ionRefresh"],["pullingIcon","arrow-down-outline","refreshingSpinner","ios"],[3,"iscardhome","size",4,"ngIf"],[4,"ngIf"],["color","secondary",1,"badge-cart"],[3,"iscardhome","size"],["style","max-width: 640px;",3,"options",4,"ngIf"],["style","max-width: 640px;",4,"ngIf"],[2,"max-width","640px",3,"options"],["Slides",""],["style","display: block;",4,"ngFor","ngForOf"],[2,"display","block"],[3,"src"],["lines","none"],["color","medium","slot","start"],["fill","outline","slot","end","color","secondary"],[3,"options"],["SlidesTickets",""],[4,"ngFor","ngForOf"],[1,"card_ballot",3,"click"],["alt","ballot",1,"image_symbolic",3,"ngClass","src"],[2,"max-width","640px"],["class","g-2 mb-2",4,"ngFor","ngForOf"],[1,"g-2","mb-2"],[1,"ion-no-margin",3,"click"],[1,"imageListCategoriesBasic",3,"src"],[1,"ion-no-padding","ion-text-center","p-2"],["class","displayContents",4,"ngIf"],[1,"displayContents"],["no-margin","","no-padding","",3,"click"],[1,"ion-no-margin"],[1,"imageListCategories",3,"src"],["no-margin","","no-padding","",3,"click",4,"ngIf"]],template:function(s,c){1&s&&(e.j41(0,"ion-header",0)(1,"ion-toolbar"),e.nrm(2,"ion-back-button",1),e.j41(3,"ion-title",2),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"ion-buttons",3)(7,"div",4),e.bIt("click",function(){return c.goToCart()}),e.nrm(8,"ion-icon",5),e.DNE(9,_e,2,1,"ion-badge",6),e.k0s()()()(),e.j41(10,"ion-content")(11,"ion-refresher",7),e.bIt("ionRefresh",function(x){return c.doRefresh(x,!1)}),e.nrm(12,"ion-refresher-content",8),e.k0s(),e.DNE(13,de,1,2,"app-skeleton-progress",9),e.DNE(14,Ie,5,4,"div",10),e.k0s()),2&s&&(e.R7$(4),e.JRh(e.bMT(5,4,"main"==c.cartProvider.storeType?"TITLE_HOME_STORE_BUTTON":"ACADEMY_ACTIONS_BUTTONS.STORE")),e.R7$(5),e.Y8G("ngIf",c.cartProvider.productsCart&&c.cartProvider.productsCart.length),e.R7$(4),e.Y8G("ngIf",c.loading_skeleton),e.R7$(1),e.Y8G("ngIf",!c.loading_skeleton))},dependencies:[t.YU,t.Sq,t.bT,n.el,n.In,n.Jm,n.QW,n.b_,n.ME,n.HW,n.hU,n.W9,n.lO,n.eU,n.iq,n.uz,n.he,n.To,n.Ki,n.ln,n.q3,n.tR,n.BC,n.ai,n.tY,le.E,E.D9,ce],styles:[".swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%!important;min-width:100%!important;height:150px!important;max-height:150px!important;object-fit:cover}.imageListCategoriesBasic[_ngcontent-%COMP%]{height:188px;width:-webkit-fill-available}.imageListCategories[_ngcontent-%COMP%]{height:90px!important;width:100%;object-fit:cover}.customCardMargin[_ngcontent-%COMP%]{margin:0 10px 10px 0!important}.displayContents[_ngcontent-%COMP%]{display:contents}.badge-cart[_ngcontent-%COMP%]{position:absolute;right:0;top:0}ion-card[_ngcontent-%COMP%]{background-color:#fff;width:-webkit-fill-available;margin-bottom:5px;box-shadow:0 1px 6px gray;max-height:220px}.card_ballot[_ngcontent-%COMP%]{height:214px}.image_symbolic[_ngcontent-%COMP%]{width:100%;height:214px!important}ion-card[_ngcontent-%COMP%] .image_symbolic[_ngcontent-%COMP%]{height:214px!important;max-height:214px!important}.image_tickets_disabled[_ngcontent-%COMP%]{background-image:url(http://www.gelfuzion.com/img/slides/nivo/bg-1.jpg);height:500px;max-width:100%;filter:grayscale(100%)}ion-toolbar[_ngcontent-%COMP%]{padding-right:8px}.btn-players[_ngcontent-%COMP%]{margin-left:20px!important}.px-0[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.mb-2[_ngcontent-%COMP%]{margin-bottom:4px}.g-2[_ngcontent-%COMP%]{gap:4px}"]})}return o})()}];let xe=(()=>{class o{static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=e.$C({type:o});static#i=this.\u0275inj=e.G2t({imports:[k.iI.forChild(ye),k.iI]})}return o})();var ke=r(41683),be=r(55553);let Me=(()=>{class o{static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=e.$C({type:o});static#i=this.\u0275inj=e.G2t({imports:[t.MD,n.bv,E.h.forChild(),xe,ke.Y,be.h]})}return o})()},68053:(j,O,r)=>{r.d(O,{T:()=>T});var t=r(2978),n=r(77897),E=r(7125),k=r(56610),b=r(22882);function e(h,I){if(1&h&&t.nrm(0,"img",5),2&h){const y=t.XpG();t.FCK("src","",y.image,"?_dc=",y.time,"",t.B4B)}}function D(h,I){if(1&h&&t.nrm(0,"img",6),2&h){const y=t.XpG();t.yjJ("src","",y.cityProvider._urlGallery,"popups/",y.image,"?_dc=",y.time,"",t.B4B)}}let T=(()=>{class h{constructor(y,l){this.modalCtrl=y,this.cityProvider=l}ngOnInit(){this.time=(new Date).getTime()}cancel(){this.modalCtrl.dismiss()}static#e=this.\u0275fac=function(l){return new(l||h)(t.rXU(n.W3),t.rXU(E.h))};static#t=this.\u0275cmp=t.VBU({type:h,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(l,m){1&l&&(t.j41(0,"ion-content",0),t.DNE(1,e,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 m.cancel()}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()()),2&l&&(t.R7$(1),t.Y8G("ngIf",m.image.includes("http")),t.R7$(1),t.Y8G("ngIf",!m.image.includes("http")),t.R7$(5),t.JRh(t.bMT(8,3,"all.close")))},dependencies:[k.bT,n.Jm,n.W9,n.M0,n.uz,n.he,b.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 h})()},87445:(j,O,r)=>{r.d(O,{$:()=>P});var t=r(2978),n=r(77897),E=r(7125),k=r(26173),b=r(83254),e=r(56610),D=r(22882);function T(d,_){if(1&d&&(t.j41(0,"ion-title"),t.EFF(1),t.k0s()),2&d){const a=t.XpG();t.R7$(1),t.JRh(a.popup.title)}}function h(d,_){if(1&d){const a=t.RV6();t.j41(0,"img",12),t.bIt("click",function(){t.eBV(a);const g=t.XpG();return t.Njj(g.openAction(g.popup))}),t.k0s()}if(2&d){const a=t.XpG();t.FCK("src","",a.popup.image,"?_dc=",a.time,"",t.B4B)}}function I(d,_){if(1&d){const a=t.RV6();t.j41(0,"img",13),t.bIt("click",function(){t.eBV(a);const g=t.XpG();return t.Njj(g.openAction(g.popup))}),t.k0s()}if(2&d){const a=t.XpG();t.yjJ("src","",a.cityProvider._urlGallery,"popups/",a.popup.image,"?_dc=",a.time,"",t.B4B)}}function y(d,_){if(1&d&&(t.j41(0,"ion-text",14)(1,"h5",15),t.EFF(2),t.k0s()()),2&d){const a=t.XpG();t.R7$(2),t.JRh(a.popup.msj)}}function l(d,_){if(1&d){const a=t.RV6();t.j41(0,"ion-button",16),t.bIt("click",function(){t.eBV(a);const g=t.XpG();return t.Njj(g.openAction(g.popup))}),t.EFF(1),t.k0s()}if(2&d){const a=t.XpG();t.R7$(1),t.SpI(" ",a.popup.text_button_ok," ")}}function m(d,_){if(1&d){const a=t.RV6();t.j41(0,"ion-button",16),t.bIt("click",function(){t.eBV(a);const g=t.XpG();return t.Njj(g.openAction(g.popup))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&d&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"all.open")," "))}function v(d,_){if(1&d){const a=t.RV6();t.j41(0,"ion-button",17),t.bIt("click",function(){t.eBV(a);const g=t.XpG();return t.Njj(g.cancel())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&d&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"all.close")," "))}let P=(()=>{class d{constructor(a,u,g,M){this.modalCtrl=a,this.cityProvider=u,this.homeProvider=g,this.analyticsService=M}ngOnInit(){this.time=(new Date).getTime(),document.body.classList.add("modal-open")}cancel(a=!0){a&&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(a){!a||!a.type_action_id||(this.analyticsService.logEvent("Popup Click: "+a.title,"Popup","click",a),this.homeProvider.openAction(a.type_action_id,a.value,a.target),this.cancel(!1))}static#e=this.\u0275fac=function(u){return new(u||d)(t.rXU(n.W3),t.rXU(E.h),t.rXU(k.X),t.rXU(b.c))};static#t=this.\u0275cmp=t.VBU({type:d,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,g){1&u&&(t.j41(0,"ion-toolbar",0),t.DNE(1,T,2,1,"ion-title",1),t.j41(2,"ion-buttons",2)(3,"ion-button",3),t.bIt("click",function(){return g.cancel()}),t.nrm(4,"ion-icon",4),t.k0s()()(),t.j41(5,"ion-content",5)(6,"div",6),t.DNE(7,h,1,2,"img",7),t.DNE(8,I,1,3,"img",8),t.DNE(9,y,3,1,"ion-text",9),t.k0s()(),t.j41(10,"ion-footer")(11,"ion-item")(12,"ion-label",0),t.DNE(13,l,2,1,"ion-button",10),t.DNE(14,m,3,3,"ion-button",10),t.DNE(15,v,3,3,"ion-button",11),t.k0s()()()),2&u&&(t.R7$(1),t.Y8G("ngIf",!g.popup.hide_name),t.R7$(6),t.Y8G("ngIf",g.popup.image.includes("http")),t.R7$(1),t.Y8G("ngIf",!g.popup.image.includes("http")),t.R7$(1),t.Y8G("ngIf",g.popup.msj),t.R7$(4),t.Y8G("ngIf",g.popup.type_action_id&&g.popup.text_button_ok),t.R7$(1),t.Y8G("ngIf",g.popup.type_action_id&&!g.popup.text_button_ok),t.R7$(1),t.Y8G("ngIf",!g.popup.type_action_id))},dependencies:[e.bT,n.Jm,n.QW,n.W9,n.M0,n.iq,n.uz,n.he,n.IO,n.BC,n.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 d})()},1519:(j,O,r)=>{r.d(O,{p:()=>h});var t=r(73308),n=r(87445),E=r(68053),k=r(2978),b=r(3366),e=r(57291),D=r(54171),T=r(77897);let h=(()=>{class I{constructor(l,m,v,P){this.api=l,this.storage=m,this.utilsService=v,this.modalController=P}getBookcase(l){return this.api.get("comms/bookcase_embed",l)}presentModal(l){var m=this;return(0,t.A)(function*(){return yield(yield m.modalController.create({component:n.$,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!1,backdropDismiss:!1,componentProps:{popup:l}})).present()})()}presentInapp(l){var m=this;return(0,t.A)(function*(){var v=m;v.closePopup(v.popup),v.modalController.create({component:E.T,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!1,backdropDismiss:!1,componentProps:{image:l.image}}).then(P=>{P.present(),P.addEventListener("ionModalDidPresent",d=>{d.target&&d.target.addEventListener("focusout",_=>{_.sourceCapabilities&&v.popup&&v.closePopup(v.popup)})}),v.popup=P})})()}presentPopup(l,m){var v=this;return(0,t.A)(function*(){var P=v;P.closePopup(P.popup),P.modalController.create({component:l,cssClass:"modal-popup",showBackdrop:!1,swipeToClose:!0,backdropDismiss:!0,componentProps:{object:m}}).then(d=>{d.present(),d.addEventListener("ionModalDidPresent",_=>{_.target&&_.target.addEventListener("focusout",a=>{a.sourceCapabilities&&P.popup&&P.closePopup(P.popup)})}),P.popup=d})})()}closePopup(l){l&&l.dismiss()}getRadio(l){return this.api.get("comms/radio_embed",l)}getSocialNetworkAccounts(l){return this.api.get("comms/social_network_accounts",l)}getTiktok(l){return this.api.get("comms/video_tiktok",l)}getYoutube(l,m){return this.api.get("comms/video_youtube"+(m?"/"+m:""),l)}getYoutubeData(){var l=this;return(0,t.A)(function*(){return new Promise(function(){var m=(0,t.A)(function*(v,P){(yield l.api.get("comms/video_youtube",yield l.utilsService.getAccessToken())).subscribe(_=>{v(_)},_=>{P(_)})});return function(v,P){return m.apply(this,arguments)}}())})()}getInstagram(l,m){return this.api.get("comms/photo_instagram"+(m?"/"+m:""),l)}getTwitter(l){return this.api.get("comms/official_twitter",l)}getFacebook(l){return this.api.get("comms/official_facebook",l)}getBanners(l){var m=this;return(0,t.A)(function*(){return new Promise(function(){var v=(0,t.A)(function*(P,d){(yield m.api.get("comms/getBanners/"+l,yield m.utilsService.getAccessToken())).subscribe({next:a=>{P(a)},error:a=>{d(a)},complete:()=>{}})});return function(P,d){return v.apply(this,arguments)}}())})()}getPopups(l){var m=this;return(0,t.A)(function*(){m.storage.get("popups").then(v=>new Promise(function(){var P=(0,t.A)(function*(d,_){let a=v||[];(yield m.api.get("comms/getPopups/"+l,yield m.utilsService.getAccessToken())).subscribe({next:g=>{g.forEach(M=>{if(0===M.frequency)m.openPopup(M);else{let A=a.find(N=>N.id===M.id);if(A&&A.views===A.frequency)return;A?A.views+=1:(M.views=1,a.push(M)),m.openPopup(M)}}),m.storage.set("popups",a),d(g)},error:g=>{_(g)},complete:()=>{}})});return function(d,_){return P.apply(this,arguments)}}()))})()}openPopup(l){this.presentModal(l)}static#e=this.\u0275fac=function(m){return new(m||I)(k.KVO(b.G),k.KVO(e.n),k.KVO(D.T),k.KVO(T.W3))};static#t=this.\u0275prov=k.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},18674:(j,O,r)=>{r.d(O,{Q:()=>b});var t=r(73308),n=r(2978),E=r(3366),k=r(57291);let b=(()=>{class e{constructor(T,h){this.api=T,this.storage=h}getPendingOrders(){var T=this;this.storage.get("token").then(function(){var h=(0,t.A)(function*(I){I&&(yield T.api.get("orders/pendingOrders",I.access_token)).subscribe(l=>{"success"==l.status&&(T.storage.set("pendingOrders",l.orders),T._pendingOrders=l.orders)},l=>{console.error("Error provider cart getPriceDomicile",l)})});return function(I){return h.apply(this,arguments)}}())}pendingOrderDetail(T,h){return this.api.post("orders/pendingOrderDetail",{order_id:T},h)}getFinishedOrders(T,h,I){return this.api.post("orders/finishedOrders",{offset:T,take:h},I)}ratingOrder(T,h,I,y){return this.api.post("orders/rating",{rating:T,commentary:h,order_id:I},y)}cancelOrder(T,h){return this.api.get(`orders/cancelOrder/${T}`,h)}static#e=this.\u0275fac=function(h){return new(h||e)(n.KVO(E.G),n.KVO(k.n))};static#t=this.\u0275prov=n.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()}}]);