{"version":3,"sources":["webpack:///./src/modules/offertaFormativa/services/creditiService.ts","webpack:///./src/modules/corsi/services/corsiService.ts","webpack:///./src/modules/creditiSpeciali/components/creditiSpecialiOverview/creditiSpecialiOverview.vue?44e6","webpack:///./src/modules/giornalisti/services/giornalistiCreditiSpecialiService.ts","webpack:///./src/modules/creditiSpeciali/components/creditiSpecialiOverview/creditiSpecialiOverview.ts","webpack:///./src/modules/creditiSpeciali/components/creditiSpecialiOverview/creditiSpecialiOverview.ts?36e3","webpack:///./src/modules/creditiSpeciali/components/creditiSpecialiOverview/creditiSpecialiOverview.vue","webpack:///./src/modules/giornalisti/components/partecipanteAiCorsi/PartecipanteAiCorsi.vue?ae2c","webpack:///./src/modules/creditiSpeciali/components/creditiSpecialiOverview/creditiSpecialiOverview.vue?ceb7","webpack:///./src/modules/offertaFormativa/components/crediti-giornalista-overview.vue?6163","webpack:///./src/modules/offertaFormativa/services/esenzioniService.ts","webpack:///./src/modules/profile/components/view-absences.vue?15af","webpack:///./src/modules/offertaFormativa/components/crediti-giornalista-overview.vue?b56b","webpack:///./src/modules/giornalisti/utils/exportAdempienza.ts","webpack:///./src/modules/offertaFormativa/components/crediti-giornalista-overview.ts","webpack:///./src/modules/offertaFormativa/components/crediti-giornalista-overview.ts?9adb","webpack:///./src/modules/offertaFormativa/components/crediti-giornalista-overview.vue","webpack:///./src/modules/giornalisti/components/partecipanteAiCorsi/PartecipanteAiCorsi.vue?a897","webpack:///./src/modules/giornalisti/components/partecipanteAiCorsi/PartecipanteAiCorsi.ts","webpack:///./src/modules/giornalisti/components/partecipanteAiCorsi/PartecipanteAiCorsi.ts?a1b7","webpack:///./src/modules/giornalisti/components/partecipanteAiCorsi/PartecipanteAiCorsi.vue","webpack:///./src/services/_base/debounce.ts","webpack:///./src/modules/profile/components/view-absences.vue?8c74","webpack:///./src/modules/profile/components/view-absences.ts","webpack:///./src/modules/profile/components/view-absences.ts?46c2","webpack:///./src/modules/profile/components/view-absences.vue"],"names":["CreditiService","super","this","baseUrl","params","Get","periodoFormativoId","anagraficaGiornalistaIds","Post","item","Put","anagraficaGiornalistaId","creditiService","CorsiService","id","corso","stato","motivazione","Delete","uri","corsiService","render","_vm","_c","_self","_setupProxy","staticClass","directives","name","rawName","value","expression","attrs","listCS","scopedSlots","_u","key","fn","row","_v","_s","note","tipo","creditiConcessi","_f","dataCambioStato","length","query","page","take","pagination","pageSizes","total","on","paginationSizeChange","paginationPageChange","_e","staticRenderFns","baseRestService","settings","giornalistiCreditiSpecialiService","loading","dataProposizione","referenteId","referenteEnteId","fetchData","Count","List","size","required","component","EsenzioniService","esenzioniService","isAdempiente","periodoFormativo","attestatoLoading","$event","attestatoAdempienza","slot","staticStyle","model","callback","$$v","activeTab","_l","dataInizio","dataFine","obiettivoFormativoResiduo","totale","deontologici","$t","esenzioniAutomatiche","dataPrimaIscrizione","periodiFormativi","list","filter","f","anno","sort","a","b","crediti","anagrafica","$can","ricalcolaAdempienzaLoading","ricalcolaAdempienza","nomeCompleto","yPad","doc","pageNumber","stampaAttestatoAdempienza","giornalista","ente","totaleCrediti","totaleCreditiDeontologici","fileName","cognome","nome","addHeader","setFontSize","setFont","text","align","toUpperCase","addFooter","save","nomeEnte","imageProperties","getImageProperties","addImage","fileType","width","height","capoluoghi","find","x","ordine","capoluogo","Date","showEsenzione","state","dataNascita","comuneNascita","codiceFiscale","mail","pec","telefono","tessera","categoria","dataIscrizioneCategoria","provvedimentiDisciplinari","dataProvvedimento","dataInizioRinuncia","dataFineRinuncia","dataInizioCancellazione","dataFineCancellazione","dataPensione","dataDecesso","dataIscrizioneRegione","indirizzo","cap","comune","provincia","nazione","idCaricamentoRecord","idEsitoRecord","descrizioneEsitoRecord","idCaricamentoFile","idEsitoFile","descrizioneEsitoFile","idRegioneFile","nota","dataCaricamento","anagraficaEnteId","adempiente","contatoreBlacklist","obFormativi","tipiEsenzioni","esenzioni","esenzioniFocusTriennio","fetchDataDebounced","debounce","self","anagraficaService","Detail","fetchObiettiviFormativi","pfs","store","getters","getFullYear","res","map","qtaDeontologici","qtaNormali","reduce","Object","assign","obiettivoFormativo","totaleEsenzione","Math","max","totaleDeontologici","totaleEsenzioneDeontologici","appSetting","default","removedBy","disabled","check","eft","automatico","c","macrotipo","rows","totaleCreditiNonDeontologici","err","$message","message","duration","center","type","ListTipi","GetObiettiviFormativi","e","te","tipoEsenzioneId","quantitaDeontologici","quantitaNormali","macroTipo","n","o","rowTotaliPeriodoFormativo","esenzione","$msgbox","title","showCancelButton","confirmButtonText","cancelButtonText","dangerouslyUseHTMLString","then","catch","periodoFormativoService","action","RicalcoloAdempienza","enteService","components","ref","titolo","inProroga","formatTime","dataFineProroga","iscritto","virtuale","dataConfermaCrediti","data","deontologico","creditiDisponibili","costo","class","printCertificato","search","enteId","gratuito","continuativo","ammesso","cancellato","frequentato","orderField","orderDescending","iscrizioni","giornalistiCorsoService","CountCorsiInAnagrafica","result","ListCorsiInAnagrafica","m","iscrittoService","Giornalista","option","corsoId","column","prop","order","$nextTick","table","$refs","partecipantiAiCorsi","childrenRefs","$children","forEach","child","$forceUpdate","doLayout","func","waitMilliseconds","timeoutId","args","context","doLater","undefined","apply","clearTimeout","setTimeout","row3","dataIngressoBlackList","giornalistaLocal","dataUscitaBlackList","assenze","domProps","removeFromBlacklist","dataAssenza","user","storicoBlacklist","push","assenza","dataIngressoBlacklist","getTime","$alert","RemoveFromBlacklist","response","$emit","error","date","format"],"mappings":"+MAGA,MAAMA,UAAuB,OACzB,cACIC,QACAC,KAAKC,QAAU,IAAM,OAASA,QAG5B,MAAMC,G,sDACR,aAAaF,KAAKG,IAAI,iCAAkCD,MAGtD,KAAKA,G,sDACP,aAAaF,KAAKG,IAAI,2BAA4BD,MAGhD,oBAAoBE,EAA4BC,G,sDAClD,aAAaL,KAAKM,KAAK,sDAAuD,CAAEF,qBAAoBC,gCAGlG,aAAaE,G,sDACf,aAAaP,KAAKM,KAAK,yCAA0CC,MAG/D,oCAAoCH,G,sDACtC,aAAaJ,KAAKQ,I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MgF,IACL7T,KAAKqN,SAAS,CACZC,QAAS,gEACTqB,0BAA0B,EAC1BlB,KAAM,QACNF,SAAU,WAGfsB,MAAM,QAEX,WAAWiF,EAAMC,GACf,OAAO,wBAAWD,EAAMC,KA5E1B,gBADC,eAAK,CAAE5P,UAAU,EAAOuI,QAAS,Q,2BAGlC,gBADC,eAAK,CAAEvI,UAAU,EAAOuI,QAAS,Q,kCAHpC,kBAHC,eAAU,CACThL,KAAM,kB,WCNuP,I,wBCQ3P0C,EAAY,eACd,EACAjD,EACAoC,GACA,EACA,KACA,WACA,MAIa,OAAAa,E","file":"js/anagrafica~dashboard~profile~user.619c7556.js","sourcesContent":["import { baseRestService } from \"@/services/_base/baseRestService\";\nimport settings from \"@/settings\";\n\nclass CreditiService extends baseRestService {\n constructor() {\n super();\n this.baseUrl = () => settings.baseUrl;\n }\n\n async Count(params?: crediti.queryParams): Promise {\n return await this.Get(`/api/crediti-giornalista/count`, params);\n }\n\n async List(params?: crediti.queryParams): Promise {\n return await this.Get(\"/api/crediti-giornalista\", params);\n }\n\n async GetCreditiAziendali(periodoFormativoId: string, anagraficaGiornalistaIds: string[]): Promise {\n return await this.Post(\"/api/crediti-giornalista/crediti-da-corsi-aziendali\", { periodoFormativoId, anagraficaGiornalistaIds });\n }\n\n async AddEsenzione(item: crediti.item): Promise {\n return await this.Post('/api/crediti-giornalista/add-esenzione', item);\n }\n\n async RicalcoloAdempienzePeriodoFormativo(periodoFormativoId: string): Promise {\n return await this.Put(`/api/crediti-giornalista/ricalcolo-adempienza/${periodoFormativoId}`, null);\n }\n\n async RicalcoloAdempienza(periodoFormativoId: string, anagraficaGiornalistaId: string): Promise {\n return await this.Put(`/api/crediti-giornalista/ricalcolo-adempienza/${periodoFormativoId}/${anagraficaGiornalistaId}`, null);\n }\n}\n\nexport const creditiService = new CreditiService();","import settings from '@/settings';\nimport { baseRestService } from '@/services/_base/baseRestService'\n\nclass CorsiService extends baseRestService {\n\n constructor() {\n super();\n this.baseUrl = () => settings.baseUrl;\n }\n\n async Count(params?: corso.queryParams): Promise {\n return await this.Get('/api/corsi/count', params)\n }\n\n async List(params?: corso.queryParams): Promise> {\n return await this.Get>('/api/corsi/', params)\n }\n\n async Detail(id: string): Promise {\n return await this.Get(`/api/corsi/${id}`)\n }\n\n async Set(corso: corso.item): Promise {\n return await this.Post('/api/corsi', corso)\n }\n\n async ChangeStato(id: string, stato: string, motivazione: string = null): Promise {\n return await this.Put(`/api/corsi/change-stato/${id}`, { stato, motivazione })\n }\n\n async Remove(id: string) {\n return await this.Delete(`/api/corsi/${id}`)\n }\n\n async Duplicate(id: string): Promise {\n return await this.Get(`/api/corsi/${id}/duplicate`);\n }\n\n async CalcolaCreditiSuggeriti(id: string): Promise {\n return await this.Get(`/api/corsi/${id}/crediti-suggeriti`);\n }\n\n async CheckUsedUri(uri: string): Promise> {\n return await this.Get(`/api/corsi/luogo/check-used-uri?uri=${uri}`);\n }\n}\n\nexport const corsiService = new CorsiService()\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"crediti-speciali-overview-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"height\":\"calc(100vh - 464px)\",\"empty-text\":'Nessuna richiesta di Crediti Speciali',\"data\":_vm.listCS,\"show-overflow-tooltip\":\"\",\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"Programma\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('span',{staticClass:\"programma\"},[_vm._v(_vm._s(row.note))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"Tipo\",\"prop\":\"tipo\",\"width\":\"150\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('div',{staticClass:\"tags-container\"},[_c('el-tag',{attrs:{\"type\":row.tipo}},[_vm._v(\" \"+_vm._s(row.tipo)+\" \")])],1)]}}])}),_c('el-table-column',{attrs:{\"label\":\"Crediti Riconosciuti\",\"prop\":\"creditiConcessi\",\"width\":\"200\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('span',[_vm._v(_vm._s(row.creditiConcessi))])]}}])}),_c('el-table-column',{attrs:{\"label\":\"Data\",\"width\":\"118\",\"prop\":\"dataCambioStato\",\"align\":\"center\",\"sortable\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('i',{staticClass:\"el-icon-date\"}),_vm._v(\"  \"),(row.dataCambioStato)?_c('span',[_vm._v(_vm._s(_vm._f(\"formatTime\")(row.dataCambioStato,'DD/MM/YYYY')))]):_c('span',[_vm._v(\"--/--/----\")])]}}])})],1),(_vm.listCS && _vm.listCS.length > 0)?_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"current-page\":_vm.query.page,\"page-size\":_vm.query.take,\"page-sizes\":_vm.pagination.pageSizes,\"total\":_vm.pagination.total,\"layout\":\"total, prev, pager, next, jumper\"},on:{\"size-change\":_vm.paginationSizeChange,\"current-change\":_vm.paginationPageChange}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import settings from '@/settings';\nimport { baseRestService } from '@/services/_base/baseRestService'\n\nclass GiornalistiCreditiSpecialiService extends baseRestService {\n constructor() {\n super();\n this.baseUrl = () => settings.baseUrl;\n }\n\n async Count(anagraficaGiornalistaId: string, params?: creditiSpeciali.queryParams): Promise {\n return await this.Get(`/api/giornalisti/crediti-speciali/count/${anagraficaGiornalistaId}`, params)\n }\n\n async List(anagraficaGiornalistaId: string, params?: creditiSpeciali.queryParams): Promise {\n return await this.Get(`/api/giornalisti/crediti-speciali/${anagraficaGiornalistaId}`, params)\n }\n}\n\nexport const giornalistiCreditiSpecialiService = new GiornalistiCreditiSpecialiService()\n","import { Component, Prop, Vue } from 'vue-property-decorator';\nimport { creditiSpecialiService } from '../../services/creditiSpecialiService';\nimport { periodoFormativoService } from '@/modules/offertaFormativa/services/periodoFormativoService';\nimport { giornalistiCorsoService } from '@/modules/giornalisti/services/giornalistiCorsoService';\nimport { giornalistiCreditiSpecialiService } from '@/modules/giornalisti/services/giornalistiCreditiSpecialiService';\n\n@Component({})\nexport default class CreditiSpecialiOverview extends Vue {\n @Prop({ required: true })\n anagraficaGiornalistaId: string\n\n @Prop({ required: false })\n periodoFormativoId: string;\n\n loading: boolean = false;\n listCS: creditiSpeciali.item[] = [];\n\n pagination: { pageSizes: number[]; total: number } = {\n pageSizes: [5, 10, 20, 50],\n total: 0\n };\n\n query: creditiSpeciali.queryParams = {\n periodoFormativoId: null,\n stato: \"approvato\",\n dataProposizione: null,\n tipo: null,\n anagraficaGiornalistaId: null,\n referenteId: null,\n referenteEnteId: null,\n page: 1,\n take: 7,\n };\n\n async created() {\n this.query.anagraficaGiornalistaId = this.anagraficaGiornalistaId;\n this.query.periodoFormativoId = this.periodoFormativoId || null;\n await this.fetchData();\n }\n\n async fetchData() {\n this.loading = true;\n this.pagination.total = await giornalistiCreditiSpecialiService.Count(this.anagraficaGiornalistaId, this.query);\n this.listCS = await giornalistiCreditiSpecialiService.List(this.anagraficaGiornalistaId, this.query);\n this.loading = false;\n }\n\n paginationSizeChange(size) {\n this.query.take = size;\n this.query.page = 1;\n this.fetchData();\n }\n\n paginationPageChange(page) {\n this.query.page = page;\n this.fetchData();\n }\n}","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/ts-loader/index.js??ref--13-2!./creditiSpecialiOverview.ts?vue&type=script&lang=ts&external\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/ts-loader/index.js??ref--13-2!./creditiSpecialiOverview.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./creditiSpecialiOverview.vue?vue&type=template&id=6756e5d5\"\nimport script from \"./creditiSpecialiOverview.ts?vue&type=script&lang=ts&external\"\nexport * from \"./creditiSpecialiOverview.ts?vue&type=script&lang=ts&external\"\nimport style0 from \"./creditiSpecialiOverview.vue?vue&type=style&index=0&id=6756e5d5&prod&lang=less\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PartecipanteAiCorsi.vue?vue&type=style&index=0&id=3b6b49a2&prod&lang=less&scoped=true\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./creditiSpecialiOverview.vue?vue&type=style&index=0&id=6756e5d5&prod&lang=less\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./crediti-giornalista-overview.vue?vue&type=style&index=0&id=5dc5a0d1&prod&lang=less\"","import { baseRestService } from \"@/services/_base/baseRestService\";\nimport settings from \"@/settings\";\n\nclass EsenzioniService extends baseRestService {\n constructor() {\n super();\n this.baseUrl = () => settings.baseUrl;\n }\n\n async ListEsenzioniGiornalista(params?: esenzioni.listQueryParams): Promise {\n return await this.Get(\"/api/esenzioni-giornalista/list\", params);\n }\n \n async ListTipi(): Promise {\n return await this.Get(\"/api/esenzioni-giornalista/tipi-esenzioni\");\n }\n\n async GetEsenzioni(params: esenzioni.queryParams): Promise{\n return await this.Get(\"/api/esenzioni-giornalista\", params);\n }\n\n async GetObiettiviFormativi(anagraficaGiornalistaId: string): Promise{\n return await this.Get(\"/api/esenzioni-giornalista/obiettivo-formativo\", {anagraficaGiornalistaId});\n }\n\n async AddManuali(params: esenzioni.addManuali): Promise{\n return await this.Post(\"/api/esenzioni-giornalista\", params)\n }\n\n async AddMassive(params: esenzioni.addManuali): Promise{\n return await this.Post(\"/api/esenzioni-giornalista/massive\", params)\n }\n\n async ToggleEsenzione(params: esenzioni.toggleCommand): Promise{\n return await this.Put(\"/api/esenzioni-giornalista/toggle\", params)\n\n }\n async RemoveEsenzione(params: esenzioni.removeCommand): Promise{\n return await this.Put(\"/api/esenzioni-giornalista/rimuovi-esenzione\", params)\n }\n}\n\nexport const esenzioniService = new EsenzioniService();","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./view-absences.vue?vue&type=style&index=0&id=ca00b1a4&prod&lang=less&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"crediti-giornalista-overview\"},[((_vm.isAdempiente ? true : false) && _vm.periodoFormativo.stato === 'chiuso')?_c('div',{staticClass:\"scarica-attestato-adempienza-container\"},[_c('el-button',{staticClass:\"scarica-attestato-adempienza\",attrs:{\"slot\":\"reference\",\"type\":\"approvato\",\"size\":\"small\",\"plain\":\"\",\"icon\":\"fa fa-file\",\"loading\":_vm.attestatoLoading},on:{\"click\":function($event){return _vm.attestatoAdempienza()}},slot:\"reference\"},[_vm._v(\"Scarica attestato adempienza\")])],1):_vm._e(),_c('el-tabs',{staticStyle:{\"height\":\"auto\"},attrs:{\"type\":\"border-card\",\"tab-position\":\"left\"},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},_vm._l((_vm.periodiFormativi),function(periodoFormativo){return _c('el-tab-pane',{key:periodoFormativo.id,attrs:{\"name\":periodoFormativo.id,\"label\":`${periodoFormativo.dataInizio} - ${periodoFormativo.dataFine}`}},[_c('div',{staticStyle:{\"padding\":\"0.5rem 0.5rem\"}},[(_vm.obiettivoFormativoResiduo.totale > 0)?_c('el-tag',{staticClass:\"target\",attrs:{\"type\":\"primary\"}},[_vm._v(\" Target: \"),_c('strong',[_vm._v(_vm._s(_vm.obiettivoFormativoResiduo.totale)+\" crediti nel triennio\")]),_vm._v(\", di cui \"),_c('strong',[_vm._v(\"almeno \"+_vm._s(_vm.obiettivoFormativoResiduo.deontologici)+\" crediti deontologici\")]),(_vm.esenzioniAutomatiche)?_c('div',{staticClass:\"esenzioniAutomatiche\"},[_c('strong',[_vm._v(_vm._s(`Il target formativo è stato ridotto ${_vm.$t(`esenzioni.${_vm.esenzioniAutomatiche}`, { dataPrimaIscrizione: _vm.dataPrimaIscrizione })}`))])]):_vm._e()]):_vm._e(),_c('div',{staticClass:\"adempimento\"},[(_vm.periodiFormativi[0] !== periodoFormativo)?_c('el-tag',{staticClass:\"target\",attrs:{\"type\":_vm.isAdempiente ? 'success' : 'danger'}},[_c('strong',[_vm._v(_vm._s(_vm.isAdempiente ? `Adempiente` : `Non adempiente`))]),_vm._v(\" \"+_vm._s(`nel periodo formativo ${periodoFormativo.dataInizio} - ${periodoFormativo.dataFine}`)+\" \"),(_vm.obiettivoFormativoResiduo.totale <= 0 && _vm.esenzioniAutomatiche)?_c('div',{staticClass:\"esenzioniAutomatiche\"},[_c('strong',[_vm._v(_vm._s(`Il target formativo è stato ridotto ${_vm.$t(`esenzioni.${_vm.esenzioniAutomatiche}`, { dataPrimaIscrizione: _vm.dataPrimaIscrizione })}`))])]):_vm._e()]):_c('el-tag',{staticClass:\"target\",attrs:{\"type\":_vm.isAdempiente ? 'success' : 'danger'}},[_c('strong',[_vm._v(_vm._s(_vm.isAdempiente ? `Raggiunto` : `Non raggiunto`))]),_vm._v(\" \"+_vm._s(` il target nel periodo formativo ${periodoFormativo.dataInizio} - ${periodoFormativo.dataFine}`)+\" \"),(_vm.obiettivoFormativoResiduo.totale <= 0 && _vm.esenzioniAutomatiche)?_c('div',{staticClass:\"esenzioniAutomatiche\"},[_c('strong',[_vm._v(_vm._s(`Il target formativo è stato ridotto ${_vm.$t(`esenzioni.${_vm.esenzioniAutomatiche}`, { dataPrimaIscrizione: _vm.dataPrimaIscrizione })}`))])]):_vm._e()])],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"min-height\":\"265px\",\"data\":_vm.list.filter(f => f.periodoFormativoId === periodoFormativo.id && f.anno).sort((a, b) => (a.anno < b.anno ? -1 : 1)),\"empty-text\":`Nessun credito per il periodo formativo ${periodoFormativo.dataInizio} - ${periodoFormativo.dataFine} selezionato`,\"show-overflow-tooltip\":\"\",\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\",\"show-summary\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"Anno\",\"align\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_vm._v(_vm._s(row.anno))]}}],null,true)}),_c('el-table-column',{attrs:{\"prop\":\"crediti\",\"label\":\"Non deontologici\",\"align\":\"right\"}}),_c('el-table-column',{attrs:{\"prop\":\"deontologici\",\"label\":\"Deontologici\",\"align\":\"right\"}}),_c('el-table-column',{staticClass:\"bold\",attrs:{\"label\":\"Totale\",\"prop\":\"totaleCrediti\",\"align\":\"right\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('strong',[_vm._v(_vm._s(row.crediti + row.deontologici))])]}}],null,true)})],1),(\n (periodoFormativo.stato === 'chiuso' || periodoFormativo.stato === 'prorogato') &&\n _vm.anagrafica &&\n _vm.$can('CREDITI_GIORNALISTA.ricalcolaAdempienzaGiornalista')\n )?_c('el-popover',{attrs:{\"trigger\":\"hover\",\"width\":\"400\",\"placement\":\"top-start\"}},[_c('el-button',{staticClass:\"ricalcola-adempienza\",attrs:{\"slot\":\"reference\",\"size\":\"small\",\"type\":\"obsoleto\",\"plain\":\"\",\"icon\":\"fas fa-calculator\",\"loading\":_vm.ricalcolaAdempienzaLoading},on:{\"click\":function($event){return _vm.ricalcolaAdempienza(periodoFormativo.id)}},slot:\"reference\"},[_vm._v(\"Ricalcola l'adempienza sul periodo formativo \"+_vm._s(periodoFormativo.dataInizio)+\"-\"+_vm._s(periodoFormativo.dataFine))]),[_vm._v(\" Questa funzionalità consente di aggiornare il \"),_c('i',[_vm._v(\"flag\")]),_vm._v(\" dell'adempienza\"),_c('br'),_vm._v(\" del giornalista \"+_vm._s(_vm.anagrafica.nomeCompleto)),_c('br'),_vm._v(\" ricalcolando sul periodo formativo \"+_vm._s(periodoFormativo.dataInizio)+\"-\"+_vm._s(periodoFormativo.dataFine)+\" \")]],2):_vm._e()],1)])}),1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { formatTime } from '@/filters';\nimport CreditiGiornalistaOverview from '@/modules/offertaFormativa/components/crediti-giornalista-overview';\nimport { generateKey } from '@/utils/utils';\nimport jsPDF from 'jspdf'\nimport autoTable from 'jspdf-autotable'\nimport { giornalistiCorsoService } from '../services/giornalistiCorsoService';\nimport { capoluoghi } from './capoluoghi';\nimport { iscrittoService } from '../services/iscrittoService';\n\n\nconst yPad = 10;\nconst breakTable = 100;\n\nlet doc: any = null;\nlet top: number = 0;\nlet pageNumber: number = 0;\nexport async function stampaAttestatoAdempienzaConTabella(\n giornalista: giornalisti.item,\n ente: ente.item,\n periodoFormativo: periodoFormativo.item,\n totaleCrediti: number,\n totaleCreditiDeontologici: number\n) {\n const fileName = `attestato-adempimento-triennio-${periodoFormativo.dataInizio}-${periodoFormativo.dataFine}_${generateKey(giornalista.cognome)}_${generateKey(giornalista.nome)}.pdf`;\n doc = new jsPDF('landscape', 'mm', 'a4');\n top = 0;\n\n addHeader(ente.nome);\n\n doc.setFontSize(20);\n doc.setFont(\"helvetica\", \"bold\");\n doc.text(`IL CONSIGLIO REGIONALE DELL’ORDINE DEI GIORNALISTI`, 148.5, top, { align: 'center' });\n\n top += yPad;\n doc.setFontSize(12);\n doc.setFont(\"helvetica\", \"normal\");\n doc.text(`ATTESTA CHE`, 148.5, top, { align: 'center' });\n\n top += yPad;\n doc.setFontSize(18);\n doc.setFont(\"helvetica\", \"bold\");\n doc.text(giornalista.nomeCompleto.toUpperCase(), 148.5, top, { align: 'center' });\n\n top += yPad;\n doc.setFontSize(11);\n doc.setFont(\"helvetica\", \"normal\");\n doc.text(`HA ASSOLTO L’OBBLIGO FORMATIVO PER IL TRIENNIO ${periodoFormativo.dataInizio}-${periodoFormativo.dataFine} `, 148.5, top, { align: 'center' });\n\n const corsi = await giornalistiCorsoService.ListCorsiInAnagrafica(giornalista.id, {\n ammesso: true,\n cancellato: false,\n frequentato: true\n }) ?? [];\n\n const iscrizioni = await iscrittoService.Giornalista(giornalista.id, {\n ammesso: true,\n cancellato: false,\n frequentato: true\n }) ?? [];\n\n const corsiPeriodoFormativo = corsi\n .filter(x => x.periodoFormativoId == periodoFormativo.id)\n .map(x => {\n x.creditiDisponibili = x.deontologico ? x.creditiDisponibili += 2 : x.creditiDisponibili;\n x.data = x.continuativo ? iscrizioni.find(f => f.corsoId === x.id)?.dataConfermaCrediti ?? x.data : x.data;\n return x;\n })\n .sort(function (a, b) {\n return a.data.getTime() - b.data.getTime();\n });\n\n if (corsiPeriodoFormativo.length > 0) {\n top += yPad;\n doc.setFontSize(11);\n doc.setFont(\"helvetica\", \"normal\");\n doc.text(`avendo frequentato i seguenti corsi:`, 148.5, top, { align: 'center' });\n\n top += yPad / 2;\n const head = [['Data', 'Evento', 'Crediti Conseguiti']]\n const data = corsiPeriodoFormativo.map(corso => [formatTime(corso.data, 'DD/MM/YYYY'), corso.titolo, corso.creditiDisponibili])\n\n if (data.length > 0) {\n autoTable(doc, {\n showHead: 'everyPage',\n styles: { overflow: \"linebreak\" },\n bodyStyles: { valign: \"top\" },\n theme: \"striped\",\n head: head,\n body: data,\n startY: top,\n margin: {\n top: 32,\n bottom: 32,\n },\n headStyles: {\n valign: 'middle',\n fontStyle: 'bold',\n halign: 'center',\n fillColor: [0, 159, 227]\n },\n didDrawPage: (page) => {\n pageNumber = page.pageNumber\n addFooter(ente.nome)\n addHeader(ente.nome)\n top = page.cursor.y;\n }\n });\n }\n }\n\n top += yPad / 2;\n doc.setFontSize(10);\n doc.setFont(\"helvetica\", \"normal\");\n doc.text(`Totale Crediti: ${totaleCrediti} (${totaleCreditiDeontologici} deontologici )`, 15.5, top);\n\n doc.save(fileName);\n}\nexport async function stampaAttestatoAdempienza(\n giornalista: giornalisti.item,\n ente: ente.item,\n periodoFormativo: periodoFormativo.item,\n totaleCrediti: number,\n totaleCreditiDeontologici: number\n) {\n const fileName = `attestato-adempimento-triennio-${periodoFormativo.dataInizio}-${periodoFormativo.dataFine}_${generateKey(giornalista.cognome)}_${generateKey(giornalista.nome)}.pdf`;\n doc = new jsPDF('landscape', 'mm', 'a4');\n top = 0;\n\n addHeader(ente.nome);\n top += yPad * 2\n doc.setFontSize(20);\n doc.setFont(\"helvetica\", \"bold\");\n doc.text(`IL CONSIGLIO REGIONALE DELL’ORDINE DEI GIORNALISTI`, 148.5, top, { align: 'center' });\n\n top += yPad;\n doc.setFontSize(12);\n doc.setFont(\"helvetica\", \"normal\");\n doc.text(`ATTESTA CHE`, 148.5, top, { align: 'center' });\n\n top += yPad;\n doc.setFontSize(18);\n doc.setFont(\"helvetica\", \"bold\");\n doc.text(giornalista.nomeCompleto.toUpperCase(), 148.5, top, { align: 'center' });\n\n top += yPad * 3;\n doc.setFontSize(18);\n doc.setFont(\"helvetica\", \"normal\");\n doc.text(`HA ASSOLTO L’OBBLIGO FORMATIVO PER IL TRIENNIO ${periodoFormativo.dataInizio}-${periodoFormativo.dataFine} `, 148.5, top, { align: 'center' });\n addFooter(ente.nome)\n doc.save(fileName);\n}\nfunction addHeader(nomeEnte: string) {\n top = 0;\n top += yPad;\n var imageProperties = doc.getImageProperties(`/assets/logoRegioni/${nomeEnte}.jpg`)\n doc.addImage(`/assets/logoRegioni/${nomeEnte}.jpg`, imageProperties.fileType, 150 - imageProperties.width / 8, top, imageProperties.width / 4, imageProperties.height / 4);\n top += yPad * 3;\n}\n\nfunction addFooter(nomeEnte: string) {\n top = 180;\n top += yPad;\n doc.setFontSize(15);\n doc.setFont(\"helvetica\", \"italic\");\n doc.text(`${capoluoghi.find(x => x.ordine === nomeEnte).capoluogo}, il ${formatTime(new Date(), 'DD/MM/YYYY')}`, 15.5, top);\n\n doc.setFontSize(20);\n doc.setFont(\"helvetica\", \"normal\");\n doc.text(`Il Presidente`, 200.5, 150 + yPad);\n if (pageNumber)\n doc.text(`Pagina ${pageNumber}`, 266.5, top);\n\n top += yPad / 2;\n doc.setFontSize(7);\n doc.setFont(\"helvetica\", \"normal\");\n doc.text(\"Il presente attestato ha valore per gli iscritti all'Albo dei giornalisti e non può essere prodotto agli organi della pubblica amministrazione o gestori di pubblici servizi Art. 40 Co. 1 DPR 445/2000\", 148.5, top, { align: 'center' });\n}\n","import { Vue, Component, Prop, Watch } from 'vue-property-decorator';\nimport { debounce } from '@/services/_base/debounce';\nimport { creditiService } from '../services/creditiService';\nimport { periodoFormativoService } from '../services/periodoFormativoService';\nimport { anagraficaService } from '@/modules/anagrafica/services/anagraficaService';\nimport { formatTime } from '@/filters';\nimport { store } from '@/store';\nimport { esenzioniService } from '../services/esenzioniService';\nimport { stampaAttestatoAdempienza } from '@/modules/giornalisti/utils/exportAdempienza'\nimport { enteService } from '@/modules/enti/service/enteService';\nimport settings from \"@/settings\";\n@Component({\n components: {}\n})\nexport default class CreditiGiornalistaOverview extends Vue {\n showEsenzione: boolean = false;\n\n @Prop({ required: true })\n anagraficaGiornalistaId: string;\n\n pagination: { pageSizes: number[]; total: number } = {\n pageSizes: [20, 40, 60],\n total: 0\n };\n\n query: crediti.queryParams = {\n page: 1,\n take: 20,\n periodoFormativoId: null,\n anagraficaGiornalistaId: null,\n anno: null,\n };\n\n periodiFormativi: periodoFormativo.item[] = [];\n list: crediti.item[] = [];\n anagrafica: giornalisti.item = {\n id: '',\n state: '',\n cognome: '',\n nome: '',\n nomeCompleto: '',\n dataNascita: null,\n comuneNascita: '',\n codiceFiscale: '',\n mail: '',\n pec: '',\n telefono: '',\n tessera: '',\n dataPrimaIscrizione: null,\n categoria: '',\n dataIscrizioneCategoria: '',\n provvedimentiDisciplinari: '',\n dataProvvedimento: '',\n dataInizioRinuncia: '',\n dataFineRinuncia: '',\n dataInizioCancellazione: '',\n dataFineCancellazione: '',\n dataPensione: '',\n dataDecesso: '',\n dataIscrizioneRegione: '',\n indirizzo: '',\n cap: '',\n comune: '',\n provincia: '',\n nazione: '',\n idCaricamentoRecord: 0,\n idEsitoRecord: 0,\n descrizioneEsitoRecord: '',\n idCaricamentoFile: 0,\n idEsitoFile: 0,\n descrizioneEsitoFile: '',\n idRegioneFile: 0,\n nota: '',\n dataCaricamento: '',\n anagraficaEnteId: '',\n adempiente: 0,\n contatoreBlacklist: 0\n };\n loading: boolean = false;\n activeTab: string = null;\n\n obFormativi: esenzioni.obiettivoFormativo[] = [];\n tipiEsenzioni: esenzioni.itemTipi[] = [];\n esenzioni: esenzioni.itemEsenzioni[] = [];\n esenzioniFocusTriennio: esenzioni.itemEsenzioni[] = [];\n\n async created() {\n this.loading = true;\n this.anagrafica = await anagraficaService.Detail(this.anagraficaGiornalistaId);\n await this.fetchObiettiviFormativi();\n const pfs = store.getters.periodiFormativi.list();\n if (this.anagrafica.dataPrimaIscrizione.getFullYear()) {\n this.periodiFormativi = pfs.filter(f => f.stato === 'chiuso' || f.stato === 'prorogato' || f.stato === 'corrente')\n .filter(f => f.dataInizio >= this.anagrafica.dataPrimaIscrizione.getFullYear() || (f.dataInizio <= this.anagrafica.dataPrimaIscrizione.getFullYear() && f.dataFine >= this.anagrafica.dataPrimaIscrizione.getFullYear()))\n .sort((a, b) => (b.dataFine + b.dataInizio) - (a.dataFine + a.dataInizio));\n }\n this.activeTab = this.periodiFormativi[0].id\n this.query.anagraficaGiornalistaId = this.anagraficaGiornalistaId;\n await this.fetchData();\n }\n\n get totaleEsenzione() {\n if (this.esenzioni.length <= 0 || !this.activeTab) return 0;\n const res = this.esenzioniFocusTriennio.map(a => a.qtaDeontologici + a.qtaNormali).reduce((a, b) => a + b, 0);\n return res;\n }\n\n get totaleEsenzioneDeontologici() {\n if (this.esenzioni.length <= 0 || !this.activeTab) return 0;\n const res = this.esenzioniFocusTriennio.reduce((a, b) => a + b.qtaDeontologici, 0);\n return res;\n }\n\n get obiettivoFormativoResiduo(): { totale: number, deontologici: number } {\n let obiettivoFormativoResiduo = Object.assign({}, this.obiettivoFormativo);\n if (!this.anagrafica || !this.activeTab) return obiettivoFormativoResiduo;\n const totale = obiettivoFormativoResiduo.totale - this.totaleEsenzione;\n obiettivoFormativoResiduo.totale = Math.max(totale, 0);\n\n const totaleDeontologici = obiettivoFormativoResiduo.deontologici - this.totaleEsenzioneDeontologici;\n obiettivoFormativoResiduo.deontologici = totaleDeontologici >= 0 ? totaleDeontologici : 0;\n return obiettivoFormativoResiduo;\n }\n\n get obiettivoFormativo(): { totale: number, deontologici: number, periodoFormativoId: string } {\n if (this.obFormativi.length == 0 || this.periodoFormativo == null) {\n return null\n }\n let obiettivoFormativo: esenzioni.obiettivoFormativo = {\n periodoFormativoId: this.obFormativi.filter(a => a.periodoFormativoId == this.periodoFormativo.id)[0].periodoFormativoId,\n deontologici: settings.appSetting.obiettivoFormativo.default.deontologici,\n totale: settings.appSetting.obiettivoFormativo.default.totale\n };\n this.esenzioniFocusTriennio = this.esenzioni.filter(a => a.periodoFormativoId == this.periodoFormativo.id && a.removedBy == null && a.disabled == false);\n return obiettivoFormativo;\n }\n\n get esenzioniAutomatiche() {\n if (!this.anagrafica || !this.activeTab) return null;\n let check = this.esenzioniFocusTriennio.filter(eft => eft.automatico);\n if (check.filter(c => c.macrotipo === 2).length != 0) {\n return \"anni30daPrimaIscrizione\";\n }\n if (check.filter(c => c.macrotipo === 3).length != 0) {\n return \"pensione\";\n }\n return null;\n }\n\n get dataPrimaIscrizione() {\n if (this.anagrafica && this.anagrafica.dataPrimaIscrizione)\n return formatTime(this.anagrafica.dataPrimaIscrizione, 'DD/MM/YYYY')\n return null;\n }\n\n private fetchDataDebounced = debounce(async (self: this) => {\n await this.fetchData();\n }, 400);\n\n async fetchData() {\n try {\n this.loading = true;\n this.pagination.total = await creditiService.Count(this.query);\n const rows = await creditiService.List(this.query);\n this.list = rows.map((row: any) => {\n row.totaleCreditiNonDeontologici = ((row.crediti || 0));\n row.totaleCreditiDeontologici = ((row.deontologici || 0));\n row.totaleCrediti = row.totaleCreditiNonDeontologici + row.totaleCreditiDeontologici;\n return row;\n })\n this.loading = false;\n } catch (err) {\n this.loading = false;\n this.$message({\n message: 'Errore durante il recupero dei Piani Offerta Formativi',\n duration: 5 * 1000,\n center: true,\n type: 'error'\n });\n }\n }\n\n async fetchObiettiviFormativi() {\n this.tipiEsenzioni = await esenzioniService.ListTipi();\n const res: esenzioni.obiettiviFormativi = await esenzioniService.GetObiettiviFormativi(this.anagraficaGiornalistaId);\n this.obFormativi = res.obFormativi;\n this.esenzioni = res.esenzioni;\n delete (res.esenzioni);\n delete (res.obFormativi);\n this.esenzioni.map(e => {\n e.automatico = this.tipiEsenzioni.filter(te => te.id == e.tipoEsenzioneId)[0].automatico;\n e.qtaDeontologici = this.tipiEsenzioni.filter(te => te.id == e.tipoEsenzioneId)[0].quantitaDeontologici;\n e.qtaNormali = this.tipiEsenzioni.filter(te => te.id == e.tipoEsenzioneId)[0].quantitaNormali;\n e.macrotipo = this.tipiEsenzioni.filter(te => te.id == e.tipoEsenzioneId)[0].macroTipo;\n })\n }\n\n @Watch('query.periodoFormativoId')\n async queryChanged(n, o) {\n if (!n) {\n this.list = [];\n this.pagination.total = 0;\n } else {\n if (n !== o) {\n this.fetchData();\n }\n }\n }\n\n get totaleCrediti() {\n if (this.list.length <= 0 || !this.activeTab) return 0;\n let rowTotaliPeriodoFormativo = this.list.find(f => f.anno === null && f.periodoFormativoId === this.activeTab);\n return (rowTotaliPeriodoFormativo?.crediti || 0) + (rowTotaliPeriodoFormativo?.deontologici || 0)\n }\n\n get totaleCreditiDeontologici() {\n if (this.list.length <= 0 || !this.activeTab) return 0;\n const rowTotaliPeriodoFormativo = this.list.find(f => f.anno === null && f.periodoFormativoId === this.activeTab);\n return (rowTotaliPeriodoFormativo?.deontologici || 0)\n }\n\n get isAdempiente() {\n if (!this.obiettivoFormativo) return false;\n return (this.totaleCrediti >= this.obiettivoFormativoResiduo.totale && this.totaleCreditiDeontologici >= this.obiettivoFormativoResiduo.deontologici);\n }\n\n get periodoFormativo() {\n if (!this.periodiFormativi || this.periodiFormativi.length <= 0 || !this.activeTab)\n return null;\n return this.periodiFormativi.find(f => f.id === this.activeTab);\n }\n\n paginationSizeChange(size) {\n this.query.take = size;\n this.query.page = 1;\n this.fetchData();\n }\n\n paginationPageChange(page) {\n this.query.page = page;\n this.fetchData();\n }\n\n onEsenzioneChange(esenzione: crediti.item) {\n this.fetchData();\n this.showEsenzione = false;\n const periodoFormativo = this.periodiFormativi.find(f => f.id === esenzione.periodoFormativoId);\n if ((periodoFormativo.stato === 'chiuso' || periodoFormativo.stato === 'prorogato') && this.$can('CREDITI_GIORNALISTA.ricalcolaAdempienzePeriodoFormativo')) {\n this.$msgbox({\n title: \"Ricalcolo dell'adempienza\",\n message: `Aggiornare il flag dell'adempienza per il giornalista ${this.anagrafica.nomeCompleto} per il periodo formativo ${periodoFormativo.dataInizio}-${periodoFormativo.dataFine} per cui si è aggiunta una nuova esenzione?`,\n showCancelButton: true,\n confirmButtonText: \"Si\",\n cancelButtonText: \"No\",\n type: \"info\",\n dangerouslyUseHTMLString: true\n })\n .then(async () => {\n await this.ricalcolaAdempienza(esenzione.periodoFormativoId)\n })\n .catch(() => { });\n }\n }\n\n ricalcolaAdempienzaLoading: boolean = false;\n async ricalcolaAdempienza(periodoFormativoId) {\n if (this.$can('CREDITI_GIORNALISTA.ricalcolaAdempienzaGiornalista')) {\n const periodoFormativo = await periodoFormativoService.Detail(periodoFormativoId);\n this.$msgbox({\n title: \"Attenzione\",\n message: `L'operazione di aggiornamento del flag adempiente per il giornalista iscritto a https://formazionegiornalisti.it per il periodo formativo ${periodoFormativo.dataInizio}-${periodoFormativo.dataFine} è una operazione non reversibile!. Continuare?`,\n showCancelButton: true,\n confirmButtonText: \"Si\",\n cancelButtonText: \"Annulla\",\n type: \"warning\",\n dangerouslyUseHTMLString: true\n })\n .then(action => {\n this.ricalcolaAdempienzaLoading = true;\n creditiService.RicalcoloAdempienza(periodoFormativoId, this.anagraficaGiornalistaId).then(() => {\n this.ricalcolaAdempienzaLoading = false;\n }).catch(() => {\n this.ricalcolaAdempienzaLoading = false;\n });\n })\n .catch(() => { });\n }\n }\n\n attestatoLoading: boolean = false;\n async attestatoAdempienza() {\n this.attestatoLoading = true;\n const ente = await enteService.Detail(this.anagrafica.anagraficaEnteId);\n await stampaAttestatoAdempienza(this.anagrafica, ente, this.periodoFormativo, this.totaleCrediti, this.totaleCreditiDeontologici);\n this.attestatoLoading = false;\n }\n}","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--13-2!./crediti-giornalista-overview.ts?vue&type=script&lang=ts&external\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--13-2!./crediti-giornalista-overview.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./crediti-giornalista-overview.vue?vue&type=template&id=5dc5a0d1\"\nimport script from \"./crediti-giornalista-overview.ts?vue&type=script&lang=ts&external\"\nexport * from \"./crediti-giornalista-overview.ts?vue&type=script&lang=ts&external\"\nimport style0 from \"./crediti-giornalista-overview.vue?vue&type=style&index=0&id=5dc5a0d1&prod&lang=less\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"partecipante-corsi-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"partecipantiAiCorsi\",attrs:{\"height\":\"calc(100vh - 404px)\",\"empty-text\":'Nessun hai partecipato a nessun corso',\"data\":_vm.list,\"show-overflow-tooltip\":\"\",\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\"}},[_c('el-table-column',{attrs:{\"min-width\":\"320\",\"label\":\"Titolo\",\"prop\":\"titolo\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_vm._v(\" \"+_vm._s(row.titolo)+\" \"),( row.periodoFormativo && row.inProroga)?_c('el-tooltip',{attrs:{\"content\":`Per il Periodo Formativo ${row.periodoFormativo.dataInizio} - ${row.periodoFormativo.dataFine} prorogato fino al ${_vm.formatTime(row.periodoFormativo.dataFineProroga, 'DD/MM/YYYY')}`}},[_c('el-tag',{attrs:{\"size\":\"mini\"}},[_vm._v(\"Prorogato\")])],1):_vm._e()]}}])}),(_vm.$can('GIORNALISTI.viewPeriodoFormativoInCorsiEffettuati'))?_c('el-table-column',{attrs:{\"label\":\"Periodo Formativo\",\"width\":\"135\",\"prop\":\"data\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [(row.periodoFormativo)?_c('el-tooltip',{attrs:{\"content\":`Periodo Formativo ${(_vm.$t(`periodoFormativo.stati.${row.periodoFormativo.stato}`))}${row.periodoFormativo.stato === 'prorogato' ? ` al ${_vm.formatTime(row.periodoFormativo.dataFineProroga, 'DD/MM/YYYY')}` : ``}`}},[_c('el-tag',{attrs:{\"type\":row.periodoFormativo.stato === 'prorogato' ? 'inProroga' : row.periodoFormativo.stato === 'chiuso' ? 'info' : 'success'}},[_vm._v(\" \"+_vm._s(row.periodoFormativo.dataInizio)+\" - \"+_vm._s(row.periodoFormativo.dataFine)+\" \")])],1):_vm._e()]}}],null,false,1419515815)}):_vm._e(),_c('el-table-column',{attrs:{\"label\":\"Data crediti\",\"width\":\"148\",\"prop\":\"data\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('i',{staticClass:\"el-icon-date\"}),_vm._v(\"  \"),(_vm.iscritto(row.id))?_c('span',[_vm._v(_vm._s(_vm._f(\"formatTime\")((row.virtuale ? _vm.iscritto(row.id).dataConfermaCrediti : row.data),'DD/MM/YYYY')))]):_c('span',[_vm._v(\"--/--/----\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"creditiDisponibili\",\"label\":\"Crediti\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [(!row.deontologico)?_c('span',[_vm._v(_vm._s(row.creditiDisponibili))]):_c('span',[_vm._v(_vm._s(row.creditiDisponibili + 2))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"costo\",\"label\":\"Costo\",\"width\":\"146\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('div',{staticClass:\"tags-container\"},[(row.gratuito)?_c('el-tag',{attrs:{\"type\":\"inCompilazione\"}},[_c('i',{staticClass:\"fas fa-euro-sign\"}),_vm._v(\" Gratuito\")]):_c('el-tag',{attrs:{\"type\":\"rifiutato\"}},[_c('i',{staticClass:\"fas fa-euro-sign\"}),_vm._v(\" \"+_vm._s(_vm._f(\"formatValue\")((row.costo || 0),2)))])],1)]}}])}),_c('el-table-column',{attrs:{\"prop\":\"deontologico\",\"label\":\"Deontologico\",\"width\":\"110\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('div',{staticClass:\"tags-container\"},[_c('el-tag',{attrs:{\"type\":row.deontologico ? 'approvato' : 'sospeso'}},[_c('i',{staticClass:\"fas\",class:[{ 'fa-check': row.deontologico }, { 'fa-times': !row.deontologico }]})])],1)]}}])}),_c('el-table-column',{attrs:{\"width\":\"110\",\"label\":\"Modalità\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('div',{staticClass:\"tags-container\"},[(row.continuativo)?_c('el-tag',{attrs:{\"type\":\"continuativo\"}},[_c('i',{staticClass:\"fas fa-globe-europe\"}),_vm._v(\" On Demand\")]):(row.virtuale)?_c('el-tag',{attrs:{\"type\":\"webinar\"}},[_c('i',{staticClass:\"fas fa-globe-europe\"}),_vm._v(\" Webinar\")]):_c('el-tag',{attrs:{\"type\":\"inPresenza\"}},[_c('i',{staticClass:\"fas fa-map-marked-alt\"}),_vm._v(\" In Presenza \")])],1)]}}])}),_c('el-table-column',{attrs:{\"width\":\"66\",\"class-name\":\"tools\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('el-tooltip',{attrs:{\"content\":\"Stampa l'attestato di partecipazione\"}},[_c('el-button',{attrs:{\"plain\":\"\",\"type\":\"primary\",\"icon\":\"fas fa-certificate\",\"aria-label\":\"Stampa certificato\"},on:{\"click\":function($event){return _vm.printCertificato(row)}}})],1)]}}])})],1),(_vm.list && _vm.list.length > 0)?_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"current-page\":_vm.query.page,\"page-size\":_vm.query.take,\"page-sizes\":_vm.pagination.pageSizes,\"total\":_vm.pagination.total,\"layout\":\"total, prev, pager, next, jumper\"},on:{\"size-change\":_vm.paginationSizeChange,\"current-change\":_vm.paginationPageChange}})],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop, Vue } from 'vue-property-decorator';\nimport { giornalistiCorsoService } from '../../services/giornalistiCorsoService';\nimport { capitalizeFirstLetter, generateKey } from '@/utils/utils';\nimport { anagraficaService } from '@/modules/anagrafica/services/anagraficaService';\n\nimport { ElTable } from 'element-ui/types/table';\n\nimport { enteService } from '@/modules/enti/service/enteService';\nimport { stampaAttestatoPresenza } from '../../utils/exportPresenza';\nimport { iscrittoService } from '../../services/iscrittoService';\nimport { periodoFormativoService } from '@/modules/offertaFormativa/services/periodoFormativoService';\nimport { formatTime } from '@/filters';\nimport { store } from '@/store';\n\n@Component({\n components: {}\n})\nexport default class CorsiPartecipanteViewGiornalista extends Vue {\n @Prop({ required: true })\n anagraficaGiornalistaId: string;\n\n giornalista: giornalisti.item = null;\n list: giornalista.corso.item[] = [];\n\n pagination: { pageSizes: number[]; total: number } = {\n pageSizes: [5, 10, 20, 50],\n total: 0\n };\n\n query: giornalista.corso.queryParams = {\n search: null,\n referenteId: null,\n enteId: null,\n deontologico: null,\n gratuito: null,\n continuativo: null,\n virtuale: null,\n ammesso: true,\n cancellato: false,\n frequentato: true,\n orderField: 'DataConfermaCrediti',\n orderDescending: true,\n page: 1,\n take: 7,\n };\n ente: ente.item;\n iscrizioni: iscritto.item[] = [];\n periodiFormativi: periodoFormativo.item[] = [];\n\n async created() {\n this.loading = true;\n this.giornalista = await anagraficaService.Detail(this.anagraficaGiornalistaId);\n this.ente = await enteService.Detail(this.giornalista.anagraficaEnteId);\n const pfs = store.getters.periodiFormativi.list();\n this.periodiFormativi = pfs.filter(f => f.stato === 'chiuso' || f.stato === 'prorogato' || f.stato === 'corrente').sort((a, b) => (b.dataFine + b.dataInizio) - (a.dataFine + a.dataInizio));\n await this.fetchData();\n }\n\n loading: boolean = false;\n async fetchData() {\n this.loading = true;\n this.pagination.total = await giornalistiCorsoService.CountCorsiInAnagrafica(this.giornalista.id, this.query);\n var result = await giornalistiCorsoService.ListCorsiInAnagrafica(this.giornalista.id, this.query);\n this.list = result.map(m => {\n m[\"periodoFormativo\"] = this.periodiFormativi.find(f => f.id === m.periodoFormativoId)\n return m;\n })\n this.iscrizioni = await iscrittoService.Giornalista(this.anagraficaGiornalistaId);\n this.loading = false;\n }\n\n formatTime(value, option)\n { return formatTime(value, option)}\n\n iscritto(corsoId: string) : iscritto.item {\n return this.iscrizioni.find(f => f.corsoId === corsoId);\n }\n\n paginationSizeChange(size) {\n this.query.take = size;\n this.query.page = 1;\n this.fetchData();\n }\n\n paginationPageChange(page) {\n this.query.page = page;\n this.fetchData();\n }\n\n sortChange({ column, prop, order }) {\n this.query.orderField = capitalizeFirstLetter(prop);\n this.query.orderDescending = order === 'descending';\n this.fetchData();\n }\n\n onFilterChange(query) {\n this.query = query;\n this.fetchData();\n }\n\n onFilterClean(query) {\n this.query = query;\n this.fetchData();\n }\n\n async printCertificato(row: giornalista.corso.item | corso.item) {\n const iscritto = await iscrittoService.Detail(row.id, this.giornalista.id);\n stampaAttestatoPresenza(row, this.giornalista, this.ente, iscritto);\n }\n\n refreshTableForEndingPrintingLoading() {\n this.$nextTick(() => {\n const table = (this.$refs.partecipantiAiCorsi as ElTable);\n const childrenRefs = table.$children\n childrenRefs.forEach(child => {\n child.$forceUpdate();\n })\n if (table) {\n table.doLayout();\n table.$forceUpdate();\n }\n })\n }\n}","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/ts-loader/index.js??ref--13-2!./PartecipanteAiCorsi.ts?vue&type=script&lang=ts&external\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/ts-loader/index.js??ref--13-2!./PartecipanteAiCorsi.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./PartecipanteAiCorsi.vue?vue&type=template&id=3b6b49a2&scoped=true\"\nimport script from \"./PartecipanteAiCorsi.ts?vue&type=script&lang=ts&external\"\nexport * from \"./PartecipanteAiCorsi.ts?vue&type=script&lang=ts&external\"\nimport style0 from \"./PartecipanteAiCorsi.vue?vue&type=style&index=0&id=3b6b49a2&prod&lang=less&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3b6b49a2\",\n null\n \n)\n\nexport default component.exports","export type Procedure = (...args: any[]) => void;\n\nexport function debounce(\n func: F,\n waitMilliseconds = 50,\n): (this: ThisParameterType, ...args: Parameters) => void {\n let timeoutId: ReturnType | undefined;\n return function (this: ThisParameterType, ...args: Parameters) {\n const context = this;\n\n const doLater = function () {\n timeoutId = undefined;\n func.apply(context, args);\n }\n\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(doLater, waitMilliseconds);\n }\n}","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"view-absence-overview-container\",class:{\n row3: _vm.dataIngressoBlackList != null && _vm.$can('ANAGRAFICA_ENTI.canRemoveFromBlacklist')\n }},[(_vm.dataIngressoBlackList != null)?_c('el-tag',{attrs:{\"type\":\"danger\"}},[_c('i',{staticClass:\"el-icon-error\"}),_c('span',[_vm._v(_vm._s(_vm.$t('blacklist.alertMessage', { giornalista: _vm.giornalistaLocal.nomeCompleto, data: _vm.formatTime(_vm.dataUscitaBlackList, 'DD/MM/YYYY') })))])]):(_vm.assenze.length >= 1)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_c('i',{staticClass:\"el-icon-warning\"}),_c('span',[_vm._v(_vm._s(_vm.$t('blacklist.warningMessage')))])]):_c('el-tag',{attrs:{\"type\":\"info\"}},[_c('i',{staticClass:\"el-icon-info\"}),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('blacklist.infoMessage'))}})]),(_vm.dataIngressoBlackList != null && _vm.$can('ANAGRAFICA_ENTI.canRemoveFromBlacklist'))?_c('div',{staticClass:\"button-container\"},[_c('el-button',{attrs:{\"type\":\"danger\"},on:{\"click\":_vm.removeFromBlacklist}},[_c('i',{staticClass:\"fa fa-trash\"}),_vm._v(\" Rimuovi da BlackList \")])],1):_vm._e(),_c('el-table',{ref:\"Assenze\",attrs:{\"min-height\":\"360px\",\"empty-text\":'Nessuna assenza ingiustificata',\"data\":_vm.assenze,\"show-overflow-tooltip\":\"\",\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"Titolo\",\"label\":\"Titolo corso\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [(row.corso && row.corso.titolo)?_c('span',[_vm._v(_vm._s(row.corso.titolo))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"data\",\"label\":\"Data Corso\",\"width\":\"136\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [(row.corso && row.corso.data)?_c('span',[_vm._v(_vm._s(_vm._f(\"formatTime\")(row.corso.data,'DD/MM/YYYY')))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"dataAssenza\",\"label\":\"Data Conferma Assenza\",\"width\":\"164\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [(row.corso && row.dataAssenza)?_c('span',[_vm._v(_vm._s(_vm._f(\"formatTime\")(row.dataAssenza,'DD/MM/YYYY')))]):_vm._e()]}}])})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { formatTime } from '@/filters';\nimport { anagraficaService } from '@/modules/anagrafica/services/anagraficaService';\nimport { corsiService } from '@/modules/corsi/services/corsiService';\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n\n@Component({\n name: 'ViewAbsences'\n})\nexport default class extends Vue {\n @Prop({ required: false, default: null })\n user: user.item;\n @Prop({ required: false, default: null })\n giornalista: giornalisti.item;\n\n giornalistaLocal: giornalisti.item = null;\n assenze: { corso: corso.item, dataAssenza: Date }[] = []\n async mounted() {\n if (this.giornalista == null || this.giornalista == undefined) {\n this.giornalistaLocal = await anagraficaService.Detail(this.user.anagraficaGiornalistaId);\n }\n else {\n this.giornalistaLocal = this.giornalista\n }\n\n this.assenze = []\n if (this.giornalistaLocal != null && this.giornalistaLocal?.storicoBlacklist.length > 0) {\n for (var corso of this.giornalistaLocal?.storicoBlacklist) {\n this.assenze.push({\n corso: await corsiService.Detail(corso.corsoId),\n dataAssenza: corso.data,\n });\n }\n }\n }\n async fetchData() {\n if (this.giornalista == null || this.giornalista == undefined) {\n this.giornalistaLocal = await anagraficaService.Detail(this.user.anagraficaGiornalistaId);\n }\n else {\n this.giornalistaLocal = this.giornalista\n }\n this.assenze = []\n if (this.giornalistaLocal != null && this.giornalistaLocal?.storicoBlacklist.length > 0) {\n for (var corso of this.giornalistaLocal?.storicoBlacklist) {\n var assenza = {\n corso: null,\n dataAssenza: null,\n }\n assenza.corso = await corsiService.Detail(corso.corsoId);\n assenza.dataAssenza = corso.data\n this.assenze.push(assenza)\n }\n }\n }\n get dataIngressoBlackList() {\n if (this.giornalistaLocal != null)\n return this.giornalistaLocal.dataIngressoBlacklist\n return null\n }\n get dataUscitaBlackList() {\n return new Date(this.dataIngressoBlackList?.getTime() + 90 * 24 * 60 * 60 * 1000)\n }\n removeFromBlacklist() {\n this.$alert(`Attenzione, stai per rimuovere il giornalista ${this.giornalista.nomeCompleto} dalla black list
`, `Cancellazione giornalista da blacklist`, {\n confirmButtonText: 'Ok',\n cancelButtonText: 'Annulla',\n dangerouslyUseHTMLString: true,\n }).then(() => {\n anagraficaService\n .RemoveFromBlacklist(this.giornalista.id)\n .then((response) => {\n this.giornalista = response\n this.$emit(\"removedGiornalista\")\n this.fetchData()\n })\n .catch(error => {\n this.$message({\n message: `Si è verificato un errore nella cancellazione dalla blacklist`,\n dangerouslyUseHTMLString: true,\n type: 'error',\n duration: 7200\n });\n });\n }).catch(() => { });\n }\n formatTime(date, format): string {\n return formatTime(date, format);\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--13-2!./view-absences.ts?vue&type=script&lang=ts&external\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--13-2!./view-absences.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./view-absences.vue?vue&type=template&id=ca00b1a4&scoped=true\"\nimport script from \"./view-absences.ts?vue&type=script&lang=ts&external\"\nexport * from \"./view-absences.ts?vue&type=script&lang=ts&external\"\nimport style0 from \"./view-absences.vue?vue&type=style&index=0&id=ca00b1a4&prod&lang=less&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ca00b1a4\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}