{"version":3,"sources":["webpack:///./src/views/CZFlexibleProcurement/CZOpenVolume.vue?eb77","webpack:///./src/views/CZFlexibleProcurement/CZOpenVolume.vue","webpack:///./src/views/CZFlexibleProcurement/CZOpenVolume.vue?8aa3","webpack:///./src/core/helpers/breadcrumb.ts"],"names":["_hoisted_1","class","id","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","render","_ctx","_cache","$props","$setup","$data","$options","_component_apexchart","loading","ref","type","height","options","chartOptions","series","name","components","setup","getVolume","store","getters","layoutConfig","chart","stacked","plotOptions","bar","borderRadius","columnWidth","dataLabels","enabled","xaxis","labels","datetimeUTC","formatter","val","timestamp","Date","format","style","colors","axisBorder","show","axisTicks","yaxis","title","text","fontSize","legend","floating","value","AccountId","current","FPreportName","FPscenarioName","accountInfo","clientId","productId","reportId","scenarioId","iscurrent","ApiService","post","then","data","splice","dayCostList","response","push","map","a","date","Fixed","catch","console","log","__exports__","setCurrentPageBreadcrumbs","pageTitle","breadcrumbs","dispatch","SET_BREADCRUMB_ACTION","pageBreadcrumbPath","setCurrentPageTitle"],"mappings":"yIAEMA,EAAa,CACjBC,MAAO,oBACPC,GAAI,2BAEAC,EAA0B,gCAAoB,MAAO,CAAEF,MAAO,8BAAgC,CACrF,gCAAoB,MAAO,CAAEA,MAAO,kBAAoB,CACtD,gCAAoB,KAAM,CAAEA,MAAO,iBAAmB,0BAEnE,GACEG,EAAa,CAAEH,MAAO,iBACtBI,EAAa,CAAEJ,MAAO,mBACtBK,EAAa,CAAEL,MAAO,YACtBM,EAAa,CAAEL,GAAI,SACnBM,EAA0B,gCAAoB,MAAO,CAAEP,MAAO,8BAAgC,CACrF,gCAAoB,MAAO,CAAEA,MAAO,8BAC/C,GAEG,SAASQ,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAuB,8BAAkB,aAE/C,OAAQ,yBAAc,gCAAoB,MAAO,CAC/Cf,MAAO,4BAAgB,CAAE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AC/B,kCAEEgC,EAAiBlC,EAAA,KAAMC,QAAQC,aACjC,oCAGIiC,EAAmB,CACvBC,SAAUL,EACVM,UAAW,EACXC,SAAUL,EACVM,WAAYL,EACZM,UAAWR,GAEbS,EAAA,KAAWC,KAAK,wCAAyCP,GACtDQ,MAAK,SAAO,G,IAAEC,EAAI,O,uHAEA,OADjBjD,EAAOkD,OAAO,GACG,GAAMD,EAAKE,a,cAAtBC,EAAW,SAEjBpD,EAAOqD,KAAK,CACVpD,KAAM,YACNgD,KAAMG,EAASE,KAAI,SAACC,GAAM,OAAC,IAAIjC,KAAKiC,EAAEC,MAAOD,EAAEE,YAEjDzD,EAAOqD,KAAK,CACVpD,KAAM,eACNgD,KAAMG,EAASE,KAAI,SAACC,GAAM,OAAC,IAAIjC,KAAKiC,EAAEC,MAAOD,EAAErB,eAEjDxC,EAAQyC,OAAQ,E,cAEjBuB,OAAM,SAACH,GACN7D,EAAQyC,OAAQ,EAChBwB,QAAQC,IAAI,gBAAiBL,MAGnC,OA5CAvD,EAAOkD,OAAO,GA4CP,CACLlD,OAAM,EACND,aAAY,EACZL,QAAO,M,qBC3Hb,MAAMmE,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS3E,KAErD,gB,kCCPf,gGAQa4E,EAA4B,SACvCC,EACAC,GAEA,OAAMC,SAAS,OAAQC,sBAAuB,CAC5CpC,MAAOiC,EACPI,mBAAoBH,KAQXI,EAAsB,SAACtC,GAClC,OAAMmC,SAAS,OAAQC,sBAAuB,CAC5CpC,MAAOA","file":"js/chunk-a33e3560.e7246b35.js","sourcesContent":["import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"card mb-5 mb-xl-5\",\n id: \"kt_profile_details_view\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-header cursor-pointer\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"card-title m-0\" }, [\n /*#__PURE__*/_createElementVNode(\"h3\", { class: \"fw-bolder m-0\" }, \"Open Closed Volume\")\n ])\n], -1)\nconst _hoisted_3 = { class: \"card-body p-9\" }\nconst _hoisted_4 = { class: \"overlay-wrapper\" }\nconst _hoisted_5 = { class: \"row mb-7\" }\nconst _hoisted_6 = { id: \"chart\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"overlay-layer bg-dark-o-25\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"spinner spinner-primary\" })\n], -1)\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\", {\n class: _normalizeClass({ 'overlay overlay-block': _ctx.loading })\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_apexchart, {\n ref: \"chart\",\n type: \"bar\",\n height: \"350\",\n options: _ctx.chartOptions,\n series: _ctx.series\n }, null, 8, [\"options\", \"series\"])\n ])\n ])\n ]),\n _hoisted_7\n ])\n ])\n ], 2))\n}","\nimport { defineComponent, onMounted, reactive, ref, watch } from \"vue\";\nimport { setCurrentPageBreadcrumbs } from \"@/core/helpers/breadcrumb\";\nimport ApiService from \"@/core/services/ApiService\";\nimport moment from \"moment\";\nimport store from \"@/store\";\n\nexport default defineComponent({\n name: \"CZOpenVolume\",\n\n components: {},\n setup() {\n onMounted(() => {\n setCurrentPageBreadcrumbs(\"Open Closed Volume\", [\"Flexible Procurement\"]);\n getVolume();\n });\n const loading = ref(false);\n\n /**\n *@description For auto refreshing the page on selection change\n */\n watch(\n () => [\n store.getters.layoutConfig(\"flexibleProcurement.scenarioName\"),\n store.getters.layoutConfig(\"flexibleProcurement.reportName\"),\n store.getters.layoutConfig(\"flexibleProcurement.current\"),\n ],\n function () {\n getVolume();\n }\n );\n\n const chartOptions = {\n chart: {\n type: \"bar\",\n height: 350,\n stacked: true,\n },\n plotOptions: {\n bar: {\n borderRadius: 1,\n columnWidth: 15 + \"%\",\n },\n },\n dataLabels: {\n enabled: false,\n },\n xaxis: {\n type: \"datetime\",\n labels: {\n datetimeUTC: false,\n formatter: function (val, timestamp) {\n return moment(new Date(timestamp)).format(\"MMM\");\n },\n style: {\n colors: \"#9899ac\",\n },\n },\n\n axisBorder: {\n show: true,\n },\n axisTicks: {\n show: true,\n },\n },\n yaxis: {\n title: {\n text: \"MWh\",\n style: {\n fontSize: \"15px\",\n },\n },\n },\n legend: {\n floating: false,\n fontSize: \"20px\",\n },\n };\n\n const series = reactive([{}]);\n series.splice(0);\n\n /**\n *@description For getting open vs closed volume report\n */\n function getVolume() {\n loading.value = true;\n\n let AccountId = store.getters.AccountId;\n let current = store.getters.layoutConfig(\"flexibleProcurement.current\");\n let FPreportName = store.getters.layoutConfig(\n \"flexibleProcurement.reportName\"\n );\n let FPscenarioName = store.getters.layoutConfig(\n \"flexibleProcurement.scenarioName\"\n );\n\n const accountInfo: any = {\n clientId: AccountId,\n productId: 4,\n reportId: FPreportName,\n scenarioId: FPscenarioName,\n iscurrent: current,\n };\n ApiService.post(\"api/FlexProcurement/getFlexProcrement\", accountInfo)\n .then(async ({ data }) => {\n series.splice(0);\n const response = await data.dayCostList;\n\n series.push({\n name: \"Fixed MWh\",\n data: response.map((a) => [new Date(a.date), a.Fixed]),\n });\n series.push({\n name: \"Floating MWh\",\n data: response.map((a) => [new Date(a.date), a.floating]),\n });\n loading.value = false;\n })\n .catch((a) => {\n loading.value = false;\n console.log(\"Api Log Error\", a);\n });\n }\n return {\n series,\n chartOptions,\n loading,\n };\n },\n});\n","import { render } from \"./CZOpenVolume.vue?vue&type=template&id=640d7130&ts=true\"\nimport script from \"./CZOpenVolume.vue?vue&type=script&lang=ts\"\nexport * from \"./CZOpenVolume.vue?vue&type=script&lang=ts\"\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]])\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":""}