{"version":3,"sources":["webpack:///./src/views/CZAssetRegister/CZGraphs.vue?23c1","webpack:///./src/views/CZAssetRegister/CZGraphs.vue?79a4","webpack:///./src/views/CZAssetRegister/CZGraphs.vue","webpack:///./src/views/CZAssetRegister/CZGraphs.vue?c6a0","webpack:///./src/core/helpers/breadcrumb.ts"],"names":["_hoisted_1","class","id","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","role","style","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","render","_ctx","_cache","$props","$setup","$data","$options","_component_apexchart","chartType","onClick","$event","changeChartType","title","width","type","ebchartType","options","eboptions","series","elecSeries","changeGasChartType","gaschartType","gasoptions","gasSeries","name","components","setup","accountId","store","getters","AccountId","value","getContent","accountInfo","accountid","DomainName","toLowerCase","ApiService","post","then","data","response","elecLabels","i","length","elecSum","push","supplier_name","total","labels","gasLabels","gasSum","catch","a","console","log","plotOptions","pie","expandOnClick","chart","toolbar","show","offsetX","offsetY","tools","download","selection","zoom","zoomin","zoomout","pan","customIcons","export","csv","filename","undefined","svg","png","autoSelected","dataLabels","enabled","enabledOnSeries","textAnchor","distributed","fontSize","fontFamily","fontWeight","colors","fill","legend","formatter","val","opts","w","globals","seriesIndex","responsive","breakpoint","position","__exports__","setCurrentPageBreadcrumbs","pageTitle","breadcrumbs","dispatch","SET_BREADCRUMB_ACTION","pageBreadcrumbPath","setCurrentPageTitle"],"mappings":"2IAAA,W,yDCEA,yBAAa,mBACb,IAAMA,EAAa,CACjBC,MAAO,oBACPC,GAAI,2BAEAC,EAA0B,+BAAmB,uUAAoV,GACjYC,EAAa,CAAEH,MAAO,iBACtBI,EAAa,CAAEJ,MAAO,YACtBK,EAA0B,gCAAoB,MAAO,CAAEL,MAAO,oBAAsB,MAAO,G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,EACTK,WAAU,EACVD,aAAY,EACZN,YAAW,EACXJ,gBAAe,EACfS,mBAAkB,EAClBD,WAAU,EACVI,UAAS,M,iCCxOf,MAAM4E,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASnG,GAAQ,CAAC,YAAY,qBAE1E,gB,kCCTf,gGAQaoG,EAA4B,SACvCC,EACAC,GAEA,OAAMC,SAAS,OAAQC,sBAAuB,CAC5C5F,MAAOyF,EACPI,mBAAoBH,KAQXI,EAAsB,SAAC9F,GAClC,OAAM2F,SAAS,OAAQC,sBAAuB,CAC5C5F,MAAOA","file":"js/chunk-add9a6ea.338fa1bf.js","sourcesContent":["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!./CZGraphs.vue?vue&type=style&index=0&id=04362898&scoped=true&lang=css\"","import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, createStaticVNode as _createStaticVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\n_pushScopeId(\"data-v-04362898\")\nconst _hoisted_1 = {\n class: \"card mb-5 mb-xl-5\",\n id: \"kt_profile_details_view\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createStaticVNode(\"

Electricity

Gas

\", 1)\nconst _hoisted_3 = { class: \"card-body p-9\" }\nconst _hoisted_4 = { class: \"row mb-7\" }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-toolbar m-0\" }, null, -1)\nconst _hoisted_6 = { class: \"row col-md-12\" }\nconst _hoisted_7 = {\n id: \"chart\",\n class: \"row col-md-6\"\n}\nconst _hoisted_8 = {\n class: \"\\n nav nav-stretch\\n fs-5\\n fw-bold\\n nav-line-tabs nav-line-tabs-2x\\n border-transparent\\n \",\n role: \"tablist\",\n style: {\"float\":\"right\"}\n}\nconst _hoisted_9 = {\n class: \"nav-item\",\n role: \"presentation\",\n style: {\"float\":\"right\"}\n}\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"fa fa-chart-pie fa-lg fa-border-none\",\n \"aria-hidden\": \"true\"\n}, null, -1)\nconst _hoisted_11 = [\n _hoisted_10\n]\nconst _hoisted_12 = { class: \"nav-item\" }\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"fa fa-undo fa-lg\",\n \"aria-hidden\": \"true\"\n}, null, -1)\nconst _hoisted_14 = [\n _hoisted_13\n]\nconst _hoisted_15 = {\n id: \"chart1\",\n class: \"col-md-6\"\n}\nconst _hoisted_16 = {\n id: \"chart\",\n class: \"col-md-6\"\n}\nconst _hoisted_17 = {\n class: \"\\n nav nav-stretch\\n fs-5\\n fw-bold\\n nav-line-tabs nav-line-tabs-2x\\n border-transparent\\n \",\n role: \"tablist\"\n}\nconst _hoisted_18 = {\n class: \"nav-item\",\n role: \"presentation\"\n}\nconst _hoisted_19 = /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"fa fa-chart-pie fa-lg fa-border-none\",\n \"aria-hidden\": \"true\"\n}, null, -1)\nconst _hoisted_20 = [\n _hoisted_19\n]\nconst _hoisted_21 = { class: \"nav-item\" }\nconst _hoisted_22 = /*#__PURE__*/_createElementVNode(\"i\", {\n class: \"fa fa-undo fa-lg\",\n \"aria-hidden\": \"true\"\n}, null, -1)\nconst _hoisted_23 = [\n _hoisted_22\n]\nconst _hoisted_24 = {\n id: \"chart1\",\n class: \"col-md-6\"\n}\n_popScopeId()\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_apexchart = _resolveComponent(\"apexchart\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createTextVNode(_toDisplayString(_ctx.chartType) + \" \", 1),\n _hoisted_5,\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"ul\", _hoisted_8, [\n _createElementVNode(\"li\", _hoisted_9, [\n _createElementVNode(\"button\", {\n id: \"kt_referrals_year_tab\",\n \"data-bs-toggle\": \"tab\",\n role: \"tab\",\n class: \"nav-link text-active-primary\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.changeChartType('pie'))),\n title: \"Pie chart\"\n }, _hoisted_11)\n ]),\n _createElementVNode(\"li\", _hoisted_12, [\n _createElementVNode(\"button\", {\n id: \"kt_referrals_year_tab\",\n role: \"tab\",\n \"data-bs-toggle\": \"tab\",\n class: \"nav-link text-active-primary\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.changeChartType('donut'))),\n title: \"Rest chart\"\n }, _hoisted_14)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _createVNode(_component_apexchart, {\n width: \"500\",\n type: _ctx.ebchartType,\n options: _ctx.eboptions,\n series: _ctx.elecSeries\n }, null, 8, [\"type\", \"options\", \"series\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"ul\", _hoisted_17, [\n _createElementVNode(\"li\", _hoisted_18, [\n _createElementVNode(\"button\", {\n id: \"kt_referrals_year_tab\",\n \"data-bs-toggle\": \"tab\",\n role: \"tab\",\n class: \"nav-link text-active-primary\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.changeGasChartType('pie'))),\n title: \"Pie chart\"\n }, _hoisted_20)\n ]),\n _createElementVNode(\"li\", _hoisted_21, [\n _createElementVNode(\"button\", {\n id: \"kt_referrals_year_tab\",\n role: \"tab\",\n \"data-bs-toggle\": \"tab\",\n class: \"nav-link text-active-primary\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.changeGasChartType('donut'))),\n title: \"Reset chart\"\n }, _hoisted_23)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createVNode(_component_apexchart, {\n width: \"500\",\n type: _ctx.gaschartType,\n options: _ctx.gasoptions,\n series: _ctx.gasSeries\n }, null, 8, [\"type\", \"options\", \"series\"])\n ])\n ])\n ])\n ])\n ])\n ]))\n}","\nimport ApiService from \"@/core/services/ApiService\";\nimport { defineComponent, onMounted, ref } from \"vue\";\n//import MixedWidget4 from \"@/components/widgets/mixed/Widget7.vue\";\nimport store from \"@/store\";\nimport { setCurrentPageBreadcrumbs } from \"@/core/helpers/breadcrumb\";\nimport * as Yup from \"yup\";\nimport { AnyObject } from \"yup/lib/object\";\n\nexport default defineComponent({\n name: \"CZGraph\",\n\n components: {},\n setup() {\n let accountId = store.getters.AccountId;\n const elecSeries = ref([]) as any;\n const eboptions = ref([]) as any;\n const gasSeries = ref([]) as any;\n const gasoptions = ref([]) as any;\n const ebchartType = ref(\"pie\");\n const gaschartType = ref(\"pie\");\n\n function changeChartType(type) {\n ebchartType.value = type;\n }\n\n function changeGasChartType(type) {\n gaschartType.value = type;\n }\n\n onMounted(() => {\n setCurrentPageBreadcrumbs(\"Asset Register - Supplier Breakdown\", [\n \"Graphs(s)\",\n ]);\n\n eboptions.value = {\n plotOptions: {\n pie: {\n expandOnClick: false,\n },\n },\n chart: {\n toolbar: {\n show: true,\n offsetX: -390,\n offsetY: -20,\n tools: {\n download: true,\n selection: true,\n zoom: true,\n zoomin: true,\n zoomout: true,\n pan: true,\n customIcons: [],\n },\n export: {\n csv: {\n filename: undefined,\n },\n svg: {\n filename: undefined,\n },\n png: {\n filename: undefined,\n },\n },\n autoSelected: \"zoom\",\n },\n width: 380,\n type: ebchartType,\n },\n dataLabels: {\n enabled: true,\n enabledOnSeries: undefined,\n textAnchor: \"bottom\",\n distributed: false,\n offsetX: 0,\n offsetY: 0,\n style: {\n fontSize: \"14px\",\n fontFamily: \"Helvetica, Arial, sans-serif\",\n fontWeight: \"bold\",\n colors: undefined,\n },\n },\n fill: {\n type: \"gradient\",\n },\n legend: {\n formatter: function (val, opts) {\n //return val + \" - \" + opts.w.globals.series[opts.seriesIndex];\n let ival = opts.w.globals.series[opts.seriesIndex] / 10;\n return val;\n },\n },\n responsive: [\n {\n breakpoint: 480,\n options: {\n chart: {\n width: 300,\n },\n legend: {\n position: \"bottom\",\n },\n },\n },\n ],\n };\n\n gasoptions.value = {\n plotOptions: {\n pie: {\n expandOnClick: false,\n },\n },\n chart: {\n toolbar: {\n show: true,\n offsetX: -390,\n offsetY: -20,\n tools: {\n download: true,\n selection: true,\n zoom: true,\n zoomin: true,\n zoomout: true,\n pan: true,\n customIcons: [],\n },\n export: {\n csv: {\n filename: undefined,\n },\n svg: {\n filename: undefined,\n },\n png: {\n filename: undefined,\n },\n },\n autoSelected: \"zoom\",\n },\n width: 380,\n type: gaschartType,\n },\n dataLabels: {\n enabled: true,\n enabledOnSeries: undefined,\n textAnchor: \"bottom\",\n distributed: false,\n offsetX: 0,\n offsetY: 0,\n style: {\n fontSize: \"14px\",\n fontFamily: \"Helvetica, Arial, sans-serif\",\n fontWeight: \"bold\",\n colors: undefined,\n },\n },\n fill: {\n type: \"gradient\",\n },\n legend: {\n formatter: function (val, opts) {\n //return val + \" - \" + opts.w.globals.series[opts.seriesIndex];\n let ival = opts.w.globals.series[opts.seriesIndex] / 10;\n return val;\n },\n },\n responsive: [\n {\n breakpoint: 480,\n options: {\n chart: {\n width: 300,\n },\n legend: {\n position: \"bottom\",\n },\n },\n },\n ],\n };\n });\n\n async function getContent() {\n const accountInfo: any = {\n accountid: accountId,\n DomainName: store.getters.DomainName.toLowerCase(),\n };\n\n //alert (JSON.stringify(accountInfo))\n\n ApiService.post(\n \"api/AssetRegisterSupplier/assetRegisterSupplier\",\n accountInfo\n )\n .then(async ({ data }) => {\n await data;\n //alert(JSON.stringify(data));\n const response = data;\n //if (response[\"summelec\"].length != 0) {\n let elecSum;\n const elecLabels = [] as any;\n for (let i = 0; i < response[\"summelec\"].length; i++) {\n elecSum = response[\"summelec\"][i];\n elecLabels.push(elecSum.supplier_name + \": \" + elecSum.total);\n elecSeries.value.push(elecSum.total * 10);\n }\n eboptions.value = { labels: elecLabels };\n //}\n\n //if (response[\"summgas\"].length != 0) {\n let gasSum;\n const gasLabels = [] as any;\n for (let i = 0; i < response[\"summgas\"].length; i++) {\n gasSum = response[\"summgas\"][i];\n gasLabels.push(gasSum.supplier_name + \": \" + gasSum.total);\n gasSeries.value.push(gasSum.total * 10);\n }\n gasoptions.value = { labels: gasLabels };\n //}\n })\n .catch((a) => {\n console.log(\"Api Log Error\", a);\n });\n }\n\n getContent();\n\n return {\n eboptions,\n gasoptions,\n gaschartType,\n ebchartType,\n changeChartType,\n changeGasChartType,\n elecSeries,\n gasSeries,\n };\n },\n});\n","import { render } from \"./CZGraphs.vue?vue&type=template&id=04362898&scoped=true&ts=true\"\nimport script from \"./CZGraphs.vue?vue&type=script&lang=ts\"\nexport * from \"./CZGraphs.vue?vue&type=script&lang=ts\"\n\nimport \"./CZGraphs.vue?vue&type=style&index=0&id=04362898&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-04362898\"]])\n\nexport default __exports__","import store from \"@/store\";\nimport { Actions } from \"@/store/enums/StoreEnums\";\n\n/**\n * Sets current page breadcrumbs\n * @param {string} pageTitle Current page title\n * @param {Array} breadcrumbs Current page breadcrumbs\n */\nexport const setCurrentPageBreadcrumbs = (\n pageTitle: string,\n breadcrumbs: Array\n): void => {\n store.dispatch(Actions.SET_BREADCRUMB_ACTION, {\n title: pageTitle,\n pageBreadcrumbPath: breadcrumbs,\n });\n};\n\n/**\n * Sets current page breadcrumbs\n * @param {string} title Current page title name\n */\nexport const setCurrentPageTitle = (title: string): void => {\n store.dispatch(Actions.SET_BREADCRUMB_ACTION, {\n title: title,\n });\n};\n"],"sourceRoot":""}