{"version":3,"sources":["webpack:///./src/components/Pages/DocumentsZipUploaderPage.vue?9840","webpack:///./src/components/Pages/DocumentsZipUploaderPage.vue?3a3b","webpack:///./src/components/Pages/DocumentsZipUploaderPage.vue?d761","webpack:///./src/components/Pages/DocumentsZipUploaderPage.vue?9695","webpack:///./src/components/Pages/DocumentsZipUploaderPage.vue"],"names":["vue_property_decorator_1","require","axios_1","tslib_1","__importDefault","General_1","signalR","__importStar","HelpContent_vue_1","ChunkUploader_vue_1","DocumentsZipUploader","_vue_property_decorat","_this","_classCallCheck","fileTypeAllowed","uploadPerc","importProcessList","showStep1","showStep2","fileTypeSelected","fileTypeOptions","chunkEnabled","chunkSize","loading","tooltipShow","clientId","$store","state","user","Username","Date","getTime","modal_helpDocumentUploader","languagesList","languagesFilter","countriesList","countriesFilter","_inherits","_createClass","key","value","this","connection","stop","_this2","general","General","loadFileType","reset","$root","$on","collapseId","isJustShown","_this3","HubConnectionBuilder","withUrl","GetApiUrl","build","app","on","data","dataParsed","JSON","parse","$nextTick","$refs","ChunkUploaderRef","sizeByte","scale","sizeKb","sizeMb","sizeGb","outputSize","toFixed","process","default","method","url","ProcessId","withCredentials","responseType","then","_ref","console","log","processId","_this4","start","setTimeout","get","_step","_iterator","_createForOfIteratorHelper","s","n","done","item","Status","err","e","f","errors","errorList","split","convertFileTypeToSelect","outputData","Array","forEach","push","name","text","label","$t","sortable","length","_context","next","_ref2","_this5","code","toUpperCase","_callee","_context2","_ref3","_this6","_callee2","Vue","__decorate","Component","components","HelpContent","ChunkUploader","render","_vm","_h","$createElement","_c","_self","staticClass","scopedSlots","_u","fn","_v","_s","directives","rawName","modifiers","attrs","$event","openInstructions","domProps","staticStyle","showLanguagesCode","showCountriesCode","model","callback","$$v","expression","languagesFields","countriesFields","proxy","_e","_m","currentUsername","Math","round","_l","id","forceCancel","CurrentStep","Percentage","readProcessError","ErrorDescription","ref","importArchive","updateArchiveImportProgress","staticRenderFns","component"],"mappings":"kHAAA,iHAAoa,eAAG,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AI,CAACE,YAAY,kCAAkCS,MAAM,CAAC,cAAc,cCDpR,qE,kCCAA,oIAOI8B,EAAY,eACd,aACA,OACA,QACA,EACA,KACA,WACA,MAIa,aAAAA,E","file":"js/chunk-7df0f79a.ae21d9a3.js","sourcesContent":["import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentsZipUploaderPage.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentsZipUploaderPage.vue?vue&type=script&lang=ts\"","\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\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\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport axios from 'axios';\nimport { General } from '@/services/General';\nimport * as signalR from \"@microsoft/signalr\";\nimport HelpContent from '../HelpContent.vue';\nimport ChunkUploader from '@/components/ChunkUploader/ChunkUploader.vue';\n\n/*\nexport type Uploader = Vue & {\n active: boolean;\n clear: () => boolean;\n}\n*/\n\n@Component({\n components: {\n HelpContent,\n ChunkUploader\n }\n})\n \n\nexport default class DocumentsZipUploader extends Vue {\n fileTypeAllowed: boolean = true;\n uploadPerc: number = 0;\n importProcessList = [];\n showStep1 = false;\n showStep2 = false;\n fileTypeSelected: string = null;\n fileTypeOptions: any = null;\n chunkEnabled: boolean = true;\n chunkSize: number = 300;\n loading: boolean = false;\n tooltipShow: boolean = true;\n clientId: string = this.$store.state.user.Username + '_' + (new Date()).getTime();\n connection: any;\n modal_helpDocumentUploader: string = \"modal-helpDocumentUploader\";\n general: any;\n /*@Watch('firstResponseFile')\n fileResponse(fileNew: any, fileOld: any) {\n if (fileNew && fileNew.processId) this.importFile();\n }*/\n beforeDestroy() {\n this.connection.stop();\n }\n mounted() {\n this.general = General;\n this.loadFileType();\n this.reset();\n this.$root.$on('bv::collapse::state', (collapseId, isJustShown) => {\n if (isJustShown) this.tooltipShow = false;\n\n //console.log('isJustShown:', isJustShown)\n })\n this.fileTypeSelected = 'PDS';\n }\n reset() {\n if (this.connection) {\n this.connection.stop();\n \n }\n this.showStep1 = false;\n this.showStep2 = false;\n this.fileTypeAllowed = true;\n this.importProcessList = [];\n this.fileTypeSelected = null;\n this.uploadPerc = 0;\n this.connection = new signalR.HubConnectionBuilder()\n .withUrl(General.GetApiUrl('/message'))\n .build();\n let app = this;\n this.connection.on(\"status\", data => {\n var dataParsed = JSON.parse(data);\n app.importProcessList = dataParsed;\n \n });\n \n this.$nextTick(() => {\n (this.$refs.ChunkUploaderRef as ChunkUploader).reset();\n });\n\n this.fileTypeSelected = 'PDS';\n\n\n\n }\n getSize(sizeByte: number) {\n let scale: string = 'Kb';\n let sizeKb: number = (sizeByte / 1024);\n let sizeMb: number = (sizeKb / 1024);\n let sizeGb: number = (sizeMb / 1024);\n let outputSize: string = sizeKb.toFixed(0);\n if (sizeKb > 1000) {\n scale = 'Mb';\n outputSize = sizeMb.toFixed(1);\n }\n if (sizeMb > 1000) {\n scale = 'Gb';\n outputSize = sizeGb.toFixed(1);\n }\n return outputSize + ' ' + scale;\n }\n forceCancel(process: any) {\n axios({\n method: 'post',\n url: General.GetApiUrl('/api/process/ForceEndTask?user=' + this.$store.state.user.Username + '&processId=' + process.ProcessId),\n withCredentials: true,\n responseType: 'json'\n })\n .then(({ data }) => {\n /*\n app.resultsItems.resultPage = app.resultsItems.resultPage.concat(data.listPage);\n app.resultsItems.total = data.total;\n app.firstSearch = true;\n app.page += 1;\n\n app.showLoading = false;\n */\n });\n console.log(\"cancella task \" + process.ProcessId)\n }\n\n\n importArchive(processId: any) {\n \n this.connection.start()\n this.showStep2 = true;\n this.showStep1 = true;\n this.uploadPerc = 100;\n \n setTimeout(()=>{\n axios({\n method: 'post',\n url: General.GetApiUrl('/api/document/ImportArchiveProcess?processId=' + processId + '&documentType=' + this.fileTypeSelected),\n withCredentials: true,\n responseType: 'json'\n });\n }, 1000);\n }\n get isAllProcessEnd(): boolean {\n for (let item of this.importProcessList) {\n if (item.Status == 'complete' || item.Status == 'error') return true;\n }\n return false;\n }\n updateArchiveImportProgress(e: any) {\n \n if (e > 0)\n this.fileTypeAllowed = false;\n this.uploadPerc = e;\n }\n readProcessError(errors: string) {\n let errorList = errors.split('|');\n return errorList;\n }\n loadFileType() {\n \n this.fileTypeOptions = this.convertFileTypeToSelect([{ \"name\": \"PDS\", \"value\": 1 }]);\n }\n \n convertFileTypeToSelect(data: any) {\n let outputData = new Array();\n data.forEach(function (item: any) {\n outputData.push({\n value: item.name,\n text: item.name\n });\n });\n return outputData;\n };\n get firstResponseFile() {\n \n return { processId: '' };\n }\n\n\n\n\n\n\n languagesList = [];\n public get languagesFields() : Array { \n return [\n {\n key: 'code',\n label: this.$t('PRODUCT.ISO_CODE'),\n sortable: true\n },\n {\n key: 'name',\n label: this.$t('PRODUCT.NAME'),\n sortable: true\n }\n ]};\n languagesFilter: string = null;\n countriesList = [];\n public get countriesFields() : Array {\n return [\n {\n key: 'code',\n label: this.$t('PRODUCT.CODE'),\n sortable: true\n },\n {\n key: 'name',\n label: this.$t('PRODUCT.NAME'),\n sortable: true\n }\n ];\n }\n \n countriesFilter: string = null;\n\n async showLanguagesCode() {\n if (this.languagesList.length == 0) {\n await axios({\n method: 'get',\n url: General.GetApiUrl('/api/culture/GetLanguages/?emptyLanguagesPolicy=0'),\n responseType: 'json'\n }).then(({ data }) => {\n\n data.forEach(key =>\n this.languagesList.push({\n code: key.code.toUpperCase(),\n name: key.name\n })\n );\n })\n }\n }\n\n openInstructions() {\n this.tooltipShow = false;\n }\n\n async showCountriesCode() {\n if (this.countriesList.length == 0) {\n await axios({\n method: 'get',\n url: General.GetApiUrl('/api/culture/GetCountries/?emptyCountriesPolicy=0&type=COUNTRY_AUTHORITY'),\n withCredentials: true,\n responseType: 'json'\n }).then(({ data }) => {\n\n data.forEach(key =>\n this.countriesList.push({\n code: key.code.toUpperCase(),\n name: key.name\n })\n );\n })\n }\n }\n\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-relative\"},[_c('HelpContent',{scopedSlots:_vm._u([{key:\"modalHelpBody\",fn:function(){return [_c('p',[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.HELP_ZIP_INTENT'))+\" \")]),_c('p',[_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.collapse-1\",modifiers:{\"collapse-1\":true}}],attrs:{\"id\":\"button-instructions\",\"variant\":\"btn btn-light\"}},[_c('i',{staticClass:\"fa fa-info-circle\",attrs:{\"aria-hidden\":\"true\"},on:{\"click\":function($event){return _vm.openInstructions()}}}),_vm._v(\" \"+_vm._s(_vm.$t('GENERIC.INSTRUCTIONS')))]),_c('b-tooltip',{attrs:{\"target\":\"button-instructions\",\"placement\":\"right\",\"show\":_vm.tooltipShow,\"triggers\":\"manual\",\"variant\":\"danger\"},on:{\"update:show\":function($event){_vm.tooltipShow=$event}}},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('PRODUCT.HELP_ZIP_INSTRUCTION'))}})])],1),_c('div',{staticStyle:{\"margin-top\":\"20px\"}},[_c('b-collapse',{staticClass:\"mt-2\",attrs:{\"id\":\"collapse-1\"}},[_c('b-card',[_c('p',[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('PRODUCT.HELP_ZIP_INDICATION_1'))}}),_c('span',{directives:[{name:\"b-modal\",rawName:\"v-b-modal.modal-languages\",modifiers:{\"modal-languages\":true}}],staticClass:\"link\",staticStyle:{\"font-weight\":\"bold\"},on:{\"click\":function($event){return _vm.showLanguagesCode()}}},[_vm._v(_vm._s(_vm.$t('PRODUCT.HELP_ZIP_INDICATION_2')))]),_vm._v(\"]#[\"),_c('span',{directives:[{name:\"b-modal\",rawName:\"v-b-modal.modal-countries\",modifiers:{\"modal-countries\":true}}],staticClass:\"link\",staticStyle:{\"font-weight\":\"bold\"},domProps:{\"innerHTML\":_vm._s(_vm.$t('PRODUCT.HELP_ZIP_INDICATION_3'))},on:{\"click\":function($event){return _vm.showCountriesCode()}}}),_vm._v(\"].pdf\"),_c('br'),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('PRODUCT.HELP_ZIP_INDICATION_4'))}})])])],1)],1),_c('b-modal',{attrs:{\"id\":\"modal-languages\",\"title\":_vm.$t('PRODUCT.HELP_LANGUAGES'),\"hide-footer\":\"\"}},[_c('b-form-input',{attrs:{\"placeholder\":_vm.$t('PRODUCT.HELP_FILTER_BY_CODE')},model:{value:(_vm.languagesFilter),callback:function ($$v) {_vm.languagesFilter=$$v},expression:\"languagesFilter\"}}),_c('b-table',{attrs:{\"striped\":\"\",\"hover\":\"\",\"items\":_vm.languagesList,\"fields\":_vm.languagesFields,\"filter\":_vm.languagesFilter}})],1),_c('b-modal',{attrs:{\"id\":\"modal-countries\",\"title\":_vm.$t('PRODUCT.HELP_ZIP_COUNTRIES'),\"hide-footer\":\"\"}},[_c('b-form-input',{attrs:{\"placeholder\":_vm.$t('PRODUCT.HELP_FILTER_BY_CODE')},model:{value:(_vm.countriesFilter),callback:function ($$v) {_vm.countriesFilter=$$v},expression:\"countriesFilter\"}}),_c('b-table',{attrs:{\"head-variant\":\"dark\",\"striped\":\"\",\"hover\":\"\",\"items\":_vm.countriesList,\"fields\":_vm.countriesFields,\"filter\":_vm.countriesFilter}})],1)]},proxy:true}])}),_c('div',{staticClass:\"page pt-4\"},[(_vm.loading==true)?_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}})],1):_vm._e(),(_vm.fileTypeOptions!=null )?_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"alert alert-light shadow-sm p-3 mb-5 bg-white rounded border\",attrs:{\"role\":\"alert\"}},[_vm._m(0),_c('div',{staticClass:\"alert-text px-4\"},[_c('p',[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.ZIP_PDS_CHOSE'))+\" \")]),_c('div',[_c('div',{staticClass:\"alert alert-info\"},[_vm._v(_vm._s(_vm.$t('PRODUCT.ZIP_PROTECTED')))])]),(_vm.fileTypeSelected!=null)?_c('div',[_c('div',{staticClass:\"rowSeparator\"},[_c('div',[(_vm.uploadPerc>0 || _vm.showStep1)?_c('div',{staticClass:\"row\",staticStyle:{\"margin-top\":\"20px\"}},[_c('div',{staticClass:\"col-4\"},[_vm._v(_vm._s(_vm.$t('PRODUCT.ZIP_STEP_1'))+\": \")]),_c('div',{staticClass:\"col-8\"},[(_vm.uploadPerc<100)?_c('div',{staticClass:\"alert alert-info\"},[_c('div',{staticClass:\"col-4\"},[_vm._v(_vm._s(_vm.general.currentUsername)+\" \")]),_c('div',{staticClass:\"col-8\"},[_c('b-progress',{attrs:{\"max\":100}},[_c('b-progress-bar',{attrs:{\"value\":_vm.uploadPerc,\"label\":((Math.round(_vm.uploadPerc)) + \"%\")}})],1)],1)]):_vm._e(),(_vm.uploadPerc==100)?_c('div',{staticClass:\"alert alert-success\"},[_c('div',{staticClass:\"col-4\"},[_vm._v(_vm._s(_vm.general.currentUsername))]),_c('div',{staticClass:\"col-8\"},[_vm._v(_vm._s(_vm.$t('PRODUCT.COMPLETED'))+\"!\")])]):_vm._e()])]):_vm._e()])]),(_vm.showStep2)?_c('div',{staticClass:\"row\",staticStyle:{\"margin-top\":\"20px\"}},[_c('div',{staticClass:\"col-4\"},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.ZIP_STEP_2'))+\": \")]),_c('div',{staticClass:\"col-8\"},[_c('ul',{staticStyle:{\"padding\":\"0\",\"margin\":\"0\",\"list-style\":\"none\"}},_vm._l((_vm.importProcessList),function(process){return _c('li',{key:process.id + '- vkey'},[(process.Username==_vm.general.currentUsername)?[(process.Status=='queue')?_c('div',{staticClass:\"alert alert-info\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_vm._v(_vm._s(process.Username)+\" - \"+_vm._s(_vm.$t('PRODUCT.IN_QUEUE'))+\" - \"),_c('span',{staticClass:\"clickable\",on:{\"click\":function($event){return _vm.forceCancel(process)}}},[_vm._v(_vm._s(_vm.$t('PRODUCT.FORCE_CANCEL')))])])])]):_vm._e(),(process.Status=='processing')?_c('div',{staticClass:\"alert alert-info\"},[_c('div',{staticClass:\"col-4\"},[_vm._v(_vm._s(process.Username)+\" - \"+_vm._s(process.CurrentStep)+\" - \"),_c('span',{staticClass:\"clickable\",on:{\"click\":function($event){return _vm.forceCancel(process)}}},[_vm._v(_vm._s(_vm.$t('PRODUCT.FORCE_CANCEL')))]),_c('br')]),_c('div',{staticClass:\"col-8\"},[(process.Status=='processing')?_c('b-progress',{attrs:{\"max\":100}},[_c('b-progress-bar',{attrs:{\"value\":process.Percentage,\"label\":((Math.round(process.Percentage)) + \"%\")}})],1):_vm._e()],1)]):_vm._e(),(process.Status=='error')?_c('div',{staticClass:\"alert alert-danger\"},[_c('div',{staticClass:\"col-4\"},[_vm._v(_vm._s(process.Username))]),_c('div',{staticClass:\"col-8\"},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.ZIP_ERROR'))+\"! \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(process.Status=='error'),expression:\"process.Status=='error'\"}]},[_c('span',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.collapse-1-inner\",modifiers:{\"collapse-1-inner\":true}}],staticClass:\"clickable\"},[_vm._v(_vm._s(_vm.$t('PRODUCT.CLICK_HERE_DETAILS')))]),_c('br'),_c('b-collapse',{staticClass:\"mt-2\",attrs:{\"id\":\"collapse-1-inner\"}},[_c('b-card',[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.FILES_NOT_IMPORTED'))+\": \"),_c('ul',_vm._l((_vm.readProcessError(process.ErrorDescription)),function(item){return _c('li',{key:item + '- vkey'},[_vm._v(_vm._s(item))])}),0)])],1)],1)])]):_vm._e(),(process.Status=='complete')?_c('div',{staticClass:\"alert alert-success\"},[_c('div',{staticClass:\"col-4\"},[_vm._v(_vm._s(process.Username)+\" \")]),_c('div',{staticClass:\"col-8\"},[_vm._v(\"Completed!\")])]):_vm._e(),_c('br')]:_vm._e()],2)}),0)])]):_vm._e(),_c('div',{staticStyle:{\"margin-top\":\"20px\"}},[_c('chunk-uploader',{ref:\"ChunkUploaderRef\",attrs:{\"endpoint\":\"/api/document/UploadArchive\",\"chunk-size\":_vm.chunkSize,\"max-parallel-upload\":3,\"ext-allowed\":\"zip\",\"max-size-allowed-kb\":102400},on:{\"completed\":_vm.importArchive,\"progress\":_vm.updateArchiveImportProgress}})],1)]):_vm._e(),_c('hr',{staticClass:\"mt-2 mb-2\"}),(_vm.isAllProcessEnd)?_c('b-button',{on:{\"click\":function($event){return _vm.reset()}}},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.NEW_UPLOAD')))]):_vm._e()],1)])])])]):_vm._e()])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"alert-icon showonly-desktop\",staticStyle:{\"align-items\":\"flex-start\"}},[_c('i',{staticClass:\"fa fa-3x fa-upload text-primary\",attrs:{\"aria-hidden\":\"true\"}})])}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"28da8b7a-vue-loader-template\\\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocumentsZipUploaderPage.vue?vue&type=template&id=ecc2b2d0&scoped=true\"","import { render, staticRenderFns } from \"./DocumentsZipUploaderPage.vue?vue&type=template&id=ecc2b2d0&scoped=true\"\nimport script from \"./DocumentsZipUploaderPage.vue?vue&type=script&lang=ts\"\nexport * from \"./DocumentsZipUploaderPage.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 \"ecc2b2d0\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}