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/9415.b731b04c9bf2fd87.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9415],{89415:(v,m,n)=>{n.r(m),n.d(m,{AcademySchedulesPageModule:()=>T});var h=n(56610),e=n(37222),p=n(77897),d=n(36075),E=n(11185),i=n(2978);const g=[{path:"",component:E._}];let l=(()=>{class c{static#e=this.\u0275fac=function(u){return new(u||c)};static#t=this.\u0275mod=i.$C({type:c});static#n=this.\u0275inj=i.G2t({imports:[d.iI.forChild(g),d.iI]})}return c})();var S=n(22882);let T=(()=>{class c{static#e=this.\u0275fac=function(u){return new(u||c)};static#t=this.\u0275mod=i.$C({type:c});static#n=this.\u0275inj=i.G2t({imports:[h.MD,e.YN,p.bv,l,S.h]})}return c})()},11185:(v,m,n)=>{n.d(m,{_:()=>u});var h=n(73308),e=n(2978),p=n(54171),d=n(22882),E=n(57992),i=n(77897),g=n(56610),l=n(37222);function S(s,_){if(1&s&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s){const t=e.XpG().$implicit;e.R7$(1),e.E5c(" ",t.name," (",t.current_capacity," ",e.bMT(2,3,"SCHEDULE_AVAILABLE"),") ")}}function T(s,_){if(1&s&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&s){const t=e.XpG().$implicit;e.R7$(1),e.SpI(" ",t.name," ")}}function c(s,_){if(1&s&&(e.j41(0,"ion-select-option",11),e.DNE(1,S,3,5,"p",12),e.DNE(2,T,2,1,"p",12),e.k0s()),2&s){const t=_.$implicit;e.Y8G("value",t.id)("disabled",0==t.current_capacity),e.R7$(1),e.Y8G("ngIf",0!=t.id),e.R7$(1),e.Y8G("ngIf",0==t.id)}}function I(s,_){if(1&s){const t=e.RV6();e.j41(0,"ion-item",7)(1,"ion-label",8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ion-select",9),e.bIt("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.schedule=o)}),e.nI1(5,"translate"),e.nI1(6,"translate"),e.nI1(7,"translate"),e.DNE(8,c,3,4,"ion-select-option",10),e.k0s()()}if(2&s){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,6,"PAYMENT_SCHEDULES_OPTION"),""),e.R7$(2),e.FS9("placeholder",e.bMT(5,8,"TEXT_OK_SELECT")),e.FS9("okText",e.bMT(6,10,"TEXT_OK_SELECT")),e.FS9("cancelText",e.bMT(7,12,"TEXT_CANCEL_SELECT")),e.Y8G("ngModel",t.schedule),e.R7$(4),e.Y8G("ngForOf",t.schedules)}}function f(s,_){1&s&&(e.j41(0,"ion-button",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(1),e.SpI(" ",e.bMT(2,1,"PAYMENT_SCHEDULES_TITLE")," "))}let u=(()=>{class s{constructor(t,a,o,r){this.utilsService=t,this.translateService=a,this.academyService=o,this.modalCtrl=r,this.schedules=[],this.academyCategoryId=null}ngOnInit(){this.loadInit()}cancel(t){this.modalCtrl.dismiss(t)}loadInit(t=0){setTimeout(()=>new Promise((a,o)=>{this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{Promise.all([this.getSchedules()]).then(()=>{this.utilsService.dismissLoading(),a(!1)}).catch(r=>{this.utilsService.dismissLoading(),console.log("Error loadInit AcademySchedulesPage",r),o(r)})})}),t)}getSchedules(){var t=this;return(0,h.A)(function*(){(yield t.academyService.getSchedules(t.academyCategoryId)).subscribe(a=>{t.schedules=a},a=>{console.log("error",a)})})()}changeSchedule(){var t=this;let a={academyUserId:this.academyUserId,academyScheduleId:this.schedule};this.utilsService.presentLoading(this.translateService.instant("all.updating")).then((0,h.A)(function*(){(yield t.academyService.changeSchedule(a)).subscribe(o=>{t.utilsService.presentToast(4e3,"success","top",o.m),t.utilsService.dismissLoading(),t.cancel(!0)},o=>{t.utilsService.dismissLoading(),console.log("error",o)})}))}static#e=this.\u0275fac=function(a){return new(a||s)(e.rXU(p.T),e.rXU(d.c$),e.rXU(E.k),e.rXU(i.W3))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["app-academy-schedules"]],decls:15,vars:8,consts:[[1,"responsive-text"],["slot","end"],["strong","","color","light",3,"click"],[3,"ngSubmit"],["formSchedule","ngForm"],["class","inputBorderRadius ion-margin-bottom","lines","none",4,"ngIf"],["type","submit","color","primary","shape","round","expand","block","fill","solid","class","ion-margin",4,"ngIf"],["lines","none",1,"inputBorderRadius","ion-margin-bottom"],["position","stacked",2,"margin-bottom","10px"],["interface","popover","interface","popover","name","schedule","required","",1,"ion-text-center","placeholder-select",3,"placeholder","okText","cancelText","ngModel","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"],[4,"ngIf"],["type","submit","color","primary","shape","round","expand","block","fill","solid",1,"ion-margin"]],template:function(a,o){1&a&&(e.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-title",0),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"ion-buttons",1)(6,"ion-button",2),e.bIt("click",function(){return o.cancel(!1)}),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()(),e.j41(9,"ion-content")(10,"form",3,4),e.bIt("ngSubmit",function(){return o.changeSchedule()}),e.j41(12,"ion-list"),e.DNE(13,I,9,14,"ion-item",5),e.k0s(),e.DNE(14,f,3,3,"ion-button",6),e.k0s()()),2&a&&(e.R7$(3),e.JRh(e.bMT(4,4,"PAYMENT_SCHEDULES_TITLE")),e.R7$(4),e.JRh(e.bMT(8,6,"all.close")),e.R7$(6),e.Y8G("ngIf",o.schedules.length),e.R7$(1),e.Y8G("ngIf",o.schedule))},dependencies:[g.Sq,g.bT,l.qT,l.BC,l.cb,l.YS,l.vS,l.cV,i.Jm,i.QW,i.W9,i.eU,i.uz,i.he,i.nf,i.Nm,i.Ip,i.BC,i.ai,i.Je,d.D9]})}return s})()}}]);