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/4698.9db59918467da9a6.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4698],{4698:(D,C,c)=>{c.r(C),c.d(C,{CardsPageModule:()=>S});var _=c(56610),a=c(77897),f=c(22882),p=c(36075),u=c(73308),t=c(2978),h=c(57291),m=c(29885),v=c(54171);function P(r,l){1&r&&(t.j41(0,"div"),t.nrm(1,"img",6),t.j41(2,"ion-label",1)(3,"p",7),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"p"),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()),2&r&&(t.R7$(4),t.JRh(t.bMT(5,2,"TEXT1_ADD_CARD")),t.R7$(3),t.JRh(t.bMT(8,4,"TEXT2_ADD_CARD")))}function x(r,l){1&r&&t.nrm(0,"img",18)}function b(r,l){if(1&r){const e=t.RV6();t.j41(0,"p",19),t.bIt("click",function(){t.eBV(e);const i=t.XpG().$implicit,n=t.XpG(2);return t.Njj(n.verifyCard(i.id))}),t.EFF(1,"Verificar"),t.k0s()}}function y(r,l){1&r&&t.nrm(0,"ion-icon",20)}function T(r,l){if(1&r){const e=t.RV6();t.j41(0,"ion-list")(1,"ion-item-sliding",null,9)(3,"ion-item"),t.nrm(4,"img",10),t.DNE(5,x,1,0,"img",11),t.j41(6,"ion-label")(7,"h2",12),t.bIt("click",function(){const n=t.eBV(e).$implicit,o=t.XpG(2);return t.Njj(o.selectDefaultCard(n.id))}),t.EFF(8),t.k0s(),t.j41(9,"p",12),t.bIt("click",function(){const n=t.eBV(e).$implicit,o=t.XpG(2);return t.Njj(o.selectDefaultCard(n.id))}),t.EFF(10),t.k0s(),t.DNE(11,b,2,0,"p",13),t.DNE(12,y,1,0,"ion-icon",14),t.k0s()(),t.j41(13,"ion-item-options",15)(14,"button",16),t.bIt("click",function(){const n=t.eBV(e).$implicit,o=t.sdS(2),d=t.XpG(2);return t.Njj(d.deleteCreditCard(o,n.id))}),t.nrm(15,"ion-icon",17),t.k0s()()()()}if(2&r){const e=l.$implicit;t.R7$(4),t.Mz_("src","../../assets/img/creditCardLogo/",e.card_type,".png",t.B4B),t.R7$(1),t.Y8G("ngIf",e.verified),t.R7$(3),t.JRh(e.name_cc),t.R7$(2),t.JRh(e.obfuscated_number),t.R7$(1),t.Y8G("ngIf",!e.verified),t.R7$(1),t.Y8G("ngIf",e.current)}}function V(r,l){if(1&r&&(t.j41(0,"div"),t.DNE(1,T,16,6,"ion-list",8),t.k0s()),2&r){const e=t.XpG();t.R7$(1),t.Y8G("ngForOf",e.creditCardUser)}}const k=[{path:"",component:(()=>{class r{constructor(e,s,i,n,o,d){this.storage=e,this.userProvider=s,this.alertCtrl=i,this.utilsService=n,this.translateService=o,this.router=d,this.creditCardUser=[]}ngOnInit(){}ionViewDidLoad(){}ionViewWillEnter(){this.listCreditCard()}addNewCard(){this.router.navigate(["/app/tabs/settings/card-add"])}listCreditCard(){var e=this;this.storage.get("token").then(function(){var s=(0,u.A)(function*(i){i&&(e.utilsService.presentLoading(e.translateService.instant("all.loading")),(yield e.userProvider.listCreditCard(i.access_token)).subscribe(n=>{e.utilsService.dismissLoading(),e.creditCardUser=n},n=>{e.utilsService.dismissLoading()}))});return function(i){return s.apply(this,arguments)}}())}deleteCreditCard(e,s){var i=this;this.storage.get("token").then(function(){var n=(0,u.A)(function*(o){o&&(i.utilsService.presentLoading(i.translateService.instant("all.loading")),(yield i.userProvider.deleteCreditCard(s,o.access_token)).subscribe(d=>{e.close(),i.utilsService.dismissLoading(),i.listCreditCard()},d=>{i.utilsService.dismissLoading()}))});return function(o){return n.apply(this,arguments)}}())}selectDefaultCard(e){this.storage.get("token").then(s=>{s&&(this.utilsService.presentLoading(this.translateService.instant("all.loading")),this.userProvider.selectDefaultCard(e,s.access_token).subscribe(i=>{this.utilsService.dismissLoading(),this.listCreditCard()},i=>{this.utilsService.dismissLoading()}))})}verifyCard(e){this.storage.get("token").then(s=>{s&&(this.utilsService.presentLoading(this.translateService.instant("all.loading")),this.userProvider.generateVerifyCard(e,s.access_token).subscribe(i=>{this.utilsService.dismissLoading(),i.r&&"APPROVED"==i.b.transactionResponse.state?this.nextProcessVerifyCardAPPROVED(i,s,e):this.nextProcessVerifyCard_OTHER_STATE(i)},i=>{console.log("error listCreditCard",i),this.utilsService.dismissLoading()}))})}nextProcessVerifyCard_OTHER_STATE(e){var s=this;return(0,u.A)(function*(){yield(yield s.alertCtrl.create({header:"Verificaci\xf3n",message:e.m,buttons:[{text:"Cancelar",handler:n=>{console.log("Cancel clicked")}}]})).present()})()}nextProcessVerifyCardAPPROVED(e,s,i){var n=this;return(0,u.A)(function*(){(yield n.alertCtrl.create({header:"Verificaci\xf3n",message:e.m,inputs:[{name:"value",placeholder:"Valor cobrado"}],buttons:[{text:"Cancelar",handler:d=>{console.log("Cancel clicked")}},{text:"Enviar",handler:d=>{n.utilsService.presentLoading(n.translateService.instant("all.loading")),n.userProvider.sendValueVerifyCard(i,d.value,s.access_token).subscribe(g=>{n.utilsService.dismissLoading(),n.utilsService.presentToast(3e3,"success","top",g.m),g.r&&n.listCreditCard()},g=>{console.log("error sendValueVerifyCard: ",g),n.utilsService.dismissLoading()})}}]})).present()})()}static#t=this.\u0275fac=function(s){return new(s||r)(t.rXU(h.n),t.rXU(m.D),t.rXU(a.hG),t.rXU(v.T),t.rXU(f.c$),t.rXU(p.Ix))};static#e=this.\u0275cmp=t.VBU({type:r,selectors:[["page-cards"]],decls:12,vars:8,consts:[[1,"ion-no-border"],[1,"ion-text-center"],["defaultHref","/app/tabs/settings","slot","start"],[1,"ion-padding"],[4,"ngIf"],["type","submit","color","primary","shape","round","expand","block","fill","solid",1,"marginTop10",3,"click"],["src","../../assets/img/card_add.png",1,"cardAdd"],[1,"text1Verify"],[4,"ngFor","ngForOf"],["item",""],["slot","start",1,"cardLogo",3,"src"],["src","../../assets/img/verify.png","class","cardVerify",4,"ngIf"],[3,"click"],["slot","end","class","textVerify",3,"click",4,"ngIf"],["name","ios-checkmark-circle-outline","slot","end",4,"ngIf"],["side","right"],["ion-button","","color","danger",3,"click"],["name","ios-trash-outline",1,"iconDelete"],["src","../../assets/img/verify.png",1,"cardVerify"],["slot","end",1,"textVerify",3,"click"],["name","ios-checkmark-circle-outline","slot","end"]],template:function(s,i){1&s&&(t.j41(0,"ion-header",0)(1,"ion-toolbar",1),t.nrm(2,"ion-back-button",2),t.j41(3,"ion-title"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.j41(6,"ion-content",3),t.DNE(7,P,9,6,"div",4),t.DNE(8,V,2,1,"div",4),t.j41(9,"ion-button",5),t.bIt("click",function(){return i.addNewCard()}),t.EFF(10),t.nI1(11,"translate"),t.k0s()()),2&s&&(t.R7$(4),t.JRh(t.bMT(5,4,"OPTION_TITLE_CARDS")),t.R7$(3),t.Y8G("ngIf",!i.creditCardUser.length),t.R7$(1),t.Y8G("ngIf",i.creditCardUser.length),t.R7$(2),t.JRh(t.bMT(11,6,"BUTTON_NEW_CARD")))},dependencies:[_.Sq,_.bT,a.el,a.Jm,a.W9,a.eU,a.iq,a.uz,a.CE,a.A7,a.he,a.nf,a.BC,a.ai,a.tY,f.D9],styles:[".cardAdd[_ngcontent-%COMP%]{display:block!important;margin:30% auto 0%!important;width:60%;height:100%}.text1Verify[_ngcontent-%COMP%]{font-weight:700}.cardVerify[_ngcontent-%COMP%]{position:absolute;width:20px;left:5px;top:30px}.cardLogo[_ngcontent-%COMP%]{width:40px}.iconDelete[_ngcontent-%COMP%]{font-size:25px;margin-top:10px}.textVerify[_ngcontent-%COMP%]{text-decoration:underline;font-size:13px;color:#008b8b}"]})}return r})()}];let R=(()=>{class r{static#t=this.\u0275fac=function(s){return new(s||r)};static#e=this.\u0275mod=t.$C({type:r});static#i=this.\u0275inj=t.G2t({imports:[p.iI.forChild(k),p.iI]})}return r})(),S=(()=>{class r{static#t=this.\u0275fac=function(s){return new(s||r)};static#e=this.\u0275mod=t.$C({type:r});static#i=this.\u0275inj=t.G2t({imports:[_.MD,a.bv,R,f.h.forChild()]})}return r})()}}]);