PageSourceSearch

https://joinus.loccioni.com/it/4039.7b4c6c389d85f718.js

js loccioni.com collected 2026-10-03 23:34:53 UTC 58,875 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkLoccioni_IT_App_People=self.webpackChunkLoccioni_IT_App_People||[]).push([[4039],{9620:(H,M,l)=>{l.d(M,{R:()=>T});var E=l(177),u=l(9417),p=l(2394),g=l(881),m=l(3721),f=l(4438);let T=(()=>{class G{static#e=this.\u0275fac=function(S){return new(S||G)};static#t=this.\u0275mod=f.$C({type:G});static#o=this.\u0275inj=f.G2t({imports:[p.yi,u.YN,g.ol,m.h,E.MD]})}return G})()},4039:(H,M,l)=>{l.r(M),l.d(M,{TrainingPathModule:()=>Ke});var E=l(177),u=l(9417),p=l(4559),g=l(3384),m=l(881),f=l(2394),T=l(5393),G=l(9620),Q=l(3721),L=l(3410),S=l(8250),e=l(4438),$=l(6354),k=l(3880);class D{constructor(){this.id="",this.nameIta="",this.nameEng="",this.displayName="",this.active=!0,this.docTargets=!1,this.competencyTargets=[],this.marketProjectTargets=[],this.geographyTargets=[],this.collaborationTypeTargets=[],this.assignedModuleIds=[],this.trainingModulesCount=0}mapFromDTO(_){this.id=_.idTrainingPath,this.nameIta=_.nameIta,this.nameEng=_.nameEng,this.displayName=_.displayName,this.active=_.active,this.docTargets=_.docTargets,this.competencyTargets=_.competencyTargets||[],this.marketProjectTargets=_.marketProjectTargets||[],this.geographyTargets=_.geographyTargets||[],this.collaborationTypeTargets=_.collaborationTypeTargets||[],this.assignedModuleIds=_.assignedModuleIds||[],this.trainingModulesCount=this.assignedModuleIds.length}mapToSaveDTO(){return{nameIta:this.nameIta,nameEng:this.nameEng,active:this.active,docTargets:this.docTargets,competencyTargets:this.competencyTargets,marketProjectTargets:this.marketProjectTargets,geographyTargets:this.geographyTargets,collaborationTypeTargets:this.collaborationTypeTargets}}}class Z{constructor(){this.id="",this.displayName=""}mapFromDTO(_){this.id=_.id,this.displayName=_.displayName}}class ee{constructor(){this.moduleId="",this.eventId="",this.eventName="",this.participantHours=0,this.totalEventHours=0,this.hasCertificate=!1,this.isFutureEvent=!1,this.startDate="",this.endDate=""}get isFullyCompleted(){return this.participantHours>=this.totalEventHours}}class te{constructor(){this.personId="",this.name="",this.surname="",this.email="",this.collaborationType="",this.competency="",this.marketProject="",this.geography="",this.doc=!1,this.completedModules=[]}get fullName(){return`${this.surname} ${this.name}`}mapFromDTO(_){this.personId=_.personId,this.name=_.name,this.surname=_.surname,this.email=_.email,this.collaborationType=_.collaborationType,this.competency=_.competency,this.marketProject=_.marketProject,this.geography=_.geography,this.doc=_.doc,this.completedModules=(_.completedModules||[]).map(t=>{const n=new ee;return n.moduleId=t.moduleId,n.eventId=t.eventId,n.eventName=t.eventName,n.participantHours=t.participantHours,n.totalEventHours=t.totalEventHours,n.hasCertificate=t.hasCertificate,n.isFutureEvent=t.isFutureEvent,n.startDate=t.startDate,n.endDate=t.endD
1ate,n})}}var oe=l(1626),ne=l(2387);let b=(()=>{class a{constructor(t,n){this.httpClient=t,this.configuration=n,this.urlController="trainingPath"}getTrainingPath(t){return this.httpClient.get(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}`).pipe((0,$.T)(n=>{const o=new D;return o.mapFromDTO(n),o}))}addTrainingPath(t){return this.httpClient.post(`${this.configuration.getBaseUrl()}/${this.urlController}`,t)}updateTrainingPath(t,n){return this.httpClient.put(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}`,n)}deleteTrainingPath(t){return this.httpClient.delete(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}`)}search(t,n){const o=(0,k.v0)(t);return this.httpClient.post(`${this.configuration.getBaseUrl()}/${this.urlController}/search?${o}`,n)}searchDropDown(t,n,o=!1,i=!1){return this.httpClient.post(`${this.configuration.getBaseUrl()}/${this.urlController}/searchDropDown${t?`?filter=${t}`:""}${n&&n.length>0?`?ids=${n.join(",")}`:""}${i?`?selectAll=${i}`:""}`,o)}getAssignedModules(t){return this.httpClient.get(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/modules`)}searchAssignedModules(t,n){const o=(0,k.v0)(n);return this.httpClient.post(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/modules/search?${o}`,{})}assignModulesToPath(t,n){return this.httpClient.post(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/modules`,n)}removeModuleFromPath(t,n){return this.httpClient.delete(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/modules/${n}`)}reorderModules(t,n){return this.httpClient.post(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/modules/reorder`,n)}getTrainingGapsModules(t){return this.httpClient.get(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/gaps/modules`).pipe((0,$.T)(n=>n.map(o=>{const i=new Z;return i.mapFromDTO(o),i})))}getAvailableCollaboratorsForGaps(t,n,o){const i=(0,k.v0)(n);return this.httpClient.post(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/gaps/collaborators/search?${i}`,{filterByTargets:o}).pipe((0,$.T)(r=>({data:r.data.map(A=>{const d=new te;return d.mapFromDTO(A),d}),total:r.total})))}getAssignedCollaborators(t){return this.httpClient.get(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/gaps/collaborators`)}saveAssignedCollaborators(t,n){return this.httpClient.post(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/gaps/collaborators`,n)}removeAssignedCollaborator(t,n){return this.httpClient.delete(`${this.configuration.getBaseUrl()}/${this.urlController}/${t}/gaps/collaborators/${n}`)}static#e=this.\u0275fac=function(n){return new(n||a)(e.KVO(oe.Qq),e.KVO(ne.Vk))};static#t=this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const ae=()=>["new"],ie=()=>({"text-center":!0});function _e(a,_){if(1&a&&(e.j41(0,"span",14),e.EFF(1),e.k0s()),2&a){const t=_.$implicit;e.Y8G("title",t.nameIta),e.R7$(),e.JRh(t.nameIta)}}function re(a,_){if(1&a&&(e.j41(0,"span",14),e.EFF(1),e.k0s()),2&a){const t=_.$implicit;e.Y8G("title",t.nameEng),e.R7$(),e.JRh(t.nameEng)}}function le(a,_){1&a&&e.nrm(0,"input",15),2&a&&e.Y8G("checked",_.$implicit.active)}function se(a,_){if(1&a){const t=e.RV6();e.j41(0,"div",16)(1,"button",17),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.onEditHandler(o))}),e.nrm(2,"i",18),e.k0s(),e.j41(3,"button",19),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.deleteTrainingPath(o))}),e.nrm(4,"i",20),e.k0s(),e.j41(5,"button",21),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.onModulesHandler(o))}),e.nrm(6,"i",22),e.k0s(),e.j41(7,"button",23),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.onTrainingGapsHandler(o))}),e.nrm(8,"i",24),e.k0s()()}}let Te=(()=>{class a extends T.HU{constructor(t,n){super(),this.route=t,this.trainingPathService=n,this.gridItems={data:[],total:0},this.gridloading=!1,this.state={skip:0,take:10,filter:{logic:"and",filters:[]},sort:[{field:"nameEng",dir:"asc"}]},this.componentName="ListTrainingPath"}ngOnInit(){super.ngOnInit(),this.loadGridData()}onDataStateChange(t){this.state=t,this.loadGridData()}loadGridData(){this.gridloading=!0,this.trainingPathService.search(this.state,!1).subscribe({next:t=>{this.gridItems=t,this.gridloading=!1,this.markForCheck()},error:t=>{this.gridloading=!1,this.showErrorNotification(S.S.FormatOriginalError(t)),console.error(`loadGridData: ${this.componentName}`,t.message),this.markForCheck()}})}onEditHandler(t){this.router.navigate(["edit",t.id],{relativeTo:this.route})}onModulesHandler(t){this.router.navigate([t.id,"modules"],{relativeTo:this.route})}onTrainingGapsHandler(t){this.router.navigate([t.id,"gaps"],{relativeTo:this.route})}deleteTrainingPath(t){const n={title:"Conferma cancellazione",message:"Sei sicuro di voler cancellare '" + t.nameEng + "'?",icon:"fontaulos fontaulos-attention",width:L.hB.Medium,actions:[{label:"Si",class:"btn-primary",callback:()=>{this.busy=!0,this.trainingPathService.deleteTrainingPath(t.id).subscribe({next:()=>{this.busy=!1,this.loadGridData(),this.showPrimaryNotification("Percorso formativo cancellato ")},error:o=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(o)),console.error(`deleteTrainingPath: ${this.componentName}`,o.message)}})}},{label:"No"}]};this.showDialog({options:n}).result.subscribe()}static#e=this.\u0275fac=function(n){return new(n||a)(e.rXU(p.nX),e.rXU(b))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["people-list-training-path-container"]],features:[e.Vt3],decls:23,vars:20,consts:()=>{let t,n,o,i,r,A,d,R,O,h,c;return t="ID",n="Nome Ita",o="Nome Ing",i="Attivo",r="Comando",A="Percorsi Formativi",d="Aggiungi nuovo elmento",R="Modifica",O="Elimina",h="Gestione Moduli",c="Gap Formativi",[A,d,[3,"showTitle"],[1,"mt-2","col-12","mx-auto"],[1,"mt-2","mb-4","text-primary","fw-bold"],[1,"text-primary","fw-bold","d-inline",2,"cursor","pointer",3,"routerLink"],[1,"fontaulos","fontaulos-add","me-1"],[3,"dataStateChange","data","pageSize","skip","filter","pageable","filterable","sortable","loading","sort"],["field","id","title",t,3,"filterable","width"],["field","nameIta","title",n],["kendoGridCellTemplate",""],["field","nameEng","title",o],["field","active","title",i,"filter","boolean",3,"width"],["title",r,3,"width"],[3,"title"],["type","checkbox","disabled","true",3,"checked"],[1,"d-flex","m-1"],["title",R,1,"btn","btn-trans
1parent","btn-icon","ms-1",3,"click"],[1,"fontaulos","fontaulos-edit","text-primary","fw-bold"],["title",O,1,"btn","btn-transparent","btn-icon","ms-1",3,"click"],[1,"fontaulos","fontaulos-delete","text-primary","fw-bold"],["title",h,1,"btn","btn-transparent","btn-icon","ms-1",3,"click"],[1,"fontaulos","fontaulos-hamburger-menu","text-primary","fw-bold"],["title",c,1,"btn","btn-transparent","btn-icon","ms-1",3,"click"],[1,"fontaulos","fontaulos-users","text-primary","fw-bold"]]},template:function(n,o){1&n&&(e.j41(0,"aulos-container-layout",2)(1,"aulos-container-content")(2,"aulos-module-layout",2)(3,"aulos-module-content")(4,"div",3)(5,"h1",4),e.qex(6),e.pXf(7,0),e.bVm(),e.k0s(),e.j41(8,"h5",5),e.nrm(9,"i",6),e.j41(10,"span"),e.qex(11),e.pXf(12,1),e.bVm(),e.k0s()(),e.j41(13,"kendo-grid",7),e.bIt("dataStateChange",function(r){return o.onDataStateChange(r)}),e.nrm(14,"kendo-grid-column",8),e.j41(15,"kendo-grid-column",9),e.DNE(16,_e,2,2,"ng-template",10),e.k0s(),e.j41(17,"kendo-grid-column",11),e.DNE(18,re,2,2,"ng-template",10),e.k0s(),e.j41(19,"kendo-grid-column",12),e.DNE(20,le,1,1,"ng-template",10),e.k0s(),e.j41(21,"kendo-grid-command-column",13),e.DNE(22,se,9,0,"ng-template",10),e.k0s()()()()()()()),2&n&&(e.Y8G("showTitle",!1),e.R7$(2),e.Y8G("showTitle",!1),e.R7$(6),e.Y8G("routerLink",e.lJ4(18,ae)),e.R7$(5),e.Y8G("data",o.gridItems)("pageSize",o.state.take)("skip",o.state.skip)("filter",o.state.filter)("pageable",!0)("filterable",!0)("sortable",!0)("loading",o.gridloading)("sort",o.state.sort),e.R7$(),e.Y8G("filterable",!1)("width",160),e.R7$(5),e.HbH(e.lJ4(19,ie)),e.Y8G("width",200),e.R7$(2),e.Y8G("width",200))},dependencies:[p.Wk,g._ab,g.Ioe,g.d$e,g.i4w,T._d,T.XA,T.$d,T.m4],encapsulation:2,changeDetection:0})}return a})();var y=l(8580),v=l(6730),B=l(3356),X=l(4954),j=l(746);function Ne(a,_){if(1&a&&(e.j41(0,"h6",32),e.qex(1),e.EFF(2,"Id: "),e.j41(3,"span",51),e.EFF(4),e.k0s(),e.bVm(),e.k0s()),2&a){const t=e.XpG(2);e.R7$(4),e.JRh(t.trainingPathID)}}function Ae(a,_){1&a&&(e.qex(0),e.pXf(1,24),e.bVm())}function de(a,_){if(1&a&&(e.j41(0,"div",52),e.DNE(1,Ae,2,0,"ng-container",53),e.k0s()),2&a){e.XpG();const t=e.sdS(12);e.R7$(),e.Y8G("ngIf",null==t.errors?null:t.errors.required)}}function Ie(a,_){1&a&&(e.qex(0),e.pXf(1,25),e.bVm())}function ge(a,_){if(1&a&&(e.j41(0,"div",52),e.DNE(1,Ie,2,0,"ng-container",53),e.k0s()),2&a){e.XpG();const t=e.sdS(19);e.R7$(),e.Y8G("ngIf",null==t.errors?null:t.errors.required)}}function ce(a,_){if(1&a){const t=e.RV6();e.j41(0,"div",28)(1,"h2",29),e.qex(2),e.pXf(3,5),e.bVm(),e.k0s(),e.j41(4,"form",30,0),e.bIt("ngSubmit",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onSubmit())}),e.DNE(6,Ne,5,1,"h6",31),e.j41(7,"h6",32),e.qex(8),e.pXf(9,6),e.bVm(),e.k0s(),e.j41(10,"div",33)(11,"kendo-textbox",34,1),e.mxI("ngModelChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.trainingPath.nameIta,o)||(i.trainingPath.nameIta=o),e.Njj(o)}),e.k0s(),e.DNE(13,de,2,1,"div",35),e.k0s(),e.j41(14,"h6",32),e.qex(15),e.pXf(16,7),e.bVm(),e.k0s(),e.j41(17,"div",33)(18,"kendo-textbox",36,2),e.mxI("ngModelChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.trainingPath.nameEng,o)||(i.trainingPath.nameEng=o),e.Njj(o)}),e.k0s(),e.DNE(20,ge,2,1,"div",35),e.k0s(),e.j41(21,"div",37)(22,"div")(23,"h6",32),e.qex(24),e.pXf(25,8),e.bVm(),e.k0s(),e.j41(26,"kendo-switch",38,3),e.mxI("ngModelChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.trainingPath.active,o)||(i.trainingPath.active=o),e.Njj(o)}),e.k0s()(),e.j41(28,"div")(29,"h6",32),e.qex(30),e.pXf(31,9),e.bVm(),e.k0s(),e.j41(32,"kendo-switch",39,4),e.mxI("ngModelChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.trainingPath.docTargets,o)||(i.trainingPath.docTargets=o),e.Njj(o)}),e.k0s()()(),e.j41(34,"div",40)(35,"h6"),e.qex(36),e.pXf(37,10),e.bVm(),e.k0s(),e.j41(38,"div",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.selectAllCollaborationTypes())}),e.qex(39),e.pXf(40,11),e.bVm(),e.k0s()(),e.j41(41,"div",33)(42,"kendo-multiselect",42),e.mxI("ngModelChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.trainingPath.collaborationTypeTargets,o)||(i.trainingPath.collaborationTypeTargets=o),e.Njj(o)}),e.bIt("open",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openCollaborationType())})("afterFilterChanged",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.onCollaborationTypeSearchChanged(o))}),e.k0s(),e.j41(43,"div",43),e.qex(44),e.pXf(45,12),e.bVm(),e.k0s()(),e.j41(46,"div",40)(47,"h6"),e.qex(48),e.pXf(49,13),e.bVm(),e.k0s(),e.j41(50,"div",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.selectAllCompetencies())}),e.qex(51),e.pXf(52,14),e.bVm(),e.k0s()(),e.j41(53,"div",33)(54,"kendo-multiselect",44),e.mxI("ngModelChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.trainingPath.competencyTargets,o)||(i.trainingPath.competencyTargets=o),e.Njj(o)}),e.bIt("open",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openCompetency())})("afterFilterChanged",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.onCompetencySearchChanged(o))}),e.k0s(),e.j41(55,"div",43),e.qex(56),e.pXf(57,15),e.bVm(),e.k0s()(),e.j41(58,"div",40)(59,"h6"),e.qex(60),e.pXf(61,16),e.bVm(),e.k0s(),e.j41(62,"div",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.selectAllMarketProjects())}),e.qex(63),e.pXf(64,17),e.bVm(),e.k0s()(),e.j41(65,"div",33)(66,"kendo-multiselect",45),e.mxI("ngModelChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.trainingPath.marketProjectTargets,o)||(i.trainingPath.marketProjectTargets=o),e.Njj(o)}),e.bIt("open",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openMarketProject())})("afterFilterChanged",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.onMarketProjectSearchChanged(o))}),e.k0s(),e.j41(67,"div",43),e.qex(68),e.pXf(69,18),e.bVm(),e.k0s()(),e.j41(70,"div",40)(71,"h6"),e.qex(72),e.pXf(73,19),e.bVm(),e.k0s(),e.j41(74,"div",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.selectAllGeographies())}),e.qex(75),e.pXf(76,20),e.bVm(),e.k0s()(),e.j41(77,"div",33)(78,"kendo-multiselect",46),e.mxI("ngModelChange",function(o){e.eBV(t);const i=e.XpG();return e.DH7(i.trainingPath.geographyTargets,o)||(i.trainingPath.geographyTargets=o),e.Njj(o)}),e.bIt("open",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openGeography())})("afterFilterChanged",function(o){e.eBV(t);const i=e.XpG();return e.Njj(i.onGeographySearchChanged(o))}),e.k0s(),e.j41(79,"div",43),e.qex(80),e.pXf(81,21),e.bVm(),e.k0s()(),e.j41(82,"div",47)(83,"div",48)(84,"button",49),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.goBack())}),e.qex(85),e.pXf(86,22),e.bVm(),e.k0s()(),e.j41(87,"div",48)(88,"button",50),e.qex(89),e.pXf(90,23),e.bVm(),e.k0s()()()()()}if(2&a){const t=e.sdS(5),n=e.sdS(12),o=e.sdS(19),i=e.XpG();e.R7$(6),e.Y8G("ngIf",!i.isInsert),e.R7$(5),e.R50("ngModel",i.trainingPath.nameIta),e.R7$(2),e.Y8G("ngIf",n.invalid&&(n.dirty||n.touched)),e.R7$(5),e.R50("ngModel",i.trainingPath.nameEng),e.R7$(2),e.Y8G("ngIf",o.invalid&&(o.dirty||o.touched)),e.R7$(6),e.R50("ngModel",i.trainingPath.active),e.R7$(6),e.R50("ngModel",i.trainingPath.docTargets),e.R7$(10),e.Y8G("data",i.collaborationTypes)("valuePrimitive",!0),e.R50("ngModel",i.trainingPath.collaborationTypeTargets),e.Y8G("filterable",!0),e.R7$(12),e.Y8G("data",i.competencies)("valuePrimitive",!0),e.R50("ngModel",i.trainingPath.competencyTargets),e.Y8G("filterable",!0),e.R7$(12),e.Y8G("data",i.marketProjects)("valuePrimitive",!0),e.R50("ngModel",i.trainingPath.marketProjectTargets),e.Y8G("filterable",!0),e.R7$(12),e.Y8G("data",i.geographies)("valuePrimitive",!0),e.R50("ngModel",i.trainingPath.geographyTargets),e.Y8G("filterable",!0),e.R7$(10),e.Y8G("disabled",!t.form.valid)}}let F=(()=>{class a extends T.HU{constructor(t,n,o,i,r,A){super(),this.route=t,this.trainingPathService=n,this.collaborationTypeService=o,this.competencyService=i,this.marketProjectService=r,this.geographyService=A,this.trainingPath=null,this.isInsert=!0,this.componentName="EditTrainingPath",this.collaborationTypes=[],this.competencies=[],this.marketProjects=[],this.geographies=[],this.trainingPathID=this.route.
1snapshot.paramMap.get("id")||void 0,this.isInsert=!this.trainingPathID,this.isInsert?(this.trainingPath=new D,this.markForCheck()):n.getTrainingPath(this.trainingPathID).subscribe(d=>{this.trainingPath=d,this.loadInitialDropdownData(),this.markForCheck()})}loadInitialDropdownData(){this.openCollaborationType(this.trainingPath?.collaborationTypeTargets||[]),this.openCompetency(this.trainingPath?.competencyTargets||[]),this.openMarketProject(this.trainingPath?.marketProjectTargets||[]),this.openGeography(this.trainingPath?.geographyTargets||[])}onSubmit(){this.trainingPath&&(this.busy=!0,(this.isInsert?this.trainingPathService.addTrainingPath(this.trainingPath):this.trainingPathService.updateTrainingPath(this.trainingPathID,this.trainingPath)).subscribe({next:()=>{this.busy=!1;const n=this.isInsert?"Percorso formativo creato ":"Percorso formativo aggiornato ";this.showPrimaryNotification(n),this.goBack()},error:n=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(n)),console.error(`onSubmit: ${this.componentName}`,n.message),this.markForCheck()}}))}goBack(){this.router.navigate(this.isInsert?[".."]:["../.."],{relativeTo:this.route})}openCollaborationType(t=[]){this.collaborationTypeService.searchDropDown(void 0,t).subscribe(n=>{this.collaborationTypes=n,this.markForCheck()})}onCollaborationTypeSearchChanged(t){this.collaborationTypeService.searchDropDown(t,void 0).subscribe(n=>{this.collaborationTypes=n,this.markForCheck()})}openCompetency(t=[]){this.competencyService.searchDropDown(void 0,t).subscribe(n=>{this.competencies=n,this.markForCheck()})}onCompetencySearchChanged(t){this.competencyService.searchDropDown(t,void 0).subscribe(n=>{this.competencies=n,this.markForCheck()})}openMarketProject(t=[]){this.marketProjectService.searchDropDown(void 0,t).subscribe(n=>{this.marketProjects=n,this.markForCheck()})}onMarketProjectSearchChanged(t){this.marketProjectService.searchDropDown(t,void 0).subscribe(n=>{this.marketProjects=n,this.markForCheck()})}openGeography(t=[]){this.geographyService.searchDropDown(void 0,t).subscribe(n=>{this.geographies=n,this.markForCheck()})}onGeographySearchChanged(t){this.geographyService.searchDropDown(t,void 0).subscribe(n=>{this.geographies=n,this.markForCheck()})}selectAllCollaborationTypes(){this.collaborationTypeService.searchDropDown(void 0,void 0,!0,!0).subscribe(t=>{this.collaborationTypes=t,this.trainingPath.collaborationTypeTargets=t.map(n=>n.id),this.markForCheck()})}selectAllGeographies(){this.geographyService.searchDropDown(void 0,void 0,!0,!0).subscribe(t=>{this.geographies=t,this.trainingPath.geographyTargets=t.map(n=>n.id),this.markForCheck()})}selectAllCompetencies(){this.competencyService.searchDropDown(void 0,void 0,!0,!0).subscribe(t=>{this.competencies=t,this.trainingPath.competencyTargets=t.map(n=>n.id),this.markForCheck()})}selectAllMarketProjects(){this.marketProjectService.searchDropDown(void 0,void 0,!0,!0).subscribe(t=>{this.marketProjects=t,this.trainingPath.marketProjectTargets=t.map(n=>n.id),this.markForCheck()})}static#e=this.\u0275fac=function(n){return new(n||a)(e.rXU(p.nX),e.rXU(b),e.rXU(y.r),e.rXU(v.P),e.rXU(B.V),e.rXU(X.e))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["people-edit-training-path-container"]],features:[e.Vt3],decls:5,vars:3,consts:()=>{let t,n,o,i,r,A,d,R,O,h,c,N,s,C,P,U,z,V,Y,q,J,K,W;return t="Nome Ita",n="Nome Ing",o="Percorso Formativo",i="Nome ita",r="Nome Ing",A="Attivo",d="Destinato ai DOC",R="Tipo Collaborazione",O="Seleziona tutti",h="Se non \xE8 selezionato alcun tag, allora \xE8 per tutti",c="Competenze",N="Seleziona tutti",s="Se non \xE8 selezionato alcun tag, allora \xE8 per tutti",C="Progetti di Mercato",P="Seleziona tutti",U="Se non \xE8 selezionato alcun tag, allora \xE8 per tutti",z="Geografie",V="Seleziona tutti",Y="Se non \xE8 selezionato alcun tag, allora \xE8 per tutti",q="Indietro",J="Salva",K="Nome \xE8 richiesto",W="Nome \xE8 richiesto",[["trainingPathForm","ngForm"],["nameIta","ngModel"],["nameEng","ngModel"],["active","ngModel"],["docTargets","ngModel"],o,i,r,A,d,R,O,h,c,N,s,C,P,U,z,V,Y,q,J,K,W,[3,"showTitle"],["class","mt-2 col-lg-8 col-md-10 col-12 mx-auto",4,"ngIf"],[1,"mt-2","col-lg-8","col-md-10","col-12","mx-auto"],[1,"my-2","text-primary"],[3,"ngSubmit"],["class","my-2",4,"ngIf"],[1,"my-2"],[1,"form-group","mt-2"],["id","nameIta","name","nameIta","placeholder",t,"required","",1,"w-100",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["id","nameEng","name","nameEng","placeholder",n,"required","",1,"w-100",3,"ngModelChange","ngModel"],[1,"d-flex","gap-6"],["id","active","name","active",3,"ngModelChange","ngModel"],["id","docTargets","name","docTargets",3,"ngModelChange","ngModel"],[1,"d-flex","justify-content-between","align-items-end","mt-2"],[1,"btn-primary",2,"cursor","pointer","padding","0.25rem 0.75rem",3,"click"],["textField","name","valueField","id","name","collaborationTypeTargets",3,"ngModelChange","open","afterFilterChanged","data","valuePrimitive","ngModel","filterable"],[2,"color","#878787","font-size","0.85rem"],["textField","name","valueField","id","name","competencyTargets",3,"ngModelChange","open","afterFilterChanged","data","valuePrimitive","ngModel","filterable"],["textField","name","valueField","id","name","marketProjectTargets",3,"ngModelChange","open","afterFilterChanged","data","valuePrimitive","ngModel","filterable"],["textField","name","valueField","id","name","geographyTargets",3,"ngModelChange","open","afterFilterChanged","data","valuePrimitive","ngModel","filterable"],[1,"my-4","row","
1justify-content-between"],[1,"col-3"],["type","button",1,"btn","btn-secondary","w-100","mt-1","mb-2",3,"click"],["type","submit",1,"btn","btn-primary","w-100","mt-1","mb-2",3,"disabled"],[1,"fw-bold"],[1,"text-danger"],[4,"ngIf"]]},template:function(n,o){1&n&&(e.j41(0,"aulos-container-layout",26)(1,"aulos-container-content")(2,"aulos-module-layout",26)(3,"aulos-module-content"),e.DNE(4,ce,91,24,"div",27),e.k0s()()()()),2&n&&(e.Y8G("showTitle",!1),e.R7$(2),e.Y8G("showTitle",!1),e.R7$(2),e.Y8G("ngIf",o.trainingPath))},dependencies:[E.bT,u.qT,u.BC,u.cb,u.YS,u.vS,u.cV,m.OV,m.cl,f.b3,T._d,T.XA,T.$d,T.m4,j.E],encapsulation:2,changeDetection:0})}return a})();var w=l(1413),Ce=l(152),Re=l(6977),Oe=l(3228),he=l(3510);function Pe(a,_){if(1&a&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&a){const t=_.$implicit;e.Y8G("title",t.nameIta),e.R7$(),e.JRh(t.nameIta)}}function Se(a,_){if(1&a&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&a){const t=_.$implicit;e.Y8G("title",t.nameEng),e.R7$(),e.JRh(t.nameEng)}}function ue(a,_){if(1&a&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&a){const t=_.$implicit;e.Y8G("title",t.area),e.R7$(),e.JRh(t.area||"-")}}function pe(a,_){if(1&a&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&a){const t=_.$implicit;e.Y8G("title",t.type),e.R7$(),e.JRh(t.type||"-")}}function Ee(a,_){if(1&a&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&a){const t=_.$implicit;e.R7$(),e.JRh(t.hours||"-")}}function fe(a,_){if(1&a){const t=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.toggleModule(o.id))}),e.k0s()()}if(2&a){const t=_.$implicit,n=e.XpG();e.R7$(),e.Y8G("checked",n.isSelected(t.id))}}function me(a,_){if(1&a&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.SpI(" ",t.selectedModules.size," ")}}let Me=(()=>{class a extends T.Cf{get filterMarketProjects(){return this._filterMarketProjects}set filterMarketProjects(t){this._filterMarketProjects=t,this.searchCommand.marketProjects=t.map(n=>n.id),this.gridState.skip=0,this.loadAvailableModules()}get filterCompetencies(){return this._filterCompetencies}set filterCompetencies(t){this._filterCompetencies=t,this.searchCommand.competencies=t.map(n=>n.id),this.gridState.skip=0,this.loadAvailableModules()}get filterGeographies(){return this._filterGeographies}set filterGeographies(t){this._filterGeographies=t,this.searchCommand.geographies=t.map(n=>n.id),this.gridState.skip=0,this.loadAvailableModules()}get filterCollaborationTypes(){return this._filterCollaborationTypes}set filterCollaborationTypes(t){this._filterCollaborationTypes=t,this.searchCommand.collaborationTypes=t.map(n=>n.id),this.gridState.skip=0,this.loadAvailableModules()}constructor(t,n,o,i,r,A){super(),this.trainingModuleService=t,this.marketProjectService=n,this.competencyService=o,this.geographyService=i,this.collaborationTypeService=r,this.cdr=A,this.gridData={data:[],total:0},this.gridState={skip:0,take:10},this.selectedModules=new Set,this.loading=!1,this.assignedModuleIds=[],this.searchCommand=new Oe.u,this.docTargetSwitchValue=!1,this.marketProjectOptions=[],this.competencyOptions=[],this.geographyOptions=[],this.collaborationTypeOptions=[],this._filterMarketProjects=[],this._filterCompetencies=[],this._filterGeographies=[],this._filterCollaborationTypes=[],this.filterChange$=new w.B,this.destroy$=new w.B}ngOnInit(){this.assignedModuleIds&&this.assignedModuleIds.length>0&&this.assignedModuleIds.forEach(t=>{this.selectedModules.add(t)}),this.filterChange$.pipe((0,Ce.B)(300),(0,Re.Q)(this.destroy$)).subscribe(()=>this.loadAvailableModules(!0)),this.loadAvailableModules()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.filterChange$.complete()}loadAvailableModules(t=!1){t&&(this.gridState={...this.gridState,skip:0}),this.loading=!0,this.trainingModuleService.search(this.gridState,this.searchCommand).subscribe({next:n=>{this.gridData=n,this.loading=!1,this.cdr.markForCheck()},error:n=>{this.loading=!1,console.error("loadAvailableModules",n.message),this.cdr.markForCheck()}})}onFilterChanged(){this.filterChange$.next()}onDocTargetChange(t){this.docTargetSwitchValue=t,this.searchCommand.docTarget=!!t||null,this.gridState.skip=0,this.loadAvailableModules(),this.cdr.markForCheck()}onDataStateChange(t){this.gridState=t,this.loadAvailableModules()}toggleModule(t){this.selectedModules.has(t)?this.selectedModules.delete(t):this.selectedModules.add(t)}isSelected(t){return this.selectedModules.has(t)}selectAll(){this.gridData.data.forEach(t=>{this.selectedModules.add(t.idTrainingModule)})}clearAll(){this.selectedModules.clear()}save(){if(0===this.selectedModules.size)return;const n={code:"Ok",userResponse:{selectedModuleIds:Array.from(this.selectedModules)}};this.close(n)}cancel(){this.close({code:"Cancel"})}onMarketProjectsOpen(){this.marketProjectService.searchDropDown(void 0,void 0,!0,!1).subscribe(t=>{this.marketProjectOptions=t,this.cdr.markForCheck()})}onCompetenciesOpen(){this.competencyService.searchDropDown(void 0,void 0,!0,!1).subscribe(t=>{this.competencyOptions=t,this.cdr.markForCheck()})}onGeographiesOpen(){this.geographyService.searchDropDown(void 0,void 0,!0,!1).subscribe(t=>{this.geographyOptions=t,this.cdr.markForCheck()})}
1onCollaborationTypesOpen(){this.collaborationTypeService.searchDropDown(void 0,void 0,!0,!1).subscribe(t=>{this.collaborationTypeOptions=t,this.cdr.markForCheck()})}onMarketProjectsFilterChange(t){this.marketProjectService.searchDropDown(t,void 0,!0,!1).subscribe(n=>{this.marketProjectOptions=n,this.cdr.markForCheck()})}onCompetenciesFilterChange(t){this.competencyService.searchDropDown(t,void 0,!0,!1).subscribe(n=>{this.competencyOptions=n,this.cdr.markForCheck()})}onGeographiesFilterChange(t){this.geographyService.searchDropDown(t,void 0,!0,!1).subscribe(n=>{this.geographyOptions=n,this.cdr.markForCheck()})}onCollaborationTypesFilterChange(t){this.collaborationTypeService.searchDropDown(t,void 0,!0,!1).subscribe(n=>{this.collaborationTypeOptions=n,this.cdr.markForCheck()})}static#e=this.\u0275fac=function(n){return new(n||a)(e.rXU(he.I),e.rXU(B.V),e.rXU(v.P),e.rXU(X.e),e.rXU(y.r),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["people-training-module-assignment-modal"]],features:[e.Vt3],decls:52,vars:32,consts:()=>{let t,n,o,i,r,A,d,R,O,h,c,N,s;return t="Nome Ita",n="Nome Ing",o="Area",i="Tipo",r="Ore",A="Assegna",d="Progetto di Mercato",R="Compentenze",O="Geografie",h="Tipi di collabrazioni",c="Riservato ai DOC",N="Annulla",s="Assegna",[d,R,O,h,c,N,s,[3,"options"],[1,"p-2"],[1,"mb-3"],[1,"d-flex","flex-wrap","align-items-end","gap-3"],[1,"filter-item","flex-fill",2,"max-width","300px"],["for","marketProjectFilter",1,"form-label","text-primary","fw-bold"],["id","marketProjectFilter","name","marketProjectFilter","textField","name","valueField","id",1,"w-100",3,"ngModelChange","open","afterFilterChanged","data","filterable","ngModel"],["for","competencyFilter",1,"form-label","text-primary","fw-bold"],["id","competencyFilter","name","competencyFilter","textField","name","valueField","id",1,"w-100",3,"ngModelChange","open","afterFilterChanged","data","filterable","ngModel"],["for","geographyFilter",1,"form-label","text-primary","fw-bold"],["id","geographyFilter","name","geographyFilter","textField","name","valueField","id",1,"w-100",3,"ngModelChange","open","afterFilterChanged","data","filterable","ngModel"],["for","collaborationTypeFilter",1,"form-label","text-primary","fw-bold"],["id","collaborationTypeFilter","name","collaborationTypeFilter","textField","name","valueField","id",1,"w-100",3,"ngModelChange","open","afterFilterChanged","data","filterable","ngModel"],[1,"filter-item","flex-fill",2,"max-width","150px"],["for","docTargetFilter",1,"form-label","text-primary","fw-bold","d-block"],["id","docTargetFilter","name","docTargetFilter",3,"ngModelChange","valueChange","ngModel"],[3,"dataStateChange","data","pageSize","skip","filter","pageable","filterable","sortable","loading","sort"],["field","nameIta","title",t],["kendoGridCellTemplate",""],["field","nameEng","title",n],["field","area","title",o,3,"width"],["field","type","title",i,3,"width"],["field","hours","title",r,"filter","numeric",3,"width"],["title",A,3,"width","sortable","filterable"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["class","badge bg-light text-dark ms-1",4,"ngIf"],[3,"title"],[1,"text-center"],["type","checkbox",1,"form-check-input","fs-5",3,"change","checked"],[1,"badge","bg-light","text-dark","ms-1"]]},template:function(n,o){1&n&&(e.j41(0,"aulos-dialog-layout",7)(1,"aulos-dialog-title"),e.EFF(2),e.k0s(),e.j41(3,"aulos-dialog-content",8)(4,"div",9)(5,"div",10)(6,"div",11)(7,"label",12),e.qex(8),e.pXf(9,0),e.bVm(),e.k0s(),e.j41(10,"kendo-multiselect",13),e.mxI("ngModelChange",function(r){return e.DH7(o.filterMarketProjects,r)||(o.filterMarketProjects=r),r}),e.bIt("open",function(){return o.onMarketProjectsOpen()})("afterFilterChanged",function(r){return o.onMarketProjectsFilterChange(r)}),e.k0s()(),e.j41(11,"div",11)(12,"label",14),e.qex(13),e.pXf(14,1),e.bVm(),e.k0s(),e.j41(15,"kendo-multiselect",15),e.mxI("ngModelChange",function(r){return e.DH7(o.filterCompetencies,r)||(o.filterCompetencies=r),r}),e.bIt("open",function(){return o.onCompetenciesOpen()})("afterFilterChanged",function(r){return o.onCompetenciesFilterChange(r)}),e.k0s()(),e.j41(16,"div",11)(17,"label",16),e.qex(18),e.pXf(19,2),e.bVm(),e.k0s(),e.j41(20,"kendo-multiselect",17),e.mxI("ngModelChange",function(r){return e.DH7(o.filterGeographies,r)||(o.filterGeographies=r),r}),e.bIt("open",function(){return o.onGeographiesOpen()})("afterFilterChanged",function(r){return o.onGeographiesFilterChange(r)}),e.k0s()(),e.j41(21,"div",11)(22,"label",18),e.qex(23),e.pXf(24,3),e.bVm(),e.k0s(),e.j41(25,"kendo-multiselect",19),e.mxI("ngModelChange",function(r){return e.DH7(o.filterCollaborationTypes,r)||(o.filterCollaborationTypes=r),r}
1),e.bIt("open",function(){return o.onCollaborationTypesOpen()})("afterFilterChanged",function(r){return o.onCollaborationTypesFilterChange(r)}),e.k0s()(),e.j41(26,"div",20)(27,"label",21),e.qex(28),e.pXf(29,4),e.bVm(),e.k0s(),e.j41(30,"kendo-switch",22),e.mxI("ngModelChange",function(r){return e.DH7(o.docTargetSwitchValue,r)||(o.docTargetSwitchValue=r),r}),e.bIt("valueChange",function(r){return o.onDocTargetChange(r)}),e.k0s()()()(),e.j41(31,"kendo-grid",23),e.bIt("dataStateChange",function(r){return o.onDataStateChange(r)}),e.j41(32,"kendo-grid-column",24),e.DNE(33,Pe,2,2,"ng-template",25),e.k0s(),e.j41(34,"kendo-grid-column",26),e.DNE(35,Se,2,2,"ng-template",25),e.k0s(),e.j41(36,"kendo-grid-column",27),e.DNE(37,ue,2,2,"ng-template",25),e.k0s(),e.j41(38,"kendo-grid-column",28),e.DNE(39,pe,2,2,"ng-template",25),e.k0s(),e.j41(40,"kendo-grid-column",29),e.DNE(41,Ee,2,1,"ng-template",25),e.k0s(),e.j41(42,"kendo-grid-column",30),e.DNE(43,fe,2,1,"ng-template",25),e.k0s()()(),e.j41(44,"aulos-dialog-actions")(45,"button",31),e.bIt("click",function(){return o.cancel()}),e.qex(46),e.pXf(47,5),e.bVm(),e.k0s(),e.j41(48,"button",32),e.bIt("click",function(){return o.save()}),e.qex(49),e.pXf(50,6),e.bVm(),e.DNE(51,me,2,1,"span",33),e.k0s()()()),2&n&&(e.Y8G("options",o.options),e.R7$(2),e.SpI(" ",o.options.title," "),e.R7$(8),e.Y8G("data",o.marketProjectOptions)("filterable",!0),e.R50("ngModel",o.filterMarketProjects),e.R7$(5),e.Y8G("data",o.competencyOptions)("filterable",!0),e.R50("ngModel",o.filterCompetencies),e.R7$(5),e.Y8G("data",o.geographyOptions)("filterable",!0),e.R50("ngModel",o.filterGeographies),e.R7$(5),e.Y8G("data",o.collaborationTypeOptions)("filterable",!0),e.R50("ngModel",o.filterCollaborationTypes),e.R7$(5),e.R50("ngModel",o.docTargetSwitchValue),e.R7$(),e.Y8G("data",o.gridData)("pageSize",o.gridState.take)("skip",o.gridState.skip)("filter",o.gridState.filter)("pageable",!0)("filterable",!0)("sortable",!0)("loading",o.loading)("sort",o.gridState.sort),e.R7$(5),e.Y8G("width",150),e.R7$(2),e.Y8G("width",150),e.R7$(2),e.Y8G("width",160),e.R7$(2),e.Y8G("width",55)("sortable",!1)("filterable",!1),e.R7$(6),e.Y8G("disabled",0===o.selectedModules.size),e.R7$(3),e.Y8G("ngIf",o.selectedModules.size>0))},dependencies:[E.bT,u.BC,u.vS,g._ab,g.Ioe,g.i4w,m.cl,f.b3,T.UA,T.Rb,j.E],encapsulation:2,changeDetection:0})}return a})();function Ge(a,_){if(1&a){const t=e.RV6();e.j41(0,"div",27)(1,"button",28),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.removeModule(o))}),e.nrm(2,"i",29),e.k0s()()}}let be=(()=>{class a extends T.HU{constructor(t,n){super(),this.route=t,this.trainingPathService=n,this.gridData={data:[],total:0},this.gridState={skip:0,take:15,sort:[{field:"orderIndex",dir:"asc"}]},this.componentName="TrainingPathModules",this.trainingPathID=this.route.snapshot.paramMap.get("id")}ngOnInit(){super.ngOnInit(),this.loadAssignedModules()}onDataStateChange(t){this.gridState=t,this.loadAssignedModules()}loadAssignedModules(){this.busy=!0,this.trainingPathService.searchAssignedModules(this.trainingPathID,this.gridState).subscribe({next:t=>{this.gridData=t,this.busy=!1,this.markForCheck()},error:t=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(t)),console.error(`loadAssignedModules: ${this.componentName}`,t.message),this.markForCheck()}})}showAssignmentDialog(){const t=this.gridData.data.map(o=>o.id),n=this.showDialog({content:Me,options:{title:"Assegna modulo formativo",width:1400}});n.instance.assignedModuleIds=t,n.result.subscribe(o=>{"Ok"===o.code&&o.userResponse&&this.assignModulesToPath(o.userResponse.selectedModuleIds)})}assignModulesToPath(t){this.busy=!0,this.trainingPathService.assignModulesToPath(this.trainingPathID,t).subscribe({next:()=>{this.busy=!1,this.loadAssignedModules(),this.showPrimaryNotification("Modulo assegnato ")},error:n=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(n)),console.error(`assignModulesToPath: ${this.componentName}`,n.message)}})}removeModule(t){const n={title:"Sei sicuro di volerlo cancellare",message:"Sei sicuro di voler cancellare '" + t.nameEng + "' da questo percorso?",icon:"fontaulos fontaulos-attention",width:L.hB.Medium,actions:[{label:"Si",class:"btn-primary",callback:()=>{this.busy=!0,this.trainingPathService.removeModuleFromPath(this.trainingPathID,t.id).subscribe({next:()=>{this.busy=!1,this.loadAssignedModules(),this.showPrimaryNotification("Modulo rimosso")},error:o=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(o)),console.error(`removeModule: ${this.componentName}`,o.message)}})}},{label:"No",class:"btn-secondary"}]};this.showDialog({options:n}).result.subscribe()}onRowReorder(t){"forbidden"!==t.dropPosition&&this.trainingPathService.reorderModules(this.trainingPathID,{id:t.draggedRows[0].dataItem.id,dropPosition:t.dropPosition,newOrderIndex:t.dropTargetRow.dataItem.orderIndex}).subscribe({next:()=>{this.loadAssignedModules()},error:o=>{this.showErrorNotification(S.S.FormatOriginalError(o)),console.error(`onRowReorder: ${this.componentName}`,o.message)}})}goBack(){this.router.navigate(["../.."],{relativeTo:this.route})}static#e=this.\u0275fac=function(n){return new(n||a)(e.rXU(p.nX),e.rXU(b))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["people-training-path-modules-container"]],features:[e.Vt3],decls:41,vars:18,consts:()=>{let t,n,o,i,r,A,d,R,O,h,c,N;return t="ID",n="Nome Ita",o="Nome Ing",i="Area",r="Tipo",A="Ore",d="Percorso Formativo",R="Moduli percorso formativo",O="Moduli percorso formativo",h="Aggiungi nuovo elmento",c="Indietro",N="Rimuovi dal percorso",[d,R,O,h,c,[3,"showTitle"],[1,"mt-2","col-12","mx-auto"],[1,"text-primary"],["type","button",1,"btn","btn-link","p-0","align-baseline","text-primary","fw-bold","text-decoration-underline",3,"click"],[1,"mx-1"],[1,"mt-2","mb-4","text-primary","fw-bold"],[1,"my-2"],[1,"fw-bold"],[1,"d-flex","justify-content-between","align-items-center","mb-3"],[1,"text-primary","fw-bold","d-inline",2,"cursor","pointer",3,"click"],[1,"fontaulos","fontaulos-add","me-1"],[1,"btn","btn-secondary",3,"click"],[3,"rowReorder","dataStateChange","data","pageSize","skip","filter","pageable","filterable","sortable","loading","sort","rowReorderable"],[3,"width"],["field","id","title",t,3,"filterable","width"],["field","nameIta","title",n],["field","nameEng","title",o],["field","area","title",i],["field","type","title",r],["field","hours","title",A,"filter","numeric",3,"width"],["title","command",3,"width"],["kendoGridCellTemplate",""],[1,"d-flex","m-1"],["title",N,1,"btn","btn-trans
1parent","btn-icon","ms-1",3,"click"],[1,"fontaulos","fontaulos-delete","text-primary","fw-bold"]]},template:function(n,o){1&n&&(e.j41(0,"aulos-container-layout",5)(1,"aulos-container-content")(2,"aulos-module-layout",5)(3,"aulos-module-content")(4,"div",6)(5,"h6",7)(6,"button",8),e.bIt("click",function(){return o.goBack()}),e.qex(7),e.pXf(8,0),e.bVm(),e.k0s(),e.j41(9,"span",9),e.EFF(10,">>"),e.k0s(),e.j41(11,"span"),e.qex(12),e.pXf(13,1),e.bVm(),e.k0s()(),e.j41(14,"h1",10),e.qex(15),e.pXf(16,2),e.bVm(),e.k0s(),e.j41(17,"h6",11),e.qex(18),e.EFF(19,"Path Id: "),e.j41(20,"span",12),e.EFF(21),e.k0s(),e.bVm(),e.k0s(),e.j41(22,"div",13)(23,"h5",14),e.bIt("click",function(){return o.showAssignmentDialog()}),e.nrm(24,"i",15),e.j41(25,"span"),e.qex(26),e.pXf(27,3),e.bVm(),e.k0s()(),e.j41(28,"button",16),e.bIt("click",function(){return o.goBack()}),e.qex(29),e.pXf(30,4),e.bVm(),e.k0s()(),e.j41(31,"kendo-grid",17),e.bIt("rowReorder",function(r){return o.onRowReorder(r)})("dataStateChange",function(r){return o.onDataStateChange(r)}),e.nrm(32,"kendo-grid-rowreorder-column",18)(33,"kendo-grid-column",19)(34,"kendo-grid-column",20)(35,"kendo-grid-column",21)(36,"kendo-grid-column",22)(37,"kendo-grid-column",23)(38,"kendo-grid-column",24),e.j41(39,"kendo-grid-command-column",25),e.DNE(40,Ge,3,0,"ng-template",26),e.k0s()()()()()()()),2&n&&(e.Y8G("showTitle",!1),e.R7$(2),e.Y8G("showTitle",!1),e.R7$(19),e.JRh(o.trainingPathID),e.R7$(10),e.Y8G("data",o.gridData)("pageSize",o.gridState.take)("skip",o.gridState.skip)("filter",o.gridState.filter)("pageable",!0)("filterable",!0)("sortable",!0)("loading",o.busy)("sort",o.gridState.sort)("rowReorderable",!0),e.R7$(),e.Y8G("width",50),e.R7$(),e.Y8G("filterable",!1)("width",160),e.R7$(5),e.Y8G("width",170),e.R7$(),e.Y8G("width",80))},dependencies:[g._ab,g.Ioe,g.d$e,g.i4w,g.Vvy,T._d,T.XA,T.$d,T.m4],styles:["kendo-grid .k-grid-content tr{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}"],changeDetection:0})}return a})();var Le=l(7892);const x=()=>({"text-center":!0});function $e(a,_){if(1&a&&e.EFF(0),2&a){const t=_.$implicit;e.Lme(" ",t.surname," ",t.name," ")}}function ke(a,_){1&a&&e.nrm(0,"input",22),2&a&&e.Y8G("checked",_.$implicit.doc)}function He(a,_){if(1&a){const t=e.RV6();e.j41(0,"input",23),e.bIt("change",function(o){const i=e.eBV(t).$implicit,r=e.XpG();return e.Njj(r.onCollaboratorSelectionChange(i,o.target.checked))}),e.k0s()}if(2&a){const t=_.$implicit,n=e.XpG();e.Y8G("checked",n.isCollaboratorSelected(t))}}function De(a,_){if(1&a&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.SpI(" ",t.selectedCollaborators.length," ")}}let ye=(()=>{class a extends T.Cf{constructor(t,n){super(),this.trainingPathService=t,this.cdr=n,this.trainingPathId="",this.existingCollaboratorIds=[],this.collaboratorsSelected=new e.bkB,this.gridItems={data:[],total:0},this.gridloading=!1,this.filterByPathTargets=!1,this.selectedCollaborators=[],this.state={skip:0,take:15,sort:[{field:"surname",dir:"asc"}]},this.componentName="TrainingGapsCollaboratorModal",this.options.width=1400}ngOnInit(){this.existingCollaboratorIds&&this.existingCollaboratorIds.length>0?this.trainingPathService.getAssignedCollaborators(this.trainingPathId).subscribe({next:t=>{this.selectedCollaborators=t.filter(n=>this.existingCollaboratorIds.includes(n.personId)),this.loadCollaborators()},error:t=>{console.error(`getAssignedCollaborators: ${this.componentName}`,t.message),this.loadCollaborators()}}):this.loadCollaborators()}onDataStateChange(t){this.state=t,this.loadCollaborators()}onFilterByTargetsChange(t){this.filterByPathTargets=t,this.loadCollaborators()}loadCollaborators(){this.gridloading=!0,this.trainingPathService.getAvailableCollaboratorsForGaps(this.trainingPathId,this.state,this.filterByPathTargets).subscribe({next:t=>{this.gridItems=t,this.gridloading=!1,this.cdr.markForCheck()},error:t=>{this.gridloading=!1,this.showErrorNotification(S.S.FormatOriginalError(t)),console.error(`loadCollaborators: ${this.componentName}`,t.message),this.cdr.markForCheck()}})}onCollaboratorSelectionChange(t,n){if(n)this.selectedCollaborators.find(o=>o.personId===t.personId)||this.selectedCollaborators.push(t);else{const o=this.selectedCollaborators.findIndex(i=>i.personId===t.personId);o>-1&&this.selectedCollaborators.splice(o,1)}this.cdr.markForCheck()}isCollaboratorSelected(t){return this.selectedCollaborators.some(n=>n.personId===t.personId)}onSave(){this.selectedCollaborators.length>0?this.collaboratorsSelected.emit(this.selectedCollaborators):this.showWarningNotification("Seleziona almeno un collaboratore")}onClose(){this.close()}static#e=this.\u0275fac=function(n){return new(n||a)(e.rXU(b),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["people-training-gaps-collaborator-modal"]],inputs:{trainingPathId:"trainingPathId",trainingPath:"trainingPath",existingCollaboratorIds:"existingCollaboratorIds"},outputs:{collaboratorsSelected:"collaboratorsSelected"},features:[e.Vt3],decls:30,vars:29,consts:()=>{let t,n,o,i,r,A,d,R,O,h,c,N;return t="ID",n="Collaboratore",o="Tipo Collaborazione",i="Competenze",r="Progetto di Mercato",A="Geografie",d="Doc",R="Seleziona",O="Aggiungi partecipanti al percorso",h="Mostra solo i collaboratori che corrispondono ai filtri di destinazione definiti per questo percorso di formazione",c="Indietro",N="Salva",[O,h,c,N,[3,"options"],[1,"p-2",2,"overflow","hidden"],[1,"mb-3"],["type","checkbox","id","filterByTargets",1,"form-check-input","me-2","mt-0","fs-4",3,"change","checked"],["for","filterByTargets",1,"form-check-label"],[3,"dataStateChange","data","pageSize","skip","filter","pageable","filterable","sortable","loading","sort"],["field","personId","title",t,3,"width","filterable"],["field","fullName","title",n,3,"width"],["kendoGridCellTemplate",""],["field","collaborationType","title",o,3,"width"],["field","competency","title",i,3,"width"],["field","marketProject","title",r,3,"width"],["field","geography","title",A,3,"width"],["field","doc","title",d,"filter","boolean",3,"width"],["field","selected","title",R,3,"filterable","width"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["class","badge bg-light text-dark ms-1",4,"ngIf"],["type","checkbox","disabled","true",1,"align-middle",3,"checked"],["type","checkbox",1,"form-check-input","fs-5",3,"change","checked"],[1,"badge","bg-light","text-dark","ms-1"]]},template:function(n,o){1&n&&(e.j41(0,"aulos-dialog-layout",4)(1,"aulos-dialog-title"),e.qex(2),e.pXf(3,0),e.bVm(),e.k0s(),e.j41(4,"aulos-dialog-content",5)(5,"div",6)(6,"input",7),e.bIt("change",function(r){return o.onFilterByTargetsChange(r.target.checked)}),e.k0s(),e.j41(7,"label",8),e.qex(8),e.pXf(9,1),e.bVm(),e.k0s()(),e.j41(10,"kendo-gri
1d",9),e.bIt("dataStateChange",function(r){return o.onDataStateChange(r)}),e.nrm(11,"kendo-grid-column",10),e.j41(12,"kendo-grid-column",11),e.DNE(13,$e,1,2,"ng-template",12),e.k0s(),e.nrm(14,"kendo-grid-column",13)(15,"kendo-grid-column",14)(16,"kendo-grid-column",15)(17,"kendo-grid-column",16),e.j41(18,"kendo-grid-column",17),e.DNE(19,ke,1,1,"ng-template",12),e.k0s(),e.j41(20,"kendo-grid-column",18),e.DNE(21,He,1,1,"ng-template",12),e.k0s()()(),e.j41(22,"aulos-dialog-actions")(23,"button",19),e.bIt("click",function(){return o.onClose()}),e.qex(24),e.pXf(25,2),e.bVm(),e.k0s(),e.j41(26,"button",20),e.bIt("click",function(){return o.onSave()}),e.qex(27),e.pXf(28,3),e.bVm(),e.DNE(29,De,2,1,"span",21),e.k0s()()()),2&n&&(e.Y8G("options",o.options),e.R7$(6),e.Y8G("checked",o.filterByPathTargets),e.R7$(4),e.Y8G("data",o.gridItems)("pageSize",o.state.take)("skip",o.state.skip)("filter",o.state.filter)("pageable",!0)("filterable",!0)("sortable",!0)("loading",o.gridloading)("sort",o.state.sort),e.R7$(),e.Y8G("width",140)("filterable",!1),e.R7$(),e.Y8G("width",200),e.R7$(2),e.Y8G("width",160),e.R7$(),e.Y8G("width",150),e.R7$(),e.Y8G("width",150),e.R7$(),e.Y8G("width",130),e.R7$(),e.HbH(e.lJ4(27,x)),e.Y8G("width",100),e.R7$(2),e.HbH(e.lJ4(28,x)),e.Y8G("filterable",!1)("width",80),e.R7$(6),e.Y8G("disabled",0===o.selectedCollaborators.length),e.R7$(3),e.Y8G("ngIf",o.selectedCollaborators.length>0))},dependencies:[E.bT,g._ab,g.Ioe,g.i4w,T.UA,T.Rb],encapsulation:2,changeDetection:0})}return a})();const ve=a=>({"mt-1":a});function Be(a,_){if(1&a&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.SpI(" ",t.trainingPath.displayName,"")}}function Xe(a,_){if(1&a&&(e.j41(0,"th",35),e.EFF(1),e.k0s()),2&a){const t=_.$implicit;e.R7$(),e.SpI(" ",t.displayName," ")}}function je(a,_){1&a&&e.nrm(0,"i",48)}function Fe(a,_){1&a&&e.nrm(0,"i",49)}function we(a,_){if(1&a&&(e.j41(0,"div",44)(1,"span",45),e.EFF(2),e.k0s(),e.DNE(3,je,1,0,"i",46)(4,Fe,1,0,"i",47),e.k0s()),2&a){const t=_.$implicit;e.Y8G("ngClass",e.eq3(7,ve,!_.first)),e.R7$(),e.Y8G("ngClass",t.participantHours==t.totalEventHours?"bg-success":"bg-warning")("title",t.eventId+" - "+t.eventName+(t.startDate&&t.endDate?" ("+t.startDate+" - "+t.endDate+")":"")),e.R7$(),e.Lme(" ",t.participantHours,"/",t.totalEventHours,"h "),e.R7$(),e.Y8G("ngIf",t.isFutureEvent),e.R7$(),e.Y8G("ngIf",t.hasCertificate)}}function xe(a,_){if(1&a&&(e.qex(0),e.DNE(1,we,5,9,"div",43),e.bVm()),2&a){const t=_.ngIf;e.R7$(),e.Y8G("ngForOf",t)}}function Ue(a,_){if(1&a&&(e.j41(0,"td",42),e.DNE(1,xe,2,1,"ng-container",33),e.k0s()),2&a){const t=_.$implicit,n=e.XpG().$implicit,o=e.XpG(2);e.R7$(),e.Y8G("ngIf",o.getModuleInfo(n,t.id))}}function ze(a,_){if(1&a){const t=e.RV6();e.j41(0,"tr",36)(1,"td",37)(2,"span",38),e.EFF(3),e.k0s(),e.j41(4,"button",39),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.removeCollaborator(o))}),e.nrm(5,"i",40),e.k0s()(),e.DNE(6,Ue,2,1,"td",41),e.k0s()}if(2&a){const t=_.$implicit,n=e.XpG(2);e.R7$(3),e.Lme(" ",t.surname," ",t.name," "),e.R7$(3),e.Y8G("ngForOf",n.modules)}}function Ve(a,_){if(1&a&&(e.j41(0,"tr")(1,"td",50),e.qex(2),e.pXf(3,9),e.bVm(),e.k0s()()),2&a){const t=e.XpG(2);e.R7$(),e.BMQ("colspan",t.modules.length+1)}}function Ye(a,_){if(1&a&&(e.j41(0,"div",27)(1,"table",28)(2,"thead")(3,"tr")(4,"th",29),e.qex(5),e.pXf(6,6),e.bVm(),e.k0s(),e.j41(7,"th",30),e.qex(8),e.pXf(9,7),e.bVm(),e.k0s()(),e.j41(10,"tr"),e.DNE(11,Xe,2,1,"th",31),e.k0s()(),e.j41(12,"tbody"),e.DNE(13,ze,7,3,"tr",32)(14,Ve,4,1,"tr",33),e.k0s()(),e.j41(15,"div",34)(16,"span"),e.EFF(17,"* "),e.qex(18),e.pXf(19,8),e.bVm(),e.k0s()()()),2&a){const t=e.XpG();e.R7$(7),e.BMQ("colspan",t.modules.length),e.R7$(4),e.Y8G("ngForOf",t.modules),e.R7$(2),e.Y8G("ngForOf",t.filteredCollaborators),e.R7$(),e.Y8G("ngIf",0===t.filteredCollaborators.length)}}function qe(a,_){1&a&&(e.j41(0,"div",51),e.qex(1),e.pXf(2,10),e.bVm(),e.k0s())}const Je=[{path:"",component:Te,data:{label:"List"},pathMatch:"full"},{path:"new",component:F,data:{label:"New"},pathMatch:"full"},{path:"edit/:id",component:F,data:{label:"Edit"},pathMatch:"full"},{path:":id/modules",component:be,data:{label:"List Modules"},pathMatch:"full"},{path:":id/gaps",component:(()=>{class a extends T.HU{constructor(t,n,o,i){super(),this.route=t,this.router=n,this.trainingPathService=o,this.injector=i,this.trainingPathId="",this.modules=[],this.collaborators=[],this.showCompletedCollaborators=!0,this.componentName="TrainingGaps"}ngOnInit(){super.ngOnInit(),this.route.params.subscribe(t=>{this.trainingPathId=t.id,this.trainingPathId&&(this.loadTrainingPath(),this.loadModules(),this.loadAssignedCollaborators())})}loadTrainingPath(){this.busy=!0,this.trainingPathService.getTrainingPath(this.trainingPathId).subscribe({next:t=>{this.trainingPath=t,this.busy=!1,this.markForCheck()},error:t=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(t)),console.error(`loadTrainingPath: ${this.componentName}`,t.message),this.markForCheck()}})}loadModules(){this.busy=!0,this.trainingPathService.getTrainingGapsModules(this.trainingPathId).subscribe({next:t=>{this.modules=t,this.busy=!1,this.markForCheck()},error:t=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(t)),console.error(`loadModules: ${this.componentName}`,t.message),this.markForCheck()}})}loadAssignedCollaborators(){this.busy=!0,this.trainingPathService.getAssignedCollaborators(this.trainingPathId).subscribe({next:t=>{this.collaborators=t,this.busy=!1,this.markForCheck()},error:t=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(t)),console.error(`loadAssignedCollaborators: ${this.componentName}`,t.message),this.markForCheck()}})}onShowCompletedChange(t){this.showCompletedCollaborators=t,this.markForCheck()}get filteredCollaborators(){return this.showCompletedCollaborators?this.collaborators:this.collaborators.filter(t=>t.completedModules.length<this.modules.length)}get existingCollaboratorIds(){return this.collaborators.map(t=>t.personId)}openAddCollaboratorsModal(){const n=this.injector.get(Le.o3).open({content:ye}),o=n.content.instance;o.trainingPathId=this.trainingPathId,o.trainingPath=this.trainingPath,o.existingCollaboratorIds=this.existingCollaboratorIds,o.collaboratorsSelected.subscribe(i=>{this.onCollaboratorsSelected(i),n.close()})}onCollaboratorsSelected(t){const n=t.map(o=>o.personId);this.busy=!0,this.trainingPathService.saveAssignedCollaborators(this.trainingPathId,n).subscribe({next:()=>{this.loadAssignedCollaborators(),this.busy=!1,this.showPrimaryNotification("Collaboratori salvati "),this.markForCheck()},error:o=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(o)),console.error(`saveAssignedCollaborators: ${this.componentName}`,o.message),this.markForCheck()}})}getModuleInfo(t,n){return t.completedModules.filter(o=>o.moduleId===n)}
1removeCollaborator(t){this.busy=!0,this.trainingPathService.removeAssignedCollaborator(this.trainingPathId,t.personId).subscribe({next:()=>{const n=this.collaborators.indexOf(t);n>-1&&this.collaborators.splice(n,1),this.busy=!1,this.showPrimaryNotification("Collaboratore rimosso "),this.markForCheck()},error:n=>{this.busy=!1,this.showErrorNotification(S.S.FormatOriginalError(n)),console.error(`removeAssignedCollaborator: ${this.componentName}`,n.message),this.markForCheck()}})}goBack(){this.router.navigate(["../.."],{relativeTo:this.route})}static#e=this.\u0275fac=function(n){return new(n||a)(e.rXU(p.nX),e.rXU(p.Ix),e.rXU(b),e.rXU(e.zZn))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["people-training-gaps-container"]],features:[e.Vt3],decls:33,vars:6,consts:()=>{let t,n,o,i,r,A,d,R,O,h,c,N,s,C;return t="Percorso Formativo",n="Gap Percorsi Formativi",o="Gap Percorsi Formativi",i="Percorso:",r="Mostra anche i collaboratori che hanno completato tutti i moduli del percorso",A="Aggiungi Collaboratori",d="Collaboratore",R="Moduli percorso formativo",O="Eventi futuri",h="Rimuovi",c="Evento futuro",N="Certificazione rilasciata",s="Nessun collaboratore selezionato.Clicca \"Aggiungi Collaboratori\" per iniziare.",C="Nessun modulo assegnato a questo percorso formativo. Si prega di assegnare prima i moduli.",[t,n,o,i,r,A,d,R,O,s,C,[3,"showTitle"],[1,"mt-2","col-12","mx-auto"],[1,"text-primary"],["type","button",1,"btn","btn-link","p-0","align-baseline","text-primary","fw-bold","text-decoration-underline",3,"click"],[1,"mx-1"],[1,"mt-2","mb-4","text-primary","fw-bold"],[1,"my-2"],["class","fw-bold",4,"ngIf"],[1,"my-3","ms-3"],["type","checkbox","id","showCompleted",1,"form-check-input","me-2","mt-0","fs-4",3,"change","checked"],["for","showCompleted",1,"form-check-label"],[1,"text-primary","fw-bold","d-inline","mb-3",2,"cursor","pointer",3,"click"],[1,"fontaulos","fontaulos-add","me-1"],["class","table-responsive mt-3",4,"ngIf"],["class","alert alert-info mt-3",4,"ngIf"],[1,"fw-bold"],[1,"table-responsive","mt-3"],[1,"table","table-bordered",2,"width","inherit"],["rowspan","2",1,"align-middle","fw-normal",2,"background-color","#d9d9d9","border","1px solid #bfbfbf","padding","8px","width","250px","vertical-align","middle"],[1,"text-center","fw-normal",2,"background-color","#d9d9d9","border","1px solid #bfbfbf","padding","8px"],["class","text-center align-top fw-normal","style","background-color: #f2f2f2; border: 1px solid #bfbfbf; padding: 8px; width: 200px;",4,"ngFor","ngForOf"],["class","align-middle",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"mt-2","text-muted",2,"font-size","0.9rem"],[1,"text-center","align-top","fw-normal",2,"background-color","#f2f2f2","border","1px solid #bfbfbf","padding","8px","width","200px"],[1,"align-middle"],[2,"border","1px solid #bfbfbf !important","padding","8px"],[2,"line-height","30px"],["title",h,1,"btn","btn-transparent","btn-icon","float-end","p-0",2,"width","30px","height","30px","min-width","30px","box-shadow","none",3,"click"],[1,"fontaulos","fontaulos-delete","text-primary","fw-bold",2,"font-size","1.5rem"],["class","text-center","style","border: 1px solid #bfbfbf; padding: 8px;",4,"ngFor","ngForOf"],[1,"text-center",2,"border","1px solid #bfbfbf","padding","8px"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"badge","me-1",2,"font-size","0.85rem","border-radius","4px",3,"ngClass","title"],["class","fa-solid fa-asterisk text-danger","style","font-size: 0.7rem;","title",c,4,"ngIf"],["class","fa-solid fa-certificate text-primary align-middle","style","font-size: 1.2rem;","title",N,4,"ngIf"],["title",c,1,"fa-solid","fa-asterisk","text-danger",2,"font-size","0.7rem"],["title",N,1,"fa-solid","fa-certificate","text-primary","align-middle",2,"font-size","1.2rem"],[1,"text-center","text-muted",2,"border","1px solid #bfbfbf","padding","12px"],[1,"alert","alert-info","mt-3"]]},template:function(n,o){1&n&&(e.j41(0,"aulos-container-layout",11)(1,"aulos-container-content")(2,"aulos-module-layout",11)(3,"aulos-module-content")(4,"div",12)(5,"h6",13)(6,"button",14),e.bIt("click",function(){return o.goBack()}),e.qex(7),e.pXf(8,0),e.bVm(),e.k0s(),e.j41(9,"span",15),e.EFF(10,">>"),e.k0s(),e.j41(11,"span"),e.qex(12),e.pXf(13,1),e.bVm(),e.k0s()(),e.j41(14,"h1",16),e.qex(15),e.pXf(16,2),e.bVm(),e.k0s(),e.j41(17,"h6",17),e.qex(18),e.pXf(19,3),e.bVm(),e.DNE(20,Be,2,1,"span",18),e.k0s(),e.j41(21,"div",19)(22,"input",20),e.bIt("change",function(r){return o.onShowCompletedChange(r.target.checked)}),e.k0s(),e.j41(23,"label",21),e.qex(24),e.pXf(25,4),e.bVm(),e.k0s()(),e.j41(26,"h5",22),e.bIt("click",function(){return o.openAddCollaboratorsModal()}),e.nrm(27,"i",23),e.j41(28,"span"),e.qex(29),e.pXf(30,5),e.bVm(),e.k0s()(),e.DNE(31,Ye,20,4,"div",24)(32,qe,3,0,"div",25),e.k0s()()()()()),2&n&&(e.Y8G("showTitle",!1),e.R7$(2),e.Y8G("showTitle",!1),e.R7$(18),e.Y8G("ngIf",o.trainingPath),e.R7$(2),e.Y8G("checked",o.showCompletedCollaborators),e.R7$(9),e.Y8G("ngIf",o.modules.length>0),e.R7$(),e.Y8G("ngIf",0===o.modules.length&&!o.busy))},dependencies:[E.YU,E.Sq,E.bT,T._d,T.XA,T.$d,T.m4],encapsulation:2,changeDetection:0})}return a})(),data:{label:"Training Gaps"},pathMatch:"full"}];let Ke=(()=>{class a{static#e=this.\u0275fac=function(n){return new(n||a)};static#t=this.\u0275mod=e.$C({type:a});static#o=this.\u0275inj=e.G2t({imports:[E.MD,u.YN,u.X1,p.iI.forChild(Je),g.pc9,m.ol,f.ZS,T.sb,Q.h,G.R]})}return a})()},3721:(H,M,l)=>{l.d(M,{h:()=>u});var E=l(4438);let u=(()=>{class p{static#e=this.\u0275fac=function(f){return new(f||p)};static#t=this.\u0275mod=E.$C({type:p});static#o=this.\u0275inj=E.G2t({})}return p})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.