{"version":3,"sources":["webpack:///./src/views/CZProjectedConsumption/CZProjectedConsumptionCo2Gas.vue?845b","webpack:///./src/views/CZProjectedConsumption/CZProjectedConsumptionCo2Gas.vue","webpack:///./src/views/CZProjectedConsumption/CZProjectedConsumptionCo2Gas.vue?8657","webpack:///./src/views/CZProjectedConsumption/CZProjectedConsumptionCo2Gas.vue?ff66"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","style","placeholder","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","href","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","id","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","key","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","render","_ctx","_cache","$props","$setup","$data","$options","_component_el_date_picker","_component_apexchart","_component_TableTab","modelValue","fromDate","$event","type","format","disableDates","toDate","onKeyup","searchEvent","args","onClick","getContent","$filters","StringFormat","sumKwh","sumCost","sumCo2","openAssetAddition","name","openAssetRemoval","isViewClicked","height","options","eboptions","chartOptions","series","tableValues","OriginalTableHeaders","selectedType","colnames","pagetitle","pageheader","downloadUrl","downloadurl","downloadprops","_","slot","fn","customer","components","TableTab","setup","accountId","store","getters","AccountId","SiteDetails","Date","addition","removal","loading","TableHeaders","time","currentDate","selectedDate","getFullYear","getMonth","getDate","labels","chart","toolbar","show","stroke","lineCap","colors","undefined","width","dashArray","curve","title","text","dataLabels","enabled","xaxis","datetimeUTC","formatter","val","timestamp","axisBorder","axisTicks","yaxis","opposite","value","fromdateval","toDateval","domainName","DomainName","toLowerCase","accountInfo","accountid","fromdate","todate","locations","uplift","ApiService","post","then","resp","splice","data","summarydetails","co2","cost","usage","detailsheader","map","a","header","sortable","dsiteDetails","summary","yearsmonthsum","push","years","monthid","catch","console","log","__exports__"],"mappings":"yIAEA,yBAAa,mBACb,IAAMA,EAA0B,gCAAoB,MAAO,CAAEC,MAAO,gBAAkB,CACvE,gCAAoB,MAAO,CAAEA,MAAO,uBAAyB,mHACxE,GACEC,EAAa,CAAED,MAAO,YACtBE,EAA0B,+BAAmB,ioBAA4pB,GACzsBC,EAAa,CAAEH,MAAO,iBACtBI,EAAa,CAAEJ,MAAO,YACtBK,EAAa,CAAEL,MAAO,YACtBM,EAA0B,gCAAoB,MAAO,CAAEN,MAAO,gBAAkB,CACvE,gCAAoB,QAAS,CACxCO,MAAO,CAAC,YAAY,SACpBP,MAAO,oBACPQ,YAAa,sCAEb,GACEC,EAAa,CAAET,MAAO,gBACtBU,EAAa,CAAEV,MAAO,YACtBW,EAAc,CAClBX,MAAO,qBACPO,MAAO,CAAC,aAAa,WAEjBK,EAAc,CAAEZ,MAAO,wCACvBa,EAAc,CAClBb,MAAO,mCACPO,MAAO,CAAC,mBAAmB,oBAC3BO,KAAM,KAEFC,EAA2B,gCAAoB,MAAO,CAAEf,MAAO,UAAY,MAAO,GAClFgB,EAAc,CAAEhB,MAAO,WACvBiB,EAAc,CAAEjB,MAAO,UACvBkB,EAAc,CAClB,eAAgB,YAChBC,GAAI,iBACJZ,MAAO,CAAC,MAAQ,UAEZa,EAAc,CAClBpB,MAAO,MACPO,MAAO,CAAC,MAAQ,QAAQ,YAAY,OAAO,cAAc,UAAU,cAAc,OAE7Ec,EAA2B,gCAAoB,MAAO,CAC1DrB,MAAO,OACPO,MAAO,CAAC,MAAQ,QAAQ,cAAc,sBACrC,uBAAwB,GACrBe,EAAc,CAAEtB,MAAO,wCACvBuB,EAAc,CAClBvB,MAAO,mCACP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,qBAAoB,EACpBtB,aAAY,EACZe,cAAa,EACba,YAAW,EACXC,cAAa,M,oCC5NnB,MAAMoF,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAAShI,IAAQ,CAAC,YAAY,qBAE1E,iB,oCCTf,W","file":"js/chunk-6a57ee8c.62647b0f.js","sourcesContent":["import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, createStaticVNode as _createStaticVNode, Fragment as _Fragment, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\n_pushScopeId(\"data-v-004ee42b\")\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"mb-2 mb-xl-1\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-body pt-1 pb-0\" }, \" Estimate your future Gas consumption, its cost and emissions output to assist with your budget projections. \")\n], -1)\nconst _hoisted_2 = { class: \"card p-4\" }\nconst _hoisted_3 = /*#__PURE__*/_createStaticVNode(\"
From
To
Uplift (Increase or Decrease)
Enter Location
\", 1)\nconst _hoisted_4 = { class: \"row col-md-12\" }\nconst _hoisted_5 = { class: \"col-md-2\" }\nconst _hoisted_6 = { class: \"col-md-2\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"col-md-3 p-3\" }, [\n /*#__PURE__*/_createElementVNode(\"input\", {\n style: {\"font-size\":\"small\"},\n class: \"card-label input_\",\n placeholder: \"Leave this blank without uplift\"\n })\n], -1)\nconst _hoisted_8 = { class: \"col-md-3 p-3\" }\nconst _hoisted_9 = { class: \"col-md-2\" }\nconst _hoisted_10 = {\n class: \"row col-md-12 pt-4\",\n style: {\"text-align\":\"center\"}\n}\nconst _hoisted_11 = { class: \"col-lg-4 col-md-4 col-sm-6 col-xs-12\" }\nconst _hoisted_12 = {\n class: \"dashboard-stat dashboard-stat-v2\",\n style: {\"background-color\":\"rgb(46, 49, 146)\"},\n href: \"#\"\n}\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"visual\" }, null, -1)\nconst _hoisted_14 = { class: \"details\" }\nconst _hoisted_15 = { class: \"number\" }\nconst _hoisted_16 = {\n \"data-counter\": \"counterup\",\n id: \"lblTotalConsum\",\n style: {\"color\":\"white\"}\n}\nconst _hoisted_17 = {\n class: \"p-3\",\n style: {\"color\":\"white\",\"font-size\":\"30px\",\"font-family\":\"'Arial'\",\"font-weight\":\"80\"}\n}\nconst _hoisted_18 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"desc\",\n style: {\"color\":\"white\",\"font-weight\":\"Normal !important\"}\n}, \" Consumption (kWh) \", -1)\nconst _hoisted_19 = { class: \"col-lg-4 col-md-4 col-sm-6 col-xs-12\" }\nconst _hoisted_20 = {\n class: \"dashboard-stat dashboard-stat-v2\",\n style: {\"background-color\":\"rgb(237, 28, 36)\"},\n href: \"#\"\n}\nconst _hoisted_21 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"visual\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"fa fa-shopping-cart fa-3x\" })\n], -1)\nconst _hoisted_22 = { class: \"details\" }\nconst _hoisted_23 = { class: \"number\" }\nconst _hoisted_24 = {\n \"data-counter\": \"counterup\",\n id: \"lblTotalCost\",\n style: {\"color\":\"white\"}\n}\nconst _hoisted_25 = {\n class: \"p-3\",\n style: {\"color\":\"white\",\"font-size\":\"30px\",\"font-family\":\"'Arial'\",\"font-weight\":\"80\"}\n}\nconst _hoisted_26 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"desc\",\n style: {\"color\":\"white\",\"font-weight\":\"Normal\"}\n}, \" Cost (£) \", -1)\nconst _hoisted_27 = { class: \"col-lg-4 col-md-4 col-sm-6 col-xs-12\" }\nconst _hoisted_28 = {\n class: \"dashboard-stat dashboard-stat-v2\",\n style: {\"background-color\":\"rgb(0, 134, 170)\"},\n href: \"#\"\n}\nconst _hoisted_29 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"visual\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"fas fa-chart-bar fa-3x\" })\n], -1)\nconst _hoisted_30 = { class: \"details\" }\nconst _hoisted_31 = { class: \"number\" }\nconst _hoisted_32 = {\n \"data-counter\": \"counterup\",\n id: \"lblTotalCo2\",\n style: {\"color\":\"white\"}\n}\nconst _hoisted_33 = {\n class: \"p-3\",\n style: {\"color\":\"white\",\"font-size\":\"30px\",\"font-family\":\"'Arial'\",\"font-weight\":\"80\"}\n}\nconst _hoisted_34 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"desc\",\n style: {\"color\":\"white\",\"font-weight\":\"normal\"}\n}, [\n /*#__PURE__*/_createTextVNode(\" CO\"),\n /*#__PURE__*/_createElementVNode(\"sub\", null, \"2\"),\n /*#__PURE__*/_createTextVNode(\" (kgCO\"),\n /*#__PURE__*/_createElementVNode(\"sub\", null, \"2\"),\n /*#__PURE__*/_createTextVNode(\"e) \")\n], -1)\nconst _hoisted_35 = { class: \"card mb-xl-1\" }\nconst _hoisted_36 = { class: \"card-body\" }\nconst _hoisted_37 = {\n class: \"d-flex overflow-auto h-20x\",\n style: {\"float\":\"right\"}\n}\nconst _hoisted_38 = { id: \"container\" }\nconst _hoisted_39 = { class: \"tabs\" }\nconst _hoisted_40 = { class: \"tab\" }\nconst _hoisted_41 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"tab-box card-label\",\n style: {\"cursor\":\"pointer\"}\n}, \" Graph(s) \", -1)\nconst _hoisted_42 = { class: \"tab\" }\nconst _hoisted_43 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"tab-box card-label\",\n style: {\"cursor\":\"pointer\"}\n}, \" Table \", -1)\nconst _hoisted_44 = { key: 0 }\nconst _hoisted_45 = {\n class: \"card mb-5 mb-xl-5\",\n id: \"kt_profile_details_view\"\n}\nconst _hoisted_46 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"card-header cursor-pointer\",\n style: {\"float\":\"right !important\"}\n}, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-title m-0 row col-md-5\" }, [\n /*#__PURE__*/_createElementVNode(\"h6\", { class: \"fw-bolder m-0\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"bi-bar-chart-fill text-danger p-3\" }),\n /*#__PURE__*/_createTextVNode(\" Projected Consumption, Cost and CO2 - Gas \")\n ])\n ])\n], -1)\nconst _hoisted_47 = { key: 0 }\nconst _hoisted_48 = { key: 1 }\nconst _hoisted_49 = { id: \"chart\" }\nconst _hoisted_50 = { key: 1 }\nconst _hoisted_51 = {\n key: 2,\n style: {},\n id: \"loadingDiv\"\n}\nconst _hoisted_52 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"loader\" }, \"Loading...\", -1)\nconst _hoisted_53 = [\n _hoisted_52\n]\n_popScopeId()\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_el_date_picker = _resolveComponent(\"el-date-picker\")!\n const _component_apexchart = _resolveComponent(\"apexchart\")!\n const _component_TableTab = _resolveComponent(\"TableTab\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _hoisted_1,\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_el_date_picker, {\n modelValue: _ctx.fromDate,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => (_ctx.fromDate = $event)),\n type: \"date\",\n format: \"DD/MM/YYYY\",\n \"disabled-date\": _ctx.disableDates\n }, null, 8, [\"modelValue\", \"disabled-date\"])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_el_date_picker, {\n modelValue: _ctx.toDate,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.toDate = $event)),\n type: \"date\",\n format: \"DD/MM/YYYY\",\n \"disabled-date\": _ctx.disableDates\n }, null, 8, [\"modelValue\", \"disabled-date\"])\n ]),\n _hoisted_7,\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"input\", {\n type: \"search\",\n style: {\"font-size\":\"small\"},\n class: \"card-label input_\",\n placeholder: \"Leave this blank to list all sites\",\n onKeyup: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.searchEvent && _ctx.searchEvent(...args)))\n }, null, 32)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"button\", {\n type: \"button\",\n class: \"btn btn-primary\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.getContent()))\n }, \" View \")\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"a\", _hoisted_12, [\n _hoisted_13,\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"span\", _hoisted_16, [\n _createElementVNode(\"h4\", _hoisted_17, _toDisplayString(_ctx.$filters.StringFormat(_ctx.sumKwh)), 1)\n ])\n ]),\n _hoisted_18\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"a\", _hoisted_20, [\n _hoisted_21,\n _createElementVNode(\"div\", _hoisted_22, [\n _createElementVNode(\"div\", _hoisted_23, [\n _createElementVNode(\"span\", _hoisted_24, [\n _createElementVNode(\"h4\", _hoisted_25, _toDisplayString(_ctx.$filters.StringFormat(_ctx.sumCost)), 1)\n ])\n ]),\n _hoisted_26\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_27, [\n _createElementVNode(\"a\", _hoisted_28, [\n _hoisted_29,\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"div\", _hoisted_31, [\n _createElementVNode(\"span\", _hoisted_32, [\n _createElementVNode(\"h4\", _hoisted_33, _toDisplayString(_ctx.$filters.StringFormat(_ctx.sumCo2)), 1)\n ])\n ]),\n _hoisted_34\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_35, [\n _createElementVNode(\"div\", _hoisted_36, [\n _createElementVNode(\"div\", _hoisted_37, [\n _createElementVNode(\"div\", _hoisted_38, [\n _createElementVNode(\"div\", _hoisted_39, [\n _createElementVNode(\"label\", _hoisted_40, [\n _createElementVNode(\"input\", {\n type: \"radio\",\n onClick: _cache[4] || (_cache[4] = \n//@ts-ignore\n(...args) => (_ctx.openAssetAddition && _ctx.openAssetAddition(...args))),\n name: \"tab-input\",\n class: \"tab-input\"\n }),\n _hoisted_41\n ]),\n _createElementVNode(\"label\", _hoisted_42, [\n _createElementVNode(\"input\", {\n type: \"radio\",\n onClick: _cache[5] || (_cache[5] = \n//@ts-ignore\n(...args) => (_ctx.openAssetRemoval && _ctx.openAssetRemoval(...args))),\n name: \"tab-input\",\n class: \"tab-input\"\n }),\n _hoisted_43\n ])\n ])\n ])\n ])\n ])\n ]),\n (_ctx.addition)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_44, [\n _createElementVNode(\"div\", _hoisted_45, [\n _hoisted_46,\n (!_ctx.isViewClicked)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_47, \" Please select date and click on the view to see the Graph \"))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_48, [\n _createElementVNode(\"div\", _hoisted_49, [\n _createVNode(_component_apexchart, {\n type: \"line\",\n height: \"350\",\n options: _ctx.eboptions.chartOptions,\n series: _ctx.series\n }, null, 8, [\"options\", \"series\"])\n ])\n ]))\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.removal)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_50, [\n _createVNode(_component_TableTab, {\n \"table-data\": _ctx.tableValues,\n \"table-header\": _ctx.OriginalTableHeaders,\n \"enable-items-per-page-dropdown\": true,\n selectedType: _ctx.colnames,\n pagetitle: _ctx.pageheader,\n downloadUrl: _ctx.downloadurl,\n downloadprops: _ctx.downloadprops\n }, _createSlots({ _: 2 }, [\n _renderList(_ctx.colnames, (slot) => {\n return {\n name: `cell-${slot}`,\n fn: _withCtx(({ row: customer }) => [\n _createTextVNode(_toDisplayString(customer[slot]), 1)\n ])\n }\n })\n ]), 1032, [\"table-data\", \"table-header\", \"selectedType\", \"pagetitle\", \"downloadUrl\", \"downloadprops\"])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_51, _hoisted_53))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","\nimport \"@/assets/sass/template.scss\";\nimport { defineComponent, onMounted, reactive, ref } from \"vue\";\nimport { setCurrentPageBreadcrumbs } from \"@/core/helpers/breadcrumb\";\nimport ApiService from \"@/core/services/ApiService\";\nimport store from \"@/store\";\nimport moment from \"moment\";\nimport TableTab from \"@/components/kt-datatable/TableTab.vue\";\n\nexport default defineComponent({\n name: \"DataTable\",\n\n components: {\n TableTab,\n },\n setup() {\n const pageheader = \"Projected Consumption, Cost and CO2 - Gas\";\n let accountId = store.getters.AccountId;\n const sumCo2 = ref(0.0);\n const sumCost = ref(0.0);\n const sumKwh = ref(0.0);\n const SiteDetails = ref();\n const tableValues = ref([]);\n const fromDate = ref(new Date());\n const toDate = ref(new Date());\n const addition = ref(false);\n const removal = ref(false);\n const isViewClicked = ref(false);\n const loading = ref(false);\n interface Tableheader {\n name: string;\n key: string;\n sortable: boolean;\n }\n\n const downloadurl = \"api/projectedconsumption/downloadGasFile\";\n const downloadprops = ref();\n const TableHeaders = ref>();\n const OriginalTableHeaders = ref>();\n const colnames = ref();\n const disableDates = (time) => {\n const currentDate = new Date();\n const selectedDate = new Date(\n time.getFullYear(),\n time.getMonth(),\n time.getDate()\n );\n return selectedDate < currentDate;\n };\n const series = reactive([{}]);\n const labels = ref([\"\"]);\n const eboptions = {\n chartOptions: {\n chart: {\n toolbar: {\n show: false,\n },\n height: 350,\n type: \"line\",\n },\n stroke: {\n show: true,\n lineCap: \"butt\",\n colors: undefined,\n width: 3,\n dashArray: 0,\n curve: \"smooth\",\n },\n title: {\n text: \"\",\n },\n dataLabels: {\n enabled: false,\n //enabledOnSeries: [1],\n },\n xaxis: {\n type: \"datetime\",\n labels: {\n datetimeUTC: false,\n formatter: function (val, timestamp) {\n return moment(new Date(timestamp)).format(\"MMM YYYY\");\n },\n style: {\n colors: \"#9899ac\",\n },\n },\n\n axisBorder: {\n show: false,\n },\n axisTicks: {\n show: false,\n },\n },\n yaxis: [\n {\n title: {\n text: \"Consumption (kWh) and CO₂ (kgCO₂e)\",\n },\n },\n {\n opposite: true,\n title: {\n text: \" Cost (£) \",\n },\n },\n ],\n },\n };\n onMounted(() => {\n setCurrentPageBreadcrumbs(\" Projected Consumption, Cost and CO2 - Gas\", [\n \"NA\",\n ]);\n\n addition.value = false;\n removal.value = false;\n });\n\n async function getContent() {\n if (removal.value != true) {\n addition.value = true;\n }\n loading.value = true;\n const fromdateval: any = fromDate.value;\n const toDateval: any = toDate.value;\n\n let domainName = store.getters.DomainName.toLowerCase();\n const accountInfo: any = {\n accountid: accountId,\n fromdate: moment(fromdateval).format(\"YYYY-MM-DD 00:00:00\"),\n todate: moment(toDateval).format(\"YYYY-MM-DD 00:00:00\"),\n // fromdate :'2017-01-01 00:00:00',\n // todate :'2021-12-01 00:00:00',\n locations: 0,\n uplift: 0,\n DomainName: domainName,\n };\n downloadprops.value = accountInfo;\n isViewClicked.value = true;\n ApiService.post(\"api/projectedconsumption/pc_reportGas\", accountInfo)\n .then((resp) => {\n series.splice(0);\n sumCo2.value = resp.data.summarydetails.co2;\n sumCost.value = resp.data.summarydetails.cost;\n sumKwh.value = resp.data.summarydetails.usage;\n\n //SiteDetails.value = resp.data.siteDetails;\n TableHeaders.value = resp.data.detailsheader.map((a) => ({\n name: a.header,\n key: a.header,\n sortable: true,\n }));\n colnames.value = resp.data.detailsheader.map((a) => a.header);\n OriginalTableHeaders.value = resp.data.detailsheader.map((a) => ({\n name: a.header,\n key: a.header,\n sortable: true,\n }));\n\n tableValues.value = resp.data.dsiteDetails.map((a) => a);\n\n labels.value = resp.data.summary.map((a) => a.yearsmonthsum);\n series.push({\n name: \"Consumption KWh and co2 (KgCox)\",\n type: \"column\",\n data: resp.data.summary.map((a) => [\n new Date(`${a.years}-${a.monthid}-01`),\n a.usage,\n ]),\n });\n series.push({\n name: \"Co2 (Kgco2)\",\n type: \"line\",\n data: resp.data.summary.map((a) => [\n new Date(`${a.years}-${a.monthid}-01`),\n a.co2,\n ]),\n });\n series.push({\n name: \"Cost \",\n type: \"line\",\n data: resp.data.summary.map((a) => [\n new Date(`${a.years}-${a.monthid}-01`),\n a.cost,\n ]),\n });\n loading.value = false;\n })\n .catch((a) => {\n loading.value = false;\n console.log(\"Api Log Error\", a);\n });\n }\n\n function openAssetAddition() {\n addition.value = true;\n removal.value = false;\n }\n function openAssetRemoval() {\n addition.value = false;\n removal.value = true;\n }\n\n return {\n pageheader,\n labels,\n series,\n getContent,\n SiteDetails,\n TableHeaders,\n sumCo2,\n sumCost,\n sumKwh,\n colnames,\n fromDate,\n toDate,\n openAssetAddition,\n openAssetRemoval,\n addition,\n removal,\n tableValues,\n eboptions,\n loading,\n OriginalTableHeaders,\n disableDates,\n isViewClicked,\n downloadurl,\n downloadprops,\n };\n },\n});\n","import { render } from \"./CZProjectedConsumptionCo2Gas.vue?vue&type=template&id=004ee42b&scoped=true&ts=true\"\nimport script from \"./CZProjectedConsumptionCo2Gas.vue?vue&type=script&lang=ts\"\nexport * from \"./CZProjectedConsumptionCo2Gas.vue?vue&type=script&lang=ts\"\n\nimport \"./CZProjectedConsumptionCo2Gas.vue?vue&type=style&index=0&id=004ee42b&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Develop\\\\WorkSpace\\\\Codebase\\\\EICPartnershipSVN\\\\UI_EICPartnership\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-004ee42b\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./CZProjectedConsumptionCo2Gas.vue?vue&type=style&index=0&id=004ee42b&scoped=true&lang=css\""],"sourceRoot":""}