{"version":3,"sources":["webpack:///./wwwroot/src/vue/areas/dlg-cert/components/forms/ManagementForm.vue?0d8f","webpack:///wwwroot/src/vue/areas/dlg-cert/components/forms/ManagementForm.vue","webpack:///./wwwroot/src/vue/areas/dlg-cert/components/forms/ManagementForm.vue?9f86","webpack:///./wwwroot/src/vue/areas/dlg-cert/components/forms/ManagementForm.vue","webpack:///./wwwroot/src/vue/areas/dlg-cert/components/forms/ManagementForm.vue?1098","webpack:///./wwwroot/src/vue/areas/dlg-cert/components/forms/shared/LoadingWrapper.vue?afe1","webpack:///./wwwroot/src/vue/areas/dlg-cert/components/forms/shared/LoadingWrapper.vue?b77c","webpack:///wwwroot/src/vue/areas/dlg-cert/components/forms/shared/LoadingWrapper.vue","webpack:///./wwwroot/src/vue/areas/dlg-cert/components/forms/shared/LoadingWrapper.vue?25f5","webpack:///./wwwroot/src/vue/areas/dlg-cert/components/forms/shared/LoadingWrapper.vue","webpack:///./wwwroot/src/vue/areas/dlg-cert/mixins/ApiMixin.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","loading","staticClass","_v","_s","form","icon","rounded","on","click","$event","downloadFile","class","fileWasUploaded","openFileSelection","fileName","href","fileRef","download","data-ajax","deleteFile","_e","ref","type","name","accept","change","uploadForm","staticRenderFns","saveFile","data","filename","url","window","URL","createObjectURL","Blob","link","document","createElement","setAttribute","dataset","ajax","body","appendChild","remove","ManagementFormvue_type_script_lang_js_","components","IxButton","LoadingWrapper","mixins","ApiMixin","props","String","computed","apiUrl","concat","$route","params","orgUnitId","year","undefined","uploadedFile","methods","api","get","responseType","then","response","headers","split","map","str","trim","find","startsWith","Object","lodash","formName","$refs","fileInput","_deleteFile","asyncToGenerator","regeneratorRuntime","mark","_callee","_this","wrap","_context","prev","next","delete","catch","error","infrastructure","warning","stop","apply","arguments","_uploadForm","_callee2","file","uploadedOn","formData","_this2","_context2","target","files","moment_default","format","FormData","append","post","Content-Type","value","t0","_x","forms_ManagementFormvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ManagementForm_vue_vue_type_style_index_0_id_6098ab4e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ManagementForm_vue_vue_type_style_index_0_id_6098ab4e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default","n","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LoadingWrapper_vue_vue_type_style_index_0_id_29d4961f_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_LoadingWrapper_vue_vue_type_style_index_0_id_29d4961f_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default","mode","_t","LoadingWrappervue_type_script_lang_js_","Boolean","shared_LoadingWrappervue_type_script_lang_js_","axios","create","baseURL","manualCompleteSections","loadData","_loadData","C_src_Solutions_WebApp_node_modules_babel_runtime_corejs2_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_6__","sent","finished","_objectSpread","console","finish","update","_update","_ref","oldValue","abrupt","isNaN","set","$nextTick","fieldStates","put","beforeRouteEnter","to","from","vm"],"mappings":"kJAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,kBAA4BE,MAAA,CAAOC,QAAAP,EAAAO,UAAuB,CAAAH,EAAA,OAAYI,YAAA,cAAyB,CAAAJ,EAAA,SAAAJ,EAAAS,GAAAT,EAAAU,GAAA,sBAAAV,EAAAW,KAAA,eAAAP,EAAA,YAA+FI,YAAA,kBAAAF,MAAA,CAAqCM,KAAA,WAAAC,QAAA,IAA+BC,GAAA,CAAKC,MAAA,SAAAC,GAAyB,OAAAhB,EAAAiB,aAAA,WAAkC,CAAAb,EAAA,SAAAJ,EAAAS,GAAAT,EAAAU,GAAA,8BAAAV,EAAAW,KAAA,uBAAAP,EAAA,YAA+GI,YAAA,kBAAAF,MAAA,CAAqCM,KAAA,WAAAC,QAAA,IAA+BC,GAAA,CAAKC,MAAA,SAAAC,GAAyB,OAAAhB,EAAAiB,aAAA,WAAkC,CAAAb,EAAA,SAAAJ,EAAAS,GAAAT,EAAAU,GAAA,8BAAAV,EAAAW,KAAA,+BAAAP,EAAA,YAAuHI,YAAA,kBAAAU,MAAA,CAAAlB,EAAAmB,gBAAA,kDAAAb,MAAA,CAAsHM,KAAA,SAAAC,QAAA,IA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iBAAItE,KAAKmC,KAAMN,GAE5B0F,IAAUiC,EAhBT,CAAA1C,EAAAf,KAAA,eAAAe,EAAA2C,OAAA,oBAiBgB,kBAAVlC,IAAsBmC,MAAMnC,GAjBlC,CAAAT,EAAAf,KAAA,eAAAe,EAAA2C,OAAA,wBAmBLE,iBAAI3J,KAAKmC,KAAMN,EAAM0F,GAnBhBT,EAAAf,KAAA,EAqBC/F,KAAK4J,YArBN,WAuBD5J,KAAK6J,aAA0C,UAA3B7J,KAAK6J,YAAYhI,GAvBpC,CAAAiF,EAAAf,KAAA,gBAAAe,EAAA2C,OAAA,qBAAA3C,EAAAhB,KAAA,IA0BCyB,GAAmB,IAAVA,EA1BV,CAAAT,EAAAf,KAAA,gBAAAe,EAAAf,KAAA,GA2BK/F,KAAKqE,IAAIyF,IAAT,GAAAjG,OAAgBhC,EAAhB,KAAAgC,OAAwB0D,IA3B7B,QAAAT,EAAAf,KAAA,wBAAAe,EAAAf,KAAA,GA6BK/F,KAAKqE,IAAI2B,OAAT,GAAAnC,OAAmBhC,IA7BxB,QAAAiF,EAAAf,KAAA,iBAAAe,EAAAhB,KAAA,GAAAgB,EAAAU,GAAAV,EAAA,aAgCHqC,QAAQjD,MAARY,EAAAU,IACAmC,iBAAI3J,KAAKmC,KAAMN,EAAM2H,GAjClB,yBAAA1C,EAAAT,SAAAI,EAAAzG,KAAA,uBAAAqJ,EAAA5B,GAAA,OAAA6B,EAAAhD,MAAAtG,KAAAuG,WAAA,OAAA8C,EAAA,IAqCTU,iBAtDa,SAsDKC,EAAIC,EAAMlE,GAC1BA,EAAK,SAAAmE,GACHA,EAAGrB","file":"js/chunk-e4e3e34a.a94849fa.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('LoadingWrapper',{attrs:{\"loading\":_vm.loading}},[_c('div',{staticClass:\"button-box\"},[_c('IxRes',[_vm._v(_vm._s((\"dlgCert.management.\" + _vm.form + \"HelpText\")))]),_c('IxButton',{staticClass:\"upload-file-btn\",attrs:{\"icon\":\"download\",\"rounded\":\"\"},on:{\"click\":function($event){return _vm.downloadFile('form')}}},[_c('IxRes',[_vm._v(_vm._s((\"dlgCert.management.buttons.\" + _vm.form + \"DownloadForm\")))])],1),_c('IxButton',{staticClass:\"upload-file-btn\",attrs:{\"icon\":\"download\",\"rounded\":\"\"},on:{\"click\":function($event){return _vm.downloadFile('help')}}},[_c('IxRes',[_vm._v(_vm._s((\"dlgCert.management.buttons.\" + _vm.form + \"DownloadInstructions\")))])],1),_c('IxButton',{staticClass:\"upload-file-btn\",class:[_vm.fileWasUploaded ? 'btn-secondary custom-colored-btn' : 'btn-primary'],attrs:{\"icon\":\"upload\",\"rounded\":\"\"},on:{\"click\":function($event){return _vm.openFileSelection(_vm.fileName)}}},[_c('IxRes',[_vm._v(_vm._s((\"dlgCert.management.buttons.\" + (_vm.fileWasUploaded ? 'uploadNewerForm' : 'uploadForm'))))])],1),(_vm.fileWasUploaded)?_c('div',{staticClass:\"uploaded-file-container\"},[_c('a',{attrs:{\"href\":_vm.fileRef,\"download\":_vm.fileName,\"data-ajax\":\"false\"}},[_vm._v(_vm._s(_vm.fileName))]),_c('IxButton',{attrs:{\"icon\":\"trash\"},on:{\"click\":_vm.deleteFile}})],1):_vm._e(),_c('input',{ref:\"fileInput\",staticClass:\"fileinput\",attrs:{\"type\":\"file\",\"name\":\"file\",\"accept\":\".doc, .docx\"},on:{\"change\":_vm.uploadForm}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ManagementForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ManagementForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ManagementForm.vue?vue&type=template&id=6098ab4e&scoped=true&\"\nimport script from \"./ManagementForm.vue?vue&type=script&lang=js&\"\nexport * from \"./ManagementForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ManagementForm.vue?vue&type=style&index=0&id=6098ab4e&lang=scss&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 \"6098ab4e\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ManagementForm.vue?vue&type=style&index=0&id=6098ab4e&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ManagementForm.vue?vue&type=style&index=0&id=6098ab4e&lang=scss&scoped=true&\"","import mod from \"-!../../../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoadingWrapper.vue?vue&type=style&index=0&id=29d4961f&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoadingWrapper.vue?vue&type=style&index=0&id=29d4961f&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"loading-wrapper\"},[_c('transition',{attrs:{\"mode\":\"out-in\"}},[(_vm.loading)?_c('span',[_vm._v(\"Loading...\")]):_c('div',{staticClass:\"loaded-content\"},[_vm._t(\"default\")],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n Loading...\r\n \r\n \r\n
\r\n \r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoadingWrapper.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoadingWrapper.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LoadingWrapper.vue?vue&type=template&id=29d4961f&scoped=true&lang=html&\"\nimport script from \"./LoadingWrapper.vue?vue&type=script&lang=js&\"\nexport * from \"./LoadingWrapper.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LoadingWrapper.vue?vue&type=style&index=0&id=29d4961f&lang=scss&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 \"29d4961f\",\n null\n \n)\n\nexport default component.exports","import axios from 'axios'\r\n\r\nimport {get, set} from 'lodash'\r\n\r\nexport default {\r\n data () {\r\n return {\r\n loading: true,\r\n data: null\r\n }\r\n },\r\n computed: {\r\n api () {\r\n return axios.create({\r\n baseURL: this.apiUrl\r\n })\r\n },\r\n manualCompleteSections () {\r\n return {}\r\n }\r\n },\r\n methods: {\r\n async loadData () {\r\n this.loading = true\r\n try {\r\n this.data = (await this.api.get()).data\r\n this.data.finished = {...this.manualCompleteSections, ...this.data.finished}\r\n } catch (error) {\r\n console.error(error)\r\n // TODO error state display\r\n } finally {\r\n this.loading = false\r\n }\r\n },\r\n async update ({name, value}) {\r\n const oldValue = get(this.data, name)\r\n\r\n if (value === oldValue) return\r\n if (typeof value !== 'string' && isNaN(value)) return\r\n\r\n set(this.data, name, value)\r\n\r\n await this.$nextTick()\r\n\r\n if (this.fieldStates && this.fieldStates[name] === 'error') return\r\n\r\n try {\r\n if (value || value === 0) {\r\n await this.api.put(`${name}/${value}`)\r\n } else {\r\n await this.api.delete(`${name}`)\r\n }\r\n } catch (error) {\r\n console.error(error)\r\n set(this.data, name, oldValue)\r\n }\r\n }\r\n },\r\n beforeRouteEnter (to, from, next) {\r\n next(vm => {\r\n vm.loadData()\r\n })\r\n }\r\n}\r\n"],"sourceRoot":""}