{"version":3,"sources":["webpack:///./src/utilities/DateValidation.ts","webpack:///./src/components/InvoicesPowerTable.vue?234e","webpack:///./src/utilities/FileProcess.ts","webpack:///./src/assets/excel_icon.svg","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccount.vue?ee3c","webpack:///./src/components/PowerGroupInvoicesTable.vue?62f4","webpack:///./src/views/Invoicing.vue?f1bc","webpack:///./src/components/wizard/invoicing/gas/WizardStepInvoicingGas.vue?d8f2","webpack:///./src/components/wizard/invoicing/gas/WizardStepInvoicingGas.vue","webpack:///./src/components/wizard/invoicing/gas/WizardStepInvoicingGas.vue?9d1e","webpack:///./src/components/wizard/invoicing/gas/WizardStepInvoicingGas.vue?ab8e","webpack:///./src/components/wizard/invoicing/power/WizardStepInvoicingPower.vue?a4dc","webpack:///./src/components/wizard/invoicing/power/WizardStepInvoicingPower.vue","webpack:///./src/components/wizard/invoicing/power/WizardStepInvoicingPower.vue?8c11","webpack:///./src/components/wizard/invoicing/power/WizardStepInvoicingPower.vue?7e75","webpack:///./src/components/wizard/invoicing/gas/WizardStepLatestInvoices.vue?e40a","webpack:///./src/components/wizard/invoicing/gas/WizardStepLatestInvoices.vue","webpack:///./src/components/wizard/invoicing/gas/WizardStepLatestInvoices.vue?9555","webpack:///./src/components/wizard/invoicing/gas/WizardStepLatestInvoices.vue?a321","webpack:///./src/components/wizard/invoicing/gas/WizardStepInvoicesForAgreement.vue?62b4","webpack:///./src/components/InvoicesTable.vue?93c1","webpack:///./src/components/InvoicesTable.vue","webpack:///./src/components/InvoicesTable.vue?6f17","webpack:///./src/components/InvoicesTable.vue?16b0","webpack:///./src/components/wizard/invoicing/gas/WizardStepInvoicesForAgreement.vue","webpack:///./src/components/wizard/invoicing/gas/WizardStepInvoicesForAgreement.vue?2a7a","webpack:///./src/components/wizard/invoicing/gas/WizardStepInvoicesForAgreement.vue?3702","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccount.vue?ba38","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccount.vue","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccount.vue?7268","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccount.vue?fbcd","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccounts.vue?a530","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccounts.vue","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccounts.vue?9ed4","webpack:///./src/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccounts.vue?24f0","webpack:///./src/components/wizard/invoicing/power/WizardStepAccountInvoices.vue?317d","webpack:///./src/components/InvoicesPowerTable.vue?043e","webpack:///./src/components/InvoicesPowerTable.vue","webpack:///./src/components/InvoicesPowerTable.vue?d5fd","webpack:///./src/components/InvoicesPowerTable.vue?e941","webpack:///./src/components/wizard/invoicing/power/WizardStepAccountInvoices.vue","webpack:///./src/components/wizard/invoicing/power/WizardStepAccountInvoices.vue?6d39","webpack:///./src/components/wizard/invoicing/power/WizardStepAccountInvoices.vue?15e2","webpack:///./src/components/wizard/invoicing/power/WizardStepPowerGroupInvoices.vue?385e","webpack:///./src/components/PowerGroupInvoicesTable.vue?45f2","webpack:///./src/components/PowerGroupInvoicesTable.vue","webpack:///./src/components/PowerGroupInvoicesTable.vue?081f","webpack:///./src/components/PowerGroupInvoicesTable.vue?7ada","webpack:///./src/components/wizard/invoicing/power/WizardStepPowerGroupInvoices.vue","webpack:///./src/components/wizard/invoicing/power/WizardStepPowerGroupInvoices.vue?4d66","webpack:///./src/components/wizard/invoicing/power/WizardStepPowerGroupInvoices.vue?e8b4","webpack:///./src/views/Invoicing.vue","webpack:///./src/views/Invoicing.vue?3117","webpack:///./src/views/Invoicing.vue?00ad","webpack:///./src/components/InvoicesTable.vue?697c"],"names":["DateValidation","this","StartMonth","EndMonth","StartMonthErrorMessage","EndMonthErrorMessage","ErrorMessage","DayDiff","startMonth","endMonth","dayDiff","reset","daysDifference","monthsDifference","monthDifference","moment","Date","diff","dayDifference","FileProcess","data","fileName","window","navigator","msSaveBlob","fileURL","URL","createObjectURL","fileLink","document","createElement","href","setAttribute","body","appendChild","click","module","exports","render","_vm","_h","$createElement","_c","_self","directives","name","rawName","value","expression","attrs","processing","scopedSlots","_u","key","fn","staticClass","_v","maxProgress","counter","proxy","staticStyle","componentKey","getSelectedProduct","onSingleAccountAndOnSingleSite","next_step_gas_id","on","onSelectedInvoicingOption","findJourney","changeProcessStatus","_e","next_step_power_id","transitionName","isExactActive","ref","staticRenderFns","id","visible","next_step_id","setLatestInvoiceVariant","$event","preventDefault","onSelectedOptionChanged","apply","arguments","setCustomDatesVariant","selectedCustomDate","onChooseCustomDate","monthLabels","alignment","maxDate","onInputDateStartMonth","model","callback","$$v","startMonthErrorMessage","_s","onInputDateEndMonth","endMonthErrorMessage","onDownloadCustom","errorMessage","Invoices","namespace","GasAccounts","Auth","InvoicingWizard","WizardStepInvoicingGas","selectedOption","allowCustomDownload","interval","showLatestInvoicesSelectedIcon","showCustomDatesSelectedIcon","validator","getSelectedAccount","resetJourneyNode","$emit","date","errorMessagesReset","setStartMonth","format","isValid","validate","getStartMonthErrorMessage","getErrorMessage","setEndMonth","endOf","getEndMonthErrorMessage","startInterval","getCustomRangeInvoicesForAccount","accountNum","selectedAccount","userId","getUserId","fromMonth","getStartMonth","toMonth","getEndMonth","fileProcess","console","error","clearInterval","setInterval","getDownloadFileData","Vue","__decorate","Prop","type","String","default","Getter","Action","Component","components","WizardBaseStep","VueMonthlyPicker","component","setVariant","WizardStepInvoicingPower","Array","moreThanOneAccount","isAdmin","WizardStepLatestInvoices","getUserAccountsCount","isGazpromAdmin","watchGasUserAccountsCount","$store","watch","state","getters","newValue","oldValue","class","invoiceCount","bordered","striped","invoiceFields","perPage","currentPage","invoiceUnavailable","item","InvoiceDate","InvoiceNo","onClick","InvoicesTable","loading","progressBarHidden","GtagHelper","label","formatter","formatDate","formatAmount","length","invoiceNo","$refs","style","display","invoiceDownload","then","catch","reason","Event","unwatch","siteRefNum","getSelectedSiteRefNumber","getInvoices","immediate","e","formattedAmount","$options","filters","toCurrency","replace","invoiceDate","result","isBefore","wistiaScript_code","head","wistiaScript_data","WizardStepInvoicesForAgreement","Boolean","onDownloadLatestMonth","onDownloadLatestYear","setChooseCustomDateVarient","Products","WizardStepBulkInvoicesForAccount","getLatestMonthInvoicesForAccount","downloadSuccess","getLatestYearInvoicesForAccount","setDayDiff","setAccountSelectionDisabled","setProductSelectionDisabled","SuccessMessageDefaults","ToastService","noAutoHide","variant","bodyClass","headerClass","noCloseButton","title","$bvToast","toast","setAgreementSelectionDisabled","setMprnSelectionDisabled","Mutation","onDownloadLatestInvoicesForAllAccounts","year","month","day","StartDate","veeErrors","has","first","EndDate","WizardStepBulkInvoicesForAccounts","now","today","getFullYear","getMonth","getDate","$validator","validateAll","getInvoicesDownloadForAllAccounts","success","downlaodFile","response","log","getCustomRangeInvoicesForAllAccounts","fromDate","toDate","dict","custom","customInvoiceReportDateFrom","required","customInvoiceReportDateTo","localize","BFormDatepicker","isflex","invoiceFlexFields","TaxPointDate","PostedDate","PowerAccounts","PowerInvoices","groupAccountNum","getSelectedGroupAccount","flexInvoiceDownload","getFlexInvoices","WizardStepAccountInvoices","InvoicesPowerTable","groupInvoicesCount","groupInvoices","onDownloadGroupInvoiceClick","GroupInvoiceNumber","onDownloadGroupSummaryClick","onDownloadGroupStatementClick","PowerGroupInvoices","PowerGroupInvoicesTable","groupInvoiceNumber","onDownloadClick","downloadGroupInvoice","downloadGroupSummary","downloadGroupStatement","groupAccountNumber","getFileForDownload","groupAccount","getGroupInvoiceSummary","WizardStepPowerGroupInvoices","setMpanSelectionDisabled","Invoicing","to","from","undefined","toDepth","split","fromDepth","option","initJourneyNode","appendJourneyToJourneyNode","root","getRootJourney","Value","Next","setNavDisabled","rv","watchGasAccountSelection","forceRerender","watchPowerAccountSelection","watchProductSelection","isSass","Watch","deep","BaseWiz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3CrU,KAAK6J,mBAAqB7J,KAAKgK,qBAAuB,IApIhC,2BAuI1B,WACIhK,KAAK4D,cAAgB,IAxIC,2BA2I1B,WACI5D,KAAKoU,wBACLpU,KAAKiU,2BACLjU,KAAKmU,iCA9IiB,GAAStL,QAmBnCC,gBADCwL,eAAM,cAAe,CAAE3H,WAAW,EAAM4H,MAAM,KAC/C,iCAWAzL,gBADCvC,GAAgB4C,QACjB,sCAGAL,gBADCvC,GAAgB6C,QACjB,wCAGAN,gBADCvC,GAAgB6C,QACjB,uCAGAN,gBADCvC,GAAgB6C,QACjB,kDAGAN,gBADC+E,GAAS1E,QACV,0CAGAL,gBADCzC,GAAY8C,QACb,8BAGAL,gBADCzC,GAAY8C,QACb,4CAGAL,gBADCxC,GAAK2I,UACN,sCAnDiBgE,GAAS,gBAf7B5J,eAAU,CACPC,WAAY,CACRkL,kBACAC,gBACAjO,yBACAmD,2BACAI,2BACAyD,kCACAmC,qCACA7B,oCACA8D,6BACAmB,gCACA2B,2BAGazB,cCvG+W,MCOhY,GAAY,eACd,GACA5Q,EACAoC,GACA,EACA,KACA,KACA,MAIa,gB,2CClBf","file":"js/chunk-0acaa2c5.4ebc2b99.js","sourcesContent":["import moment from 'moment';\r\n\r\nexport class DateValidation {\r\n private StartMonth: string | null;\r\n private EndMonth: string | null;\r\n private StartMonthErrorMessage: string | null ;\r\n private EndMonthErrorMessage: string | null ;\r\n private ErrorMessage: string | null;\r\n private DayDiff: boolean | null;\r\n\r\n constructor() {\r\n this.StartMonth = null;\r\n this.EndMonth = null;\r\n this.StartMonthErrorMessage = null;\r\n this.EndMonthErrorMessage = null;\r\n this.ErrorMessage = null;\r\n this.DayDiff = null;\r\n }\r\n\r\n public set setStartMonth(startMonth: string | null) {\r\n this.StartMonth = startMonth;\r\n }\r\n\r\n public set setEndMonth(endMonth: string | null) {\r\n this.EndMonth = endMonth;\r\n }\r\n\r\n public set setDayDiff(dayDiff: boolean | null) {\r\n this.DayDiff = dayDiff;\r\n }\r\n\r\n public get getStartMonth(): string | null {\r\n return this.StartMonth;\r\n }\r\n\r\n public get getEndMonth(): string | null {\r\n return this.EndMonth;\r\n }\r\n\r\n public get getStartMonthErrorMessage(): string | null {\r\n return this.StartMonthErrorMessage;\r\n }\r\n\r\n public get getEndMonthErrorMessage(): string | null {\r\n return this.EndMonthErrorMessage;\r\n }\r\n\r\n public get getErrorMessage(): string | null {\r\n return this.ErrorMessage;\r\n }\r\n\r\n public validate(): boolean {\r\n this.reset();\r\n\r\n if (this.DayDiff) {\r\n if (this.StartMonth == null || this.StartMonth == '') {\r\n this.StartMonthErrorMessage = `Start date is required`;\r\n return false;\r\n }\r\n\r\n if (this.EndMonth == null || this.EndMonth == '') {\r\n this.EndMonthErrorMessage = `End date is required`;\r\n return false;\r\n }\r\n\r\n if (this.EndMonth >= this.StartMonth) {\r\n this.reset();\r\n }\r\n else {\r\n this.ErrorMessage = `Start date must be before or the same as the end date`\r\n return false;\r\n }\r\n\r\n if (this.daysDifference() > 31) {\r\n this.ErrorMessage = 'Date range cannot be greater than 31 days';\r\n return false;\r\n }\r\n }\r\n else {\r\n if (this.StartMonth == null || this.StartMonth == '') {\r\n this.StartMonthErrorMessage = `Start month and year required`;\r\n return false;\r\n }\r\n\r\n if (this.EndMonth == null || this.EndMonth == '') {\r\n this.EndMonthErrorMessage = `End month and year required`;\r\n return false;\r\n }\r\n\r\n if (this.EndMonth >= this.StartMonth) {\r\n this.reset();\r\n }\r\n else {\r\n this.ErrorMessage = `Start month must be before or the same as the end month`\r\n return false;\r\n }\r\n\r\n if (this.monthsDifference() >= 14) {\r\n this.ErrorMessage = `Your date selections cannot exceed 13 months`;\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n\r\n public reset(): void {\r\n this.ErrorMessage = null;\r\n this.StartMonthErrorMessage = null;\r\n this.EndMonthErrorMessage = null;\r\n }\r\n\r\n private monthsDifference(): number {\r\n const monthDifference = moment(new Date(this.EndMonth as string)).diff(new Date(this.StartMonth as string), 'months', true);\r\n return monthDifference;\r\n }\r\n\r\n private daysDifference(): number {\r\n const dayDifference = moment(new Date(this.EndMonth as string)).diff(new Date(this.StartMonth as string), 'days', true);\r\n return dayDifference;\r\n }\r\n}","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoicesPowerTable.vue?vue&type=style&index=0&lang=scss&\"","export class FileProcess {\r\n\r\n public downlaodFile(data: Blob | null, fileName: string | null): boolean {\r\n if (data == null) {\r\n return false;\r\n }\r\n\r\n if (window.navigator && window.navigator.msSaveBlob) {\r\n window.navigator.msSaveBlob((data) as Blob, fileName as string);\r\n return true;\r\n } else {\r\n const fileURL = window.URL.createObjectURL((data) as Blob);\r\n const fileLink = document.createElement('a');\r\n fileLink.href = fileURL;\r\n fileLink.setAttribute('download', fileName as string);\r\n document.body.appendChild(fileLink);\r\n fileLink.click();\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n}","module.exports = __webpack_public_path__ + \"img/excel_icon.cb419ac5.svg\";","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepBulkInvoicesForAccount.vue?vue&type=style&index=0&lang=scss&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PowerGroupInvoicesTable.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-page',[_c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isExactActive),expression:\"isExactActive\"}]},[_c('b-overlay',{attrs:{\"show\":_vm.processing,\"rounded\":\"sm\",\"opacity\":\"0.53\",\"blur\":\"1rem\"},scopedSlots:_vm._u([{key:\"overlay\",fn:function(){return [_c('div',{staticClass:\"text-center p-4 bg-deep-blue text-light rounded\"},[_c('b-icon',{attrs:{\"icon\":\"download\",\"font-scale\":\"3\"}}),_c('div',{staticClass:\"mb-3\"},[_vm._v(\" Please wait while your files are generated. This may take up to ten minutes. Click \"),_c('a',{attrs:{\"href\":\"/\",\"target\":\"_blank\"}},[_vm._v(\"here\")]),_vm._v(\" to open a new window to continue using the site while your invoices download. \")]),_c('b-progress',{staticClass:\"mx-n4 rounded-0\",attrs:{\"min\":\"1\",\"max\":_vm.maxProgress,\"value\":_vm.counter,\"variant\":\"success\",\"height\":\"3px\"}})],1)]},proxy:true}])},[_c('b-card',{staticClass:\"shadow card-border\",staticStyle:{\"text-align\":\"left\"},attrs:{\"header-tag\":\"header\",\"footer-tag\":\"footer\"},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('h6',{staticClass:\"mb-0\"},[_vm._v(\"Invoicing\")])]},proxy:true}])},[_c('b-card-text',[_c('base-wizard',{key:_vm.componentKey},[(_vm.getSelectedProduct=='Gas')?[(_vm.onSingleAccountAndOnSingleSite)?[_c('wizard-step-invoices-for-agreement',{attrs:{\"id\":\"invoices-agreement\",\"visible\":_vm.onSingleAccountAndOnSingleSite}})]:[_c('h6',{staticClass:\"text-left text-underlined\"},[_vm._v(\"Please select appropriate options:\")]),_c('wizard-step-latest-invoices',{attrs:{\"id\":\"invoicing-gas\",\"next_step_id\":_vm.next_step_gas_id},on:{\"selectedInvoicingOption\":_vm.onSelectedInvoicingOption}}),(_vm.findJourney(1))?[_c('wizard-step-bulk-invoices-for-accounts',{attrs:{\"id\":\"step-1\"},on:{\"invoiceprocessingchange\":_vm.changeProcessStatus}})]:_vm._e(),(_vm.findJourney(4))?[_c('wizard-step-bulk-invoices-for-account',{attrs:{\"id\":\"step-4\"},on:{\"invoiceprocessingchange\":_vm.changeProcessStatus}})]:_vm._e(),(_vm.findJourney(5))?[_c('wizard-step-invoices-for-agreement',{attrs:{\"id\":\"step-5\"}})]:_vm._e()]]:_vm._e(),(_vm.getSelectedProduct=='Power')?[_c('wizard-step-invoicing-power',{attrs:{\"id\":\"invoicing-power\",\"next_step_id\":_vm.next_step_power_id},on:{\"selectedInvoicingOption\":_vm.onSelectedInvoicingOption}}),(_vm.findJourney(1))?[_c('wizard-step-power-group-invoices')]:_vm._e(),(_vm.findJourney(2))?[_c('wizard-step-account-invoices',{attrs:{\"id\":\"step-2\"}})]:_vm._e()]:_vm._e()],2)],1)],1),_c('help-and-support')],1)],1),_c('transition',{attrs:{\"name\":_vm.transitionName,\"mode\":\"out-in\"}},[_c('router-view',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isExactActive),expression:\"!isExactActive\"}],ref:\"rv\"})],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wizard-base-step',{attrs:{\"id\":_vm.id,\"title\":\"Invoicing\",\"accordionGroupName\":\"invoicing-wizard\",\"visible\":_vm.visible}},[_c('b-overlay',{attrs:{\"show\":_vm.processing,\"rounded\":\"sm\",\"opacity\":\"0.53\",\"blur\":\"1rem\"},scopedSlots:_vm._u([{key:\"overlay\",fn:function(){return [_c('div',{staticClass:\"text-center p-4 bg-deep-blue text-light rounded\"})]},proxy:true}])},[_c('b-row',{staticClass:\"mt-2 mb-2\"},[_c('b-col',{staticStyle:{\"text-align\":\"left\"}},[_c('b-button-group',[_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\"}],staticClass:\"shadow\",attrs:{\"href\":'#'+_vm.next_step_id,\"variant\":_vm.setLatestInvoiceVariant,\"size\":\"md\",\"id\":\"invoicing-latestInvoices-button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSelectedOptionChanged.apply(null, arguments)}}},[_vm._v(\" Latest invoices \"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showLatestInvoicesSelectedIcon),expression:\"showLatestInvoicesSelectedIcon\"}],staticClass:\"ml-1\",attrs:{\"icon\":\"check2-circle\"}})],1),_c('transition',{attrs:{\"name\":\"fade\"}},[_c('b-button',{staticClass:\"shadow\",attrs:{\"size\":\"md\",\"variant\":_vm.setCustomDatesVariant,\"pressed\":_vm.selectedCustomDate,\"active\":_vm.selectedCustomDate,\"id\":\"invoicing-customDates-button\"},on:{\"click\":_vm.onChooseCustomDate}},[_vm._v(\" Custom dates \"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showCustomDatesSelectedIcon),expression:\"showCustomDatesSelectedIcon\"}],staticClass:\"ml-1\",attrs:{\"icon\":\"check2-circle\"}})],1)],1)],1)],1)],1),(_vm.selectedCustomDate)?_c('b-row',[_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\"}},[_c('hr')]),_c('b-col',{staticClass:\"mt-1\",attrs:{\"cols\":\"12\"}},[_c('label',{staticClass:\"text-gazprom-blue\",attrs:{\"for\":\"start-month-datepicker\"}},[_vm._v(\"Select month and year\")])]),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('div',{staticClass:\"position-relative\"},[_c('vue-monthly-picker',{attrs:{\"placeHolder\":\"Start month and year\",\"dateFormat\":\"MM/YYYY\",\"monthLabels\":_vm.monthLabels,\"alignment\":_vm.alignment,\"selectedBackgroundColor\":\"#0065bd\",\"max\":_vm.maxDate},on:{\"selected\":_vm.onInputDateStartMonth},model:{value:(_vm.StartMonth),callback:function ($$v) {_vm.StartMonth=$$v},expression:\"StartMonth\"}}),_c('span',{staticClass:\"position-absolute\",staticStyle:{\"top\":\"5px\",\"right\":\"30px\",\"pointer-events\":\"none\"}},[_c('b-icon',{attrs:{\"icon\":\"calendar2-week-fill\",\"variant\":\"gazprom-blue\"}})],1)],1),_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":_vm.startMonthErrorMessage!=null}},[_vm._v(_vm._s(_vm.startMonthErrorMessage))])],1),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('div',{staticClass:\"position-relative\"},[_c('vue-monthly-picker',{attrs:{\"placeHolder\":\"End month and year\",\"dateFormat\":\"MM/YYYY\",\"monthLabels\":_vm.monthLabels,\"alignment\":_vm.alignment,\"selectedBackgroundColor\":\"#0065bd\",\"max\":_vm.maxDate},on:{\"selected\":_vm.onInputDateEndMonth},model:{value:(_vm.EndMonth),callback:function ($$v) {_vm.EndMonth=$$v},expression:\"EndMonth\"}}),_c('span',{staticClass:\"position-absolute\",staticStyle:{\"top\":\"5px\",\"right\":\"30px\",\"pointer-events\":\"none\"}},[_c('b-icon',{attrs:{\"icon\":\"calendar2-week-fill\",\"variant\":\"gazprom-blue\"}})],1)],1),_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":_vm.endMonthErrorMessage!=null}},[_vm._v(_vm._s(_vm.endMonthErrorMessage))])],1),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('b-button',{attrs:{\"size\":\"md\",\"variant\":\"soft-blue\"},on:{\"click\":_vm.onDownloadCustom}},[_vm._v(\"Download\"),_c('b-icon',{staticClass:\"ml-1\",attrs:{\"icon\":\"cloud-arrow-down\"}})],1)],1)],1):_vm._e(),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\",\"lg\":\"8\"}},[_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":_vm.errorMessage!=null}},[_vm._v(_vm._s(_vm.errorMessage))])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Watch, Vue } from 'vue-property-decorator';\nimport WizardBaseStep from \"@/components/wizard/WizardBaseStep.vue\";\nimport VueMonthlyPicker from 'vue-monthly-picker';\nimport moment from 'moment';\nimport { namespace } from 'vuex-class';\nimport { DateValidation } from \"@/utilities/DateValidation\";\n\nconst Invoices = namespace(\"Invoices\")\nconst GasAccounts = namespace(\"GasAccounts\");\nconst Auth = namespace(\"Auth\");\nconst InvoicingWizard = namespace(\"InvoicingWizard\");\n\n@Component({\n components: {\n WizardBaseStep,\n VueMonthlyPicker\n }\n})\nexport default class WizardStepInvoicingGas extends Vue {\n @Prop({ type: String, default: '' }) readonly id!: string;\n @Prop({ type: String, default: '' }) readonly next_step_id!: string;\n\n private selectedOption = 0;\n private allowCustomDownload = false;\n private maxDate = moment();\n private monthLabels = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n private alignment = 'center';\n private processing = false;\n private maxProgress = 20;\n private counter = 0;\n private interval: (number | null) = null;\n private startMonthErrorMessage: string | null = null;\n private endMonthErrorMessage: string | null = null;\n private errorMessage: string | null = null;\n private StartMonth = '';\n private EndMonth = '';\n private selectedCustomDate = false;\n private visible = true;\n private showLatestInvoicesSelectedIcon = false;\n private showCustomDatesSelectedIcon = false;\n private validator = new DateValidation();\n\n @GasAccounts.Getter\n private getSelectedAccount!: string;\n\n @Auth.Getter\n private getUserId!: string;\n\n @Invoices.Getter\n private getDownloadFileData!: { data: Blob | null, fileName: string | null };\n\n @Invoices.Action\n getCustomRangeInvoicesForAccount!: (params: { accountNum: string, userId: string, fromMonth: string, toMonth: string }) => Promise;\n\n @InvoicingWizard.Action\n private resetJourneyNode!: () => Promise;\n\n @InvoicingWizard.Action\n private initJourneyNode!: (option: number) => Promise;\n\n get selectedAccount() {\n return this.getSelectedAccount;\n }\n\n get setLatestInvoiceVariant() {\n if (this.showLatestInvoicesSelectedIcon)\n return 'sefe-blue';\n else return 'outline-gazprom-blue';\n }\n\n get setCustomDatesVariant() {\n if (this.showCustomDatesSelectedIcon)\n return 'sefe-blue';\n else return 'outline-gazprom-blue';\n }\n\n private onChooseCustomDate() {\n this.selectedCustomDate = true;\n this.resetJourneyNode();\n this.selectedOption = 0;\n this.showLatestInvoicesSelectedIcon = false;\n this.showCustomDatesSelectedIcon = true;\n }\n\n onSelectedOptionChanged() {\n this.selectedOption = 1;\n this.$emit(\"selectedInvoicingOption\", this.selectedOption); \n this.selectedCustomDate = false;\n this.showLatestInvoicesSelectedIcon = true;\n this.showCustomDatesSelectedIcon = false;\n }\n\n async onInputDateStartMonth(date: any) {\n if (date !== null && date !== '') {\n this.validator.reset();\n this.errorMessagesReset();\n this.validator.setStartMonth = date.format('YYYY/MM/DD');\n const isValid = this.validator.validate();\n if (!isValid) {\n this.startMonthErrorMessage = this.validator.getStartMonthErrorMessage;\n this.errorMessage = this.validator.getErrorMessage;\n return;\n }\n } else {\n this.validator.setStartMonth = null;\n }\n\n this.validator.reset();\n this.errorMessagesReset();\n return;\n }\n\n async onInputDateEndMonth(date: any) {\n if (date !== null && date !== '') {\n this.validator.reset();\n this.errorMessagesReset();\n this.validator.setEndMonth = date.endOf('month').format('YYYY/MM/DD');\n const isValid = this.validator.validate();\n if (!isValid) {\n this.endMonthErrorMessage = this.validator.getEndMonthErrorMessage;\n this.errorMessage = this.validator.getErrorMessage;\n return;\n }\n } else {\n this.validator.setEndMonth = null;\n }\n\n this.validator.reset();\n this.errorMessagesReset();\n return;\n }\n\n private async onDownloadCustom() {\n this.validator.reset();\n this.errorMessagesReset();\n const isValid = await this.validator.validate();\n if (!isValid) {\n this.startMonthErrorMessage = this.validator.getStartMonthErrorMessage;\n this.endMonthErrorMessage = this.validator.getEndMonthErrorMessage;\n this.errorMessage = this.validator.getErrorMessage;\n return;\n } else {\n this.startInterval();\n try {\n await this.getCustomRangeInvoicesForAccount({ accountNum: this.selectedAccount, userId: this.getUserId, fromMonth: this.validator.getStartMonth as string, toMonth: this.validator.getEndMonth as string });\n this.fileProcess();\n } catch (error) {\n console.error(error);\n } finally {\n this.processing = false;\n this.clearInterval();\n }\n }\n }\n\n private startInterval() {\n this.processing = true;\n this.interval = setInterval(() => {\n if (this.processing && this.counter < 20) {\n this.counter += 1;\n }\n }, 700);\n }\n\n private clearInterval() {\n if (this.interval) {\n clearInterval(this.interval)\n this.interval = null;\n this.counter = 0; \n }\n }\n\n private fileProcess() {\n this.processing = false;\n this.clearInterval();\n\n var fileName = this.getDownloadFileData.fileName;\n if (window.navigator && window.navigator.msSaveBlob) {\n window.navigator.msSaveBlob((this.getDownloadFileData.data) as Blob, fileName as string);\n } else {\n var fileURL = window.URL.createObjectURL((this.getDownloadFileData.data) as Blob);\n var fileLink = document.createElement('a');\n fileLink.href = fileURL;\n fileLink.setAttribute('download', fileName as string);\n document.body.appendChild(fileLink);\n fileLink.click();\n }\n }\n\n private errorMessagesReset(): void {\n this.validator.reset();\n this.startMonthErrorMessage = null;\n this.endMonthErrorMessage = null;\n this.errorMessage = null;\n }\n\n beforeDestroy() {\n this.clearInterval()\n }\n\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepInvoicingGas.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepInvoicingGas.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WizardStepInvoicingGas.vue?vue&type=template&id=7b5dcfbc&\"\nimport script from \"./WizardStepInvoicingGas.vue?vue&type=script&lang=ts&\"\nexport * from \"./WizardStepInvoicingGas.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wizard-base-step',{attrs:{\"id\":_vm.id,\"title\":\"Invoicing\",\"accordionGroupName\":\"invoicing-power-wizard\",\"visible\":_vm.visible}},[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('h6',{staticClass:\"text-left text-underlined\"},[_vm._v(\"Please select appropriate options:\")])])],1),_c('b-row',[_c('b-col',{staticClass:\"mb-3\",attrs:{\"cols\":\"12\",\"md\":\"4\",\"lg\":\"6\"}},[_c('b-button-group',[_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\"}],staticClass:\"shadow\",attrs:{\"href\":'#'+_vm.next_step_id[0],\"variant\":_vm.setVariant(1),\"size\":\"md\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSelectedOptionChanged(1)}}},[_vm._v(\"For group account\"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedOption===1),expression:\"selectedOption===1\"}],staticClass:\"ml-2\",attrs:{\"icon\":\"check2-circle\"}})],1),_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\"}],staticClass:\"shadow\",attrs:{\"href\":'#'+_vm.next_step_id[1],\"variant\":_vm.setVariant(2),\"size\":\"md\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSelectedOptionChanged(2)}}},[_vm._v(\"For account\"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedOption===2),expression:\"selectedOption===2\"}],staticClass:\"ml-2\",attrs:{\"icon\":\"check2-circle\"}})],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport WizardBaseStep from \"@/components/wizard/WizardBaseStep.vue\"\n\n@Component({\n components: {\n WizardBaseStep\n }\n})\nexport default class WizardStepInvoicingPower extends Vue {\n @Prop({ type: String, default: '' }) readonly id!: string;\n @Prop({ type: Array, default: [] }) readonly next_step_id!: string[];\n private selectedOption = 0;\n private visible = true;\n\n onSelectedOptionChanged(value: any) {\n this.selectedOption = value;\n this.$emit(\"selectedInvoicingOption\", this.selectedOption);\n }\n\n setVariant(value) {\n if (this.selectedOption == value)\n return 'sefe-blue';\n else return 'outline-gazprom-blue';\n }\n\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepInvoicingPower.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepInvoicingPower.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WizardStepInvoicingPower.vue?vue&type=template&id=6f1665dc&\"\nimport script from \"./WizardStepInvoicingPower.vue?vue&type=script&lang=ts&\"\nexport * from \"./WizardStepInvoicingPower.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wizard-base-step',{attrs:{\"id\":_vm.id,\"title\":\"Latest Invoices\",\"accordionGroupName\":\"invoicing-wizard\"}},[_c('b-row',[_c('b-col',{staticClass:\"mb-3\",attrs:{\"cols\":\"12\",\"md\":\"4\",\"lg\":\"6\"}},[_c('b-button-group',[(_vm.moreThanOneAccount && !_vm.isAdmin)?_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\"}],staticClass:\"shadow\",attrs:{\"id\":\"invoicing-for-all-accounts-button\",\"href\":'#'+_vm.next_step_id[0],\"variant\":_vm.setVariant(1),\"size\":\"md\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSelectedOptionChanged(1)}}},[_vm._v(\"For all accounts\"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedOption===1),expression:\"selectedOption===1\"}],staticClass:\"ml-1\",attrs:{\"icon\":\"check2-circle\"}})],1):_vm._e(),_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\"}],staticClass:\"shadow\",attrs:{\"id\":\"invoicing-for-account-button\",\"href\":'#'+_vm.next_step_id[1],\"variant\":_vm.setVariant(4),\"size\":\"md\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSelectedOptionChanged(4)}}},[_vm._v(\"For account\"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedOption===4),expression:\"selectedOption===4\"}],staticClass:\"ml-1\",attrs:{\"icon\":\"check2-circle\"}})],1),_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\"}],staticClass:\"shadow\",attrs:{\"id\":\"invoicing-for-agreement-button\",\"href\":'#'+_vm.next_step_id[2],\"variant\":_vm.setVariant(5),\"size\":\"md\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSelectedOptionChanged(5)}}},[_vm._v(\"For agreement\"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedOption===5),expression:\"selectedOption===5\"}],staticClass:\"ml-1\",attrs:{\"icon\":\"check2-circle\"}})],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport WizardBaseStep from \"@/components/wizard/WizardBaseStep.vue\"\n\nimport { namespace } from 'vuex-class';\nconst Auth = namespace(\"Auth\");\nconst GasAccounts = namespace(\"GasAccounts\");\n\n@Component({\n components: {\n WizardBaseStep\n }\n})\nexport default class WizardStepLatestInvoices extends Vue {\n @Prop({ type: String, default: '' }) readonly id!: string;\n @Prop({ type: Array, default: [] }) readonly next_step_id!: string[];\n private selectedOption = 0;\n private moreThanOneAccount = false;\n private isAdmin = false;\n private watchGasUserAccountsCount: any;\n\n @GasAccounts.Getter\n private getUserAccountsCount!: number;\n\n @Auth.Getter\n private isGazpromAdmin!: boolean;\n\n setVariant(value) {\n if (this.selectedOption == value)\n return 'sefe-blue';\n else return 'outline-gazprom-blue';\n }\n\n onSelectedOptionChanged(value: any) {\n this.selectedOption = value;\n this.$emit(\"selectedInvoicingOption\", value);\n }\n\n mounted() {\n this.moreThanOneAccount = this.getUserAccountsCount > 1;\n this.isAdmin = this.isGazpromAdmin;\n\n this.watchGasUserAccountsCount = this.$store.watch((state, getters) => getters[\"GasAccounts/getUserAccountsCount\"], (newValue, oldValue) => {\n if (newValue === null || newValue === oldValue) {\n return;\n }\n this.moreThanOneAccount = this.getUserAccountsCount > 1;\n this.isAdmin = this.isGazpromAdmin;\n });\n }\n\n beforeDestroy(): void {\n this.watchGasUserAccountsCount();\n }\n\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepLatestInvoices.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepLatestInvoices.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WizardStepLatestInvoices.vue?vue&type=template&id=e70d8e48&\"\nimport script from \"./WizardStepLatestInvoices.vue?vue&type=script&lang=ts&\"\nexport * from \"./WizardStepLatestInvoices.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wizard-base-step',{attrs:{\"id\":_vm.id,\"title\":\"Invoices for agreement\",\"accordionGroupName\":\"invoicing-wizard\",\"visible\":_vm.visible}},[_c('div',{staticClass:\"mt-3\"}),_c('invoices-table')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-row',[_c('b-col',{staticClass:\"mb-2 text-center\",attrs:{\"cols\":\"12\",\"md\":\"12\",\"lg\":\"8\"}},[_c('div',{staticClass:\"bg-light border rounded rounded-lg shadow\",attrs:{\"id\":\"invoices-box\"}},[_c('h4',{staticClass:\"pl-2 mt-2 mb-2\",class:{'invoices-header-empty' : _vm.invoiceCount == 0}},[_vm._v(\"Invoices\")]),(_vm.loading)?[_c('b-skeleton-table',{attrs:{\"rows\":10,\"columns\":4,\"stacked\":\"md\",\"table-props\":{ bordered: true, striped: true }}})]:[(_vm.invoiceCount > 0)?[_c('b-table',{staticClass:\"mb-2\",attrs:{\"id\":\"invoices-table\",\"tbody-tr-class\":\"text-center\",\"stacked\":\"md\",\"responsive\":\"\",\"striped\":\"\",\"hover\":\"\",\"items\":_vm.Invoices,\"fields\":_vm.invoiceFields,\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage},scopedSlots:_vm._u([{key:\"cell(DownloadLink)\",fn:function(data){return [_c('div',{staticClass:\"d-flex flex-column justify-content-center\"},[(_vm.invoiceUnavailable(data.item.InvoiceDate))?[_c('div',[_vm._v(\"Not available online\")])]:[_c('b-button',{staticClass:\"btn-outline-none\",attrs:{\"id\":data.item.InvoiceNo,\"variant\":\"link\"},on:{\"click\":function($event){return _vm.onClick(data.item.InvoiceNo)}}},[_c('b-img',{staticClass:\"m-auto text-center\",attrs:{\"src\":require(\"../assets/pdf_icon.svg\"),\"width\":\"30\",\"height\":\"30\"}})],1),_c('div',{staticClass:\"d-flex flex-row justify-content-center\"},[_c('b-progress',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.progressBarHidden),expression:\"progressBarHidden\"}],key:data.item.InvoiceNo,ref:data.item.InvoiceNo,staticStyle:{\"width\":\"40px\",\"height\":\"5px\"},attrs:{\"value\":\"10\",\"max\":\"5\",\"variant\":\"gazprom-blue\",\"animated\":\"\"}})],1)]],2)]}}],null,false,552701535)}),_c('b-pagination',{attrs:{\"total-rows\":_vm.invoiceCount,\"per-page\":_vm.perPage,\"aria-controls\":\"invoices-table\",\"align\":\"center\",\"page-class\":\"bg-gazprom-blue\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})]:[_c('span',[_vm._v(\"No invoices were found for the selected account and site.\")])]]],2)]),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"12\",\"lg\":\"4\"}},[_c('div')])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport { namespace } from 'vuex-class';\nimport { IInvoiceDetails } from '../interfaces/invoiceDetails';\nimport moment from 'moment';\nimport { GtagHelper } from '../utilities/GtagHelper';\n\n\nconst Auth = namespace(\"Auth\");\nconst GasAccounts = namespace(\"GasAccounts\");\nconst Invoices = namespace(\"Invoices\");\n\n@Component\nexport default class InvoicesTable extends Vue {\n\n public unwatch: any;\n private loading = true;\n private currentPage = 1;\n private perPage = 10;\n private progressBarHidden = false;\n\n private GtagHelper = new GtagHelper();\n\n public invoiceFields = [\n {\n key: 'InvoiceDate',\n label: 'Date issued',\n formatter: this.formatDate\n },\n {\n key: 'InvoiceNo',\n label: 'Invoice number'\n },\n {\n key: 'InvoiceTotal',\n label: 'Amount for selected agreement',\n formatter: this.formatAmount\n },\n {\n key: 'DownloadLink',\n label: 'Download'\n }];\n\n get invoiceCount() {\n if (this.Invoices == null) { return 0; }\n else return this.Invoices.length;\n }\n\n @Auth.Getter\n private getUserId!: string;\n\n @GasAccounts.Getter\n private getSelectedSiteRefNumber!: string;\n\n @GasAccounts.Getter\n private getSelectedAccount!: string;\n\n @Invoices.Getter\n private Invoices!: IInvoiceDetails[];\n\n @Invoices.Action\n private getInvoices!: (params: { accountNum: string, siteRefNum: string, userId: string }) => Promise;\n\n @Invoices.Action\n private invoiceDownload!: (params: { accountNum: string, invoiceNo: string, userId: string }) => Promise;\n\n @Invoices.Getter\n private getDownloadFileData!: { data: Blob | null, fileName: string | null };\n\n private async onClick(invoiceNo) {\n this.$refs[invoiceNo]!['$el'].style.display = 'flex';\n const accountNum = this.getSelectedAccount;\n const userId = this.getUserId;\n this.invoiceDownload({ accountNum, invoiceNo, userId }).then(() => {\n this.fileProcess();\n this.$refs[invoiceNo]!['$el'].style.display = 'none';\n }).catch(reason => {\n console.error(reason);\n this.$refs[invoiceNo]!['$el'].style.display = 'none';\n });\n }\n\n private fileProcess() {\n\n if (this.getDownloadFileData == null) {\n return null;\n }\n\n var fileName = this.getDownloadFileData.fileName;\n\n if (window.navigator && window.navigator.msSaveBlob) {\n window.navigator.msSaveBlob((this.getDownloadFileData.data) as Blob, fileName as string);\n } else {\n var fileURL = window.URL.createObjectURL((this.getDownloadFileData.data) as Blob);\n var fileLink = document.createElement('a');\n fileLink.href = fileURL;\n fileLink.setAttribute('download', fileName as string);\n document.body.appendChild(fileLink);\n fileLink.click();\n }\n\n this.GtagHelper.Event(\"LumiDownloadInvoice\", this.getUserId);\n }\n\n mounted() {\n try {\n this.unwatch = this.$store.watch(\n (state, getters) => getters[\"GasAccounts/getSelectedDeliveryAgreementNumber\"],\n (newValue, oldValue) => {\n if (newValue === null || newValue === oldValue) {\n return;\n }\n this.loading = true;\n this.currentPage = 1;\n\n const siteRefNum = this.getSelectedSiteRefNumber;\n const accountNum = this.getSelectedAccount;\n const userId = this.getUserId;\n\n if (siteRefNum !== null) {\n this.getInvoices({ accountNum: accountNum, siteRefNum: siteRefNum, userId: userId }).then(() => {\n this.loading = false;\n }).catch(reason => {\n this.loading = false;\n console.error(reason);\n });\n }\n\n this.GtagHelper.Event(\"gaLoadInvoiceTable\", this.getUserId);\n }\n , { immediate: true });\n } catch (e) {\n this.loading = false;\n console.error(e);\n }\n\n //this.LoadWistiaVideoPlayer();\n\n }\n\n beforeDestroy() {\n this.unwatch();\n }\n\n public formatAmount(value: number): string {\n if (value === null) {\n return \"\";\n } \n\n var formattedAmount = \"£\" + this.$options?.filters?.toCurrency(value).replace(\"-\", \"\");\n if (value < 0) {\n formattedAmount = \"-\" + formattedAmount + \" CR\";\n }\n return formattedAmount;\n }\n\n public formatDate(value: string): string {\n if (value === null) {\n return \"\";\n }\n return moment(value).format('DD/MM/YYYY');\n }\n\n public invoiceUnavailable(invoiceDate: string): boolean {\n\n const result = moment(invoiceDate).isBefore('01 Jan 2014');\n\n return result;\n }\n\n public LoadWistiaVideoPlayer() {\n try {\n\n let wistiaScript_code = document.createElement('script');\n wistiaScript_code.setAttribute('src', 'https://fast.wistia.com/assets/external/E-v1.js');\n document.head.appendChild(wistiaScript_code);\n\n let wistiaScript_data = document.createElement('script');\n wistiaScript_data.setAttribute('src', 'https://fast.wistia.com/embed/medias/k52jh4zjof.jsonp');\n document.head.appendChild(wistiaScript_data);\n\n } catch (e) {\n console.error(e);\n }\n }\n\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoicesTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoicesTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InvoicesTable.vue?vue&type=template&id=4d1779f9&\"\nimport script from \"./InvoicesTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./InvoicesTable.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InvoicesTable.vue?vue&type=style&index=0&lang=scss&\"\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","\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport WizardBaseStep from \"@/components/wizard/WizardBaseStep.vue\"\nimport InvoicesTable from \"@/components/InvoicesTable.vue\"\n@Component({\n components: {\n WizardBaseStep,\n InvoicesTable\n }\n})\nexport default class WizardStepInvoicesForAgreement extends Vue {\n @Prop({ type: String, default: '' }) readonly id!: string;\n @Prop({ type: Boolean, default: false }) readonly visible!: boolean;\n\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepInvoicesForAgreement.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepInvoicesForAgreement.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WizardStepInvoicesForAgreement.vue?vue&type=template&id=07a3b3bb&\"\nimport script from \"./WizardStepInvoicesForAgreement.vue?vue&type=script&lang=ts&\"\nexport * from \"./WizardStepInvoicesForAgreement.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wizard-base-step',{attrs:{\"id\":_vm.id,\"title\":\"Bulk invoices for account\",\"accordionGroupName\":\"invoicing-wizard\"}},[_c('b-row',[_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\"}},[_c('hr')])],1),_c('b-row',{staticClass:\"mt-3\"},[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('p',[_vm._v(\"You can download all your site invoices for last month or for the last year below. Alternatively, choose a date range within a year to download invoices for.\")])])],1),_c('b-row',[_c('b-col',{staticClass:\"mb-2\",attrs:{\"id\":\"invoicing-latestMonth-button\",\"cols\":\"12\",\"md\":\"4\",\"lg\":\"4\"}},[_c('b-button',{staticClass:\"shadow\",attrs:{\"size\":\"lg\",\"variant\":\"soft-blue\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onDownloadLatestMonth.apply(null, arguments)}}},[_vm._v(\"Download most recent month's invoices \"),_c('b-icon',{staticClass:\"ml-2\",attrs:{\"icon\":\"cloud-arrow-down\"}})],1)],1),_c('b-col',{staticClass:\"mb-2\",attrs:{\"id\":\"invoicing-lastYear-button\",\"cols\":\"12\",\"md\":\"4\",\"lg\":\"4\"}},[_c('b-button',{staticClass:\"shadow\",attrs:{\"size\":\"lg\",\"variant\":\"soft-blue\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onDownloadLatestYear.apply(null, arguments)}}},[_vm._v(\"Download last 12 months' invoices \"),_c('b-icon',{staticClass:\"ml-2\",attrs:{\"icon\":\"cloud-arrow-down\"}})],1)],1),_c('b-col',{staticClass:\"mb-2\",attrs:{\"id\":\"invoicing-bulk-custom-date-button\",\"cols\":\"12\",\"md\":\"4\",\"lg\":\"4\"}},[_c('b-button',{staticClass:\"shadow\",attrs:{\"size\":\"lg\",\"variant\":_vm.setChooseCustomDateVarient(),\"pressed\":_vm.selectedCustomDate,\"active\":_vm.selectedCustomDate},on:{\"click\":_vm.onChooseCustomDate}},[_vm._v(\"Choose custom date\"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedCustomDate),expression:\"selectedCustomDate\"}],staticClass:\"ml-2\",attrs:{\"icon\":\"check2-circle\"}})],1)],1),_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\"}},[_c('p',[_c('b-icon',{staticClass:\"mr-1\",attrs:{\"icon\":\"exclamation-circle\"}}),_vm._v(\"Downloading a large number of invoices may take a while. If you have more than 100 sites on individual invoices, it will be faster for you to use a shorter date range using the 'Choose custom date' option.\")],1)])],1),(!_vm.selectedCustomDate)?_c('b-row',[_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\"}},[_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":\"true\"}},[_c('p',[_vm._v(\"error\")]),_c('b-progress',{attrs:{\"variant\":\"danger\",\"max\":\"10\",\"height\":\"4px\"}})],1)],1)],1):_vm._e(),(_vm.selectedCustomDate)?_c('b-row',[_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\"}},[_c('hr')]),_c('b-col',{staticClass:\"mt-1\",attrs:{\"cols\":\"12\"}},[_c('label',{attrs:{\"for\":\"start-month-datepicker\"}},[_vm._v(\"Select month and year\")])]),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('div',{staticClass:\"position-relative\"},[_c('vue-monthly-picker',{attrs:{\"placeHolder\":\"Start month and year\",\"dateFormat\":\"MM/YYYY\",\"monthLabels\":_vm.monthLabels,\"alignment\":_vm.alignment,\"selectedBackgroundColor\":\"#0065bd\",\"max\":_vm.maxDate},on:{\"selected\":_vm.onInputDateStartMonth},model:{value:(_vm.StartMonth),callback:function ($$v) {_vm.StartMonth=$$v},expression:\"StartMonth\"}}),_c('span',{staticClass:\"position-absolute\",staticStyle:{\"top\":\"5px\",\"right\":\"30px\",\"pointer-events\":\"none\"}},[_c('b-icon',{attrs:{\"icon\":\"calendar2-week-fill\",\"variant\":\"gazprom-blue\"}})],1)],1),_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":_vm.startMonthErrorMessage!=null}},[_vm._v(_vm._s(_vm.startMonthErrorMessage))])],1),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('div',{staticClass:\"position-relative\"},[_c('vue-monthly-picker',{attrs:{\"placeHolder\":\"End month and year\",\"dateFormat\":\"MM/YYYY\",\"monthLabels\":_vm.monthLabels,\"alignment\":_vm.alignment,\"selectedBackgroundColor\":\"#0065bd\",\"max\":_vm.maxDate},on:{\"selected\":_vm.onInputDateEndMonth},model:{value:(_vm.EndMonth),callback:function ($$v) {_vm.EndMonth=$$v},expression:\"EndMonth\"}}),_c('span',{staticClass:\"position-absolute\",staticStyle:{\"top\":\"5px\",\"right\":\"30px\",\"pointer-events\":\"none\"}},[_c('b-icon',{attrs:{\"icon\":\"calendar2-week-fill\",\"variant\":\"gazprom-blue\"}})],1)],1),_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":_vm.endMonthErrorMessage!=null}},[_vm._v(_vm._s(_vm.endMonthErrorMessage))])],1),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('b-button',{attrs:{\"size\":\"md\",\"variant\":\"soft-blue\"},on:{\"click\":_vm.onDownloadCustom}},[_vm._v(\"Download\"),_c('b-icon',{staticClass:\"ml-1\",attrs:{\"icon\":\"cloud-arrow-down\"}})],1)],1)],1):_vm._e(),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\",\"lg\":\"8\"}},[_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":_vm.errorMessage!=null}},[_vm._v(_vm._s(_vm.errorMessage))])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 WizardBaseStep from \"@/components/wizard/WizardBaseStep.vue\";\nimport moment from 'moment';\nimport VueMonthlyPicker from 'vue-monthly-picker';\nimport { namespace } from 'vuex-class';\nimport { DateValidation } from \"@/utilities/DateValidation\";\nimport ToastService from '@/services/toastService';\nimport { GtagHelper } from '../../../../utilities/GtagHelper';\n\nconst Invoices = namespace(\"Invoices\")\nconst GasAccounts = namespace(\"GasAccounts\");\nconst Auth = namespace(\"Auth\");\nconst Products = namespace(\"Products\");\n\n@Component({\n components: {\n WizardBaseStep,\n VueMonthlyPicker\n }\n})\nexport default class WizardStepBulkInvoicesForAccount extends Vue {\n @Prop({ type: String, default: '' }) readonly id!: string;\n private selectedCustomDate = false;\n private processing = false;\n private maxProgress = 20;\n private counter = 0;\n private interval: (number | null) = null;\n private StartMonth = '';\n private EndMonth = '';\n private startMonthErrorMessage: string | null = null;\n private endMonthErrorMessage: string | null = null;\n private errorMessage: string | null = null;\n \n\n private validator = new DateValidation();\n\n private maxDate = moment();\n private monthLabels = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n private alignment = 'center';\n\n private GtagHelper = new GtagHelper();\n\n setChooseCustomDateVarient() {\n if (this.selectedCustomDate) {\n return 'sefe-blue';\n }\n return 'outline-gazprom-blue';\n }\n\n @GasAccounts.Getter\n private getSelectedAccount!: string;\n\n @GasAccounts.Mutation\n private setMprnSelectionDisabled!: (disabled: boolean) => void;\n\n @GasAccounts.Mutation\n private setAgreementSelectionDisabled!: (disabled: boolean) => void;\n\n @GasAccounts.Mutation\n private setAccountSelectionDisabled!: (disabled: boolean) => void;\n\n @Products.Mutation\n private setProductSelectionDisabled!: (disabled: boolean) => void;\n\n @Auth.Getter\n private getUserId!: string;\n\n @Invoices.Getter\n private getDownloadFileData!: { data: Blob | null, fileName: string | null };\n\n get selectedAccount() {\n return this.getSelectedAccount;\n }\n\n @Invoices.Action\n getLatestMonthInvoicesForAccount!: (params: { accountNum: string, userId : string }) => Promise;\n\n @Invoices.Action\n getLatestYearInvoicesForAccount!: (params: { accountNum: string, userId: string }) => Promise;\n\n @Invoices.Action\n getCustomRangeInvoicesForAccount!: (params: { accountNum: string, userId: string, fromMonth: string, toMonth: string }) => Promise;\n\n private onChooseCustomDate() {\n this.selectedCustomDate = true;\n }\n\n \n\n async onInputDateStartMonth(date: any) {\n if (date !== null && date !== '') {\n this.validator.reset();\n this.errorMessagesReset();\n this.validator.setStartMonth = date.format('YYYY/MM/DD');\n const isValid = this.validator.validate();\n if (!isValid) {\n this.startMonthErrorMessage = this.validator.getStartMonthErrorMessage;\n this.errorMessage = this.validator.getErrorMessage;\n return;\n }\n } else {\n this.validator.setStartMonth = null;\n }\n\n this.validator.reset();\n this.errorMessagesReset();\n return;\n }\n\n async onInputDateEndMonth(date: any) {\n if (date !== null && date !== '') {\n this.validator.reset();\n this.errorMessagesReset();\n this.validator.setEndMonth = date.endOf('month').format('YYYY/MM/DD');\n const isValid = this.validator.validate();\n if (!isValid) {\n this.endMonthErrorMessage = this.validator.getEndMonthErrorMessage;\n this.errorMessage = this.validator.getErrorMessage;\n return;\n }\n } else {\n this.validator.setEndMonth = null;\n }\n\n this.validator.reset();\n this.errorMessagesReset();\n return;\n }\n\n private async onDownloadLatestMonth() {\n this.startInterval();\n try {\n await this.getLatestMonthInvoicesForAccount({ accountNum: this.selectedAccount, userId: this.getUserId });\n this.fileProcess();\n this.downloadSuccess();\n\n this.GtagHelper.Event(\"LumiDownloadBulkInvoicesLatestMonth\", this.getUserId);\n } catch (error) {\n console.error(error);\n } finally {\n this.processing = false;\n this.clearInterval();\n }\n }\n\n private async onDownloadLatestYear() {\n this.startInterval();\n try {\n await this.getLatestYearInvoicesForAccount({ accountNum: this.selectedAccount, userId: this.getUserId });\n this.fileProcess();\n this.downloadSuccess();\n\n this.GtagHelper.Event(\"LumiDownloadBulkInvoicesLatestYear\", this.getUserId);\n } catch (error) {\n console.error(error);\n } finally {\n this.processing = false;\n this.clearInterval();\n }\n }\n\n private async onDownloadCustom() {\n this.validator.reset();\n this.errorMessagesReset();\n this.validator.setDayDiff = false;\n const isValid = await this.validator.validate();\n if (!isValid) {\n this.startMonthErrorMessage = this.validator.getStartMonthErrorMessage;\n this.endMonthErrorMessage = this.validator.getEndMonthErrorMessage;\n this.errorMessage = this.validator.getErrorMessage;\n return;\n } else {\n this.startInterval();\n try {\n await this.getCustomRangeInvoicesForAccount({ accountNum: this.selectedAccount,userId: this.getUserId, fromMonth: this.validator.getStartMonth as string, toMonth: this.validator.getEndMonth as string });\n this.fileProcess();\n this.downloadSuccess();\n\n this.GtagHelper.Event(\"LumiDownloadBulkInvoicesCustomDates\", this.getUserId);\n } catch (error) {\n console.error(error);\n } finally {\n this.processing = false;\n this.clearInterval();\n }\n }\n }\n\n private startInterval() { \n this.processing = true;\n this.setAccountSelectionDisabled(true);\n this.setProductSelectionDisabled(true);\n this.$emit('invoiceprocessingchange', this.processing);\n this.interval = setInterval(() => {\n if (this.processing && this.counter < 20) {\n this.counter += 1;\n }\n }, 700);\n }\n\n private clearInterval() {\n if (this.interval) {\n clearInterval(this.interval)\n this.interval = null;\n this.counter = 0; \n }\n this.setAccountSelectionDisabled(false);\n this.setProductSelectionDisabled(false);\n this.$emit('invoiceprocessingchange', this.processing);\n }\n\n private fileProcess() {\n this.processing = false;\n this.clearInterval();\n var fileName = this.getDownloadFileData.fileName;\n if (window.navigator && window.navigator.msSaveBlob) {\n window.navigator.msSaveBlob((this.getDownloadFileData.data) as Blob, fileName as string);\n } else {\n var fileURL = window.URL.createObjectURL((this.getDownloadFileData.data) as Blob);\n var fileLink = document.createElement('a');\n fileLink.href = fileURL;\n fileLink.setAttribute('download', fileName as string);\n document.body.appendChild(fileLink);\n fileLink.click();\n }\n }\n\n private downloadSuccess() {\n const SuccessMessageDefaults = ToastService.SuccessMessageDefaults();\n SuccessMessageDefaults.noAutoHide = true;\n SuccessMessageDefaults.variant = '#cfdf9a';\n SuccessMessageDefaults.bodyClass = 'copy-success-message';\n SuccessMessageDefaults.headerClass = 'copy-success-message';\n SuccessMessageDefaults.noCloseButton = false;\n SuccessMessageDefaults.title = 'Download Completed';\n this.$bvToast.toast(\"You can find your invoices in your download folder.\", SuccessMessageDefaults);\n }\n\n private errorMessagesReset(): void {\n this.validator.reset();\n this.startMonthErrorMessage = null;\n this.endMonthErrorMessage = null;\n this.errorMessage = null;\n }\n\n beforeDestroy() {\n this.clearInterval();\n this.setAgreementSelectionDisabled(false);\n this.setMprnSelectionDisabled(false);\n }\n\n mounted(): void {\n this.setAgreementSelectionDisabled(true);\n this.setMprnSelectionDisabled(true);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepBulkInvoicesForAccount.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepBulkInvoicesForAccount.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WizardStepBulkInvoicesForAccount.vue?vue&type=template&id=37264245&\"\nimport script from \"./WizardStepBulkInvoicesForAccount.vue?vue&type=script&lang=ts&\"\nexport * from \"./WizardStepBulkInvoicesForAccount.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./WizardStepBulkInvoicesForAccount.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wizard-base-step',{attrs:{\"id\":_vm.id,\"title\":\"Bulk invoices for all accounts\",\"accordionGroupName\":\"invoicing-wizard\"}},[_c('b-row',[_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\"}},[_c('hr')])],1),_c('b-row',{staticClass:\"mt-3\"},[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('p',[_vm._v(\"Download latest invoices for all accounts and sites. Alternatively, choose a date range within 31 days to download invoices for.\")])])],1),_c('b-row',[_c('b-col',{staticClass:\"mb-2\",attrs:{\"id\":\"invoicing-latestForAllAccounts-button\",\"cols\":\"12\",\"md\":\"4\",\"lg\":\"4\"}},[_c('b-button',{staticClass:\"shadow\",class:{'btn-soft-blue': _vm.processing,'btn-soft-blue':!_vm.processing },attrs:{\"size\":\"lg\"},on:{\"click\":_vm.onDownloadLatestInvoicesForAllAccounts}},[_vm._v(\"Download latest invoices\"),_c('b-icon',{staticClass:\"ml-2\",attrs:{\"icon\":\"cloud-arrow-down\"}})],1)],1),_c('b-col',{staticClass:\"mb-2\",attrs:{\"id\":\"invoicing-bulk-custom-date-button\",\"cols\":\"12\",\"md\":\"4\",\"lg\":\"4\"}},[_c('b-button',{staticClass:\"shadow\",attrs:{\"size\":\"lg\",\"variant\":_vm.setChooseCustomDateVarient(),\"pressed\":_vm.selectedCustomDate,\"active\":_vm.selectedCustomDate},on:{\"click\":_vm.onChooseCustomDate}},[_vm._v(\"Choose custom date\"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.selectedCustomDate),expression:\"selectedCustomDate\"}],staticClass:\"ml-2\",attrs:{\"icon\":\"check2-circle\"}})],1)],1),_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\"}},[_c('p',[_c('b-icon',{staticClass:\"mr-1\",attrs:{\"icon\":\"exclamation-circle\"}}),_vm._v(\"Downloading a large number of invoices may take a while. If you have more than 100 sites on individual invoices, it will be faster for you to use a shorter date range using the 'Choose custom date' option.\")],1)])],1),(!_vm.selectedCustomDate)?_c('b-row',[_c('b-col',{staticClass:\"mt-3\",attrs:{\"cols\":\"12\"}},[_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":\"true\"}},[_c('p',[_vm._v(\"error\")]),_c('b-progress',{attrs:{\"variant\":\"danger\",\"max\":\"10\",\"height\":\"4px\"}})],1)],1)],1):_vm._e(),(_vm.selectedCustomDate)?_c('b-row',[_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\"}},[_c('hr')]),_c('b-col',{staticClass:\"mt-1\",attrs:{\"cols\":\"12\"}},[_c('label',{attrs:{\"for\":\"start-month-datepicker\"}},[_vm._v(\"Select dates\")])]),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('div',{staticClass:\"position-relative\"},[_c('b-form-datepicker',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],ref:\"customInvoiceReportDateFrom\",attrs:{\"placeholder\":\"Start date\",\"date-format-options\":{ year: 'numeric', month: 'numeric', day: 'numeric' },\"id\":\"customInvoiceReportDateFrom\",\"name\":\"customInvoiceReportDateFrom\",\"alignment\":_vm.alignment,\"selectedBackgroundColor\":\"#0065bd\",\"max\":_vm.maxDate},model:{value:(_vm.StartDate),callback:function ($$v) {_vm.StartDate=$$v},expression:\"StartDate\"}}),_c('span',{staticClass:\"position-absolute\",staticStyle:{\"top\":\"5px\",\"right\":\"30px\",\"pointer-events\":\"none\"}},[_c('b-icon',{attrs:{\"icon\":\"calendar2-week-fill\",\"variant\":\"gazprom-blue\"}})],1)],1),_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":_vm.veeErrors.has('customInvoiceReportDateFrom')}},[_vm._v(\" \"+_vm._s(_vm.veeErrors.first('customInvoiceReportDateFrom')))])],1),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('div',{staticClass:\"position-relative\"},[_c('b-form-datepicker',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required|earlierToDate:customInvoiceReportDateFrom|futureToDate:customInvoiceReportDateFrom|dateRangeThirtyOneDays:customInvoiceReportDateFrom'),expression:\"'required|earlierToDate:customInvoiceReportDateFrom|futureToDate:customInvoiceReportDateFrom|dateRangeThirtyOneDays:customInvoiceReportDateFrom'\"}],ref:\"customInvoiceReportDateTo\",attrs:{\"placeholder\":\"End date\",\"date-format-options\":{ year: 'numeric', month: 'numeric', day: 'numeric' },\"id\":\"customInvoiceReportDateTo\",\"name\":\"customInvoiceReportDateTo\",\"alignment\":_vm.alignment,\"selectedBackgroundColor\":\"#0065bd\",\"max\":_vm.maxDate},model:{value:(_vm.EndDate),callback:function ($$v) {_vm.EndDate=$$v},expression:\"EndDate\"}}),_c('span',{staticClass:\"position-absolute\",staticStyle:{\"top\":\"5px\",\"right\":\"30px\",\"pointer-events\":\"none\"}},[_c('b-icon',{attrs:{\"icon\":\"calendar2-week-fill\",\"variant\":\"gazprom-blue\"}})],1)],1),_c('b-alert',{attrs:{\"variant\":\"danger\",\"show\":_vm.veeErrors.has('customInvoiceReportDateTo')}},[_vm._v(\" \"+_vm._s(_vm.veeErrors.first('customInvoiceReportDateTo')))])],1),_c('b-col',{staticClass:\"mt-2\",attrs:{\"cols\":\"12\",\"lg\":\"4\"}},[_c('b-button',{attrs:{\"size\":\"md\",\"variant\":\"soft-blue\"},on:{\"click\":_vm.onDownloadCustom}},[_vm._v(\"Download\"),_c('b-icon',{staticClass:\"ml-1\",attrs:{\"icon\":\"cloud-arrow-down\"}})],1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 { namespace } from 'vuex-class';\nimport WizardBaseStep from \"@/components/wizard/WizardBaseStep.vue\";\nimport { FileProcess } from \"@/utilities/FileProcess\";\nimport ToastService from '@/services/toastService';\nimport { GtagHelper } from '../../../../utilities/GtagHelper';\n\nimport moment from 'moment';\nimport { BFormDatepicker } from 'bootstrap-vue';\n\nconst GasAccounts = namespace(\"GasAccounts\");\nconst Invoices = namespace(\"Invoices\")\nconst Auth = namespace(\"Auth\");\nconst Products = namespace(\"Products\");\n\n@Component({\n components: {\n WizardBaseStep,\n BFormDatepicker\n }\n})\nexport default class WizardStepBulkInvoicesForAccounts extends Vue {\n @Prop({ type: String, default: '' }) readonly id!: string;\n private selectedCustomDate = false;\n private processing = false;\n private maxProgress = 20;\n private counter = 0;\n private interval: (number | null) = null;\n private StartDate = '';\n private EndDate = '';\n\n\n private now = new Date();\n private today = new Date(this.now.getFullYear(), this.now.getMonth(), this.now.getDate());\n private maxDate = new Date(this.today);\n\n private alignment = 'center';\n\n private GtagHelper = new GtagHelper();\n\n setChooseCustomDateVarient() {\n if (this.selectedCustomDate) {\n return 'sefe-blue';\n }\n return 'outline-gazprom-blue';\n }\n\n @GasAccounts.Mutation\n private setMprnSelectionDisabled!: (disabled: boolean) => void;\n\n @GasAccounts.Mutation\n private setAgreementSelectionDisabled!: (disabled: boolean) => void;\n\n @GasAccounts.Mutation\n private setAccountSelectionDisabled!: (disabled: boolean) => void;\n\n @Products.Mutation\n private setProductSelectionDisabled!: (disabled: boolean) => void;\n\n @GasAccounts.Getter\n private getSelectedAccount!: string;\n\n @Auth.Getter\n private getUserId!: string;\n\n @Invoices.Getter\n private getDownloadFileData!: { data: Blob | null, fileName: string | null };\n\n @Invoices.Action\n getCustomRangeInvoicesForAllAccounts!: (params: { userId: string, fromDate: string, toDate: string }) => Promise;\n\n get selectedAccount() {\n return this.getSelectedAccount;\n }\n\n @Invoices.Action\n getInvoicesDownloadForAllAccounts!: (params: { userId: string }) => Promise;\n\n private onChooseCustomDate() {\n this.selectedCustomDate = true;\n }\n\n private async onDownloadLatestInvoicesForAllAccounts() {\n\n if (this.selectedCustomDate == true) {\n this.selectedCustomDate = false;\n }\n\n this.$validator.validateAll().then((isValid => {\n if (!isValid) {\n this.processing = false;\n return;\n }\n\n this.startInterval();\n\n try {\n this.getInvoicesDownloadForAllAccounts({ userId: this.getUserId}).then(() => {\n this.processing = false;\n\n var success = this.FileProcess.downlaodFile(this.getDownloadFileData.data, this.getDownloadFileData.fileName);\n if (success) {\n this.clearInterval();\n this.downloadSuccess();\n\n this.GtagHelper.Event(\"LumiDownloadBulkInvoicesAllAccount\", this.getUserId);\n }\n }, (error) => {\n this.processing = false;\n this.clearInterval();\n console.error(error.response.data);\n })\n\n } catch (error) {\n console.error(error);\n this.clearInterval();\n console.log(error.response.date);\n }\n }));\n }\n\n private async onDownloadCustom() {\n this.$validator.validateAll().then((isValid => {\n if (!isValid) {\n this.processing = false;\n return;\n }\n this.getInvoicesDownloadForAllAccounts\n this.startInterval();\n\n try {\n this.getCustomRangeInvoicesForAllAccounts({ userId: this.getUserId, fromDate: moment(String(this.StartDate)).format('YYYY/MM/DD') as string, toDate: moment(String(this.EndDate)).format('YYYY/MM/DD') as string }).then(() => {\n\n var success = this.FileProcess.downlaodFile(this.getDownloadFileData.data, this.getDownloadFileData.fileName);\n if (success) {\n this.clearInterval();\n this.downloadSuccess();\n\n this.GtagHelper.Event(\"LumiDownloadBulkInvoicesAllAccountsCustomDates\", this.getUserId)\n }\n }, (error) => {\n this.clearInterval();\n console.error(error.response.data);\n })\n\n } catch (error) {\n console.error(error);\n this.clearInterval();\n console.log(error.response.date);\n }\n }));\n }\n\n private startInterval() {\n this.processing = true;\n this.setProductSelectionDisabled(true);\n this.$emit('invoiceprocessingchange', this.processing);\n this.interval = setInterval(() => {\n if (this.processing && this.counter < 20) {\n this.counter += 1;\n }\n }, 700);\n }\n\n private clearInterval() {\n if (this.interval) {\n clearInterval(this.interval)\n this.interval = null;\n this.counter = 0;\n }\n this.processing = false;\n this.setProductSelectionDisabled(false);\n this.$emit('invoiceprocessingchange', this.processing);\n }\n\n private FileProcess = new FileProcess();\n\n private downloadSuccess() {\n const SuccessMessageDefaults = ToastService.SuccessMessageDefaults();\n SuccessMessageDefaults.noAutoHide = true;\n SuccessMessageDefaults.variant = '#cfdf9a';\n SuccessMessageDefaults.bodyClass = 'copy-success-message';\n SuccessMessageDefaults.headerClass = 'copy-success-message';\n SuccessMessageDefaults.noCloseButton = false;\n SuccessMessageDefaults.title = 'Download Completed';\n this.$bvToast.toast(\"You can find your invoices in your download folder.\", SuccessMessageDefaults);\n }\n\n beforeMount() {\n const dict = {\n custom: {\n customInvoiceReportDateFrom: {\n required: 'Report date from is required'\n },\n customInvoiceReportDateTo: {\n required: 'Report date to is required'\n }\n\n }\n };\n\n this.$validator.localize('en', dict);\n }\n\n beforeDestroy() {\n this.clearInterval();\n this.setAccountSelectionDisabled(false);\n this.setAgreementSelectionDisabled(false);\n this.setMprnSelectionDisabled(false);\n }\n\n mounted(): void {\n this.setAccountSelectionDisabled(true);\n this.setAgreementSelectionDisabled(true);\n this.setMprnSelectionDisabled(true);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepBulkInvoicesForAccounts.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepBulkInvoicesForAccounts.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WizardStepBulkInvoicesForAccounts.vue?vue&type=template&id=83564914&\"\nimport script from \"./WizardStepBulkInvoicesForAccounts.vue?vue&type=script&lang=ts&\"\nexport * from \"./WizardStepBulkInvoicesForAccounts.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wizard-base-step',{attrs:{\"id\":_vm.id,\"title\":\"Account invoices\",\"accordionGroupName\":\"invoicing-power-wizard\"}},[_c('invoices-power-table')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-row',[_c('b-col',{staticClass:\"mb-2 text-center\",attrs:{\"cols\":\"12\",\"md\":\"12\",\"lg\":\"8\"}},[_c('div',{staticClass:\"bg-light border rounded rounded-lg shadow\",attrs:{\"id\":\"invoices-box\"}},[_c('h4',{staticClass:\"mt-2 mb-2\",class:{'invoices-header-empty' : _vm.invoiceCount == 0}},[_vm._v(\"Invoices\")]),(_vm.loading)?[_c('b-skeleton-table',{attrs:{\"rows\":10,\"columns\":4,\"stacked\":\"md\",\"table-props\":{ bordered: true, striped: true }}})]:[(_vm.invoiceCount > 0 && _vm.isflex)?[_c('b-table',{attrs:{\"id\":\"invoices-table\",\"stacked\":\"md\",\"responsive\":\"\",\"striped\":\"\",\"hover\":\"\",\"items\":_vm.Invoices,\"fields\":_vm.invoiceFlexFields,\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage},scopedSlots:_vm._u([{key:\"cell(DownloadLink)\",fn:function(data){return [_c('div',{staticClass:\"d-flex flex-column justify-content-center\"},[(_vm.invoiceUnavailable(data.item.TaxPointDate))?[_c('div',[_vm._v(\"Not available online\")])]:[_c('b-button',{staticClass:\"btn-outline-none\",attrs:{\"id\":data.item.InvoiceNo,\"variant\":\"link\"},on:{\"click\":function($event){return _vm.onClick(data.item.InvoiceNo)}}},[_c('b-img',{staticClass:\"m-auto text-center\",attrs:{\"src\":require(\"../assets/pdf_icon.svg\"),\"width\":\"40\",\"height\":\"40\"}})],1),_c('div',{staticClass:\"d-flex flex-row justify-content-center\"},[_c('b-progress',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.progressBarHidden),expression:\"progressBarHidden\"}],key:data.item.InvoiceNo,ref:data.item.InvoiceNo,staticStyle:{\"width\":\"40px\",\"height\":\"5px\"},attrs:{\"value\":\"10\",\"max\":\"5\",\"variant\":\"gazprom-blue\",\"animated\":\"\"}})],1)]],2)]}}],null,false,904980495)}),_c('b-pagination',{attrs:{\"total-rows\":_vm.invoiceCount,\"per-page\":_vm.perPage,\"aria-controls\":\"invoices-table\",\"align\":\"center\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})]:(_vm.invoiceCount > 0)?[_c('b-table',{attrs:{\"id\":\"invoices-table\",\"stacked\":\"md\",\"responsive\":\"\",\"striped\":\"\",\"hover\":\"\",\"items\":_vm.Invoices,\"fields\":_vm.invoiceFields,\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage},scopedSlots:_vm._u([{key:\"cell(DownloadLink)\",fn:function(data){return [_c('div',{staticClass:\"d-flex flex-column justify-content-center\"},[(_vm.invoiceUnavailable(data.item.PostedDate))?[_c('div',[_vm._v(\"Not available online\")])]:[_c('b-button',{staticClass:\"btn-outline-none\",attrs:{\"id\":data.item.InvoiceNo,\"variant\":\"link\"},on:{\"click\":function($event){return _vm.onClick(data.item.InvoiceNo)}}},[_c('b-img',{staticClass:\"m-auto text-center\",attrs:{\"src\":require(\"../assets/pdf_icon.svg\"),\"width\":\"40\",\"height\":\"40\"}})],1),_c('div',{staticClass:\"d-flex flex-row justify-content-center\"},[_c('b-progress',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.progressBarHidden),expression:\"progressBarHidden\"}],key:data.item.InvoiceNo,ref:data.item.InvoiceNo,staticStyle:{\"width\":\"40px\",\"height\":\"5px\"},attrs:{\"value\":\"10\",\"max\":\"5\",\"variant\":\"gazprom-blue\",\"animated\":\"\"}})],1)]],2)]}}])}),_c('b-pagination',{attrs:{\"total-rows\":_vm.invoiceCount,\"per-page\":_vm.perPage,\"aria-controls\":\"invoices-table\",\"align\":\"center\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})]:[_c('span',[_vm._v(\"No invoices were found for the selected account.\")])]]],2)]),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"12\",\"lg\":\"4\"}},[_c('div')])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 { namespace } from 'vuex-class';\nimport { IInvoiceDetailsPower } from '../interfaces/invoiceDetailsPower';\nimport moment from 'moment';\nimport { GtagHelper } from '../utilities/GtagHelper';\n\nconst Auth = namespace(\"Auth\");\nconst PowerAccounts = namespace(\"PowerAccounts\");\nconst PowerInvoices = namespace(\"PowerInvoices\");\n\n@Component\nexport default class InvoicesTable extends Vue {\n\n private GtagHelper = new GtagHelper();\n\n public unwatch: any;\n private loading = true;\n private currentPage = 1;\n private perPage = 10;\n private progressBarHidden = false;\n public isflex = false;\n public invoiceFields = [\n {\n key: 'TaxPointDate',\n label: 'Date issued',\n formatter: this.formatDate\n },\n {\n key: 'InvoiceNo',\n label: 'Site Invoice number'\n },\n {\n key: 'Total',\n label: 'Amount',\n formatter: this.formatAmount\n },\n {\n key: 'DownloadLink',\n label: 'Download'\n }];\n\n public invoiceFlexFields = [\n {\n key: 'PostedDate',\n label: 'Date issued',\n formatter: this.formatDate\n },\n {\n key: 'InvoiceNo',\n label: 'Site Invoice number'\n },\n {\n key: 'Total',\n label: 'Amount',\n formatter: this.formatAmount\n },\n {\n key: 'DownloadLink',\n label: 'Download'\n }];\n\n get invoiceCount() {\n if (this.Invoices == null) { return 0; }\n else return this.Invoices.length;\n }\n\n @Auth.Getter\n private getUserId!: string;\n\n @PowerAccounts.Getter\n private getSelectedSiteRefNumber!: string;\n\n @PowerAccounts.Getter\n private getSelectedAccount!: string;\n\n @PowerAccounts.Getter\n private getSelectedGroupAccount!: string;\n\n @PowerInvoices.Getter\n private Invoices!: IInvoiceDetailsPower[];\n\n @PowerInvoices.Action\n private invoiceDownload!: (params: { accountNum: string, invoiceNo: string, userId: string}) => Promise\n\n @PowerInvoices.Action\n private flexInvoiceDownload!: (params: { accountNum: string, invoiceNo: string, userId: string }) => Promise\n\n @PowerInvoices.Action\n private getInvoices!: (params: { accountNum: string, userId: string }) => Promise\n\n @PowerInvoices.Action\n private getFlexInvoices!: (params: { accountNum: string, userId: string }) => Promise\n\n @PowerInvoices.Getter\n private getDownloadFileData!: { data: Blob | null, fileName: string | null };\n\n private fileProcess() {\n\n if (this.getDownloadFileData == null) {\n return null;\n }\n\n var fileName = this.getDownloadFileData.fileName;\n\n if (this.isflex) {\n const accountNum = this.getSelectedAccount;\n const groupAccountNum = this.getSelectedGroupAccount;\n fileName = accountNum + \"-\" + groupAccountNum + \"-\" + fileName;\n }\n\n if (window.navigator && window.navigator.msSaveBlob) {\n window.navigator.msSaveBlob((this.getDownloadFileData.data) as Blob, fileName as string);\n } else {\n var fileURL = window.URL.createObjectURL((this.getDownloadFileData.data) as Blob);\n var fileLink = document.createElement('a');\n\n fileLink.href = fileURL;\n fileLink.setAttribute('download', fileName as string);\n document.body.appendChild(fileLink);\n fileLink.click();\n }\n\n this.GtagHelper.Event(\"LumiDownloadPowerInvoice\", this.getUserId);\n }\n\n private async onClick(invoiceNo) {\n this.$refs[invoiceNo]!['$el'].style.display = 'flex';\n const accountNum = this.getSelectedAccount;\n const userId = this.getUserId;\n if (!this.isflex) {\n this.invoiceDownload({ accountNum, invoiceNo, userId }).then(() => {\n this.fileProcess();\n this.$refs[invoiceNo]!['$el'].style.display = 'none';\n }).catch(reason => {\n console.error(reason);\n this.$refs[invoiceNo]!['$el'].style.display = 'none';\n });\n } else {\n this.flexInvoiceDownload({ accountNum, invoiceNo, userId }).then(() => {\n this.fileProcess();\n this.$refs[invoiceNo]!['$el'].style.display = 'none';\n }).catch(reason => {\n console.error(reason);\n this.$refs[invoiceNo]!['$el'].style.display = 'none';\n });\n }\n }\n\n created() {\n //this.LoadWistiaVideoPlayer();\n try {\n this.unwatch = this.$store.watch(\n (state, getters) => getters[\"PowerAccounts/getSelectedAccount\"],\n (newValue, oldValue) => {\n if (newValue === null || newValue === oldValue) {\n this.loading = false;\n return;\n }\n\n this.loading = true;\n this.currentPage = 1;\n this.isflex = false;\n\n const accountNum = this.getSelectedAccount;\n const userId = this.getUserId;\n\n this.getInvoices({ accountNum: accountNum, userId: userId }).then(() => {\n if (this.Invoices == null || this.Invoices.length == 0) {\n this.getFlexInvoices({ accountNum: accountNum, userId: userId }).then(() => {\n this.loading = false;\n this.isflex = true;\n }).catch(reason => {\n this.loading = false;\n console.error(reason);\n });\n }\n else {\n this.loading = false;\n }\n }).catch(reason => {\n this.loading = false;\n console.error(reason);\n });\n\n }\n , { immediate: true });\n } catch (e) {\n this.loading = false;\n console.error(e);\n }\n }\n\n beforeDestroy() {\n this.unwatch();\n }\n\n public formatAmount(value: number): string {\n if (value === null) {\n return \"\";\n }\n\n var formattedAmount = \"£\" + this.$options?.filters?.toCurrency(value).replace(\"-\", \"\");\n\n if (value < 0) {\n formattedAmount = \"-\" + formattedAmount;\n }\n\n return formattedAmount;\n } \n\n public formatDate(value: string): string {\n if (value === null) {\n return \"\";\n }\n\n return moment(value).format('DD/MM/YYYY');\n }\n\n public invoiceUnavailable(invoiceDate: string): boolean {\n\n const result = moment(invoiceDate).isBefore('01 Jan 2013');\n\n return result;\n }\n\n public LoadWistiaVideoPlayer() {\n try {\n\n let wistiaScript_code = document.createElement('script');\n wistiaScript_code.setAttribute('src', 'https://fast.wistia.com/assets/external/E-v1.js');\n document.head.appendChild(wistiaScript_code);\n\n let wistiaScript_data = document.createElement('script');\n wistiaScript_data.setAttribute('src', 'https://fast.wistia.com/embed/medias/k52jh4zjof.jsonp');\n document.head.appendChild(wistiaScript_data);\n\n } catch (e) {\n console.error(e);\n }\n }\n\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoicesPowerTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoicesPowerTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InvoicesPowerTable.vue?vue&type=template&id=5ee56d1e&\"\nimport script from \"./InvoicesPowerTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./InvoicesPowerTable.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InvoicesPowerTable.vue?vue&type=style&index=0&lang=scss&\"\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","\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport WizardBaseStep from \"@/components/wizard/WizardBaseStep.vue\"\nimport InvoicesPowerTable from \"@/components/InvoicesPowerTable.vue\"\n@Component({\n components: {\n WizardBaseStep,\n InvoicesPowerTable\n }\n})\nexport default class WizardStepAccountInvoices extends Vue {\n @Prop({ type: String, default: '' }) readonly id!: string;\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepAccountInvoices.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepAccountInvoices.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WizardStepAccountInvoices.vue?vue&type=template&id=8eeadbe4&\"\nimport script from \"./WizardStepAccountInvoices.vue?vue&type=script&lang=ts&\"\nexport * from \"./WizardStepAccountInvoices.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('wizard-base-step',{attrs:{\"id\":\"account-invoices\",\"title\":\"Group invoices\",\"accordionGroupName\":\"invoicing-power-wizard\",\"visible\":true}},[_c('power-group-invoices-table')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-row',[_c('b-col',{staticClass:\"mb-2 text-center\",attrs:{\"cols\":\"12\",\"md\":\"12\",\"lg\":\"8\"}},[_c('div',{staticClass:\"bg-light border rounded rounded-lg shadow\",attrs:{\"id\":\"power-group-invoices-box\"}},[_c('h4',{staticClass:\"mt-2 mb-2\",class:{'invoices-header-empty' : _vm.groupInvoicesCount == 0}},[_vm._v(\"Group Invoices\")]),(_vm.loading)?[_c('b-skeleton-table',{attrs:{\"rows\":10,\"columns\":6,\"stacked\":\"md\",\"table-props\":{ bordered: true, striped: true }}})]:[(_vm.groupInvoicesCount > 0)?[_c('b-table',{attrs:{\"id\":\"power-group-invoices-table\",\"stacked\":\"md\",\"responsive\":\"\",\"striped\":\"\",\"hover\":\"\",\"items\":_vm.groupInvoices,\"fields\":_vm.invoiceFields,\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage},scopedSlots:_vm._u([{key:\"cell(GroupInvoiceDownloadLink)\",fn:function(data){return [_c('div',{staticClass:\"d-flex flex-column justify-content-center\"},[(_vm.invoiceUnavailable(data.item.TaxPointDate))?[_c('div',[_vm._v(\"Not available online\")])]:[_c('b-button',{staticClass:\"btn-outline-none\",attrs:{\"id\":(\"GroupInvoice-\" + (data.item.GroupInvoiceNumber)),\"variant\":\"link\"},on:{\"click\":function($event){return _vm.onDownloadGroupInvoiceClick(data.item.GroupInvoiceNumber)}}},[_c('b-img',{staticClass:\"m-auto text-center\",attrs:{\"src\":require(\"../assets/pdf_icon.svg\"),\"width\":\"30\",\"height\":\"30\"}})],1),_c('div',{staticClass:\"d-flex flex-row justify-content-center\"},[_c('b-progress',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.progressBarHidden),expression:\"progressBarHidden\"}],key:(\"GroupInvoice-\" + (data.item.GroupInvoiceNumber)),ref:(\"GroupInvoice-\" + (data.item.GroupInvoiceNumber)),staticStyle:{\"width\":\"40px\",\"height\":\"5px\"},attrs:{\"value\":\"10\",\"max\":\"5\",\"variant\":\"gazprom-blue\",\"animated\":\"\"}})],1)]],2)]}},{key:\"cell(GroupSummaryDownloadLink)\",fn:function(data){return [_c('div',{staticClass:\"d-flex flex-column justify-content-center\"},[(_vm.invoiceUnavailable(data.item.TaxPointDate))?[_c('div',[_vm._v(\"Not available online\")])]:[_c('b-button',{staticClass:\"btn-outline-none\",attrs:{\"id\":(\"GroupSummary-\" + (data.item.GroupInvoiceNumber)),\"variant\":\"link\"},on:{\"click\":function($event){return _vm.onDownloadGroupSummaryClick(data.item.GroupInvoiceNumber)}}},[_c('b-img',{staticClass:\"m-auto text-center\",attrs:{\"src\":require(\"../assets/pdf_icon.svg\"),\"width\":\"30\",\"height\":\"30\"}})],1),_c('div',{staticClass:\"d-flex flex-row justify-content-center\"},[_c('b-progress',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.progressBarHidden),expression:\"progressBarHidden\"}],key:(\"GroupSummary-\" + (data.item.GroupInvoiceNumber)),ref:(\"GroupSummary-\" + (data.item.GroupInvoiceNumber)),staticStyle:{\"width\":\"40px\",\"height\":\"5px\"},attrs:{\"value\":\"10\",\"max\":\"5\",\"variant\":\"gazprom-blue\",\"animated\":\"\"}})],1)]],2)]}},{key:\"cell(GroupStatementDownloadLink)\",fn:function(data){return [_c('div',{staticClass:\"d-flex flex-column justify-content-center\"},[(_vm.invoiceUnavailable(data.item.TaxPointDate))?[_c('div',[_vm._v(\"Not available online\")])]:[_c('b-button',{staticClass:\"btn-outline-none\",attrs:{\"id\":(\"GroupStatement-\" + (data.item.GroupInvoiceNumber)),\"variant\":\"link\"},on:{\"click\":function($event){return _vm.onDownloadGroupStatementClick(data.item.GroupInvoiceNumber)}}},[_c('b-img',{staticClass:\"m-auto text-center\",attrs:{\"src\":require(\"../assets/excel_icon.svg\"),\"width\":\"30\",\"height\":\"30\"}})],1),_c('div',{staticClass:\"d-flex flex-row justify-content-center\"},[_c('b-progress',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.progressBarHidden),expression:\"progressBarHidden\"}],key:(\"GroupStatement-\" + (data.item.GroupInvoiceNumber)),ref:(\"GroupStatement-\" + (data.item.GroupInvoiceNumber)),staticStyle:{\"width\":\"40px\",\"height\":\"5px\"},attrs:{\"value\":\"10\",\"max\":\"5\",\"variant\":\"gazprom-blue\",\"animated\":\"\"}})],1)]],2)]}}],null,false,1137234678)}),_c('b-pagination',{attrs:{\"total-rows\":_vm.groupInvoicesCount,\"per-page\":_vm.perPage,\"aria-controls\":\"invoices-table\",\"align\":\"center\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})]:[_c('span',[_vm._v(\"No group invoices were found for the selected account.\")])]]],2)]),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"12\",\"lg\":\"4\"}},[_c('div',{staticClass:\"mt-2 mt-lg-0\"})])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 { namespace } from 'vuex-class';\nimport { IPowerGroupInvoiceSummary } from \"@/interfaces/powerGroupInvoiceSummary\";\nimport moment from 'moment';\n\nconst Auth = namespace(\"Auth\");\nconst PowerAccounts = namespace(\"PowerAccounts\");\nconst PowerGroupInvoices = namespace(\"PowerGroupInvoices\");\n\nimport { GtagHelper } from '../utilities/GtagHelper';\n\n@Component\nexport default class PowerGroupInvoicesTable extends Vue {\n\n public unwatch: any;\n private loading = true;\n private currentPage = 1;\n private perPage = 10;\n private progressBarHidden = false;\n\n private GtagHelper = new GtagHelper();\n\n public invoiceFields = [\n {\n key: 'TaxPointDate',\n label: 'Date issued',\n formatter: this.formatDate\n },\n {\n key: 'GroupInvoiceNumber',\n label: 'Group Summary Number'\n },\n {\n key: 'Total',\n label: 'Amount',\n formatter: this.formatAmount\n },\n {\n key: 'GroupInvoiceDownloadLink',\n label: 'Group Summary'\n },\n {\n key: 'GroupSummaryDownloadLink',\n label: 'Group Statement'\n },\n {\n key: 'GroupStatementDownloadLink',\n label: 'Detailed Group Statement'\n }\n ];\n\n get groupInvoicesCount() {\n if (this.groupInvoices == null) { return 0; }\n return this.groupInvoices.length;\n }\n\n @Auth.Getter\n private getUserId!: string;\n\n @PowerAccounts.Getter\n private getSelectedGroupAccount!: string;\n\n @PowerGroupInvoices.Getter\n private groupInvoices!: IPowerGroupInvoiceSummary[];\n\n @PowerGroupInvoices.Action\n private getGroupInvoiceSummary!: (params: { userId: string, groupAccountNumber: string }) => Promise\n\n @PowerGroupInvoices.Action\n private downloadGroupInvoice!: (params: { userId: string, groupAccountNumber: string, groupInvoiceNumber: string }) => Promise\n\n @PowerGroupInvoices.Action\n private downloadGroupSummary!: (params: { userId: string, groupAccountNumber: string, groupInvoiceNumber: string }) => Promise\n\n @PowerGroupInvoices.Action\n private downloadGroupStatement!: (params: { userId: string, groupAccountNumber: string, groupInvoiceNumber: string }) => Promise\n\n @PowerGroupInvoices.Getter\n private getFileForDownload!: { data: Blob | null, fileName: string | null };\n\n private async onDownloadGroupInvoiceClick(groupInvoiceNumber) {\n const key = `GroupInvoice-${groupInvoiceNumber}`;\n\n this.onDownloadClick(groupInvoiceNumber, key, this.downloadGroupInvoice);\n }\n\n private async onDownloadGroupSummaryClick(groupInvoiceNumber) {\n const key = `GroupSummary-${groupInvoiceNumber}`;\n\n this.onDownloadClick(groupInvoiceNumber, key, this.downloadGroupSummary);\n }\n\n private async onDownloadGroupStatementClick(groupInvoiceNumber) {\n const key = `GroupStatement-${groupInvoiceNumber}`;\n\n this.onDownloadClick(groupInvoiceNumber, key, this.downloadGroupStatement);\n }\n\n private async onDownloadClick(groupInvoiceNumber: string, key: string, callback: (params: { userId: string, groupAccountNumber: string, groupInvoiceNumber: string }) => Promise) {\n this.$refs[key]!['$el'].style.display = 'flex';\n\n const userId = this.getUserId;\n const groupAccountNumber = this.getSelectedGroupAccount;\n\n try {\n await callback({ userId, groupAccountNumber, groupInvoiceNumber });\n this.fileProcess();\n this.$refs[key]!['$el'].style.display = 'none';\n } catch (e) {\n console.error(e);\n this.$refs[key]!['$el'].style.display = 'none';\n }\n }\n\n private fileProcess() {\n\n if (this.getFileForDownload == null) {\n return null;\n }\n\n var fileName = this.getFileForDownload.fileName;\n if (window.navigator && window.navigator.msSaveBlob) {\n window.navigator.msSaveBlob((this.getFileForDownload.data) as Blob, fileName as string);\n \n\n\n } else {\n var fileURL = window.URL.createObjectURL((this.getFileForDownload.data) as Blob);\n var fileLink = document.createElement('a');\n\n fileLink.href = fileURL;\n fileLink.setAttribute('download', fileName as string);\n document.body.appendChild(fileLink);\n fileLink.click();\n }\n\n this.GtagHelper.Event(\"LumiDownloadPowerInvoice\", this.getUserId);\n }\n\n created() {\n try {\n this.unwatch = this.$store.watch(\n (state, getters) => getters[\"PowerAccounts/getSelectedGroupAccount\"],\n (newValue, oldValue) => {\n if (newValue === null || newValue === oldValue) {\n return;\n }\n\n this.loading = true;\n this.currentPage = 1;\n\n const userId = this.getUserId;\n const groupAccount = this.getSelectedGroupAccount;\n\n this.getGroupInvoiceSummary({ userId: userId, groupAccountNumber: groupAccount }).then(() => {\n this.loading = false;\n }).catch(reason => {\n this.loading = false;\n console.error(reason);\n });\n }\n , { immediate: true });\n } catch (e) {\n this.loading = false;\n console.error(e);\n }\n }\n\n beforeDestroy() {\n this.unwatch();\n }\n\n public formatAmount(value: number): string {\n if (value === null) {\n return \"\";\n }\n\n var formattedAmount = \"£\" + this.$options?.filters?.toCurrency(value).replace(\"-\", \"\");\n\n if (value < 0) {\n formattedAmount = \"-\" + formattedAmount;\n }\n\n return formattedAmount;\n } \n\n public formatDate(value: string): string {\n if (value === null) {\n return \"\";\n }\n\n return moment(value).format('DD/MM/YYYY');\n }\n\n public invoiceUnavailable(invoiceDate: string): boolean {\n\n const result = moment(invoiceDate).isBefore('01 Jan 2013');\n\n return result;\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PowerGroupInvoicesTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PowerGroupInvoicesTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PowerGroupInvoicesTable.vue?vue&type=template&id=1198c40e&\"\nimport script from \"./PowerGroupInvoicesTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./PowerGroupInvoicesTable.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PowerGroupInvoicesTable.vue?vue&type=style&index=0&lang=scss&\"\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","\n\n\n\n\n\n\nimport { Component, Watch, Vue } from 'vue-property-decorator';\nimport { namespace } from 'vuex-class';\n\nimport WizardBaseStep from \"@/components/wizard/WizardBaseStep.vue\"\nimport PowerGroupInvoicesTable from \"@/components/PowerGroupInvoicesTable.vue\"\n\nconst PowerAccounts = namespace(\"PowerAccounts\");\n\n@Component({\n components: {\n WizardBaseStep,\n PowerGroupInvoicesTable\n }\n})\nexport default class WizardStepPowerGroupInvoices extends Vue {\n\n @PowerAccounts.Mutation\n private setMpanSelectionDisabled!: (disabled: boolean) => void;\n\n @PowerAccounts.Mutation\n private setAccountSelectionDisabled!: (disabled: boolean) => void;\n\n\n mounted(): void {\n this.setMpanSelectionDisabled(true);\n this.setAccountSelectionDisabled(true);\n }\n\n beforeDestroy(): void {\n this.setAccountSelectionDisabled(false);\n this.setMpanSelectionDisabled(false);\n }\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepPowerGroupInvoices.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WizardStepPowerGroupInvoices.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WizardStepPowerGroupInvoices.vue?vue&type=template&id=435ddf58&\"\nimport script from \"./WizardStepPowerGroupInvoices.vue?vue&type=script&lang=ts&\"\nexport * from \"./WizardStepPowerGroupInvoices.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","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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, Watch, Vue } from \"vue-property-decorator\";\nimport BasePage from \"@/components/pages/BasePage.vue\";\nimport BaseWizard from \"@/components/wizard/BaseWizard.vue\"\nimport WizardStepInvoicingGas from \"@/components/wizard/invoicing/gas/WizardStepInvoicingGas.vue\"\nimport WizardStepInvoicingPower from \"@/components/wizard/invoicing/power/WizardStepInvoicingPower.vue\"\nimport WizardStepLatestInvoices from \"@/components/wizard/invoicing/gas/WizardStepLatestInvoices.vue\"\nimport WizardStepInvoicesForAgreement from \"@/components/wizard/invoicing/gas/WizardStepInvoicesForAgreement.vue\"\nimport WizardStepBulkInvoicesForAccount from \"@/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccount.vue\"\nimport WizardStepBulkInvoicesForAccounts from \"@/components/wizard/invoicing/gas/WizardStepBulkInvoicesForAccounts.vue\"\nimport WizardStepAccountInvoices from \"@/components/wizard/invoicing/power/WizardStepAccountInvoices.vue\"\nimport WizardStepPowerGroupInvoices from \"@/components/wizard/invoicing/power/WizardStepPowerGroupInvoices.vue\"\nimport HelpAndSupport from \"@/components/HelpAndSupport.vue\"\n\nimport { JourneyNode } from '@/utilities/JourneyNode';\nimport { namespace } from 'vuex-class';\n\nconst Products = namespace(\"Products\");\nconst InvoicingWizard = namespace(\"InvoicingWizard\");\nconst GasAccounts = namespace(\"GasAccounts\");\nconst PowerAccounts = namespace(\"PowerAccounts\");\nconst Auth = namespace(\"Auth\");\n\n@Component({\n components: {\n BaseWizard,\n BasePage,\n WizardStepInvoicingGas,\n WizardStepInvoicingPower,\n WizardStepLatestInvoices,\n WizardStepInvoicesForAgreement,\n WizardStepBulkInvoicesForAccounts,\n WizardStepBulkInvoicesForAccount,\n WizardStepAccountInvoices,\n WizardStepPowerGroupInvoices,\n HelpAndSupport\n },\n})\nexport default class Invoicing extends Vue {\n private isExactActive = false;\n private watchProductSelection: any;\n private watchGasAccountSelection: any;\n private watchPowerAccountSelection: any;\n private componentKey = 0;\n private transitionName = 'fade';\n private onSingleAccountAndOnSingleSite = false;\n private moreThanOneAccount = true;\n private processing = false;\n private maxProgress = 20;\n private counter = 0;\n private interval: (number | null) = null;\n\n\n private next_step_gas_id = [\"step-1\", \"step-4\", \"step-5\"];\n private next_step_power_id = [\"step-1\", \"step-2\"];\n\n @Watch('$route.path', { immediate: true, deep: true })\n onUrlChange(to: string, from: string) {\n if (to == null || to == undefined) {\n this.transitionName = 'fade';\n return;\n }\n const toDepth = to.split('/').length\n const fromDepth = from?.split('/').length\n this.transitionName = toDepth < fromDepth ? 'slide-right' : 'slide-left';\n }\n\n @InvoicingWizard.Getter\n private getRootJourney!: JourneyNode | null;\n\n @InvoicingWizard.Action\n private resetJourneyNode!: () => Promise;\n\n @InvoicingWizard.Action\n private initJourneyNode!: (option: number) => Promise;\n\n @InvoicingWizard.Action\n private appendJourneyToJourneyNode!: (option: number) => Promise;\n\n @Products.Getter\n private getSelectedProduct!: string;\n\n @GasAccounts.Getter\n private isSass!: boolean;\n\n @GasAccounts.Getter\n private getUserAccountsCount!: number;\n\n @Auth.Mutation\n private setNavDisabled!: (disabled: boolean) => void;\n\n public async onSelectedInvoicingOption(option: number) {\n await this.initJourneyNode(option);\n }\n\n public async onSelectedLatestInvoicesOption(option: number) {\n await this.appendJourneyToJourneyNode(option);\n }\n\n public findJourney(option: number): boolean {\n let root = this.getRootJourney;\n if (root !== null) {\n while (root !== null) {\n if ((root as JourneyNode).Value == option) {\n return true;\n }\n root = (root as JourneyNode).Next;\n }\n }\n return false;\n }\n\n public changeProcessStatus(data) {\n this.processing = data;\n this.setNavDisabled(data);\n if (this.processing) {\n this.interval = setInterval(() => {\n if (this.processing && this.counter < 20) {\n this.counter += 1;\n }\n }, 700);\n } else {\n if (this.interval) {\n clearInterval(this.interval)\n this.interval = null;\n this.counter = 0;\n }\n }\n }\n\n updated() {\n this.isExactActive = typeof this.$refs.rv === 'undefined';\n }\n\n mounted() {\n this.isExactActive = typeof this.$refs.rv === 'undefined';\n this.resetJourneyNode();\n\n try {\n \n this.watchGasAccountSelection = this.$store.watch((state, getters) => getters[\"GasAccounts/getSelectedAccount\"], (newValue, oldValue) => {\n if (newValue === null || newValue === oldValue) {\n return;\n }\n this.forceRerender();\n });\n\n this.watchPowerAccountSelection = this.$store.watch((state, getters) => getters[\"PowerAccounts/getSelectedGroupAccount\"], (newValue, oldValue) => {\n if (newValue === null || newValue === oldValue) {\n return;\n }\n this.resetJourneyNode();\n this.forceRerender();\n });\n\n this.watchProductSelection = this.$store.watch((state, getters) => getters[\"Products/getSelectedProduct\"], (newValue, oldValue) => {\n if (newValue === null || newValue === oldValue) {\n return;\n }\n this.resetJourneyNode();\n this.forceRerender();\n this.onSingleAccountAndOnSingleSite = this.isSass;\n }, { immediate: true });\n\n } catch (e) {\n\n console.error(e);\n }\n\n this.onSingleAccountAndOnSingleSite = this.isSass;\n this.moreThanOneAccount = this.getUserAccountsCount > 1;\n }\n\n forceRerender() {\n this.componentKey += 1\n }\n\n beforeDestroy() {\n this.watchProductSelection();\n this.watchGasAccountSelection();\n this.watchPowerAccountSelection();\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Invoicing.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--15-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Invoicing.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Invoicing.vue?vue&type=template&id=df3d75c6&\"\nimport script from \"./Invoicing.vue?vue&type=script&lang=ts&\"\nexport * from \"./Invoicing.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","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoicesTable.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}