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/5744.bab90609bb4911ea.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5744],{5744:(Y,_,s)=>{s.r(_),s.d(_,{MembershipListPageModule:()=>k});var p=s(56610),g=s(37222),r=s(77897),m=s(36075),d=s(73308),t=s(2978),M=s(7438),u=s(29885),f=s(54171),E=s(69942),h=s(22882),b=s(60822);function v(i,o){if(1&i){const e=t.RV6();t.j41(0,"ion-card")(1,"ion-card-header")(2,"ion-card-title"),t.nrm(3,"ion-icon",8),t.j41(4,"p",9),t.EFF(5),t.k0s()()(),t.j41(6,"ion-card-content")(7,"ion-row")(8,"ion-col",10),t.EFF(9),t.k0s()(),t.j41(10,"ion-row",11)(11,"ion-button",12),t.bIt("click",function(){const c=t.eBV(e).$implicit,l=t.XpG(2);return t.Njj(l.goToMembership(c.id))}),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()()}if(2&i){const e=o.$implicit;t.R7$(5),t.JRh(e.name),t.R7$(4),t.JRh(e.description),t.R7$(3),t.SpI(" ",t.bMT(13,3,"MEMBERSHIP.HOME.MORE_INFO"),"")}}function R(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",4)(1,"ion-content")(2,"ion-refresher",5),t.bIt("ionRefresh",function(a){t.eBV(e);const c=t.XpG();return t.Njj(c.doRefresh(a))}),t.nrm(3,"ion-refresher-content",6),t.k0s(),t.DNE(4,v,14,5,"ion-card",7),t.k0s()()}if(2&i){const e=t.XpG();t.R7$(4),t.Y8G("ngForOf",e.membershipsList)}}function I(i,o){if(1&i){const e=t.RV6();t.j41(0,"ion-card")(1,"ion-card-header")(2,"ion-card-title"),t.nrm(3,"ion-icon",8),t.j41(4,"p",9),t.EFF(5),t.k0s()()(),t.j41(6,"ion-card-content")(7,"ion-row")(8,"ion-col",10),t.EFF(9),t.k0s()(),t.j41(10,"ion-row",11)(11,"ion-button",12),t.bIt("click",function(){const c=t.eBV(e).$implicit,l=t.XpG(3);return t.Njj(l.goToMembership(c.id))}),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()()}if(2&i){const e=o.$implicit;t.R7$(5),t.JRh(e.name),t.R7$(4),t.JRh(e.description),t.R7$(3),t.SpI(" ",t.bMT(13,3,"MEMBERSHIP.HOME.MORE_INFO"),"")}}function F(i,o){if(1&i&&(t.j41(0,"div"),t.DNE(1,I,14,5,"ion-card",7),t.k0s()),2&i){const e=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",e.membershipsList)}}function T(i,o){if(1&i&&(t.j41(0,"tr")(1,"td",21)(2,"b"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"td",22),t.EFF(6),t.nI1(7,"formatCurrency"),t.k0s()()),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.R7$(3),t.SpI("",t.bMT(4,2,"MEMBERSHIP.HOME.PAYMENT.PRICE"),":\xa0"),t.R7$(3),t.JRh(t.i5U(7,4,e.price,n.currency))}}function P(i,o){if(1&i&&(t.j41(0,"tr")(1,"td",21)(2,"b"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"td",22),t.EFF(6),t.nI1(7,"formatCurrency"),t.k0s()()),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.R7$(3),t.SpI("",t.bMT(4,2,"MEMBERSHIP.HOME.PAYMENT.DELIVERY"),":\xa0"),t.R7$(3),t.JRh(t.i5U(7,4,e.delivery,n.currency))}}function x(i,o){if(1&i&&(t.j41(0,"tr")(1,"td",21)(2,"b"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"td",22),t.EFF(6),t.nI1(7,"formatCurrency"),t.k0s()()),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.R7$(3),t.SpI("",t.bMT(4,2,"MEMBERSHIP.HOME.PAYMENT.TOTAL"),":\xa0"),t.R7$(3),t.JRh(t.i5U(7,4,n.total(e),n.currency))}}function $(i,o){if(1&i&&(t.j41(0,"tr")(1,"td",21)(2,"b"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"td",22),t.EFF(6),t.k0s()()),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.R7$(3),t.SpI("",t.bMT(4,2,"MEMBERSHIP.HOME.PAYMENT.DATE_REGISTRATION"),":\xa0"),t.R7$(3),t.JRh(n.dateFormatFull(e.updated_at))}}function j(i,o){if(1&i&&(t.j41(0,"tr")(1,"td",21)(2,"b"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"td",22),t.EFF(6),t.k0s()()),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.R7$(3),t.SpI("",t.bMT(4,3,"MEMBERSHIP.HOME.PAYMENT.EFFECTIVE_DATE"),":\xa0"),t.R7$(3),t.Lme("",n.dateFormat(e.start_date)," - ",n.dateFormat(e.end_date),"")}}function S(i,o){if(1&i&&(t.j41(0,"ion-row",11)(1,"ion-button",23),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG().$implicit;t.R7$(1),t.FS9("routerLink",e.action),t.R7$(1),t.SpI(" ",t.bMT(3,2,"MEMBERSHIP.HOME.ACTION_BUTTON"),"")}}function C(i,o){if(1&i&&(t.j41(0,"ion-card")(1,"ion-card-header")(2,"ion-card-title"),t.nrm(3,"ion-icon",8),t.j41(4,"p",9),t.EFF(5),t.k0s(),t.j41(6,"p",18),t.EFF(7),t.nI1(8,"translate"),t.nI1(9,"translate"),t.k0s()()(),t.j41(10,"ion-card-content")(11,"table"),t.DNE(12,T,8,7,"tr",19),t.DNE(13,P,8,7,"tr",19),t.DNE(14,x,8,7,"tr",19),t.DNE(15,$,7,4,"tr",19),t.DNE(16,j,7,5,"tr",19),t.k0s(),t.DNE(17,S,4,4,"ion-row",20),t.k0s()()),2&i){const e=o.$implicit;t.R7$(5),t.JRh(e.membership.name),t.R7$(1),t.xc7("background-color","CONFIRMED"===e.status?"var(--ion-color-success)":"var(--ion-color-danger)"),t.R7$(1),t.SpI(" ","CONFIRMED"===e.status?t.bMT(8,10,"MEMBERSHIP.HOME.PAYMENT.ACTIVE"):t.bMT(9,12,"MEMBERSHIP.HOME.PAYMENT.INACTIVE"),""),t.R7$(5),t.Y8G("ngIf",e.price),t.R7$(1),t.Y8G("ngIf",e.delivery),t.R7$(1),t.Y8G("ngIf",e.delivery),t.R7$(1),t.Y8G("ngIf",e.updated_at),t.R7$(1),t.Y8G("ngIf",e.start_date&&e.end_date),t.R7$(1),t.Y8G("ngIf","CONFIRMED"===e.status&&e.action)}}function O(i,o){if(1&i&&(t.j41(0,"div"),t.DNE(1,C,18,14,"ion-card",7),t.k0s()),2&i){const e=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",e.userMembershipsList)}}function G(i,o){if(1&i){const e=t.RV6();t.j41(0,"div",4)(1,"ion-segment",13),t.bIt("ionChange",function(a){t.eBV(e);const c=t.XpG();return t.Njj(c.segmentChanged(a))}),t.j41(2,"ion-segment-button",14)(3,"ion-label"),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"ion-segment-button",15)(7,"ion-label"),t.EFF(8),t.nI1(9,"translate"),t.k0s()()(),t.j41(10,"ion-content")(11,"ion-refresher",5),t.bIt("ionRefresh",function(a){t.eBV(e);const c=t.XpG();return t.Njj(c.doRefresh(a))}),t.nrm(12,"ion-refresher-content",6),t.k0s(),t.j41(13,"div",16),t.DNE(14,F,2,1,"div",17),t.DNE(15,O,2,1,"div",17),t.k0s()()()}if(2&i){const e=t.XpG();t.R7$(1),t.Y8G("value",e.segment),t.R7$(3),t.JRh(t.bMT(5,8,"MEMBERSHIP.HOME.OFFER")),t.R7$(4),t.JRh(t.bMT(9,10,"MEMBERSHIP.HOME.REGISTERED")),t.R7$(2),t.xc7("height",e.contentHeight),t.R7$(3),t.Y8G("ngSwitch",e.segment),t.R7$(1),t.Y8G("ngSwitchCase","offer"),t.R7$(1),t.Y8G("ngSwitchCase","registered")}}const L=[{path:"",component:(()=>{class i{constructor(e,n,a,c,l,H,X,D){this.router=e,this.membershipService=n,this.userService=a,this.utilsService=c,this.corporateIdentityService=l,this.translateService=H,this.route=X,this.platform=D,this.paymentsEnabled=!1,this.segment="offer"}ngOnInit(){this.loadInit(),this.paymentsEnabled="true"==this.route.snapshot.paramMap.get("payments"),this.contentHeight=this.platform.height()>740?"94%":"90%",this.currency=this.corporateIdentityService.getCurrency()}loadInit(){var e=this;this.utilsService.presentLoading(this.translateService.instant("all.loading")).then((0,d.A)(function*(){yield e.getMembershipsList(),yield e.getUserMemberships(),e.utilsService.dismissLoading()}))}getMembershipsList(){var e=this;return(0,d.A)(function*(){(yield e.membershipService.getMemberships()).subscribe(n=>{e.membershipsList=n.data})})()}getUserMemberships(){var e=this;return(0,d.A)(function*(){(yield e.userService.getMemberships()).subscribe(n=>{e.validateUserMemberships(n.data)})})()}goMembershipDetail(e){this.router.navigate(["/memberships/"+e.id])}doRefresh(e){setTimeout(()=>{this.loadInit(),e.target.complete()},500)}validateUserMemberships(e){this.userMembershipsList=e,this.userMembershipsList.length>0&&(this.paymentsEnabled&&(this.segment="registered"),this.paymentsEnabled=!0)}segmentChanged(e){this.segment=e.detail.value}dateFormat(e){return new Date(e).toISOString().split("T")[0]}dateFormatFull(e){return new Date(e).toLocaleString()}total(e){return parseFloat(e.price)+parseFloat(e.delivery)}goToMembership(e){this.userService.validateAlertsUseApp("document")&&this.router.navigate([`/memberships/enroll/${e}`])}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(m.Ix),t.rXU(M.C),t.rXU(u.D),t.rXU(f.T),t.rXU(E.r),t.rXU(h.c$),t.rXU(m.nX),t.rXU(r.OD))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["app-membership-list"]],decls:8,vars:5,consts:[[1,"ion-no-border"],["defaultHref","/app/tabs/home","slot","start"],[1,"ion-text-center"],["class","content",4,"ngIf"],[1,"content"],["slot","fixed",3,"ionRefresh"],["pullingIcon","arrow-down-outline","refreshingSpinner","ios"],[4,"ngFor","ngForOf"],["name","star-outline",1,"icon-title"],[1,"text-title"],["size","12"],[1,"ion-justify-content-end"],["size","small",3,"click"],["mode","md",3,"value","ionChange"],["value","offer"],["value","registered"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"stateTag","responsive-text-title"],[4,"ngIf"],["class","ion-justify-content-end",4,"ngIf"],[1,"title-column"],[1,"plan"],["size","small",3,"routerLink"]],template:function(n,a){1&n&&(t.j41(0,"ion-header",0)(1,"ion-toolbar"),t.nrm(2,"ion-back-button",1),t.j41(3,"ion-title",2),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.DNE(6,R,5,1,"div",3),t.DNE(7,G,16,12,"div",3)),2&n&&(t.R7$(4),t.JRh(t.bMT(5,3,"MEMBERSHIP.HOME.TITLE")),t.R7$(2),t.Y8G("ngIf",!a.paymentsEnabled),t.R7$(1),t.Y8G("ngIf",a.paymentsEnabled))},dependencies:[p.Sq,p.bT,p.ux,p.e1,r.el,r.Jm,r.b_,r.I9,r.ME,r.tN,r.hU,r.W9,r.eU,r.iq,r.he,r.To,r.Ki,r.ln,r.Gp,r.eP,r.BC,r.ai,r.Je,r.tY,r.N7,m.Wk,h.D9,b.P],styles:["ion-content[_ngcontent-%COMP%]{--background: #f9f9f9 !important}ion-card[_ngcontent-%COMP%]{box-shadow:0 1px 6px gray;margin-top:15px;margin-bottom:15px;border-radius:10px}ion-card-title[_ngcontent-%COMP%]{display:flex;font-size:large;color:var(--color-title);font-weight:700}ion-card-content[_ngcontent-%COMP%]{padding-bottom:5px}ion-segment-button[_ngcontent-%COMP%]{--ripple-color: transparent !important;--ripple-duration: 0ms !important}td[_ngcontent-%COMP%]{vertical-align:top}.content[_ngcontent-%COMP%]{height:100%}.text-title[_ngcontent-%COMP%]{width:100%}.icon-title[_ngcontent-%COMP%]{margin-right:5px}.stateTag[_ngcontent-%COMP%]{color:#fff;font-weight:700;padding:0 5px;text-transform:uppercase;text-align:center;box-shadow:1px 2px 2px 1px gray;border-radius:5px;right:0;font-size:smaller;height:18px}.title-column[_ngcontent-%COMP%]{width:40%}"]})}return i})()}];let y=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.$C({type:i});static#i=this.\u0275inj=t.G2t({imports:[m.iI.forChild(L),m.iI]})}return i})();var N=s(41683);let k=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.$C({type:i});static#i=this.\u0275inj=t.G2t({imports:[p.MD,g.YN,r.bv,y,h.h,N.Y]})}return i})()}}]);