{"version":3,"sources":["webpack:///./src/components/molecules/formTextBlock/FormTextBlock.vue?f5eb","webpack:///./src/components/molecules/formTextBlock/FormTextBlock.vue","webpack:///./src/components/molecules/formTextBlock/FormTextBlock.vue?80d3","webpack:///./src/components/molecules/formTextBlock/FormTextBlock.vue?7c51","webpack:///./src/components/pages/tools/DeleteObsoleteUserUploadedFiles.vue?bd0a","webpack:///./src/components/pages/tools/DeleteObsoleteUserUploadedFiles.vue","webpack:///./src/components/pages/tools/DeleteObsoleteUserUploadedFiles.vue?98eb","webpack:///./src/components/pages/tools/DeleteObsoleteUserUploadedFiles.vue?e82f","webpack:///./src/mixins/formElementMixin.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","model","disabled","content","text","_e","staticClass","class","hasErrors","attrs","fullWidth","showInfoIcon","showSummary","domProps","_s","staticRenderFns","extend","name","components","FormRow","InfoIconWrapper","props","type","Object","default","Boolean","computed","validations","$anyError","component","spinner","on","$event","showLayer","deleteMessage","scopedSlots","_u","key","fn","proxy","deleteObsoleteUserUploadedFiles","SpinnerArea","FormTextBlock","AppButton","AppLayer","AppContent","data","off","methods","confirmDelete","cleanMessages","Promise","transparent","getFormElementMixin","inject","injectedFormField","from","configuration","formField"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAASF,EAAIM,MAAMC,UAAiC,OAArBP,EAAIQ,QAAQC,KAAmYT,EAAIU,KAAxXN,EAAG,UAAU,CAACO,YAAY,eAAeC,MAAM,CAAE,aAAcZ,EAAIa,WAAYC,MAAM,CAAC,aAAad,EAAIe,YAAY,CAACX,EAAG,kBAAkB,CAACU,MAAM,CAAC,iBAAiBd,EAAIgB,eAAiBhB,EAAIiB,YAAY,QAAUjB,EAAIQ,QAAQ,MAAQR,EAAIM,MAAM,YAAY,GAAG,iBAAiB,KAAK,CAACF,EAAG,OAAO,CAACO,YAAY,gBAAgBO,S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KAAK2D,mBAAqB","file":"js/ToolUserUploaded.e9fe084a.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.model.disabled && _vm.content.text !== null)?_c('FormRow',{staticClass:\"content mb-6\",class:{ 'has-errors': _vm.hasErrors },attrs:{\"full-width\":_vm.fullWidth}},[_c('InfoIconWrapper',{attrs:{\"show-info-icon\":_vm.showInfoIcon && !_vm.showSummary,\"content\":_vm.content,\"model\":_vm.model,\"align-top\":\"\",\"inline-element\":\"\"}},[_c('span',{staticClass:\"dea-rich-text\",domProps:{\"innerHTML\":_vm._s(_vm.content.text)}})])],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { PropType } from 'vue';\r\nimport { TextBlockContent } from '@/api/interfaces/content/form/base/textBlockContent';\r\nimport InfoIconWrapper from '@/components/molecules/infoIconWrapper/InfoIconWrapper.vue';\r\nimport FormRow from '@/components/molecules/formRow/FormRow.vue';\r\nimport { NoValueField } from '@/types/forms/fields/noValueField';\r\nimport { getFormElementMixin } from '@/mixins/formElementMixin';\r\n\r\nexport default getFormElementMixin<\r\n NoValueField,\r\n Record\r\n>().extend({\r\n name: 'FormTextBlock',\r\n components: {\r\n FormRow,\r\n InfoIconWrapper,\r\n },\r\n props: {\r\n content: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as TextBlockContent;\r\n },\r\n },\r\n model: {\r\n type: Object,\r\n default: () => {\r\n return {};\r\n },\r\n },\r\n fullWidth: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n showSummary: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n computed: {\r\n hasErrors(): boolean {\r\n return !!this.validations && this.validations.$anyError;\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormTextBlock.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormTextBlock.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormTextBlock.vue?vue&type=template&id=52ecba73&\"\nimport script from \"./FormTextBlock.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormTextBlock.vue?vue&type=script&lang=ts&\"\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 () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('SpinnerArea',{attrs:{\"state\":_vm.spinner}},[_c('div',{staticClass:\"container mb-4\"},[_c('FormTextBlock',{staticClass:\"mt-16\",attrs:{\"content\":{\n text: \"If you want to delete user-uploaded files with ApplicationNumber, use this button:\",\n }}}),_c('AppButton',{attrs:{\"label\":\"Delete User Uploaded Files with ApplicationNumber\",\"character\":\"cross\"},on:{\"button-click\":function($event){_vm.showLayer = true}}}),_c('FormTextBlock',{staticClass:\"mt-4\",attrs:{\"content\":{\n text: _vm.deleteMessage,\n }}}),_c('AppLayer',{attrs:{\"show\":_vm.showLayer},scopedSlots:_vm._u([{key:\"text\",fn:function(){return [_c('AppContent',{attrs:{\"use-large-font\":true,\"content\":\"Sure? User-uploaded files with ApplicationNumber will get deleted.\"}})]},proxy:true},{key:\"action1\",fn:function(){return [_c('AppButton',{attrs:{\"label\":\"Delete them!\"},on:{\"button-click\":function($event){return _vm.deleteObsoleteUserUploadedFiles()}}})]},proxy:true},{key:\"action2\",fn:function(){return [_c('AppButton',{attrs:{\"label\":\"Cancel\",\"character\":\"cross\"},on:{\"button-click\":function($event){_vm.showLayer = false}}})]},proxy:true}])})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue';\r\nimport { SpinnerState } from '@/enums/spinnerState';\r\nimport { toolsRepository } from '@/api';\r\nimport SpinnerArea from '@/components/molecules/spinnerArea/SpinnerArea.vue';\r\nimport FormTextBlock from '@/components/molecules/formTextBlock/FormTextBlock.vue';\r\nimport AppButton from '@/components/atoms/appButton/AppButton.vue';\r\nimport AppLayer from '@/components/molecules/appLayer/AppLayer.vue';\r\nimport AppContent from '@/components/atoms/appContent/AppContent.vue';\r\n\r\nexport default Vue.extend({\r\n name: 'DeleteObsoleteUserUploadedFiles',\r\n components: {\r\n SpinnerArea,\r\n FormTextBlock,\r\n AppButton,\r\n AppLayer,\r\n AppContent,\r\n },\r\n data: () => ({\r\n spinner: SpinnerState.off,\r\n deleteMessage: '',\r\n showLayer: false,\r\n }),\r\n methods: {\r\n confirmDelete() {\r\n this.showLayer = true;\r\n },\r\n cleanMessages() {\r\n this.deleteMessage = '';\r\n },\r\n async deleteObsoleteUserUploadedFiles(): Promise {\r\n this.showLayer = false;\r\n this.cleanMessages();\r\n this.spinner = SpinnerState.transparent;\r\n\r\n await toolsRepository.deleteObsoleteUserUploadedFiles();\r\n\r\n this.deleteMessage = `Deleted files successfully.`;\r\n this.spinner = SpinnerState.off;\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeleteObsoleteUserUploadedFiles.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DeleteObsoleteUserUploadedFiles.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DeleteObsoleteUserUploadedFiles.vue?vue&type=template&id=2f89e66c&\"\nimport script from \"./DeleteObsoleteUserUploadedFiles.vue?vue&type=script&lang=ts&\"\nexport * from \"./DeleteObsoleteUserUploadedFiles.vue?vue&type=script&lang=ts&\"\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","import Vue, { PropType } from 'vue';\r\nimport {\r\n ValidationGroups,\r\n ValidationProperties,\r\n VueConstructor,\r\n} from 'vue/types/vue';\r\nimport { Validation } from 'vuelidate';\r\n\r\nexport interface FormFieldVue {\r\n registerFormElementComponent(formElementComponent: Vue): void;\r\n}\r\n\r\nexport interface FormElementComponent extends Vue {\r\n readonly content: TContent;\r\n readonly model: TModel;\r\n readonly validations:\r\n | (Validation & ValidationGroups & ValidationProperties)\r\n | null;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/comma-dangle\r\nexport function getFormElementMixin<\r\n TModel,\r\n TContent,\r\n TConfiguration = void\r\n>(): VueConstructor> {\r\n return Vue.extend({\r\n inject: {\r\n injectedFormField: {\r\n from: 'formField',\r\n default: null as (Vue & FormFieldVue) | null,\r\n },\r\n },\r\n props: {\r\n content: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as TContent;\r\n },\r\n },\r\n configuration: {\r\n type: Object as PropType,\r\n default: () => ({} as TConfiguration),\r\n },\r\n model: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as TModel;\r\n },\r\n },\r\n validations: {\r\n type: Object as PropType<\r\n | (Validation &\r\n ValidationGroups &\r\n ValidationProperties)\r\n | null\r\n >,\r\n default: null,\r\n },\r\n showInfoIcon: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n computed: {\r\n formField(this: {\r\n injectedFormField: FormFieldVue;\r\n }): FormFieldVue | null {\r\n return this.injectedFormField || null;\r\n },\r\n },\r\n });\r\n}\r\n"],"sourceRoot":""}