{"version":3,"sources":["webpack:///./src/modules/offertaFormativa/services/creditiService.ts","webpack:///./src/modules/offertaFormativa/components/changeStatePeriodoFormativo.vue?d79b","webpack:///./src/modules/offertaFormativa/components/prorogaPeriodoFormativo.vue?d293","webpack:///./src/modules/offertaFormativa/components/managePeriodoFormativo.vue?9fe5","webpack:///./src/modules/offertaFormativa/views/periodoFormativo.vue?83c5","webpack:///./src/modules/offertaFormativa/components/managePeriodoFormativo.vue?b33f","webpack:///./src/modules/offertaFormativa/components/managePeriodoFormativo.ts","webpack:///./src/modules/offertaFormativa/components/managePeriodoFormativo.ts?e658","webpack:///./src/modules/offertaFormativa/components/managePeriodoFormativo.vue","webpack:///./src/modules/offertaFormativa/components/changeStatePeriodoFormativo.vue?54c1","webpack:///./src/modules/offertaFormativa/components/changeStatePeriodoFormativo.ts","webpack:///./src/modules/offertaFormativa/components/changeStatePeriodoFormativo.ts?68ef","webpack:///./src/modules/offertaFormativa/components/changeStatePeriodoFormativo.vue","webpack:///./src/modules/offertaFormativa/components/prorogaPeriodoFormativo.vue?8b61","webpack:///./src/modules/offertaFormativa/components/prorogaPeriodoFormativo.ts","webpack:///./src/modules/offertaFormativa/components/prorogaPeriodoFormativo.ts?4e4c","webpack:///./src/modules/offertaFormativa/components/prorogaPeriodoFormativo.vue","webpack:///./src/modules/offertaFormativa/views/periodoFormativo.ts","webpack:///./src/modules/offertaFormativa/views/periodoFormativo.ts?0716","webpack:///./src/modules/offertaFormativa/views/periodoFormativo.vue","webpack:///./src/services/_base/debounce.ts","webpack:///./src/modules/offertaFormativa/services/pianoOffertaFormativaService.ts"],"names":["CreditiService","super","this","baseUrl","params","Get","periodoFormativoId","anagraficaGiornalistaIds","Post","item","Put","anagraficaGiornalistaId","creditiService","render","_vm","_c","_self","_setupProxy","staticClass","attrs","model","value","query","callback","$$v","$set","expression","$can","on","$event","showManage","_v","_e","directives","name","rawName","list","scopedSlots","_u","key","fn","row","stato","_s","$t","dataInizio","dataFine","_f","dataFineProroga","displayPofs","handleRequestProroga","handleChangeState","handleRemove","page","take","pagination","pageSizes","total","paginationSizeChange","paginationPageChange","onCancel","onChange","manage","onSetClosed","staticRenderFns","title","$emit","ref","formRules","nextInizioPeriodoFormativo","dataInizioPickerOptions","Date","dataFinePickerOptions","slot","saving","add","selectedRangeAnni","periodoFormativo","Object","assign","id","nome","periodiFormativi","length","annoUtileSuccessivo","Math","max","map","m","forEach","f","inizio","push","required","trigger","message","validator","validateDataFine","rule","Error","time","includes","getFullYear","n","o","$refs","form","validate","valid","exists","periodoFormativoService","Exist","$alert","computedTitle","confirmButtonText","type","dangerouslyUseHTMLString","Set","then","periodo","$msgbox","cancelButtonText","showCancelButton","pfDataInizio","pfDataFine","month","getDate","pof","attivo","catch","err","$message","component","command","_l","s","periodoFormativoActionChange","periodoFormativoActionRequiredState","periodoFormativoState","save","periodoFormativoActionRequiredId","pfs","store","getters","filter","computedPeriodoFormativoNome","statiDisponibili","splice","indexOf","options","toSetCurrent","toSetClose","ChangeStatoToCorrente","result","onThen","onCatch","ChangeStatoToPubblicato","showClose","duration","e","console","error","dataFineProrogaPickerOptions","validateDataFineProroga","toString","loading","showChangeState","showRequestProroga","ricalcolaAdempienzaLoading","fetchDataDebounced","debounce","self","fetchData","size","$router","Remove","center","info","pf","Detail","idx","findIndex","find","RicalcoloAdempienzePeriodoFormativo","Count","List","components","ManagePeriodoFormativo","ChangeStatePeriodoFormativo","ProrogaPeriodoFormativo","func","waitMilliseconds","timeoutId","args","context","doLater","undefined","apply","clearTimeout","setTimeout","PianoOffertaFormativaService","data","Delete","pofService"],"mappings":"+LAGA,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,qBAAoB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BD,MAGtC,KAAKA,G,sDACP,aAAaF,KAAKG,IAAI,WAAYD,MAGhC,OAAO4E,G,sDACT,aAAa9E,KAAKG,IAAI,YAAY2E,MAGhC,UAAUyH,G,sDACZ,aAAavM,KAAKM,KAAK,qBAAsBiM,MAG3C,MAAMhM,G,sDACR,aAAaP,KAAKM,KAAK,kBAAmBC,MAGxC,IAAIA,G,sDACN,aAAaP,KAAKM,KAAK,WAAYC,MAGjC,OAAOuE,G,sDACT,aAAa9E,KAAKwM,OAAO,YAAY1H,OAItC,MAAM2H,EAAa,IAAIH,G","file":"js/periodo-formativo.ba96b3d8.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();","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!./changeStatePeriodoFormativo.vue?vue&type=style&index=0&id=666ac7db&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!./prorogaPeriodoFormativo.vue?vue&type=style&index=0&id=033dc8f3&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!./managePeriodoFormativo.vue?vue&type=style&index=0&id=1c60dff6&prod&lang=less&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"container pf-container\"},[_c('header',{staticClass:\"header-tools-container\"},[_c('el-input',{attrs:{\"placeholder\":`Inserisci il nome del periodo formativo da ricercare`,\"clearable\":\"\",\"prefix-icon\":\"el-icon-search\",\"aria-label\":\"Ricerca periodo formativo\"},model:{value:(_vm.query.filter),callback:function ($$v) {_vm.$set(_vm.query, \"filter\", $$v)},expression:\"query.filter\"}}),(_vm.$can(`OFFERTA_FORMATIVA.PF.canCreate`))?_c('el-button',{attrs:{\"type\":\"success\",\"icon\":\"el-icon-plus\",\"aria-label\":\"Aggiungi periodo formativo\"},on:{\"click\":function($event){_vm.showManage = true}}},[_vm._v(\"Aggiungi\")]):_vm._e()],1),_c('div',[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"height\":\"calc(100vh - 176px)\",\"data\":_vm.list,\"show-overflow-tooltip\":\"\",\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"nome\",\"label\":\"Nome\"}}),_c('el-table-column',{attrs:{\"label\":\"Stato\",\"width\":\"148\",\"prop\":\"stato\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('div',{staticClass:\"tags-container\"},[_c('el-tag',{attrs:{\"type\":row.stato === 'prorogato' ? 'obsoleto' : row.stato}},[_vm._v(\" \"+_vm._s(_vm.$t(`periodoFormativo.stati.${row.stato}`))+\" \")])],1)]}}])}),_c('el-table-column',{attrs:{\"label\":\"Data inizio\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_vm._v(_vm._s(row.dataInizio))]}}])}),_c('el-table-column',{attrs:{\"label\":\"Data fine\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_vm._v(_vm._s(row.dataFine))]}}])}),_c('el-table-column',{attrs:{\"label\":\"Data fine proroga\",\"width\":\"132\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [(row.dataFineProroga)?_c('span',[_vm._v(_vm._s(_vm._f(\"formatTime\")(row.dataFineProroga,'DD/MM/YYYY')))]):_c('span',[_vm._v(\"--/--/----\")])]}}])}),(_vm.$can(`OFFERTA_FORMATIVA.POF.enabled`) || _vm.$can(`OFFERTA_FORMATIVA.PF.canEdit`) || _vm.$can(`OFFERTA_FORMATIVA.PF.canDelete`))?_c('el-table-column',{attrs:{\"width\":\"168\",\"class-name\":\"tools\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [(_vm.$can(`OFFERTA_FORMATIVA.POF.enabled`))?_c('el-tooltip',{attrs:{\"content\":\"Piani offerta formativa\"}},[_c('el-button',{attrs:{\"plain\":\"\",\"type\":\"info\",\"icon\":\"el-icon-wallet\",\"aria-label\":\"Mostra piano offerta formativi\"},on:{\"click\":function($event){return _vm.displayPofs(row)}}})],1):_vm._e(),((row.stato === 'chiuso' || row.stato === 'prorogato') && _vm.$can(`OFFERTA_FORMATIVA.PF.canEdit`))?_c('el-tooltip',{attrs:{\"content\":\"Proroga periodo formativo\"}},[_c('el-button',{attrs:{\"plain\":\"\",\"type\":\"obsoleto\",\"icon\":\"far fa-clock\",\"aria-label\":\"Proroga periodo formativo\"},on:{\"click\":function($event){return _vm.handleRequestProroga(row)}}})],1):_vm._e(),(row.stato !== 'chiuso' && row.stato !== 'prorogato' && _vm.$can(`OFFERTA_FORMATIVA.PF.canEdit`))?_c('el-tooltip',{attrs:{\"content\":\"Modifica stato periodo formativo\"}},[_c('el-button',{attrs:{\"plain\":\"\",\"type\":\"warning\",\"icon\":\"fas fa-chess-bishop\",\"aria-label\":\"Modifica stato periodo formativo\"},on:{\"click\":function($event){return _vm.handleChangeState(row)}}})],1):_vm._e(),(row.stato === 'inCompilazione' && _vm.$can(`OFFERTA_FORMATIVA.PF.canDelete`))?_c('el-tooltip',{attrs:{\"content\":\"Proroga periodo formativo\"}},[_c('el-button',{attrs:{\"plain\":\"\",\"type\":\"danger\",\"icon\":\"el-icon-delete\",\"aria-label\":\"Mostra periodo formativo\"},on:{\"click\":function($event){return _vm.handleRemove(row)}}})],1):_vm._e()]}}],null,false,4075928696)}):_vm._e()],1),_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, sizes, prev, pager, next, jumper\"},on:{\"size-change\":_vm.paginationSizeChange,\"current-change\":_vm.paginationPageChange}})],1),(_vm.showManage)?_c('manage-periodo-formativo',{attrs:{\"periodi-formativi\":_vm.list},on:{\"close\":_vm.onCancel,\"change\":_vm.onChange}}):_vm._e(),(_vm.showChangeState)?_c('change-state-periodo-formativo',{attrs:{\"periodo-formativo\":_vm.manage},on:{\"close\":_vm.onCancel,\"published\":_vm.onChange,\"current\":_vm.onChange,\"closed\":_vm.onSetClosed}}):_vm._e(),(_vm.showRequestProroga)?_c('proroga-periodo-formativo',{attrs:{\"periodo-formativo\":_vm.manage},on:{\"close\":_vm.onCancel,\"change\":_vm.onChange}}):_vm._e()],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('el-dialog',{attrs:{\"width\":\"800px\",\"title\":_vm.title,\"visible\":true,\"destroy-on-close\":true,\"close-on-press-escape\":false,\"close-on-click-modal\":false},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('div',{staticClass:\"dialog-container\"},[_c('el-form',{ref:\"form\",attrs:{\"inline\":true,\"label-position\":\"top\",\"rules\":_vm.formRules,\"model\":_vm.manage}},[_c('el-form-item',{attrs:{\"label\":\"Anno inizio\",\"prop\":\"dataInizio\"}},[_c('el-date-picker',{attrs:{\"default-value\":_vm.nextInizioPeriodoFormativo,\"picker-options\":_vm.dataInizioPickerOptions,\"value-format\":\"yyyy\",\"type\":\"year\",\"placeholder\":\"Anno inizio\"},model:{value:(_vm.manage.dataInizio),callback:function ($$v) {_vm.$set(_vm.manage, \"dataInizio\", $$v)},expression:\"manage.dataInizio\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Anno fine\",\"prop\":\"dataFine\"}},[_c('el-date-picker',{attrs:{\"default-value\":new Date(_vm.manage.dataInizio),\"disabled\":!_vm.manage.dataInizio,\"picker-options\":_vm.dataFinePickerOptions,\"value-format\":\"yyyy\",\"type\":\"year\",\"placeholder\":!_vm.manage.dataInizio ? 'Seleziona un anno di inizio' : 'Anno fine'},model:{value:(_vm.manage.dataFine),callback:function ($$v) {_vm.$set(_vm.manage, \"dataFine\", $$v)},expression:\"manage.dataFine\"}})],1),_c('el-form-item',{staticClass:\"nome\",attrs:{\"label\":\"Nome\",\"prop\":\"nome\"}},[_c('el-input',{attrs:{\"label\":\"Nome\"},model:{value:(_vm.manage.nome),callback:function ($$v) {_vm.$set(_vm.manage, \"nome\", $$v)},expression:\"manage.nome\"}})],1)],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"aria-label\":\"Annulla\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"Annulla\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.saving,\"aria-label\":\"Conferma\"},on:{\"click\":_vm.add}},[_vm._v(\"Conferma\")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Watch, Prop } from 'vue-property-decorator';\nimport { periodoFormativoService } from '../services/periodoFormativoService';\nimport { ElForm } from 'element-ui/types/form';\nimport { formatTime } from '@/filters';\nimport { pofService } from '../services/pianoOffertaFormativaService';\n\n@Component({})\nexport default class ManagePeriodoFormativo extends Vue {\n title: string = \"Inserimento nuovo Periodo Formativo\";\n\n @Prop()\n periodoFormativo: periodoFormativo.item;\n\n @Prop()\n periodiFormativi: periodoFormativo.item[];\n\n manage: periodoFormativo.item = null;\n\n nextInizioPeriodoFormativo: Date = new Date();\n selectedRangeAnni: number[] = [];\n created() {\n if (this.periodoFormativo) {\n this.manage = Object.assign({}, this.periodoFormativo);\n } else {\n this.manage = {\n dataFine: null,\n dataInizio: null,\n id: null,\n nome: null,\n dataFineProroga: null\n } as periodoFormativo.item;\n }\n\n if (this.periodiFormativi && this.periodiFormativi.length > 0) {\n const annoUtileSuccessivo = (Math.max(...this.periodiFormativi.map(m => m.dataFine)) + 1);\n this.nextInizioPeriodoFormativo = new Date(annoUtileSuccessivo, 0, 1);\n this.periodiFormativi.forEach(f => {\n let inizio: number = f.dataInizio;\n while (inizio <= f.dataFine) {\n this.selectedRangeAnni.push(inizio);\n inizio++;\n }\n })\n }\n }\n\n get formRules() {\n return {\n nome: [{ required: true, trigger: 'blur', message: `Il campo 'Nome' è obbligatorio` }],\n dataInizio: [{ required: true, trigger: 'blur', message: `Il campo 'Data inizio' è obbligatorio` }],\n dataFine: [{ validator: this.validateDataFine }]\n };\n }\n\n validateDataFine(rule, value, callback) {\n if (!value || value === '') {\n callback(new Error(\"Il campo 'Data fine' è obbligatorio\"))\n } else if (value <= this.manage.dataInizio) {\n callback(new Error(\"Il campo 'Data fine' deve essere superiore alla 'Data inizio'\"))\n } else {\n callback();\n }\n }\n\n get dataInizioPickerOptions() {\n const _self = this;\n return {\n disabledDate(time: Date) {\n if (_self.selectedRangeAnni.includes(time.getFullYear())) {\n return true;\n }\n\n if (!_self.manage.dataFine) return false;\n return time.getFullYear() > _self.manage.dataFine;\n }\n };\n }\n\n get dataFinePickerOptions() {\n const _self = this;\n return {\n disabledDate(time: Date) {\n if (!_self.manage.dataInizio) return false;\n return time.getFullYear() <= _self.manage.dataInizio;\n }\n };\n }\n\n get computedTitle() {\n if (!this.manage || (this.manage && (!this.manage.dataInizio || !this.manage.dataFine)))\n return null;\n return `Periodo Formativo ${this.manage.dataInizio}-${this.manage.dataFine}`;\n }\n\n @Watch('computedTitle')\n dateRangeChange(n, o) {\n if (n && n !== o && (!this.manage.nome || this.manage.nome === o)) {\n this.manage.nome = n;\n (this.$refs.form as ElForm)?.validate();\n }\n }\n\n saving: boolean = false;\n async add() {\n (this.$refs.form as ElForm)?.validate(async valid => {\n if (valid) {\n this.saving = true;\n if (!this.manage.id) {\n const exists = await periodoFormativoService.Exist({ dataInizio: this.manage.dataInizio, dataFine: this.manage.dataFine } as periodoFormativo.exist);\n if (exists) {\n this.$alert(`Il ${this.computedTitle} si sovrappone ad un periodo formativo esistente`, 'Attenzione!', {\n confirmButtonText: 'Ok',\n type: \"warning\",\n dangerouslyUseHTMLString: true\n })\n this.saving = false;\n return;\n }\n }\n\n periodoFormativoService.Set(this.manage).then((periodo) => {\n this.$msgbox({\n title: `Aggiungere i Piani offerta formativa`,\n message: `Il ${this.computedTitle} è stato aggiunto correttamente!
Si vuole aggiungere i Piani offerta formativa per il nuovo periodo formativo?`,\n confirmButtonText: `Si`,\n cancelButtonText: `No`,\n showCancelButton: true,\n dangerouslyUseHTMLString: true,\n type: 'success'\n }).then(async () => {\n let pfDataInizio = periodo.dataInizio;\n let pfDataFine = periodo.dataFine;\n while (pfDataInizio <= pfDataFine) {\n for (let month = 0; month < 11; month = (month + 2)) {\n const dataInizio = new Date(pfDataInizio, month, 1);\n const dataFine = new Date(pfDataInizio, (month + 1), new Date(pfDataInizio, month + 2, 0).getDate());\n const pof: pianoOffertaFormativa.item = {\n id: null,\n periodoFormativoId: periodo.id,\n nome: `Piano offerta formativa ${formatTime(dataInizio, 'MMMM yyyy')} - ${formatTime(dataFine, 'MMMM yyyy')}`,\n dataInizio: formatTime(dataInizio, \"YYYY-MM-DD\"),\n dataFine: formatTime(dataFine, \"YYYY-MM-DD\"),\n attivo: false\n }\n await pofService.Set(pof);\n }\n pfDataInizio++;\n }\n\n this.saving = false;\n this.$emit('change', periodo.id);\n }).catch(() => {\n this.saving = false;\n this.$emit('change', periodo.id);\n });\n\n }).catch((err) => {\n this.$message({\n message: `Errore durante la creazione del ${this.computedTitle}`,\n type: 'error'\n })\n })\n }\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!./managePeriodoFormativo.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!./managePeriodoFormativo.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./managePeriodoFormativo.vue?vue&type=template&id=1c60dff6&scoped=true\"\nimport script from \"./managePeriodoFormativo.ts?vue&type=script&lang=ts&external\"\nexport * from \"./managePeriodoFormativo.ts?vue&type=script&lang=ts&external\"\nimport style0 from \"./managePeriodoFormativo.vue?vue&type=style&index=0&id=1c60dff6&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 \"1c60dff6\",\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('el-dialog',{attrs:{\"width\":\"640px\",\"title\":\"Cambio di stato al Periodo Formativo\",\"visible\":true,\"destroy-on-close\":true,\"close-on-press-escape\":false,\"close-on-click-modal\":false},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('div',{staticClass:\"dialog-container\"},[_c('el-form',{ref:\"form\",attrs:{\"inline\":true,\"label-position\":\"top\",\"rules\":_vm.formRules,\"model\":_vm.command}},[_c('el-form-item',{attrs:{\"label\":\"Stato successivo\",\"prop\":\"periodoFormativoState\"}},[_c('el-select',{attrs:{\"placeholder\":\"Seleziona lo stato del periodo formativo\",\"clearable\":\"\"},model:{value:(_vm.command.periodoFormativoState),callback:function ($$v) {_vm.$set(_vm.command, \"periodoFormativoState\", $$v)},expression:\"command.periodoFormativoState\"}},_vm._l((_vm.stati),function(s){return _c('el-option',{key:s,attrs:{\"label\":_vm.$t(`periodoFormativo.stati.${s}`),\"value\":s}})}),1)],1),(_vm.periodoFormativoActionChange.required)?_c('el-form-item',{attrs:{\"label\":`Seleziona il periodo formativo da impostare a ${_vm.$t(\n `periodoFormativo.stati.${this.command.periodoFormativoActionRequiredState}`\n )}`,\"prop\":\"periodoFormativoActionRequiredId\"}},[_c('el-tag',{attrs:{\"type\":\"warning\"}},[_c('i',{staticClass:\"fas fa-exclamation-triangle\"}),_vm._v(\" La richiesta di impostare lo stato del periodo formativo \"+_vm._s(_vm.periodoFormativo.dataInizio)+\"-\"+_vm._s(_vm.periodoFormativo.dataFine)+\" a \"+_vm._s(_vm.$t(`periodoFormativo.stati.${this.command.periodoFormativoState}`))),_c('br'),_vm._v(\"richiede che sia selezionato il periodo formativo da impostare a \"+_vm._s(_vm.$t(`periodoFormativo.stati.${this.command.periodoFormativoActionRequiredState}`))+\" \")]),_c('el-select',{attrs:{\"placeholder\":`Seleziona il periodo formativo da impostare a ${_vm.$t(\n `periodoFormativo.stati.${this.command.periodoFormativoActionRequiredState}`\n )}`,\"clearable\":\"\"},model:{value:(_vm.command.periodoFormativoActionRequiredId),callback:function ($$v) {_vm.$set(_vm.command, \"periodoFormativoActionRequiredId\", $$v)},expression:\"command.periodoFormativoActionRequiredId\"}},_vm._l((_vm.periodoFormativoActionChange.options),function(s){return _c('el-option',{key:s.id,attrs:{\"label\":s.nome,\"value\":s.id}})}),1)],1):_vm._e()],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"aria-label\":\"Annulla\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"Annulla\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.saving,\"aria-label\":\"Conferma\"},on:{\"click\":_vm.save}},[_vm._v(\"Conferma\")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { store } from '@/store';\nimport { ElForm } from 'element-ui/types/form';\nimport { Vue, Component, Watch, Prop } from 'vue-property-decorator';\nimport { periodoFormativoService } from '../services/periodoFormativoService';\n\n@Component({})\nexport default class ChangeStatePeriodoFormativo extends Vue {\n @Prop({ required: true })\n periodoFormativo: periodoFormativo.item;\n\n periodiFormativi: periodoFormativo.item[] = [];\n\n command: {\n periodoFormativoId: string,\n periodoFormativoState: 'pubblicato' | 'corrente' | 'chiuso',\n periodoFormativoActionRequiredId: string,\n periodoFormativoActionRequiredState: 'corrente' | 'chiuso',\n } = {\n periodoFormativoId: null,\n periodoFormativoState: null,\n periodoFormativoActionRequiredId: null,\n periodoFormativoActionRequiredState: null,\n }\n\n async created() {\n this.command.periodoFormativoId = this.periodoFormativo.id;\n const pfs = store.getters.periodiFormativi.list();\n this.periodiFormativi = pfs.filter(f => f.id !== this.periodoFormativo.id);\n }\n\n get computedPeriodoFormativoNome() {\n return `periodo formativo ${this.periodoFormativo.dataInizio}-${this.periodoFormativo.dataFine}`\n }\n\n get formRules() {\n return {\n periodoFormativoState: [{ required: true, trigger: \"change\", message: `E' obbligatorio selezionare lo stato successivo del ${this.computedPeriodoFormativoNome} che si trova in stato ${this.$t(`periodoFormativo.stati.${this.periodoFormativo.stato}`)}` }],\n periodoFormativoActionRequiredId: [{ required: true, trigger: \"change\", message: `E' obbligatorio selezionare il periodo formativo da impostare a ${this.$t(`periodoFormativo.stati.${this.command.periodoFormativoActionRequiredState}`)}` }],\n }\n }\n\n get stati(): string[] {\n const statiDisponibili = ['inCompilazione', 'pubblicato', 'corrente', 'chiuso'];\n statiDisponibili.splice(0, statiDisponibili.indexOf(this.periodoFormativo.stato) + 1);\n return statiDisponibili;\n }\n\n get periodoFormativoActionChange(): { required: boolean, options: periodoFormativo.item[] } {\n switch (this.command.periodoFormativoState) {\n case 'corrente': {\n this.command.periodoFormativoActionRequiredState = 'chiuso';\n return { required: true, options: this.periodiFormativi.filter(f => f.stato === 'corrente') }\n }\n case 'chiuso':\n this.command.periodoFormativoActionRequiredState = 'corrente';\n return { required: true, options: this.periodiFormativi.filter(f => f.stato === 'pubblicato') }\n default:\n this.command.periodoFormativoActionRequiredState = null;\n return { required: false, options: [] }\n }\n }\n\n saving: boolean = false;\n save() {\n (this.$refs.form as ElForm).validate(valid => {\n if (valid) {\n if (this.periodoFormativoActionChange.required) {\n let toSetCurrent = this.command.periodoFormativoId;\n let toSetClose = this.command.periodoFormativoActionRequiredId;\n\n if (this.command.periodoFormativoActionRequiredState === 'corrente') {\n toSetCurrent = this.command.periodoFormativoActionRequiredId;\n toSetClose = this.command.periodoFormativoId\n }\n periodoFormativoService.ChangeStatoToCorrente(toSetCurrent, toSetClose)\n .then((result => {\n this.$emit(\"current\", toSetCurrent);\n this.$emit(\"closed\", toSetClose);\n this.onThen(result);\n }))\n .catch(this.onCatch)\n }\n else {\n periodoFormativoService.ChangeStatoToPubblicato(this.command.periodoFormativoId)\n .then((result => {\n this.$emit(\"published\", this.command.periodoFormativoId);\n this.onThen(result);\n }))\n .catch(this.onCatch)\n }\n }\n })\n }\n\n private onThen(result: periodoFormativo.item | periodoFormativo.item[]) {\n this.$message({\n message: `Lo stato del ${this.computedPeriodoFormativoNome} è stato cambiato correttamente a ${this.$t(`periodoFormativo.stati.${this.command.periodoFormativoState}`)}`,\n showClose: true,\n dangerouslyUseHTMLString: true,\n type: 'success',\n duration: 5 * 1000\n })\n this.$emit(\"close\");\n }\n\n private onCatch(e: any) {\n console.error(e);\n this.$message({\n message: `Si è verificato un errore nel cambio di stato per il ${this.computedPeriodoFormativoNome} a ${this.$t(`periodoFormativo.stati.${this.command.periodoFormativoState}`)}.
Si prega di compilare nuovamente il form, di controllarne la correttezza e riprovare.`,\n showClose: true,\n dangerouslyUseHTMLString: true,\n type: 'error',\n duration: 5 * 1000\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!./changeStatePeriodoFormativo.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!./changeStatePeriodoFormativo.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./changeStatePeriodoFormativo.vue?vue&type=template&id=666ac7db&scoped=true\"\nimport script from \"./changeStatePeriodoFormativo.ts?vue&type=script&lang=ts&external\"\nexport * from \"./changeStatePeriodoFormativo.ts?vue&type=script&lang=ts&external\"\nimport style0 from \"./changeStatePeriodoFormativo.vue?vue&type=style&index=0&id=666ac7db&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 \"666ac7db\",\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 (_vm.periodoFormativo)?_c('el-dialog',{attrs:{\"width\":\"800px\",\"title\":`Proroga Periodo Formativo ${_vm.periodoFormativo.dataInizio} - ${_vm.periodoFormativo.dataFine}`,\"visible\":true,\"destroy-on-close\":true,\"close-on-press-escape\":false,\"close-on-click-modal\":false},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('div',{staticClass:\"dialog-container\"},[_c('el-form',{ref:\"form\",attrs:{\"inline\":true,\"label-position\":\"top\",\"rules\":_vm.formRules,\"model\":_vm.manage}},[_c('el-form-item',{attrs:{\"label\":\"Data di scadenza della Proroga\",\"prop\":\"dataFineProroga\"}},[_c('el-date-picker',{attrs:{\"picker-options\":_vm.dataFineProrogaPickerOptions,\"type\":\"date\",\"value-format\":\"yyyy-MM-dd\",\"format\":\"dd/MM/yyyy\",\"placeholder\":\"Seleziona la data di scadenza della Proroga\",\"aria-label\":\"Data scadenza proroga\"},model:{value:(_vm.manage.dataFineProroga),callback:function ($$v) {_vm.$set(_vm.manage, \"dataFineProroga\", $$v)},expression:\"manage.dataFineProroga\"}})],1)],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"aria-label\":\"Annulla\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"Annulla\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.saving,\"aria-label\":\"Conferma\"},on:{\"click\":_vm.add}},[_vm._v(\"Conferma\")])],1)]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Prop } from 'vue-property-decorator';\nimport { periodoFormativoService } from '../services/periodoFormativoService';\nimport { ElForm } from 'element-ui/types/form';\n\n@Component({})\nexport default class ProrogaPeriodoFormativo extends Vue {\n @Prop()\n periodoFormativo: periodoFormativo.item;\n\n manage: periodoFormativo.item = null;\n created() {\n if (this.periodoFormativo) {\n this.manage = Object.assign({}, this.periodoFormativo);\n }\n }\n\n get formRules() {\n return {\n dataFineProroga: [{ validator: this.validateDataFineProroga }]\n };\n }\n\n validateDataFineProroga(rule, value: Date, callback) {\n if (!value || value.toString() === '') {\n callback(new Error(\"Il campo 'Data Fine Proroga' è obbligatorio\"))\n } else if (value <= new Date(this.manage.dataFine, 12, 31, 23, 59, 59)) {\n callback(new Error(\"La 'Data Fine Proroga' deve essere superiore al valore 'Data Fine' del Periodo Formativo\"))\n } else {\n callback();\n }\n }\n\n get dataFineProrogaPickerOptions() {\n const _self = this;\n return {\n disabledDate(time: Date) {\n if (!_self.manage.dataFine) return false;\n return time.getFullYear() <= _self.manage.dataFine;\n }\n };\n }\n\n saving: boolean = false;\n async add() {\n (this.$refs.form as ElForm)?.validate(async valid => {\n if (valid) {\n this.saving = true;\n periodoFormativoService.Set(this.manage).then((periodo) => {\n this.$message({\n message: `Il periodo formativo ${this.periodoFormativo.dataInizio} - ${this.periodoFormativo.dataFine} è stato prorogato correttamente`,\n type: 'success'\n });\n this.saving = false;\n this.$emit('change', periodo.id);\n this.$emit('close');\n }).catch((err) => {\n this.$message({\n message: `Errore durante la proroga del periodo formativo ${this.periodoFormativo.dataInizio} - ${this.periodoFormativo.dataFine}`,\n type: 'error'\n })\n })\n }\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!./prorogaPeriodoFormativo.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!./prorogaPeriodoFormativo.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./prorogaPeriodoFormativo.vue?vue&type=template&id=033dc8f3&scoped=true\"\nimport script from \"./prorogaPeriodoFormativo.ts?vue&type=script&lang=ts&external\"\nexport * from \"./prorogaPeriodoFormativo.ts?vue&type=script&lang=ts&external\"\nimport style0 from \"./prorogaPeriodoFormativo.vue?vue&type=style&index=0&id=033dc8f3&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 \"033dc8f3\",\n null\n \n)\n\nexport default component.exports","import { Vue, Component, Watch } from 'vue-property-decorator';\nimport { debounce } from '@/services/_base/debounce';\nimport { periodoFormativoService } from '../services/periodoFormativoService';\nimport { creditiService } from '../services/creditiService';\nimport ManagePeriodoFormativo from '../components/managePeriodoFormativo.vue';\nimport ChangeStatePeriodoFormativo from '../components/changeStatePeriodoFormativo.vue';\nimport ProrogaPeriodoFormativo from '../components/prorogaPeriodoFormativo.vue';\n\n@Component({\n components: {\n ManagePeriodoFormativo,\n ChangeStatePeriodoFormativo,\n ProrogaPeriodoFormativo\n }\n})\nexport default class PeriodoFormativo extends Vue {\n query: periodoFormativo.queryParams = {\n page: 1,\n take: 20,\n stato: null,\n filter: null\n };\n\n pagination: { pageSizes: number[]; total: number } = {\n pageSizes: [20, 40, 60],\n total: 0\n };\n\n list: periodoFormativo.item[] = [];\n\n loading: boolean = false;\n showManage: boolean = false;\n\n\n async created() {\n this.loading = true;\n await this.fetchData();\n }\n\n @Watch('query.filter')\n filterChanged(n, o) {\n if (n !== o) this.fetchDataDebounced(this);\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 displayPofs(row: periodoFormativo.item) {\n this.$router.push({ name: \"pof\", params: { periodoFormativoId: row.id } });\n }\n\n\n manage: periodoFormativo.item = null;\n\n showChangeState: boolean = false;\n handleChangeState(row: periodoFormativo.item) {\n this.manage = Object.assign({}, row);\n this.showChangeState = true;\n }\n\n showRequestProroga: boolean = false;\n handleRequestProroga(row: periodoFormativo.item) {\n this.manage = Object.assign({}, row);\n this.showRequestProroga = true;\n }\n\n async onCancel() {\n this.showManage = false;\n this.showChangeState = false;\n this.showRequestProroga = false;\n this.manage = null;\n }\n\n async handleRemove(row: periodoFormativo.item) {\n this.$msgbox({\n title: `Attenzione`,\n message: `Il periodo formativo ${row.nome} verrà cancellato definitivamente. Continuare?`,\n showCancelButton: true,\n confirmButtonText: `Si`,\n cancelButtonText: `Annulla`,\n dangerouslyUseHTMLString: true,\n type: 'warning'\n })\n .then(async () => {\n try {\n await periodoFormativoService.Remove(row.id);\n this.fetchData();\n this.$message({\n message: `Eliminazione del periodo formativo ${row.nome} effettuato con successo.`,\n dangerouslyUseHTMLString: true,\n duration: 5 * 1000,\n center: true,\n showClose: true,\n type: 'success'\n });\n } catch (err) {\n this.$message({\n message: \"Errore durante l'eliminazione del periodo formativo\",\n duration: 5 * 1000,\n center: true,\n showClose: true,\n type: 'error'\n });\n }\n })\n .catch(err => {\n console.info(err);\n });\n }\n\n async onChange(periodoFormativoId: string) {\n const pf = await periodoFormativoService.Detail(periodoFormativoId);\n const idx = this.list.findIndex(f => f.id === periodoFormativoId);\n if (idx >= 0) {\n this.list.splice(idx, 1, pf);\n } else {\n this.list.push(pf);\n }\n this.showManage = false;\n }\n\n ricalcolaAdempienzaLoading: boolean = false;\n async onSetClosed(periodoFormativoId: string) {\n await this.onChange(periodoFormativoId);\n const pf = this.list.find(f => f.id === periodoFormativoId);\n if (pf.stato === 'chiuso' && this.$can('CREDITI_GIORNALISTA.ricalcolaAdempienzePeriodoFormativo')) {\n this.$msgbox({\n title: \"Ricalcolo dell'adempienza\",\n message: `Aggiornare il flag dell'adempienza per tutti i giornalisti iscritti a https://formazionegiornalisti.it al periodo formativo ${pf.dataInizio}-${pf.dataFine} appena chiuso?
\n L'operazione di aggiornamento del flag di adempienza è una operazione non reversibile che può richiedere diversi minuti.
\n Continuare?`,\n showCancelButton: true,\n confirmButtonText: \"Si\",\n cancelButtonText: \"No\",\n type: \"info\",\n dangerouslyUseHTMLString: true\n })\n .then(() => {\n this.loading = true\n creditiService.RicalcoloAdempienzePeriodoFormativo(periodoFormativoId).then(() => {\n this.ricalcolaAdempienzaLoading = false;\n }).catch(() => {\n this.ricalcolaAdempienzaLoading = false;\n });\n this.loading = false;\n })\n .catch(() => { });\n }\n }\n\n\n async pageChanged(page: number) {\n this.query.page = page - 1;\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 periodoFormativoService.Count(this.query);\n this.list = await periodoFormativoService.List(this.query);\n this.loading = false;\n } catch (err) {\n this.loading = false;\n this.$message({\n message: 'Errore durante il recupero dei periodi formativi',\n duration: 5 * 1000,\n showClose: true,\n type: 'error'\n });\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!./periodoFormativo.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!./periodoFormativo.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./periodoFormativo.vue?vue&type=template&id=58ec8e12\"\nimport script from \"./periodoFormativo.ts?vue&type=script&lang=ts&external\"\nexport * from \"./periodoFormativo.ts?vue&type=script&lang=ts&external\"\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 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}","import { baseRestService } from \"@/services/_base/baseRestService\";\nimport settings from \"@/settings\";\n\nclass PianoOffertaFormativaService extends baseRestService {\n constructor() {\n super();\n this.baseUrl = () => settings.baseUrl;\n }\n\n async Count(params?: pianoOffertaFormativa.queryParams): Promise {\n return await this.Get('/api/pof/count', params);\n }\n\n async List(params?: pianoOffertaFormativa.queryParams): Promise {\n return await this.Get(`/api/pof`, params);\n }\n\n async Detail(id: string): Promise {\n return await this.Get(`/api/pof/${id}`);\n }\n\n async GetByDate(data: Date): Promise {\n return await this.Post('/api/pof/getByDate', data);\n }\n\n async Exist(item: pianoOffertaFormativa.exist) {\n return await this.Post('/api/pof/exists', item);\n }\n\n async Set(item: pianoOffertaFormativa.item): Promise {\n return await this.Post('/api/pof', item);\n }\n\n async Remove(id: string) {\n return await this.Delete(`/api/pof/${id}`);\n }\n}\n\nexport const pofService = new PianoOffertaFormativaService();"],"sourceRoot":""}