{"version":3,"sources":["webpack:///./src/components/UploadSingleDocument.vue?1a5c","webpack:///./src/components/ProductGenericDocumentsList.vue?914f","webpack:///./src/components/ProductGenericDocumentsList.vue?2b01","webpack:///./src/components/UploadSingleDocument.vue?a1cf","webpack:///./src/entity/ProductBase.ts","webpack:///./src/components/ProductGenericDocumentsList.vue","webpack:///./src/components/ProductDetail.vue?6d54","webpack:///./src/components/ProductGenericDocumentsList.vue?af6a","webpack:///./src/components/UploadSingleDocument.vue?0427","webpack:///./src/components/UploadSingleDocument.vue?97b3","webpack:///./src/components/ProductDetail.vue?62fa","webpack:///./src/components/TreeHierarchy.vue?5f6f","webpack:///./src/components/TreeHierarchy.vue?7d4e","webpack:///./src/components/ProductDetail.vue?28db","webpack:///./src/components/ProductDetail.vue?9b00","webpack:///./node_modules/core-js/modules/es.array.join.js","webpack:///./src/components/TreeHierarchy.vue?a207","webpack:///./src/components/ProductDetail.vue?7caa","webpack:///./src/components/ProductDetail.vue?6969","webpack:///./src/components/TreeHierarchy.vue?2938","webpack:///./src/components/ProductGenericDocumentsList.vue?93a1","webpack:///./src/components/UploadSingleDocument.vue","webpack:///./src/components/TreeHierarchy.vue?08c9","webpack:///./src/components/TreeHierarchy.vue?b28b"],"names":["vue_property_decorator_1","require","axios_1","tslib_1","__importDefault","General_1","ClaimEnum_1","UploadSingleDocument","_vue_property_decorat","_this","_classCallCheck","fileName","countryAuthorities","countryAuthoritySelected","cultures","languages","languageSelected","otherLanguageSelected","documentTypes","documentTypeSelected","documentUploaded","uploading","uploadPerc","isAuthorized","general","selectedSingleDocument","chunkSize","idSession","_inherits","_createClass","key","value","this","General","getCountries","getLanguagesComplete","getCultures","getDocumentTypes","CheckAuthorization","ClaimEnum","CanUploadDocument","e","sessionId","app","$bvModal","hide","apiUrl","GetApiUrl","default","method","url","responseType","withCredentials","then","response","outputData","Array","data","forEach","item","push","catch","error","HandleError","idCountry","text","name","i","length","country","language","idLanguage","languagesExclused","getLanguages","findLanguage","documentType","idDocument","errors","getLanguageSelected","join","fieldValidation","checkMandatoryFields","saveSingleDocumentDo","showAlertDangerAsHTML","formData","FormData","append","product","idProduct","showAlertSuccess","uploadComplete","reset","close","$emit","Vue","__decorate","Prop","required","Component","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","_e","authorizedFields","getGenericDocuments","scopedSlots","_u","fn","getGenericDocumentUrl","deleting","canBeDeleted","on","$event","openReplaceGenericFileModal","askConfirmationForDeleteProduct","staticStyle","showSize","documentFileSize","showDate","lastModifyDate","isAuthorizedUpload","openUploadGenericFileModal","model","callback","$$v","expression","showSuccessAlert","updateProgress","getFileName","parseInt","genericDocumentDescription","saveGenericDocument","closeUploadGenericFileModal","selectedGenericFile","countryAuthorityToReplace","showReplaceGenericDocumentChunkUploader","showReplaceChunkUploader","descriptionToReplace","replaceGenericDocument","closeReplaceGenericFileModal","staticRenderFns","ProductBase","t","Object","assign","exports","component","ProductGenericDocumentsList","documentsFields","genericDocumentToUpload","importProcessList","genericDocumentToReplace","getDocumentFields","CanUploadGenericDocument","label","sortable","admin","filter","filterFields","element","index","array","show","genericFile","description","deleteGenericDocument","confirm","documentBase","documents","p","documentTypeCode","concat","date","size","_step","genericDocuments","_iterator","_createForOfIteratorHelper","s","n","done","document","singleRow","documentName","documentDescription","culture","idDocumentEdit","idDocumentDelete","err","f","console","log","getOtherLanguages","saveSingleDocument","TreeHierarchy_vue_1","MaterialsListPrintTool_vue_1","ProductGenericDocumentsList_vue_1","UploadSingleDocument_vue_1","ProductBase_1","ProductDetail","uploadSingleDocument_DocumentType","loading","isPublicSelected","publicOptions","fileRowSelected","treeHierarchyLevel","collapseTreeHierarchyVisibility","outputDocuments","friendlyName","findByCulture","idCulture","documentSds","filesFilterBy","documentPds","documentPdsDOCX","sort","n1","n2","refresh","callDeletion","deletion","callSaving","__awaiter","_this2","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","saveProductDo","stop","_context2","_callee2","productBase","IdProduct","idproduct","OldCode","oldCode","Description","TreeHierarchyCode","treeHierarchyCode","Approvals","approvals","Viscosity","viscosity","TechSpecs","techSpecs","PerformanceLevel","performanceLevel","IsPublic","isPublic","Sperimental","sperimental","Edible","edible","NonfoodCompounds","nonfoodCompounds","mainLoading","_context3","post","t0","_callee3","_context4","_callee4","documentsIn","type","get","CanDeleteProduct","editBaseInfo","editTechSpecs","isUserAuthorized","CanEditProduct","isProductManagedBySAP","importedFromSAP","CanUploadTechSpecs","tabActivated","_this3","_callee5","_context5","_context6","t1","t2","t3","sent","call","_callee6","_context7","productResponse","materials","el","_callee7","components","TreeHierarchy","MaterialsListPrintTool","$","uncurryThis","IndexedObject","toIndexedObject","arrayMethodIsStrict","nativeJoin","ES3_STRINGS","FORCED","target","proto","forced","separator","undefined","_callSuper","arguments","Boolean","Number","$set","directives","rawName","modifiers","treeHierarchy","showSave","editSperimentalInfo","deleteProduct","saveProduct","openUploadSingleDocumentModalPDS","domProps","showUpload","openUploadSingleDocumentModalPDSDOCX","_l","mergeDocuments","class","highlight","rowSelector","getDocumentUrl","deleteFile","afterMaterialDetailEditProduct","node","father","level","partialCode"],"mappings":"0TAiEAA,EAAAC,EAAA,QACAC,EAAAC,EAAAC,gBAAAH,EAAA,SACAI,EAAAJ,EAAA,QACAK,EAAAL,EAAA,QAGqBM,EAAoB,SAAAC,GAAzC,SAAAD,IAAA,IAAAE,EA2B2B,OA3B3BC,EAAA,KAAAH,G,sBAUIE,EAAAE,SAAmB,GACnBF,EAAAG,mBAA0B,GAC1BH,EAAAI,yBAAmC,KACnCJ,EAAAK,SAAgB,GAChBL,EAAAM,UAAiB,GACjBN,EAAAO,iBAA2B,KAC3BP,EAAAQ,sBAAgC,KAChCR,EAAAS,cAAqB,GACrBT,EAAAU,qBAA+B,KAC/BV,EAAAW,kBAA4B,EAE5BX,EAAAY,WAAqB,EACrBZ,EAAAa,WAAqB,EACrBb,EAAAc,cAAwB,EACxBd,EAAAe,QAAe,GACff,EAAAgB,uBAA8B,KAC9BhB,EAAAiB,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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, Prop } from 'vue-property-decorator';\nimport axios from 'axios';\nimport { General } from '@/services/General';\nimport { ClaimEnum } from '@/services/ClaimEnum';\n\n@Component\nexport default class UploadSingleDocument extends Vue {\n @Prop({\n required: true\n })\n product: any;\n\n @Prop({\n required: true\n })\n documentType: string;\n fileName: string = '';\n countryAuthorities: any = [];\n countryAuthoritySelected: string = null;\n cultures: any = [];\n languages: any = [];\n languageSelected: string = null;\n otherLanguageSelected: string = null;\n documentTypes: any = [];\n documentTypeSelected: string = null;\n documentUploaded: boolean = false;\n\n uploading: boolean = false;\n uploadPerc: number = 0;\n isAuthorized: boolean = false;\n general: any = {};\n selectedSingleDocument: any = null;\n chunkSize: number = 300;\n idSession: string = \"\";\n mounted() {\n this.general = General;\n this.getCountries();\n this.getLanguagesComplete();\n this.getCultures();\n this.getDocumentTypes();\n this.isAuthorized = General.CheckAuthorization(ClaimEnum.CanUploadDocument);\n }\n updateProgress(e: any) {\n this.uploadPerc = e;\n }\n showSuccessAlert(sessionId: any) {\n let app = this;\n app.idSession = sessionId;\n app.uploadPerc = 100;\n app.documentUploaded = true;\n\n }\n getFileName(fileName: string) {\n this.fileName = fileName;\n }\n close() {\n this.$bvModal.hide('upload-single-document-modal');\n }\n getCultures() {\n let app = this;\n let apiUrl = General.GetApiUrl('/api/culture/getcultures');\n axios({\n method: 'get',\n url: apiUrl,\n responseType: 'json',\n withCredentials: true\n }).then(function (response) {\n let outputData = new Array();\n response.data.forEach(function (item: any) {\n outputData.push(item);\n });\n app.cultures = outputData;\n\n }).catch(error => {\n General.HandleError(error, app);\n });\n\n }\n\n getCountries() {\n let app = this;\n let apiUrl = General.GetApiUrl('/api/culture/getcountries?emptyCountriesPolicy=0&type=COUNTRY_AUTHORITY');\n axios({\n method: 'get',\n url: apiUrl,\n responseType: 'json',\n withCredentials: true\n }).then(function (response) {\n let outputData = new Array();\n response.data.forEach(function (item: any) {\n outputData.push({\n value: item.idCountry,\n text: item.name\n });\n });\n app.countryAuthorities = outputData;\n }).catch(error => {\n General.HandleError(error, app);\n });\n }\n getLanguages(idCountry: any) {\n var languages = new Array();\n if (idCountry != null) {\n for (let i = 0; i < this.cultures.length; i++) {\n if (this.cultures[i].country.idCountry == idCountry) {\n languages.push({\n value: this.cultures[i].language.idLanguage,\n text: this.cultures[i].language.name\n });\n }\n }\n languages.push({\n value: 'OTHER',\n text: 'OTHER LANGUAGE'\n });\n }\n return languages;\n }\n getOtherLanguages(idCountry: any) {\n let languages = new Array();\n\n if (idCountry != null) {\n let languagesExclused = this.getLanguages(idCountry);\n\n for (let i = 0; i < this.languages.length; i++) {\n\n\n if (!this.findLanguage(this.languages[i].idLanguage, languagesExclused)) {\n languages.push({\n value: this.languages[i].idLanguage,\n text: this.languages[i].name\n });\n }\n\n }\n\n\n }\n\n return languages;\n }\n findLanguage(idLanguage: string, languages: any[]): boolean {\n for (let i = 0; i < languages.length; i++) {\n\n if (languages[i].value == idLanguage) return true;\n }\n return false;\n }\n getLanguagesComplete() {\n let app = this;\n let apiUrl = General.GetApiUrl('/api/culture/getLanguages?emptyLanguagesPolicy=0');\n axios({\n method: 'get',\n url: apiUrl,\n responseType: 'json'\n }).then(function (response) {\n let outputData = new Array();\n response.data.forEach(function (item: any) {\n outputData.push(item);\n });\n app.languages = outputData;\n }).catch(error => {\n General.HandleError(error, app);\n });\n }\n getDocumentTypes() {\n let app = this;\n\n //app.documentTypes.push(\n // { value: app.documentType, text: app.documentType }\n //);\n\n if (app.documentType == \"PDS\") {\n app.documentTypes.push(\n { value: \"PDS\", text: \" PDF - visible internally in PLI and externally\" });\n app.documentTypes.push(\n { value: \"PDSDOCX\", text: \"World - visible only to Product manager with the role to upload PDS\" }\n );\n }\n else if (app.documentType == \"PDSDOCX\") {\n app.documentTypes.push(\n { value: \"PDSDOCX\", text: \"World - visible only to Product manager with the role to upload PDS\" });\n app.documentTypes.push(\n { value: \"PDS\", text: \" PDF - visible internally in PLI and externally\" }\n );\n }\n\n app.documentTypeSelected = app.documentTypes[0].value;\n }\n getSingleDocumentUrl(idDocument: any) {\n return General.GetApiUrl('/api/document/DownloadDocumentById?documentId=' + idDocument);\n }\n checkMandatoryFields(): string {\n var errors = new Array();\n if (this.countryAuthoritySelected == null) errors.push('Country Authority / Region is mandatory');\n if (this.getLanguageSelected() == null) errors.push('Language is mandatory');\n if (this.documentUploaded != true) errors.push('Document is mandatory');\n\n if (errors.length == 0) return null;\n\n return errors.join('
');\n }\n getLanguageSelected(): string {\n let languageSelected = (this.languageSelected == 'OTHER') ? this.otherLanguageSelected : this.languageSelected;\n return languageSelected;\n }\n saveSingleDocument() {\n\n\n let fieldValidation = this.checkMandatoryFields();\n\n if (fieldValidation == null) {\n this.saveSingleDocumentDo();\n\n } else {\n General.showAlertDangerAsHTML(fieldValidation, this);\n }\n }\n saveSingleDocumentDo() {\n this.uploading = true;\n\n let formData = new FormData();\n\n formData.append('documentType', this.documentTypeSelected);\n formData.append('idproduct', this.product.idProduct);\n formData.append('idcountry', this.countryAuthoritySelected);\n formData.append('idlanguage', this.getLanguageSelected());\n formData.append('idSession', this.idSession);\n let app = this;\n axios({\n method: 'post',\n url: General.GetApiUrl('/api/document/uploadsingledocument'),\n data: formData,\n withCredentials: true\n })\n .then(function (response) {\n app.uploading = false;\n\n if (response.data.errors.length > 0) {\n let error = \"\";\n for (let i = 0; i < response.data.errors.length; i++) {\n error += response.data.errors[i] + \"
\";\n }\n General.showAlertDangerAsHTML(error, app);\n }\n else {\n\n General.showAlertSuccess(\"Upload Complete\", app);\n app.uploadComplete();\n }\n })\n .catch(error => {\n app.reset();\n General.HandleError(error, app);\n });\n\n }\n uploadComplete() {\n this.close();\n this.$emit('complete');\n }\n reset() {\n this.uploading = false;\n\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[(_vm.uploading)?_c('div',{staticClass:\"alert alert-info\"},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}}),_vm._v(_vm._s(_vm.$t('PRODUCT.UPLOADING_FILE'))+\" \")],1):_vm._e()])])]),_c('div',[_c('b-table',{attrs:{\"head-variant\":\"dark\",\"striped\":\"\",\"hover\":\"\",\"fields\":_vm.authorizedFields(),\"items\":_vm.getGenericDocuments()},scopedSlots:_vm._u([{key:\"cell(idDocument)\",fn:function(data){return [_c('div',{staticClass:\"text-center\"},[(data.item.idDocument!=null)?_c('b-link',{staticClass:\"documentDetail\",attrs:{\"href\":_vm.getGenericDocumentUrl(data.item.idDocument),\"target\":\"_blank\"}},[_c('b-icon-file-earmark-arrow-down',{attrs:{\"aria-hidden\":\"true\",\"scale\":\"1.5\"}})],1):_vm._e()],1)]}},{key:\"cell(idDocumentEdit)\",fn:function(data){return [_c('div',{staticClass:\"text-center\"},[_c('b-icon-pencil-square',{staticClass:\"clickable\",attrs:{\"scale\":\"1.1\",\"disabled\":_vm.deleting||!data.item.canBeDeleted},on:{\"click\":function($event){return _vm.openReplaceGenericFileModal(data.item)}}})],1)]}},{key:\"cell(idDocumentDelete)\",fn:function(data){return [_c('div',{staticClass:\"text-center\"},[_c('b-icon-dash-circle',{staticClass:\"deleteBtn clickable\",attrs:{\"variant\":\"danger\",\"scale\":\"1.1\",\"disabled\":_vm.deleting||!data.item.canBeDeleted},on:{\"click\":function($event){return _vm.askConfirmationForDeleteProduct(data.item.idDocument)}}})],1)]}},{key:\"cell(name)\",fn:function(data){return [_vm._v(\" \"+_vm._s(data.item.name)+\" \"),_c('span',{staticStyle:{\"font-size\":\"9px\"}},[_vm._v(\"(\"+_vm._s(_vm.showSize(data.item.documentFileSize))+\")\")])]}},{key:\"cell(lastModifyDate)\",fn:function(data){return [_vm._v(\" \"+_vm._s(_vm.showDate(data.item.lastModifyDate))+\" \")]}}])}),(_vm.deleting)?_c('div',{staticClass:\"row alert alert-info\",staticStyle:{\"text-align\":\"center\"}},[_c('div',{staticClass:\"col-12\"},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}}),_vm._v(_vm._s(_vm.$t('PRODUCT.DELETING_FILE'))+\" \")],1)]):_vm._e(),(!_vm.uploading && _vm.isAuthorizedUpload)?_c('div',[_c('b-button',{on:{\"click\":function($event){return _vm.openUploadGenericFileModal()}}},[_vm._v(_vm._s(_vm.$t('PRODUCT.UPLOAD_NEW_DOC')))])],1):_vm._e(),_c('b-modal',{attrs:{\"id\":\"upload-generic-document-modal\",\"title\":_vm.$t('PRODUCT.UPLOAD_GENERIC_DOC'),\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.COUNTRY_REGION'))+\":\")]),_c('div',{staticClass:\"col-8\"},[_c('b-form-select',{attrs:{\"disabled\":_vm.uploading,\"options\":_vm.countryAuthorities},model:{value:(_vm.countryAuthoritySelected),callback:function ($$v) {_vm.countryAuthoritySelected=$$v},expression:\"countryAuthoritySelected\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.DOC_TO_UPLOAD'))+\":\")]),_c('div',{staticClass:\"col-8\"},[(_vm.uploadPerc>0)?_c('span',[_vm._v(_vm._s(_vm.fileName))]):_vm._e(),(!_vm.uploading)?_c('chunk-uploader',{attrs:{\"endpoint\":\"/api/document/UploadGenericDocumentChunk\",\"chunk-size\":_vm.chunkSize,\"max-parallel-upload\":3,\"ext-allowed\":\"\",\"max-size-allowed-kb\":15360},on:{\"completed\":_vm.showSuccessAlert,\"progress\":_vm.updateProgress,\"getfilename\":_vm.getFileName}}):_vm._e(),(_vm.uploadPerc>0)?_c('div',{staticStyle:{\"padding-top\":\"10px\"}},[_c('b-progress',{attrs:{\"max\":100}},[_c('b-progress-bar',{attrs:{\"value\":_vm.uploadPerc,\"label\":((parseInt(_vm.uploadPerc)) + \"%\")}})],1)],1):_vm._e()],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.DOC_DESCRIPTION')))]),_c('div',{staticClass:\"col-8\"},[_c('b-form-textarea',{model:{value:(_vm.genericDocumentDescription),callback:function ($$v) {_vm.genericDocumentDescription=$$v},expression:\"genericDocumentDescription\"}})],1)]),_c('div',{staticClass:\"container\",staticStyle:{\"text-align\":\"center\"}},[(_vm.uploading)?_c('div',{staticClass:\"row alert alert-info\",staticStyle:{\"text-align\":\"center\"}},[_c('div',{staticClass:\"col-12\"},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}}),_vm._v(_vm._s(_vm.$t('PRODUCT.SAVING_FILE'))+\" \")],1)]):_vm._e(),_c('br')])]),_c('footer',{staticClass:\"modal-footer\"},[_c('b-button',{attrs:{\"disabled\":_vm.uploadPerc != 100 || _vm.uploading || _vm.countryAuthoritySelected == '',\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.saveGenericDocument()}}},[_vm._v(_vm._s(_vm.$t('GENERIC.SAVE')))]),_c('b-button',{on:{\"click\":function($event){return _vm.closeUploadGenericFileModal()}}},[_vm._v(\"Close\")])],1)]),_c('b-modal',{attrs:{\"id\":\"replace-generic-document-modal\",\"title\":\"Edit generic document\",\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\"}},[(_vm.selectedGenericFile!=null)?_c('div',[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.COUNTRY_REGION'))+\":\")]),_c('div',{staticClass:\"col-8\"},[_c('b-form-select',{attrs:{\"disabled\":_vm.uploading,\"options\":_vm.countryAuthorities},model:{value:(_vm.countryAuthorityToReplace),callback:function ($$v) {_vm.countryAuthorityToReplace=$$v},expression:\"countryAuthorityToReplace\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.DOC_NEW_UPLOAD'))+\" \")]),_c('div',{staticClass:\"col-8\",staticStyle:{\"padding-top\":\"10px\"}},[(!_vm.showReplaceGenericDocumentChunkUploader)?_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-6\",staticStyle:{\"padding-top\":\"5px\"}},[_c('span',[_vm._v(_vm._s(_vm.selectedGenericFile.name))]),_vm._v(\" \"),_c('b-button',{staticClass:\"btn-sm\",on:{\"click\":function($event){return _vm.showReplaceChunkUploader()}}},[_vm._v(_vm._s(_vm.$t('PRODUCT.MODIFY')))])],1)])]):_vm._e(),(!_vm.uploading && _vm.showReplaceGenericDocumentChunkUploader)?_c('chunk-uploader',{attrs:{\"endpoint\":\"/api/document/UploadGenericDocumentChunk\",\"chunk-size\":_vm.chunkSize,\"max-parallel-upload\":3,\"ext-allowed\":\"\",\"max-size-allowed-kb\":15360},on:{\"completed\":_vm.showSuccessAlert,\"progress\":_vm.updateProgress,\"getfilename\":_vm.getFileName}}):_vm._e(),(_vm.uploadPerc>0)?_c('div',{staticStyle:{\"padding-top\":\"10px\"}},[_c('b-progress',{attrs:{\"max\":100}},[_c('b-progress-bar',{attrs:{\"value\":_vm.uploadPerc,\"label\":((parseInt(_vm.uploadPerc)) + \"%\")}})],1)],1):_vm._e()],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.OPTINAL_DESC')))]),_c('div',{staticClass:\"col-8\"},[_c('b-form-textarea',{model:{value:(_vm.descriptionToReplace),callback:function ($$v) {_vm.descriptionToReplace=$$v},expression:\"descriptionToReplace\"}})],1)]),_c('div',{staticClass:\"container\",staticStyle:{\"text-align\":\"center\"}},[(_vm.uploading)?_c('div',{staticClass:\"row alert alert-info\",staticStyle:{\"text-align\":\"center\"}},[_c('div',{staticClass:\"col-12\"},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}}),_vm._v(_vm._s(_vm.$t('PRODUCT.SAVING_FILE'))+\" \")],1)]):_vm._e(),_c('br')])])]):_vm._e(),_c('footer',{staticClass:\"modal-footer\"},[_c('b-button',{attrs:{\"disabled\":_vm.uploading || (_vm.uploadPerc != 0 && _vm.uploadPerc != 100),\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.replaceGenericDocument()}}},[_vm._v(_vm._s(_vm.$t('GENERIC.BUTTON_SAVE')))]),_c('b-button',{on:{\"click\":function($event){return _vm.closeReplaceGenericFileModal()}}},[_vm._v(_vm._s(_vm.$t('GENERIC.CLOSE_BUTTON')))])],1)])],1)])}\nvar staticRenderFns = []\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!./ProductGenericDocumentsList.vue?vue&type=template&id=8a587f58&scoped=true\"","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!./UploadSingleDocument.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!./UploadSingleDocument.vue?vue&type=script&lang=ts\"","import { IMaterialDto } from \"@/interfaces/IMaterialDto\";\r\n\r\nexport class ProductBase{\r\n public IdProduct:string;\r\n public Code?: string;\r\n public OldCode:string;\r\n public Description:string;\r\n public TreeHierarchyCode:string;\r\n public Viscosity:string;\r\n public TechSpecs:string;\r\n public Approvals:string;\r\n public PerformanceLevel:string;\r\n public IsPublic:boolean;\r\n public ImportedFromSAP?:boolean;\r\n public Sperimental:boolean;\r\n public Edible:boolean;\r\n public NonfoodCompounds:string;\r\n public Materials?:IMaterialDto[];\r\n constructor(t?:any){\r\n if (t){\r\n Object.assign(this,t);\r\n }\r\n }\r\n}","import { render, staticRenderFns } from \"./ProductGenericDocumentsList.vue?vue&type=template&id=8a587f58&scoped=true\"\nimport script from \"./ProductGenericDocumentsList.vue?vue&type=script&lang=ts\"\nexport * from \"./ProductGenericDocumentsList.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 \"8a587f58\",\n null\n \n)\n\nexport default component.exports","import { render, staticRenderFns } from \"./ProductDetail.vue?vue&type=template&id=43ff0ac4&scoped=true\"\nimport script from \"./ProductDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./ProductDetail.vue?vue&type=script&lang=ts\"\nimport style0 from \"./ProductDetail.vue?vue&type=style&index=0&id=43ff0ac4&prod&scoped=true&lang=css\"\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 \"43ff0ac4\",\n null\n \n)\n\nexport default component.exports","\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, Prop } from 'vue-property-decorator';\nimport axios from 'axios';\nimport { General } from '@/services/General';\nimport { ClaimEnum } from '@/services/ClaimEnum';\n\n@Component\nexport default class ProductGenericDocumentsList extends Vue {\n @Prop({\n required: true\n })\n product: any;\n fileName: string = '';\n documentsFields = [];\n countryAuthorities: any = [];\n countryAuthoritySelected: string = null;\n genericDocumentToUpload: any = [];\n genericDocumentDescription: string = null;\n uploading: boolean = false;\n deleting: boolean = false;\n isAuthorizedUpload: boolean = false;\n showReplaceGenericDocumentChunkUploader: boolean = false;\n\n chunkSize: number = 300;\n importProcessList = [];\n uploadPerc: number = 0;\n idSession: string = \"\";\n\n countryAuthorityToReplace: string = null;\n genericDocumentToReplace: any = [];\n descriptionToReplace: string = null;\n\n general: any = {};\n selectedGenericFile: any = null;\n\n mounted() {\n this.reset();\n this.general = General;\n this.documentsFields = this.getDocumentFields();\n this.getCountries();\n this.isAuthorizedUpload = General.CheckAuthorization(ClaimEnum.CanUploadGenericDocument);\n }\n\n getDocumentFields(){\n return [\n {\n key: 'idDocument',\n label: this.$t('GENERIC.BTN_DOWNLOAD') as string,\n sortable: false,\n admin: false\n },\n {\n key: 'idDocumentEdit',\n label: this.$t('GENERIC.EDIT') as string,\n sortable: false,\n admin: true\n },\n {\n key: 'idDocumentDelete',\n label: this.$t('GENERIC.DELETE') as string,\n sortable: false,\n admin: true\n },\n {\n key: 'country',\n label: this.$t('GENERIC.REGION') as string,\n sortable: true,\n admin: false\n },\n {\n key: 'name',\n label: this.$t('GENERIC.NAME') as string,\n sortable: true,\n admin: false\n },\n {\n key: 'description',\n label: this.$t('GENERIC.DESCRIPTION') as string,\n sortable: true,\n admin: false\n },\n {\n key: 'lastModifyDate',\n label: this.$t('PRODUCT.UPDATE_DATE') as string,\n sortable: true,\n admin: false\n }\n ]\n }\n authorizedFields() {\n if (!this.isAuthorizedUpload) return this.documentsFields.filter(this.filterFields); \n return this.documentsFields; \n }\n filterFields(element, index, array) {\n return (element.admin == false);\n }\n openUploadGenericFileModal() {\n this.$bvModal.show('upload-generic-document-modal');\n }\n closeUploadGenericFileModal() {\n this.$bvModal.hide('upload-generic-document-modal');\n let app = this;\n app.reset();\n }\n openReplaceGenericFileModal(genericFile: any) {\n let app = this;\n this.selectedGenericFile = genericFile;\n for (var i = 0; i < app.countryAuthorities.length; i++) {\n if (app.countryAuthorities[i].text == this.selectedGenericFile.country) {\n app.countryAuthorityToReplace = app.countryAuthorities[i].value;\n }\n }\n app.descriptionToReplace = this.selectedGenericFile.description;\n this.$bvModal.show('replace-generic-document-modal');\n }\n closeReplaceGenericFileModal() {\n let app = this;\n app.reset();\n this.$bvModal.hide('replace-generic-document-modal');\n }\n showReplaceChunkUploader() {\n this.showReplaceGenericDocumentChunkUploader = true;\n }\n askConfirmationForDeleteProduct(idDocument: string): void {\n let app = this;\n let callback = (): void => {\n app.deleteGenericDocument(idDocument);\n }\n General.confirm(this.$t('PRODUCT.CONFIRM_DELETE') as string, app, callback);\n }\n deleteGenericDocument(idDocument: string) {\n let app = this;\n app.deleting = true;\n \n axios({\n method: 'post',\n url: General.GetApiUrl('/api/document/DeleteGenericDocument?idDocument=' + idDocument),\n responseType: 'json',\n withCredentials: true\n }).then(function (response) {\n app.deleting = false;\n let documentBase = app.product.documents.filter(p => p.documentTypeCode != \"GENERIC\");\n app.product.documents = documentBase.concat(response.data.documents);\n \n }).catch(error => {\n app.deleting = false;\n General.HandleError(error, app);\n });\n }\n getCountries() {\n let app = this;\n let apiUrl = General.GetApiUrl('/api/culture/getcountries?emptyCountriesPolicy=0&type=COUNTRY_AUTHORITY');\n axios({\n method: 'get',\n url: apiUrl,\n responseType: 'json',\n withCredentials: true\n }).then(function (response) {\n let outputData = new Array();\n response.data.forEach(function (item: any) {\n outputData.push({\n value: item.idCountry,\n text: item.name\n });\n });\n app.countryAuthorities = outputData;\n }).catch(error => {\n General.HandleError(error, app);\n });\n }\n showDate(date: any): string {\n return General.showDate(date);\n }\n showSize(size: number): string {\n return General.showSize(size);\n }\n getGenericDocumentUrl(idDocument: any) {\n return General.GetApiUrl(\"/api/document/DownloadGenericDocumentById?documentId=\" + idDocument);\n }\n getGenericDocuments(): any[] {\n let genericDocuments: any[] = [];\n for (let document of this.product.documents) {\n if (document.documentTypeCode == 'GENERIC') {\n let singleRow = {\n name: document.documentName,\n description: document.documentDescription,\n country: document.culture.country.name,\n idDocument: document.idDocument,\n idDocumentEdit: document.idDocument,\n idDocumentDelete: document.idDocument,\n lastModifyDate: document.lastModifyDate,\n documentFileSize: document.documentFileSize,\n canBeDeleted: document.canBeDeleted\n };\n \n\n genericDocuments.push(singleRow);\n }\n }\n return genericDocuments;\n }\n getFileName(fileName: string) {\n console.log(fileName)\n this.fileName = fileName;\n }\n saveGenericDocument() {\n this.uploading = true;\n let app = this;\n let formData = new FormData();\n formData.append('description', app.genericDocumentDescription);\n formData.append('idproduct', app.product.idProduct);\n formData.append('idcountry', app.countryAuthoritySelected);\n formData.append('idSession', app.idSession);\n axios({\n method: 'post',\n url: General.GetApiUrl('/api/document/savegenericdocument'),\n data: formData,\n withCredentials: true\n })\n .then(function (response) {\n \n app.reset();\n if (response.data.errors) {\n let error = \"\";\n for (let i = 0; i < response.data.errors.length; i++) {\n error += response.data.errors[i] + \"
\";\n }\n General.showAlertDangerAsHTML(error, app);\n }\n else {\n let documentBase = app.product.documents.filter(p => p.documentTypeCode != \"GENERIC\"); \n app.product.documents = documentBase.concat(response.data.documents);\n General.showAlertSuccess(this.$t('PRODUCT.SAVE_SUCCESS'), app);\n app.closeUploadGenericFileModal();\n }\n })\n .catch(error => {\n app.reset();\n General.HandleError(error, app);\n });\n }\n updateProgress(e: any) {\n this.uploadPerc = e;\n }\n showSuccessAlert(sessionId: any) {\n let app = this;\n app.idSession = sessionId;\n app.uploadPerc = 100;\n //General.showAlertSuccess(\"Upload Complete\", app);\n }\n replaceGenericDocument() {\n this.uploading = true;\n let app = this;\n let formData = new FormData();\n formData.append('description', app.descriptionToReplace);\n formData.append('idproduct', app.product.idProduct);\n formData.append('idcountry', app.countryAuthorityToReplace);\n formData.append('iddocument', app.selectedGenericFile.idDocument);\n formData.append('idSession', app.idSession);\n axios({\n method: 'post',\n url: General.GetApiUrl('/api/document/replacegenericdocument'),\n data: formData,\n withCredentials: true\n })\n .then(function (response) {\n app.reset();\n if (response.data.errors) {\n let error = \"\";\n for (let i = 0; i < response.data.errors.length; i++) {\n error += response.data.errors[i] + \"
\";\n }\n General.showAlertDangerAsHTML(error, app);\n }\n else {\n let documentBase = app.product.documents.filter(p => p.documentTypeCode != \"GENERIC\");\n app.product.documents = documentBase.concat(response.data.product.documents);\n \n General.showAlertSuccess(this.$t('PRODUCT.UPLOAD_SUCCESS'), app);\n app.closeReplaceGenericFileModal();\n }\n })\n .catch(error => {\n app.reset();\n General.HandleError(error, app);\n });\n }\n reset() {\n this.uploading = false;\n this.genericDocumentToUpload = [];\n this.genericDocumentDescription = \"\";\n this.uploadPerc = 0;\n this.showReplaceGenericDocumentChunkUploader = false;\n this.fileName = '';\n this.importProcessList = [];\n this.idSession = \"\";\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[(_vm.uploading)?_c('div',{staticClass:\"alert alert-info\"},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}}),_vm._v(\"Uploading file.. \")],1):_vm._e(),(_vm.documentTypeSelected == 'PDS')?_c('div',{staticClass:\"alert alert-info\"},[_vm._v(\" The uploaded PDF will automatically be protected against modification \")]):_vm._e()])])]),_c('div',[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Country Authority / Region:\")]),_c('div',{staticClass:\"col-8\"},[_c('b-form-select',{attrs:{\"disabled\":_vm.uploading,\"options\":_vm.countryAuthorities},model:{value:(_vm.countryAuthoritySelected),callback:function ($$v) {_vm.countryAuthoritySelected=$$v},expression:\"countryAuthoritySelected\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Language:\")]),_c('div',{staticClass:\"col-8\"},[_c('b-form-select',{attrs:{\"disabled\":_vm.uploading,\"options\":_vm.getLanguages(_vm.countryAuthoritySelected)},model:{value:(_vm.languageSelected),callback:function ($$v) {_vm.languageSelected=$$v},expression:\"languageSelected\"}}),(_vm.languageSelected!=null && _vm.languageSelected=='OTHER')?_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-3 col-form-label\"},[_vm._v(\"Add language:\")]),_c('div',{staticClass:\"col-9\"},[_c('b-form-select',{attrs:{\"disabled\":_vm.uploading,\"options\":_vm.getOtherLanguages(_vm.countryAuthoritySelected)},model:{value:(_vm.otherLanguageSelected),callback:function ($$v) {_vm.otherLanguageSelected=$$v},expression:\"otherLanguageSelected\"}})],1)]):_vm._e()],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Document Type:\")]),_c('div',{staticClass:\"col-8\"},[_c('b-form-select',{attrs:{\"disabled\":_vm.uploading,\"options\":_vm.documentTypes},model:{value:(_vm.documentTypeSelected),callback:function ($$v) {_vm.documentTypeSelected=$$v},expression:\"documentTypeSelected\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-4 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Document to upload:\")]),_c('div',{staticClass:\"col-8\"},[(_vm.uploadPerc>0)?_c('span',[_vm._v(_vm._s(_vm.fileName))]):_vm._e(),(!_vm.uploading)?_c('chunk-uploader',{attrs:{\"endpoint\":\"/api/document/UploadGenericDocumentChunk\",\"chunk-size\":_vm.chunkSize,\"max-parallel-upload\":3,\"ext-allowed\":\"\",\"max-size-allowed-kb\":4096},on:{\"completed\":_vm.showSuccessAlert,\"progress\":_vm.updateProgress,\"getfilename\":_vm.getFileName}}):_vm._e(),(_vm.uploadPerc>0)?_c('div',{staticStyle:{\"padding-top\":\"10px\"}},[_c('b-progress',{attrs:{\"max\":100}},[_c('b-progress-bar',{attrs:{\"value\":_vm.uploadPerc,\"label\":((parseInt(_vm.uploadPerc)) + \"%\")}})],1)],1):_vm._e()],1)])])]),_c('footer',{staticClass:\"modal-footer\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.saveSingleDocument()}}},[_vm._v(\"Save\")]),_c('b-button',{on:{\"click\":function($event){return _vm.close()}}},[_vm._v(\"Close\")])],1)])}\nvar staticRenderFns = []\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!./UploadSingleDocument.vue?vue&type=template&id=0fec42ea&scoped=true\"","\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\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, Prop, Vue } from 'vue-property-decorator';\nimport axios from 'axios';\nimport { General } from '@/services/General';\nimport TreeHierarchy from '@/components/TreeHierarchy.vue';\nimport MaterialsListPrintTool from '@/components/MaterialsListPrintTool.vue';\nimport ProductGenericDocumentsList from '@/components/ProductGenericDocumentsList.vue';\nimport UploadSingleDocument from '@/components/UploadSingleDocument.vue';\nimport { ClaimEnum } from '@/services/ClaimEnum';\nimport {ProductBase} from '@/entity/ProductBase';\n\n@Component({\n components: {\n TreeHierarchy,\n MaterialsListPrintTool,\n ProductGenericDocumentsList,\n UploadSingleDocument\n }\n})\nexport default class ProductDetail extends Vue {\n @Prop()\n public idproduct!: any;\n\n @Prop()\n idModel: string;\n\n @Prop()\n showClose: boolean;\n tabActivated: number;\n uploadSingleDocument_DocumentType: string = null;\n loading: boolean = true;\n product: any = {};\n general: any = {};\n isPublicSelected: any = '-';\n publicOptions = [\n \n ]\n fileRowSelected:any = null;\n treeHierarchyLevel: number = 6;\n collapseTreeHierarchyVisibility:boolean = false;\n mergeDocuments(): any[] {\n let outputDocuments: any[] = [];\n for (let document of this.product.documents) {\n if (document.culture.friendlyName != \"Default Culture\") { //per escludere i GENERIC\n if (!this.findByCulture(document.culture.idCulture, outputDocuments)) {\n let singleRow = {\n culture: document.culture,\n canBeDeleted: document.canBeDeleted,\n documentSds: this.filesFilterBy('SDS', document.culture.idCulture),\n documentPds: this.filesFilterBy('PDS', document.culture.idCulture),\n documentPdsDOCX: this.filesFilterBy('PDSDOCX', document.culture.idCulture)\n };\n outputDocuments.push(singleRow);\n }\n }\n }\n return outputDocuments.sort((n1, n2) => {\n if (n1.culture.language.name > n2.culture.language.name) {\n return 1;\n }\n if (n1.culture.language.name < n2.culture.language.name) {\n return -1;\n }\n return 0;\n });\n }\n close() {\n this.$bvModal.hide('product-detail-modal');\n }\n\n afterMaterialDetailEditProduct() {\n this.refresh();\n }\n\n deleteProduct(): void {\n let app = this;\n let callDeletion = (): void => {\n app.deletion();\n }\n General.confirm(this.$t('PRODUCT.CONFIRM_DELETE') as string, app, callDeletion);\n }\n async saveProduct(){\n let app = this;\n let callSaving = async () => {\n await app.saveProductDo();\n }\n General.confirm(this.$t('PRODUCT.CONFIRM_SAVE') as string, app, callSaving);\n\n }\n\n async saveProductDo(){\n\n let app = this;\n let error = false;\n\n let productBase = new ProductBase();\n productBase.IdProduct = this.idproduct;\n productBase.OldCode = this.product.oldCode;\n productBase.Description = this.product.description;\n productBase.TreeHierarchyCode = this.product.treeHierarchyCode;\n productBase.Approvals = this.product.approvals;\n productBase.Viscosity = this.product.viscosity;\n productBase.TechSpecs = this.product.techSpecs;\n productBase.PerformanceLevel = this.product.performanceLevel;\n productBase.IsPublic = this.product.isPublic;\n productBase.Sperimental = this.product.sperimental\n productBase.Edible = this.product.edible;\n productBase.NonfoodCompounds = this.product.nonfoodCompounds;\n \n General.mainLoading(true);\n try{\n await axios.post(General.GetApiUrl('/api/product/UpdateProduct'),productBase,{ withCredentials: true });\n }catch(error){\n General.HandleError(error, app);\n error = true; \n\n }\n General.mainLoading(false); \n\n if (!error) app.$bvModal.hide('product-detail-modal');\n\n }\n async deletion() {\n let app = this;\n General.mainLoading(true);\n await axios({\n method: 'delete',\n url: General.GetApiUrl('/api/product/DeleteProduct?idProduct=' + this.idproduct),\n responseType: 'json',\n withCredentials: true\n }).then(function (response) {\n app.$bvModal.hide('product-detail-modal');\n General.mainLoading(false);\n }).catch(error => {\n General.HandleError(error, app);\n General.mainLoading(false);\n });\n }\n findByCulture(idCulture: string, documentsIn: any[]): boolean {\n let documents: any[] = documentsIn.filter(item =>\n item.culture.idCulture == idCulture\n );\n if (documents.length > 0) return true;\n return false;\n }\n filesFilterBy(type: string, idCulture: string): any[] {\n let documents: any[] = this.product.documents.filter(item =>\n item.documentTypeCode == type && item.culture.idCulture == idCulture\n );\n if (documents.length == 0) return null;\n return documents[0];\n }\n get showDelete(): boolean {\n return General.CheckAuthorization(ClaimEnum.CanDeleteProduct);\n }\n get showUpload(): boolean {\n return General.CheckAuthorization(ClaimEnum.CanUploadDocument);\n }\n get showSave(): boolean{\n return this.editBaseInfo||this.editTechSpecs;\n\n }\n\n get editBaseInfo(): boolean{\n let isUserAuthorized = General.CheckAuthorization(ClaimEnum.CanEditProduct);\n let isProductManagedBySAP = this.product.importedFromSAP;\n return (isUserAuthorized && !isProductManagedBySAP)\n }\n \n get editSperimentalInfo(): boolean{\n let isUserAuthorized = General.CheckAuthorization(ClaimEnum.CanEditProduct);\n return isUserAuthorized;\n }\n\n get editTechSpecs(): boolean{\n let isUserAuthorized = General.CheckAuthorization(ClaimEnum.CanUploadTechSpecs); \n\n return isUserAuthorized;\n }\n mounted() {\n this.tabActivated = 0;\n this.publicOptions = [{ value: true, text: this.$t('PRODUCT.PUBLIC') as string },\n { value: false, text: this.$t('PRODUCT.NON_PUBLIC') as string }]\n this.refresh();\n }\n rowSelector(item: any) {\n if (item == null)\n this.fileRowSelected = null;\n else\n this.fileRowSelected = item.culture.idCulture;\n \n }\n async deleteFile(idDocument: any) {\n let app = this;\n let callDeletion = async () => {\n General.mainLoading(true);\n try {\n\n await axios({\n method: 'post',\n url: General.GetApiUrl('/api/document/DeleteGenericDocument?idDocument=' + idDocument),\n responseType: 'json',\n withCredentials: true\n });\n General.mainLoading(false);\n app.refresh()\n } catch (error) {\n General.HandleError(error, this);\n General.mainLoading(false);\n }\n }\n\n General.confirm(this.$t('PRODUCT.CONFIRM_DELETE') as string, app, await callDeletion);\n }\n async refresh() {\n this.loading = true;\n let app = this;\n \n try{\n var productResponse = await axios({\n method: 'get',\n url: General.GetApiUrl('/api/product/GetProductById?productId=' + this.idproduct),\n responseType: 'json',\n withCredentials: true\n\n });\n \n\n this.product = productResponse.data;\n \n this.product.materials.forEach(el=>{\n el.product = app.product\n });\n \n this.loading = false;\n this.isPublicSelected = this.product.isPublic;\n this.general = General;\n }catch(error){\n General.HandleError(error, this);\n\n }\n }\n openUploadSingleDocumentModalPDS() {\n this.uploadSingleDocument_DocumentType = \"PDS\";\n this.$bvModal.show('upload-single-document-modal');\n }\n openUploadSingleDocumentModalPDSDOCX() {\n this.uploadSingleDocument_DocumentType = \"PDSDOCX\";\n this.$bvModal.show('upload-single-document-modal');\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/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!./TreeHierarchy.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!./TreeHierarchy.vue?vue&type=script&lang=ts\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TreeHierarchy.vue?vue&type=style&index=0&id=07ab93d8&prod&scoped=true&lang=css\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductDetail.vue?vue&type=style&index=0&id=43ff0ac4&prod&scoped=true&lang=css\"","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!./ProductDetail.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!./ProductDetail.vue?vue&type=script&lang=ts\"","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeJoin = uncurryThis([].join);\n\nvar ES3_STRINGS = IndexedObject !== Object;\nvar FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');\n\n// `Array.prototype.join` method\n// https://tc39.es/ecma262/#sec-array.prototype.join\n$({ target: 'Array', proto: true, forced: FORCED }, {\n join: function join(separator) {\n return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);\n }\n});\n","\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\n\n@Component({\n name: 'TreeHierarchy'\n})\nexport default class TreeHierarchy extends Vue {\n @Prop({\n type: Object,\n required: true\n })\n node: any;\n\n @Prop({\n type: Boolean,\n required: false,\n default: false\n })\n onlyRow;\n\n @Prop({\n type: Number,\n required: false,\n default: false\n })\n level;\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loading)?_c('b-spinner',{attrs:{\"label\":\"Spinning\"}}):_vm._e(),(!_vm.loading)?_c('div',[_c('b-tabs',{model:{value:(_vm.tabActivated),callback:function ($$v) {_vm.tabActivated=$$v},expression:\"tabActivated\"}},[_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":_vm.$t('PRODUCT.BASE_INFO')}},[_c('b-form',[_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-sm-4\",attrs:{\"label\":_vm.$t('PRODUCT.CODE')}},[_c('b-form-input',{attrs:{\"max\":\"8\",\"readonly\":\"\"},model:{value:(_vm.product.code),callback:function ($$v) {_vm.$set(_vm.product, \"code\", $$v)},expression:\"product.code\"}})],1),_c('b-form-group',{staticClass:\"col-sm-4\",attrs:{\"label\":_vm.$t('PRODUCT.OLD_CODE')}},[_c('b-form-input',{attrs:{\"readonly\":!_vm.editBaseInfo,\"type\":\"text\",\"maxlength\":\"8\"},model:{value:(_vm.product.oldCode),callback:function ($$v) {_vm.$set(_vm.product, \"oldCode\", $$v)},expression:\"product.oldCode\"}})],1),_c('b-form-group',{staticClass:\"col-sm-4\",attrs:{\"label\":_vm.$t('PRODUCT.HIERARCHY_CODE')}},[_c('b-input-group',[_c('b-input-group-prepend',[_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.collapseTreeHierarchy\",modifiers:{\"collapseTreeHierarchy\":true}}],attrs:{\"variant\":\"light\"}},[_c('i',{staticClass:\"fa fa-th-list\",attrs:{\"aria-hidden\":\"true\"}})])],1),_c('b-input',{attrs:{\"readonly\":!_vm.editBaseInfo},model:{value:(_vm.product.treeHierarchyCode),callback:function ($$v) {_vm.$set(_vm.product, \"treeHierarchyCode\", $$v)},expression:\"product.treeHierarchyCode\"}})],1),_c('b-collapse',{staticClass:\"border\",attrs:{\"id\":\"collapseTreeHierarchy\"}},[(_vm.product.treeHierarchy!=null)?_c('TreeHierarchy',{attrs:{\"node\":_vm.product.treeHierarchy,\"level\":_vm.treeHierarchyLevel}}):_vm._e()],1)],1)],1),_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-sm-12\",attrs:{\"label\":_vm.$t('PRODUCT.DESCRIPTION')}},[_c('b-form-input',{attrs:{\"id\":\"textarea\",\"rows\":\"3\",\"readonly\":!_vm.editBaseInfo},model:{value:(_vm.product.description),callback:function ($$v) {_vm.$set(_vm.product, \"description\", $$v)},expression:\"product.description\"}})],1)],1),_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-sm-12\",attrs:{\"label\":_vm.$t('PRODUCT.TECH_SPEC')}},[_c('b-form-textarea',{attrs:{\"id\":\"techSpec\",\"rows\":\"3\",\"readonly\":!_vm.editTechSpecs},model:{value:(_vm.product.techSpecs),callback:function ($$v) {_vm.$set(_vm.product, \"techSpecs\", $$v)},expression:\"product.techSpecs\"}})],1)],1),_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-sm-12\",attrs:{\"label\":_vm.$t('PRODUCT.VISCOSITY')}},[_c('b-form-textarea',{attrs:{\"rows\":\"3\",\"readonly\":!_vm.editTechSpecs},model:{value:(_vm.product.viscosity),callback:function ($$v) {_vm.$set(_vm.product, \"viscosity\", $$v)},expression:\"product.viscosity\"}})],1)],1),_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-sm-12\",attrs:{\"label\":_vm.$t('PRODUCT.APPROVALS')}},[_c('b-form-textarea',{attrs:{\"rows\":\"3\",\"readonly\":!_vm.editTechSpecs},model:{value:(_vm.product.approvals),callback:function ($$v) {_vm.$set(_vm.product, \"approvals\", $$v)},expression:\"product.approvals\"}})],1)],1),_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-sm-12\",attrs:{\"label\":_vm.$t('PRODUCT.PERFORMANCE_LEVEL')}},[_c('b-form-textarea',{attrs:{\"rows\":\"3\",\"readonly\":!_vm.editTechSpecs},model:{value:(_vm.product.performanceLevel),callback:function ($$v) {_vm.$set(_vm.product, \"performanceLevel\", $$v)},expression:\"product.performanceLevel\"}})],1)],1),_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-sm-3\",attrs:{\"label\":_vm.$t('PRODUCT.VISIBILITY')}},[(_vm.showSave&&!_vm.product.importedFromSAP)?[_c('b-form-select',{staticStyle:{\"width\":\"auto\"},attrs:{\"options\":_vm.publicOptions},model:{value:(_vm.product.isPublic),callback:function ($$v) {_vm.$set(_vm.product, \"isPublic\", $$v)},expression:\"product.isPublic\"}})]:[(_vm.product.isPublic)?_c('span',{staticStyle:{\"color\":\"#309b30\",\"font-weight\":\"bolder\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.PUBLIC')))]):_vm._e(),(!_vm.product.isPublic)?_c('span',{staticStyle:{\"color\":\"#bd0808\",\"font-weight\":\"bolder\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.NON_PUBLIC')))]):_vm._e()]],2),_c('b-form-group',{staticClass:\"col-sm-3\",attrs:{\"label\":_vm.$t('PRODUCT.PRODUCT_CHECK')}},[(_vm.product.importedFromSAP)?_c('span',{staticStyle:{\"color\":\"#309b30\",\"font-weight\":\"bolder\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.BY_SAP')))]):_vm._e(),(!_vm.product.importedFromSAP)?_c('span',{staticStyle:{\"color\":\"#bd0808\",\"font-weight\":\"bolder\"}},[_vm._v(_vm._s(_vm.$t('PRODUCT.NO_CHECKED')))]):_vm._e()]),_c('b-form-group',{staticClass:\"col-sm-3\",attrs:{\"label\":_vm.$t('PRODUCT.IS_SPERIMENTAL')}},[_c('b-checkbox',{attrs:{\"disabled\":!_vm.editSperimentalInfo},model:{value:(_vm.product.sperimental),callback:function ($$v) {_vm.$set(_vm.product, \"sperimental\", $$v)},expression:\"product.sperimental\"}},[(_vm.product.sperimental)?_c('span',{staticStyle:{\"color\":\"#309b30\",\"font-weight\":\"bolder\"}},[_vm._v(_vm._s(_vm.$t('GENERIC.YES')))]):_vm._e(),(!_vm.product.sperimental)?_c('span',{staticStyle:{\"color\":\"#bd0808\",\"font-weight\":\"bolder\"}},[_vm._v(_vm._s(_vm.$t('GENERIC.NO')))]):_vm._e()])],1),_c('b-form-group',{staticClass:\"col-sm-3\",attrs:{\"label\":_vm.$t('PRODUCT.IS_EDIBLE')}},[_c('b-checkbox',{attrs:{\"disabled\":!_vm.editSperimentalInfo},model:{value:(_vm.product.edible),callback:function ($$v) {_vm.$set(_vm.product, \"edible\", $$v)},expression:\"product.edible\"}},[(_vm.product.edible)?_c('span',{staticStyle:{\"color\":\"#309b30\",\"font-weight\":\"bolder\"}},[_vm._v(_vm._s(_vm.$t('GENERIC.YES')))]):_vm._e(),(!_vm.product.edible)?_c('span',{staticStyle:{\"color\":\"#bd0808\",\"font-weight\":\"bolder\"}},[_vm._v(_vm._s(_vm.$t('GENERIC.NO')))]):_vm._e()]),(_vm.product.edible==true)?_c('div',[_c('b-input',{attrs:{\"placeholder\":_vm.$t('PRODUCT.ENTER_CODES')},model:{value:(_vm.product.nonfoodCompounds),callback:function ($$v) {_vm.$set(_vm.product, \"nonfoodCompounds\", $$v)},expression:\"product.nonfoodCompounds\"}})],1):_vm._e()],1)],1)]),_c('footer',{staticClass:\"modal-footer\"},[(_vm.showDelete)?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.deleteProduct()}}},[_vm._v(_vm._s(_vm.$t('PRODUCT.DELETE')))]):_vm._e(),(_vm.showSave)?_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.saveProduct()}}},[_vm._v(_vm._s(_vm.$t('PRODUCT.SAVE')))]):_vm._e()],1)],1),_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":_vm.$t('PRODUCT.FILES')}},[_c('div',{staticClass:\"form-group row\"},[_c('div',{staticClass:\"col-sm-12\"},[_c('table',{staticClass:\"table b-table table-striped table-hover\",attrs:{\"id\":\"fileList\"}},[_c('thead',{staticClass:\"table-dark\"},[_c('tr',[_c('th',[_vm._v(_vm._s(_vm.$t('PRODUCT.LANGUAGE')))]),_c('th',[_vm._v(_vm._s(_vm.$t('PRODUCT.SDS')))]),_c('th',[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.PDS'))+\" \"),(_vm.showUpload)?_c('span',{staticClass:\"fa fa-plus-circle clickable\",attrs:{\"id\":\"pds-insert\"},on:{\"click\":function($event){return _vm.openUploadSingleDocumentModalPDS()}}}):_vm._e(),_c('b-popover',{attrs:{\"target\":\"pds-insert\",\"triggers\":\"hover\",\"placement\":\"auto\"}},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.INSERT_PDS_PDF'))+\" \")]),_c('span',{staticClass:\"fa fa-exclamation-triangle help\",staticStyle:{\"color\":\"#ffc107\",\"margin-left\":\"10px\"},attrs:{\"id\":\"popover-target-1\"}}),_c('b-popover',{attrs:{\"target\":\"popover-target-1\",\"triggers\":\"hover\",\"placement\":\"auto\",\"variant\":\"warning\"}},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('PRODUCT.WORKING_IN_PROGRESS'))}})])],1),(_vm.showUpload==true)?_c('th',[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.PDS_WORD'))+\" \"),(_vm.showUpload)?_c('span',{staticClass:\"fa fa-plus-circle clickable\",attrs:{\"id\":\"pds-word-insert\"},on:{\"click\":function($event){return _vm.openUploadSingleDocumentModalPDSDOCX()}}}):_vm._e(),_c('b-popover',{attrs:{\"target\":\"pds-word-insert\",\"triggers\":\"hover\",\"placement\":\"auto\"}},[_vm._v(\" \"+_vm._s(_vm.$t('PRODUCT.INSERT_PDS_DOCX'))+\" \")])],1):_vm._e()])]),_c('tbody',_vm._l((_vm.mergeDocuments()),function(item,index){return _c('tr',{key:index,class:{highlight:(_vm.fileRowSelected==item.culture.idCulture&&item.canBeDeleted)},on:{\"mouseover\":function($event){return _vm.rowSelector(item)},\"mouseleave\":function($event){return _vm.rowSelector(null)}}},[_c('td',[_c('span',{staticClass:\"cultureName\"},[_vm._v(_vm._s(item.culture.language.name)+\" \"),_c('span',{staticStyle:{\"font-size\":\"11px\"}},[_vm._v(\"(\"+_vm._s(item.culture.country.name)+\")\")])])]),_c('td',[(item.documentSds!=null)?_c('b-link',{staticClass:\"documentDetail\",attrs:{\"href\":_vm.general.getDocumentUrl(item.documentSds.idDocument),\"target\":\"_blank\"}},[_c('span',{staticClass:\"fa fa-file-pdf-o\"})]):_vm._e(),(item.documentSds==null)?_c('span',[_vm._v(\"-\")]):_vm._e()],1),_c('td',[(item.documentPds!=null)?_c('b-link',{staticClass:\"documentDetail\",attrs:{\"href\":_vm.general.getDocumentUrl(item.documentPds.idDocument),\"target\":\"_blank\"}},[_c('span',{staticClass:\"fa fa-file-pdf-o\"})]):_vm._e(),(item.documentPds==null)?_c('span',[_vm._v(\"-\")]):_vm._e(),(item.documentPds!=null && _vm.showUpload)?_c('b-button',{staticClass:\"deleteBtn\",attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.deleteFile(item.documentPds.idDocument)}}},[_vm._v(_vm._s(_vm.$t('GENERIC.DELETE')))]):_vm._e()],1),(_vm.showUpload==true)?_c('td',[(item.documentPdsDOCX!=null)?_c('b-link',{staticClass:\"documentDetail\",attrs:{\"href\":_vm.general.getDocumentUrl(item.documentPdsDOCX.idDocument),\"target\":\"_blank\"}},[_c('span',{staticClass:\"fa fa-file-pdf-o\"})]):_vm._e(),(item.documentPdsDOCX==null)?_c('span',[_vm._v(\"-\")]):_vm._e(),(item.documentPdsDOCX!=null && _vm.showUpload)?_c('b-button',{staticClass:\"deleteBtn\",attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.deleteFile(item.documentPdsDOCX.idDocument)}}},[_vm._v(_vm._s(_vm.$t('GENERIC.DELETE')))]):_vm._e()],1):_vm._e()])}),0)])])]),_c('b-modal',{attrs:{\"id\":\"upload-single-document-modal\",\"title\":\"Upload single document\",\"size\":\"xl\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\"}},[_c('upload-single-document',{attrs:{\"product\":_vm.product,\"document-type\":_vm.uploadSingleDocument_DocumentType},on:{\"complete\":_vm.refresh}})],1)],1),_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":_vm.$t('PRODUCT.MATERIALS')}},[_c('materials-list-print-tool',{attrs:{\"showProductsInfo\":false,\"product\":_vm.product,\"materialList\":_vm.product.materials,\"fromProductDetail\":true,\"editProductMode\":true},on:{\"afterMaterialDetailEditProduct\":function($event){return _vm.afterMaterialDetailEditProduct()}}})],1),_c('b-tab',{staticClass:\"p-3\",attrs:{\"title\":_vm.$t('PRODUCT.GENERIC_DOCUMENTS')}},[_c('product-generic-documents-list',{attrs:{\"product\":_vm.product}})],1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\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!./ProductDetail.vue?vue&type=template&id=43ff0ac4&scoped=true\"","import { render, staticRenderFns } from \"./TreeHierarchy.vue?vue&type=template&id=07ab93d8&scoped=true\"\nimport script from \"./TreeHierarchy.vue?vue&type=script&lang=ts\"\nexport * from \"./TreeHierarchy.vue?vue&type=script&lang=ts\"\nimport style0 from \"./TreeHierarchy.vue?vue&type=style&index=0&id=07ab93d8&prod&scoped=true&lang=css\"\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 \"07ab93d8\",\n null\n \n)\n\nexport default component.exports","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!./ProductGenericDocumentsList.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!./ProductGenericDocumentsList.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./UploadSingleDocument.vue?vue&type=template&id=0fec42ea&scoped=true\"\nimport script from \"./UploadSingleDocument.vue?vue&type=script&lang=ts\"\nexport * from \"./UploadSingleDocument.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 \"0fec42ea\",\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 (_vm.node!=null)?_c('div',[(_vm.node.father!=null)?_c('TreeHierarchy',{attrs:{\"node\":_vm.node.father,\"level\":_vm.level-1,\"only-row\":true}}):_vm._e(),_c('div',{staticClass:\"row small\"},[_c('strong',[_vm._v(_vm._s(_vm.node.partialCode))]),_vm._v(\": \"+_vm._s(_vm.node.description)+\" \")])],1):_vm._e()}\nvar staticRenderFns = []\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!./TreeHierarchy.vue?vue&type=template&id=07ab93d8&scoped=true\""],"sourceRoot":""}