. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 52.223.31.75 / Your IP : 172.31.6.220 [ Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux ip-172-31-14-81.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 : |
"use strict";(self.webpackChunkSapere=self.webpackChunkSapere||[]).push([[220],{220:(_l,re,f)=>{f.r(re),f.d(re,{PagesRoutes:()=>ll});var e=f(4438),h=f(8887);let A=(()=>{class i{constructor(t){this.routes=t}canActivate(t,n){let o=localStorage.getItem("username"),a=localStorage.getItem("user_type_id");return"false"==localStorage.getItem("profile_check")&&"anagrafica"!=t.routeConfig?.path?(this.routes.navigate(["/formatori/anagrafica"]),!0):null!=o&&"3"==a||(this.routes.navigate(["/authentication/login"]),!1)}static{this.\u0275fac=function(n){return new(n||i)(e.KVO(h.Ix))}}static{this.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var k=f(8199),j=f(4628),p=f(5596);let fe=(()=>{class i{constructor(t){this.vsidenav=t,this.options=this.vsidenav.getOptions()}getUserInfo(t){let n=localStorage.getItem("user_info");if(t&&n){let o=JSON.parse(n)[t];if(o)return o}return""}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-welcome-card"]],standalone:!0,features:[e.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(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"div",2)(4,"mat-card-title"),e.EFF(5),e.k0s(),e.j41(6,"mat-card-subtitle",3),e.EFF(7,"Visualizza qui le prossime sessione d'esame!"),e.k0s()(),e.j41(8,"div",4),e.nrm(9,"img",5),e.k0s()()()()),2&n&&(e.R7$(4),e.xc7("color","dark"==o.options.theme?"white":""),e.R7$(),e.Lme("Bentornato ",o.vsidenav.getUserInfo("nome")," ",o.vsidenav.getUserInfo("cognome"),""))},dependencies:[k.G,p.RN,p.m2,p.Lc,p.dh],encapsulation:2})}}return i})();var m=f(467),z=f(4912),B=f(1988),g=f(177),v=f(15),S=f(6850);const te=i=>({"border-left":i}),ge=i=>["/centri/sessioniesame/visualizza-sessioneesame/",i];function Ce(i,r){if(1&i&&(e.j41(0,"mat-card",10)(1,"div",11)(2,"h6",12)(3,"a",13),e.EFF(4),e.nI1(5,"titlecase"),e.k0s()(),e.j41(6,"span",14),e.nrm(7,"i-tabler",15),e.EFF(8,"Dal \xa0"),e.j41(9,"b"),e.EFF(10),e.k0s(),e.EFF(11," al "),e.j41(12,"b"),e.EFF(13),e.k0s()(),e.j41(14,"span",14),e.nrm(15,"i-tabler",16),e.EFF(16,"Password: \xa0"),e.j41(17,"b"),e.EFF(18),e.k0s()()()()),2&i){const t=e.XpG().$implicit,n=e.XpG();e.R7$(),e.Aen(e.eq3(9,te,"5px solid "+t.colore)),e.R7$(2),e.Y8G("routerLink",e.eq3(11,ge,t.id_sessione)),e.R7$(),e.JRh(e.bMT(5,7,t.titolo)),e.R7$(6),e.JRh(n.vsidenav.convertInItData(t.data_inizio_sessione)),e.R7$(3),e.JRh(n.vsidenav.convertInItData(t.data_fine_sessione)),e.R7$(5),e.JRh(t.password)}}function he(i,r){1&i&&e.DNE(0,Ce,19,13,"mat-card",10),2&i&&e.vxM(r.$implicit.oggi?0:-1)}function ze(i,r){if(1&i&&(e.j41(0,"mat-card",10)(1,"div",11)(2,"h6",12),e.EFF(3),e.k0s(),e.j41(4,"span",14),e.nrm(5,"i-tabler",15),e.EFF(6,"Dal \xa0"),e.j41(7,"b"),e.EFF(8),e.k0s(),e.EFF(9," al "),e.j41(10,"b"),e.EFF(11),e.k0s()(),e.j41(12,"span",14),e.nrm(13,"i-tabler",16),e.EFF(14,"Password: \xa0"),e.j41(15,"b"),e.EFF(16),e.k0s()()()()),2&i){const t=e.XpG().$implicit,n=e.XpG();e.R7$(),e.Aen(e.eq3(6,te,"5px solid "+t.colore)),e.R7$(2),e.SpI(" ",t.titolo," "),e.R7$(5),e.JRh(n.vsidenav.convertInItData(t.data_inizio_sessione)),e.R7$(3),e.JRh(n.vsidenav.convertInItData(t.data_fine_sessione)),e.R7$(5),e.JRh(t.password)}}function Fe(i,r){1&i&&e.DNE(0,ze,17,8,"mat-card",10),2&i&&e.vxM(r.$implicit.domani?0:-1)}function ve(i,r){if(1&i&&(e.j41(0,"mat-card",10)(1,"div",11)(2,"h6",12),e.EFF(3),e.k0s(),e.j41(4,"span",14),e.nrm(5,"i-tabler",15),e.EFF(6,"Dal \xa0"),e.j41(7,"b"),e.EFF(8),e.k0s(),e.EFF(9," al "),e.j41(10,"b"),e.EFF(11),e.k0s()(),e.j41(12,"span",14),e.nrm(13,"i-tabler",16),e.EFF(14,"Password: \xa0"),e.j41(15,"b"),e.EFF(16),e.k0s()()()()),2&i){const t=e.XpG().$implicit,n=e.XpG();e.R7$(),e.Aen(e.eq3(6,te,"5px solid "+t.colore)),e.R7$(2),e.SpI(" ",t.titolo," "),e.R7$(5),e.JRh(n.vsidenav.convertInItData(t.data_inizio_sessione)),e.R7$(3),e.JRh(n.vsidenav.convertInItData(t.data_fine_sessione)),e.R7$(5),e.JRh(t.password)}}function be(i,r){1&i&&e.DNE(0,ve,17,8,"mat-card",10),2&i&&e.vxM(r.$implicit.dopodomani?0:-1)}let Ee=(()=>{class i{constructor(t,n){this.vsidenav=t,this.api=n}ngOnInit(){var t=this;return(0,m.A)(function*(){let n=yield t.api.call("getSessioni");t.sessioni=t.controllaSessioni(n)})()}getOggi(){let t=new Date,n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),o=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)+"-"+o+"-"+n}getDomani(){let t=new Date((new Date).setDate((new Date).getDate()+1)),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),o=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)+"-"+o+"-"+n}getDopoDomani(){let t=new Date((new Date).setDate((new Date).getDate()+2)),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),o=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)+"-"+o+"-"+n}controllaSessioni(t){let n=(new Date).setHours(0,0,0,0),o=new Date((new Date).setDate((new Date).getDate()+1)).setHours(0,0,0,0),a=new Date((new Date).setDate((new Date).getDate()+2)).setHours(0,0,0,0);return t.map(l=>{const c=new Date(l.data_inizio_sessione).setHours(0,0,0,0),_=new Date(l.data_fine_sessione).setHours(0,0,0,0);console.log(l.data_inizio_sessione+" -- "+l.data_fine_sessione);const E=c<=n&&_>=n,M=c<=o&&_>=o,J=c<=a&&_>=a;return{...l,oggi:E,domani:M,dopodomani:J}})}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(j.P),e.rXU(v.W))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-upcoming-schedules"]],standalone:!0,features:[e.aNF],decls:196,vars:3,consts:[[1,"cardWithShadow"],[1,"d-flex","align-items-center","justify-content-between","w-100"],["mat-stretch-tabs","","animationDuration","0ms",1,"custom-tabs"],[3,"label"],[1,"position-relative",2,"height","422px"],[1,"row","m-t-20"],[1,"col-2"],[1,"d-flex","flex-column","gap-32"],[1,"f-s-14"],[1,"col-10"],[1,"cardWithShadow","m-t-48"],[1,"p-16","timeline-border","timeline-border-primary"],[1,"m-t-0","f-s-16","f-w-600","m-b-4"],[2,"color","black","text-decoration","none",3,"routerLink"],[1,"f-s-14","d-flex","align-items-center"],["name","clock",1,"icon-20","m-r-4"],["name","key",1,"icon-20","m-r-4"]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-header")(2,"div",1)(3,"mat-card-title"),e.EFF(4,"Sessioni Schedulate"),e.k0s()()(),e.j41(5,"mat-card-content")(6,"mat-tab-group",2)(7,"mat-tab",3)(8,"div")(9,"ng-scrollbar",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"span",8),e.EFF(14,"8:00"),e.k0s(),e.j41(15,"span",8),e.EFF(16,"-"),e.k0s(),e.j41(17,"span",8),e.EFF(18,"-"),e.k0s(),e.j41(19,"span",8),e.EFF(20,"-"),e.k0s(),e.j41(21,"span",8),e.EFF(22,"-"),e.k0s(),e.j41(23,"span",8),e.EFF(24,"-"),e.k0s(),e.j41(25,"span",8),e.EFF(26,"-"),e.k0s(),e.j41(27,"span",8),e.EFF(28,"-"),e.k0s(),e.j41(29,"span",8),e.EFF(30,"-"),e.k0s(),e.j41(31,"span",8),e.EFF(32,"-"),e.k0s(),e.j41(33,"span",8),e.EFF(34,"-"),e.k0s(),e.j41(35,"span",8),e.EFF(36,"-"),e.k0s(),e.j41(37,"span",8),e.EFF(38,"-"),e.k0s(),e.j41(39,"span",8),e.EFF(40,"-"),e.k0s(),e.j41(41,"span",8),e.EFF(42,"-"),e.k0s(),e.j41(43,"span",8),e.EFF(44,"-"),e.k0s(),e.j41(45,"span",8),e.EFF(46,"-"),e.k0s(),e.j41(47,"span",8),e.EFF(48,"-"),e.k0s(),e.j41(49,"span",8),e.EFF(50,"-"),e.k0s(),e.j41(51,"span",8),e.EFF(52,"-"),e.k0s(),e.j41(53,"span",8),e.EFF(54,"-"),e.k0s(),e.j41(55,"span",8),e.EFF(56,"-"),e.k0s(),e.j41(57,"span",8),e.EFF(58,"-"),e.k0s(),e.j41(59,"span",8),e.EFF(60,"-"),e.k0s(),e.j41(61,"span",8),e.EFF(62,"-"),e.k0s(),e.j41(63,"span",8),e.EFF(64,"-"),e.k0s(),e.j41(65,"span",8),e.EFF(66,"19:30"),e.k0s()()(),e.j41(67,"div",9),e.Z7z(68,he,1,1,null,null,e.Vm6),e.k0s()()()()(),e.j41(70,"mat-tab",3)(71,"div")(72,"ng-scrollbar",4)(73,"div",5)(74,"div",6)(75,"div",7)(76,"span",8),e.EFF(77,"8:00"),e.k0s(),e.j41(78,"span",8),e.EFF(79,"-"),e.k0s(),e.j41(80,"span",8),e.EFF(81,"-"),e.k0s(),e.j41(82,"span",8),e.EFF(83,"-"),e.k0s(),e.j41(84,"span",8),e.EFF(85,"-"),e.k0s(),e.j41(86,"span",8),e.EFF(87,"-"),e.k0s(),e.j41(88,"span",8),e.EFF(89,"-"),e.k0s(),e.j41(90,"span",8),e.EFF(91,"-"),e.k0s(),e.j41(92,"span",8),e.EFF(93,"-"),e.k0s(),e.j41(94,"span",8),e.EFF(95,"-"),e.k0s(),e.j41(96,"span",8),e.EFF(97,"-"),e.k0s(),e.j41(98,"span",8),e.EFF(99,"-"),e.k0s(),e.j41(100,"span",8),e.EFF(101,"-"),e.k0s(),e.j41(102,"span",8),e.EFF(103,"-"),e.k0s(),e.j41(104,"span",8),e.EFF(105,"-"),e.k0s(),e.j41(106,"span",8),e.EFF(107,"-"),e.k0s(),e.j41(108,"span",8),e.EFF(109,"-"),e.k0s(),e.j41(110,"span",8),e.EFF(111,"-"),e.k0s(),e.j41(112,"span",8),e.EFF(113,"-"),e.k0s(),e.j41(114,"span",8),e.EFF(115,"-"),e.k0s(),e.j41(116,"span",8),e.EFF(117,"-"),e.k0s(),e.j41(118,"span",8),e.EFF(119,"-"),e.k0s(),e.j41(120,"span",8),e.EFF(121,"-"),e.k0s(),e.j41(122,"span",8),e.EFF(123,"-"),e.k0s(),e.j41(124,"span",8),e.EFF(125,"-"),e.k0s(),e.j41(126,"span",8),e.EFF(127,"-"),e.k0s(),e.j41(128,"span",8),e.EFF(129,"19:30"),e.k0s()()(),e.j41(130,"div",9),e.Z7z(131,Fe,1,1,null,null,e.Vm6),e.k0s()()()()(),e.j41(133,"mat-tab",3)(134,"div")(135,"ng-scrollbar",4)(136,"div",5)(137,"div",6)(138,"div",7)(139,"span",8),e.EFF(140,"8:00"),e.k0s(),e.j41(141,"span",8),e.EFF(142,"-"),e.k0s(),e.j41(143,"span",8),e.EFF(144,"-"),e.k0s(),e.j41(145,"span",8),e.EFF(146,"-"),e.k0s(),e.j41(147,"span",8),e.EFF(148,"-"),e.k0s(),e.j41(149,"span",8),e.EFF(150,"-"),e.k0s(),e.j41(151,"span",8),e.EFF(152,"-"),e.k0s(),e.j41(153,"span",8),e.EFF(154,"-"),e.k0s(),e.j41(155,"span",8),e.EFF(156,"-"),e.k0s(),e.j41(157,"span",8),e.EFF(158,"-"),e.k0s(),e.j41(159,"span",8),e.EFF(160,"-"),e.k0s(),e.j41(161,"span",8),e.EFF(162,"-"),e.k0s(),e.j41(163,"span",8),e.EFF(164,"-"),e.k0s(),e.j41(165,"span",8),e.EFF(166,"-"),e.k0s(),e.j41(167,"span",8),e.EFF(168,"-"),e.k0s(),e.j41(169,"span",8),e.EFF(170,"-"),e.k0s(),e.j41(171,"span",8),e.EFF(172,"-"),e.k0s(),e.j41(173,"span",8),e.EFF(174,"-"),e.k0s(),e.j41(175,"span",8),e.EFF(176,"-"),e.k0s(),e.j41(177,"span",8),e.EFF(178,"-"),e.k0s(),e.j41(179,"span",8),e.EFF(180,"-"),e.k0s(),e.j41(181,"span",8),e.EFF(182,"-"),e.k0s(),e.j41(183,"span",8),e.EFF(184,"-"),e.k0s(),e.j41(185,"span",8),e.EFF(186,"-"),e.k0s(),e.j41(187,"span",8),e.EFF(188,"-"),e.k0s(),e.j41(189,"span",8),e.EFF(190,"-"),e.k0s(),e.j41(191,"span",8),e.EFF(192,"19:30"),e.k0s()()(),e.j41(193,"div",9),e.Z7z(194,be,1,1,null,null,e.Vm6),e.k0s()()()()()()()()),2&n&&(e.R7$(7),e.Y8G("label",o.getOggi()),e.R7$(61),e.Dyx(o.sessioni),e.R7$(2),e.Y8G("label",o.getDomani()),e.R7$(61),e.Dyx(o.sessioni),e.R7$(2),e.Y8G("label",o.getDopoDomani()),e.R7$(61),e.Dyx(o.sessioni))},dependencies:[k.G,p.RN,p.m2,p.MM,p.dh,S.mq,S.T8,z.X4,z.Jc,B.Id,B.Yh,h.iI,h.Wk,g.MD,g.PV],encapsulation:2})}}return i})(),ke=(()=>{class i{constructor(){}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-dashboard"]],standalone:!0,features:[e.aNF],decls:5,vars:0,consts:[[1,"row"],[1,"col-lg-12"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"app-welcome-card"),e.k0s(),e.j41(3,"div",1),e.nrm(4,"app-upcoming-schedules"),e.k0s()())},dependencies:[fe,Ee],encapsulation:2})}}return i})();var C=f(8834),u=f(3719),x=f(9213),w=f(9631),$=f(2798),I=f(450),s=f(9417),D=f(5084),O=f(5263),R=f(6600),b=f(5324),Y=f(5574);function je(i,r){1&i&&(e.j41(0,"mat-card",2)(1,"mat-card-content",49)(2,"mat-card-title",50),e.EFF(3," Devi inserire i dati angrafici per poter utilizzare il sistema! "),e.k0s()()())}function xe(i,r){1&i&&(e.j41(0,"div",51)(1,"mat-icon"),e.nrm(2,"i-tabler",52),e.k0s()(),e.EFF(3," Account "))}function we(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Vecchia password "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Ae(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Nuova password "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function ye(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Conferma della nuova password "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Re(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"La password inserita non corrisponde, "),e.j41(2,"strong"),e.EFF(3,"si prega di riprovare!"),e.k0s()())}function Me(i,r){1&i&&(e.j41(0,"div",51)(1,"mat-icon"),e.nrm(2,"i-tabler",53),e.k0s()(),e.EFF(3," Anagrafica "))}function Te(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Nome "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function De(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Cognome "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Se(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Codice Fiscale "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function $e(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Nazionalit\xe0 "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Ie(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Nazione di nascita \xe8 "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Ve(i,r){if(1&i&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&i){const t=r.$implicit;e.Y8G("value",t.nome_comune),e.R7$(),e.JRh(t.nome_comune)}}function Le(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"La selezione del comune di nascita \xe8 "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Ge(i,r){if(1&i&&(e.j41(0,"div",9)(1,"mat-label",20),e.EFF(2,"Comune di Nascita "),e.k0s(),e.j41(3,"mat-form-field",40)(4,"mat-select",41),e.DNE(5,Ve,2,2,"mat-option",46),e.k0s(),e.DNE(6,Le,4,0,"mat-error"),e.k0s()()),2&i){const t=e.XpG();e.R7$(4),e.Y8G("formControl",t.anagraficaFormControl.controls.comune_nascita)("errorStateMatcher",t.matcher),e.R7$(),e.Y8G("ngForOf",t.comuni),e.R7$(),e.vxM(t.anagraficaFormControl.controls.comune_nascita.hasError("required")?6:-1)}}function Ne(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Data di nascita "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Xe(i,r){if(1&i&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&i){const t=r.$implicit;e.Y8G("value",t.nome_comune),e.R7$(),e.JRh(t.nome_comune)}}function Be(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"La selezione della citt\xe0 \xe8 "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Oe(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Indirizzo "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Ye(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Codice di avviamento postale "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function qe(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Titolo di studio "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Pe(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Numero di telefono "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Je(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Numero di cellulare "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}class Ue{isErrorState(r,t){return!!(r&&r.invalid&&(r.dirty||r.touched||t&&t.submitted))}}let He=(()=>{class i{checkPasswordValidator(){return t=>{if(t&&t.controls&&"newpwd"in t.controls&&"newpwd_check"in t.controls){const a=t.controls.newpwd_check;return t.controls.newpwd.value!==a.value?(a.setErrors({notEquivalent:!0}),{notEquivalent:!0}):a.value?(a.setErrors(null),null):(a.setErrors({required:!0}),{required:!0})}return null}}constructor(t,n){this.api=t,this.settings=n,this.fieldOldPasswordType=!1,this.fieldNewPasswordType=!1,this.fieldNewCheckPasswordType=!1,this.avatarLocation="/assets/images/logos/no-logo.webp",this.matcher=new Ue,this.passwordFormControl=new s.gE({oldpwd:new s.MJ(null,[s.k0.required]),newpwd:new s.MJ(null,[s.k0.required]),newpwd_check:new s.MJ(null,[s.k0.required,this.checkPasswordValidator()])}),this.anagraficaFormControl=new s.gE({id_user_info:new s.MJ(null),id_user:new s.MJ(null),nome:new s.MJ("",[s.k0.required,s.k0.nullValidator]),cognome:new s.MJ("",[s.k0.required,s.k0.nullValidator]),cdf:new s.MJ("",[s.k0.required,s.k0.nullValidator]),partita_iva:new s.MJ(""),indirizzo:new s.MJ("",[s.k0.required,s.k0.nullValidator]),nazionalita:new s.MJ("",[s.k0.required,s.k0.nullValidator]),nazione_nascita:new s.MJ("",[s.k0.required]),datanascita:new s.MJ("",[s.k0.required,s.k0.nullValidator]),comune_nascita:new s.MJ("",[s.k0.required,s.k0.nullValidator]),titolo_studio:new s.MJ("",[s.k0.required,s.k0.nullValidator]),citta:new s.MJ("",[s.k0.required,s.k0.nullValidator]),cap:new s.MJ(null,[s.k0.required,s.k0.nullValidator]),telefono:new s.MJ("",[s.k0.required,s.k0.nullValidator]),cellulare:new s.MJ(""),avatar_location:new s.MJ(""),sede:new s.MJ(""),iva:new s.MJ(""),iban:new s.MJ(""),marketing:new s.MJ(0),insert_id_user:new s.MJ(0),updated_time:new s.MJ("")}),this.passwordFormControl.setValidators(this.checkPasswordValidator())}ngOnInit(){var t=this;return(0,m.A)(function*(){t.userInfo=yield t.api.call("getMyUserInfo"),t.marketingCheck=0!=t.userInfo.marketing,t.api.avatarLocation$.subscribe(n=>{n&&(t.avatarLocation=n)}),t.comuni=yield t.api.call("getcomuni"),t.anagraficaFormControl.setValue(t.userInfo),t.anagraficaFormControl.get("datanascita")?.valueChanges.subscribe(n=>{if(!n)return;let o=new Date(new Date(n).setHours(new Date(n).getHours()+2));t.anagraficaFormControl.get("datanascita")?.setValue(o.toISOString().substring(0,10),{emitEvent:!1})})})()}aggiornaAnagrafica(t){var n=this;return(0,m.A)(function*(){t&&!n.anagraficaFormControl.valid||(yield n.api.call("updateUserInfo",n.anagraficaFormControl.value,!0),localStorage.setItem("profile_check","true"))})()}aggiornaPassword(){var t=this;return(0,m.A)(function*(){t.checkPasswordValidator()&&(yield t.api.call("modificapassword",{oldpwd:t.passwordFormControl.controls.oldpwd.value,newpwd:t.passwordFormControl.controls.newpwd.value},!0))})()}aggiornaMarketing(){var t=this;return(0,m.A)(function*(){t.anagraficaFormControl.controls.marketing.setValue(t.marketingCheck?1:0),t.aggiornaAnagrafica()})()}aggiornaLogo(t){var n=this;return(0,m.A)(function*(){const a=t.target.files;(yield n.api.call("updateAvatarLocation",{files:a},!1,!0))&&n.api.getImageProfileBE()})()}resetLogo(){var t=this;return(0,m.A)(function*(){yield t.api.call("resetAvatarLocation"),t.api.getImageProfileBE()})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-anagrafica"]],standalone:!0,features:[e.Jv_([(0,R.aw)(),{provide:b.MJ,useClass:O.ZG,useFactory:Y.a},{provide:R.Ju,useValue:"it-IT"}]),e.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(n,o){if(1&n){const a=e.RV6();e.DNE(0,je,4,0,"mat-card",2),e.j41(1,"mat-card",3)(2,"mat-card-content",4)(3,"mat-tab-group",5)(4,"mat-tab"),e.DNE(5,xe,4,0,"ng-template",6),e.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"),e.EFF(12,"Foto del profilo"),e.k0s(),e.j41(13,"mat-card-subtitle",11),e.EFF(14,"Carica qui la tua foto"),e.k0s(),e.j41(15,"div",12),e.nrm(16,"img",13),e.j41(17,"div",14)(18,"input",15,0),e.bIt("change",function(c){return e.eBV(a),e.Njj(o.aggiornaLogo(c))}),e.k0s(),e.j41(20,"button",16),e.bIt("click",function(){e.eBV(a);const c=e.sdS(19);return e.Njj(c.click())}),e.EFF(21," Carica "),e.k0s(),e.j41(22,"button",17),e.bIt("click",function(){return e.eBV(a),e.Njj(o.resetLogo())}),e.EFF(23,"Reset"),e.k0s()(),e.j41(24,"span",18),e.EFF(25,"Ammessi solo PNG di dimensione massima 800K"),e.k0s()()()()(),e.j41(26,"div",9)(27,"mat-card",3)(28,"mat-card-content",10)(29,"mat-card-title"),e.EFF(30,"Cambia Password"),e.k0s(),e.j41(31,"mat-card-subtitle",11),e.EFF(32,"Utilizza questo modulo per modificare la tua password"),e.k0s(),e.j41(33,"form",19),e.bIt("ngSubmit",function(){return e.eBV(a),e.Njj(o.aggiornaPassword())}),e.j41(34,"mat-label",20),e.EFF(35,"Password Attuale"),e.k0s(),e.j41(36,"mat-form-field",21),e.nrm(37,"input",22),e.j41(38,"mat-icon",23),e.bIt("click",function(){return e.eBV(a),e.Njj(o.fieldOldPasswordType=!o.fieldOldPasswordType)}),e.EFF(39,"remove_red_eye"),e.k0s(),e.DNE(40,we,4,0,"mat-error"),e.k0s(),e.j41(41,"mat-label",20),e.EFF(42,"Nuova Password"),e.k0s(),e.j41(43,"mat-form-field",21),e.nrm(44,"input",22),e.j41(45,"mat-icon",23),e.bIt("click",function(){return e.eBV(a),e.Njj(o.fieldNewPasswordType=!o.fieldNewPasswordType)}),e.EFF(46,"remove_red_eye"),e.k0s(),e.DNE(47,Ae,4,0,"mat-error"),e.k0s(),e.j41(48,"mat-label",20),e.EFF(49,"Conferma Password"),e.k0s(),e.j41(50,"mat-form-field",21),e.nrm(51,"input",22),e.j41(52,"mat-icon",23),e.bIt("click",function(){return e.eBV(a),e.Njj(o.fieldNewCheckPasswordType=!o.fieldNewCheckPasswordType)}),e.EFF(53,"remove_red_eye"),e.k0s(),e.DNE(54,ye,4,0,"mat-error")(55,Re,4,0,"mat-error"),e.k0s(),e.j41(56,"div",24)(57,"button",25),e.EFF(58,"Aggiorna Password"),e.k0s()()()()()(),e.j41(59,"div",26)(60,"mat-card",3)(61,"mat-card-content",10)(62,"mat-card-title"),e.EFF(63,"Comunicazioni Pubblicitarie"),e.k0s(),e.j41(64,"div",27)(65,"button",28),e.nrm(66,"i-tabler",29),e.k0s(),e.j41(67,"div",30)(68,"h5",31),e.EFF(69," Ricevi via email le promozioni dedicate ai centri. "),e.k0s(),e.j41(70,"span",32),e.EFF(71,"Seleziona se ricevere o meno le nostre promozioni a te dedicate"),e.k0s()(),e.j41(72,"mat-slide-toggle",33),e.bIt("change",function(){return e.eBV(a),e.Njj(o.aggiornaMarketing())}),e.mxI("ngModelChange",function(c){return e.eBV(a),e.DH7(o.marketingCheck,c)||(o.marketingCheck=c),e.Njj(c)}),e.k0s()()()()()()()(),e.j41(73,"mat-tab"),e.DNE(74,Me,4,0,"ng-template",6),e.j41(75,"mat-card-content",7)(76,"div",34)(77,"div",35)(78,"mat-card",3)(79,"mat-card-content")(80,"form",36),e.bIt("ngSubmit",function(){return e.eBV(a),e.Njj(o.aggiornaAnagrafica())}),e.j41(81,"mat-card-title"),e.EFF(82,"Le tue informazioni"),e.k0s(),e.j41(83,"div",37)(84,"mat-card-subtitle",11),e.EFF(85,"Per cambiare le tue informazioni, edita qui i tuoi dati e poi clicca sul pulsante salva."),e.k0s()(),e.j41(86,"div",38)(87,"div",9)(88,"mat-label",20),e.EFF(89,"Nome"),e.k0s(),e.j41(90,"mat-form-field",21),e.nrm(91,"input",39),e.DNE(92,Te,4,0,"mat-error"),e.k0s()(),e.j41(93,"div",9)(94,"mat-label",20),e.EFF(95,"Cognome"),e.k0s(),e.j41(96,"mat-form-field",21),e.nrm(97,"input",39),e.DNE(98,De,4,0,"mat-error"),e.k0s()(),e.j41(99,"div",9)(100,"mat-label",20),e.EFF(101,"Codice Fiscale"),e.k0s(),e.j41(102,"mat-form-field",21),e.nrm(103,"input",39),e.DNE(104,Se,4,0,"mat-error"),e.k0s()(),e.j41(105,"div",9)(106,"mat-label",20),e.EFF(107,"Nazionalit\xe0"),e.k0s(),e.j41(108,"mat-form-field",21),e.nrm(109,"input",39),e.DNE(110,$e,4,0,"mat-error"),e.k0s()(),e.j41(111,"div",9)(112,"mat-label",20),e.EFF(113,"Nazione di Nascita "),e.k0s(),e.j41(114,"mat-form-field",40)(115,"mat-select",41)(116,"mat-option",42),e.EFF(117,"Italia"),e.k0s(),e.j41(118,"mat-option",43),e.EFF(119,"Estero"),e.k0s()(),e.DNE(120,Ie,4,0,"mat-error"),e.k0s()(),e.DNE(121,Ge,7,4,"div",9),e.j41(122,"div",9)(123,"mat-label",20),e.EFF(124,"Data di Nascita"),e.k0s(),e.j41(125,"mat-form-field",21),e.nrm(126,"input",44)(127,"mat-datepicker-toggle",45)(128,"mat-datepicker",null,1),e.DNE(130,Ne,4,0,"mat-error"),e.k0s()(),e.j41(131,"div",9)(132,"mat-label",20),e.EFF(133,"Citt\xe0 di residenza"),e.k0s(),e.j41(134,"mat-form-field",40)(135,"mat-select",41),e.DNE(136,Xe,2,2,"mat-option",46),e.k0s(),e.DNE(137,Be,4,0,"mat-error"),e.k0s()(),e.j41(138,"div",9)(139,"mat-label",20),e.EFF(140,"Indirizzo di residenza"),e.k0s(),e.j41(141,"mat-form-field",21),e.nrm(142,"input",39),e.DNE(143,Oe,4,0,"mat-error"),e.k0s()(),e.j41(144,"div",9)(145,"mat-label",20),e.EFF(146,"Cap di residenza"),e.k0s(),e.j41(147,"mat-form-field",21),e.nrm(148,"input",47),e.DNE(149,Ye,4,0,"mat-error"),e.k0s()(),e.j41(150,"div",9)(151,"mat-label",20),e.EFF(152,"Titolo di studio"),e.k0s(),e.j41(153,"mat-form-field",21),e.nrm(154,"input",39),e.DNE(155,qe,4,0,"mat-error"),e.k0s()(),e.j41(156,"div",9)(157,"mat-label",20),e.EFF(158,"Telefono"),e.k0s(),e.j41(159,"mat-form-field",21),e.nrm(160,"input",39),e.DNE(161,Pe,4,0,"mat-error"),e.k0s()(),e.j41(162,"div",9)(163,"mat-label",20),e.EFF(164,"Cellulare"),e.k0s(),e.j41(165,"mat-form-field",21),e.nrm(166,"input",39),e.DNE(167,Je,4,0,"mat-error"),e.k0s()()(),e.j41(168,"div",24)(169,"button",48),e.EFF(170,"Salva Modifiche"),e.k0s()()()()()()()()()()()()}if(2&n){const a=e.sdS(129);e.vxM(o.settings.profileCheck()?0:-1),e.R7$(3),e.Y8G("selectedIndex",1),e.R7$(13),e.FS9("ngSrc",o.avatarLocation),e.R7$(17),e.Y8G("formGroup",o.passwordFormControl),e.R7$(4),e.Y8G("type",o.fieldOldPasswordType?"text":"password")("formControl",o.passwordFormControl.controls.oldpwd)("errorStateMatcher",o.matcher),e.R7$(3),e.vxM(o.passwordFormControl.controls.oldpwd.hasError("required")?40:-1),e.R7$(4),e.Y8G("type",o.fieldNewPasswordType?"text":"password")("formControl",o.passwordFormControl.controls.newpwd)("errorStateMatcher",o.matcher),e.R7$(3),e.vxM(o.passwordFormControl.controls.newpwd.hasError("required")?47:-1),e.R7$(4),e.Y8G("type",o.fieldNewCheckPasswordType?"text":"password")("formControl",o.passwordFormControl.controls.newpwd_check)("errorStateMatcher",o.matcher),e.R7$(3),e.vxM(o.passwordFormControl.controls.newpwd_check.hasError("required")?54:-1),e.R7$(),e.vxM(o.passwordFormControl.controls.newpwd.value!=o.passwordFormControl.controls.newpwd_check.value?55:-1),e.R7$(2),e.Y8G("disabled",!o.passwordFormControl.valid||o.passwordFormControl.controls.newpwd.value!=o.passwordFormControl.controls.newpwd_check.value),e.R7$(15),e.R50("ngModel",o.marketingCheck),e.R7$(8),e.Y8G("formGroup",o.anagraficaFormControl),e.R7$(11),e.Y8G("formControl",o.anagraficaFormControl.controls.nome)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.nome.hasError("required")?92:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.cognome)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.cognome.hasError("required")?98:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.cdf)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.cdf.hasError("required")?104:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.nazionalita)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.nazionalita.hasError("required")?110:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.nazione_nascita)("errorStateMatcher",o.matcher),e.R7$(5),e.vxM(o.anagraficaFormControl.controls.nazione_nascita.hasError("required")?120:-1),e.R7$(),e.vxM("italia"==o.anagraficaFormControl.value.nazione_nascita?121:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.datanascita)("matDatepicker",a)("errorStateMatcher",o.matcher),e.R7$(),e.Y8G("for",a),e.R7$(3),e.vxM(o.anagraficaFormControl.controls.datanascita.hasError("required")?130:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.citta)("errorStateMatcher",o.matcher),e.R7$(),e.Y8G("ngForOf",o.comuni),e.R7$(),e.vxM(o.anagraficaFormControl.controls.citta.hasError("required")?137:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.indirizzo)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.indirizzo.hasError("required")?143:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.cap)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.cap.hasError("required")?149:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.titolo_studio)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.titolo_studio.hasError("required")?155:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.telefono)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.telefono.hasError("required")?161:-1),e.R7$(5),e.Y8G("formControl",o.anagraficaFormControl.controls.telefono)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.anagraficaFormControl.controls.telefono.hasError("required")?167:-1)}},dependencies:[g.kt,g.pM,p.Hu,p.RN,p.m2,p.Lc,p.dh,D.X6,D.Vh,D.bZ,D.bU,x.m_,x.An,z.X4,z.Jc,S.RI,S.ES,S.mq,S.T8,u.RG,u.rl,u.nJ,u.TL,u.yw,I.mV,I.sG,$.Ve,$.VO,R.wT,w.fS,w.fg,C.Hl,C.$z,C.$0,s.X1,s.qT,s.me,s.Q0,s.BC,s.cb,s.l_,s.j4,s.YN,s.vS],encapsulation:2})}}return i})();var ie=f(3649),T=f(4006);const Qe=(i,r)=>r.id_user,We=(i,r)=>r.id_corso;function Ze(i,r){if(1&i&&(e.j41(0,"mat-option",8),e.EFF(1),e.k0s()),2&i){const t=r.$implicit;e.Y8G("value",t.id_user),e.R7$(),e.Lme(" ",t.nome," ",t.cognome," ")}}function Ke(i,r){if(1&i&&(e.j41(0,"mat-option",10),e.EFF(1),e.k0s()),2&i){const t=r.$implicit;e.Y8G("value",t.id_corso)("disabled",0==t.active||0==t.attivo),e.R7$(),e.SpI(" ",t.titolo," ")}}function et(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Data di inizio non valida!"),e.k0s())}function tt(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Data di fine non valida!"),e.k0s())}let it=(()=>{class i{constructor(t,n){this.dialogRef=t,this.api=n;const o=new Date;this.minDate=new Date,this.maxDate=new Date(o.getFullYear(),o.getMonth(),o.getDay()+45),this.eventForm=new s.gE({id_supervisore:new s.MJ(null),id_corso:new s.MJ(null),note:new s.MJ(null),data_inizio_sessione:new s.MJ(new Date),data_fine_sessione:new s.MJ(new Date)})}ngOnInit(){var t=this;return(0,m.A)(function*(){t.supervisori=yield t.api.call("getSupervisori"),t.corsi=yield t.api.call("getCorsi")})()}inserisciSessione(){var t=this;return(0,m.A)(function*(){let n=t.eventForm.controls.data_inizio_sessione.value,o=t.eventForm.controls.data_fine_sessione.value,a={id_supervisore:t.eventForm.controls.id_supervisore.value,id_corso:t.eventForm.controls.id_corso.value,note:t.eventForm.controls.note.value,data_inizio_sessione:new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0-n.getTimezoneOffset(),1),data_fine_sessione:new Date(o.getFullYear(),o.getMonth(),o.getDate(),23,59-n.getTimezoneOffset(),59)};yield t.api.call("inserisciSessione",a,!0),t.dialogRef.close(!0)})()}chiudi(){this.dialogRef.close(!1)}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(T.CP),e.rXU(v.W))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-aggiungi-sessioneesame-dialog"]],standalone:!0,features:[e.Jv_([(0,R.aw)(),{provide:R.Ju,useValue:"it-IT"}]),e.aNF],decls:38,vars:8,consts:[["picker",""],["mat-dialog-content","",2,"max-width","500px"],[1,"mat-headline-6","m-b-16"],["name","eventForm",1,"event-form",3,"formGroup"],[1,"row"],[1,"col-12"],["appearance","outline",1,"w-100"],["formControlName","id_supervisore","required",""],[3,"value"],["formControlName","id_corso","required",""],[3,"value","disabled"],["matInput","","name","note","formControlName","note","placeholder","Note"],[3,"rangePicker","min","max"],["matStartDate","","formControlName","data_inizio_sessione","placeholder","Data inizio"],["matEndDate","","formControlName","data_fine_sessione","placeholder","Data fine"],["matIconSuffix","",3,"for"],[1,"col-sm-12","text-center"],["mat-flat-button","","color","primary","aria-label","Salva",3,"click","disabled"],["mat-flat-button","","color","secondary","aria-label","Annulla",3,"click"]],template:function(n,o){if(1&n){const a=e.RV6();e.j41(0,"div",1)(1,"h4",2),e.EFF(2,"Crea nuova sessione"),e.k0s(),e.j41(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),e.EFF(8,"Supervisore"),e.k0s(),e.j41(9,"mat-select",7),e.Z7z(10,Ze,2,3,"mat-option",8,Qe),e.k0s()(),e.j41(12,"mat-form-field",6)(13,"mat-label"),e.EFF(14,"Corso"),e.k0s(),e.j41(15,"mat-select",9),e.Z7z(16,Ke,2,3,"mat-option",10,We),e.k0s()(),e.j41(18,"mat-form-field",6),e.nrm(19,"input",11),e.k0s()(),e.j41(20,"div",5)(21,"mat-form-field",6)(22,"mat-label"),e.EFF(23,"Seleziona le date di esame"),e.k0s(),e.j41(24,"mat-date-range-input",12),e.nrm(25,"input",13)(26,"input",14),e.k0s(),e.nrm(27,"mat-datepicker-toggle",15)(28,"mat-date-range-picker",null,0),e.DNE(30,et,2,0,"mat-error")(31,tt,2,0,"mat-error"),e.k0s()()(),e.j41(32,"div",16)(33,"button",17),e.bIt("click",function(){return e.eBV(a),e.Njj(o.inserisciSessione())}),e.EFF(34," Inserisci Sessione "),e.k0s(),e.EFF(35," \xa0 "),e.j41(36,"button",18),e.bIt("click",function(){return e.eBV(a),e.Njj(o.chiudi())}),e.EFF(37," Annulla "),e.k0s()()()()}if(2&n){const a=e.sdS(29);e.R7$(3),e.Y8G("formGroup",o.eventForm),e.R7$(7),e.Dyx(o.supervisori),e.R7$(6),e.Dyx(o.corsi),e.R7$(8),e.Y8G("rangePicker",a)("min",o.minDate)("max",o.maxDate),e.R7$(3),e.Y8G("for",a),e.R7$(3),e.vxM(o.eventForm.controls.data_inizio_sessione.hasError("matStartDateInvalid")?30:-1),e.R7$(),e.vxM(o.eventForm.controls.data_fine_sessione.hasError("matEndDateInvalid")?31:-1),e.R7$(2),e.Y8G("disabled",o.eventForm.invalid)}},dependencies:[k.G,R.wT,D.bU,D.el,D.xR,D.IG,D.SG,u.rl,u.nJ,u.TL,u.yw,w.fg,$.VO,C.$z,T.Yi,s.YN,s.qT,s.me,s.BC,s.cb,s.YS,s.X1,s.j4,s.JD],changeDetection:0})}}return i})();var ot=f(7518),nt=f(5818),at=f(1413);(0,g.EO)(ie.A);let rt=(()=>{class i{constructor(t,n,o,a){this.dialogRef=t,this.router=n,this.route=o,this.data=a,console.log("passato:",a)}apriSessione(){this.dialogRef.close(),this.router.navigate(["/centri/sessioniesame/visualizza-sessioneesame/"+this.data.event.id_sessione],{relativeTo:this.route})}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(T.CP),e.rXU(h.Ix),e.rXU(h.nX),e.rXU(T.Vh))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-mostrapassword-sessioneesame-dialog"]],standalone:!0,features:[e.Jv_([(0,R.aw)(),b.jc,{provide:b.MJ,useClass:O.ZG,useFactory:Y.a},b.AD]),e.aNF],decls:15,vars:1,consts:[[1,"cardWithShadow"],[1,"p-y-24","text-center"],["src","/assets/images/backgrounds/password-key.png","alt","img","width","300"],[1,"m-b-0"],[1,"text-primary"],["mat-flat-button","","color","primary","aria-label","SAVE",3,"click"],["mat-flat-button","","color","primary",3,"click"]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content",1),e.nrm(2,"img",2),e.j41(3,"mat-card-title",3),e.EFF(4,"Password Sessione: "),e.nrm(5,"br"),e.j41(6,"div",4)(7,"b"),e.EFF(8),e.k0s()()(),e.nrm(9,"br"),e.j41(10,"button",5),e.bIt("click",function(){return o.apriSessione()}),e.EFF(11," Apri Scheda Sessione "),e.k0s(),e.EFF(12," \xa0 "),e.j41(13,"button",6),e.bIt("click",function(){return o.dialogRef.close()}),e.EFF(14,"Chiudi"),e.k0s()()()),2&n&&(e.R7$(8),e.JRh(o.data.event.password))},dependencies:[k.G,p.RN,p.m2,p.dh,C.$z,s.YN,s.X1,g.MD,R.WX,T.hM,D.X6],encapsulation:2,changeDetection:0})}}return i})();var U=f(5911);function st(i,r){if(1&i){const t=e.RV6();e.j41(0,"mwl-calendar-month-view",13),e.bIt("dayClicked",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.dayClicked(o.day))})("eventClicked",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.apriSessione(o.event))}),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("viewDate",t.viewDate)("events",t.events)("weekStartsOn",t.weekStartsOn)("refresh",t.refresh)("activeDayIsOpen",t.activeDayIsOpen)}}function lt(i,r){if(1&i){const t=e.RV6();e.j41(0,"mwl-calendar-week-view",14),e.bIt("eventClicked",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.apriSessione(o.event))}),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("viewDate",t.viewDate)("weekStartsOn",t.weekStartsOn)("events",t.events)("refresh",t.refresh)}}function ct(i,r){if(1&i){const t=e.RV6();e.j41(0,"mwl-calendar-day-view",15),e.bIt("eventClicked",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.apriSessione(o.event))}),e.k0s()}if(2&i){const t=e.XpG();e.Y8G("viewDate",t.viewDate)("events",t.events)("refresh",t.refresh)}}(0,g.EO)(ie.A);let mt=(()=>{class i{constructor(t,n,o,a,l){this.dialog=t,this.api=n,this.settings=o,this.router=a,this.route=l,this.weekStartsOn=1,this.dialogMostraPassword=Object.create(e.C4Q),this.dialogAggiungiSessione=Object.create(e.C4Q),this.dialogInfoSessione=Object.create(e.C4Q),this.lastCloseResult="",this.actionsAlignment="",this.numTemplateOpens=0,this.view="month",this.viewDate=new Date,this.actions=[{label:'<i class="fas fa-regular fa-key text-success"></i>',a11yLabel:"Mostra Password",onClick:({event:c})=>{this.modaleMostraPassword(c)}}],this.refresh=new at.B,this.events=[],this.activeDayIsOpen=!0,this.doc=(0,e.WQX)(g.qQ)}dayClicked({date:t,events:n}){(0,ot.t)(t,this.viewDate)&&((0,nt.r)(this.viewDate,t)&&!0===this.activeDayIsOpen||0===n.length?this.activeDayIsOpen=!1:(this.activeDayIsOpen=!0,this.viewDate=t))}modaleMostraPassword(t){this.dialogMostraPassword=this.dialog.open(rt,{data:{event:t}})}apriSessione(t){this.router.navigate(["/formatori/sessioniesame/visualizza-sessioneesame/"+t.id],{relativeTo:this.route})}modaleEditaEvento(t){}modaleAggiungiEvento(){this.dialogAggiungiSessione=this.dialog.open(it,{panelClass:"calendar-form-dialog",data:{action:"add",date:new Date}}),this.dialogAggiungiSessione.afterClosed().subscribe(t=>{t&&this.reload()})}deleteEvent(t){this.events=this.events.filter(n=>n!==t)}setView(t){this.view=t}ngOnInit(){var t=this;return(0,m.A)(function*(){t.reload()})()}reload(){var t=this;return(0,m.A)(function*(){let n=yield t.api.call("getSessioni");t.events=[];for(let o=0;o<n.length;o++){let a=n[o].colore?n[o].colore:"#fa896b",l="<b>"+n[o].titolo+"</b> - dal: <b>"+t.settings.convertInItData(n[o].data_inizio_sessione)+"</b> al: <b style='color:"+a+";'>"+t.settings.convertInItData(n[o].data_fine_sessione)+"</b>",c={start:new Date(n[o].data_inizio_sessione),end:new Date(n[o].data_fine_sessione),title:l,color:{primary:a,secondary:"#ecf2ff"},password:n[o].password,id_supervisore:n[o].id_supervisore,id_corso:n[o].id_corso,id_sessione:n[o].id_sessione,id:n[o].id_sessione,note:n[o].note,actions:t.actions};t.events.push(c)}t.refresh.next(!0)})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(T.bZ),e.rXU(v.W),e.rXU(j.P),e.rXU(h.Ix),e.rXU(h.nX))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-sessioniesame"]],standalone:!0,features:[e.Jv_([(0,R.aw)(),b.jc,{provide:b.MJ,useClass:O.ZG,useFactory:Y.a},b.AD,{provide:R.Ju,useValue:"it-IT"}]),e.aNF],decls:37,vars:26,consts:[[1,"cardWithShadow","overflow-hidden"],["color","primary",1,"no-shadow"],[1,"d-flex","align-items-center","w-100"],[1,"m-l-auto","d-flex","align-items-center"],["mat-button","",3,"click"],["mat-icon-button","",3,"click"],["mat-icon-button","","mwlCalendarPreviousView","",3,"viewDateChange","view","viewDate"],["mat-icon-button","","mwlCalendarToday","",3,"viewDateChange","viewDate"],["mat-icon-button","","mwlCalendarNextView","",3,"viewDateChange","view","viewDate"],[3,"ngSwitch"],["locale","it",3,"viewDate","events","weekStartsOn","refresh","activeDayIsOpen","dayClicked","eventClicked",4,"ngSwitchCase"],["locale","it",3,"viewDate","weekStartsOn","events","refresh","eventClicked",4,"ngSwitchCase"],["locale","it",3,"viewDate","events","refresh","eventClicked",4,"ngSwitchCase"],["locale","it",3,"dayClicked","eventClicked","viewDate","events","weekStartsOn","refresh","activeDayIsOpen"],["locale","it",3,"eventClicked","viewDate","weekStartsOn","events","refresh"],["locale","it",3,"eventClicked","viewDate","events","refresh"]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-toolbar",1)(2,"mat-toolbar-row")(3,"div",2)(4,"span"),e.EFF(5),e.nI1(6,"calendarDate"),e.k0s(),e.j41(7,"div",3)(8,"button",4),e.bIt("click",function(){return o.view="month"}),e.EFF(9," Mese "),e.k0s(),e.j41(10,"button",4),e.bIt("click",function(){return o.view="week"}),e.EFF(11," Settimana "),e.k0s(),e.j41(12,"button",4),e.bIt("click",function(){return o.view="day"}),e.EFF(13," Giorno "),e.k0s(),e.j41(14,"button",5),e.bIt("click",function(){return o.view="month"}),e.j41(15,"mat-icon"),e.EFF(16,"view_module"),e.k0s()(),e.j41(17,"button",5),e.bIt("click",function(){return o.view="week"}),e.j41(18,"mat-icon"),e.EFF(19,"view_week"),e.k0s()(),e.j41(20,"button",5),e.bIt("click",function(){return o.view="day"}),e.j41(21,"mat-icon"),e.EFF(22,"view_day"),e.k0s()(),e.j41(23,"button",6),e.mxI("viewDateChange",function(l){return e.DH7(o.viewDate,l)||(o.viewDate=l),l}),e.j41(24,"mat-icon"),e.EFF(25,"chevron_left"),e.k0s()(),e.j41(26,"button",7),e.mxI("viewDateChange",function(l){return e.DH7(o.viewDate,l)||(o.viewDate=l),l}),e.j41(27,"mat-icon"),e.EFF(28,"today"),e.k0s()(),e.j41(29,"button",8),e.mxI("viewDateChange",function(l){return e.DH7(o.viewDate,l)||(o.viewDate=l),l}),e.j41(30,"mat-icon"),e.EFF(31,"chevron_right"),e.k0s()()()()()(),e.j41(32,"mat-card-content")(33,"div",9),e.DNE(34,st,1,5,"mwl-calendar-month-view",10)(35,lt,1,4,"mwl-calendar-week-view",11)(36,ct,1,3,"mwl-calendar-day-view",12),e.k0s()()()),2&n&&(e.R7$(5),e.JRh(e.brH(6,22,o.viewDate,o.view+"ViewTitle","it")),e.R7$(3),e.AVh("active","month"===o.view),e.R7$(2),e.AVh("active","week"===o.view),e.R7$(2),e.AVh("active","day"===o.view),e.R7$(2),e.AVh("active","month"===o.view),e.R7$(3),e.AVh("active","week"===o.view),e.R7$(3),e.AVh("active","day"===o.view),e.R7$(3),e.Y8G("view",o.view),e.R50("viewDate",o.viewDate),e.R7$(3),e.R50("viewDate",o.viewDate),e.R7$(3),e.Y8G("view",o.view),e.R50("viewDate",o.viewDate),e.R7$(4),e.Y8G("ngSwitch",o.view),e.R7$(),e.Y8G("ngSwitchCase","month"),e.R7$(),e.Y8G("ngSwitchCase","week"),e.R7$(),e.Y8G("ngSwitchCase","day"))},dependencies:[k.G,U.KQ,U.uu,p.RN,p.m2,C.$z,C.iY,x.An,s.YN,z.X4,s.X1,g.ux,b.rO,b.xt,b.Nl,b.u8,b.Sz,b.jD,b.tG,b.T$,g.MD,g.e1,D.X6,T.hM,u.RG],styles:['.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.text-red[_ngcontent-%COMP%]{color:red!important}.text-success[_ngcontent-%COMP%]{color:green}.gg-shield[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;display:block;transform:scale(var(--ggs, 1));width:14px;height:4px;background:currentColor;border-radius:100px;margin-top:-6px}.gg-shield[_ngcontent-%COMP%]:after, .gg-shield[_ngcontent-%COMP%]:before{content:"";display:block;box-sizing:border-box;position:absolute;border-radius:3px;width:8px;height:16px;border:2px solid}.gg-shield[_ngcontent-%COMP%]:before{border-bottom-left-radius:40px;border-right:0;left:0}.gg-shield[_ngcontent-%COMP%]:after{border-bottom-right-radius:40px;border-left:0;right:0}.gg-trash[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;display:block;transform:scale(var(--ggs, 1));width:10px;height:12px;border:2px solid transparent;box-shadow:0 0 0 2px,inset -2px 0,inset 2px 0;border-bottom-left-radius:1px;border-bottom-right-radius:1px;margin-top:4px}.gg-trash[_ngcontent-%COMP%]:after, .gg-trash[_ngcontent-%COMP%]:before{content:"";display:block;box-sizing:border-box;position:absolute}.gg-trash[_ngcontent-%COMP%]:after{background:currentColor;border-radius:3px;width:16px;height:2px;top:-4px;left:-5px}.gg-trash[_ngcontent-%COMP%]:before{width:10px;height:4px;border:2px solid;border-bottom:transparent;border-top-left-radius:2px;border-top-right-radius:2px;top:-7px;left:-2px}.gg-pen[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;display:block;transform:rotate(-45deg) scale(var(--ggs, 1));width:14px;height:4px;border-right:2px solid transparent;box-shadow:0 0 0 2px,inset -2px 0;border-top-right-radius:1px;border-bottom-right-radius:1px;margin-right:-2px}.gg-pen[_ngcontent-%COMP%]:after, .gg-pen[_ngcontent-%COMP%]:before{content:"";display:block;box-sizing:border-box;position:absolute}.gg-pen[_ngcontent-%COMP%]:before{background:currentColor;border-left:0;right:-6px;width:3px;height:4px;border-radius:1px;top:0}.gg-pen[_ngcontent-%COMP%]:after{width:8px;height:7px;border-top:4px solid transparent;border-bottom:4px solid transparent;border-right:7px solid;left:-11px;top:-2px}'],changeDetection:0})}}return i})();var d=f(9159),dt=f(6588),H=f(452),y=f(6695),F=f(2042);(0,g.EO)(ie.A);let se=(()=>{class i{constructor(t,n){this.dialogRef=t,this.api=n,this.data=(0,e.WQX)(T.Vh)}ngOnInit(){return(0,m.A)(function*(){})()}chiudi(){var t=this;return(0,m.A)(function*(){t.dialogRef.close(!0)})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(T.CP),e.rXU(v.W))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-info-sessioneesame-dialog"]],standalone:!0,features:[e.Jv_([(0,R.aw)(),b.jc,{provide:b.MJ,useClass:O.ZG,useFactory:Y.a},b.AD]),e.aNF],decls:10,vars:1,consts:[[1,"cardWithShadow"],[1,"p-y-24","text-center"],["src","/assets/images/backgrounds/transparent-snoopy-snoop.webp","alt","img","width","400"],[1,"m-b-0",2,"color","red"],[1,"mat-body-1","m-t-8","lh-24","m-b-24"],["mat-flat-button","","color","primary",3,"click"]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content",1),e.nrm(2,"img",2),e.j41(3,"mat-card-title",3),e.EFF(4,"Errore nella richiesta!"),e.k0s(),e.nrm(5,"br"),e.j41(6,"mat-card-subtitle",4),e.EFF(7),e.k0s(),e.j41(8,"button",5),e.bIt("click",function(){return o.chiudi()}),e.EFF(9,"Chiudi"),e.k0s()()()),2&n&&(e.R7$(7),e.JRh(o.data))},dependencies:[k.G,p.RN,p.m2,p.Lc,p.dh,C.$z,s.YN,s.X1,g.MD,R.WX,T.hM,D.X6],encapsulation:2,changeDetection:0})}}return i})();var pt=f(5522),N=f(1997),V=f(4823);const _t=i=>({"background-color":i,color:"white"}),ut=i=>["/centri/supervisori/visualizza-supervisore/",i],ft=()=>[5,8,10],gt=i=>["/centri/utenti/visualizza-utente/",i];function Ct(i,r){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"h2",3),e.EFF(4," Non hai i permessi per accedere a questa risorsa! "),e.k0s()()()())}function ht(i,r){if(1&i&&(e.j41(0,"span",12),e.nrm(1,"br"),e.j41(2,"mat-label",13),e.EFF(3,"Note"),e.k0s(),e.EFF(4),e.nrm(5,"br"),e.k0s()),2&i){const t=e.XpG(2);e.R7$(4),e.SpI(" ",t.sessione.note," ")}}function zt(i,r){if(1&i){const t=e.RV6();e.j41(0,"mat-card",2)(1,"mat-card-content",25)(2,"h6",26),e.EFF(3,"Registro Studenti"),e.k0s(),e.j41(4,"div",28)(5,"div",5)(6,"span",53),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.scaricaRegistro())}),e.nrm(7,"i-tabler",54),e.k0s(),e.j41(8,"div",55)(9,"a",56),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.scaricaRegistro())}),e.EFF(10,"Clicca qui per scaricare il registro"),e.k0s()()()()()()}}function Ft(i,r){1&i&&(e.j41(0,"h4",27),e.EFF(1,"Ricorda: Carica qui il registro firmato"),e.k0s())}function vt(i,r){if(1&i){const t=e.RV6();e.j41(0,"div",28)(1,"div",5)(2,"span",53),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.nrm(3,"i-tabler",54),e.k0s(),e.j41(4,"div",55)(5,"a",57),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.EFF(6),e.k0s()()()()}if(2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.R7$(5),e.FS9("matTooltip",t),e.R7$(),e.JRh(n.settings.parseOnlyFilename(t))}}function bt(i,r){1&i&&e.DNE(0,vt,7,2,"div",28),2&i&&e.vxM(r.$index<3?0:-1)}function Et(i,r){if(1&i){const t=e.RV6();e.j41(0,"div",28)(1,"div",5)(2,"span",58),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openDialogFile(o.files))}),e.EFF(3," Mostra tutti "),e.k0s()()()}}function kt(i,r){1&i&&(e.j41(0,"th",59),e.EFF(1," Utente "),e.k0s())}function jt(i,r){if(1&i&&(e.j41(0,"td",60)(1,"div",5),e.nrm(2,"img",61),e.j41(3,"div",62)(4,"h6",63),e.EFF(5),e.k0s(),e.j41(6,"div",64),e.EFF(7),e.k0s(),e.j41(8,"div",64),e.EFF(9),e.k0s(),e.j41(10,"div",64),e.EFF(11),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Y8G("src",t.avatar_location?t.avatar_location:"assets/images/profile/user-3.jpg",e.B4B),e.R7$(3),e.Lme(" ",t.cognome," ",t.nome," "),e.R7$(2),e.SpI(" ",t.cdf," "),e.R7$(2),e.SpI(" ",t.email," "),e.R7$(2),e.E5c(" ",t.cellulare," ",t.telefono?"-":""," ",t.telefono," ")}}function xt(i,r){1&i&&(e.j41(0,"th",65),e.EFF(1," Durata "),e.k0s())}function wt(i,r){if(1&i&&(e.j41(0,"span",67),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.durata," Minuti ")}}function At(i,r){1&i&&e.nrm(0,"span",67)}function yt(i,r){if(1&i&&(e.j41(0,"td",66),e.DNE(1,wt,2,1,"span",67)(2,At,1,0,"span",67),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(t.durata?1:-1),e.R7$(),e.vxM(t.durata?-1:2)}}function Rt(i,r){1&i&&(e.j41(0,"th",68),e.EFF(1," Data "),e.k0s())}function Mt(i,r){1&i&&e.nrm(0,"span",70)}function Tt(i,r){if(1&i&&(e.j41(0,"span",70),e.EFF(1),e.nrm(2,"br"),e.EFF(3),e.k0s()),2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.R7$(),e.SpI(" ",n.settings.convertInItData(t.data_esito)," "),e.R7$(2),e.SpI(" ",n.settings.convertInItOra(t.data_esito)," ")}}function Dt(i,r){if(1&i&&(e.j41(0,"td",69),e.DNE(1,Mt,1,0,"span",70)(2,Tt,4,2,"span",70),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(t.data_esito?-1:1),e.R7$(),e.vxM(t.data_esito?2:-1)}}function St(i,r){1&i&&(e.j41(0,"th",71),e.EFF(1," Esito "),e.k0s())}function $t(i,r){1&i&&(e.j41(0,"span",75),e.EFF(1," Invalidato "),e.k0s(),e.nrm(2,"br"))}function It(i,r){1&i&&(e.j41(0,"span",72),e.EFF(1," Non Superato "),e.k0s())}function Vt(i,r){1&i&&(e.j41(0,"span",72),e.EFF(1," Non Sostenuto "),e.k0s())}function Lt(i,r){1&i&&(e.j41(0,"span",73),e.EFF(1," Superato "),e.k0s())}function Gt(i,r){if(1&i&&(e.j41(0,"td",69),e.DNE(1,$t,3,0)(2,It,2,0,"span",72)(3,Vt,2,0,"span",72)(4,Lt,2,0,"span",73),e.j41(5,"div",74),e.EFF(6),e.k0s()()),2&i){const t=r.$implicit;e.R7$(),e.vxM(1==t.invalidato?1:-1),e.R7$(),e.vxM((!t.esito||0==t.esito)&&t.tentativi>0?2:-1),e.R7$(),e.vxM(t.esito&&0!=t.esito||0!=t.tentativi?-1:3),e.R7$(),e.vxM(1!=t.esito||t.invalidato&&0!=t.invalidato?-1:4),e.R7$(2),e.SpI(" Tentativi: ",t.tentativi," ")}}function Nt(i,r){1&i&&(e.j41(0,"th",76),e.EFF(1," Azioni "),e.k0s())}function Xt(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",81),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.scarica_certificato())}),e.nrm(1,"i-tabler",82),e.k0s()}}function Bt(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.ristampa_certificato())}),e.nrm(1,"i-tabler",84),e.k0s()}}function Ot(i,r){if(1&i&&e.DNE(0,Xt,2,0,"button",79)(1,Bt,2,0,"button",80),2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.vxM(n.check_un_mese(t.data_esito)?1:0)}}function Yt(i,r){}function qt(i,r){if(1&i&&(e.j41(0,"td",66)(1,"a",77),e.nrm(2,"i-tabler",78),e.k0s(),e.DNE(3,Ot,2,1)(4,Yt,0,0),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(3,gt,t.id_user)),e.R7$(2),e.vxM((!t.invalidato||0==t.invalidato)&&t.tentativi>0?3:-1),e.R7$(),e.vxM(1==t.invalidato?4:-1)}}function Pt(i,r){1&i&&e.nrm(0,"tr",85)}function Jt(i,r){1&i&&e.nrm(0,"tr",86)}function Ut(i,r){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"mat-card",2)(2,"mat-card-content",4)(3,"div",5)(4,"mat-card-title",6),e.EFF(5),e.nI1(6,"titlecase"),e.k0s(),e.j41(7,"div",7)(8,"span",8),e.EFF(9),e.nI1(10,"titlecase"),e.k0s()()()()(),e.j41(11,"div",0)(12,"div",9)(13,"mat-card",2)(14,"div",0)(15,"div",10)(16,"mat-card-header")(17,"mat-card-subtitle",11)(18,"span",12),e.nrm(19,"br"),e.j41(20,"mat-label",13),e.EFF(21,"Validit\xe0"),e.k0s(),e.EFF(22," Dal "),e.j41(23,"b"),e.EFF(24),e.k0s(),e.EFF(25," al "),e.j41(26,"b"),e.EFF(27),e.k0s(),e.nrm(28,"br"),e.k0s(),e.j41(29,"span",12),e.nrm(30,"br"),e.j41(31,"mat-label",13),e.EFF(32,"Supervisore"),e.k0s(),e.j41(33,"a",14),e.EFF(34),e.nI1(35,"titlecase"),e.nI1(36,"titlecase"),e.k0s(),e.nrm(37,"br")(38,"br"),e.k0s(),e.j41(39,"span",12),e.nrm(40,"br"),e.j41(41,"mat-label",13),e.EFF(42,"Password"),e.k0s(),e.EFF(43),e.nrm(44,"br"),e.k0s(),e.DNE(45,ht,6,1,"span",12),e.k0s()()(),e.j41(46,"div",15)(47,"mat-card-header"),e.nrm(48,"img",16),e.k0s()()(),e.nrm(49,"mat-divider"),e.j41(50,"div",0)(51,"div",17),e.EFF(52," Inserita il "),e.j41(53,"b"),e.EFF(54),e.k0s()(),e.nrm(55,"div",18),e.j41(56,"div",19),e.nrm(57,"i-tabler",20),e.EFF(58),e.k0s(),e.j41(59,"div",19),e.nrm(60,"i-tabler",21),e.EFF(61),e.k0s(),e.j41(62,"div",19),e.nrm(63,"i-tabler",22),e.EFF(64),e.k0s()()(),e.DNE(65,zt,11,0,"mat-card",2),e.k0s(),e.j41(66,"div",9)(67,"div",0),e.nrm(68,"div",23),e.j41(69,"div",24)(70,"mat-card",2)(71,"mat-card-content",25)(72,"h6",26),e.EFF(73,"Files"),e.k0s(),e.DNE(74,Ft,2,0,"h4",27),e.Z7z(75,bt,1,1,null,null,e.Vm6),e.DNE(77,Et,4,0,"div",28),e.j41(78,"div",29)(79,"div",30)(80,"div",31)(81,"app-file-uploader",32),e.bIt("filesEvent",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.setFiles(o))}),e.k0s()()()()()()()()()(),e.j41(82,"mat-card-title",33),e.EFF(83," Utenti "),e.k0s(),e.j41(84,"mat-card-subtitle",34),e.EFF(85," Qui puoi visualizzare le sessioni utilizzate dagli utenti "),e.k0s(),e.j41(86,"div",0)(87,"div",24)(88,"mat-card",2)(89,"mat-card-content")(90,"div",35)(91,"table",36),e.qex(92,37),e.DNE(93,kt,2,0,"th",38)(94,jt,12,8,"td",39),e.bVm(),e.qex(95,40),e.DNE(96,xt,2,0,"th",41)(97,yt,3,2,"td",42),e.bVm(),e.qex(98,43),e.DNE(99,Rt,2,0,"th",44)(100,Dt,3,2,"td",45),e.bVm(),e.qex(101,46),e.DNE(102,St,2,0,"th",47)(103,Gt,7,5,"td",45),e.bVm(),e.qex(104,48),e.DNE(105,Nt,2,0,"th",49)(106,qt,5,5,"td",42),e.bVm(),e.DNE(107,Pt,1,0,"tr",50)(108,Jt,1,0,"tr",51),e.k0s(),e.nrm(109,"mat-paginator",52),e.k0s()()()()()()}if(2&i){const t=e.XpG();e.R7$(5),e.JRh(e.bMT(6,22,t.sessione.titolo)),e.R7$(3),e.Y8G("ngStyle",e.eq3(30,_t,t.sessione.colore)),e.R7$(),e.JRh(e.bMT(10,24,t.sessione.categoria)),e.R7$(15),e.JRh(t.settings.convertInItData(t.sessione.data_inizio_sessione)),e.R7$(3),e.SpI(" ",t.settings.convertInItData(t.sessione.data_fine_sessione),""),e.R7$(6),e.Y8G("routerLink",e.eq3(32,ut,t.sessione.id_supervisore)),e.R7$(),e.Lme("",e.bMT(35,26,t.sessione.nome)," ",e.bMT(36,28,t.sessione.cognome),""),e.R7$(9),e.SpI(" ",t.sessione.password," "),e.R7$(2),e.vxM(t.sessione.note?45:-1),e.R7$(9),e.SpI("",t.settings.convertInItData(t.sessione.insert_time)," "),e.R7$(4),e.SpI(" ",t.utentiNumber," "),e.R7$(3),e.SpI(" ",t.utentiNumberOk," "),e.R7$(3),e.SpI(" ",t.utentiNumberKo," "),e.R7$(),e.vxM(1==t.sessione.erogazione?65:-1),e.R7$(9),e.vxM(1==t.sessione.erogazione?74:-1),e.R7$(),e.Dyx(t.files),e.R7$(2),e.vxM(t.files&&t.files.length>3?77:-1),e.R7$(4),e.Y8G("showList",!1),e.R7$(10),e.Y8G("dataSource",t.dataSource),e.R7$(16),e.Y8G("matHeaderRowDef",t.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",t.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(34,ft))}}let Ht=(()=>{class i{constructor(t,n,o,a){this.activatedRouter=t,this.dialog=n,this.api=o,this.settings=a,this.avatar_location="/assets/images/logos/no-logo.webp",this.utentiNumber=0,this.utentiNumberOk=0,this.utentiNumberKo=0,this.utentiNumberInvalid=0,this.displayedColumns=["Info","Data Esito","Durata Esame","Esito","Azioni"],this.sort=Object.create(null),this.paginator=Object.create(null),this.inserisciUtenteFormControl=new s.gE({files:new s.MJ(null,[])})}refresh(){var t=this;return(0,m.A)(function*(){t.utenti=yield t.api.call("getSessioneUtenti",{id_sessione:t.id_sessione}),t.utentiNumber=t.utenti.length,t.utentiNumberOk=t.utenti.filter(n=>1==n.esito).length,t.utentiNumberInvalid=t.utenti.filter(n=>1==n.invalidato).length,t.utentiNumberKo=t.utentiNumber-t.utentiNumberOk,t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})()}filter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_sessione=t.activatedRouter.snapshot.paramMap.get("id_sessione"),t.sessione=yield t.api.call("getSessione",{id_sessione:t.id_sessione}),t.files=yield t.api.call("getFilesSessione",{id_sessione:t.id_sessione}),t.refresh(),console.log(t.sessione)})()}componentToHex(t){var n=t.toString(16);return 1==n.length?"0"+n:n}rgbToHex(t,n,o){return"#"+this.componentToHex(t)+this.componentToHex(n)+this.componentToHex(o)}hexToRgb(t){if(t){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}return{r:145,g:158,b:171}}hexToRgbStr(t){if(t){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(n){let o=parseInt(n[1],16)+", "+parseInt(n[2],16)+", "+parseInt(n[3],16);return console.log(o),"box-shadow: rgba("+o+", 0.3) 0px 0px 2px 0px, rgba("+o+", 0.12) 0px 12px 24px -4px;"}}return"box-shadow: rgba(145, 158, 171, 0.3) 0px 0px 2px 0px, rgba(145, 158, 171, 0.3) 0px 12px 24px -4px;"}scaricaFile(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("getFileSessione",{id_sessione:n.id_sessione,filename:t});o&&window.open(o,"_blank")})()}scaricaRegistro(){var t=this;return(0,m.A)(function*(){t.scaricaFile("registro.pdf")})()}caricaFiles(t){var n=this;return(0,m.A)(function*(){(yield n.api.call("uploadFileSessione",{files:t,id_sessione:n.id_sessione},!0,!0))&&(n.files=yield n.api.call("getFilesSessione",{id_sessione:n.id_sessione}))})()}aggiungiUtenteSessione(){}annullaInvalidaEsame(t){this.dialog.open(se,{data:"Questa funzione \xe8 disponibile solo per i supervisori!"})}invalidaEsame(t){this.dialog.open(se,{data:"Questa funzione \xe8 disponibile solo per i supervisori!"})}setFiles(t){this.caricaFiles(t)}cancellaFile(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellare il file?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaFileSessione",{id_sessione:n.id_sessione,filename:t},!0),n.files=yield n.api.call("getFilesSessione",{id_sessione:n.id_sessione}))});return function(l){return a.apply(this,arguments)}}())})()}assegnaCorso(){var t=this;return(0,m.A)(function*(){t.dialog.open(dt.A,{height:"550px",width:"600px",data:{utente:t.sessione}}).afterClosed().subscribe(function(){var n=(0,m.A)(function*(o){o&&(yield t.api.callWithDialog("assegnaCorsoUtente",{id_user:t.id_sessione,id_corso:o.id_corso},!0))});return function(o){return n.apply(this,arguments)}}())})()}check_esame(t,n){if(t){for(let o=0;o<t.length;o++)if("1"==t[o].esito&&t[o].id_corso==n)return!1;return!0}return!0}check_esami(t){let n=0;if(t)for(let o=0;o<t.length;o++)"1"==t[o].esito&&n++;return n}check_prenotazione(t,n){if(t){for(let o=0;o<t.length;o++)if(t[o].id_corso==n)return!1;return!0}return!0}check_un_mese(t){if(!t)return!1;const n=new Date,o=new Date(t),a=new Date(o.setMonth(o.getMonth()+3));return a.getTime()>n.getTime()&&(console.log(a),console.log(n),!0)}ristampa_certificato(){var t=this;return(0,m.A)(function*(){t.settings.openDialog("Per richiedere il duplicato del certificato, puoi contattarci tramite i contatti ufficiali che trovi nel nostro sito!","ristampa_certificato")})()}scarica_certificato(){var t=this;return(0,m.A)(function*(){t.settings.openDialog("Funzione non ancora disponibile, si prega di riprovare tra qualche giorno o contattare la segreteria!","error")})()}openDialogFile(t){return this.dialog.open(pt.z,{height:"90%",width:"90%",data:{files:t,enable_delete:!0,functionDownload:this.scaricaFile.bind(this),functionDelete:this.cancellaFile.bind(this)}})}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(h.nX),e.rXU(T.bZ),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-sessioneesame-utente"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"row"],[1,"col-sm-12"],[1,"cardWithShadow"],[1,"text-center","p-10"],[2,"padding","16px !important"],[1,"d-flex","align-items-center"],[1,"m-b-0"],[1,"m-l-auto"],[1,"rounded","f-w-400","p-6","p-y-4","f-s-12",2,"z-index","10000",3,"ngStyle"],[1,"col-sm-6"],[1,"col-sm-10"],[1,"mat-body-1","m-b-15"],[1,"f-s-12"],[1,"mat-subtitle-2","f-w-600","m-b-4","d-block","text-accent_p","f-s-14"],[2,"color","black","text-decoration","none",3,"routerLink"],[1,"col-sm-2"],["src","assets/images/backgrounds/sessione.png","alt","welcome-bg","width","100px",1,"congrats-bg"],[1,"col-5","p-y-12","p-l-30","f-s-12"],[1,"col-1","p-y-12"],[1,"col-2","p-y-12"],["name","users",1,"icon-18","m-r-4"],["name","trophy",1,"icon-18","m-r-4"],["name","trophy-off",1,"icon-18","m-r-4"],[1,"col-4",".d-sm-none",".d-md-block"],[1,"col-12"],[1,"p-b-30","position-relative"],[1,"mat-subtitle-1","f-s-16","f-w-600"],[1,"mat-subtitle-1","f-s-12","f-w-600",2,"color","gray"],[1,"m-t-24"],[1,"m-t-24","text-center"],[1,"text-center"],[1,"col-sm-12","p-0"],[3,"filesEvent","showList"],[1,"p-l-5"],[1,"mat-body-1","p-l-5","p-b-10"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Info"],["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","Esito"],["mat-header-cell","","mat-sort-header","esito","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Data Esito"],["mat-header-cell","","mat-sort-header","data_esito","class","f-w-600 mat-subtitle-1 f-s-14 text-center",4,"matHeaderCellDef"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","Durata Esame"],["mat-header-cell","","mat-sort-header","durata","class","f-w-600 mat-subtitle-1 f-s-14 text-center",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"],[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"],[2,"cursor","pointer",3,"click"],[3,"click","matTooltip"],[1,"w-100","text-center","text-underline",2,"cursor","pointer",3,"click"],["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"],["alt","utente","width","40",1,"rounded-circle",3,"src"],[1,"m-l-16"],[1,"mat-subtitle-1","f-s-14","f-w-600"],[1,"mat-body-1","f-s-12"],["mat-header-cell","","mat-sort-header","esito",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"rounded","f-w-600","p-6","p-y-4","f-s-12"],["mat-header-cell","","mat-sort-header","data_esito",1,"f-w-600","mat-subtitle-1","f-s-14","text-center"],["mat-cell","",1,"text-center"],[1,"f-w-600","f-s-12"],["mat-header-cell","","mat-sort-header","durata",1,"f-w-600","mat-subtitle-1","f-s-14","text-center"],[1,"bg-light-warning","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"bg-light-success","text-success","rounded","f-w-600","p-6","p-y-4","f-s-12"],[2,"font-size","10px"],[1,"bg-light-error","text-accent","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-icon-button","","matTooltip","Visualizza Scheda Utente",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","eye",1,"icon-18","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Scarica Certificato",1,"d-flex","align-items-center","justify-content-center"],["mat-icon-button","","matTooltip","Richiedi Ristampa Certificato",1,"d-flex","align-items-center","justify-content-center"],["mat-icon-button","","matTooltip","Scarica Certificato",1,"d-flex","align-items-center","justify-content-center",3,"click"],["name","certificate",1,"icon-18","d-flex","align-items-center","text-success"],["mat-icon-button","","matTooltip","Richiedi Ristampa Certificato",1,"d-flex","align-items-center","justify-content-center",3,"click"],["name","certificate",1,"icon-18","d-flex","align-items-center","text-error"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&e.DNE(0,Ct,5,0,"div",0)(1,Ut,110,35,"div"),2&n&&e.vxM(o.sessione&&o.sessione.id_sessione?1:0)},dependencies:[k.G,u.nJ,p.RN,p.m2,p.MM,p.Lc,p.dh,N.q,C.pQ,C.iY,V.oV,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,g.MD,g.B3,g.PV,h.Wk,s.YN,s.X1,z.X4,z.Jc,H.l],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{display:flex;text-align:center;flex-grow:0;flex-basis:0;margin-right:16px;align-items:center}.course-header[_ngcontent-%COMP%]{padding:12px!important;color:#fff}.course-header[_ngcontent-%COMP%] .mat-card-header-text[_ngcontent-%COMP%]{width:100%!important}.course-header.Angular[_ngcontent-%COMP%]{background-color:#fc4b6c}.course-header.Web[_ngcontent-%COMP%]{background-color:#1e88e5}.course-header.Design[_ngcontent-%COMP%]{background-color:#26c6da}.course-header.Android[_ngcontent-%COMP%]{background-color:#ffb22b}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%] .course-duration[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center}.mat-card-actions[_ngcontent-%COMP%]{border-top:1px solid rgba(120,130,140,.13);padding:8px 0!important}.ilabel[_ngcontent-%COMP%]{font-weight:400!important}.text-accent_p[_ngcontent-%COMP%]{color:#38a1cf!important}"]})}}return i})();var Q=f(9327);const Qt=()=>[5,8,10],oe=i=>["/formatori/corsi/visualizza-corso/",i];function Wt(i,r){1&i&&(e.j41(0,"th",28),e.EFF(1," Corso "),e.k0s())}function Zt(i,r){if(1&i&&(e.j41(0,"td",29)(1,"div",30)(2,"a",31)(3,"span",32),e.EFF(4),e.k0s()(),e.j41(5,"div",33)(6,"h6",34)(7,"a",35),e.EFF(8),e.nI1(9,"titlecase"),e.k0s()(),e.j41(10,"div",36),e.EFF(11),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Aen(t.colore?"background:"+t.colore:""),e.Y8G("routerLink",e.eq3(10,oe,t.id_corso)),e.R7$(2),e.SpI(" ",t.titolo?t.titolo.charAt(0).toUpperCase():""," "),e.R7$(3),e.Y8G("routerLink",e.eq3(12,oe,t.id_corso)),e.R7$(),e.SpI(" ",e.bMT(9,8,t.titolo)," "),e.R7$(3),e.SpI(" ",t.categoria," ")}}function Kt(i,r){1&i&&(e.j41(0,"th",37),e.EFF(1," Stato "),e.k0s())}function ei(i,r){1&i&&(e.j41(0,"span",38),e.EFF(1,"DISABILITATO"),e.k0s())}function ti(i,r){1&i&&(e.j41(0,"span",38),e.EFF(1,"NON DISPONIBILE"),e.k0s())}function ii(i,r){1&i&&(e.j41(0,"span",39),e.EFF(1,"ATTIVO"),e.k0s())}function oi(i,r){if(1&i&&(e.j41(0,"td",29)(1,"div",30)(2,"div",33),e.DNE(3,ei,2,0,"span",38)(4,ti,2,0,"span",38)(5,ii,2,0,"span",39),e.k0s()()()),2&i){const t=r.$implicit;e.R7$(3),e.vxM(0==t.attivo?3:0==t.active?4:5)}}function ni(i,r){1&i&&(e.j41(0,"th",40),e.EFF(1," Erogazione "),e.k0s())}function ai(i,r){if(1&i&&(e.j41(0,"td",41)(1,"span",42),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.erogazione&&0!=t.erogazione?"EDIZIONE":"LIBERA"," ")}}function ri(i,r){1&i&&(e.j41(0,"th",43),e.EFF(1," Esame "),e.k0s())}function si(i,r){if(1&i&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",1==t.esame_libero?"Esame Libero":"Esame in sessione"," ")}}function li(i,r){if(1&i&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",1==t.esame_attivo?"Esame Previsto":"Esame non previsto"," ")}}function ci(i,r){if(1&i&&(e.j41(0,"td",41),e.DNE(1,si,2,1,"span",44)(2,li,2,1,"span",44),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(1==t.esame_attivo?1:2)}}function mi(i,r){1&i&&(e.j41(0,"th",45),e.EFF(1," Iscritti "),e.k0s())}function di(i,r){if(1&i&&(e.j41(0,"td",41)(1,"span",44),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_iscritti," ")}}function pi(i,r){1&i&&(e.j41(0,"th",46),e.EFF(1," Edizioni "),e.k0s())}function _i(i,r){if(1&i&&(e.j41(0,"td",41)(1,"span",47),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_sessioni," ")}}function ui(i,r){1&i&&(e.j41(0,"th",48),e.EFF(1," Azioni "),e.k0s())}function fi(i,r){if(1&i&&(e.j41(0,"td",41)(1,"a",49),e.nrm(2,"i-tabler",50),e.k0s()()),2&i){const t=r.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(1,oe,t.id_corso))}}function gi(i,r){1&i&&e.nrm(0,"tr",51)}function Ci(i,r){1&i&&e.nrm(0,"tr",52)}let hi=(()=>{class i{constructor(t,n,o){this.api=n,this.settings=o,this.displayedColumns=["Corso","Stato","Erogazione","Iscritti","Sessioni","Azioni"],this.sort=Object.create(null),this.paginator=Object.create(null)}ngOnInit(){var t=this;return(0,m.A)(function*(){t.refresh()})()}refresh(){var t=this;return(0,m.A)(function*(){t.utenti=yield t.api.call("getCorsi"),t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})()}filter(t){this.dataSource.filter=t.trim().toLowerCase()}cancellaUtente(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellareil corso?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("deleteUtente",{id_user:t},!0),n.refresh())});return function(l){return a.apply(this,arguments)}}())})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(Q.QP),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-utenti"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.aNF],decls:36,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","titolo","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["mat-cell","","class","p-l-0",4,"matCellDef"],["matColumnDef","Stato"],["mat-header-cell","","mat-sort-header","attivo","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["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","Iscritti"],["mat-header-cell","","mat-sort-header","corsi_titolo","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Sessioni"],["mat-header-cell","","mat-sort-header","affiliato_nome","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","titolo",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"],["mat-icon-button","","matTooltip","Visualizza Corso",1,"align-items-center","justify-content-center","text-white","bg-success","rounded-circle","p-10",3,"routerLink"],[1,"f-s-16","f-w-600"],[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","attivo",1,"f-w-600","mat-subtitle-1","f-s-14","p-l-0"],[1,"bg-error","text-white","rounded","f-w-600","p-6","p-y-4","f-s-10"],[1,"bg-success","text-white","rounded","f-w-600","p-6","p-y-4","f-s-10"],["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","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","corsi_titolo",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-header-cell","","mat-sort-header","affiliato_nome",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"bg-light-accent","text-accent","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-icon-button","","matTooltip","Visualizza Scheda Corso",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","eye",1,"icon-18","d-flex","align-items-center"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"input",4),e.bIt("keyup",function(l){return o.filter(l.target.value)}),e.k0s(),e.j41(6,"mat-icon",5),e.nrm(7,"i-tabler",6),e.k0s()()()()()(),e.j41(8,"mat-card",0)(9,"mat-card-content")(10,"div",7)(11,"table",8),e.qex(12,9),e.DNE(13,Wt,2,0,"th",10)(14,Zt,12,14,"td",11),e.bVm(),e.qex(15,12),e.DNE(16,Kt,2,0,"th",13)(17,oi,6,1,"td",11),e.bVm(),e.qex(18,14),e.DNE(19,ni,2,0,"th",15)(20,ai,3,1,"td",16),e.bVm(),e.qex(21,17),e.DNE(22,ri,2,0,"th",18)(23,ci,3,1,"td",16),e.bVm(),e.qex(24,19),e.DNE(25,mi,2,0,"th",20)(26,di,3,1,"td",16),e.bVm(),e.qex(27,21),e.DNE(28,pi,2,0,"th",22)(29,_i,3,1,"td",16),e.bVm(),e.qex(30,23),e.DNE(31,ui,2,0,"th",24)(32,fi,3,3,"td",16),e.bVm(),e.DNE(33,gi,1,0,"tr",25)(34,Ci,1,0,"tr",26),e.k0s(),e.nrm(35,"mat-paginator",27),e.k0s()()()),2&n&&(e.R7$(11),e.Y8G("dataSource",o.dataSource),e.R7$(22),e.Y8G("matHeaderRowDef",o.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",o.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(4,Qt)))},dependencies:[k.G,u.rl,u.yw,w.fg,p.RN,p.m2,C.pQ,x.An,V.oV,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,d.tP,g.MD,g.PV,p.Hu,h.iI,h.Wk,z.X4,z.Jc],encapsulation:2})}}return i})();const zi=()=>[5,8,10],Fi=i=>({background:i,color:"white !important"}),vi=i=>["/formatori/corsi/visualizza-corso/",i],bi=i=>["/formatori/utenti/visualizza-utente/",i];function Ei(i,r){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"h2",3),e.EFF(4," Non hai i permessi per accedere a questa risorsa! "),e.k0s()()()())}function ki(i,r){if(1&i&&e.nrm(0,"img",34)(1,"br"),2&i){const t=e.XpG(2);e.FS9("ngSrc",t.avatar_location)}}function ji(i,r){if(1&i&&(e.j41(0,"span",35),e.EFF(1),e.k0s(),e.EFF(2," - ")),2&i){const t=e.XpG(2);e.R7$(),e.JRh(t.corso.tipologia)}}function xi(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.descrizione,"")}}function wi(i,r){1&i&&(e.EFF(0," Non disponibile!"),e.nrm(1,"br"))}function Ai(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.finalita,"")}}function yi(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function Ri(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.programma," ")}}function Mi(i,r){1&i&&(e.EFF(0," Informazione non disponibile "),e.nrm(1,"br"))}function Ti(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" (",t.corso.destinatari,")")}}function Di(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function Si(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" (",t.corso.durata,")")}}function $i(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function Ii(i,r){if(1&i&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.Aen(e.eq3(3,Fi,t.corso.colore)),e.R7$(),e.SpI(" ",t.corso.categoria," ")}}function Vi(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(2);e.SpI(" ",t.utenti.length," ")}}function Li(i,r){1&i&&e.EFF(0," 0 ")}function Gi(i,r){1&i&&(e.j41(0,"div",18)(1,"div",37),e.EFF(2," Non sono presenti files associati al corso! "),e.k0s()())}function Ni(i,r){if(1&i){const t=e.RV6();e.j41(0,"div",19)(1,"div",38)(2,"span",39),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.nrm(3,"i-tabler",40),e.k0s(),e.j41(4,"div",41)(5,"a",42),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.EFF(6),e.k0s()(),e.j41(7,"span",43),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.cancellaFile(o))}),e.nrm(8,"i-tabler",44),e.k0s()()()}if(2&i){const t=r.$implicit,n=e.XpG(2);e.R7$(6),e.JRh(n.settings.parseOnlyFilename(t))}}function Xi(i,r){1&i&&(e.j41(0,"div",18)(1,"div",37),e.EFF(2," Non sono presenti utenti iscritti al corso a te associati! "),e.k0s()())}function Bi(i,r){1&i&&(e.j41(0,"th",45),e.EFF(1," Utente "),e.k0s())}function Oi(i,r){if(1&i&&(e.j41(0,"td",46)(1,"div",38),e.nrm(2,"img",47),e.j41(3,"div",48)(4,"h6",49),e.EFF(5),e.k0s(),e.j41(6,"div",50),e.EFF(7),e.k0s(),e.j41(8,"div",50),e.EFF(9),e.k0s(),e.j41(10,"div",50),e.EFF(11),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Y8G("src",t.avatar_location?t.avatar_location:"assets/images/profile/user-3.jpg",e.B4B),e.R7$(3),e.Lme(" ",t.cognome," ",t.nome," "),e.R7$(2),e.SpI(" ",t.cdf," "),e.R7$(2),e.SpI(" ",t.email," "),e.R7$(2),e.E5c(" ",t.cellulare," ",t.telefono?"-":""," ",t.telefono," ")}}function Yi(i,r){1&i&&(e.j41(0,"th",51),e.EFF(1," Corsi "),e.k0s())}function qi(i,r){if(1&i&&(e.j41(0,"span",53)(1,"a",54),e.EFF(2),e.nI1(3,"titlecase"),e.k0s()()),2&i){const t=r.$implicit,n=r.$index;e.XpG();const o=e.r8f(1);e.R7$(),e.Y8G("routerLink",e.eq3(4,vi,t)),e.R7$(),e.JRh(e.bMT(3,2,o[n]))}}function Pi(i,r){if(1&i&&(e.SS7(0)(1),e.Z7z(2,qi,4,6,"span",53,e.fX1)),2&i){const t=e.XpG().$implicit,n=t.corsi_id.split(", ");e.R7$(),e.bH3(t.corsi_titolo.split(", ")),e.R7$(),e.Dyx(n)}}function Ji(i,r){if(1&i&&(e.j41(0,"td",52),e.DNE(1,Pi,4,1),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(t.corsi_id&&t.corsi_titolo?1:-1)}}function Ui(i,r){1&i&&(e.j41(0,"th",55),e.EFF(1," Azioni "),e.k0s())}function Hi(i,r){if(1&i&&(e.j41(0,"td",52)(1,"a",56),e.nrm(2,"i-tabler",57),e.k0s()()),2&i){const t=r.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(1,bi,t.id_user))}}function Qi(i,r){1&i&&e.nrm(0,"tr",58)}function Wi(i,r){1&i&&e.nrm(0,"tr",59)}function Zi(i,r){if(1&i&&(e.j41(0,"div")(1,"div",0)(2,"div",4)(3,"mat-card",2)(4,"div",0)(5,"div",1)(6,"mat-card-header")(7,"mat-card-title"),e.DNE(8,ki,2,1),e.EFF(9),e.k0s(),e.j41(10,"mat-card-subtitle",5),e.DNE(11,ji,3,1),e.j41(12,"span",6),e.EFF(13),e.k0s(),e.nrm(14,"br")(15,"br"),e.j41(16,"span",7),e.nrm(17,"br"),e.j41(18,"mat-label",8),e.EFF(19,"Descrizione"),e.k0s(),e.DNE(20,xi,2,1,"br")(21,wi,2,0,"br"),e.nrm(22,"br"),e.k0s(),e.j41(23,"span",7)(24,"mat-label",8),e.EFF(25,"Finalit\xe0"),e.k0s(),e.DNE(26,Ai,2,1,"br")(27,yi,2,0,"br"),e.k0s(),e.j41(28,"span",7),e.nrm(29,"br"),e.j41(30,"mat-label",8),e.EFF(31,"Programma"),e.k0s(),e.DNE(32,Ri,2,1,"br")(33,Mi,2,0,"br"),e.nrm(34,"br"),e.k0s(),e.j41(35,"span",7)(36,"mat-label",8),e.EFF(37,"Destinatari"),e.k0s(),e.DNE(38,Ti,2,1,"br")(39,Di,2,0,"br"),e.nrm(40,"br"),e.k0s(),e.j41(41,"span",7)(42,"mat-label",9),e.EFF(43,"Durata"),e.k0s(),e.DNE(44,Si,2,1,"br")(45,$i,2,0,"br"),e.k0s()()()(),e.j41(46,"div",1)(47,"mat-card-header"),e.DNE(48,Ii,2,5,"span",10),e.k0s()()(),e.nrm(49,"mat-divider"),e.j41(50,"div",0)(51,"div",11),e.EFF(52," Presente dal "),e.j41(53,"b"),e.EFF(54),e.k0s()(),e.nrm(55,"div",12),e.j41(56,"div",13),e.nrm(57,"i-tabler",14),e.DNE(58,Vi,1,1)(59,Li,1,0),e.k0s()()()(),e.j41(60,"div",4)(61,"div",0)(62,"div",15)(63,"mat-card",2)(64,"mat-card-content",16)(65,"h6",17),e.EFF(66,"Files"),e.k0s(),e.DNE(67,Gi,3,0,"div",18),e.Z7z(68,Ni,9,1,"div",19,e.Vm6),e.k0s()()()()(),e.j41(70,"div",15)(71,"mat-card",2)(72,"h6",20),e.EFF(73,"Utenti iscritti al corso"),e.k0s(),e.DNE(74,Xi,3,0,"div",18),e.j41(75,"mat-card-content")(76,"div",21)(77,"table",22),e.qex(78,23),e.DNE(79,Bi,2,0,"th",24)(80,Oi,12,8,"td",25),e.bVm(),e.qex(81,26),e.DNE(82,Yi,2,0,"th",27)(83,Ji,2,1,"td",28),e.bVm(),e.qex(84,29),e.DNE(85,Ui,2,0,"th",30)(86,Hi,3,3,"td",28),e.bVm(),e.DNE(87,Qi,1,0,"tr",31)(88,Wi,1,0,"tr",32),e.k0s(),e.nrm(89,"mat-paginator",33),e.k0s()()()()()()),2&i){const t=e.XpG();e.R7$(8),e.vxM(t.corso&&t.corso.avatar_location&&""!=t.corso.avatar_location?8:-1),e.R7$(),e.SpI(" ",t.corso.titolo," "),e.R7$(2),e.vxM(t.corso.tipologia?11:-1),e.R7$(2),e.JRh(t.corso.erogazione?"LIBERA":"EDIZIONE"),e.R7$(7),e.vxM(t.corso.descrizione?20:21),e.R7$(6),e.vxM(t.corso.finalita?26:27),e.R7$(6),e.vxM(t.corso.programma?32:33),e.R7$(6),e.vxM(t.corso.destinatari?38:39),e.R7$(6),e.vxM(t.corso.durata?44:45),e.R7$(4),e.vxM(t.corso.id_affiliato?-1:48),e.R7$(6),e.SpI("",t.settings.convertInItDataYYYY(t.corso.insert_time)," "),e.R7$(4),e.vxM(t.utenti&&t.utenti.length?58:59),e.R7$(9),e.vxM(t.files&&0==t.files.length?67:-1),e.R7$(),e.Dyx(t.files),e.R7$(6),e.vxM(t.utenti&&0==t.utenti.length?74:-1),e.R7$(3),e.Y8G("dataSource",t.dataSource),e.R7$(10),e.Y8G("matHeaderRowDef",t.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",t.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(18,zi))}}let Ki=(()=>{class i{constructor(t,n,o,a){this.activatedRouter=t,this.dialog=n,this.api=o,this.settings=a,this.avatar_location="/assets/images/logos/no-logo.webp",this.sort=Object.create(null),this.paginator=Object.create(null),this.displayedColumns=["Info","Azioni"]}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_corso=t.activatedRouter.snapshot.paramMap.get("id_corso"),t.corso=yield t.api.call("getCorso",{id_corso:t.id_corso}),t.corso.id_corso&&(t.files=yield t.api.call("getFilesCorso",{id_corso:t.id_corso}),t.corso.avatar_location&&(t.avatar_location=yield t.api.getUserAvatarLocation(t.corso.id_corso)),t.utenti=yield t.api.call("getUtentiCorso",{id_corso:t.id_corso}),t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort)})()}scaricaFile(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("getFileUtente",{id_corso:n.id_corso,filename:t});o&&window.open(o,"_blank")})()}cancellaFile(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellare il file?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaFileUtente",{id_user:n.id_corso,filename:t},!0),n.files=yield n.api.call("getFilesUtente",{id_user:n.id_corso}))});return function(l){return a.apply(this,arguments)}}())})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(h.nX),e.rXU(T.bZ),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-visualizza-corso"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"row"],[1,"col-sm-12"],[1,"cardWithShadow"],[1,"text-center","p-10"],[1,"col-sm-6"],[1,"mat-body-1","m-b-15"],[1,"bg-light-warning","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"f-s-12"],[1,"mat-subtitle-2","f-w-600","m-b-4","d-block","text-accent_p","f-s-14"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block","text-accent_p","f-s-14"],[1,"text-success","text-center","rounded","f-w-600","p-6","p-y-4","f-s-12",3,"style"],[1,"col-6","p-y-12","p-l-30","f-s-14"],[1,"col-4","p-y-12"],[1,"col-2","p-y-12"],["name","shopping-bag",1,"icon-18","m-r-4"],[1,"col-12"],[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,"mat-subtitle-1","p-t-15","p-l-15","f-s-16","f-w-600"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Info"],["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","Corsi"],["mat-header-cell","","mat-sort-header","corsi_titolo","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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"],["width","100","height","100",1,"rounded-circle","border","p-5","b-1",3,"ngSrc"],[1,"bg-light-success","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"text-success","text-center","rounded","f-w-600","p-6","p-y-4","f-s-12"],[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"],[1,"text-error","bg-light-error","rounded-circle","icon-46","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click"],["name","x",1,"icon-22","d-flex"],["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"],["alt","utente","width","40",1,"rounded-circle",3,"src"],[1,"m-l-16"],[1,"mat-subtitle-1","f-s-14","f-w-600"],[1,"mat-body-1","f-s-12"],["mat-header-cell","","mat-sort-header","corsi_titolo",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"bg-light-primary","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],[2,"color","black","text-decoration","none",3,"routerLink"],["mat-header-cell","",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-icon-button","","disabled","",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","eye",1,"icon-18","d-flex","align-items-center"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&e.DNE(0,Ei,5,0,"div",0)(1,Zi,90,19,"div"),2&n&&e.vxM(o.corso&&o.corso.id_corso?1:0)},dependencies:[k.G,u.nJ,p.RN,p.m2,p.MM,p.Lc,p.dh,N.q,C.pQ,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,g.MD,g.PV,h.Wk,s.YN,s.X1,z.X4,z.Jc,g.kt],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{display:flex;text-align:center;flex-grow:0;flex-basis:0;margin-right:16px;align-items:center}.course-header[_ngcontent-%COMP%]{padding:12px!important;color:#fff}.course-header[_ngcontent-%COMP%] .mat-card-header-text[_ngcontent-%COMP%]{width:100%!important}.course-header.Angular[_ngcontent-%COMP%]{background-color:#fc4b6c}.course-header.Web[_ngcontent-%COMP%]{background-color:#1e88e5}.course-header.Design[_ngcontent-%COMP%]{background-color:#26c6da}.course-header.Android[_ngcontent-%COMP%]{background-color:#ffb22b}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%] .course-duration[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center}.mat-card-actions[_ngcontent-%COMP%]{border-top:1px solid rgba(120,130,140,.13);padding:8px 0!important}.ilabel[_ngcontent-%COMP%]{font-weight:400!important}.text-accent_p[_ngcontent-%COMP%]{color:#38a1cf!important}"]})}}return i})();const eo=()=>[5,8,10],to=i=>({background:i,color:"white !important"}),io=i=>["/formatori/corsi/visualizza-corso/",i],oo=i=>["/formatori/utenti/visualizza-utente/",i];function no(i,r){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"h2",3),e.EFF(4," Non hai i permessi per accedere a questa risorsa! "),e.k0s()()()())}function ao(i,r){if(1&i&&e.nrm(0,"img",34)(1,"br"),2&i){const t=e.XpG(2);e.FS9("ngSrc",t.avatar_location)}}function ro(i,r){if(1&i&&(e.j41(0,"span",35),e.EFF(1),e.k0s(),e.EFF(2," - ")),2&i){const t=e.XpG(2);e.R7$(),e.JRh(t.corso.tipologia)}}function so(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.descrizione,"")}}function lo(i,r){1&i&&(e.EFF(0," Non disponibile!"),e.nrm(1,"br"))}function co(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.finalita,"")}}function mo(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function po(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.programma," ")}}function _o(i,r){1&i&&(e.EFF(0," Informazione non disponibile "),e.nrm(1,"br"))}function uo(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" (",t.corso.destinatari,")")}}function fo(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function go(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" (",t.corso.durata,")")}}function Co(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function ho(i,r){if(1&i&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.Aen(e.eq3(3,to,t.corso.colore)),e.R7$(),e.SpI(" ",t.corso.categoria," ")}}function zo(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(2);e.SpI(" ",t.utenti.length," ")}}function Fo(i,r){1&i&&e.EFF(0," 0 ")}function vo(i,r){1&i&&(e.j41(0,"div",18)(1,"div",37),e.EFF(2," Non sono presenti files associati al corso! "),e.k0s()())}function bo(i,r){if(1&i){const t=e.RV6();e.j41(0,"div",19)(1,"div",38)(2,"span",39),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.nrm(3,"i-tabler",40),e.k0s(),e.j41(4,"div",41)(5,"a",42),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.EFF(6),e.k0s()(),e.j41(7,"span",43),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.cancellaFile(o))}),e.nrm(8,"i-tabler",44),e.k0s()()()}if(2&i){const t=r.$implicit,n=e.XpG(2);e.R7$(6),e.JRh(n.settings.parseOnlyFilename(t))}}function Eo(i,r){1&i&&(e.j41(0,"div",18)(1,"div",37),e.EFF(2," Non sono presenti utenti iscritti al corso a te associati! "),e.k0s()())}function ko(i,r){1&i&&(e.j41(0,"th",45),e.EFF(1," Utente "),e.k0s())}function jo(i,r){if(1&i&&(e.j41(0,"td",46)(1,"div",38),e.nrm(2,"img",47),e.j41(3,"div",48)(4,"h6",49),e.EFF(5),e.k0s(),e.j41(6,"div",50),e.EFF(7),e.k0s(),e.j41(8,"div",50),e.EFF(9),e.k0s(),e.j41(10,"div",50),e.EFF(11),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Y8G("src",t.avatar_location?t.avatar_location:"assets/images/profile/user-3.jpg",e.B4B),e.R7$(3),e.Lme(" ",t.cognome," ",t.nome," "),e.R7$(2),e.SpI(" ",t.cdf," "),e.R7$(2),e.SpI(" ",t.email," "),e.R7$(2),e.E5c(" ",t.cellulare," ",t.telefono?"-":""," ",t.telefono," ")}}function xo(i,r){1&i&&(e.j41(0,"th",51),e.EFF(1," Corsi "),e.k0s())}function wo(i,r){if(1&i&&(e.j41(0,"span",53)(1,"a",54),e.EFF(2),e.nI1(3,"titlecase"),e.k0s()()),2&i){const t=r.$implicit,n=r.$index;e.XpG();const o=e.r8f(1);e.R7$(),e.Y8G("routerLink",e.eq3(4,io,t)),e.R7$(),e.JRh(e.bMT(3,2,o[n]))}}function Ao(i,r){if(1&i&&(e.SS7(0)(1),e.Z7z(2,wo,4,6,"span",53,e.fX1)),2&i){const t=e.XpG().$implicit,n=t.corsi_id.split(", ");e.R7$(),e.bH3(t.corsi_titolo.split(", ")),e.R7$(),e.Dyx(n)}}function yo(i,r){if(1&i&&(e.j41(0,"td",52),e.DNE(1,Ao,4,1),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(t.corsi_id&&t.corsi_titolo?1:-1)}}function Ro(i,r){1&i&&(e.j41(0,"th",55),e.EFF(1," Azioni "),e.k0s())}function Mo(i,r){if(1&i&&(e.j41(0,"td",52)(1,"a",56),e.nrm(2,"i-tabler",57),e.k0s()()),2&i){const t=r.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(1,oo,t.id_user))}}function To(i,r){1&i&&e.nrm(0,"tr",58)}function Do(i,r){1&i&&e.nrm(0,"tr",59)}function So(i,r){if(1&i&&(e.j41(0,"div")(1,"div",0)(2,"div",4)(3,"mat-card",2)(4,"div",0)(5,"div",1)(6,"mat-card-header")(7,"mat-card-title"),e.DNE(8,ao,2,1),e.EFF(9),e.k0s(),e.j41(10,"mat-card-subtitle",5),e.DNE(11,ro,3,1),e.j41(12,"span",6),e.EFF(13),e.k0s(),e.nrm(14,"br")(15,"br"),e.j41(16,"span",7),e.nrm(17,"br"),e.j41(18,"mat-label",8),e.EFF(19,"Descrizione"),e.k0s(),e.DNE(20,so,2,1,"br")(21,lo,2,0,"br"),e.nrm(22,"br"),e.k0s(),e.j41(23,"span",7)(24,"mat-label",8),e.EFF(25,"Finalit\xe0"),e.k0s(),e.DNE(26,co,2,1,"br")(27,mo,2,0,"br"),e.k0s(),e.j41(28,"span",7),e.nrm(29,"br"),e.j41(30,"mat-label",8),e.EFF(31,"Programma"),e.k0s(),e.DNE(32,po,2,1,"br")(33,_o,2,0,"br"),e.nrm(34,"br"),e.k0s(),e.j41(35,"span",7)(36,"mat-label",8),e.EFF(37,"Destinatari"),e.k0s(),e.DNE(38,uo,2,1,"br")(39,fo,2,0,"br"),e.nrm(40,"br"),e.k0s(),e.j41(41,"span",7)(42,"mat-label",9),e.EFF(43,"Durata"),e.k0s(),e.DNE(44,go,2,1,"br")(45,Co,2,0,"br"),e.k0s()()()(),e.j41(46,"div",1)(47,"mat-card-header"),e.DNE(48,ho,2,5,"span",10),e.k0s()()(),e.nrm(49,"mat-divider"),e.j41(50,"div",0)(51,"div",11),e.EFF(52," Presente dal "),e.j41(53,"b"),e.EFF(54),e.k0s()(),e.nrm(55,"div",12),e.j41(56,"div",13),e.nrm(57,"i-tabler",14),e.DNE(58,zo,1,1)(59,Fo,1,0),e.k0s()()()(),e.j41(60,"div",4)(61,"div",0)(62,"div",15)(63,"mat-card",2)(64,"mat-card-content",16)(65,"h6",17),e.EFF(66,"Files"),e.k0s(),e.DNE(67,vo,3,0,"div",18),e.Z7z(68,bo,9,1,"div",19,e.Vm6),e.k0s()()()()(),e.j41(70,"div",15)(71,"mat-card",2)(72,"h6",20),e.EFF(73,"Utenti iscritti al corso"),e.k0s(),e.DNE(74,Eo,3,0,"div",18),e.j41(75,"mat-card-content")(76,"div",21)(77,"table",22),e.qex(78,23),e.DNE(79,ko,2,0,"th",24)(80,jo,12,8,"td",25),e.bVm(),e.qex(81,26),e.DNE(82,xo,2,0,"th",27)(83,yo,2,1,"td",28),e.bVm(),e.qex(84,29),e.DNE(85,Ro,2,0,"th",30)(86,Mo,3,3,"td",28),e.bVm(),e.DNE(87,To,1,0,"tr",31)(88,Do,1,0,"tr",32),e.k0s(),e.nrm(89,"mat-paginator",33),e.k0s()()()()()()),2&i){const t=e.XpG();e.R7$(8),e.vxM(t.corso&&t.corso.avatar_location&&""!=t.corso.avatar_location?8:-1),e.R7$(),e.SpI(" ",t.corso.titolo," "),e.R7$(2),e.vxM(t.corso.tipologia?11:-1),e.R7$(2),e.JRh(t.corso.erogazione?"LIBERA":"EDIZIONE"),e.R7$(7),e.vxM(t.corso.descrizione?20:21),e.R7$(6),e.vxM(t.corso.finalita?26:27),e.R7$(6),e.vxM(t.corso.programma?32:33),e.R7$(6),e.vxM(t.corso.destinatari?38:39),e.R7$(6),e.vxM(t.corso.durata?44:45),e.R7$(4),e.vxM(t.corso.id_affiliato?-1:48),e.R7$(6),e.SpI("",t.settings.convertInItDataYYYY(t.corso.insert_time)," "),e.R7$(4),e.vxM(t.utenti&&t.utenti.length?58:59),e.R7$(9),e.vxM(t.files&&0==t.files.length?67:-1),e.R7$(),e.Dyx(t.files),e.R7$(6),e.vxM(t.utenti&&0==t.utenti.length?74:-1),e.R7$(3),e.Y8G("dataSource",t.dataSource),e.R7$(10),e.Y8G("matHeaderRowDef",t.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",t.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(18,eo))}}let $o=(()=>{class i{constructor(t,n,o,a){this.activatedRouter=t,this.dialog=n,this.api=o,this.settings=a,this.avatar_location="/assets/images/logos/no-logo.webp",this.sort=Object.create(null),this.paginator=Object.create(null),this.displayedColumns=["Info","Azioni"]}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_corso=t.activatedRouter.snapshot.paramMap.get("id_corso"),t.corso=yield t.api.call("getCorsoCustom",{id_corso:t.id_corso}),t.corso.id_corso&&(t.files=yield t.api.call("getFilesCorso",{id_corso:t.id_corso}),t.corso.avatar_location&&(t.avatar_location=yield t.api.getUserAvatarLocation(t.corso.id_corso)),t.utenti=yield t.api.call("getUtentiCorso",{id_corso:t.id_corso}),t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort)})()}scaricaFile(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("getFileUtente",{id_corso:n.id_corso,filename:t});o&&window.open(o,"_blank")})()}cancellaFile(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellare il file?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaFileUtente",{id_user:n.id_corso,filename:t},!0),n.files=yield n.api.call("getFilesUtente",{id_user:n.id_corso}))});return function(l){return a.apply(this,arguments)}}())})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(h.nX),e.rXU(T.bZ),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-visualizza-corso"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"row"],[1,"col-sm-12"],[1,"cardWithShadow"],[1,"text-center","p-10"],[1,"col-sm-6"],[1,"mat-body-1","m-b-15"],[1,"bg-light-warning","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"f-s-12"],[1,"mat-subtitle-2","f-w-600","m-b-4","d-block","text-accent_p","f-s-14"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block","text-accent_p","f-s-14"],[1,"text-success","text-center","rounded","f-w-600","p-6","p-y-4","f-s-12",3,"style"],[1,"col-6","p-y-12","p-l-30","f-s-14"],[1,"col-4","p-y-12"],[1,"col-2","p-y-12"],["name","shopping-bag",1,"icon-18","m-r-4"],[1,"col-12"],[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,"mat-subtitle-1","p-t-15","p-l-15","f-s-16","f-w-600"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Info"],["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","Corsi"],["mat-header-cell","","mat-sort-header","corsi_titolo","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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"],["width","100","height","100",1,"rounded-circle","border","p-5","b-1",3,"ngSrc"],[1,"bg-light-success","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"text-success","text-center","rounded","f-w-600","p-6","p-y-4","f-s-12"],[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"],[1,"text-error","bg-light-error","rounded-circle","icon-46","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click"],["name","x",1,"icon-22","d-flex"],["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"],["alt","utente","width","40",1,"rounded-circle",3,"src"],[1,"m-l-16"],[1,"mat-subtitle-1","f-s-14","f-w-600"],[1,"mat-body-1","f-s-12"],["mat-header-cell","","mat-sort-header","corsi_titolo",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"bg-light-primary","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],[2,"color","black","text-decoration","none",3,"routerLink"],["mat-header-cell","",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-icon-button","","disabled","",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","eye",1,"icon-18","d-flex","align-items-center"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&e.DNE(0,no,5,0,"div",0)(1,So,90,19,"div"),2&n&&e.vxM(o.corso&&o.corso.id_corso?1:0)},dependencies:[k.G,u.nJ,p.RN,p.m2,p.MM,p.Lc,p.dh,N.q,C.pQ,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,g.MD,g.PV,h.Wk,s.YN,s.X1,z.X4,z.Jc,g.kt],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{display:flex;text-align:center;flex-grow:0;flex-basis:0;margin-right:16px;align-items:center}.course-header[_ngcontent-%COMP%]{padding:12px!important;color:#fff}.course-header[_ngcontent-%COMP%] .mat-card-header-text[_ngcontent-%COMP%]{width:100%!important}.course-header.Angular[_ngcontent-%COMP%]{background-color:#fc4b6c}.course-header.Web[_ngcontent-%COMP%]{background-color:#1e88e5}.course-header.Design[_ngcontent-%COMP%]{background-color:#26c6da}.course-header.Android[_ngcontent-%COMP%]{background-color:#ffb22b}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%] .course-duration[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center}.mat-card-actions[_ngcontent-%COMP%]{border-top:1px solid rgba(120,130,140,.13);padding:8px 0!important}.ilabel[_ngcontent-%COMP%]{font-weight:400!important}.text-accent_p[_ngcontent-%COMP%]{color:#38a1cf!important}"]})}}return i})();const Io=()=>[5,8,10],Vo=i=>({background:i,color:"white !important"}),Lo=i=>["/formatori/corsi/visualizza-corso/",i],Go=i=>["/formatori/utenti/visualizza-utente/",i];function No(i,r){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"h2",3),e.EFF(4," Non hai i permessi per accedere a questa risorsa! "),e.k0s()()()())}function Xo(i,r){if(1&i&&e.nrm(0,"img",34)(1,"br"),2&i){const t=e.XpG(2);e.FS9("ngSrc",t.avatar_location)}}function Bo(i,r){if(1&i&&(e.j41(0,"span",35),e.EFF(1),e.k0s(),e.EFF(2," - ")),2&i){const t=e.XpG(2);e.R7$(),e.JRh(t.corso.tipologia)}}function Oo(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.descrizione,"")}}function Yo(i,r){1&i&&(e.EFF(0," Non disponibile!"),e.nrm(1,"br"))}function qo(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.finalita,"")}}function Po(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function Jo(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.programma," ")}}function Uo(i,r){1&i&&(e.EFF(0," Informazione non disponibile "),e.nrm(1,"br"))}function Ho(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" (",t.corso.destinatari,")")}}function Qo(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function Wo(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" (",t.corso.durata,")")}}function Zo(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function Ko(i,r){if(1&i&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.Aen(e.eq3(3,Vo,t.corso.colore)),e.R7$(),e.SpI(" ",t.corso.categoria," ")}}function en(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(2);e.SpI(" ",t.utenti.length," ")}}function tn(i,r){1&i&&e.EFF(0," 0 ")}function on(i,r){1&i&&(e.j41(0,"div",18)(1,"div",37),e.EFF(2," Non sono presenti files associati alla certificazione! "),e.k0s()())}function nn(i,r){if(1&i){const t=e.RV6();e.j41(0,"div",19)(1,"div",38)(2,"span",39),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.nrm(3,"i-tabler",40),e.k0s(),e.j41(4,"div",41)(5,"a",42),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.EFF(6),e.k0s()(),e.j41(7,"span",43),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.cancellaFile(o))}),e.nrm(8,"i-tabler",44),e.k0s()()()}if(2&i){const t=r.$implicit,n=e.XpG(2);e.R7$(6),e.JRh(n.settings.parseOnlyFilename(t))}}function an(i,r){1&i&&(e.j41(0,"div",18)(1,"div",37),e.EFF(2," Non sono presenti utenti iscritti alla certificazione a te associati! "),e.k0s()())}function rn(i,r){1&i&&(e.j41(0,"th",45),e.EFF(1," Utente "),e.k0s())}function sn(i,r){if(1&i&&(e.j41(0,"td",46)(1,"div",38),e.nrm(2,"img",47),e.j41(3,"div",48)(4,"h6",49),e.EFF(5),e.k0s(),e.j41(6,"div",50),e.EFF(7),e.k0s(),e.j41(8,"div",50),e.EFF(9),e.k0s(),e.j41(10,"div",50),e.EFF(11),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Y8G("src",t.avatar_location?t.avatar_location:"assets/images/profile/user-3.jpg",e.B4B),e.R7$(3),e.Lme(" ",t.cognome," ",t.nome," "),e.R7$(2),e.SpI(" ",t.cdf," "),e.R7$(2),e.SpI(" ",t.email," "),e.R7$(2),e.E5c(" ",t.cellulare," ",t.telefono?"-":""," ",t.telefono," ")}}function ln(i,r){1&i&&(e.j41(0,"th",51),e.EFF(1," Corsi "),e.k0s())}function cn(i,r){if(1&i&&(e.j41(0,"span",53)(1,"a",54),e.EFF(2),e.nI1(3,"titlecase"),e.k0s()()),2&i){const t=r.$implicit,n=r.$index;e.XpG();const o=e.r8f(1);e.R7$(),e.Y8G("routerLink",e.eq3(4,Lo,t)),e.R7$(),e.JRh(e.bMT(3,2,o[n]))}}function mn(i,r){if(1&i&&(e.SS7(0)(1),e.Z7z(2,cn,4,6,"span",53,e.fX1)),2&i){const t=e.XpG().$implicit,n=t.corsi_id.split(", ");e.R7$(),e.bH3(t.corsi_titolo.split(", ")),e.R7$(),e.Dyx(n)}}function dn(i,r){if(1&i&&(e.j41(0,"td",52),e.DNE(1,mn,4,1),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(t.corsi_id&&t.corsi_titolo?1:-1)}}function pn(i,r){1&i&&(e.j41(0,"th",55),e.EFF(1," Azioni "),e.k0s())}function _n(i,r){if(1&i&&(e.j41(0,"td",52)(1,"a",56),e.nrm(2,"i-tabler",57),e.k0s()()),2&i){const t=r.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(1,Go,t.id_user))}}function un(i,r){1&i&&e.nrm(0,"tr",58)}function fn(i,r){1&i&&e.nrm(0,"tr",59)}function gn(i,r){if(1&i&&(e.j41(0,"div")(1,"div",0)(2,"div",4)(3,"mat-card",2)(4,"div",0)(5,"div",1)(6,"mat-card-header")(7,"mat-card-title"),e.DNE(8,Xo,2,1),e.EFF(9),e.k0s(),e.j41(10,"mat-card-subtitle",5),e.DNE(11,Bo,3,1),e.j41(12,"span",6),e.EFF(13),e.k0s(),e.nrm(14,"br")(15,"br"),e.j41(16,"span",7),e.nrm(17,"br"),e.j41(18,"mat-label",8),e.EFF(19,"Descrizione"),e.k0s(),e.DNE(20,Oo,2,1,"br")(21,Yo,2,0,"br"),e.nrm(22,"br"),e.k0s(),e.j41(23,"span",7)(24,"mat-label",8),e.EFF(25,"Finalit\xe0"),e.k0s(),e.DNE(26,qo,2,1,"br")(27,Po,2,0,"br"),e.k0s(),e.j41(28,"span",7),e.nrm(29,"br"),e.j41(30,"mat-label",8),e.EFF(31,"Programma"),e.k0s(),e.DNE(32,Jo,2,1,"br")(33,Uo,2,0,"br"),e.nrm(34,"br"),e.k0s(),e.j41(35,"span",7)(36,"mat-label",8),e.EFF(37,"Destinatari"),e.k0s(),e.DNE(38,Ho,2,1,"br")(39,Qo,2,0,"br"),e.nrm(40,"br"),e.k0s(),e.j41(41,"span",7)(42,"mat-label",9),e.EFF(43,"Durata"),e.k0s(),e.DNE(44,Wo,2,1,"br")(45,Zo,2,0,"br"),e.k0s()()()(),e.j41(46,"div",1)(47,"mat-card-header"),e.DNE(48,Ko,2,5,"span",10),e.k0s()()(),e.nrm(49,"mat-divider"),e.j41(50,"div",0)(51,"div",11),e.EFF(52," Presente dal "),e.j41(53,"b"),e.EFF(54),e.k0s()(),e.nrm(55,"div",12),e.j41(56,"div",13),e.nrm(57,"i-tabler",14),e.DNE(58,en,1,1)(59,tn,1,0),e.k0s()()()(),e.j41(60,"div",4)(61,"div",0)(62,"div",15)(63,"mat-card",2)(64,"mat-card-content",16)(65,"h6",17),e.EFF(66,"Files"),e.k0s(),e.DNE(67,on,3,0,"div",18),e.Z7z(68,nn,9,1,"div",19,e.Vm6),e.k0s()()()()(),e.j41(70,"div",15)(71,"mat-card",2)(72,"h6",20),e.EFF(73,"Utenti iscritti alla certificazione"),e.k0s(),e.DNE(74,an,3,0,"div",18),e.j41(75,"mat-card-content")(76,"div",21)(77,"table",22),e.qex(78,23),e.DNE(79,rn,2,0,"th",24)(80,sn,12,8,"td",25),e.bVm(),e.qex(81,26),e.DNE(82,ln,2,0,"th",27)(83,dn,2,1,"td",28),e.bVm(),e.qex(84,29),e.DNE(85,pn,2,0,"th",30)(86,_n,3,3,"td",28),e.bVm(),e.DNE(87,un,1,0,"tr",31)(88,fn,1,0,"tr",32),e.k0s(),e.nrm(89,"mat-paginator",33),e.k0s()()()()()()),2&i){const t=e.XpG();e.R7$(8),e.vxM(t.corso&&t.corso.avatar_location&&""!=t.corso.avatar_location?8:-1),e.R7$(),e.SpI(" ",t.corso.titolo," "),e.R7$(2),e.vxM(t.corso.tipologia?11:-1),e.R7$(2),e.JRh(t.corso.erogazione?"LIBERA":"EDIZIONE"),e.R7$(7),e.vxM(t.corso.descrizione?20:21),e.R7$(6),e.vxM(t.corso.finalita?26:27),e.R7$(6),e.vxM(t.corso.programma?32:33),e.R7$(6),e.vxM(t.corso.destinatari?38:39),e.R7$(6),e.vxM(t.corso.durata?44:45),e.R7$(4),e.vxM(t.corso.id_affiliato?-1:48),e.R7$(6),e.SpI("",t.settings.convertInItDataYYYY(t.corso.insert_time)," "),e.R7$(4),e.vxM(t.utenti&&t.utenti.length?58:59),e.R7$(9),e.vxM(t.files&&0==t.files.length?67:-1),e.R7$(),e.Dyx(t.files),e.R7$(6),e.vxM(t.utenti&&0==t.utenti.length?74:-1),e.R7$(3),e.Y8G("dataSource",t.dataSource),e.R7$(10),e.Y8G("matHeaderRowDef",t.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",t.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(18,Io))}}let Cn=(()=>{class i{constructor(t,n,o,a){this.activatedRouter=t,this.dialog=n,this.api=o,this.settings=a,this.avatar_location="/assets/images/logos/no-logo.webp",this.sort=Object.create(null),this.paginator=Object.create(null),this.displayedColumns=["Info","Azioni"]}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_esame=t.activatedRouter.snapshot.paramMap.get("id_esame"),t.corso=yield t.api.call("getEsame",{id_esame:t.id_esame}),t.corso.id_esame&&(t.files=yield t.api.call("getFilesEsame",{id_esame:t.id_esame}),t.corso.avatar_location&&(t.avatar_location=yield t.api.getUserAvatarLocation(t.corso.id_esame)),t.utenti=yield t.api.call("getUtentiEsame",{id_esame:t.id_esame}),t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort)})()}scaricaFile(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("getFileUtente",{id_esame:n.id_esame,filename:t});o&&window.open(o,"_blank")})()}cancellaFile(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellare il file?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaFileUtente",{id_user:n.id_esame,filename:t},!0),n.files=yield n.api.call("getFilesUtente",{id_user:n.id_esame}))});return function(l){return a.apply(this,arguments)}}())})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(h.nX),e.rXU(T.bZ),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-visualizza-esame"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"row"],[1,"col-sm-12"],[1,"cardWithShadow"],[1,"text-center","p-10"],[1,"col-sm-6"],[1,"mat-body-1","m-b-15"],[1,"bg-light-warning","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"f-s-12"],[1,"mat-subtitle-2","f-w-600","m-b-4","d-block","text-accent_p","f-s-14"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block","text-accent_p","f-s-14"],[1,"text-success","text-center","rounded","f-w-600","p-6","p-y-4","f-s-12",3,"style"],[1,"col-6","p-y-12","p-l-30","f-s-14"],[1,"col-4","p-y-12"],[1,"col-2","p-y-12"],["name","shopping-bag",1,"icon-18","m-r-4"],[1,"col-12"],[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,"mat-subtitle-1","p-t-15","p-l-15","f-s-16","f-w-600"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Info"],["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","Corsi"],["mat-header-cell","","mat-sort-header","corsi_titolo","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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"],["width","100","height","100",1,"rounded-circle","border","p-5","b-1",3,"ngSrc"],[1,"bg-light-success","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"text-success","text-center","rounded","f-w-600","p-6","p-y-4","f-s-12"],[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"],[1,"text-error","bg-light-error","rounded-circle","icon-46","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click"],["name","x",1,"icon-22","d-flex"],["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"],["alt","utente","width","40",1,"rounded-circle",3,"src"],[1,"m-l-16"],[1,"mat-subtitle-1","f-s-14","f-w-600"],[1,"mat-body-1","f-s-12"],["mat-header-cell","","mat-sort-header","corsi_titolo",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"bg-light-primary","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],[2,"color","black","text-decoration","none",3,"routerLink"],["mat-header-cell","",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-icon-button","","disabled","",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","eye",1,"icon-18","d-flex","align-items-center"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&e.DNE(0,No,5,0,"div",0)(1,gn,90,19,"div"),2&n&&e.vxM(o.corso&&o.corso.id_esame?1:0)},dependencies:[k.G,u.nJ,p.RN,p.m2,p.MM,p.Lc,p.dh,N.q,C.pQ,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,g.MD,g.PV,h.Wk,s.YN,s.X1,z.X4,z.Jc,g.kt],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{display:flex;text-align:center;flex-grow:0;flex-basis:0;margin-right:16px;align-items:center}.course-header[_ngcontent-%COMP%]{padding:12px!important;color:#fff}.course-header[_ngcontent-%COMP%] .mat-card-header-text[_ngcontent-%COMP%]{width:100%!important}.course-header.Angular[_ngcontent-%COMP%]{background-color:#fc4b6c}.course-header.Web[_ngcontent-%COMP%]{background-color:#1e88e5}.course-header.Design[_ngcontent-%COMP%]{background-color:#26c6da}.course-header.Android[_ngcontent-%COMP%]{background-color:#ffb22b}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%] .course-duration[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center}.mat-card-actions[_ngcontent-%COMP%]{border-top:1px solid rgba(120,130,140,.13);padding:8px 0!important}.ilabel[_ngcontent-%COMP%]{font-weight:400!important}.text-accent_p[_ngcontent-%COMP%]{color:#38a1cf!important}"]})}}return i})();const hn=()=>[5,8,10],zn=i=>({background:i,color:"white !important"}),Fn=i=>["/formatori/corsi/visualizza-corso/",i],vn=i=>["/formatori/utenti/visualizza-utente/",i];function bn(i,r){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"h2",3),e.EFF(4," Non hai i permessi per accedere a questa risorsa! "),e.k0s()()()())}function En(i,r){if(1&i&&e.nrm(0,"img",34)(1,"br"),2&i){const t=e.XpG(2);e.FS9("ngSrc",t.avatar_location)}}function kn(i,r){if(1&i&&(e.j41(0,"span",35),e.EFF(1),e.k0s(),e.EFF(2," - ")),2&i){const t=e.XpG(2);e.R7$(),e.JRh(t.corso.tipologia)}}function jn(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.descrizione,"")}}function xn(i,r){1&i&&(e.EFF(0," Non disponibile!"),e.nrm(1,"br"))}function wn(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.finalita,"")}}function An(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function yn(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" ",t.corso.programma," ")}}function Rn(i,r){1&i&&(e.EFF(0," Informazione non disponibile "),e.nrm(1,"br"))}function Mn(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" (",t.corso.destinatari,")")}}function Tn(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function Dn(i,r){if(1&i&&(e.EFF(0),e.nrm(1,"br")),2&i){const t=e.XpG(2);e.SpI(" (",t.corso.durata,")")}}function Sn(i,r){1&i&&(e.EFF(0," Informazione non disponibile!"),e.nrm(1,"br"))}function $n(i,r){if(1&i&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.Aen(e.eq3(3,zn,t.corso.colore)),e.R7$(),e.SpI(" ",t.corso.categoria," ")}}function In(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(2);e.SpI(" ",t.utenti.length," ")}}function Vn(i,r){1&i&&e.EFF(0," 0 ")}function Ln(i,r){1&i&&(e.j41(0,"div",18)(1,"div",37),e.EFF(2," Non sono presenti files associati alla certificazione! "),e.k0s()())}function Gn(i,r){if(1&i){const t=e.RV6();e.j41(0,"div",19)(1,"div",38)(2,"span",39),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.nrm(3,"i-tabler",40),e.k0s(),e.j41(4,"div",41)(5,"a",42),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.scaricaFile(o))}),e.EFF(6),e.k0s()(),e.j41(7,"span",43),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.cancellaFile(o))}),e.nrm(8,"i-tabler",44),e.k0s()()()}if(2&i){const t=r.$implicit,n=e.XpG(2);e.R7$(6),e.JRh(n.settings.parseOnlyFilename(t))}}function Nn(i,r){1&i&&(e.j41(0,"div",18)(1,"div",37),e.EFF(2," Non sono presenti utenti iscritti alla certificazione a te associati! "),e.k0s()())}function Xn(i,r){1&i&&(e.j41(0,"th",45),e.EFF(1," Utente "),e.k0s())}function Bn(i,r){if(1&i&&(e.j41(0,"td",46)(1,"div",38),e.nrm(2,"img",47),e.j41(3,"div",48)(4,"h6",49),e.EFF(5),e.k0s(),e.j41(6,"div",50),e.EFF(7),e.k0s(),e.j41(8,"div",50),e.EFF(9),e.k0s(),e.j41(10,"div",50),e.EFF(11),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Y8G("src",t.avatar_location?t.avatar_location:"assets/images/profile/user-3.jpg",e.B4B),e.R7$(3),e.Lme(" ",t.cognome," ",t.nome," "),e.R7$(2),e.SpI(" ",t.cdf," "),e.R7$(2),e.SpI(" ",t.email," "),e.R7$(2),e.E5c(" ",t.cellulare," ",t.telefono?"-":""," ",t.telefono," ")}}function On(i,r){1&i&&(e.j41(0,"th",51),e.EFF(1," Corsi "),e.k0s())}function Yn(i,r){if(1&i&&(e.j41(0,"span",53)(1,"a",54),e.EFF(2),e.nI1(3,"titlecase"),e.k0s()()),2&i){const t=r.$implicit,n=r.$index;e.XpG();const o=e.r8f(1);e.R7$(),e.Y8G("routerLink",e.eq3(4,Fn,t)),e.R7$(),e.JRh(e.bMT(3,2,o[n]))}}function qn(i,r){if(1&i&&(e.SS7(0)(1),e.Z7z(2,Yn,4,6,"span",53,e.fX1)),2&i){const t=e.XpG().$implicit,n=t.corsi_id.split(", ");e.R7$(),e.bH3(t.corsi_titolo.split(", ")),e.R7$(),e.Dyx(n)}}function Pn(i,r){if(1&i&&(e.j41(0,"td",52),e.DNE(1,qn,4,1),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(t.corsi_id&&t.corsi_titolo?1:-1)}}function Jn(i,r){1&i&&(e.j41(0,"th",55),e.EFF(1," Azioni "),e.k0s())}function Un(i,r){if(1&i&&(e.j41(0,"td",52)(1,"a",56),e.nrm(2,"i-tabler",57),e.k0s()()),2&i){const t=r.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(1,vn,t.id_user))}}function Hn(i,r){1&i&&e.nrm(0,"tr",58)}function Qn(i,r){1&i&&e.nrm(0,"tr",59)}function Wn(i,r){if(1&i&&(e.j41(0,"div")(1,"div",0)(2,"div",4)(3,"mat-card",2)(4,"div",0)(5,"div",1)(6,"mat-card-header")(7,"mat-card-title"),e.DNE(8,En,2,1),e.EFF(9),e.k0s(),e.j41(10,"mat-card-subtitle",5),e.DNE(11,kn,3,1),e.j41(12,"span",6),e.EFF(13),e.k0s(),e.nrm(14,"br")(15,"br"),e.j41(16,"span",7),e.nrm(17,"br"),e.j41(18,"mat-label",8),e.EFF(19,"Descrizione"),e.k0s(),e.DNE(20,jn,2,1,"br")(21,xn,2,0,"br"),e.nrm(22,"br"),e.k0s(),e.j41(23,"span",7)(24,"mat-label",8),e.EFF(25,"Finalit\xe0"),e.k0s(),e.DNE(26,wn,2,1,"br")(27,An,2,0,"br"),e.k0s(),e.j41(28,"span",7),e.nrm(29,"br"),e.j41(30,"mat-label",8),e.EFF(31,"Programma"),e.k0s(),e.DNE(32,yn,2,1,"br")(33,Rn,2,0,"br"),e.nrm(34,"br"),e.k0s(),e.j41(35,"span",7)(36,"mat-label",8),e.EFF(37,"Destinatari"),e.k0s(),e.DNE(38,Mn,2,1,"br")(39,Tn,2,0,"br"),e.nrm(40,"br"),e.k0s(),e.j41(41,"span",7)(42,"mat-label",9),e.EFF(43,"Durata"),e.k0s(),e.DNE(44,Dn,2,1,"br")(45,Sn,2,0,"br"),e.k0s()()()(),e.j41(46,"div",1)(47,"mat-card-header"),e.DNE(48,$n,2,5,"span",10),e.k0s()()(),e.nrm(49,"mat-divider"),e.j41(50,"div",0)(51,"div",11),e.EFF(52," Presente dal "),e.j41(53,"b"),e.EFF(54),e.k0s()(),e.nrm(55,"div",12),e.j41(56,"div",13),e.nrm(57,"i-tabler",14),e.DNE(58,In,1,1)(59,Vn,1,0),e.k0s()()()(),e.j41(60,"div",4)(61,"div",0)(62,"div",15)(63,"mat-card",2)(64,"mat-card-content",16)(65,"h6",17),e.EFF(66,"Files"),e.k0s(),e.DNE(67,Ln,3,0,"div",18),e.Z7z(68,Gn,9,1,"div",19,e.Vm6),e.k0s()()()()(),e.j41(70,"div",15)(71,"mat-card",2)(72,"h6",20),e.EFF(73,"Utenti iscritti alla certificazione"),e.k0s(),e.DNE(74,Nn,3,0,"div",18),e.j41(75,"mat-card-content")(76,"div",21)(77,"table",22),e.qex(78,23),e.DNE(79,Xn,2,0,"th",24)(80,Bn,12,8,"td",25),e.bVm(),e.qex(81,26),e.DNE(82,On,2,0,"th",27)(83,Pn,2,1,"td",28),e.bVm(),e.qex(84,29),e.DNE(85,Jn,2,0,"th",30)(86,Un,3,3,"td",28),e.bVm(),e.DNE(87,Hn,1,0,"tr",31)(88,Qn,1,0,"tr",32),e.k0s(),e.nrm(89,"mat-paginator",33),e.k0s()()()()()()),2&i){const t=e.XpG();e.R7$(8),e.vxM(t.corso&&t.corso.avatar_location&&""!=t.corso.avatar_location?8:-1),e.R7$(),e.SpI(" ",t.corso.titolo," "),e.R7$(2),e.vxM(t.corso.tipologia?11:-1),e.R7$(2),e.JRh(t.corso.erogazione?"LIBERA":"EDIZIONE"),e.R7$(7),e.vxM(t.corso.descrizione?20:21),e.R7$(6),e.vxM(t.corso.finalita?26:27),e.R7$(6),e.vxM(t.corso.programma?32:33),e.R7$(6),e.vxM(t.corso.destinatari?38:39),e.R7$(6),e.vxM(t.corso.durata?44:45),e.R7$(4),e.vxM(t.corso.id_affiliato?-1:48),e.R7$(6),e.SpI("",t.settings.convertInItDataYYYY(t.corso.insert_time)," "),e.R7$(4),e.vxM(t.utenti&&t.utenti.length?58:59),e.R7$(9),e.vxM(t.files&&0==t.files.length?67:-1),e.R7$(),e.Dyx(t.files),e.R7$(6),e.vxM(t.utenti&&0==t.utenti.length?74:-1),e.R7$(3),e.Y8G("dataSource",t.dataSource),e.R7$(10),e.Y8G("matHeaderRowDef",t.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",t.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(18,hn))}}let Zn=(()=>{class i{constructor(t,n,o,a){this.activatedRouter=t,this.dialog=n,this.api=o,this.settings=a,this.avatar_location="/assets/images/logos/no-logo.webp",this.sort=Object.create(null),this.paginator=Object.create(null),this.displayedColumns=["Info","Azioni"]}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_esame=t.activatedRouter.snapshot.paramMap.get("id_esame"),t.corso=yield t.api.call("getEsame",{id_esame:t.id_esame}),t.corso.id_esame&&(t.files=yield t.api.call("getFilesEsame",{id_esame:t.id_esame}),t.corso.avatar_location&&(t.avatar_location=yield t.api.getUserAvatarLocation(t.corso.id_esame)),t.utenti=yield t.api.call("getUtentiEsame",{id_esame:t.id_esame}),t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort)})()}scaricaFile(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("getFileUtente",{id_esame:n.id_esame,filename:t});o&&window.open(o,"_blank")})()}cancellaFile(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellare il file?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaFileUtente",{id_user:n.id_esame,filename:t},!0),n.files=yield n.api.call("getFilesUtente",{id_user:n.id_esame}))});return function(l){return a.apply(this,arguments)}}())})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(h.nX),e.rXU(T.bZ),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-visualizza-esame"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"row"],[1,"col-sm-12"],[1,"cardWithShadow"],[1,"text-center","p-10"],[1,"col-sm-6"],[1,"mat-body-1","m-b-15"],[1,"bg-light-warning","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"f-s-12"],[1,"mat-subtitle-2","f-w-600","m-b-4","d-block","text-accent_p","f-s-14"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block","text-accent_p","f-s-14"],[1,"text-success","text-center","rounded","f-w-600","p-6","p-y-4","f-s-12",3,"style"],[1,"col-6","p-y-12","p-l-30","f-s-14"],[1,"col-4","p-y-12"],[1,"col-2","p-y-12"],["name","shopping-bag",1,"icon-18","m-r-4"],[1,"col-12"],[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,"mat-subtitle-1","p-t-15","p-l-15","f-s-16","f-w-600"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Info"],["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","Corsi"],["mat-header-cell","","mat-sort-header","corsi_titolo","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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"],["width","100","height","100",1,"rounded-circle","border","p-5","b-1",3,"ngSrc"],[1,"bg-light-success","text-accent","rounded","f-w-600","p-6","p-y-4","f-s-12"],[1,"text-success","text-center","rounded","f-w-600","p-6","p-y-4","f-s-12"],[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"],[1,"text-error","bg-light-error","rounded-circle","icon-46","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click"],["name","x",1,"icon-22","d-flex"],["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"],["alt","utente","width","40",1,"rounded-circle",3,"src"],[1,"m-l-16"],[1,"mat-subtitle-1","f-s-14","f-w-600"],[1,"mat-body-1","f-s-12"],["mat-header-cell","","mat-sort-header","corsi_titolo",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"bg-light-primary","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],[2,"color","black","text-decoration","none",3,"routerLink"],["mat-header-cell","",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-icon-button","","disabled","",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","eye",1,"icon-18","d-flex","align-items-center"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&e.DNE(0,bn,5,0,"div",0)(1,Wn,90,19,"div"),2&n&&e.vxM(o.corso&&o.corso.id_esame?1:0)},dependencies:[k.G,u.nJ,p.RN,p.m2,p.MM,p.Lc,p.dh,N.q,C.pQ,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,g.MD,g.PV,h.Wk,s.YN,s.X1,z.X4,z.Jc,g.kt],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{display:flex;text-align:center;flex-grow:0;flex-basis:0;margin-right:16px;align-items:center}.course-header[_ngcontent-%COMP%]{padding:12px!important;color:#fff}.course-header[_ngcontent-%COMP%] .mat-card-header-text[_ngcontent-%COMP%]{width:100%!important}.course-header.Angular[_ngcontent-%COMP%]{background-color:#fc4b6c}.course-header.Web[_ngcontent-%COMP%]{background-color:#1e88e5}.course-header.Design[_ngcontent-%COMP%]{background-color:#26c6da}.course-header.Android[_ngcontent-%COMP%]{background-color:#ffb22b}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.course-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%] .course-duration[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center}.mat-card-actions[_ngcontent-%COMP%]{border-top:1px solid rgba(120,130,140,.13);padding:8px 0!important}.ilabel[_ngcontent-%COMP%]{font-weight:400!important}.text-accent_p[_ngcontent-%COMP%]{color:#38a1cf!important}"]})}}return i})();const Kn=()=>[5,8,10],le=i=>["/formatori/esami/visualizza-esame/",i],ea=i=>["/formatori/esami/visualizza-esami/",i];function ta(i,r){1&i&&(e.j41(0,"th",24),e.EFF(1," Certificazione "),e.k0s())}function ia(i,r){if(1&i&&(e.j41(0,"td",25)(1,"div",26)(2,"a",27)(3,"span",28),e.EFF(4),e.k0s()(),e.j41(5,"div",29)(6,"h6",30)(7,"a",31),e.EFF(8),e.nI1(9,"titlecase"),e.k0s()(),e.j41(10,"div",32),e.EFF(11),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Aen(t.colore?"background:"+t.colore:""),e.Y8G("routerLink",e.eq3(10,le,t.is_esame)),e.R7$(2),e.SpI(" ",t.titolo?t.titolo.charAt(0).toUpperCase():""," "),e.R7$(3),e.Y8G("routerLink",e.eq3(12,ea,t.id_corso)),e.R7$(),e.JRh(e.bMT(9,8,t.titolo)),e.R7$(3),e.SpI(" ",t.categoria," ")}}function oa(i,r){1&i&&(e.j41(0,"th",33),e.EFF(1," Tipologia "),e.k0s())}function na(i,r){if(1&i&&(e.j41(0,"td",34)(1,"span",35),e.EFF(2),e.k0s(),e.nrm(3,"br"),e.j41(4,"span",36),e.EFF(5),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.tipologia?t.tipologia:"FAD"," "),e.R7$(3),e.SpI(" ",t.erogazione&&0!=t.erogazione?"EDIZIONE":"LIBERA"," ")}}function aa(i,r){1&i&&(e.j41(0,"th",37),e.EFF(1," Iscritti Totali "),e.k0s())}function ra(i,r){if(1&i&&(e.j41(0,"td",34)(1,"span",35),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_iscritti," ")}}function sa(i,r){1&i&&(e.j41(0,"th",38),e.EFF(1," Edizioni "),e.k0s())}function la(i,r){if(1&i&&(e.j41(0,"td",34)(1,"span",39),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_sessioni," ")}}function ca(i,r){1&i&&(e.j41(0,"th",40),e.EFF(1," Azioni "),e.k0s())}function ma(i,r){if(1&i&&(e.j41(0,"td",34)(1,"a",41),e.nrm(2,"i-tabler",42),e.k0s()()),2&i){const t=r.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(1,le,t.id_esame))}}function da(i,r){1&i&&e.nrm(0,"tr",43)}function pa(i,r){1&i&&e.nrm(0,"tr",44)}let _a=(()=>{class i{constructor(t,n,o){this.api=n,this.settings=o,this.displayedColumns=["Corso","Tipologia","Iscritti","Sessioni","Azioni"],this.sort=Object.create(null),this.paginator=Object.create(null)}ngOnInit(){var t=this;return(0,m.A)(function*(){t.refresh()})()}refresh(){var t=this;return(0,m.A)(function*(){t.utenti=yield t.api.call("getEsami"),t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})()}filter(t){this.dataSource.filter=t.trim().toLowerCase()}cancellaUtente(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellare l'utente?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("deleteUtente",{id_user:t},!0),n.refresh())});return function(l){return a.apply(this,arguments)}}())})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(Q.QP),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-esami"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.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","Tipologia"],["mat-header-cell","","mat-sort-header","corsi_titolo","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Iscritti"],["mat-header-cell","","mat-sort-header","totale_iscritti","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Sessioni"],["mat-header-cell","","mat-sort-header","affiliato_nome","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"],["mat-icon-button","","matTooltip","Visualizza Certificazione",1,"align-items-center","justify-content-center","text-white","bg-warning","rounded-circle","p-10",3,"routerLink"],[1,"f-s-16","f-w-600"],[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","corsi_titolo",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"bg-light-primary","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],[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_iscritti",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-header-cell","","mat-sort-header","affiliato_nome",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"bg-light-accent","text-accent","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-icon-button","","matTooltip","Visualizza Scheda",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","eye",1,"icon-18","d-flex","align-items-center"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"input",4),e.bIt("keyup",function(l){return o.filter(l.target.value)}),e.k0s(),e.j41(6,"mat-icon",5),e.nrm(7,"i-tabler",6),e.k0s()()()()()(),e.j41(8,"mat-card",0)(9,"mat-card-content")(10,"div",7)(11,"table",8),e.qex(12,9),e.DNE(13,ta,2,0,"th",10)(14,ia,12,14,"td",11),e.bVm(),e.qex(15,12),e.DNE(16,oa,2,0,"th",13)(17,na,6,2,"td",14),e.bVm(),e.qex(18,15),e.DNE(19,aa,2,0,"th",16)(20,ra,3,1,"td",14),e.bVm(),e.qex(21,17),e.DNE(22,sa,2,0,"th",18)(23,la,3,1,"td",14),e.bVm(),e.qex(24,19),e.DNE(25,ca,2,0,"th",20)(26,ma,3,3,"td",14),e.bVm(),e.DNE(27,da,1,0,"tr",21)(28,pa,1,0,"tr",22),e.k0s(),e.nrm(29,"mat-paginator",23),e.k0s()()()),2&n&&(e.R7$(11),e.Y8G("dataSource",o.dataSource),e.R7$(16),e.Y8G("matHeaderRowDef",o.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",o.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(4,Kn)))},dependencies:[k.G,u.rl,u.yw,w.fg,p.RN,p.m2,C.pQ,x.An,V.oV,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,d.tP,g.MD,g.PV,p.Hu,h.iI,h.Wk,z.X4,z.Jc],encapsulation:2})}}return i})();function ua(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Titolo "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function fa(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Categoria "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function ga(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Durata "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Ca(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Descrizione "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function ha(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Finalit\xe0 "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function za(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Programma "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Fa(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Destinatari "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function va(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Contenuti "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function ba(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Caratteristiche "),e.j41(2,"strong"),e.EFF(3,"obbligatorie!"),e.k0s()())}class Ea{isErrorState(r,t){return!!(r&&r.invalid&&(r.dirty||r.touched||t&&t.submitted))}}let ka=(()=>{class i{constructor(t,n,o,a){this.api=t,this.settings=n,this.activatedRouter=o,this.router=a,this.matcher=new Ea,this.inserisciUtenteFormControl=new s.gE({titolo:new s.MJ("",[s.k0.required,s.k0.nullValidator]),categoria:new s.MJ("",[s.k0.required,s.k0.nullValidator]),colore:new s.MJ("",[s.k0.required,s.k0.nullValidator]),prezzo:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),erogazione:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),descrizione:new s.MJ("",[s.k0.required,s.k0.nullValidator]),finalita:new s.MJ(""),programma:new s.MJ(""),destinatari:new s.MJ(""),contenuti:new s.MJ(""),caratteristiche:new s.MJ(""),durata:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),id_corso:new s.MJ(0),insert_time:new s.MJ(0),avatar_location:new s.MJ("")})}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_corso=t.activatedRouter.snapshot.paramMap.get("id"),t.refresh()})()}refresh(){var t=this;return(0,m.A)(function*(){t.corso=yield t.api.call("getCorsoCustom",{id_corso:t.id_corso}),t.inserisciUtenteFormControl.setValue({titolo:t.corso.titolo,categoria:t.corso.categoria,colore:t.corso.colore,prezzo:t.corso.prezzo,erogazione:t.corso.erogazione,descrizione:t.corso.descrizione,finalita:t.corso.finalita,programma:t.corso.programma,destinatari:t.corso.destinatari,contenuti:t.corso.contenuti,caratteristiche:t.corso.caratteristiche,durata:t.corso.durata,id_corso:t.corso.id_corso,insert_time:t.corso.insert_time,avatar_location:t.corso.avatar_location})})()}updateCorso(){var t=this;return(0,m.A)(function*(){t.inserisciUtenteFormControl.valid&&(yield t.api.callWithDialog("updateCorso",t.inserisciUtenteFormControl.value)).afterClosed().subscribe(o=>{t.router.navigate(["/formatori/corsi_custom"],{relativeTo:t.activatedRouter})})})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(v.W),e.rXU(j.P),e.rXU(h.nX),e.rXU(h.Ix))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-modifica-corso"]],standalone:!0,features:[e.Jv_([(0,R.aw)(),{provide:b.MJ,useClass:O.ZG,useFactory:Y.a},{provide:R.Ju,useValue:"it-IT"}]),e.aNF],decls:88,vars:30,consts:[[1,"cardWithShadow"],[3,"ngSubmit","formGroup"],[1,"d-flex","align-items-center","p-b-30","b-b-1"],[1,"mat-body-1"],[1,"row","m-t-24"],[1,"col-sm-12"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block"],["appearance","outline","color","primary",1,"w-100"],["matInput","","type","text",3,"formControl","errorStateMatcher"],[1,"col-sm-6"],["matNativeControl","","required","",3,"formControl"],["value","success"],["value","warning"],["value","danger"],["value","primary"],["value","0"],["value","1"],["matInput","","step",".01","type","number",3,"formControl","errorStateMatcher"],["matSuffix",""],["name","clock-hour-2",1,"icon-20","d-flex"],[1,"text-right","p-24","p-t-20","m-b-0","p-b-0","p-r-0"],["type","submit","mat-flat-button","","color","success",1,"m-r-0"]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content")(2,"form",1),e.bIt("ngSubmit",function(){return o.updateCorso()}),e.j41(3,"div",2)(4,"mat-card-subtitle",3),e.EFF(5,"Edita i dati e poi clicca sul pulsante salva."),e.k0s()(),e.j41(6,"div",4)(7,"div",5)(8,"mat-label",6),e.EFF(9,"Titolo"),e.k0s(),e.j41(10,"mat-form-field",7),e.nrm(11,"input",8),e.DNE(12,ua,4,0,"mat-error"),e.k0s()(),e.j41(13,"div",9)(14,"mat-label",6),e.EFF(15,"Categoria"),e.k0s(),e.j41(16,"mat-form-field",7),e.nrm(17,"input",8),e.DNE(18,fa,4,0,"mat-error"),e.k0s()(),e.j41(19,"div",9)(20,"mat-label",6),e.EFF(21,"Colore"),e.k0s(),e.j41(22,"mat-form-field",7)(23,"select",10)(24,"option",11),e.EFF(25,"Verde"),e.k0s(),e.j41(26,"option",12),e.EFF(27,"Arancio"),e.k0s(),e.j41(28,"option",13),e.EFF(29,"Rosso"),e.k0s(),e.j41(30,"option",14),e.EFF(31,"Primario"),e.k0s()()()(),e.j41(32,"div",5)(33,"mat-label",6),e.EFF(34,"Erogazione"),e.k0s(),e.j41(35,"mat-form-field",7)(36,"select",10)(37,"option",15),e.EFF(38,"LIBERA (In qualsiasi momento)"),e.k0s(),e.j41(39,"option",16),e.EFF(40,"EDIZIONE (Tramite le edizioni programmate dai centri)"),e.k0s()()()(),e.j41(41,"div",5)(42,"mat-label",6),e.EFF(43,"Durata (in ore)"),e.k0s(),e.j41(44,"mat-form-field",7),e.nrm(45,"input",17),e.j41(46,"mat-icon",18),e.nrm(47,"i-tabler",19),e.k0s(),e.DNE(48,ga,4,0,"mat-error"),e.k0s()(),e.j41(49,"div",5)(50,"mat-label",6),e.EFF(51,"Descrizione"),e.k0s(),e.j41(52,"mat-form-field",7),e.nrm(53,"textarea",8),e.DNE(54,Ca,4,0,"mat-error"),e.k0s()(),e.j41(55,"div",5)(56,"mat-label",6),e.EFF(57,"Finalit\xe0"),e.k0s(),e.j41(58,"mat-form-field",7),e.nrm(59,"textarea",8),e.DNE(60,ha,4,0,"mat-error"),e.k0s()(),e.j41(61,"div",5)(62,"mat-label",6),e.EFF(63,"Programma"),e.k0s(),e.j41(64,"mat-form-field",7),e.nrm(65,"textarea",8),e.DNE(66,za,4,0,"mat-error"),e.k0s()(),e.j41(67,"div",5)(68,"mat-label",6),e.EFF(69,"Destinatari"),e.k0s(),e.j41(70,"mat-form-field",7),e.nrm(71,"textarea",8),e.DNE(72,Fa,4,0,"mat-error"),e.k0s()(),e.j41(73,"div",5)(74,"mat-label",6),e.EFF(75,"Contenuti"),e.k0s(),e.j41(76,"mat-form-field",7),e.nrm(77,"textarea",8),e.DNE(78,va,4,0,"mat-error"),e.k0s()(),e.j41(79,"div",5)(80,"mat-label",6),e.EFF(81,"Caratteristiche"),e.k0s(),e.j41(82,"mat-form-field",7),e.nrm(83,"textarea",8),e.DNE(84,ba,4,0,"mat-error"),e.k0s()()(),e.j41(85,"div",20)(86,"button",21),e.EFF(87,"Modifica Corso"),e.k0s()()()()()),2&n&&(e.R7$(2),e.Y8G("formGroup",o.inserisciUtenteFormControl),e.R7$(9),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.titolo)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.titolo.hasError("required")?12:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.categoria)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.categoria.hasError("required")?18:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.colore),e.R7$(13),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.erogazione),e.R7$(9),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.durata)("errorStateMatcher",o.matcher),e.R7$(3),e.vxM(o.inserisciUtenteFormControl.controls.durata.hasError("required")?48:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.descrizione)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.descrizione.hasError("required")?54:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.finalita)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.finalita.hasError("required")?60:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.programma)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.programma.hasError("required")?66:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.destinatari)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.destinatari.hasError("required")?72:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.contenuti)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.contenuti.hasError("required")?78:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.caratteristiche)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.caratteristiche.hasError("required")?84:-1))},dependencies:[D.X6,p.Hu,p.RN,p.m2,p.Lc,x.m_,x.An,z.X4,z.Jc,S.RI,u.RG,u.rl,u.nJ,u.TL,u.yw,I.mV,$.Ve,w.fS,w.fg,C.Hl,C.$z,s.X1,s.qT,s.xH,s.y7,s.me,s.Q0,s.wz,s.BC,s.cb,s.YS,s.l_,s.j4,s.YN],encapsulation:2})}}return i})();var q=f(6013),ne=f(2765),G=f(5951);function ja(i,r){1&i&&e.EFF(0,"Informazioni di base")}function xa(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Titolo "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function wa(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Categoria "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Aa(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Durata "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function ya(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Descrizione "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Ra(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Finalit\xe0 "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Ma(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Programma "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Ta(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Destinatari "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Da(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Contenuti "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Sa(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Caratteristiche "),e.j41(2,"strong"),e.EFF(3,"obbligatorie!"),e.k0s()())}function $a(i,r){1&i&&e.EFF(0,"Configurazione del corso")}function Ia(i,r){1&i&&(e.j41(0,"mat-form-field",41)(1,"mat-label",42),e.EFF(2,"Tempo minimo di fruzione per lezione in secondi (es. 60 = 1 minuto) "),e.k0s(),e.nrm(3,"input",43),e.k0s(),e.nrm(4,"br"),e.j41(5,"mat-checkbox",44),e.EFF(6,"Se presente un video, la lezione sar\xe0 completa solo quanto il video sar\xe0 completamente fruito"),e.k0s()),2&i&&(e.R7$(5),e.Y8G("checked",!0))}class Va{isErrorState(r,t){return!!(r&&r.invalid&&(r.dirty||r.touched||t&&t.submitted))}}let La=(()=>{class i{constructor(t,n,o,a){this.api=t,this.settings=n,this.router=o,this.route=a,this.matcher=new Va,this.inserisciCorsoFormControl=new s.gE({titolo:new s.MJ("",[s.k0.required,s.k0.nullValidator]),categoria:new s.MJ("",[s.k0.required,s.k0.nullValidator]),colore:new s.MJ("",[s.k0.required,s.k0.nullValidator]),prezzo:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),erogazione:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),descrizione:new s.MJ("",[s.k0.required,s.k0.nullValidator]),finalita:new s.MJ(""),programma:new s.MJ(""),destinatari:new s.MJ(""),contenuti:new s.MJ(""),caratteristiche:new s.MJ(""),durata:new s.MJ(null,[s.k0.required,s.k0.nullValidator])}),this.secondFormGroup=new s.gE({tipologia:new s.MJ(1,[]),fruizione:new s.MJ(-1,[]),timer_lezione:new s.MJ(30,[]),timer_come_video:new s.MJ(1,[]),scorrimento_automatico_slide:new s.MJ(0,[]),timer_slide:new s.MJ(30,[]),disabilita_navigazione:new s.MJ(0,[])})}ngOnInit(){return(0,m.A)(function*(){})()}inserisciCorso(){var t=this;return(0,m.A)(function*(){if(!t.inserisciCorsoFormControl.valid||!t.secondFormGroup.valid)return;let n=t.inserisciCorsoFormControl.value;n={...n,...t.secondFormGroup.value},(yield t.api.callWithDialog("insertCorso",n)).afterClosed().subscribe(a=>{t.router.navigate(["/formatori/corsi"],{relativeTo:t.route})})})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(v.W),e.rXU(j.P),e.rXU(h.Ix),e.rXU(h.nX))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-aggiungi-corso"]],standalone:!0,features:[e.aNF],decls:130,vars:40,consts:[["stepper",""],[1,"cardWithShadow"],[1,"p-0"],["linear",""],[3,"stepControl","completed"],["matStepLabel",""],[3,"formGroup"],[1,"d-flex","align-items-center","p-b-30","b-b-1"],[1,"mat-body-1"],[1,"row","m-t-24"],[1,"col-sm-12"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block"],["appearance","outline","color","primary",1,"w-100"],["matInput","","type","text",3,"formControl","errorStateMatcher"],[1,"col-sm-6"],["matNativeControl","","required","",3,"formControl"],["value","success"],["value","warning"],["value","danger"],["value","primary"],["value","0"],["value","1"],["matInput","","step",".01","type","number",3,"formControl","errorStateMatcher"],["matSuffix",""],["name","clock-hour-2",1,"icon-20","d-flex"],[1,"text-right"],["mat-flat-button","","color","primary","matStepperNext",""],[1,"m-t-24",3,"formGroup"],[1,"mat-subtitle-2","f-w-600","d-block","m-b-5","m-t-5"],["aria-label","Seleziona un'opzione","formControlName","fruizione"],["value","-1","color","primary",3,"checked"],["value","1","color","primary",3,"checked"],[1,"mat-subtitle-2","f-w-600","m-b-5","m-t-15","d-block"],["formControlName","disabilita_navigazione","color","primary",1,"m-b-15"],[1,"mat-subtitle-2","f-w-600","m-b-5","m-t-5","d-block"],["color","primary","formControlName","scorrimento_automatico_slide",3,"checked"],["appearance","outline","color","primary",1,"w-100",2,"margin-bottom","5px"],["matInput","","type","number","type","text","formControlName","timer_slide"],[1,"d-flex","align-items-center","justify-content-between"],["mat-flat-button","","color","warn","matStepperPrevious",""],["mat-flat-button","","color","success",3,"click","disabled"],["appearance","outline",1,"w-100","m-b-10",2,"padding-left","40px","padding-top","10px"],[1,"mat-subtitle-2","f-w-600","d-block","m-b-5","m-t-10"],["type","number","min","30","step","1","matInput","","formControlName","timer_lezione","required",""],["color","primary","formControlName","timer_come_video",2,"padding-left","30px",3,"checked"]],template:function(n,o){if(1&n){const a=e.RV6();e.j41(0,"mat-card",1)(1,"mat-card-content",2)(2,"mat-stepper",3,0)(4,"mat-step",4),e.DNE(5,ja,1,0,"ng-template",5),e.j41(6,"mat-card-content")(7,"form",6)(8,"mat-card-title"),e.EFF(9,"Informazioni di base"),e.k0s(),e.j41(10,"div",7)(11,"mat-card-subtitle",8),e.EFF(12,"Inserisci qui le informazioni di base del corso, in seguito alla creazione protrai aggiungere le lezioni (contenenti slide, video, etc.), le prove intercorso e il paniere d'esame."),e.k0s()(),e.j41(13,"div",9)(14,"div",10)(15,"mat-label",11),e.EFF(16,"Titolo"),e.k0s(),e.j41(17,"mat-form-field",12),e.nrm(18,"input",13),e.DNE(19,xa,4,0,"mat-error"),e.k0s()(),e.j41(20,"div",14)(21,"mat-label",11),e.EFF(22,"Categoria"),e.k0s(),e.j41(23,"mat-form-field",12),e.nrm(24,"input",13),e.DNE(25,wa,4,0,"mat-error"),e.k0s()(),e.j41(26,"div",14)(27,"mat-label",11),e.EFF(28,"Colore"),e.k0s(),e.j41(29,"mat-form-field",12)(30,"select",15)(31,"option",16),e.EFF(32,"Verde"),e.k0s(),e.j41(33,"option",17),e.EFF(34,"Arancio"),e.k0s(),e.j41(35,"option",18),e.EFF(36,"Rosso"),e.k0s(),e.j41(37,"option",19),e.EFF(38,"Primario"),e.k0s()()()(),e.j41(39,"div",10)(40,"mat-label",11),e.EFF(41,"Erogazione"),e.k0s(),e.j41(42,"mat-form-field",12)(43,"select",15)(44,"option",20),e.EFF(45,"LIBERA (In qualsiasi momento)"),e.k0s(),e.j41(46,"option",21),e.EFF(47,"EDIZIONE (Tramite le edizioni programmate dai centri)"),e.k0s()()()(),e.j41(48,"div",10)(49,"mat-label",11),e.EFF(50,"Durata (in ore)"),e.k0s(),e.j41(51,"mat-form-field",12),e.nrm(52,"input",22),e.j41(53,"mat-icon",23),e.nrm(54,"i-tabler",24),e.k0s(),e.DNE(55,Aa,4,0,"mat-error"),e.k0s()(),e.j41(56,"div",10)(57,"mat-label",11),e.EFF(58,"Descrizione"),e.k0s(),e.j41(59,"mat-form-field",12),e.nrm(60,"textarea",13),e.DNE(61,ya,4,0,"mat-error"),e.k0s()(),e.j41(62,"div",10)(63,"mat-label",11),e.EFF(64,"Finalit\xe0"),e.k0s(),e.j41(65,"mat-form-field",12),e.nrm(66,"textarea",13),e.DNE(67,Ra,4,0,"mat-error"),e.k0s()(),e.j41(68,"div",10)(69,"mat-label",11),e.EFF(70,"Programma"),e.k0s(),e.j41(71,"mat-form-field",12),e.nrm(72,"textarea",13),e.DNE(73,Ma,4,0,"mat-error"),e.k0s()(),e.j41(74,"div",10)(75,"mat-label",11),e.EFF(76,"Destinatari"),e.k0s(),e.j41(77,"mat-form-field",12),e.nrm(78,"textarea",13),e.DNE(79,Ta,4,0,"mat-error"),e.k0s()(),e.j41(80,"div",10)(81,"mat-label",11),e.EFF(82,"Contenuti"),e.k0s(),e.j41(83,"mat-form-field",12),e.nrm(84,"textarea",13),e.DNE(85,Da,4,0,"mat-error"),e.k0s()(),e.j41(86,"div",10)(87,"mat-label",11),e.EFF(88,"Caratteristiche"),e.k0s(),e.j41(89,"mat-form-field",12),e.nrm(90,"textarea",13),e.DNE(91,Sa,4,0,"mat-error"),e.k0s()()(),e.j41(92,"div",25)(93,"button",26),e.EFF(94,"Avanti"),e.k0s()()()()(),e.j41(95,"mat-step",4)(96,"form",27),e.DNE(97,$a,1,0,"ng-template",5),e.j41(98,"mat-card-title"),e.EFF(99,"Configurazione del corso"),e.k0s(),e.j41(100,"div",7)(101,"mat-card-subtitle",8),e.EFF(102," Questa pagina permette di configurare le impostazioni di default con cui verranno create le nuove lezioni, queste impostazioni posso essere modificate nell'editor in qualsiasi momento. "),e.k0s()(),e.j41(103,"div")(104,"mat-label",28),e.EFF(105,"Impostazioni di fruizione "),e.k0s(),e.j41(106,"mat-radio-group",29)(107,"mat-radio-button",30),e.EFF(108,"Libera"),e.k0s(),e.nrm(109,"br"),e.j41(110,"mat-radio-button",31),e.EFF(111,"Timer con tempo minimo per ogni lezione "),e.k0s()(),e.DNE(112,Ia,7,1),e.j41(113,"mat-label",32),e.EFF(114,"Disabilita navigazione slide fino al completamento del corso: "),e.k0s(),e.j41(115,"mat-checkbox",33),e.EFF(116,"Si"),e.k0s(),e.j41(117,"mat-label",34),e.EFF(118,"Scorrimento automatico slide (se presenti nella lezione): "),e.k0s(),e.j41(119,"mat-checkbox",35),e.EFF(120,"Si"),e.k0s(),e.j41(121,"mat-label",34),e.EFF(122,"Tempo di scorrimento delle slide in secondi: "),e.k0s(),e.j41(123,"mat-form-field",36),e.nrm(124,"input",37),e.k0s()(),e.j41(125,"div",38)(126,"button",39),e.EFF(127," Torna Indietro "),e.k0s(),e.j41(128,"button",40),e.bIt("click",function(){return e.eBV(a),e.Njj(o.inserisciCorso())}),e.EFF(129,"Inserisci Corso"),e.k0s()()()()()()()}2&n&&(e.R7$(4),e.Y8G("stepControl",o.inserisciCorsoFormControl)("completed",o.inserisciCorsoFormControl.valid),e.R7$(3),e.Y8G("formGroup",o.inserisciCorsoFormControl),e.R7$(11),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.titolo)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.titolo.hasError("required")?19:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.categoria)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.categoria.hasError("required")?25:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.colore),e.R7$(13),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.erogazione),e.R7$(9),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.durata)("errorStateMatcher",o.matcher),e.R7$(3),e.vxM(o.inserisciCorsoFormControl.controls.durata.hasError("required")?55:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.descrizione)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.descrizione.hasError("required")?61:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.finalita)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.finalita.hasError("required")?67:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.programma)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.programma.hasError("required")?73:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.destinatari)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.destinatari.hasError("required")?79:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.contenuti)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.contenuti.hasError("required")?85:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.caratteristiche)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.caratteristiche.hasError("required")?91:-1),e.R7$(4),e.Y8G("stepControl",o.secondFormGroup)("completed",o.secondFormGroup.valid),e.R7$(),e.Y8G("formGroup",o.secondFormGroup),e.R7$(11),e.Y8G("checked",-1===o.secondFormGroup.controls.fruizione.value),e.R7$(3),e.Y8G("checked",1===o.secondFormGroup.controls.fruizione.value),e.R7$(2),e.vxM(null!=o.secondFormGroup.controls.fruizione.value&&1==o.secondFormGroup.controls.fruizione.value?112:-1),e.R7$(7),e.Y8G("checked",!0),e.R7$(9),e.Y8G("disabled",!o.inserisciCorsoFormControl.valid||!o.secondFormGroup.valid))},dependencies:[k.G,ne.So,u.rl,u.nJ,u.TL,u.yw,w.fg,G.VT,G._g,p.RN,p.m2,p.Lc,p.dh,q.V5,q.Ti,q.M6,q.F7,q.FR,C.$z,x.An,p.Hu,q.aP,x.m_,z.X4,z.Jc,S.RI,u.RG,I.mV,$.Ve,w.fS,C.Hl,s.X1,s.qT,s.xH,s.y7,s.me,s.Q0,s.wz,s.BC,s.cb,s.YS,s.VZ,s.l_,s.j4,s.JD,s.YN],encapsulation:2})}}return i})();var W=f(5312),ce=f(992),L=f(3902),Z=f(1391),me=f(5416),de=f(345),P=f(9115),K=f(882);const Ga=["myInput"],Na=(i,r)=>r.posizione,Xa=(i,r)=>({"side-panel-opened":i,"side-panel-closed":r}),X=i=>({display:i});function Ba(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3).$implicit;e.SpI(" ",t.titolo.substring(0,30),"... ")}}function Oa(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3).$implicit;e.SpI(" ",t.titolo," ")}}function Ya(i,r){if(1&i&&e.DNE(0,Ba,1,1)(1,Oa,1,1),2&i){const t=e.XpG(2).$implicit;e.vxM(t.titolo.length>30?0:1)}}function qa(i,r){1&i&&e.EFF(0," Titolo Lezione ")}function Pa(i,r){if(1&i){const t=e.RV6();e.j41(0,"mat-list-item",67),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2).$implicit,a=e.XpG(2);return e.Njj(a.onSelectQuiz(o.id_lezione))}),e.j41(1,"div",68)(2,"div",63)(3,"h3",64),e.EFF(4," Quiz "),e.k0s(),e.j41(5,"p",65),e.EFF(6,"Clicca qui per configurare il quiz"),e.k0s()()()()}if(2&i){const t=e.XpG(2).$implicit,n=e.XpG(2);e.AVh("bg-light-primary",t.id_lezione==n.lezioni[n.selectedLezione].id_lezione)}}function Ja(i,r){if(1&i){const t=e.RV6();e.j41(0,"mat-list-item",61),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.onSelect(o.id_lezione))}),e.j41(1,"div",62)(2,"div",63)(3,"h3",64),e.DNE(4,Ya,2,1)(5,qa,1,0),e.k0s(),e.j41(6,"p",65),e.EFF(7,"Clicca qui per configurare la lezione"),e.k0s()()()(),e.DNE(8,Pa,7,2,"mat-list-item",66)}if(2&i){const t=e.XpG().$implicit,n=e.XpG(2);e.AVh("bg-light-primary",t.id_lezione==n.lezioni[n.selectedLezione].id_lezione),e.Y8G("cdkDragData",t.id_lezione),e.R7$(4),e.vxM(t.titolo?4:5),e.R7$(4),e.vxM(t.quiz?8:-1)}}function Ua(i,r){1&i&&e.DNE(0,Ja,9,5),2&i&&e.vxM(r.$implicit?0:-1)}function Ha(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",69),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.cancellaLezione(o.lezioni[o.selectedLezione].id_lezione))}),e.nrm(1,"i-tabler",70),e.k0s()}}function Qa(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",72),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.cancellaQuiz(o.lezioni[o.selectedLezione].id_lezione))}),e.nrm(1,"i-tabler",70),e.k0s()}}function Wa(i,r){if(1&i&&e.DNE(0,Qa,2,0,"button",71),2&i){const t=e.XpG(2);e.vxM(t.selectedLezione>-1?0:-1)}}function Za(i,r){1&i&&e.EFF(0," Esame finale ")}function Ka(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3);e.SpI(" Quiz - ",t.lezioni[t.selectedLezione].titolo," ")}}function er(i,r){if(1&i&&e.DNE(0,Za,1,0)(1,Ka,1,1),2&i){const t=e.XpG(2);e.vxM(-1==t.selectedLezione?0:1)}}function tr(i,r){if(1&i){const t=e.RV6();e.j41(0,"mat-form-field",73)(1,"mat-label"),e.EFF(2,"Inserisci qui il titolo della lezione..."),e.k0s(),e.j41(3,"input",74),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG(2);return e.DH7(a.lezioni[a.selectedLezione].titolo,o)||(a.lezioni[a.selectedLezione].titolo=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.autosaveTitoloLezione(o.lezioni[o.selectedLezione]))}),e.k0s()()}if(2&i){const t=e.XpG(2);e.xc7("width",100,"%"),e.R7$(3),e.R50("ngModel",t.lezioni[t.selectedLezione].titolo)}}function ir(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",75),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.fullscreen(!0))}),e.nrm(1,"i-tabler",76),e.k0s()}}function or(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",77),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.fullscreen(!1))}),e.nrm(1,"i-tabler",78),e.k0s()}}function nr(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",79)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()(),e.j41(3,"mat-menu",15,4)(5,"button",80),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.lezioni[o.selectedLezione].files=!o.lezioni[o.selectedLezione].files)}),e.EFF(6),e.k0s(),e.j41(7,"button",80),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.autosaveImageLezione())}),e.EFF(8),e.k0s(),e.j41(9,"button",80),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.autosaveVideoLezione())}),e.EFF(10),e.k0s(),e.j41(11,"button",80),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.autosaveQuizLezione())}),e.EFF(12),e.k0s(),e.j41(13,"button",81),e.EFF(14," Imposta durata minima lezione "),e.k0s()(),e.j41(15,"mat-menu",15,5)(17,"div",16),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(18,"mat-form-field",17)(19,"mat-label",18),e.EFF(20,"Timer Lezione: (-1 = Nessun tempo minimo)"),e.k0s(),e.j41(21,"input",19),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG(2);return e.DH7(a.lezioni[a.selectedLezione].time,o)||(a.lezioni[a.selectedLezione].time=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.autosaveTimeLezione(o.lezioni[o.selectedLezione]))}),e.k0s()()()()}if(2&i){const t=e.sdS(4),n=e.sdS(16),o=e.XpG(2);e.Y8G("matMenuTriggerFor",t),e.R7$(6),e.SpI(" ",1==o.lezioni[o.selectedLezione].files?"Nascondi file allegati alla lezione":"Visualizza file allegati alla lezione"," "),e.R7$(2),e.SpI(" ",0==o.lezioni[o.selectedLezione].image?"Abilita Slide":"Disabilita Slide"," "),e.R7$(2),e.SpI(" ",0==o.lezioni[o.selectedLezione].video?"Abilita Video":"Disabilita Video"," "),e.R7$(2),e.SpI(" ",0==o.lezioni[o.selectedLezione].quiz?"Abilita Quiz Lezione":"Disabilita Quiz"," "),e.R7$(),e.Y8G("matMenuTriggerFor",n),e.R7$(8),e.R50("ngModel",o.lezioni[o.selectedLezione].time)}}function ar(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",82),e.nrm(1,"i-tabler",13),e.k0s(),e.j41(2,"button",14),e.nrm(3,"i-tabler",13),e.k0s(),e.j41(4,"mat-menu",15,0)(6,"div",16),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(7,"mat-form-field",17)(8,"mat-label",18),e.EFF(9,"Numero Domande: (-1 = Tutte)"),e.k0s(),e.j41(10,"input",19),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG(2);return e.DH7(a.lezioni[a.selectedLezione].numero_domande,o)||(a.lezioni[a.selectedLezione].numero_domande=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.autosaveNumeroDomandeEsame(o.lezioni[o.selectedLezione]))}),e.k0s()()()(),e.j41(11,"mat-menu",15,1)(13,"div",16),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(14,"mat-form-field",17)(15,"mat-label",18),e.EFF(16,"Rating: "),e.k0s(),e.j41(17,"input",19),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG(2);return e.DH7(a.lezioni[a.selectedLezione].rating,o)||(a.lezioni[a.selectedLezione].rating=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.autosaveRatingEsame(o.lezioni[o.selectedLezione]))}),e.k0s(),e.j41(18,"mat-icon",20),e.nrm(19,"i-tabler",21),e.k0s()()()(),e.j41(20,"button",45),e.nrm(21,"i-tabler",13),e.k0s(),e.j41(22,"mat-menu",15,6)(24,"div",16),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(25,"mat-form-field",17)(26,"mat-label",18),e.EFF(27,"Timer Quiz: (-1 = Nessun tempo minimo)"),e.k0s(),e.j41(28,"input",19),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG(2);return e.DH7(a.lezioni[a.selectedLezione].quiz_time,o)||(a.lezioni[a.selectedLezione].quiz_time=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.autosaveTimeQuizLezione(o.lezioni[o.selectedLezione]))}),e.k0s()()()()}if(2&i){const t=e.sdS(5),n=e.sdS(12),o=e.sdS(23),a=e.XpG(2);e.Y8G("matMenuTriggerFor",t),e.R7$(),e.HbH(a.lezioni[a.selectedLezione].numero_domande>-1?"attivo":""),e.Y8G("name","question-mark"),e.R7$(),e.Y8G("matMenuTriggerFor",n),e.R7$(),e.HbH(a.lezioni[a.selectedLezione].rating>-1?"attivo":""),e.Y8G("name","writing"),e.R7$(7),e.R50("ngModel",a.lezioni[a.selectedLezione].numero_domande),e.R7$(7),e.R50("ngModel",a.lezioni[a.selectedLezione].rating),e.R7$(3),e.FS9("matTooltip",a.lezioni[a.selectedLezione].quiz_time>-1?"Imposta la durata minima del quiz":"Imposta durata minima del quiz"),e.Y8G("matMenuTriggerFor",o),e.R7$(),e.HbH(a.lezioni[a.selectedLezione].quiz_time>-1?"attivo":""),e.Y8G("name",a.lezioni[a.selectedLezione].quiz_time>-1?"alarm":"alarm-off"),e.R7$(7),e.R50("ngModel",a.lezioni[a.selectedLezione].quiz_time)}}function rr(i,r){if(1&i){const t=e.RV6();e.j41(0,"mat-list-item",84)(1,"div",62)(2,"div",85),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.deleteFileLezione(o))}),e.qSk(),e.j41(3,"svg",86),e.nrm(4,"path",87),e.k0s()(),e.joV(),e.j41(5,"div",63)(6,"h4",88)(7,"a",89),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.scaricaFileLezione(o))}),e.EFF(8),e.k0s()()()()()}if(2&i){const t=r.$implicit;e.R7$(8),e.JRh(t)}}function sr(i,r){if(1&i&&(e.j41(0,"div",37)(1,"h4",39),e.EFF(2,"Allegati"),e.k0s(),e.j41(3,"mat-card-content",40)(4,"mat-list"),e.DNE(5,rr,9,1,"mat-list-item",83),e.k0s()()()),2&i){const t=e.XpG(2);e.R7$(5),e.Y8G("ngForOf",t.lezioni[t.selectedLezione].files_url)}}function lr(i,r){if(1&i){const t=e.RV6();e.nrm(0,"img",90),e.j41(1,"button",91),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.rimuoviImageLezione(a.lezioni[a.selectedLezione].id_lezione,o))}),e.nrm(2,"i-tabler",70),e.k0s()}if(2&i){const t=e.XpG(),o=t.$index;e.FS9("ngSrc",t.$implicit.image_url_downloaded),e.Mz_("alt","Slide ",o,""),e.Y8G("fill",!0)}}function cr(i,r){if(1&i&&(e.j41(0,"div",48),e.DNE(1,lr,3,4),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(t.image_url_downloaded?1:-1)}}function mr(i,r){if(1&i&&(e.j41(0,"div",95),e.nrm(1,"video",96),e.k0s(),e.j41(2,"div",97),e.EFF(3," Il video sar\xe0 disponibile dopo qualche minuto dal caricamento..."),e.k0s()),2&i){const t=e.XpG(3);e.R7$(),e.Y8G("src",t.lezioni[t.selectedLezione].video_url_downloaded,e.B4B)}}function dr(i,r){if(1&i){const t=e.RV6();e.DNE(0,mr,4,1),e.j41(1,"div",51)(2,"button",92),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.caricaVideoLezione())}),e.nrm(3,"i-tabler",93),e.k0s(),e.j41(4,"button",94),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.cancellaVideoLezione(o.lezioni[o.selectedLezione].id_lezione))}),e.nrm(5,"i-tabler",70),e.k0s()()}if(2&i){const t=e.XpG(2);e.vxM(t.lezioni[t.selectedLezione].video_url_downloaded?0:-1)}}function pr(i,r){if(1&i){const t=e.RV6();e.j41(0,"app-file-uploader",50),e.bIt("filesEvent",function(o){e.eBV(t);const a=e.XpG(2);return e.Njj(a.setFiles(o,"video"))}),e.k0s()}2&i&&e.Y8G("lite",!0)("showList",!1)("hideButtonAfterUpload",!0)("accept","video/*")("multiple",!1)("buttonValue","Clicca qui per scegliere il video da caricare")}function _r(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",108),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.cancellaDomanda(o.id_domanda))}),e.nrm(1,"i-tabler",70),e.k0s()}}function ur(i,r){if(1&i){const t=e.RV6();e.nrm(0,"div",105),e.j41(1,"div",109)(2,"mat-label",18),e.EFF(3),e.k0s(),e.j41(4,"mat-form-field",103)(5,"input",74),e.mxI("ngModelChange",function(o){const a=e.eBV(t).$implicit;return e.DH7(a.risposta,o)||(a.risposta=o),e.Njj(o)}),e.bIt("focusout",function(){const o=e.eBV(t).$implicit,a=e.XpG(4);return e.Njj(a.autosaveRispostaLezione(o))}),e.k0s()()(),e.j41(6,"div",110)(7,"mat-label",18),e.EFF(8,"Corretta"),e.k0s(),e.j41(9,"mat-radio-group",111)(10,"mat-radio-button",112),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG().$implicit,l=e.XpG(3);return e.Njj(l.autosaveRispostaDomandaLezioneCorretta(a.id_domanda,o.id_risposta))}),e.k0s()()()}if(2&i){const t=r.$implicit,n=r.$index,o=e.XpG().$implicit,a=e.XpG(3);e.R7$(3),e.SpI("Risposta ",n+1," "),e.R7$(2),e.R50("ngModel",t.risposta),e.R7$(4),e.Mz_("name","check_risp_corretta_",o.id_domanda,""),e.Y8G("formControl",a.anagraficaFormControl.controls.titolo),e.R7$(),e.Y8G("checked",!!t.corretta)}}function fr(i,r){if(1&i){const t=e.RV6();e.j41(0,"div",98)(1,"div",56)(2,"h4",57)(3,"div",57),e.DNE(4,_r,2,0,"button",99),e.k0s(),e.EFF(5),e.k0s()()(),e.j41(6,"mat-card-content",100)(7,"div",101)(8,"div",102)(9,"mat-label",18),e.EFF(10,"Domanda "),e.k0s(),e.j41(11,"mat-form-field",103)(12,"input",104),e.mxI("ngModelChange",function(o){const a=e.eBV(t).$implicit;return e.DH7(a.domanda,o)||(a.domanda=o),e.Njj(o)}),e.bIt("focusout",function(){const o=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.autosaveDomandaLezione(o))}),e.k0s()()(),e.j41(13,"div",105)(14,"mat-label",18),e.EFF(15,"Attiva"),e.k0s(),e.j41(16,"mat-slide-toggle",106),e.mxI("ngModelChange",function(o){const a=e.eBV(t).$implicit;return e.DH7(a.attiva,o)||(a.attiva=o),e.Njj(o)}),e.k0s()()(),e.j41(17,"div",107),e.Z7z(18,ur,11,6,null,null,e.Vm6),e.k0s()()}if(2&i){const t=r.$implicit,n=r.$index,o=e.XpG(3);e.Y8G("ngStyle",e.eq3(6,X,o.lezioni[o.selectedLezione].quiz_on?"block":"none")),e.R7$(4),e.vxM(n>0?4:-1),e.R7$(),e.SpI("Domanda ",n+1,""),e.R7$(7),e.R50("ngModel",t.domanda),e.Y8G("errorStateMatcher",o.matcher),e.R7$(4),e.R50("ngModel",t.attiva),e.R7$(2),e.Dyx(t.risposte)}}function gr(i,r){if(1&i&&(e.j41(0,"ng-scrollbar",53),e.Z7z(1,fr,20,8,null,null,e.Vm6),e.k0s()),2&i){const t=e.XpG(2);e.Aen(t.isFullscreen?"height: calc(100vh - 150px);":"height: calc(100vh - 450px);"),e.Y8G("ngStyle",e.eq3(3,X,t.lezioni[t.selectedLezione].quiz_on?"block":"none")),e.R7$(),e.Dyx(t.lezioni[t.selectedLezione].paniere)}}function Cr(i,r){if(1&i){const t=e.RV6();e.j41(0,"a",113),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.aggiungiLezione())}),e.EFF(1,"Aggiungi Lezione"),e.k0s()}}function hr(i,r){if(1&i){const t=e.RV6();e.j41(0,"a",113),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.aggiungiDomanda(o.selectedLezione))}),e.EFF(1,"Aggiungi Domanda"),e.k0s()}}function zr(i,r){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"div",7)(2,"div",8)(3,"h4",9),e.EFF(4),e.j41(5,"div",10),e.EFF(6),e.k0s()(),e.j41(7,"div",11)(8,"button",12),e.nrm(9,"i-tabler",13),e.k0s(),e.j41(10,"button",14),e.nrm(11,"i-tabler",13),e.k0s(),e.j41(12,"mat-menu",15,0)(14,"div",16),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(15,"mat-form-field",17)(16,"mat-label",18),e.EFF(17,"Numero Domande: (-1 = Tutte)"),e.k0s(),e.j41(18,"input",19),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].numero_domande,o)||(a.lezioni[a.selectedLezione].numero_domande=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveNumeroDomandeEsame(o.lezioni[o.selectedLezione]))}),e.k0s()()()(),e.j41(19,"mat-menu",15,1)(21,"div",16),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(22,"mat-form-field",17)(23,"mat-label",18),e.EFF(24,"Rating: "),e.k0s(),e.j41(25,"input",19),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].rating,o)||(a.lezioni[a.selectedLezione].rating=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveRatingEsame(o.lezioni[o.selectedLezione]))}),e.k0s(),e.j41(26,"mat-icon",20),e.nrm(27,"i-tabler",21),e.k0s()()()()()()()(),e.j41(28,"mat-card")(29,"mat-sidenav-container",22)(30,"mat-sidenav",23,2),e.bIt("open",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sidePanelOpened=!0)})("close",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sidePanelOpened=!1)}),e.j41(32,"ng-scrollbar",24)(33,"div",25)(34,"div",26)(35,"b"),e.EFF(36,"Lezioni del corso"),e.k0s()()(),e.j41(37,"span",27),e.EFF(38,"(sposta le lezioni per ordinarle)"),e.k0s(),e.j41(39,"mat-nav-list",28),e.bIt("cdkDropListDropped",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.dropLezione(o))}),e.Z7z(40,Ua,1,1,null,null,e.Vm6),e.k0s()()(),e.j41(42,"mat-toolbar",29)(43,"button",30),e.bIt("click",function(){e.eBV(t);const o=e.sdS(31);return e.Njj(o.toggle())}),e.j41(44,"mat-icon"),e.EFF(45,"short_text"),e.k0s()(),e.DNE(46,Ha,2,0,"button",31)(47,Wa,1,1),e.j41(48,"div",32)(49,"div",33),e.DNE(50,er,2,1)(51,tr,4,3,"mat-form-field",34),e.k0s()(),e.DNE(52,ir,2,0,"button",35)(53,or,2,0,"button",36)(54,nr,22,7)(55,ar,29,16),e.k0s(),e.DNE(56,sr,6,1,"div",37),e.j41(57,"div",38)(58,"h4",39),e.EFF(59,"Allegati"),e.k0s(),e.j41(60,"mat-card-content",40)(61,"app-file-uploader",41),e.bIt("filesEvent",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.setFiles(o,"files"))}),e.k0s()()(),e.j41(62,"div",38)(63,"div",42)(64,"h4",43),e.EFF(65,"Slide Show "),e.k0s(),e.j41(66,"div",11)(67,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveDisabilitaNavigazioneLezione())}),e.nrm(68,"i-tabler",13),e.k0s(),e.j41(69,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveScorrimentoAutomaticoSlideLezione())}),e.nrm(70,"i-tabler",13),e.k0s(),e.j41(71,"button",45),e.nrm(72,"i-tabler",13),e.k0s(),e.j41(73,"button",46),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveTimerComeVideoLezione())}),e.nrm(74,"i-tabler",13),e.k0s()()(),e.j41(75,"mat-menu",15,3)(77,"div",16),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(78,"mat-form-field",17)(79,"mat-label",18),e.EFF(80,"Timer Slide: (-1 = Nessun tempo minimo)"),e.k0s(),e.j41(81,"input",19),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].timer_slide,o)||(a.lezioni[a.selectedLezione].timer_slide=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveTimerSlideLezione(o.lezioni[o.selectedLezione]))}),e.k0s()()()(),e.j41(82,"span",27),e.EFF(83,"(sposta le slide per ordinarle)"),e.k0s(),e.j41(84,"div",47),e.bIt("cdkDropListDropped",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.drop(o))}),e.Z7z(85,cr,2,1,"div",48,Na),e.j41(87,"div",49),e.nrm(88,"br"),e.EFF(89," Clicca qui per caricare le slide, converti le tue Power Point e i tuoi PDF in immaggini prima di caricarle! "),e.j41(90,"app-file-uploader",50),e.bIt("filesEvent",function(o){e.eBV(t);const a=e.XpG();return e.Njj(a.setFiles(o,"image"))}),e.k0s()()()(),e.j41(91,"div",38)(92,"div",42)(93,"h4",43),e.EFF(94,"Video"),e.k0s(),e.j41(95,"button",46),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveTimerComeVideoLezione())}),e.nrm(96,"i-tabler",13),e.k0s()(),e.j41(97,"mat-card-content",40),e.DNE(98,dr,6,1,"div",51)(99,pr,1,6,"app-file-uploader",52),e.k0s()(),e.j41(100,"ng-scrollbar",53)(101,"mat-card-content",40)(102,"editor",54),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].subject,o)||(a.lezioni[a.selectedLezione].subject=o),e.Njj(o)}),e.bIt("onBlur",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveOggettoLezione(o.lezioni[o.selectedLezione]))}),e.k0s()()(),e.j41(103,"div",55)(104,"div",56)(105,"h4",57),e.EFF(106),e.k0s()()(),e.DNE(107,gr,3,5,"ng-scrollbar",58),e.nrm(108,"mat-divider"),e.j41(109,"div",59),e.DNE(110,Cr,2,0,"a",60)(111,hr,2,0,"a",60),e.k0s()()()}if(2&i){const t=e.sdS(13),n=e.sdS(20),o=e.sdS(76),a=e.XpG();e.R7$(4),e.SpI(" ",a.corso.titolo,""),e.R7$(2),e.SpI(" ",a.corso.categoria," "),e.R7$(2),e.Y8G("matMenuTriggerFor",t),e.R7$(),e.HbH(a.lezioni[a.selectedLezione].numero_domande>-1?"attivo":""),e.Y8G("name","question-mark"),e.R7$(),e.Y8G("matMenuTriggerFor",n),e.R7$(),e.HbH(a.lezioni[a.selectedLezione].rating>-1?"attivo":""),e.Y8G("name","writing"),e.R7$(7),e.R50("ngModel",a.lezioni[a.selectedLezione].numero_domande),e.R7$(7),e.R50("ngModel",a.lezioni[a.selectedLezione].rating),e.R7$(3),e.ZvI("mat-card-top chat-app cardWithShadow ",a.isFullscreen?"fullscreen":"",""),e.R7$(),e.Y8G("ngClass",e.l_i(70,Xa,a.sidePanelOpened,!a.sidePanelOpened)),e.R7$(),e.Y8G("mode",a.isOver()?"over":"side")("opened",!a.isOver()),e.R7$(10),e.Dyx(a.lezioniOrdinate),e.R7$(6),e.vxM(!a.lezioni[a.selectedLezione]||a.lezioni[a.selectedLezione].quiz_on||a.lezioni[a.selectedLezione].first?-1:46),e.R7$(),e.vxM(a.lezioni[a.selectedLezione]&&a.lezioni[a.selectedLezione].quiz_on&&!a.lezioni[a.selectedLezione].first?47:-1),e.R7$(3),e.vxM(a.lezioni[a.selectedLezione]&&a.lezioni[a.selectedLezione].quiz_on?50:51),e.R7$(2),e.vxM(a.isFullscreen?53:52),e.R7$(2),e.vxM(a.lezioni[a.selectedLezione]&&!a.lezioni[a.selectedLezione].quiz_on?54:-1),e.R7$(),e.vxM(a.lezioni[a.selectedLezione]&&a.lezioni[a.selectedLezione].quiz_on?55:-1),e.R7$(),e.vxM(a.lezioni[a.selectedLezione]&&a.lezioni[a.selectedLezione].files_url&&a.lezioni[a.selectedLezione].files_url.length>0?56:-1),e.R7$(),e.Y8G("ngStyle",e.eq3(73,X,a.lezioni[a.selectedLezione].files&&!a.lezioni[a.selectedLezione].quiz_on?"block":"none")),e.R7$(4),e.Y8G("lite",!0)("showList",!1),e.R7$(),e.Y8G("ngStyle",e.eq3(75,X,a.lezioni[a.selectedLezione].image&&!a.lezioni[a.selectedLezione].quiz_on?"block":"none")),e.R7$(5),e.FS9("matTooltip",1==a.lezioni[a.selectedLezione].disabilita_navigazione?"Attiva navigazione slide":"Blocca navigazione slide"),e.R7$(),e.HbH(1==a.lezioni[a.selectedLezione].disabilita_navigazione?"attivo":""),e.Y8G("name",1==a.lezioni[a.selectedLezione].disabilita_navigazione?"directions-off":"directions"),e.R7$(),e.FS9("matTooltip",0==a.lezioni[a.selectedLezione].scorrimento_automatico_slide?"Attiva scorrimento automatico slide":"Disattiva scorrimento automatico slide"),e.R7$(),e.HbH(1==a.lezioni[a.selectedLezione].scorrimento_automatico_slide?"attivo":""),e.Y8G("name",1==a.lezioni[a.selectedLezione].scorrimento_automatico_slide?"player-play":"player-stop"),e.R7$(),e.FS9("matTooltip","Imposta durata slide"),e.Y8G("matMenuTriggerFor",o),e.R7$(),e.HbH(a.lezioni[a.selectedLezione].timer_slide>-1?"attivo":""),e.Y8G("name",a.lezioni[a.selectedLezione].timer_slide>-1?"time-duration-45":"time-duration-0"),e.R7$(),e.FS9("matTooltip",0==a.lezioni[a.selectedLezione].timer_come_video?"Attiva: Se presente un video o delle slides, la lezione sar\xe0 completa solo quanto il video/slides sar\xe0 completamente fruito, il timer lezione verra ignorato":"Disattiva: Se presente un video o delle slides, la lezione sar\xe0 completa solo quanto il video/slides sar\xe0 completamente fruito"),e.R7$(),e.HbH(1==a.lezioni[a.selectedLezione].timer_come_video?"attivo":""),e.Y8G("name",1==a.lezioni[a.selectedLezione].timer_come_video?"clock-play":"clock"),e.R7$(7),e.R50("ngModel",a.lezioni[a.selectedLezione].timer_slide),e.R7$(4),e.Dyx(a.lezioni[a.selectedLezione].slides),e.R7$(5),e.Y8G("lite",!0)("showList",!1)("hideButtonAfterUpload",!1)("accept","image/*")("multiple",!0)("buttonValue","+"),e.R7$(),e.Y8G("ngStyle",e.eq3(77,X,a.lezioni[a.selectedLezione].video&&!a.lezioni[a.selectedLezione].quiz_on?"block":"none")),e.R7$(4),e.FS9("matTooltip",0==a.lezioni[a.selectedLezione].timer_come_video?"Attiva: Se presente un video o delle slides, la lezione sar\xe0 completa solo quanto il video/slides sar\xe0 completamente fruito, il timer lezione verra ignorato":"Disattiva: Se presente un video o delle slides, la lezione sar\xe0 completa solo quanto il video/slides sar\xe0 completamente fruito"),e.R7$(),e.HbH(1==a.lezioni[a.selectedLezione].timer_come_video?"attivo":""),e.Y8G("name",1==a.lezioni[a.selectedLezione].timer_come_video?"clock-play":"clock"),e.R7$(2),e.vxM(a.lezioni[a.selectedLezione].video_url?98:99),e.R7$(2),e.Aen(a.isFullscreen?"height: calc(100vh - 150px);":"height: calc(100vh - 450px);"),e.Y8G("ngStyle",e.eq3(79,X,a.lezioni[a.selectedLezione].quiz_on?"none":"block")),e.R7$(2),e.FS9("apiKey",a.apikey_tinymce),e.Y8G("init",a.initTinyMce),e.R50("ngModel",a.lezioni[a.selectedLezione].subject),e.R7$(),e.Y8G("ngStyle",e.eq3(81,X,a.lezioni[a.selectedLezione].quiz_on?"block":"none")),e.R7$(3),e.SpI("Totale domande: ",a.lezioni[a.selectedLezione].paniere?a.lezioni[a.selectedLezione].paniere.length:"",""),e.R7$(),e.vxM(a.lezioni[a.selectedLezione].paniere?107:-1),e.R7$(3),e.vxM(a.lezioni[a.selectedLezione].quiz_on?-1:110),e.R7$(),e.vxM(a.lezioni[a.selectedLezione].quiz_on?111:-1)}}function Fr(i,r){1&i&&e.EFF(0," Caricamento in corso...\n")}class vr{isErrorState(r,t){return!!(r&&r.invalid&&(r.dirty||r.touched||t&&t.submitted))}}let br=(()=>{class i{constructor(t,n,o,a,l,c){this.api=t,this.settings=n,this.router=o,this.route=a,this._snackBar=l,this.sanitizer=c,this.sidePanelOpened=!0,this.apikey_tinymce=W.c.apikey_tinymce,this.initTinyMce={plugins:"autoresize lists link image table code help wordcount",menubar:"edit insert view format table tools",language:"it",language_url:W.c.tinymce_lang,placeholder:"Inserisci qui il contenuto della lezione...",skin:"borderless",min_height:this.calculateHeight()},this.matcher=new vr,this.options=this.settings.getOptions(),this.anagraficaFormControl=new s.gE({id_segreteria:new s.MJ(null),titolo:new s.MJ(""),descrizione:new s.MJ(""),categoria:new s.MJ(""),colore:new s.MJ(""),attivo:new s.MJ(""),insert_time:new s.MJ(""),updated:new s.MJ(""),files:new s.MJ(null,[])}),this.myInput=Object.create(null),this.isFullscreen=!1}onEscapePressed(t){this.fullscreen(!1),console.log("Escape premuto! test =",this.isFullscreen)}fullscreen(t){this.isFullscreen=t,this.options.sidenavOpened=!t}dropLezione(t){var n=this;return(0,m.A)(function*(){let o=Object.entries(n.lezioni).map(([_,E])=>({id_lezione:_,ordine:E.ordine})).sort((_,E)=>_.ordine-E.ordine);if(console.log("event:",t),t.previousIndex==t.currentIndex)return;o.forEach(function(){var _=(0,m.A)(function*(E,M,J){M<t.currentIndex||M>=t.previousIndex?o[M].ordine=M:M>=t.currentIndex&&M<t.previousIndex&&(o[M].ordine=M+1)});return function(E,M,J){return _.apply(this,arguments)}}()),o[t.previousIndex].ordine=t.currentIndex;let a=o.map((_,E)=>({id_lezione:_.id_lezione,posizione:_.ordine})),l=JSON.stringify(a);console.log("position:",l),(yield n.api.call("updatePosizioniLezioni",{posizioni:l},!1,!0))&&(a.forEach((_,E,M)=>{n.lezioni[_.id_lezione].ordine=_.posizione}),n._snackBar.open("Slides aggiornate con successo!","chiudi"))})()}get lezioniOrdinate(){return[...this.lezioni].sort((t,n)=>t.ordine-n.ordine)}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_corso=t.route.snapshot.paramMap.get("id"),t.lezioni=[],yield t.refresh(),t.corso=yield t.api.call("getCorsoCustom",{id_corso:t.id_corso})})()}refresh(){var t=this;return(0,m.A)(function*(){let n=yield t.api.call("getCorsoLezioni",{id_corso:t.id_corso});t.lezioni=[];let o=0;n.forEach(function(){var a=(0,m.A)(function*(l,c,_){if(t.lezioni[_[c].id_lezione]=_[c],_[c].paniere)try{t.lezioni[_[c].id_lezione].paniere=JSON.parse(_[c].paniere)}catch{}else t.lezioni[_[c].id_lezione].paniere=[];if(t.lezioni[_[c].id_lezione].quiz_on=!1,t.lezioni[_[c].id_lezione].files=parseInt(_[c].files),t.lezioni[_[c].id_lezione].video=parseInt(_[c].video),t.lezioni[_[c].id_lezione].quiz=parseInt(_[c].quiz),t.lezioni[_[c].id_lezione].quiz_time=parseInt(_[c].quiz_time),t.lezioni[_[c].id_lezione].image=parseInt(_[c].image),t.lezioni[_[c].id_lezione].time=parseInt(_[c].time),t.lezioni[_[c].id_lezione].disabilita_navigazione=parseInt(_[c].disabilita_navigazione),t.lezioni[_[c].id_lezione].scorrimento_automatico_slide=parseInt(_[c].scorrimento_automatico_slide),t.lezioni[_[c].id_lezione].timer_slide=parseInt(_[c].timer_slide),t.lezioni[_[c].id_lezione].timer_come_video=parseInt(_[c].timer_come_video),t.lezioni[_[c].id_lezione].video_len=parseInt(_[c].video_len),t.lezioni[_[c].id_lezione].ordine=parseInt(_[c].ordine),1===t.lezioni[_[c].id_lezione].timer_come_video&&t.lezioni[_[c].id_lezione].video_len>0&&(t.lezioni[_[c].id_lezione].time=t.lezioni[_[c].id_lezione].video_len),t.lezioni[_[c].id_lezione].image_url&&""!=t.lezioni[_[c].id_lezione].image_url)try{t.lezioni[_[c].id_lezione].slides=JSON.parse(t.lezioni[_[c].id_lezione].image_url)}catch{t.lezioni[_[c].id_lezione].slides=[]}else t.lezioni[_[c].id_lezione].slides=[];t.lezioni[_[c].id_lezione].video_url_downloaded=!1,t.lezioni[_[c].id_lezione].video1_url_downloaded=!1,console.log(t.lezioni[_[c].id_lezione]),(0==o||t.lezioni[o].ordine>_[c].ordine)&&(o=_[c].id_lezione),t.lezioni[_[c].id_lezione].files_url=yield t.api.call("getFilesLezione",{id_lezione:_[c].id_lezione})});return function(l,c,_){return a.apply(this,arguments)}}()),o>0&&(t.lezioni[o].first=!0,t.selectedLezione=o,t.caricaSlideLezione()),0==t.lezioni.length&&(yield t.aggiungiLezione(),t.refresh()),console.log("lezioni:",t.lezioni),console.log("selectedLezione:",t.selectedLezione)})()}caricaVideoLezione(){var t=this;return(0,m.A)(function*(){let n=t.selectedLezione;t.lezioni[n].video_url_downloaded=!1;let o="video/"+n+".mp4",a=yield t.api.call("getFileLezione",{id_lezione:n,filename:o},!1,!1,!1);a&&(console.log("videourl:",a),t.lezioni[n].video_url_downloaded=t.sanitizer.bypassSecurityTrustResourceUrl(a))})()}isOver(){return window.matchMedia("(max-width: 960px)").matches}calculateHeight(){return window.innerHeight-450}onSelect(t){this.lezioni[t].quiz_on=!1,this.selectedLezione=t,this.caricaSlideLezione()}onSelectQuiz(t){this.selectedLezione=t,this.lezioni[t].quiz_on=!0}caricaSlideLezione(){var t=this;return(0,m.A)(function*(){t.selectedLezione&&t.lezioni[t.selectedLezione].slides.forEach(function(){var n=(0,m.A)(function*(o,a,l){if(!t.lezioni[t.selectedLezione].slides[a].image_url_downloaded){let c=t.selectedLezione,_=yield t.api.call("getFileLezione",{id_lezione:t.selectedLezione,filename:l[a].url},!1,!1,!1);_&&(t.lezioni[c].slides[a].image_url_downloaded=_)}});return function(o,a,l){return n.apply(this,arguments)}}())})()}checkFiles(t=!0){}getFilesLezione(t){var n=this;return(0,m.A)(function*(){n.lezioni[t].files_url=yield n.api.call("getFilesLezione",{id_lezione:t})})()}aggiungiLezione(){var t=this;return(0,m.A)(function*(){if(yield t.api.call("inserisciLezioneCorso",{id_corso:t.id_corso},!1,!1)){t._snackBar.open("Lezione Aggiunta!","chiudi");let o=t.selectedLezione;yield t.refresh(),t.selectedLezione=o}else t._snackBar.open("Lezione non Aggiunta!","chiudi")})()}autosaveNumeroDomandeEsame(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("autosaveNumeroDomandeCorso",{id_corso:n.id_corso,numero_domande:t.numero_domande});o&&n._snackBar.open(o,"chiudi")})()}autosaveRatingEsame(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("autosaveRatingCorso",{id_corso:n.id_corso,rating:t.rating});o&&n._snackBar.open(o,"chiudi")})()}autosaveTitoloLezione(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("aggiornaTitoloLezioneCorso",{id_lezione:t.id_lezione,titolo:t.titolo});o&&n._snackBar.open(o,"chiudi")})()}autosaveTimeLezione(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("aggiornaTimeLezioneCorso",{id_lezione:t.id_lezione,time:t.time});o&&n._snackBar.open(o,"chiudi")})()}autosaveTimeQuizLezione(t){var n=this;return(0,m.A)(function*(){console.log(t);let o=yield n.api.call("aggiornaTimeLezioneQuizCorso",{id_lezione:t.id_lezione,quiz_time:t.quiz_time});o&&n._snackBar.open(o,"chiudi")})()}autosaveDisabilitaNavigazioneLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].disabilita_navigazione=0==t.lezioni[t.selectedLezione].disabilita_navigazione?1:0;let n=yield t.api.call("autosaveDisabilitaNavigazioneLezione",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,disabilita_navigazione:t.lezioni[t.selectedLezione].disabilita_navigazione});n&&t._snackBar.open(n,"chiudi")})()}autosaveScorrimentoAutomaticoSlideLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].scorrimento_automatico_slide=0===t.lezioni[t.selectedLezione].scorrimento_automatico_slide?1:0;let n=yield t.api.call("autosaveScorrimentoAutomaticoSlideLezione",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,scorrimento_automatico_slide:t.lezioni[t.selectedLezione].scorrimento_automatico_slide});n&&t._snackBar.open(n,"chiudi")})()}autosaveTimerComeVideoLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].timer_come_video=0===t.lezioni[t.selectedLezione].timer_come_video?1:0;let n=yield t.api.call("autosaveTimerComeVideoLezione",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,timer_come_video:t.lezioni[t.selectedLezione].timer_come_video});n&&t._snackBar.open(n,"chiudi")})()}autosaveTipologiaCorso(){var t=this;return(0,m.A)(function*(){t.corso.tipologia=0===t.corso.tipologia?1:0;let n=yield t.api.call("autosaveTipologiaCorso",{id_corso:t.corso.id_corso,tipologia:t.corso.tipologia});n&&t._snackBar.open(n,"chiudi")})()}autosaveTimerSlideLezione(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("aggiornaTimerSlideLezioneCorso",{id_lezione:t.id_lezione,timer_slide:t.timer_slide});o&&n._snackBar.open(o,"chiudi")})()}autosaveDomandaLezione(t){var n=this;return(0,m.A)(function*(){let a=yield n.api.call("aggiornaDomandaLezioneCorso",{id_domanda:t.id_domanda,domanda:t.domanda});a&&n._snackBar.open(a,"chiudi")})()}autosaveRispostaDomandaLezioneCorretta(t,n){var o=this;return(0,m.A)(function*(){let l=yield o.api.call("autosaveRispostaDomandaLezioneCorretta",{id_domanda:t,id_risposta:n});l&&o._snackBar.open(l,"chiudi")})()}autosaveRispostaLezione(t){var n=this;return(0,m.A)(function*(){let a=yield n.api.call("aggiornaRispostaLezioneCorso",{id_risposta:t.id_risposta,risposta:t.risposta,corretta:t.corretta});a&&n._snackBar.open(a,"chiudi")})()}autosaveOggettoLezione(t){var n=this;return(0,m.A)(function*(){t&&t.subject&&(yield n.api.call("aggiornaOggettoLezione",{id_lezione:t.id_lezione,subject:t.subject}))&&n._snackBar.open("Aggiornameto contenuto lezione riuscito!","chiudi")})()}autosaveQuizLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].quiz=!t.lezioni[t.selectedLezione].quiz;let n=yield t.api.call("aggiornaQuizLezioneCorso",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,quiz:t.lezioni[t.selectedLezione].quiz});n&&t._snackBar.open(n,"chiudi")})()}autosaveImageLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].image=!t.lezioni[t.selectedLezione].image;let n=yield t.api.call("aggiornaImageLezioneCorso",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,image:t.lezioni[t.selectedLezione].image});n&&t._snackBar.open(n,"chiudi")})()}autosaveVideoLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].video=!t.lezioni[t.selectedLezione].video;let n=yield t.api.call("aggiornaVideoLezioneCorso",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,video:t.lezioni[t.selectedLezione].video});n&&t._snackBar.open(n,"chiudi")})()}aggiornaSlide(){var t=this;return(0,m.A)(function*(){let n=JSON.stringify(t.lezioni[t.selectedLezione].slides);(yield t.api.call("updateSlideLezione",{image_url:n,id_lezione:t.lezioni[t.selectedLezione].id_lezione},!1,!0))&&t._snackBar.open("Slides aggiornate con successo!","chiudi")})()}drop(t){var n=this;return(0,m.A)(function*(){(0,Z.HD)(n.lezioni[n.selectedLezione].slides,t.previousIndex,t.currentIndex),n.lezioni[n.selectedLezione].slides.forEach(function(){var o=(0,m.A)(function*(a,l,c){n.lezioni[n.selectedLezione].slides[l].posizione=l});return function(a,l,c){return o.apply(this,arguments)}}()),yield n.aggiornaSlide()})()}aggiungiDomanda(t){var n=this;return(0,m.A)(function*(){if(yield n.api.call("aggiungiDomandaLezione",{id_lezione:n.lezioni[t].id_lezione},!1,!1)){n._snackBar.open("Nuova domanda del quiz inserita!","chiudi");let a=n.selectedLezione,l=n.lezioni[n.selectedLezione].quiz_on;yield n.refresh(),n.selectedLezione=a,n.lezioni[n.selectedLezione].quiz_on=l}})()}selectFirt(){var t=this;this.lezioni.forEach(function(){var n=(0,m.A)(function*(o,a,l){0==a&&(l[a].first=!0,t.selectedLezione=l[a].id_lezione)});return function(o,a,l){return n.apply(this,arguments)}}())}rimuoviImageLezione(t,n){var o=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare l'immagine?").afterClosed().subscribe(function(){var l=(0,m.A)(function*(c){c&&(o.lezioni[o.selectedLezione].slides.splice(n,1),(yield o.api.call("updateSlideLezione",{id_lezione:t,image_url:JSON.stringify(o.lezioni[o.selectedLezione].slides)},!1,!1))&&o._snackBar.open("Immagine Cancellata!","chiudi"))});return function(c){return l.apply(this,arguments)}}())}cancellaDomanda(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare la domanda? L'azione \xe8 inreversibile e verranno cancellate tutte le risposte associate").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){if(l&&(yield n.api.call("rimuoviDomandaLezione",{id_domanda:t},!1,!1))){n._snackBar.open("Domanda Cancellata!","chiudi");let _=n.selectedLezione,E=n.lezioni[n.selectedLezione].quiz_on;yield n.refresh(),n.selectedLezione=_,n.lezioni[n.selectedLezione].quiz_on=E}});return function(l){return a.apply(this,arguments)}}())}cancellaLezione(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare la lezione? L'azione \xe8 inreversibile e verr\xe0 cancellato l'eventuale quiz associato").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaLezioneCorso",{id_lezione:t},!1,!1))&&(n._snackBar.open("Lezione Cancellata!","chiudi"),yield n.refresh())});return function(l){return a.apply(this,arguments)}}())}cancellaVideoLezione(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare il video della lezione? L'azione \xe8 inreversibile ").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaVideoLezione",{id_lezione:t},!1,!1))&&(n._snackBar.open("Video Lezione Cancellato!","chiudi"),yield n.refresh())});return function(l){return a.apply(this,arguments)}}())}cancellaQuiz(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare il quiz della lezione?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaQuizLezioneCorso",{id_lezione:t},!1,!1))&&(n._snackBar.open("Quiz lezione cancellato!","chiudi"),yield n.refresh())});return function(l){return a.apply(this,arguments)}}())}deleteFileLezione(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare il filedella lezione?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("deleteFileLezione",{id_lezione:n.lezioni[n.selectedLezione].id_lezione,filename:t},!1,!1))&&(n._snackBar.open("File della lezione cancellato!","chiudi"),n.lezioni[n.selectedLezione].files_url=yield n.api.call("getFilesLezione",{id_lezione:n.lezioni[n.selectedLezione].id_lezione}))});return function(l){return a.apply(this,arguments)}}())}scaricaFileLezione(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("getFileLezione",{id_lezione:n.id_corso,filename:t},!1,!1,!1);o&&window.open(o,"_blank")})()}setFiles(t,n="files"){var o=this;return(0,m.A)(function*(){yield o.caricaFiles(t,n)})()}caricaFiles(t,n){var o=this;return(0,m.A)(function*(){console.log("files:",t);let a=yield o.api.call("uploadFilesLezione",{files:t,type:n,id_lezione:o.lezioni[o.selectedLezione].id_lezione},!1,!0);if(console.log("ret:",a),a){o._snackBar.open(a,"chiudi");let l=o.selectedLezione,c=o.lezioni[o.selectedLezione].quiz_on;yield o.refresh(),o.selectedLezione=l,o.lezioni[o.selectedLezione].quiz_on=c,o.caricaSlideLezione()}})()}salva(){}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(v.W),e.rXU(j.P),e.rXU(h.Ix),e.rXU(h.nX),e.rXU(me.UG),e.rXU(de.up))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-crea-corso"]],viewQuery:function(n,o){if(1&n&&(e.GBs(Ga,7),e.GBs(H.l,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.myInput=a.first),e.mGM(a=e.lsd())&&(o.fileUploaderComponent=a.first)}},hostBindings:function(n,o){1&n&&e.bIt("keydown.escape",function(l){return o.onEscapePressed(l)},!1,e.EBC)},standalone:!0,features:[e.Jv_([{provide:u.U$,useValue:{subscriptSizing:"dynamic"}}]),e.aNF],decls:2,vars:1,consts:[["num_domande","matMenu"],["rating","matMenu"],["chatnav",""],["timerslide","matMenu"],["menulezione","matMenu"],["timerlezione","matMenu"],["timerquiz","matMenu"],[1,"rounded","bg-white","p-y-30","p-x-24","m-b-30","overflow-hidden"],[1,"d-flex","align-items-center","justify-content-between"],[1,"page-title","m-0","f-s-20","f-w-600"],[1,"mat-body-1","f-s-12"],[1,"d-flex","align-items-center"],["mat-icon-button","","matTooltip","Imposta in numero di domande che vuoi siano presenti nell'esame finale",1,"m-r-auto",3,"matMenuTriggerFor"],[1,"icon-24","d-flex","align-items-center",3,"name"],["mat-icon-button","","matTooltip","Imposta la percentuale di domande corrette necessarie a superare l'esame",1,"m-r-auto",3,"matMenuTriggerFor"],["x-position","before",1,"cardWithShadow"],[3,"click"],["appearance","outline","color","primary",1,"w-100",2,"margin-bottom","5px"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block"],["matInput","","type","number","type","text",3,"ngModelChange","focusout","ngModel"],["matSuffix",""],["name","percentage",1,"icon-20","d-flex"],[1,"bg-white",3,"ngClass"],[3,"open","close","mode","opened"],[1,"position-relative",2,"height","100%"],[1,"p-r-24","b-b-1"],[1,"d-flex","align-items-center","p-l-15","p-t-15","p-b-15"],[1,"f-s-10","w-100","text-center","text-primary",2,"display","block"],["cdkDropList","","cdkDropListOrientation","mixed",1,"chat-listing",3,"cdkDropListDropped"],[1,"no-shadow","chat-right-panel","bg-white","d-flex","align-items-center","p-y-8","b-b-1"],["mat-icon-button","",1,"m-r-10",3,"click"],["mat-icon-button","","matTooltip","Cancella Lezione",1,"d-flex","align-items-center","justify-content-center"],[1,"d-flex","align-items-center","w-100"],[1,"mat-subtitle-1","f-s-16","f-w-600","m-b-0","m-l-8","w-100"],["appearance","outline","color","primary",1,"form-titolo-hide-error",3,"width"],["mat-icon-button","","matTooltip","Full Screen",1,"m-r-auto"],["mat-icon-button","","matTooltip","Esci da Full Screen",1,"m-r-auto"],[1,"position-relative","bg-white",2,"border-bottom","1px solid #ccc"],[1,"position-relative","bg-white",2,"border-bottom","1px solid #ccc",3,"ngStyle"],[1,"m-t-0",2,"border-bottom","1px solid #ccc","margin-bottom","5px","padding-left","5px","padding-top","12px","padding-bottom","12px"],[1,"chat-middle-box",2,"padding","0px !important"],[3,"filesEvent","lite","showList"],[1,"d-flex","align-items-center","justify-content-between",2,"border-bottom","1px solid #ccc"],[1,"m-t-0",2,"margin-bottom","0px","padding","5px"],["mat-icon-button","",1,"m-r-auto",3,"click","matTooltip"],["mat-icon-button","",1,"m-r-auto",3,"matMenuTriggerFor","matTooltip"],["mat-icon-button","",1,"m-l-auto",3,"click","matTooltip"],["cdkDropList","","cdkDropListOrientation","mixed",1,"example-list",3,"cdkDropListDropped"],["cdkDrag","",1,"example-box"],[1,"example-box"],[3,"filesEvent","lite","showList","hideButtonAfterUpload","accept","multiple","buttonValue"],[1,"d-flex","align-items-center",2,"padding","30px"],[3,"lite","showList","hideButtonAfterUpload","accept","multiple","buttonValue"],[1,"position-relative","bg-white",3,"ngStyle"],[3,"ngModelChange","onBlur","init","apiKey","ngModel"],[1,"row","m-t-24","cont-lit",3,"ngStyle"],[1,"col-sm-12","text-center"],[1,"m-l-auto"],[1,"position-relative","bg-white",3,"style","ngStyle"],[1,"text-right","p-20"],["mat-button","","mat-flat-button","","color","primary"],["role","listitem","cdkDrag","","lines","2",3,"click","cdkDragData"],["matListItemTitle","",1,"d-flex","align-items-center","p-x-16","p-l-8","p-b-4","h-100"],[1,"m-l-8"],[1,"f-w-600","mat-subtitle-1","f-s-14","lh-sm"],[1,"f-s-14","m-t-4","m-b-0",2,"color","gray"],["role","listitem","lines","2",3,"bg-light-primary"],["role","listitem","lines","2",3,"click"],["matListItemTitle","",1,"d-flex","align-items-center","p-x-16","p-l-32","p-b-4","h-100"],["mat-icon-button","","matTooltip","Cancella Lezione",1,"d-flex","align-items-center","justify-content-center",3,"click"],["name","trash",1,"icon-24","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Cancella Quiz",1,"d-flex","align-items-center","justify-content-center"],["mat-icon-button","","matTooltip","Cancella Quiz",1,"d-flex","align-items-center","justify-content-center",3,"click"],["appearance","outline","color","primary",1,"form-titolo-hide-error"],["matInput","","type","text",3,"ngModelChange","focusout","ngModel"],["mat-icon-button","","matTooltip","Full Screen",1,"m-r-auto",3,"click"],["name","arrows-maximize",1,"icon-24","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Esci da Full Screen",1,"m-r-auto",3,"click"],["name","arrows-minimize",1,"icon-24","d-flex","align-items-center"],["mat-icon-button","",1,"m-l-auto",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","","matTooltip","Imposta in numero di domande che vuoi siano presenti nell'esame",1,"m-r-auto",3,"matMenuTriggerFor"],["class","p-0",4,"ngFor","ngForOf"],[1,"p-0"],[1,"delete",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","14","height","18","viewBox","0 0 14 18"],["fill","#B1B1B1","fill-rule","nonzero","d","M1 16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v10zm3.17-7.83a.996.996 0 0 1 1.41 0L7 9.59l1.42-1.42a.996.996 0 1 1 1.41 1.41L8.41 11l1.42 1.42a.996.996 0 1 1-1.41 1.41L7 12.41l-1.42 1.42a.996.996 0 1 1-1.41-1.41L5.59 11 4.17 9.58a.996.996 0 0 1 0-1.41zM10.5 1L9.79.29C9.61.11 9.35 0 9.09 0H4.91c-.26 0-.52.11-.7.29L3.5 1H1c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5z"],[1,"mat-subtitle-1","f-s-12"],["target","_blank",2,"cursor","pointer",3,"click"],[1,"img-fluid","p-5",2,"position","relative",3,"fill","ngSrc","alt"],["mat-icon-button","","matTooltip","Cancella Slide",1,"d-flex","align-items-center","justify-content-center",2,"position","relative","z-index","1","top","-23px","right","23px","color","white","background","red",3,"click"],["mat-icon-button","","matTooltip","Carica video anteprima","color","success",1,"d-flex","align-items-center","justify-content-center",2,"margin","0 auto",3,"click"],["name","player-play",1,"icon-48","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Cancella Video",1,"d-flex","align-items-center","justify-content-center",2,"margin","0 auto","background","red","color","white",3,"click"],[1,"embed-responsive","embed-responsive-16by9"],["allowfullscreen","","controls","",1,"embed-responsive-item","w-full","h-full",2,"top","0","left","0","width","100%","height","100%",3,"src"],[1,"p-b-5","w-100","text-center"],[1,"row","m-t-0",3,"ngStyle"],["mat-icon-button","","matTooltip","Cancella Domanda Quiz",1,"d-flex","align-items-center","justify-content-center",2,"margin","0 auto"],[1,"chat-middle-box","cont-lit"],[1,"row","m-t-0"],[1,"col-sm-11"],["appearance","outline","color","primary",1,"w-100"],["matInput","","type","text","type","text",3,"ngModelChange","focusout","ngModel","errorStateMatcher"],[1,"col-sm-1"],["type","text",1,"p-t-15","m-l-auto","text-success","text-accent",3,"ngModelChange","ngModel"],[1,"row"],["mat-icon-button","","matTooltip","Cancella Domanda Quiz",1,"d-flex","align-items-center","justify-content-center",2,"margin","0 auto",3,"click"],[1,"col-sm-8"],[1,"col-sm-3","text-left"],["appearance","outline","color","primary",1,"w-100","p-t-20","p-l-10",3,"formControl","name"],["value","true",3,"click","checked"],["mat-button","","mat-flat-button","","color","primary",3,"click"]],template:function(n,o){1&n&&e.DNE(0,zr,112,83)(1,Fr,1,0),2&n&&e.vxM(o.corso&&o.corso.id_corso&&o.lezioni[o.selectedLezione]?0:1)},dependencies:[g.pM,Z.O7,k.G,u.rl,u.nJ,u.yw,w.fg,G.VT,G._g,I.sG,P.kk,P.fb,P.Cp,K.LG,K.US,U.KQ,p.RN,p.m2,N.q,L.jt,L._L,L.YE,L.yE,C.It,C.iY,x.An,V.oV,Z.T1,ne.g7,B.Id,B.Yh,G.Wk,V.uc,g.kt,g.MD,g.YU,g.B3,L.Fg,p.Hu,ce.xn,x.m_,z.X4,z.Jc,S.RI,u.RG,I.mV,$.Ve,w.fS,C.Hl,s.X1,s.me,s.BC,s.l_,s.YN,s.vS,H.l],styles:[".chat-list[_ngcontent-%COMP%]{overflow:hidden;box-sizing:border-box;width:100%;margin-bottom:1rem;display:flex}.chat-list.even[_ngcontent-%COMP%]{-moz-justify-content:flex-end;justify-content:flex-end;text-align:right}.chat-app[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%]{width:320px}.chat-listing[_ngcontent-%COMP%] .mdc-list-item[_ngcontent-%COMP%]{height:75px;display:flex;align-items:center}.attivo[_ngcontent-%COMP%]{color:#ffb22b}.example-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;max-width:100%;gap:15px;padding:15px;min-height:60px;border-radius:4px;overflow:hidden}.example-box[_ngcontent-%COMP%]{padding:20px 10px;border:solid 1px #ccc;border-radius:4px;color:#000000de;display:inline-block;box-sizing:border-box;cursor:move;background:#fff;text-align:center;font-size:14px;width:31%}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}iframe[_ngcontent-%COMP%]{width:100%;height:100%;border:none}.p-input[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px;padding-top:10px}.fullscreen[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;background-color:#000c;display:flex}"]})}}return i})();function Er(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Titolo "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function kr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Categoria "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function jr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Durata "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function xr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Descrizione "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function wr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Finalit\xe0 "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Ar(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Programma "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function yr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Destinatari "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Rr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Contenuti "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Mr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Caratteristiche "),e.j41(2,"strong"),e.EFF(3,"obbligatorie!"),e.k0s()())}class Tr{isErrorState(r,t){return!!(r&&r.invalid&&(r.dirty||r.touched||t&&t.submitted))}}let Dr=(()=>{class i{constructor(t,n,o,a){this.api=t,this.settings=n,this.activatedRouter=o,this.router=a,this.matcher=new Tr,this.inserisciUtenteFormControl=new s.gE({titolo:new s.MJ("",[s.k0.required,s.k0.nullValidator]),categoria:new s.MJ("",[s.k0.required,s.k0.nullValidator]),colore:new s.MJ("",[s.k0.required,s.k0.nullValidator]),prezzo:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),erogazione:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),descrizione:new s.MJ("",[s.k0.required,s.k0.nullValidator]),finalita:new s.MJ(""),programma:new s.MJ(""),destinatari:new s.MJ(""),contenuti:new s.MJ(""),caratteristiche:new s.MJ(""),durata:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),id_esame:new s.MJ(0),insert_time:new s.MJ(0)})}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_esame=t.activatedRouter.snapshot.paramMap.get("id"),t.refresh()})()}refresh(){var t=this;return(0,m.A)(function*(){t.corso=yield t.api.call("getEsame",{id_esame:t.id_esame}),t.inserisciUtenteFormControl.setValue({titolo:t.corso.titolo,categoria:t.corso.categoria,colore:t.corso.colore,prezzo:t.corso.prezzo,erogazione:t.corso.erogazione,descrizione:t.corso.descrizione,finalita:t.corso.finalita,programma:t.corso.programma,destinatari:t.corso.destinatari,contenuti:t.corso.contenuti,caratteristiche:t.corso.caratteristiche,durata:t.corso.durata,id_esame:t.corso.id_esame,insert_time:t.corso.insert_time})})()}updateCorso(){var t=this;return(0,m.A)(function*(){t.inserisciUtenteFormControl.valid&&(yield t.api.callWithDialog("updateEsame",t.inserisciUtenteFormControl.value)).afterClosed().subscribe(o=>{t.router.navigate(["/formatori/esami_custom"],{relativeTo:t.activatedRouter})})})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(v.W),e.rXU(j.P),e.rXU(h.nX),e.rXU(h.Ix))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-modifica-esame"]],standalone:!0,features:[e.Jv_([(0,R.aw)(),{provide:b.MJ,useClass:O.ZG,useFactory:Y.a},{provide:R.Ju,useValue:"it-IT"}]),e.aNF],decls:88,vars:30,consts:[[1,"cardWithShadow"],[3,"ngSubmit","formGroup"],[1,"d-flex","align-items-center","p-b-30","b-b-1"],[1,"mat-body-1"],[1,"row","m-t-24"],[1,"col-sm-12"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block"],["appearance","outline","color","primary",1,"w-100"],["matInput","","type","text",3,"formControl","errorStateMatcher"],[1,"col-sm-6"],["matNativeControl","","required","",3,"formControl"],["value","success"],["value","warning"],["value","danger"],["value","primary"],["value","0"],["value","1"],["matInput","","step",".01","type","number",3,"formControl","errorStateMatcher"],["matSuffix",""],["name","clock-hour-2",1,"icon-20","d-flex"],[1,"text-right","p-24","p-t-20","m-b-0","p-b-0","p-r-0"],["type","submit","mat-flat-button","","color","success",1,"m-r-0"]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content")(2,"form",1),e.bIt("ngSubmit",function(){return o.updateCorso()}),e.j41(3,"div",2)(4,"mat-card-subtitle",3),e.EFF(5,"Edita i dati e poi clicca sul pulsante salva."),e.k0s()(),e.j41(6,"div",4)(7,"div",5)(8,"mat-label",6),e.EFF(9,"Titolo"),e.k0s(),e.j41(10,"mat-form-field",7),e.nrm(11,"input",8),e.DNE(12,Er,4,0,"mat-error"),e.k0s()(),e.j41(13,"div",9)(14,"mat-label",6),e.EFF(15,"Categoria"),e.k0s(),e.j41(16,"mat-form-field",7),e.nrm(17,"input",8),e.DNE(18,kr,4,0,"mat-error"),e.k0s()(),e.j41(19,"div",9)(20,"mat-label",6),e.EFF(21,"Colore"),e.k0s(),e.j41(22,"mat-form-field",7)(23,"select",10)(24,"option",11),e.EFF(25,"Verde"),e.k0s(),e.j41(26,"option",12),e.EFF(27,"Arancio"),e.k0s(),e.j41(28,"option",13),e.EFF(29,"Rosso"),e.k0s(),e.j41(30,"option",14),e.EFF(31,"Primario"),e.k0s()()()(),e.j41(32,"div",5)(33,"mat-label",6),e.EFF(34,"Erogazione"),e.k0s(),e.j41(35,"mat-form-field",7)(36,"select",10)(37,"option",15),e.EFF(38,"LIBERA (In qualsiasi momento)"),e.k0s(),e.j41(39,"option",16),e.EFF(40,"SESSIONE (Tramite le sessioni programmate dai centri)"),e.k0s()()()(),e.j41(41,"div",5)(42,"mat-label",6),e.EFF(43,"Durata (in ore)"),e.k0s(),e.j41(44,"mat-form-field",7),e.nrm(45,"input",17),e.j41(46,"mat-icon",18),e.nrm(47,"i-tabler",19),e.k0s(),e.DNE(48,jr,4,0,"mat-error"),e.k0s()(),e.j41(49,"div",5)(50,"mat-label",6),e.EFF(51,"Descrizione"),e.k0s(),e.j41(52,"mat-form-field",7),e.nrm(53,"textarea",8),e.DNE(54,xr,4,0,"mat-error"),e.k0s()(),e.j41(55,"div",5)(56,"mat-label",6),e.EFF(57,"Finalit\xe0"),e.k0s(),e.j41(58,"mat-form-field",7),e.nrm(59,"textarea",8),e.DNE(60,wr,4,0,"mat-error"),e.k0s()(),e.j41(61,"div",5)(62,"mat-label",6),e.EFF(63,"Programma"),e.k0s(),e.j41(64,"mat-form-field",7),e.nrm(65,"textarea",8),e.DNE(66,Ar,4,0,"mat-error"),e.k0s()(),e.j41(67,"div",5)(68,"mat-label",6),e.EFF(69,"Destinatari"),e.k0s(),e.j41(70,"mat-form-field",7),e.nrm(71,"textarea",8),e.DNE(72,yr,4,0,"mat-error"),e.k0s()(),e.j41(73,"div",5)(74,"mat-label",6),e.EFF(75,"Contenuti"),e.k0s(),e.j41(76,"mat-form-field",7),e.nrm(77,"textarea",8),e.DNE(78,Rr,4,0,"mat-error"),e.k0s()(),e.j41(79,"div",5)(80,"mat-label",6),e.EFF(81,"Caratteristiche"),e.k0s(),e.j41(82,"mat-form-field",7),e.nrm(83,"textarea",8),e.DNE(84,Mr,4,0,"mat-error"),e.k0s()()(),e.j41(85,"div",20)(86,"button",21),e.EFF(87,"Modifica Esame"),e.k0s()()()()()),2&n&&(e.R7$(2),e.Y8G("formGroup",o.inserisciUtenteFormControl),e.R7$(9),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.titolo)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.titolo.hasError("required")?12:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.categoria)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.categoria.hasError("required")?18:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.colore),e.R7$(13),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.erogazione),e.R7$(9),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.durata)("errorStateMatcher",o.matcher),e.R7$(3),e.vxM(o.inserisciUtenteFormControl.controls.durata.hasError("required")?48:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.descrizione)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.descrizione.hasError("required")?54:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.finalita)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.finalita.hasError("required")?60:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.programma)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.programma.hasError("required")?66:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.destinatari)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.destinatari.hasError("required")?72:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.contenuti)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.contenuti.hasError("required")?78:-1),e.R7$(5),e.Y8G("formControl",o.inserisciUtenteFormControl.controls.caratteristiche)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciUtenteFormControl.controls.caratteristiche.hasError("required")?84:-1))},dependencies:[D.X6,p.Hu,p.RN,p.m2,p.Lc,x.m_,x.An,z.X4,z.Jc,S.RI,u.RG,u.rl,u.nJ,u.TL,u.yw,I.mV,$.Ve,w.fS,w.fg,C.Hl,C.$z,s.X1,s.qT,s.xH,s.y7,s.me,s.Q0,s.wz,s.BC,s.cb,s.YS,s.l_,s.j4,s.YN],encapsulation:2})}}return i})();function Sr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Titolo "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function $r(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Categoria "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Ir(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Durata "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Vr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Descrizione "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Lr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Finalit\xe0 "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Gr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Programma "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Nr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Destinatari "),e.j41(2,"strong"),e.EFF(3,"obbligatorio!"),e.k0s()())}function Xr(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Contenuti "),e.j41(2,"strong"),e.EFF(3,"obbligatoria!"),e.k0s()())}function Br(i,r){1&i&&(e.j41(0,"mat-error"),e.EFF(1,"Caratteristiche "),e.j41(2,"strong"),e.EFF(3,"obbligatorie!"),e.k0s()())}class Or{isErrorState(r,t){return!!(r&&r.invalid&&(r.dirty||r.touched||t&&t.submitted))}}let Yr=(()=>{class i{constructor(t,n,o,a){this.api=t,this.settings=n,this.router=o,this.route=a,this.matcher=new Or,this.inserisciCorsoFormControl=new s.gE({titolo:new s.MJ("",[s.k0.required,s.k0.nullValidator]),categoria:new s.MJ("",[s.k0.required,s.k0.nullValidator]),colore:new s.MJ("",[s.k0.required,s.k0.nullValidator]),prezzo:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),erogazione:new s.MJ(0,[s.k0.required,s.k0.nullValidator]),descrizione:new s.MJ("",[s.k0.required,s.k0.nullValidator]),finalita:new s.MJ(""),programma:new s.MJ(""),destinatari:new s.MJ(""),contenuti:new s.MJ(""),caratteristiche:new s.MJ(""),durata:new s.MJ(null,[s.k0.required,s.k0.nullValidator])}),this.secondFormGroup=new s.gE({tipologia:new s.MJ(0,[]),esame_libero:new s.MJ(1,[]),esame_attivo:new s.MJ(1,[]),fruizione:new s.MJ(-1,[]),timer_lezione:new s.MJ(30,[]),timer_come_video:new s.MJ(1,[]),scorrimento_automatico_slide:new s.MJ(0,[]),timer_slide:new s.MJ(30,[]),disabilita_navigazione:new s.MJ(0,[])})}ngOnInit(){return(0,m.A)(function*(){})()}inserisciCorso(){var t=this;return(0,m.A)(function*(){if(!t.inserisciCorsoFormControl.valid)return;let n=t.inserisciCorsoFormControl.value;(yield t.api.callWithDialog("insertEsame",n)).afterClosed().subscribe(a=>{t.router.navigate(["/formatori/esami_custom/"],{relativeTo:t.route})})})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(v.W),e.rXU(j.P),e.rXU(h.Ix),e.rXU(h.nX))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-aggiungi-esame"]],standalone:!0,features:[e.aNF],decls:91,vars:31,consts:[[1,"cardWithShadow"],[1,"p-0"],[3,"formGroup"],[1,"d-flex","align-items-center","p-b-30","b-b-1"],[1,"mat-body-1"],[1,"row","m-t-24"],[1,"col-sm-12"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block"],["appearance","outline","color","primary",1,"w-100"],["matInput","","type","text",3,"formControl","errorStateMatcher"],[1,"col-sm-6"],["matNativeControl","","required","",3,"formControl"],["value","success"],["value","warning"],["value","danger"],["value","primary"],["value","0"],["value","1"],["matInput","","step",".01","type","number",3,"formControl","errorStateMatcher"],["matSuffix",""],["name","clock-hour-2",1,"icon-20","d-flex"],[1,"text-right"],["mat-flat-button","","color","success",3,"click","disabled"]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content",1)(2,"mat-card-content")(3,"form",2)(4,"mat-card-title"),e.EFF(5,"Informazioni di base"),e.k0s(),e.j41(6,"div",3)(7,"mat-card-subtitle",4),e.EFF(8,"Inserisci qui le informazioni di base del corso, in seguito alla creazione protrai aggiungere le lezioni (contenenti slide, video, etc.), le prove intercorso e il paniere d'esame."),e.k0s()(),e.j41(9,"div",5)(10,"div",6)(11,"mat-label",7),e.EFF(12,"Titolo"),e.k0s(),e.j41(13,"mat-form-field",8),e.nrm(14,"input",9),e.DNE(15,Sr,4,0,"mat-error"),e.k0s()(),e.j41(16,"div",10)(17,"mat-label",7),e.EFF(18,"Categoria"),e.k0s(),e.j41(19,"mat-form-field",8),e.nrm(20,"input",9),e.DNE(21,$r,4,0,"mat-error"),e.k0s()(),e.j41(22,"div",10)(23,"mat-label",7),e.EFF(24,"Colore"),e.k0s(),e.j41(25,"mat-form-field",8)(26,"select",11)(27,"option",12),e.EFF(28,"Verde"),e.k0s(),e.j41(29,"option",13),e.EFF(30,"Arancio"),e.k0s(),e.j41(31,"option",14),e.EFF(32,"Rosso"),e.k0s(),e.j41(33,"option",15),e.EFF(34,"Primario"),e.k0s()()()(),e.j41(35,"div",6)(36,"mat-label",7),e.EFF(37,"Erogazione"),e.k0s(),e.j41(38,"mat-form-field",8)(39,"select",11)(40,"option",16),e.EFF(41,"LIBERA (In qualsiasi momento)"),e.k0s(),e.j41(42,"option",17),e.EFF(43,"SESSIONE (Tramite le sessioni programmate dai centri)"),e.k0s()()()(),e.j41(44,"div",6)(45,"mat-label",7),e.EFF(46,"Durata (in ore)"),e.k0s(),e.j41(47,"mat-form-field",8),e.nrm(48,"input",18),e.j41(49,"mat-icon",19),e.nrm(50,"i-tabler",20),e.k0s(),e.DNE(51,Ir,4,0,"mat-error"),e.k0s()(),e.j41(52,"div",6)(53,"mat-label",7),e.EFF(54,"Descrizione"),e.k0s(),e.j41(55,"mat-form-field",8),e.nrm(56,"textarea",9),e.DNE(57,Vr,4,0,"mat-error"),e.k0s()(),e.j41(58,"div",6)(59,"mat-label",7),e.EFF(60,"Finalit\xe0"),e.k0s(),e.j41(61,"mat-form-field",8),e.nrm(62,"textarea",9),e.DNE(63,Lr,4,0,"mat-error"),e.k0s()(),e.j41(64,"div",6)(65,"mat-label",7),e.EFF(66,"Programma"),e.k0s(),e.j41(67,"mat-form-field",8),e.nrm(68,"textarea",9),e.DNE(69,Gr,4,0,"mat-error"),e.k0s()(),e.j41(70,"div",6)(71,"mat-label",7),e.EFF(72,"Destinatari"),e.k0s(),e.j41(73,"mat-form-field",8),e.nrm(74,"textarea",9),e.DNE(75,Nr,4,0,"mat-error"),e.k0s()(),e.j41(76,"div",6)(77,"mat-label",7),e.EFF(78,"Contenuti"),e.k0s(),e.j41(79,"mat-form-field",8),e.nrm(80,"textarea",9),e.DNE(81,Xr,4,0,"mat-error"),e.k0s()(),e.j41(82,"div",6)(83,"mat-label",7),e.EFF(84,"Caratteristiche"),e.k0s(),e.j41(85,"mat-form-field",8),e.nrm(86,"textarea",9),e.DNE(87,Br,4,0,"mat-error"),e.k0s()()(),e.j41(88,"div",21)(89,"button",22),e.bIt("click",function(){return o.inserisciCorso()}),e.EFF(90,"Inserisci Esame"),e.k0s()()()()()()),2&n&&(e.R7$(3),e.Y8G("formGroup",o.inserisciCorsoFormControl),e.R7$(11),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.titolo)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.titolo.hasError("required")?15:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.categoria)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.categoria.hasError("required")?21:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.colore),e.R7$(13),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.erogazione),e.R7$(9),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.durata)("errorStateMatcher",o.matcher),e.R7$(3),e.vxM(o.inserisciCorsoFormControl.controls.durata.hasError("required")?51:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.descrizione)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.descrizione.hasError("required")?57:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.finalita)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.finalita.hasError("required")?63:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.programma)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.programma.hasError("required")?69:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.destinatari)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.destinatari.hasError("required")?75:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.contenuti)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.contenuti.hasError("required")?81:-1),e.R7$(5),e.Y8G("formControl",o.inserisciCorsoFormControl.controls.caratteristiche)("errorStateMatcher",o.matcher),e.R7$(),e.vxM(o.inserisciCorsoFormControl.controls.caratteristiche.hasError("required")?87:-1),e.R7$(2),e.Y8G("disabled",!o.inserisciCorsoFormControl.valid))},dependencies:[k.G,u.rl,u.nJ,u.TL,u.yw,w.fg,p.RN,p.m2,p.Lc,p.dh,C.$z,x.An,p.Hu,x.m_,z.X4,z.Jc,S.RI,u.RG,I.mV,$.Ve,w.fS,C.Hl,s.X1,s.qT,s.xH,s.y7,s.me,s.Q0,s.wz,s.BC,s.cb,s.YS,s.l_,s.j4,s.YN],encapsulation:2})}}return i})();const qr=["myInput"],Pr=(i,r)=>({"side-panel-opened":i,"side-panel-closed":r}),ee=i=>({display:i});function Jr(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3).$index,n=e.XpG(2);e.SpI(" ",n.lezioni[t].titolo.substring(0,30),"... ")}}function Ur(i,r){if(1&i&&e.EFF(0),2&i){const t=e.XpG(3).$index,n=e.XpG(2);e.SpI(" ",n.lezioni[t].titolo," ")}}function Hr(i,r){if(1&i&&e.DNE(0,Jr,1,1)(1,Ur,1,1),2&i){const t=e.XpG(2).$index,n=e.XpG(2);e.vxM(n.lezioni[t].titolo.length>30?0:1)}}function Qr(i,r){1&i&&e.EFF(0," Titolo Modulo ")}function Wr(i,r){if(1&i){const t=e.RV6();e.j41(0,"mat-list-item",56),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2).$index,a=e.XpG(2);return e.Njj(a.onSelectQuiz(o))}),e.j41(1,"div",60)(2,"div",23)(3,"h3",24),e.EFF(4," Quiz "),e.k0s(),e.j41(5,"p",58),e.EFF(6,"Clicca qui per configurare il quiz"),e.k0s()()()()}if(2&i){const t=e.XpG(2).$implicit,n=e.XpG(2);e.AVh("bg-light-primary",t.id_modulo==n.lezioni[n.selectedLezione].id_modulo)}}function Zr(i,r){if(1&i){const t=e.RV6();e.j41(0,"mat-list-item",56),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$index,a=e.XpG(2);return e.Njj(a.onSelect(o))}),e.j41(1,"div",57)(2,"div",23)(3,"h3",24),e.DNE(4,Hr,2,1)(5,Qr,1,0),e.k0s(),e.j41(6,"p",58),e.EFF(7,"Clicca qui per configurare il modulo"),e.k0s()()()(),e.DNE(8,Wr,7,2,"mat-list-item",59)}if(2&i){const t=e.XpG(),n=t.$implicit,o=t.$index,a=e.XpG(2);e.AVh("bg-light-primary",n.id_modulo==a.lezioni[a.selectedLezione].id_modulo),e.R7$(4),e.vxM(a.lezioni[o].titolo?4:5),e.R7$(4),e.vxM(n.quiz?8:-1)}}function Kr(i,r){1&i&&e.DNE(0,Zr,9,4),2&i&&e.vxM(r.$implicit?0:-1)}function es(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",61),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.cancellaModuloEsame(o.lezioni[o.selectedLezione].id_modulo))}),e.nrm(1,"i-tabler",62),e.k0s()}}function ts(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.fullscreen(!0))}),e.nrm(1,"i-tabler",64),e.k0s()}}function is(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",65),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.fullscreen(!1))}),e.nrm(1,"i-tabler",66),e.k0s()}}function os(i,r){if(1&i&&(e.j41(0,"h4",52),e.EFF(1),e.k0s()),2&i){const t=e.XpG(2);e.R7$(),e.SpI("Attenzione ",t.lezioni[t.selectedLezione].domande_senza_risposta," domande senza risposta corretta impostata!")}}function ns(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",75),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.cancellaDomandaEsame(o.id_domanda))}),e.nrm(1,"i-tabler",62),e.k0s()}}function as(i,r){1&i&&(e.nrm(0,"br"),e.j41(1,"span",76),e.EFF(2,"Attenzione domanda senza risposta corretta impostata!"),e.k0s())}function rs(i,r){if(1&i){const t=e.RV6();e.nrm(0,"div",77),e.j41(1,"div",78)(2,"mat-label",37),e.EFF(3),e.k0s(),e.j41(4,"mat-form-field",72)(5,"input",31),e.mxI("ngModelChange",function(o){const a=e.eBV(t).$implicit;return e.DH7(a.risposta,o)||(a.risposta=o),e.Njj(o)}),e.bIt("focusout",function(){const o=e.eBV(t).$implicit,a=e.XpG(4);return e.Njj(a.autosaveRispostaLezione(o))}),e.k0s()()(),e.j41(6,"div",79)(7,"mat-label",37),e.EFF(8,"Corretta"),e.k0s(),e.j41(9,"mat-radio-group",80)(10,"mat-radio-button",81),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG().$implicit,l=e.XpG(3);return e.Njj(l.autosaveRispostaDomandaLezioneCorretta(a.id_domanda,o.id_risposta,a))}),e.k0s()()()}if(2&i){const t=r.$implicit,n=r.$index,o=e.XpG().$implicit,a=e.XpG(3);e.R7$(3),e.SpI("Risposta ",n+1," "),e.R7$(2),e.R50("ngModel",t.risposta),e.R7$(4),e.Mz_("name","check_risp_corretta_",o.id_domanda,""),e.Y8G("formControl",a.anagraficaFormControl.controls.titolo),e.R7$(),e.Y8G("checked",!!t.corretta)}}function ss(i,r){if(1&i){const t=e.RV6();e.j41(0,"div",67)(1,"div",50)(2,"h4",51)(3,"div",51),e.DNE(4,ns,2,0,"button",68),e.k0s(),e.EFF(5),e.DNE(6,as,3,0),e.k0s()()(),e.j41(7,"mat-card-content",69)(8,"div",70)(9,"div",71)(10,"mat-form-field",72)(11,"input",73),e.mxI("ngModelChange",function(o){const a=e.eBV(t).$implicit;return e.DH7(a.domanda,o)||(a.domanda=o),e.Njj(o)}),e.bIt("focusout",function(){const o=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.autosaveDomandaLezione(o))}),e.k0s()()()(),e.j41(12,"div",74),e.Z7z(13,rs,11,6,null,null,e.Vm6),e.k0s()()}if(2&i){const t=r.$implicit,n=r.$index,o=e.XpG(3);e.Y8G("ngStyle",e.eq3(6,ee,o.lezioni[o.selectedLezione].quiz_on?"block":"none")),e.R7$(4),e.vxM(n>0?4:-1),e.R7$(),e.SpI("Domanda ",n+1," "),e.R7$(),e.vxM(0==t.check_risposta_corretta_inserita?6:-1),e.R7$(5),e.R50("ngModel",t.domanda),e.Y8G("errorStateMatcher",o.matcher),e.R7$(2),e.Dyx(t.risposte)}}function ls(i,r){if(1&i&&(e.j41(0,"ng-scrollbar",46),e.Z7z(1,ss,15,8,null,null,e.Vm6),e.k0s()),2&i){const t=e.XpG(2);e.Aen(t.isFullscreen?"height: calc(100vh - 150px);":"height: calc(100vh - 450px);"),e.Y8G("ngStyle",e.eq3(3,ee,t.lezioni[t.selectedLezione].quiz_on?"block":"none")),e.R7$(),e.Dyx(t.lezioni[t.selectedLezione].paniere)}}function cs(i,r){if(1&i){const t=e.RV6();e.j41(0,"div")(1,"div",6)(2,"div",7)(3,"h4",8),e.EFF(4),e.j41(5,"div",9),e.EFF(6),e.k0s()(),e.j41(7,"div",10)(8,"button",11),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveEsameLiberoCorso())}),e.nrm(9,"i-tabler",12),e.k0s()()()()(),e.j41(10,"mat-card")(11,"mat-sidenav-container",13)(12,"mat-sidenav",14,0),e.bIt("open",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sidePanelOpened=!0)})("close",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sidePanelOpened=!1)}),e.j41(14,"ng-scrollbar",15)(15,"div",16)(16,"div",17)(17,"b"),e.EFF(18,"Quiz dell'esame"),e.k0s()()(),e.j41(19,"mat-nav-list",18),e.Z7z(20,Kr,1,1,null,null,e.Vm6),e.j41(22,"mat-list-item",19),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.aggiungiModulo())}),e.j41(23,"div",20)(24,"button",21),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.aggiungiModulo())}),e.nrm(25,"i-tabler",22),e.k0s(),e.j41(26,"div",23)(27,"h3",24),e.EFF(28," Aggiungi Modulo "),e.k0s()()()()()()(),e.j41(29,"mat-toolbar",25)(30,"button",26),e.bIt("click",function(){e.eBV(t);const o=e.sdS(13);return e.Njj(o.toggle())}),e.j41(31,"mat-icon"),e.EFF(32,"short_text"),e.k0s()(),e.DNE(33,es,2,0,"button",27),e.j41(34,"div",28)(35,"div",29)(36,"mat-form-field",30)(37,"mat-label"),e.EFF(38,"Inserisci qui il titolo del modulo..."),e.k0s(),e.j41(39,"input",31),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].titolo,o)||(a.lezioni[a.selectedLezione].titolo=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveTitoloModulo(o.lezioni[o.selectedLezione]))}),e.k0s()()()(),e.j41(40,"mat-menu",32,1)(42,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.lezioni[o.selectedLezione].quiz_on=!o.lezioni[o.selectedLezione].quiz_on)}),e.EFF(43),e.k0s(),e.j41(44,"button",34),e.EFF(45),e.k0s(),e.j41(46,"button",34),e.EFF(47," Costo in token del tentativo di questo modulo "),e.k0s(),e.j41(48,"button",34),e.EFF(49," Imposta in numero di domande che vuoi siano presenti nell'esame finale "),e.k0s(),e.j41(50,"button",34),e.EFF(51," Imposta la percentuale di domande corrette necessarie a superare l'esame "),e.k0s()(),e.j41(52,"mat-menu",32,2)(54,"div",35),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(55,"mat-form-field",36)(56,"mat-label",37),e.EFF(57,"Numero Domande: (-1 = Tutte)"),e.k0s(),e.j41(58,"input",38),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].numero_domande,o)||(a.lezioni[a.selectedLezione].numero_domande=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveNumeroDomandeEsame(o.lezioni[o.selectedLezione]))}),e.k0s()()()(),e.j41(59,"mat-menu",32,3)(61,"div",35),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(62,"mat-form-field",36)(63,"mat-label",37),e.EFF(64,"Rating: "),e.k0s(),e.j41(65,"input",38),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].rating,o)||(a.lezioni[a.selectedLezione].rating=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveRatingEsame(o.lezioni[o.selectedLezione]))}),e.k0s(),e.j41(66,"mat-icon",39),e.nrm(67,"i-tabler",40),e.k0s()()()(),e.j41(68,"mat-menu",32,4)(70,"div",35),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(71,"mat-form-field",36)(72,"mat-label",37),e.EFF(73,"Timer Esame: (-1 = Nessun tempo minimo)"),e.k0s(),e.j41(74,"input",38),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].time,o)||(a.lezioni[a.selectedLezione].time=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveTimeQuizLezione(o.lezioni[o.selectedLezione]))}),e.k0s()()()(),e.j41(75,"button",41),e.nrm(76,"i-tabler",42),e.k0s(),e.j41(77,"mat-menu",32,5)(79,"div",35),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.j41(80,"mat-form-field",36)(81,"mat-label",37),e.EFF(82,"Token Modulo:"),e.k0s(),e.j41(83,"input",38),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].prezzo,o)||(a.lezioni[a.selectedLezione].prezzo=o),e.Njj(o)}),e.bIt("focusout",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosavePrezzoModulo(o.lezioni[o.selectedLezione]))}),e.k0s()()()(),e.DNE(84,ts,2,0,"button",43)(85,is,2,0,"button",44),e.j41(86,"button",45)(87,"mat-icon"),e.EFF(88,"more_vert"),e.k0s()()(),e.j41(89,"ng-scrollbar",46)(90,"mat-card-content",47)(91,"editor",48),e.mxI("ngModelChange",function(o){e.eBV(t);const a=e.XpG();return e.DH7(a.lezioni[a.selectedLezione].subject,o)||(a.lezioni[a.selectedLezione].subject=o),e.Njj(o)}),e.bIt("onBlur",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.autosaveOggettoModulo(o.lezioni[o.selectedLezione]))}),e.k0s()()(),e.j41(92,"div",49)(93,"div",50)(94,"h4",51),e.EFF(95),e.k0s(),e.DNE(96,os,2,1,"h4",52),e.k0s()(),e.DNE(97,ls,3,5,"ng-scrollbar",53),e.nrm(98,"mat-divider"),e.j41(99,"div",54)(100,"a",55),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.aggiungiDomanda(o.selectedLezione))}),e.EFF(101,"Aggiungi Domanda"),e.k0s()()()()}if(2&i){const t=e.sdS(41),n=e.sdS(53),o=e.sdS(60),a=e.sdS(69),l=e.sdS(78),c=e.XpG();e.R7$(4),e.SpI(" ",c.corso.titolo,""),e.R7$(2),e.SpI(" ",c.corso.categoria," "),e.R7$(2),e.FS9("matTooltip",0==c.corso.erogazione?"Cambia in Esame libero":"Cambia in Esame in Sessione del Centro"),e.R7$(),e.Y8G("name",1==c.corso.erogazione?"list-tree":"timeline-event"),e.R7$(),e.ZvI("mat-card-top chat-app cardWithShadow ",c.isFullscreen?"fullscreen":"",""),e.R7$(),e.Y8G("ngClass",e.l_i(42,Pr,c.sidePanelOpened,!c.sidePanelOpened)),e.R7$(),e.Y8G("mode",c.isOver()?"over":"side")("opened",!c.isOver()),e.R7$(8),e.Dyx(c.lezioni),e.R7$(2),e.AVh("bg-light-warning",!0),e.R7$(11),e.vxM(c.Object.keys(c.lezioni).length>1?33:-1),e.R7$(3),e.xc7("width",100,"%"),e.R7$(3),e.R50("ngModel",c.lezioni[c.selectedLezione].titolo),e.R7$(4),e.SpI(" ",1==c.lezioni[c.selectedLezione].quiz_on?"Mostra Testo Introduttivo":"Nascondi Testo Introduttivo"," "),e.R7$(),e.Y8G("matMenuTriggerFor",a),e.R7$(),e.SpI(" ",c.lezioni[c.selectedLezione].time>-1?"Imposta la durata del modulo":"Imposta durata del modulo"," "),e.R7$(),e.Y8G("matMenuTriggerFor",l),e.R7$(2),e.Y8G("matMenuTriggerFor",n),e.R7$(2),e.Y8G("matMenuTriggerFor",o),e.R7$(8),e.R50("ngModel",c.lezioni[c.selectedLezione].numero_domande),e.R7$(7),e.R50("ngModel",c.lezioni[c.selectedLezione].rating),e.R7$(9),e.R50("ngModel",c.lezioni[c.selectedLezione].time),e.R7$(),e.Y8G("matMenuTriggerFor",l),e.R7$(),e.HbH(c.lezioni[c.selectedLezione]&&c.lezioni[c.selectedLezione].numero_domande>-1?"attivo":""),e.Y8G("name","coin-euro"),e.R7$(7),e.R50("ngModel",c.lezioni[c.selectedLezione].prezzo),e.R7$(),e.vxM(c.isFullscreen?85:84),e.R7$(2),e.Y8G("matMenuTriggerFor",t),e.R7$(3),e.Aen(c.isFullscreen?"height: calc(100vh - 150px);":"height: calc(100vh - 450px);"),e.Y8G("ngStyle",e.eq3(45,ee,c.lezioni[c.selectedLezione].quiz_on?"none":"block")),e.R7$(2),e.FS9("apiKey",c.apikey_tinymce),e.Y8G("init",c.initTinyMce),e.R50("ngModel",c.lezioni[c.selectedLezione].subject),e.R7$(),e.Y8G("ngStyle",e.eq3(47,ee,c.lezioni[c.selectedLezione].quiz_on?"block":"none")),e.R7$(3),e.SpI("Totale domande: ",c.lezioni[c.selectedLezione].paniere?c.lezioni[c.selectedLezione].paniere.length:"",""),e.R7$(),e.vxM(c.lezioni[c.selectedLezione].domande_senza_risposta?96:-1),e.R7$(),e.vxM(c.lezioni[c.selectedLezione].paniere?97:-1)}}function ms(i,r){1&i&&e.EFF(0," Caricamento in corso...\n")}class ds{isErrorState(r,t){return!!(r&&r.invalid&&(r.dirty||r.touched||t&&t.submitted))}}let ps=(()=>{class i{constructor(t,n,o,a,l,c){this.api=t,this.settings=n,this.router=o,this.route=a,this._snackBar=l,this.sanitizer=c,this.Object=Object,this.sidePanelOpened=!0,this.esame_attivo=!0,this.esame_libero=!0,this.apikey_tinymce=W.c.apikey_tinymce,this.initTinyMce={plugins:"autoresize lists link image table code help wordcount",menubar:"edit insert view format table tools",language:"it",language_url:W.c.tinymce_lang,placeholder:"Inserisci qui il contenuto della lezione...",skin:"borderless",min_height:this.calculateHeight()},this.options=this.settings.getOptions(),this.matcher=new ds,this.anagraficaFormControl=new s.gE({id_segreteria:new s.MJ(null),titolo:new s.MJ(""),descrizione:new s.MJ(""),categoria:new s.MJ(""),colore:new s.MJ(""),attivo:new s.MJ(""),insert_time:new s.MJ(""),updated:new s.MJ(""),files:new s.MJ(null,[])}),this.myInput=Object.create(null),this.isFullscreen=!1}onEscapePressed(t){this.fullscreen(!1),console.log("Escape premuto! test =",this.isFullscreen)}fullscreen(t){this.isFullscreen=t,this.options.sidenavOpened=!t}ngOnInit(){var t=this;return(0,m.A)(function*(){t.id_esame=t.route.snapshot.paramMap.get("id"),yield t.refresh(),t.corso=yield t.api.call("getEsame",{id_esame:t.id_esame}),t.esame_attivo=!0,t.esame_libero=!t.corso||0!==parseInt(t.corso.erogazione)})()}refresh(){var t=this;return(0,m.A)(function*(){let n=yield t.api.call("getEsamePaniere",{id_esame:t.id_esame});t.lezioni=[],n.forEach(function(){var o=(0,m.A)(function*(a,l,c){if(t.lezioni[c[l].id_modulo]=c[l],c[l].paniere)try{t.lezioni[c[l].id_modulo].paniere=JSON.parse(c[l].paniere)}catch(_){console.log(_)}else t.lezioni[c[l].id_modulo].paniere=[];t.lezioni[c[l].id_modulo].domande_senza_risposta=0,t.lezioni[c[l].id_modulo].paniere.forEach(function(){var _=(0,m.A)(function*(E,M,J){t.lezioni[c[l].id_modulo].paniere[M].check_risposta_corretta_inserita=!1;let ue=!0;E.risposte.forEach(function(){var ml=(0,m.A)(function*(ae,dl,pl){(1==ae.corretta||"1"==ae.corretta)&&(ue=!1,t.lezioni[c[l].id_modulo].paniere[M].check_risposta_corretta_inserita=!0)});return function(ae,dl,pl){return ml.apply(this,arguments)}}()),ue&&t.lezioni[c[l].id_modulo].domande_senza_risposta++});return function(E,M,J){return _.apply(this,arguments)}}()),t.lezioni[c[l].id_modulo].quiz_on=!0,t.lezioni[c[l].id_modulo].files=parseInt(c[l].files),t.lezioni[c[l].id_modulo].video=parseInt(c[l].video),t.lezioni[c[l].id_modulo].quiz=parseInt(c[l].quiz),t.lezioni[c[l].id_modulo].titolo=c[l].titolo,t.lezioni[c[l].id_modulo].image=parseInt(c[l].image),t.lezioni[c[l].id_modulo].time=parseInt(c[l].time),t.lezioni[c[l].id_modulo].testo=c[l].testo,t.lezioni[c[l].id_modulo].rating=parseInt(c[l].rating),t.lezioni[c[l].id_modulo].prezzo=parseInt(c[l].prezzo),t.lezioni[c[l].id_modulo].numero_domande=parseInt(c[l].numero_domande),t.lezioni[c[l].id_modulo].slides=[],console.log(t.lezioni[c[l].id_modulo]),0==l&&(t.lezioni[c[l].id_modulo].first=!0,t.selectedLezione=c[l].id_modulo)});return function(a,l,c){return o.apply(this,arguments)}}()),0==t.lezioni.length&&(yield t.aggiungiModulo(),t.refresh()),console.log("lezioni:",t.lezioni),console.log("selectedLezione:",t.selectedLezione)})()}isOver(){return window.matchMedia("(max-width: 960px)").matches}calculateHeight(){return window.innerHeight-450}onSelect(t){this.selectedLezione=t,this.lezioni[t].quiz_on=!0}onSelectQuiz(t){this.selectedLezione=t,this.lezioni[t].quiz_on=!0}checkFiles(t=!0){}autosaveTitoloModulo(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("aggiornaTitoloModulo",{id_modulo:t.id_modulo,titolo:t.titolo});o&&n._snackBar.open(o,"chiudi")})()}autosavePrezzoModulo(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("aggiornaPrezzoModulo",{id_modulo:t.id_modulo,prezzo:t.prezzo});o&&n._snackBar.open(o,"chiudi")})()}autosaveNumeroDomandeEsame(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("autosaveNumeroDomandeEsame",{id_esame:n.id_esame,numero_domande:t.numero_domande});o&&n._snackBar.open(o,"chiudi")})()}autosaveRatingEsame(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("autosaveRatingEsame",{id_esame:n.id_esame,rating:t.rating});o&&n._snackBar.open(o,"chiudi")})()}autosaveTimeQuizLezione(t){var n=this;return(0,m.A)(function*(){console.log(t);let o="";console.log("Save time"),console.log(t),o=yield n.api.call("aggiornaTimeModuloEsame",{id_modulo:t.id_modulo,time:t.time}),o&&n._snackBar.open(o,"chiudi")})()}autosaveDisabilitaNavigazioneLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].disabilita_navigazione=0==t.lezioni[t.selectedLezione].disabilita_navigazione?1:0;let n=yield t.api.call("autosaveDisabilitaNavigazioneLezione",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,disabilita_navigazione:t.lezioni[t.selectedLezione].disabilita_navigazione});n&&t._snackBar.open(n,"chiudi")})()}autosaveEsameLiberoCorso(){var t=this;return(0,m.A)(function*(){t.corso.erogazione=0==t.corso.erogazione?1:0;let n=yield t.api.call("autosaveEsameLiberoCorso",{id_esame:t.corso.id_esame,esame_libero:t.corso.erogazione});n&&(t._snackBar.open(n,"chiudi"),t.selectFirt())})()}autosaveScorrimentoAutomaticoSlideLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].scorrimento_automatico_slide=0===t.lezioni[t.selectedLezione].scorrimento_automatico_slide?1:0;let n=yield t.api.call("autosaveScorrimentoAutomaticoSlideLezione",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,scorrimento_automatico_slide:t.lezioni[t.selectedLezione].scorrimento_automatico_slide});n&&t._snackBar.open(n,"chiudi")})()}autosaveTimerComeVideoLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].timer_come_video=0===t.lezioni[t.selectedLezione].timer_come_video?1:0;let n=yield t.api.call("autosaveTimerComeVideoLezione",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,timer_come_video:t.lezioni[t.selectedLezione].timer_come_video});n&&t._snackBar.open(n,"chiudi")})()}autosaveTipologiaCorso(){var t=this;return(0,m.A)(function*(){t.corso.tipologia=0===t.corso.tipologia?1:0;let n=yield t.api.call("autosaveTipologiaCorso",{id_corso:t.corso.id_corso,tipologia:t.corso.tipologia});n&&t._snackBar.open(n,"chiudi")})()}autosaveTimerSlideLezione(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("aggiornaTimerSlideLezioneCorso",{id_lezione:t.id_lezione,timer_slide:t.timer_slide});o&&n._snackBar.open(o,"chiudi")})()}autosaveDomandaLezione(t){var n=this;return(0,m.A)(function*(){let a=yield n.api.call("aggiornaDomandaEsameCorso",{id_domanda:t.id_domanda,domanda:t.domanda});a&&n._snackBar.open(a,"chiudi")})()}autosaveRispostaDomandaLezioneCorretta(t,n,o){var a=this;return(0,m.A)(function*(){let c=yield a.api.call("autosaveRispostaDomandaEsameCorretta",{id_domanda:t,id_risposta:n});c&&(o.check_risposta_corretta_inserita=!0,a.lezioni[a.selectedLezione].domande_senza_risposta>0&&a.lezioni[a.selectedLezione].domande_senza_risposta--,a._snackBar.open(c,"chiudi"))})()}autosaveDomandaEsame(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("aggiornaDomandaEsameCorso",{id_domanda:t.id_domanda,domanda:t.domanda});o&&n._snackBar.open(o,"chiudi")})()}autosaveRispostaLezione(t){var n=this;return(0,m.A)(function*(){let a=yield n.api.call("aggiornaRispostaEsameCorso",{id_risposta:t.id_risposta,risposta:t.risposta,corretta:t.corretta});a&&n._snackBar.open(a,"chiudi")})()}autosaveRispostaEsame(t){var n=this;return(0,m.A)(function*(){let o=yield n.api.call("aggiornaRispostaEsameCorso",{id_domanda:t.id_risposta,risposta:t.risposta,corretta:t.corretta});o&&n._snackBar.open(o,"chiudi")})()}autosaveOggettoLezione(t){var n=this;return(0,m.A)(function*(){t&&t.subject&&(yield n.api.call("aggiornaOggettoLezione",{id_lezione:t.id_lezione,subject:t.subject}))&&n._snackBar.open("Aggiornameto contenuto lezione riuscito!","chiudi")})()}autosaveOggettoModulo(t){var n=this;return(0,m.A)(function*(){t&&t.subject&&(yield n.api.call("aggiornaOggettoModulo",{id_modulo:t.id_modulo,subject:t.subject}))&&n._snackBar.open("Aggiornameto contenuto modulo riuscito!","chiudi")})()}autosaveQuizLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].quiz=!t.lezioni[t.selectedLezione].quiz;let n=yield t.api.call("aggiornaQuizLezioneCorso",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,quiz:t.lezioni[t.selectedLezione].quiz});n&&t._snackBar.open(n,"chiudi")})()}autosaveImageLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].image=!t.lezioni[t.selectedLezione].image;let n=yield t.api.call("aggiornaImageLezioneCorso",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,image:t.lezioni[t.selectedLezione].image});n&&t._snackBar.open(n,"chiudi")})()}autosaveVideoLezione(){var t=this;return(0,m.A)(function*(){t.lezioni[t.selectedLezione].video=!t.lezioni[t.selectedLezione].video;let n=yield t.api.call("aggiornaVideoLezioneCorso",{id_lezione:t.lezioni[t.selectedLezione].id_lezione,video:t.lezioni[t.selectedLezione].video});n&&t._snackBar.open(n,"chiudi")})()}aggiornaSlide(){var t=this;return(0,m.A)(function*(){let n=JSON.stringify(t.lezioni[t.selectedLezione].slides);(yield t.api.call("updateSlideLezione",{image_url:n,id_lezione:t.lezioni[t.selectedLezione].id_lezione},!1,!0))&&t._snackBar.open("Slides aggiornate con successo!","chiudi")})()}drop(t){var n=this;return(0,m.A)(function*(){(0,Z.HD)(n.lezioni[n.selectedLezione].slides,t.previousIndex,t.currentIndex),n.lezioni[n.selectedLezione].slides.forEach(function(){var o=(0,m.A)(function*(a,l,c){n.lezioni[n.selectedLezione].slides[l].posizione=l});return function(a,l,c){return o.apply(this,arguments)}}()),yield n.aggiornaSlide()})()}aggiungiDomanda(t){var n=this;return(0,m.A)(function*(){if(yield n.api.call("aggiungiDomandaEsame",{id_modulo:n.lezioni[n.selectedLezione].id_modulo},!1,!1)){n._snackBar.open("Nuova domanda dell'esame inserita!","chiudi");let a=n.selectedLezione;yield n.refresh(),n.selectedLezione=a}})()}aggiungiModulo(){var t=this;return(0,m.A)(function*(){(yield t.api.call("aggiungiModuloEsame",{id_esame:t.id_esame},!1,!1))&&(t._snackBar.open("Nuova modulo dell'esame inserito!","chiudi"),yield t.refresh())})()}selectFirt(){var t=this;this.lezioni.forEach(function(){var n=(0,m.A)(function*(o,a,l){0==a&&(l[a].first=!0,t.selectedLezione=l[a].id_lezione)});return function(o,a,l){return n.apply(this,arguments)}}())}rimuoviImageLezione(t,n){var o=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare l'immagine?").afterClosed().subscribe(function(){var l=(0,m.A)(function*(c){c&&(o.lezioni[o.selectedLezione].slides.splice(n,1),(yield o.api.call("updateSlideLezione",{id_lezione:t,image_url:JSON.stringify(o.lezioni[o.selectedLezione].slides)},!1,!1))&&o._snackBar.open("Immagine Cancellata!","chiudi"))});return function(c){return l.apply(this,arguments)}}())}cancellaDomanda(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare la domanda? L'azione \xe8 inreversibile e verranno cancellate tutte le risposte associate").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){if(l&&(yield n.api.call("rimuoviDomandaLezione",{id_domanda:t},!1,!1))){n._snackBar.open("Domanda Cancellata!","chiudi");let _=n.selectedLezione,E=n.lezioni[n.selectedLezione].quiz_on;yield n.refresh(),n.selectedLezione=_,n.lezioni[n.selectedLezione].quiz_on=E}});return function(l){return a.apply(this,arguments)}}())}cancellaDomandaEsame(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare la domanda? L'azione \xe8 inreversibile e verranno cancellate tutte le risposte associate").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){if(l&&(yield n.api.call("rimuoviDomandaEsame",{id_domanda:t},!1,!1))){n._snackBar.open("Domanda Cancellata!","chiudi");let _=n.selectedLezione,E=n.lezioni[n.selectedLezione].quiz_on;yield n.refresh(),n.selectedLezione=_,n.lezioni[n.selectedLezione].quiz_on=E}});return function(l){return a.apply(this,arguments)}}())}cancellaModuloEsame(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare il modulo? L'azione \xe8 inreversibile e verranno cancellate tutte le domande e risposte associate").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("rimuoviModuloEsame",{id_modulo:t},!1,!1))&&(n._snackBar.open("Modulo Cancellato!","chiudi"),yield n.refresh())});return function(l){return a.apply(this,arguments)}}())}cancellaLezione(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare la lezione? L'azione \xe8 inreversibile e verr\xe0 cancellato l'eventuale quiz associato").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaLezioneCorso",{id_lezione:t},!1,!1))&&(n._snackBar.open("Lezione Cancellata!","chiudi"),yield n.refresh())});return function(l){return a.apply(this,arguments)}}())}cancellaVideoLezione(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare il video della lezione? L'azione \xe8 inreversibile ").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaVideoLezione",{id_lezione:t},!1,!1))&&(n._snackBar.open("Video Lezione Cancellato!","chiudi"),yield n.refresh())});return function(l){return a.apply(this,arguments)}}())}cancellaQuiz(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare il quiz della lezione?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("cancellaQuizLezioneCorso",{id_lezione:t},!1,!1))&&(n._snackBar.open("Quiz lezione cancellato!","chiudi"),yield n.refresh())});return function(l){return a.apply(this,arguments)}}())}deleteFileLezione(t){var n=this;this.settings.openDialogElimina("Sei sicuro di voler cancellare il filedella lezione?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("deleteFileLezione",{id_lezione:n.lezioni[n.selectedLezione].id_lezione,filename:t},!1,!1))&&(n._snackBar.open("File della lezione cancellato!","chiudi"),n.lezioni[n.selectedLezione].files_url=yield n.api.call("getFilesLezione",{id_lezione:n.lezioni[n.selectedLezione].id_lezione}))});return function(l){return a.apply(this,arguments)}}())}setFiles(t,n="files"){var o=this;return(0,m.A)(function*(){yield o.caricaFiles(t,n)})()}caricaFiles(t,n){var o=this;return(0,m.A)(function*(){let a=yield o.api.call("uploadFilesLezione",{files:t,type:n,id_lezione:o.lezioni[o.selectedLezione].id_lezione},!1,!0);if(a){o._snackBar.open(a,"chiudi");let l=o.selectedLezione,c=o.lezioni[o.selectedLezione].quiz_on;yield o.refresh(),o.selectedLezione=l,o.lezioni[o.selectedLezione].quiz_on=c}})()}salva(){}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(v.W),e.rXU(j.P),e.rXU(h.Ix),e.rXU(h.nX),e.rXU(me.UG),e.rXU(de.up))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-crea-esame"]],viewQuery:function(n,o){if(1&n&&(e.GBs(qr,7),e.GBs(H.l,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.myInput=a.first),e.mGM(a=e.lsd())&&(o.fileUploaderComponent=a.first)}},hostBindings:function(n,o){1&n&&e.bIt("keydown.escape",function(l){return o.onEscapePressed(l)},!1,e.EBC)},standalone:!0,features:[e.Jv_([{provide:u.U$,useValue:{subscriptSizing:"dynamic"}}]),e.aNF],decls:2,vars:1,consts:[["chatnav",""],["menulezione","matMenu"],["num_domande","matMenu"],["rating","matMenu"],["timerquiz","matMenu"],["prezzo_modulo","matMenu"],[1,"rounded","bg-white","p-y-30","p-x-24","m-b-30","overflow-hidden"],[1,"d-flex","align-items-center","justify-content-between"],[1,"page-title","m-0","f-s-20","f-w-600"],[1,"mat-body-1","f-s-12"],[1,"d-flex","align-items-center"],["mat-icon-button","",1,"m-l-auto",3,"click","matTooltip"],[1,"icon-24","d-flex","align-items-center","attivo",3,"name"],[1,"bg-white",3,"ngClass"],[3,"open","close","mode","opened"],[1,"position-relative",2,"height","100%"],[1,"p-r-24","b-b-1"],[1,"d-flex","align-items-center","p-l-15","p-t-15","p-b-15"],[1,"chat-listing"],["role","listitem","lines","2",1,"p-l-0",3,"click"],["matListItemTitle","",1,"d-flex","align-items-center","p-l-0","p-b-4","h-100"],["mat-icon-button","",1,"d-flex","align-items-center","justify-content-center",3,"click"],["name","plus",1,"icon-24","d-flex","align-items-center"],[1,"m-l-8"],[1,"f-w-600","mat-subtitle-1","f-s-14","lh-sm"],[1,"no-shadow","chat-right-panel","bg-white","d-flex","align-items-center","p-y-8","b-b-1"],["mat-icon-button","",1,"m-r-10",3,"click"],["mat-icon-button","","matTooltip","Cancella Modulo",1,"d-flex","align-items-center","justify-content-center",2,"margin","0 auto"],[1,"d-flex","align-items-center","w-100"],[1,"mat-subtitle-1","f-s-16","f-w-600","m-b-0","m-l-8","w-100"],["appearance","outline","color","primary",1,"form-titolo-hide-error"],["matInput","","type","text",3,"ngModelChange","focusout","ngModel"],["x-position","before",1,"cardWithShadow"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"click"],["appearance","outline","color","primary",1,"w-100",2,"margin-bottom","5px"],[1,"mat-subtitle-2","f-w-600","m-b-8","d-block"],["matInput","","type","number","type","text",3,"ngModelChange","focusout","ngModel"],["matSuffix",""],["name","percentage",1,"icon-20","d-flex"],["mat-icon-button","","matTooltip","Imposta il costo in token del tentativo di questo modulo",1,"m-r-auto",3,"matMenuTriggerFor"],[1,"icon-24","d-flex","align-items-center",3,"name"],["mat-icon-button","","matTooltip","Full Screen",1,"m-r-auto"],["mat-icon-button","","matTooltip","Esci da Full Screen",1,"m-r-auto"],["mat-icon-button","",1,"m-l-auto",3,"matMenuTriggerFor"],[1,"position-relative","bg-white",3,"ngStyle"],[1,"chat-middle-box",2,"padding","0px !important"],[3,"ngModelChange","onBlur","init","apiKey","ngModel"],[1,"row","m-t-24","cont-lit",3,"ngStyle"],[1,"col-sm-12","text-center"],[1,"m-l-auto"],[1,"m-l-auto","text-error"],[1,"position-relative","bg-white",3,"style","ngStyle"],[1,"text-right","p-20"],["mat-button","","mat-flat-button","","color","primary",3,"click"],["role","listitem","lines","2",3,"click"],["matListItemTitle","",1,"d-flex","align-items-center","p-x-16","p-l-8","p-b-4","h-100"],[1,"f-s-14","m-t-4","m-b-0",2,"color","gray"],["role","listitem","lines","2",3,"bg-light-primary"],["matListItemTitle","",1,"d-flex","align-items-center","p-x-16","p-l-32","p-b-4","h-100"],["mat-icon-button","","matTooltip","Cancella Modulo",1,"d-flex","align-items-center","justify-content-center",2,"margin","0 auto",3,"click"],["name","trash",1,"icon-24","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Full Screen",1,"m-r-auto",3,"click"],["name","arrows-maximize",1,"icon-24","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Esci da Full Screen",1,"m-r-auto",3,"click"],["name","arrows-minimize",1,"icon-24","d-flex","align-items-center"],[1,"row","m-t-0",3,"ngStyle"],["mat-icon-button","","matTooltip","Cancella Domanda Quiz",1,"d-flex","align-items-center","justify-content-center",2,"margin","0 auto"],[1,"chat-middle-box","cont-lit",2,"padding","10px !important"],[1,"row","m-t-0"],[1,"col-sm-12"],["appearance","outline","color","primary",1,"w-100"],["matInput","","type","text","type","text",3,"ngModelChange","focusout","ngModel","errorStateMatcher"],[1,"row"],["mat-icon-button","","matTooltip","Cancella Domanda Quiz",1,"d-flex","align-items-center","justify-content-center",2,"margin","0 auto",3,"click"],[1,"text-error"],[1,"col-sm-1"],[1,"col-sm-8"],[1,"col-sm-3","text-left"],["appearance","outline","color","primary",1,"w-100","p-t-20","p-l-10",3,"formControl","name"],["value","true",3,"click","checked"]],template:function(n,o){1&n&&e.DNE(0,cs,102,49)(1,ms,1,0),2&n&&e.vxM(o.corso&&o.corso.id_esame&&o.lezioni[o.selectedLezione]?0:1)},dependencies:[k.G,u.rl,u.nJ,u.yw,w.fg,G.VT,G._g,P.kk,P.fb,P.Cp,K.LG,K.US,U.KQ,p.RN,p.m2,N.q,L._L,L.YE,L.yE,C.It,C.iY,x.An,V.oV,ne.g7,B.Id,B.Yh,G.Wk,V.uc,g.MD,g.YU,g.B3,L.Fg,p.Hu,ce.xn,x.m_,z.X4,z.Jc,S.RI,u.RG,I.mV,$.Ve,w.fS,C.Hl,s.X1,s.me,s.BC,s.l_,s.YN,s.vS],styles:[".chat-list[_ngcontent-%COMP%]{overflow:hidden;box-sizing:border-box;width:100%;margin-bottom:1rem;display:flex}.chat-list.even[_ngcontent-%COMP%]{-moz-justify-content:flex-end;justify-content:flex-end;text-align:right}.chat-app[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%]{width:320px}.chat-listing[_ngcontent-%COMP%] .mdc-list-item[_ngcontent-%COMP%]{height:75px;display:flex;align-items:center}.attivo[_ngcontent-%COMP%]{color:#ffb22b}.example-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;max-width:100%;gap:15px;padding:15px;min-height:60px;border-radius:4px;overflow:hidden}.example-box[_ngcontent-%COMP%]{padding:20px 10px;border:solid 1px #ccc;border-radius:4px;color:#000000de;display:inline-block;box-sizing:border-box;cursor:move;background:#fff;text-align:center;font-size:14px;width:31%}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}iframe[_ngcontent-%COMP%]{width:100%;height:100%;border:none}.p-input[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px;padding-top:10px}.fullscreen[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;background-color:#000c;display:flex}"]})}}return i})();const _s=()=>["/formatori/esami_custom/aggiungi-esame"],us=()=>[5,8,10],fs=i=>({background:i,width:"20px",height:"20px"}),pe=i=>["/formatori/esami_custom/visualizza-esame/",i],gs=i=>["/formatori/esami_custom/editor-esame/",i],Cs=i=>["/formatori/esami_custom/modifica-esame/",i];function hs(i,r){1&i&&(e.j41(0,"th",30),e.EFF(1," Esame "),e.k0s())}function zs(i,r){if(1&i&&(e.j41(0,"td",31)(1,"div",32),e.nrm(2,"div",33),e.j41(3,"div",34)(4,"h6",35)(5,"a",36),e.EFF(6),e.nI1(7,"titlecase"),e.k0s()(),e.j41(8,"div",37),e.EFF(9),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Aen(e.eq3(7,fs,t.colore)),e.R7$(3),e.Y8G("routerLink",e.eq3(9,pe,t.id_esame)),e.R7$(),e.JRh(e.bMT(7,5,t.titolo)),e.R7$(3),e.SpI(" ",t.categoria," ")}}function Fs(i,r){1&i&&(e.j41(0,"th",38),e.EFF(1," Stato "),e.k0s())}function vs(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG();return e.Njj(a.cambiaStato(o))}),e.j41(1,"span",42),e.EFF(2,"DISABILITATO"),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.Mz_("matTooltip","",0==t.attivo?"Attiva":"Disattiva"," Corso")}}function bs(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG();return e.Njj(a.cambiaStato(o))}),e.j41(1,"span",43),e.EFF(2,"ATTIVO"),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.Mz_("matTooltip","",0==t.attivo?"Attiva":"Disattiva"," Corso")}}function Es(i,r){if(1&i&&(e.j41(0,"td",31)(1,"div",32)(2,"div",39),e.DNE(3,vs,3,2,"button",40)(4,bs,3,2,"button",40),e.k0s()()()),2&i){const t=r.$implicit;e.R7$(3),e.vxM(0==t.attivo?3:4)}}function ks(i,r){1&i&&(e.j41(0,"th",44),e.EFF(1," Moduli "),e.k0s())}function js(i,r){if(1&i&&(e.j41(0,"td",45)(1,"span",46),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_moduli," ")}}function xs(i,r){1&i&&(e.j41(0,"th",47),e.EFF(1," Erogazione "),e.k0s())}function ws(i,r){if(1&i&&(e.j41(0,"td",45)(1,"span",48),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.erogazione&&0!=t.erogazione?"SESSIONE":"LIBERA"," ")}}function As(i,r){1&i&&(e.j41(0,"th",49),e.EFF(1," Iscritti "),e.k0s())}function ys(i,r){if(1&i&&(e.j41(0,"td",45)(1,"span",46),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_iscritti," ")}}function Rs(i,r){1&i&&(e.j41(0,"th",50),e.EFF(1," Sessioni "),e.k0s())}function Ms(i,r){if(1&i&&(e.j41(0,"td",45)(1,"span",51),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_sessioni," ")}}function Ts(i,r){1&i&&(e.j41(0,"th",52),e.EFF(1," Azioni "),e.k0s())}function Ds(i,r){if(1&i){const t=e.RV6();e.j41(0,"td",45)(1,"a",53),e.nrm(2,"i-tabler",54),e.k0s(),e.j41(3,"a",55),e.nrm(4,"i-tabler",56),e.k0s(),e.j41(5,"a",57),e.nrm(6,"i-tabler",58),e.k0s(),e.j41(7,"button",59),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG();return e.Njj(a.cancellaCorso(o.id_esame))}),e.nrm(8,"i-tabler",60),e.k0s()()}if(2&i){const t=r.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(3,pe,t.id_esame)),e.R7$(2),e.Y8G("routerLink",e.eq3(5,gs,t.id_esame)),e.R7$(2),e.Y8G("routerLink",e.eq3(7,Cs,t.id_esame))}}function Ss(i,r){1&i&&e.nrm(0,"tr",61)}function $s(i,r){1&i&&e.nrm(0,"tr",62)}let Is=(()=>{class i{constructor(t,n,o){this.api=n,this.settings=o,this.displayedColumns=["Corso","Stato","Erogazione","Moduli","Iscritti","Azioni"],this.sort=Object.create(null),this.paginator=Object.create(null)}ngOnInit(){var t=this;return(0,m.A)(function*(){t.refresh()})()}refresh(){var t=this;return(0,m.A)(function*(){t.utenti=yield t.api.call("getEsamiCustom"),t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})()}filter(t){this.dataSource.filter=t.trim().toLowerCase()}cancellaCorso(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellare il corso, verranno cancellate tutte le edizioni dei centri associate al corso, tutte le iscrizioni utenti, etc.?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("deleteEsame",{id_esame:t},!0),n.refresh())});return function(l){return a.apply(this,arguments)}}())})()}cambiaStato(t){var n=this;return(0,m.A)(function*(){let o=1==t.attivo?0:1;yield n.api.call("cambiaStatoEsame",{id_esame:t.id_esame,stato:o},!0),n.refresh()})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(Q.QP),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-esami"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.aNF],decls:39,vars:7,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,"col-sm-4","d-flex","align-items-center","justify-content-end"],["mat-button","","mat-flat-button","","color","primary",3,"routerLink"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Corso"],["mat-header-cell","","mat-sort-header","titolo","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["mat-cell","","class","p-l-0",4,"matCellDef"],["matColumnDef","Stato"],["mat-header-cell","","mat-sort-header","attivo","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["matColumnDef","Moduli"],["mat-header-cell","","mat-sort-header","totale_moduli","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Erogazione"],["mat-header-cell","","mat-sort-header","erogazione","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Iscritti"],["mat-header-cell","","mat-sort-header","totale_iscritti","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Sessioni"],["mat-header-cell","","mat-sort-header","affiliato_nome","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","titolo",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","attivo",1,"f-w-600","mat-subtitle-1","f-s-14","p-l-0"],[1,"m-0"],["mat-button","",3,"matTooltip"],["mat-button","",3,"click","matTooltip"],[1,"bg-error","text-white","rounded","f-w-600","p-6","f-s-10"],[1,"bg-success","text-white","rounded","f-w-600","p-6","f-s-10"],["mat-header-cell","","mat-sort-header","totale_moduli",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-cell",""],[1,"bg-light-primary","text-primary","rounded","f-w-600","p-6","p-y-4","f-s-12"],["mat-header-cell","","mat-sort-header","erogazione",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","","mat-sort-header","totale_iscritti",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-header-cell","","mat-sort-header","affiliato_nome",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"bg-light-accent","text-accent","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-icon-button","","matTooltip","Visualizza Scheda Esame",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","settings-2",1,"icon-18","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Configuratore Esame",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","wand",1,"icon-18","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Modifica Informazioni Esame",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","edit",1,"icon-18","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Cancella Esame",1,"d-flex","align-items-center","justify-content-center",3,"click"],["name","trash",1,"icon-18","d-flex","align-items-center"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"input",4),e.bIt("keyup",function(l){return o.filter(l.target.value)}),e.k0s(),e.j41(6,"mat-icon",5),e.nrm(7,"i-tabler",6),e.k0s()()(),e.j41(8,"div",7)(9,"a",8),e.EFF(10,"Aggiungi Esame"),e.k0s()()()()(),e.j41(11,"mat-card",0)(12,"mat-card-content")(13,"div",9)(14,"table",10),e.qex(15,11),e.DNE(16,hs,2,0,"th",12)(17,zs,10,11,"td",13),e.bVm(),e.qex(18,14),e.DNE(19,Fs,2,0,"th",15)(20,Es,5,1,"td",13),e.bVm(),e.qex(21,16),e.DNE(22,ks,2,0,"th",17)(23,js,3,1,"td",18),e.bVm(),e.qex(24,19),e.DNE(25,xs,2,0,"th",20)(26,ws,3,1,"td",18),e.bVm(),e.qex(27,21),e.DNE(28,As,2,0,"th",22)(29,ys,3,1,"td",18),e.bVm(),e.qex(30,23),e.DNE(31,Rs,2,0,"th",24)(32,Ms,3,1,"td",18),e.bVm(),e.qex(33,25),e.DNE(34,Ts,2,0,"th",26)(35,Ds,9,9,"td",18),e.bVm(),e.DNE(36,Ss,1,0,"tr",27)(37,$s,1,0,"tr",28),e.k0s(),e.nrm(38,"mat-paginator",29),e.k0s()()()),2&n&&(e.R7$(9),e.Y8G("routerLink",e.lJ4(5,_s)),e.R7$(5),e.Y8G("dataSource",o.dataSource),e.R7$(22),e.Y8G("matHeaderRowDef",o.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",o.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(6,us)))},dependencies:[k.G,u.rl,u.yw,w.fg,p.RN,p.m2,C.It,C.$z,C.pQ,C.iY,x.An,V.oV,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,d.tP,g.MD,g.PV,p.Hu,h.iI,h.Wk,z.X4,z.Jc],encapsulation:2})}}return i})();const Vs=()=>["/formatori/corsi_custom/aggiungi-corso"],Ls=()=>[5,8,10],Gs=i=>({background:i,width:"20px",height:"20px"}),_e=i=>["/formatori/corsi_custom/visualizza-corso/",i],Ns=i=>["/formatori/corsi_custom/editor-corso/",i],Xs=i=>["/formatori/corsi_custom/modifica-corso/",i];function Bs(i,r){1&i&&(e.j41(0,"th",30),e.EFF(1," Corso "),e.k0s())}function Os(i,r){if(1&i&&(e.j41(0,"td",31)(1,"div",32),e.nrm(2,"div",33),e.j41(3,"div",34)(4,"h6",35)(5,"a",36),e.EFF(6),e.nI1(7,"titlecase"),e.k0s()(),e.j41(8,"div",37),e.EFF(9),e.k0s()()()()),2&i){const t=r.$implicit;e.R7$(2),e.Aen(e.eq3(7,Gs,t.colore)),e.R7$(3),e.Y8G("routerLink",e.eq3(9,_e,t.id_corso)),e.R7$(),e.JRh(e.bMT(7,5,t.titolo)),e.R7$(3),e.SpI(" ",t.categoria," ")}}function Ys(i,r){1&i&&(e.j41(0,"th",38),e.EFF(1," Stato "),e.k0s())}function qs(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG();return e.Njj(a.cambiaStato(o))}),e.j41(1,"span",42),e.EFF(2,"DISABILITATO"),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.Mz_("matTooltip","",0==t.attivo?"Attiva":"Disattiva"," Corso")}}function Ps(i,r){if(1&i){const t=e.RV6();e.j41(0,"button",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,a=e.XpG();return e.Njj(a.cambiaStato(o))}),e.j41(1,"span",43),e.EFF(2,"ATTIVO"),e.k0s()()}if(2&i){const t=e.XpG().$implicit;e.Mz_("matTooltip","",0==t.attivo?"Attiva":"Disattiva"," Corso")}}function Js(i,r){if(1&i&&(e.j41(0,"td",31)(1,"div",32)(2,"div",39),e.DNE(3,qs,3,2,"button",40)(4,Ps,3,2,"button",40),e.k0s()()()),2&i){const t=r.$implicit;e.R7$(3),e.vxM(0==t.attivo?3:4)}}function Us(i,r){1&i&&(e.j41(0,"th",44),e.EFF(1," Erogazione "),e.k0s())}function Hs(i,r){if(1&i&&(e.j41(0,"td",45)(1,"span",46),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.erogazione&&0!=t.erogazione?"EDIZIONE":"LIBERA"," ")}}function Qs(i,r){1&i&&(e.j41(0,"th",47),e.EFF(1," Esame "),e.k0s())}function Ws(i,r){if(1&i&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",1==t.esame_libero?"Esame Libero":"Esame in sessione"," ")}}function Zs(i,r){if(1&i&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&i){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",1==t.esame_attivo?"Esame Previsto":"Esame non previsto"," ")}}function Ks(i,r){if(1&i&&(e.j41(0,"td",45),e.DNE(1,Ws,2,1,"span",48)(2,Zs,2,1,"span",48),e.k0s()),2&i){const t=r.$implicit;e.R7$(),e.vxM(1==t.esame_attivo?1:2)}}function el(i,r){1&i&&(e.j41(0,"th",49),e.EFF(1," Iscritti "),e.k0s())}function tl(i,r){if(1&i&&(e.j41(0,"td",45)(1,"span",48),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_iscritti," ")}}function il(i,r){1&i&&(e.j41(0,"th",50),e.EFF(1," Edizioni "),e.k0s())}function ol(i,r){if(1&i&&(e.j41(0,"td",45)(1,"span",51),e.EFF(2),e.k0s()()),2&i){const t=r.$implicit;e.R7$(2),e.SpI(" ",t.totale_sessioni," ")}}function nl(i,r){1&i&&(e.j41(0,"th",52),e.EFF(1," Azioni "),e.k0s())}function al(i,r){if(1&i){const t=e.RV6();e.j41(0,"td",45)(1,"div",53)(2,"div",54)(3,"a",55),e.nrm(4,"i-tabler",56),e.k0s()(),e.j41(5,"div",57)(6,"a",58),e.nrm(7,"i-tabler",59),e.k0s(),e.j41(8,"a",60),e.nrm(9,"i-tabler",61),e.k0s(),e.j41(10,"button",62),e.bIt("click",function(){const o=e.eBV(t).$implicit,a=e.XpG();return e.Njj(a.cancellaCorso(o.id_corso))}),e.nrm(11,"i-tabler",63),e.k0s()()()()}if(2&i){const t=r.$implicit;e.R7$(3),e.Y8G("routerLink",e.eq3(3,_e,t.id_corso)),e.R7$(3),e.Y8G("routerLink",e.eq3(5,Ns,t.id_corso)),e.R7$(2),e.Y8G("routerLink",e.eq3(7,Xs,t.id_corso))}}function rl(i,r){1&i&&e.nrm(0,"tr",64)}function sl(i,r){1&i&&e.nrm(0,"tr",65)}const ll=[{path:"home",canActivate:[A],component:ke,data:{title:"Dashboard"}},{path:"anagrafica",canActivate:[A],component:He,data:{title:"Anagrafica"}},{path:"sessioniesame",canActivate:[A],component:mt,data:{title:"Visualizza qui le sessioni di esame"}},{path:"sessioniesame/visualizza-sessioneesame/:id_sessione",canActivate:[A],component:Ht,data:{title:"Scheda Sessione Esame",padre:"/formatori/sessioniesame",padre_titolo:"Sessioni Esame"}},{path:"corsi",canActivate:[A],component:hi,data:{title:"Catalogo Corsi"}},{path:"corsi_custom",canActivate:[A],component:(()=>{class i{constructor(t,n,o){this.api=n,this.settings=o,this.displayedColumns=["Corso","Stato","Erogazione","Iscritti","Azioni"],this.sort=Object.create(null),this.paginator=Object.create(null)}ngOnInit(){var t=this;return(0,m.A)(function*(){t.refresh()})()}refresh(){var t=this;return(0,m.A)(function*(){t.utenti=yield t.api.call("getCorsiCustom"),t.dataSource=new d.I6(t.utenti),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})()}filter(t){this.dataSource.filter=t.trim().toLowerCase()}cancellaCorso(t){var n=this;return(0,m.A)(function*(){n.settings.openDialogElimina("Sei sicuro di voler cancellare il corso?").afterClosed().subscribe(function(){var a=(0,m.A)(function*(l){l&&(yield n.api.call("deleteCorso",{id_corso:t},!0),n.refresh())});return function(l){return a.apply(this,arguments)}}())})()}cambiaStato(t){var n=this;return(0,m.A)(function*(){let o=1==t.attivo?0:1;yield n.api.call("cambiaStatoCorso",{id_corso:t.id_corso,stato:o},!0),n.refresh()})()}static{this.\u0275fac=function(n){return new(n||i)(e.rXU(Q.QP),e.rXU(v.W),e.rXU(j.P))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["app-utenti"]],viewQuery:function(n,o){if(1&n&&(e.GBs(F.B4,5),e.GBs(y.iy,5)),2&n){let a;e.mGM(a=e.lsd())&&(o.sort=a.first),e.mGM(a=e.lsd())&&(o.paginator=a.first)}},standalone:!0,features:[e.aNF],decls:39,vars:7,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,"col-sm-4","d-flex","align-items-center","justify-content-end"],["mat-button","","mat-flat-button","","color","primary",3,"routerLink"],[1,"table-responsive","m-t-30"],["mat-table","","matSort","",1,"w-100",3,"dataSource"],["matColumnDef","Corso"],["mat-header-cell","","mat-sort-header","titolo","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["mat-cell","","class","p-l-0",4,"matCellDef"],["matColumnDef","Stato"],["mat-header-cell","","mat-sort-header","attivo","class","f-w-600 mat-subtitle-1 f-s-14 p-l-0",4,"matHeaderCellDef"],["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","Iscritti"],["mat-header-cell","","mat-sort-header","totale_iscritti","class","f-w-600 mat-subtitle-1 f-s-14",4,"matHeaderCellDef"],["matColumnDef","Sessioni"],["mat-header-cell","","mat-sort-header","affiliato_nome","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","titolo",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","attivo",1,"f-w-600","mat-subtitle-1","f-s-14","p-l-0"],[1,"m-0"],["mat-button","",3,"matTooltip"],["mat-button","",3,"click","matTooltip"],[1,"bg-error","text-white","rounded","f-w-600","p-6","f-s-10"],[1,"bg-success","text-white","rounded","f-w-600","p-6","f-s-10"],["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","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","totale_iscritti",1,"f-w-600","mat-subtitle-1","f-s-14"],["mat-header-cell","","mat-sort-header","affiliato_nome",1,"f-w-600","mat-subtitle-1","f-s-14"],[1,"bg-light-accent","text-accent","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"],[1,"row"],[1,"col-6","m-r-5"],["mat-icon-button","","matTooltip","Visualizza Scheda Corso",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","settings-2",1,"icon-18","d-flex","align-items-center"],[1,"col-6","m-l-5"],["mat-icon-button","","matTooltip","Configuratore Corso",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","wand",1,"icon-18","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Modifica Informazioni Corso",1,"d-flex","align-items-center","justify-content-center",3,"routerLink"],["name","edit",1,"icon-18","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Cancella Corso",1,"d-flex","align-items-center","justify-content-center",3,"click"],["name","trash",1,"icon-18","d-flex","align-items-center"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(e.j41(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"input",4),e.bIt("keyup",function(l){return o.filter(l.target.value)}),e.k0s(),e.j41(6,"mat-icon",5),e.nrm(7,"i-tabler",6),e.k0s()()(),e.j41(8,"div",7)(9,"a",8),e.EFF(10,"Aggiungi Corso"),e.k0s()()()()(),e.j41(11,"mat-card",0)(12,"mat-card-content")(13,"div",9)(14,"table",10),e.qex(15,11),e.DNE(16,Bs,2,0,"th",12)(17,Os,10,11,"td",13),e.bVm(),e.qex(18,14),e.DNE(19,Ys,2,0,"th",15)(20,Js,5,1,"td",13),e.bVm(),e.qex(21,16),e.DNE(22,Us,2,0,"th",17)(23,Hs,3,1,"td",18),e.bVm(),e.qex(24,19),e.DNE(25,Qs,2,0,"th",20)(26,Ks,3,1,"td",18),e.bVm(),e.qex(27,21),e.DNE(28,el,2,0,"th",22)(29,tl,3,1,"td",18),e.bVm(),e.qex(30,23),e.DNE(31,il,2,0,"th",24)(32,ol,3,1,"td",18),e.bVm(),e.qex(33,25),e.DNE(34,nl,2,0,"th",26)(35,al,12,9,"td",18),e.bVm(),e.DNE(36,rl,1,0,"tr",27)(37,sl,1,0,"tr",28),e.k0s(),e.nrm(38,"mat-paginator",29),e.k0s()()()),2&n&&(e.R7$(9),e.Y8G("routerLink",e.lJ4(5,Vs)),e.R7$(5),e.Y8G("dataSource",o.dataSource),e.R7$(22),e.Y8G("matHeaderRowDef",o.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",o.displayedColumns),e.R7$(),e.Y8G("pageSizeOptions",e.lJ4(6,Ls)))},dependencies:[k.G,u.rl,u.yw,w.fg,p.RN,p.m2,C.It,C.$z,C.pQ,C.iY,x.An,V.oV,y.iy,F.B4,F.aE,d.Zl,d.tL,d.ji,d.cC,d.YV,d.iL,d.KS,d.$R,d.YZ,d.NB,d.tP,g.MD,g.PV,p.Hu,h.iI,h.Wk,z.X4,z.Jc],encapsulation:2})}}return i})(),data:{title:"Corsi Pesonalizzati"}},{path:"corsi/visualizza-corso/:id_corso",canActivate:[A],component:Ki,data:{title:"Scheda Corso",padre:"/formatori/corsi",padre_titolo:"Corsi"}},{path:"corsi_custom/visualizza-corso/:id_corso",canActivate:[A],component:$o,data:{title:"Scheda Corso",padre:"/formatori/corsi_custom",padre_titolo:"Corsi Pesonalizzati"}},{path:"esami",canActivate:[A],component:_a,data:{title:"Certificazioni Personalizzate"}},{path:"esami_custom",canActivate:[A],component:Is,data:{title:"Catalogo Certificazioni"}},{path:"esami/visualizza-esame/:id_esame",canActivate:[A],component:Cn,data:{title:"Scheda Esame",padre:"/formatori/esami",padre_titolo:"Certificazioni"}},{path:"esami_custom/visualizza-esame/:id_esame",canActivate:[A],component:Zn,data:{title:"Scheda Esame",padre:"/formatori/esami",padre_titolo:"Certificazioni"}},{path:"corsi_custom/modifica-corso/:id",canActivate:[A],component:ka,data:{title:"Modifica Corso",padre:"/formatori/corsi_custom",padre_titolo:"Corsi"}},{path:"corsi_custom/aggiungi-corso",canActivate:[A],component:La,data:{title:"Aggiungi Corso",padre:"/formatori/corsi_custom",padre_titolo:"Corsi"}},{path:"corsi_custom/editor-corso/:id",canActivate:[A],component:br,data:{title:"Editor Corso",padre:"/formatori/corsi_custom",padre_titolo:"Corsi"}},{path:"esami_custom/modifica-esame/:id",canActivate:[A],component:Dr,data:{title:"Modifica Esame",padre:"/formatori/esami_custom",padre_titolo:"Certificazioni"}},{path:"esami_custom/aggiungi-esame",canActivate:[A],component:Yr,data:{title:"Aggiungi Esame",padre:"/formatori/esami_custom",padre_titolo:"Certificazioni"}},{path:"esami_custom/editor-esame/:id",canActivate:[A],component:ps,data:{title:"Editor Esame",padre:"/formatori/esami_custom",padre_titolo:"Certificazioni"}}]}}]);