{"version":3,"sources":["webpack:///./src/components/Utilities/LeftClickOptionMenu.vue?b5db","webpack:///./src/components/Net20/ReportContractRenewals.vue?1f2f","webpack:///./src/components/Pages/Net20/ReportContractRenewalsPage.vue?edf8","webpack:///./src/components/Pages/Net20/ReportContractRenewalsPage.vue","webpack:///./src/components/Pages/Net20/ReportContractRenewalsPage.vue?46b1","webpack:///./src/components/Pages/Net20/ReportContractRenewalsPage.vue?9418","webpack:///./src/components/Net20/ReportContractRenewals.vue?72b9","webpack:///./src/components/Net20/ReportContractRenewals.vue?3668","webpack:///./src/components/Net20/ReportContractRenewals.vue?2bb1","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue?fcdf","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue","webpack:///./src/components/Net20/ReportContractRenewals.vue","webpack:///./src/components/Pages/Net20/ReportContractRenewalsPage.vue?41dc","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue?aa19","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue?55ab"],"names":["vue_property_decorator_1","require","LeftClickOptionMenu","_vue_property_decorat","_this","_classCallCheck","leftClickMenuOptions","name","slug","type","_inherits","_createClass","key","value","event","item","this","$refs","vueContextMenuGroup","showMenu","completeUrl","url","urlArgument","option","window","open","navigator","clipboard","writeText","location","protocol","host","Vue","tslib_1","__decorate","Prop","String","default","Component","axios_1","__importDefault","General_1","CustomerDetails_vue_1","DropDownItem_1","SearchFilter_vue_1","LeftClickOptionMenu_vue_1","i18n_setup_1","Net20DropDowns_1","file_saver_1","ContractAttachment_1","Enums_1","DownloadFileBackground_vue_1","ReportContractRenewals","idCustomerDetail","numericIdSelected","selectedContractYear","showLoading","ready","downloadReportInProgress","customerDetailEditMode","resultsItems","resultPage","Array","total","page","firstSearch","freeText","filterSelected","advCustomerId","advWorkshopName","advContractYear","advCustomerCountry","advDistributor","dropDownCountries","dropDownDistributor","contractYearRange","searchFilters","downloadUrl","processDescription","processType","PROCESS_TYPE_ENUM","downloadFiles","General","GetDropdownList","SOURCE","DISTRIBUTOR","_context","sent","next","getDropdownCountries","initContractYearRange","stop","_callee","attachmentId","fileName","method","GetApiUrl","withCredentials","responseType","response","_context2","saveAs","Blob","data","prev","t0","showAlertDanger","i18n","t","_callee2","fixedYearSearch","arguments","length","undefined","currentYear","Date","getFullYear","lowerLimit","lowerLimitYear","i","push","AdvancedSearchFilled","text","get","CheckAdvancedSearchFilled","CheckIsNullOrEmpty","date","formatDateEng","country","DropDownItem","countryList","_context3","forEach","element","idDropDownItem","idCountry","itemText","abrupt","SetOptionsDropDown","HandleError","_callee3","splice","genericSearch","searchItems","resetFilters","start","Number","searchCustomersDo","resetSearch","_context4","FreeText","CustomerId","WorkshopName","ContractYear","IdDistributor","AllRecords","CurrentPage","ContractYearRange","IdCountry","results","concat","listPage","_callee4","contractRenewals","firstContractYear","firstContractYearTimespan","contractYear","id","attachmentList","emptyAttachment","ContractAttachment","filter","x","attachments","validRenewalInYear","contractYearTimespan","$bvModal","show","_context5","_callee5","components","SearchFilter","CustomerDetails","DownloadFileBackground","ReportContractRenewals_vue_1","ReportContractRenewalsPage","_callSuper","component","render","_vm","_h","$createElement","_c","_self","staticClass","staticRenderFns","attrs","_m","$t","on","searchFilterSearchEvent","$event","searchFilterResertEvent","checkFilterParameter","indexOf","_k","keyCode","preventDefault","model","callback","$$v","expression","_v","_s","downloadExcelReport","staticStyle","_l","index","channel","salesman","distributor","vatNumber","workshopName","formatDate","creationDate","stepDescription","yearFirstContractAgreement","year","getAttachmentList","attachment","downloadAttachment","_e","ref","optionClicked"],"mappings":"uQAMAA,EAAAC,EAAA,QAIqBC,EAAmB,SAAAC,GAAxC,SAAAD,IAAA,IAAAE,EA4BM,OA5BNC,EAAA,KAAAH,G,sBAYIE,EAAAE,qBAA4B,CACxB,CACIC,KAAM,oBACNC,KAAM,gBAEV,CACID,KAAM,uBACNC,KAAM,mBAEV,CACIC,KAAM,WAEV,CACIF,KAAM,mBACNC,KAAM,sBAEZJ,EAgBL,OAAAM,EAA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AAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,0BAA0B,CAACwC,IAAI,sBAAsBpC,MAAM,CAAC,aAAa,oBAAoB,QAAUP,EAAIvL,sBAAsBiM,GAAG,CAAC,iBAAiBV,EAAI4C,kBAAkB,IACrRtC,EAAkB,GCDtB","file":"js/chunk-1200e3f5.5779b2d9.js","sourcesContent":["\n\n\n\n\n\nimport { Component, Prop, Vue} from 'vue-property-decorator';\nimport VueSimpleContextMenu from 'vue-simple-context-menu';\n\n@Component\nexport default class LeftClickOptionMenu extends Vue {\n @Prop({\n type: String,\n default: ''\n })\n url: any;\n @Prop({\n type: String,\n default: ''\n })\n urlArgument: any;\n \n leftClickMenuOptions: any = [\n {\n name: 'Open in a new Tab',\n slug: 'open-new-tab'\n },\n {\n name: 'Open in a new Window',\n slug: 'open-new-window'\n },\n {\n type: 'divider',\n },\n {\n name: 'Copy url address',\n slug: 'copy-to-clipboard'\n }\n ];\n \n handleClick (event, item) {\n (this.$refs.vueContextMenuGroup as VueSimpleContextMenu).showMenu(event, item)\n }\n\n optionClicked (event) {\n let completeUrl = this.url + event.item[this.urlArgument];\n if(event.option.slug === \"open-new-tab\"){\n window.open(completeUrl, \"_blank\")\n } else if(event.option.slug === \"open-new-window\") {\n window.open(completeUrl, \"\",\"fullscreen\");\n } else {\n navigator.clipboard.writeText(location.protocol + \"//\" + window.location.host + completeUrl);\n }\n }\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 CustomerDetails from '@/components/Net20/CustomerDetails.vue';\nimport { DropDownItem } from \"@/services/DropDownItem\";\nimport SearchFilter from '@/components/Utilities/SearchFilter.vue';\nimport LeftClickOptionMenu from \"@/components/Utilities/LeftClickOptionMenu.vue\";\nimport { i18n } from '@/i18n/i18n-setup';\nimport { GetDropDownListBySource, SOURCE } from '@/services/Net20DropDowns';\nimport { saveAs } from 'file-saver';\nimport { Contract } from '@/entity/Net20/Contract';\nimport { ContractAttachment } from '@/entity/Net20/ContractAttachment';\nimport { PROCESS_TYPE_ENUM } from '@/services/Enums';\nimport DownloadFileBackground from '../Utilities/DownloadFileBackground.vue';\n\n@Component({\n components: {\n SearchFilter,\n CustomerDetails,\n LeftClickOptionMenu,\n DownloadFileBackground\n },\n})\nexport default class ReportContractRenewals extends Vue { \n idCustomerDetail: any = null;\n numericIdSelected: number = null;\n selectedContractYear: number = null;\n\n showLoading: boolean = false;\n ready: boolean = false;\n downloadReportInProgress: boolean = false;\n customerDetailEditMode: boolean = false;\n\n // advanced search\n resultsItems: any = {\n resultPage: new Array(),\n total: 0\n };\n page: number = 1;\n firstSearch: boolean = false;\n freeText = null;\n filterSelected: boolean = false;\n advCustomerId: number = null;\n advWorkshopName: string = null;\n advContractYear: string = null;\n advCustomerCountry: string = null;\n advDistributor: string = null;\n\n dropDownCountries: any = new Array();\n dropDownDistributor: any = new Array();\n contractYearRange: Array = new Array();\n\n searchFilters: any = null;\n downloadUrl: string = \"/api/net20/DownloadReportContractRenewal\"\n processDescription: string = \"NET20 - Download Report Contract Agreement Renewal\"\n processType: PROCESS_TYPE_ENUM = PROCESS_TYPE_ENUM.downloadFiles;\n\n async mounted() {\n //Recupero la lista includendo i valori dismessi per la ricerca\n this.dropDownDistributor = await General.GetDropdownList(SOURCE.DISTRIBUTOR);\n this.dropDownCountries = await this.getDropdownCountries();\n this.initContractYearRange();\n this.ready = true;\n }\n\n async downloadAttachment(attachmentId: string, fileName: string) {\n try {\n let response = await axios({\n method: 'get',\n url: General.GetApiUrl(\"/api/net20/DownloadContractAttachment?attachmentId=\" + attachmentId),\n withCredentials: true,\n responseType: 'blob'\n });\n saveAs(new Blob([response.data]), fileName);\n } catch (error) {\n General.showAlertDanger(i18n.t('GENERIC.CONFIRM_DELETE_ATTACHMENT') as string, this); \n }\n }\n\n initContractYearRange(fixedYearSearch: number = 0) {\n this.contractYearRange = new Array();\n if(fixedYearSearch == 0) {\n let currentYear = new Date().getFullYear();\n let lowerLimit = 3;\n let lowerLimitYear = currentYear - lowerLimit;\n\n for(let i = lowerLimitYear; i <= currentYear; i++) {\n this.contractYearRange.push(i);\n }\n } else {\n this.contractYearRange.push(fixedYearSearch);\n }\n }\n\n checkFilterParameter(){\n if(this.AdvancedSearchFilled)\n this.filterSelected = true;\n else\n this.filterSelected = false;\n }\n\n CheckIsNullOrEmpty(text: any) {\n if (text == null) return true;\n if (text == '') return true;\n return false;\n }\n\n get AdvancedSearchFilled(): boolean { \n return this.CheckAdvancedSearchFilled();\n }\n\n CheckAdvancedSearchFilled(): boolean {\n if (!this.CheckIsNullOrEmpty(this.advCustomerId)) return true; \n if (!this.CheckIsNullOrEmpty(this.advWorkshopName)) return true;\n if (!this.CheckIsNullOrEmpty(this.advContractYear)) return true;\n if (!this.CheckIsNullOrEmpty(this.advCustomerCountry)) return true;\n if (!this.CheckIsNullOrEmpty(this.advDistributor)) return true;\n return false;\n }\n\n CheckSearchFilled() {\n if(!this.CheckIsNullOrEmpty(this.freeText)) return true;\n if(this.CheckAdvancedSearchFilled()) return true;\n return false; \n }\n\n resetFilters() {\n this.advCustomerId = null;\n this.advWorkshopName = null;\n this.advContractYear = null;\n this.advCustomerCountry = null;\n this.advDistributor = null;\n this.filterSelected = false;\n }\n\n formatDate(date){\n if (date==null) return '';\n return General.formatDateEng(date);\n\n }\n async getDropdownCountries(): Promise> {\n try{\n let country: DropDownItem = new DropDownItem();\n let countryList: DropDownItem[] = [];\n\n let response = await axios.get(\n General.GetApiUrl('/api/net20/GetCountriesForUser'),{\n responseType: \"json\",\n withCredentials: true\n });\n if(response.data) {\n response.data.forEach( element => {\n country = new DropDownItem();\n country.idDropDownItem = element.idCountry;\n country.itemText = element.name;\n\n countryList.push(country);\n });\n return General.SetOptionsDropDown(countryList);\n }\n } catch(ex) {\n General.HandleError(ex, this);\n return null;\n }\n }\n \n resetSearch() {\n this.firstSearch = false;\n this.resultsItems.resultPage.splice(0);\n this.page = 1;\n }\n\n searchFilterSearchEvent(genericSearch: string) {\n if (genericSearch != null) \n this.freeText = genericSearch;\n \n this.searchItems(true)\n }\n\n searchFilterResertEvent() {\n this.resetFilters()\n }\n\n searchItems(start: boolean) {\n if(!this.CheckIsNullOrEmpty(this.advContractYear))\n this.initContractYearRange(Number(this.advContractYear));\n else\n this.initContractYearRange();\n this.searchCustomersDo(start);\n }\n\n async searchCustomersDo(start: boolean) {\n this.showLoading = true;\n if (start == true)\n this.resetSearch();\n try {\n let results: any = await axios({\n method: 'post',\n url: General.GetApiUrl('/api/net20/GetReportContractRenewalWithFilterAndPaginationAsync'),\n data: {\n FreeText: this.freeText,\n CustomerId: this.advCustomerId,\n WorkshopName: this.advWorkshopName,\n ContractYear: this.advContractYear,\n IdDistributor: this.advDistributor,\n AllRecords: false,\n CurrentPage: this.page,\n ContractYearRange: this.contractYearRange,\n IdCountry: this.advCustomerCountry\n },\n withCredentials: true,\n responseType: 'json'\n });\n \n this.resultsItems.resultPage = this.resultsItems.resultPage.concat(results.data.listPage);\n this.resultsItems.total = results.data.total;\n\n this.firstSearch = true;\n this.page += 1;\n \n this.showLoading = false;\n } catch (error) {\n General.HandleError(error, this);\n this.showLoading = false;\n }\n\n }\n\n getAttachmentList(contractRenewals: Array, firstContractYear:number, firstContractYearTimespan: number, contractYear: number, id: number) {\n let attachmentList: Array = new Array();\n let emptyAttachment = new ContractAttachment();\n\n if(contractRenewals.length > 0) {\n contractRenewals.filter(x => x.contractYear == contractYear).forEach(x => {\n attachmentList = x.attachments\n });\n if(attachmentList.length == 0) {\n if(contractYear >= firstContractYear && contractYear < (firstContractYear + firstContractYearTimespan)) {\n emptyAttachment.fileName = `${i18n.t('NET20.CONTRACT_VALID_UNTIL') as string} ${(firstContractYear + firstContractYearTimespan)}`\n attachmentList.push(emptyAttachment);\n } else {\n let validRenewalInYear = contractRenewals.filter(x => contractYear >= x.contractYear && contractYear < (x.contractYear + x.contractYearTimespan))[0]\n if(validRenewalInYear != null) {\n emptyAttachment.fileName = `${i18n.t('NET20.CONTRACT_VALID_UNTIL') as string} ${(validRenewalInYear.contractYear + validRenewalInYear.contractYearTimespan)}`\n attachmentList.push(emptyAttachment);\n }\n }\n }\n }\n return attachmentList;\n }\n\n async downloadExcelReport() {\n this.searchFilters = {\n FreeText: this.freeText,\n CustomerId: this.advCustomerId,\n WorkshopName: this.advWorkshopName,\n ContractYear: this.advContractYear,\n IdDistributor: this.advDistributor,\n AllRecords: true,\n CurrentPage: this.page,\n ContractYearRange: this.contractYearRange,\n IdCountry: this.advCustomerCountry\n };\n this.$bvModal.show('download-file-background'); \n }\n}\n","\n\n\n\n\n\n\n\n\nimport { Component, Vue} from 'vue-property-decorator';\nimport ReportContractRenewals from '@/components/Net20/ReportContractRenewals.vue';\n\n@Component({\n components: {\n ReportContractRenewals\n }\n})\nexport default class ReportContractRenewalsPage extends Vue {\n}\n","import { render, staticRenderFns } from \"./ReportContractRenewalsPage.vue?vue&type=template&id=160f5c25&scoped=true\"\nimport script from \"./ReportContractRenewalsPage.vue?vue&type=script&lang=ts\"\nexport * from \"./ReportContractRenewalsPage.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 \"160f5c25\",\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('div',{staticClass:\"container-relative\"},[_c('div',{staticClass:\"page pt-4\"},[_c('ReportContractRenewals')],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!./ReportContractRenewalsPage.vue?vue&type=template&id=160f5c25&scoped=true\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.ready)?_c('div',[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"alert alert-light shadow-sm p-3 mb-3 bg-white rounded border d-flex align-items-start\",attrs:{\"role\":\"alert\"}},[_vm._m(0),_c('div',{staticClass:\"container-fluid mt-3\"},[_c('SearchFilter',{attrs:{\"filterSelected\":_vm.filterSelected,\"placeholder\":_vm.$t('NET20.SEARCH_REPORT_PLACEHOLDER')},on:{\"filter-search\":_vm.searchFilterSearchEvent,\"filter-reset\":function($event){return _vm.searchFilterResertEvent()},\"close-filter-search\":function($event){return _vm.checkFilterParameter()}}},[_c('b-form',{staticClass:\"row px-2 row-cols-1 row-cols-xl-2\",on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.searchFilterSearchEvent(_vm.freeText)},\"submit\":function($event){$event.preventDefault();}}},[_c('b-form-group',{staticClass:\"px-2\",attrs:{\"label\":_vm.$t('NET20.CUSTOMER_NUMERIC_ID_COMMA')}},[_c('b-form-input',{attrs:{\"type\":\"number\",\"min\":\"1\"},model:{value:(_vm.advCustomerId),callback:function ($$v) {_vm.advCustomerId=$$v},expression:\"advCustomerId\"}})],1),_c('b-form-group',{staticClass:\"px-2\",attrs:{\"label\":_vm.$t('NET20.CUSTOMER_COUNTRY')}},[_c('b-form-select',{attrs:{\"options\":_vm.dropDownCountries},model:{value:(_vm.advCustomerCountry),callback:function ($$v) {_vm.advCustomerCountry=$$v},expression:\"advCustomerCountry\"}})],1),_c('b-form-group',{staticClass:\"px-2\",attrs:{\"label\":_vm.$t('NET20.CUSTOMER_DISTRIBUTOR')}},[_c('b-form-select',{attrs:{\"options\":_vm.dropDownDistributor},model:{value:(_vm.advDistributor),callback:function ($$v) {_vm.advDistributor=$$v},expression:\"advDistributor\"}})],1),_c('b-form-group',{staticClass:\"px-2\",attrs:{\"label\":_vm.$t('NET20.CUSTOMER_WORKSHOP_NAME')}},[_c('b-form-input',{model:{value:(_vm.advWorkshopName),callback:function ($$v) {_vm.advWorkshopName=$$v},expression:\"advWorkshopName\"}})],1),_c('b-form-group',{staticClass:\"px-2\",attrs:{\"label\":_vm.$t('NET20.CONTRACT_YEAR')}},[_c('b-form-input',{attrs:{\"type\":\"number\",\"min\":\"1\"},model:{value:(_vm.advContractYear),callback:function ($$v) {_vm.advContractYear=$$v},expression:\"advContractYear\"}})],1)],1)],1)],1)])])]),(_vm.firstSearch)?_c('div',[_c('b-container',{attrs:{\"fluid\":\"\"}},[_c('b-row',[_c('b-col',{staticClass:\"mr-auto\",attrs:{\"cols\":\"auto\"}},[_c('button',{staticClass:\"btn btn-secondary font-weight-normal\",attrs:{\"type\":\"button\"}},[_vm._v(\" Elements Found \"),_c('span',{staticClass:\"badge badge-light\"},[_vm._v(_vm._s(_vm.resultsItems.total))])])]),_c('b-col',{attrs:{\"cols\":\"auto\"}},[_c('button',{staticClass:\"btn btn-success font-weight-normal\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.downloadExcelReport}},[_c('span',{staticClass:\"fa fa-download\",staticStyle:{\"margin-right\":\"5px\"}}),_vm._v(\" Excel \")])])],1)],1),(_vm.resultsItems.total>0)?_c('div',{staticClass:\"results\"},[_c('table',{staticClass:\"table b-table table-striped table-hover\"},[_c('thead',{staticClass:\"table-light\"},[_c('tr',[_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CUSTOMER_NUMERIC_ID')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CONTRACT_CHANNEL')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CUSTOMER_COUNTRY')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CONTRACT_SALESMAN')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CUSTOMER_DISTRIBUTOR')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CUSTOMER_VAT_NUMBER')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CUSTOMER_WORKSHOP_NAME')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CONTRACT_CREATION_DATE')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.CONTRACT_LAST_STEP')))]),_c('th',[_vm._v(_vm._s(_vm.$t('NET20.YEAR_FIRST_CONTRACT')))]),_vm._l((_vm.contractYearRange),function(item,index){return _c('th',{key:index},[_vm._v(\" \"+_vm._s(_vm.$t('GENERIC.YEAR'))+\" \"+_vm._s(item)+\" \"+_vm._s(_vm.$t('NET20.CONTRACT_AGREEMENT_RENEWAL'))+\" \")])})],2)]),_c('tbody',_vm._l((_vm.resultsItems.resultPage),function(item,index){return _c('tr',{key:index},[_c('td',[_vm._v(_vm._s(item.id))]),_c('td',[_vm._v(_vm._s(item.channel))]),_c('td',[_vm._v(_vm._s(item.country))]),_c('td',[_vm._v(_vm._s(item.salesman))]),_c('td',[_vm._v(_vm._s(item.distributor))]),_c('td',[_vm._v(_vm._s(item.vatNumber))]),_c('td',[_vm._v(_vm._s(item.workshopName))]),_c('td',[_vm._v(_vm._s(_vm.formatDate(item.creationDate)))]),_c('td',[_vm._v(_vm._s(item.stepDescription))]),_c('td',[_vm._v(_vm._s(_vm.formatDate(item.yearFirstContractAgreement)))]),_vm._l((_vm.contractYearRange),function(year,index){return _c('td',{key:index},[_c('b-container',{attrs:{\"fluid\":\"\"}},_vm._l((_vm.getAttachmentList(item.contractRenewals, item.firstContractYear, item.firstContractYearTimespan, year, item.id)),function(attachment,index){return _c('b-row',{key:index},[(attachment.id != null)?[_c('b-col',[_c('a',{staticClass:\"clickable\",staticStyle:{\"text-decoration\":\"underline\"},on:{\"click\":function($event){return _vm.downloadAttachment(attachment.id, attachment.fileName)}}},[_vm._v(_vm._s(attachment.fileName))])])]:[_c('b-col',[_c('span',{staticClass:\"text-muted\",staticStyle:{\"font-size\":\"10px\"}},[_vm._v(_vm._s(attachment.fileName))])])]],2)}),1)],1)})],2)}),0)]),(_vm.showLoading==false)?_c('div',{staticClass:\"text-center\"},[(_vm.resultsItems.resultPage.length<_vm.resultsItems.total)?_c('b-button',{staticClass:\"btn btn-secondary rounded-pill\",attrs:{\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.searchCustomersDo(false)}}},[_vm._v(\"Load more elements (there are \"+_vm._s(_vm.resultsItems.total-_vm.resultsItems.resultPage.length)+\" elements)\")]):_vm._e()],1):_vm._e()]):_vm._e()],1):_vm._e(),(_vm.showLoading==true)?_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('b-spinner',{attrs:{\"label\":\"Spinning\"}})],1):_vm._e()]):_c('div',{staticStyle:{\"text-align\":\"center\"}},[(_vm.downloadReportInProgress)?_c('p',[_vm._v(_vm._s(_vm.$t('GENERIC.REPORT_GENERATION_PROGRESS')))]):_vm._e(),_c('b-spinner',{attrs:{\"label\":\"Spinning\"}})],1),_c('b-modal',{attrs:{\"id\":\"download-file-background\",\"title\":_vm.$t('GENERIC.DOWNLOAD_FILE_BACKGROUND_MODAL_TITLE'),\"size\":\"lg\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"scrollable\":\"\"}},[_c('DownloadFileBackground',{attrs:{\"bodyParameter\":_vm.searchFilters,\"downloadUrl\":_vm.downloadUrl,\"processDescription\":_vm.processDescription,\"processType\":_vm.processType}})],1)],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 mt-2\"},[_c('i',{staticClass:\"fa fa-3x fa-search 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!./ReportContractRenewals.vue?vue&type=template&id=1ed88f22&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!./ReportContractRenewals.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!./ReportContractRenewals.vue?vue&type=script&lang=ts\"","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!./LeftClickOptionMenu.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!./LeftClickOptionMenu.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./LeftClickOptionMenu.vue?vue&type=template&id=2df39b76\"\nimport script from \"./LeftClickOptionMenu.vue?vue&type=script&lang=ts\"\nexport * from \"./LeftClickOptionMenu.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 { render, staticRenderFns } from \"./ReportContractRenewals.vue?vue&type=template&id=1ed88f22&scoped=true\"\nimport script from \"./ReportContractRenewals.vue?vue&type=script&lang=ts\"\nexport * from \"./ReportContractRenewals.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 \"1ed88f22\",\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!./ReportContractRenewalsPage.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!./ReportContractRenewalsPage.vue?vue&type=script&lang=ts\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vue-simple-context-menu',{ref:\"vueContextMenuGroup\",attrs:{\"element-id\":\"contextMenuGroups\",\"options\":_vm.leftClickMenuOptions},on:{\"option-clicked\":_vm.optionClicked}})],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!./LeftClickOptionMenu.vue?vue&type=template&id=2df39b76\""],"sourceRoot":""}