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/6268.c90b4fe35226096d.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6268],{56261:(S,I,l)=>{l.d(I,{I:()=>A});var t=l(2978),e=l(22882),o=l(56610),m=l(77897),v=l(37222);function C(h,E){if(1&h&&(t.j41(0,"ion-select-option",7),t.EFF(1),t.k0s()),2&h){const i=E.$implicit;t.Y8G("value",i),t.R7$(1),t.JRh(i)}}function f(h,E){if(1&h&&(t.j41(0,"ion-select-option",7),t.EFF(1),t.k0s()),2&h){const i=E.$implicit,d=t.XpG();t.Y8G("value",d.allMonths.indexOf(i)),t.R7$(1),t.JRh(i)}}function g(h,E){if(1&h&&(t.j41(0,"ion-select-option",7),t.EFF(1),t.k0s()),2&h){const i=E.$implicit;t.Y8G("value",i),t.R7$(1),t.JRh(i)}}let A=(()=>{class h{constructor(i){this.translateService=i,this.defaultDate=[],this.date=new t.bkB,this.days=[],this.allMonths=[],this.months=[],this.years=[],this.currentYear=(new Date).getFullYear(),this.yearRange=100}ngOnInit(){this.setDays(),this.setMonths(),this.setYears()}ngOnChanges(i){if(i.defaultDate&&i.defaultDate.currentValue){let d=this.defaultDate.split(this.defaultDate.includes("-")?"-":"/");this.year=Number(d[0]),this.month=Number(d[1])-1,this.day=Number(d[2])}i.minDate&&i.minDate.currentValue&&(this.yearRange=this.currentYear-this.minDate.getFullYear()),this.setDays(),this.setMonths(),this.setYears()}setDays(i=1){this.days=this.buildNumberArray(i,31)}setMonths(i=0){this.allMonths=Array.from({length:12},(d,_)=>new Date(0,_).toLocaleString(window.navigator.language,{month:"long"})),this.months=this.allMonths.slice(i,12)}setYears(){const i=this.minDate?this.minDate.getFullYear():this.currentYear-this.yearRange,d=this.maxDate?this.maxDate.getFullYear():this.currentYear;this.years=this.buildNumberArray(i,d).reverse()}buildNumberArray(i,d){return[...Array(d-i+1).keys()].map(_=>_+i)}changeDate(){this.day&&null!=this.month&&this.year&&this.date.emit(new Date(this.year+"/"+(this.month+1)+"/"+this.day).toJSON().slice(0,10).replace(/-/g,"/"))}changeYear(){this.minDate&&this.minDate.getFullYear()==this.year&&this.setMonths(this.minDate.getMonth()),this.changeDate()}changeMonth(){this.minDate&&this.minDate.getMonth()==this.month&&this.setDays(this.minDate.getDate()),this.changeDate()}static#e=this.\u0275fac=function(d){return new(d||h)(t.rXU(e.c$))};static#t=this.\u0275cmp=t.VBU({type:h,selectors:[["app-date-picker"]],inputs:{defaultDate:"defaultDate",minDate:"minDate",maxDate:"maxDate"},outputs:{date:"date"},features:[t.OA$],decls:23,vars:33,consts:[[1,"ion-no-padding","ion-no-margin"],["lines","none",1,"ion-no-padding","ion-no-margin"],["interface","popover","name","year","required","",1,"ion-text-center","placeholder-select",3,"placeholder","okText","cancelText","ngModel","ngModelChange","ionChange"],[3,"value",4,"ngFor","ngForOf"],["interface","popover","name","month","required","",1,"ion-text-center","placeholder-select",3,"placeholder","okText","cancelText","ngModel","ngModelChange","ionChange"],["lines","none",1,"ion-no-padding","ion-no-margin","no-inner-padding"],["interface","popover","name","day","required","",1,"ion-text-center","placeholder-select",3,"placeholder","okText","cancelText","ngModel","ngModelChange","ionChange"],[3,"value"]],template:function(d,_){1&d&&(t.j41(0,"ion-grid",0)(1,"ion-row",0)(2,"ion-col",0)(3,"ion-item",1)(4,"ion-select",2),t.bIt("ngModelChange",function(D){return _.year=D})("ionChange",function(){return _.changeYear()}),t.nI1(5,"translate"),t.nI1(6,"translate"),t.nI1(7,"translate"),t.DNE(8,C,2,2,"ion-select-option",3),t.k0s()()(),t.j41(9,"ion-col",0)(10,"ion-item",1)(11,"ion-select",4),t.bIt("ngModelChange",function(D){return _.month=D})("ionChange",function(){return _.changeMonth()}),t.nI1(12,"translate"),t.nI1(13,"translate"),t.nI1(14,"translate"),t.DNE(15,f,2,2,"ion-select-option",3),t.k0s()()(),t.j41(16,"ion-col",0)(17,"ion-item",5)(18,"ion-select",6),t.bIt("ngModelChange",function(D){return _.day=D})("ionChange",function(){return _.changeDate()}),t.nI1(19,"translate"),t.nI1(20,"translate"),t.nI1(21,"translate"),t.DNE(22,g,2,2,"ion-select-option",3),t.k0s()()()()()),2&d&&(t.R7$(4),t.FS9("placeholder",t.bMT(5,15,"YEAR")),t.FS9("okText",t.bMT(6,17,"TEXT_OK_SELECT")),t.FS9("cancelText",t.bMT(7,19,"TEXT_CANCEL_SELECT")),t.Y8G("ngModel",_.year),t.R7$(4),t.Y8G("ngForOf",_.years),t.R7$(3),t.FS9("placeholder",t.bMT(12,21,"MONTH")),t.FS9("okText",t.bMT(13,23,"TEXT_OK_SELECT")),t.FS9("cancelText",t.bMT(14,25,"TEXT_CANCEL_SELECT")),t.Y8G("ngModel",_.month),t.R7$(4),t.Y8G("ngForOf",_.months),t.R7$(3),t.FS9("placeholder",t.bMT(19,27,"DAY")),t.FS9("okText",t.bMT(20,29,"TEXT_OK_SELECT")),t.FS9("cancelText",t.bMT(21,31,"TEXT_CANCEL_SELECT")),t.Y8G("ngModel",_.day),t.R7$(4),t.Y8G("ngForOf",_.days))},dependencies:[o.Sq,m.hU,m.lO,m.uz,m.ln,m.Nm,m.Ip,m.Je,v.BC,v.YS,v.vS,e.D9],styles:[".placeholder-select[_ngcontent-%COMP%]{border:1px solid #dedede;border-radius:5px;width:-webkit-fill-available;font-size:14px!important;text-align:justify!important;--padding-start: 15px;--placeholder-opacity: .5}.no-inner-padding[_ngcontent-%COMP%]{--inner-padding-end: 0px}"]})}return h})()},86268:(S,I,l)=>{l.d(I,{C:()=>N});var t=l(73308),e=l(2978),o=l(77897),m=l(22882),v=l(54171),C=l(57992),f=l(56610),g=l(37222),A=l(56261),h=l(13797);function E(a,u){if(1&a&&(e.j41(0,"ion-select-option",10),e.EFF(1),e.k0s()),2&a){const n=u.$implicit;e.Y8G("value",n),e.R7$(1),e.SpI(" ",n," ")}}function i(a,u){if(1&a){const n=e.RV6();e.j41(0,"div")(1,"ion-label",13),e.EFF(2),e.k0s(),e.j41(3,"ion-item",5)(4,"app-date-picker",14),e.bIt("date",function(s){e.eBV(n);const r=e.XpG(2);return e.Njj(r.setDate(s))}),e.k0s()()()}if(2&a){const n=e.XpG(2);e.R7$(2),e.JRh(n.initDateTitle),e.R7$(2),e.Y8G("minDate",n.minDate)}}function d(a,u){if(1&a){const n=e.RV6();e.j41(0,"div")(1,"ion-label",13),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ion-item",5)(5,"app-date-picker",14),e.bIt("date",function(s){e.eBV(n);const r=e.XpG(2);return e.Njj(r.setEndDate(s))}),e.k0s()()()}if(2&a){const n=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"END_DATE")),e.R7$(3),e.Y8G("minDate",n.minDate)}}function _(a,u){if(1&a&&(e.j41(0,"ion-select-option",10),e.EFF(1),e.k0s()),2&a){const n=u.$implicit;e.Y8G("value",n),e.R7$(1),e.SpI(" ",n," ")}}function T(a,u){if(1&a){const n=e.RV6();e.j41(0,"ion-item",5)(1,"ion-label",6),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ion-select",15),e.bIt("ngModelChange",function(s){e.eBV(n);const r=e.XpG(2);return e.Njj(r.selectedReason=s)}),e.nI1(5,"translate"),e.DNE(6,_,2,2,"ion-select-option",8),e.k0s()()}if(2&a){const n=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,4,"REASON_LABEL")),e.R7$(2),e.FS9("placeholder",e.bMT(5,6,"TEXT_OK_SELECT")),e.Y8G("ngModel",n.selectedReason),e.R7$(2),e.Y8G("ngForOf",n.reasons)}}function D(a,u){if(1&a){const n=e.RV6();e.j41(0,"div")(1,"ion-label",16),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ion-grid")(5,"ion-row")(6,"ion-col",17)(7,"app-upload-file",18),e.bIt("file",function(s){e.eBV(n);const r=e.XpG(2);return e.Njj(r.saveFile(s))}),e.k0s()()()()()}if(2&a){const n=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(3,2,"UPLOAD_MEDICAL_DISABILITY")," "),e.R7$(5),e.Y8G("document",n.document)}}function R(a,u){if(1&a){const n=e.RV6();e.j41(0,"div")(1,"ion-label",13),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ion-item",5)(5,"ion-input",19),e.bIt("ngModelChange",function(s){e.eBV(n);const r=e.XpG(2),p=e.sdS(11);return e.Njj(r.utilsService.omitSpecialChar("studentLastName",p,s))}),e.k0s()(),e.j41(6,"ion-label",13),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"ion-item",5)(10,"ion-input",20),e.bIt("ngModelChange",function(s){e.eBV(n);const r=e.XpG(2),p=e.sdS(11);return e.Njj(r.utilsService.omitSpecialChar("studentLastName",p,s))}),e.k0s()()()}2&a&&(e.R7$(2),e.SpI("",e.bMT(3,2,"RECEIVER"),":"),e.R7$(5),e.SpI("",e.bMT(8,4,"COMMENT"),":"))}function y(a,u){if(1&a&&(e.j41(0,"div"),e.DNE(1,i,5,2,"div",9),e.DNE(2,d,6,4,"div",9),e.DNE(3,T,7,8,"ion-item",11),e.DNE(4,D,8,4,"div",9),e.DNE(5,R,11,6,"div",9),e.j41(6,"ion-button",12),e.EFF(7),e.nI1(8,"translate"),e.k0s()()),2&a){const n=e.XpG();e.R7$(1),e.Y8G("ngIf",n.selectedTypeNew!=n.translateService.instant("REQUEST_CERTIFICATE")),e.R7$(1),e.Y8G("ngIf",n.selectedTypeNew==n.translateService.instant("MEDICAL_DISABILITY")||n.selectedTypeNew==n.translateService.instant("FREEZING")),e.R7$(1),e.Y8G("ngIf",n.selectedTypeNew==n.translateService.instant("BACKOUT")||n.selectedTypeNew==n.translateService.instant("FREEZING")),e.R7$(1),e.Y8G("ngIf",n.selectedTypeNew==n.translateService.instant("MEDICAL_DISABILITY")),e.R7$(1),e.Y8G("ngIf",n.selectedTypeNew==n.translateService.instant("REQUEST_CERTIFICATE")),e.R7$(2),e.SpI(" ",e.bMT(8,6,"all.send")," ")}}let N=(()=>{class a{constructor(n,c,s,r){this.modalCtrl=n,this.translateService=c,this.utilsService=s,this.academyService=r,this.typeNews=[this.translateService.instant("BACKOUT"),this.translateService.instant("MEDICAL_DISABILITY"),this.translateService.instant("FREEZING"),this.translateService.instant("REQUEST_CERTIFICATE")],this.reasons=[this.translateService.instant("REASONS.STUDY"),this.translateService.instant("REASONS.HEALTH"),this.translateService.instant("REASONS.TRAVEL"),this.translateService.instant("REASONS.ECONOMY"),this.translateService.instant("REASONS.STUDY")],this.minDate=new Date,this.document={name:""}}ngOnInit(){}cancel(n,c){this.modalCtrl.dismiss({status:n,valueOrder:c})}setDate(n){this.initDate=n}setEndDate(n){this.endDate=n}changeTypeNew(){switch(this.selectedTypeNew){case this.translateService.instant("BACKOUT"):this.initDateTitle=this.translateService.instant("BACKOUT_DATE");break;case this.translateService.instant("MEDICAL_DISABILITY"):case this.translateService.instant("FREEZING"):this.initDateTitle=this.translateService.instant("INIT_DATE")}}saveFile(n){this.file=n,this.document.link=n}saveNew(n){var c=this;let s=n.value;s.init_date=this.initDate,s.end_date=this.endDate,s.academy_user_id=this.academyUser.id,s.file=this.file,this.validateData(s)&&this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{this.academyService.createNew(s).then(function(){var r=(0,t.A)(function*(p){p.r&&c.utilsService.presentToast(4e3,"success","top",p.m),c.utilsService.dismissLoading(),c.cancel(!1)});return function(p){return r.apply(this,arguments)}}(),r=>{this.utilsService.dismissLoading(),console.log("error enrollmentAcademy: ",r)})})}validateData(n){switch(this.selectedTypeNew){case this.translateService.instant("BACKOUT"):if(!n.init_date||!n.reason)return this.showWarning("ALL_REQUIRED"),!1;break;case this.translateService.instant("MEDICAL_DISABILITY"):if(!n.init_date||!n.end_date||!n.file)return this.showWarning("ALL_REQUIRED"),!1;break;case this.translateService.instant("FREEZING"):if(!n.init_date||!n.end_date||!n.reason)return this.showWarning("ALL_REQUIRED"),!1;break;case this.translateService.instant("REQUEST_CERTIFICATE"):if(!n.receiver||!n.reason)return this.showWarning("ALL_REQUIRED"),!1}return!0}showWarning(n){this.utilsService.presentToast(3e3,"warning","top",this.translateService.instant(n))}static#e=this.\u0275fac=function(c){return new(c||a)(e.rXU(o.W3),e.rXU(m.c$),e.rXU(v.T),e.rXU(C.k))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["app-academy-news-add"]],decls:20,vars:15,consts:[[1,"responsive-text"],["slot","end"],["strong","","color","light",3,"click"],[3,"ngSubmit"],["form","ngForm"],["lines","none",1,"inputBorderRadius","ion-margin-bottom"],["position","stacked",2,"margin-bottom","10px"],["interface","popover","name","type_new","required","",1,"ion-text-center","placeholder-select",3,"placeholder","ngModel","ngModelChange","ionChange"],["class","ion-text-center",3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-text-center",3,"value"],["class","inputBorderRadius ion-margin-bottom","lines","none",4,"ngIf"],["type","submit","color","primary","shape","round","expand","block","fill","solid",1,"ion-margin"],["position","stacked",1,"form-field-label"],[2,"width","100%",3,"minDate","date"],["interface","popover","name","reason","required","",1,"ion-text-center","placeholder-select",3,"placeholder","ngModel","ngModelChange"],["position","stacked",2,"margin-left","22px"],["size","6","offset","3"],[3,"document","file"],["type","text","placeholder","","ngModel","","name","receiver","required","","maxlength","191",1,"ion-text-center",3,"ngModelChange"],["type","text","placeholder","","ngModel","","name","reason","required","","maxlength","191",1,"ion-text-center",3,"ngModelChange"]],template:function(c,s){if(1&c){const r=e.RV6();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 s.cancel(!1)}),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()(),e.j41(9,"ion-content")(10,"form",3,4),e.bIt("ngSubmit",function(){e.eBV(r);const M=e.sdS(11);return e.Njj(s.saveNew(M))}),e.j41(12,"ion-item",5)(13,"ion-label",6),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"ion-select",7),e.bIt("ngModelChange",function(M){return s.selectedTypeNew=M})("ionChange",function(){return s.changeTypeNew()}),e.nI1(17,"translate"),e.DNE(18,E,2,2,"ion-select-option",8),e.k0s()(),e.DNE(19,y,9,8,"div",9),e.k0s()()}2&c&&(e.R7$(3),e.JRh(e.bMT(4,7,"ADD_NEW")),e.R7$(4),e.JRh(e.bMT(8,9,"all.close")),e.R7$(7),e.JRh(e.bMT(15,11,"TYPE_NEW")),e.R7$(2),e.FS9("placeholder",e.bMT(17,13,"TEXT_OK_SELECT")),e.Y8G("ngModel",s.selectedTypeNew),e.R7$(2),e.Y8G("ngForOf",s.typeNews),e.R7$(1),e.Y8G("ngIf",s.selectedTypeNew))},dependencies:[f.Sq,f.bT,g.qT,g.BC,g.cb,g.YS,g.tU,g.vS,g.cV,o.Jm,o.QW,o.hU,o.W9,o.lO,o.eU,o.$w,o.uz,o.he,o.ln,o.Nm,o.Ip,o.BC,o.ai,o.Je,o.Gw,A.I,h.V,m.D9]})}return a})()}}]);