(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["cc-resources-cc-resources-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.html":
/*!**********************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.html ***!
  \**********************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<p-breadcrumb *ngIf=\"breadcrumb\" [model]=\"breadcrumb\" (onItemClick)=\"handleBreadcrumbClick($event)\"></p-breadcrumb>\n<div *ngIf=\"resourceDetailsFav\">\n<div class=\"p-grid p-align-center w-100-p mt-5\">\n  <div class=\"p-col-fixed width-90\">\n    Filters\n  </div>\n  <div *ngFor=\"let entry of filterDisplayData | keyvalue\" class=\"p-col-fixed min-width-180\">\n    <span class=\"ui-float-label w-100-p\">\n    <p-multiSelect id=\"entryId\" styleClass=\"w-100-p\" [options]=\"entry.value\" [(ngModel)]=\"selectedFilters[entry.key]\" [defaultLabel]=\"''\"></p-multiSelect>\n    <label for=\"entryId\">{{entry.key}}</label>\n    </span>\n  </div>\n  <div class=\"p-col-fixed\">\n    <button type=\"button\" pButton class=\"ui-btn-primary\" label=\"Apply\" (click)=\"applyFilter()\"></button>\n  </div>\n</div>\n<div class=\"p-grid p-align-center w-100-p\">\n  <div class=\"p-col-fixed width-90\">\n    Breakdown by\n  </div>\n  <div class=\"p-col-fixed ml-1\">\n    <p-selectButton [options]=\"breakDownOpt\" [(ngModel)]=\"chooseBreakDown\" (onChange)=\"onChangeBreakdownBy($event)\"></p-selectButton>\n  </div>\n</div>\n</div>\n<app-common-iframe #commonIFrame [dataForIframe]=\"dataForIframe\" (dataFromIframe)=\"getIFrameDAta($event)\" iframeHeight=\"calc(100vh - 150px)\"></app-common-iframe>\n");

/***/ }),

/***/ "./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.scss":
/*!********************************************************************************!*\
  !*** ./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.scss ***!
  \********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".p-breadcrumb a {\n  cursor: pointer;\n}");

/***/ }),

/***/ "./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.ts":
/*!******************************************************************************!*\
  !*** ./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.ts ***!
  \******************************************************************************/
/*! exports provided: CcResourcesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CcResourcesComponent", function() { return CcResourcesComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var _services_cc_resources_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./services/cc-resources.service */ "./src/app/pages/home/cloud-cost/cc-resources/services/cc-resources.service.ts");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _services_cc_resources_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./services/cc-resources.state */ "./src/app/pages/home/cloud-cost/cc-resources/services/cc-resources.state.ts");
/* harmony import */ var src_app_shared_common_iframe_service_common_iframe_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/common-iframe/service/common-iframe.model */ "./src/app/shared/common-iframe/service/common-iframe.model.ts");
/* harmony import */ var src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/time-bar/service/time-bar.service */ "./src/app/shared/time-bar/service/time-bar.service.ts");








let CcResourcesComponent = class CcResourcesComponent {
    constructor(_sessionService, _cloudCostExplorerService, timebarService) {
        this._sessionService = _sessionService;
        this._cloudCostExplorerService = _cloudCostExplorerService;
        this.timebarService = timebarService;
        this.resourceDetailsFav = true;
        this.filterDisplayData = {};
        this.selectedFilters = {};
        this.favName = "CLOUD_COST_RESOURCE_NAME";
    }
    ngOnInit() {
        var _a;
        const me = this;
        me.breakDownOpt = [
            { label: 'Expense', value: 'CLOUD_COST_RESOURCE_NAME' },
            { label: 'Resource Count', value: 'CLOUD_COST_RESOURCE_COUNT' }
        ];
        me.chooseBreakDown = "CLOUD_COST_RESOURCE_NAME";
        me.getListOfAllFilter();
        let ccvGctx = [];
        const routerData = (_a = history === null || history === void 0 ? void 0 : history.state) === null || _a === void 0 ? void 0 : _a.data;
        if (routerData) {
            Object.keys(routerData.ccvGctx).forEach((key) => {
                ccvGctx.push({
                    subject: {
                        tags: [{ key: key, value: routerData.ccvGctx[key], mode: 1 }],
                    },
                });
                me.selectedFilters[me.convertToTitle(key)] = [routerData.ccvGctx[key]];
            });
            if (routerData === null || routerData === void 0 ? void 0 : routerData.favName)
                me.favName = routerData === null || routerData === void 0 ? void 0 : routerData.favName;
        }
        me.loadDataForIframe(me.favName, "/dashboards", true, src_app_shared_common_iframe_service_common_iframe_model__WEBPACK_IMPORTED_MODULE_6__["Operation"].LOAD_FAV_PARAM, ccvGctx);
    }
    onChangeBreakdownBy(event) {
        const me = this;
        me.applyFilter(event.value, true);
    }
    applyFilter(favName, favLoad = false) {
        const me = this;
        let ccvGctx = [];
        Object.keys(me.selectedFilters).forEach((key) => {
            me.selectedFilters[key].forEach(item => {
                ccvGctx.push({
                    subject: {
                        tags: [{ key: me.toSnakeCase(key), value: item, mode: 1 }],
                    },
                });
            });
        });
        me.loadDataForIframe(favName !== null && favName !== void 0 ? favName : me.favName, "/dashboards", favLoad, src_app_shared_common_iframe_service_common_iframe_model__WEBPACK_IMPORTED_MODULE_6__["Operation"].LOAD_FAV_PARAM, ccvGctx);
    }
    loadDataForIframe(favName, favPath, favLoad = false, dataType, ccvGctx, selectedTime = null, isPaused = false) {
        var _a, _b;
        let value = this.timebarService.getValue();
        this._cachedTimebarValue = value;
        this.getListOfAllFilter();
        this.dataForIframe = {
            data: {
                data_type: dataType !== null && dataType !== void 0 ? dataType : src_app_shared_common_iframe_service_common_iframe_model__WEBPACK_IMPORTED_MODULE_6__["Operation"].Load_Fav_and_Time,
                data_Param: ["DASHBOARD", favName, favPath],
                id: (_a = selectedTime === null || selectedTime === void 0 ? void 0 : selectedTime.id) !== null && _a !== void 0 ? _a : this.timebarService.getValue().timePeriod.selected.id,
                label: (_b = selectedTime === null || selectedTime === void 0 ? void 0 : selectedTime.label) !== null && _b !== void 0 ? _b : this.timebarService.getValue().timePeriod.selected.label,
                ccvGctx: ccvGctx,
                favLoad: favLoad,
                isPaused: isPaused
            }
        };
        value.running = this._sessionService.session.testRun.running;
        this.timebarService.setValue(value);
        localStorage.setItem('iframeTime', JSON.stringify(this.dataForIframe.data));
    }
    getListOfAllFilter() {
        var _a, _b, _c;
        const me = this;
        let globalTime;
        if (me._cachedTimebarValue) {
            globalTime = {
                st: me._cachedTimebarValue.time.frameStart.value,
                et: me._cachedTimebarValue.time.frameEnd.value
            };
        }
        else if ((_b = (_a = me._sessionService) === null || _a === void 0 ? void 0 : _a.durationObj) === null || _b === void 0 ? void 0 : _b.time) {
            globalTime = {
                st: me._sessionService.durationObj.time.frameStart.value,
                et: me._sessionService.durationObj.time.frameEnd.value
            };
        }
        else if ((_c = me._sessionService) === null || _c === void 0 ? void 0 : _c.durationObj) {
            globalTime = {
                st: me._sessionService.durationObj.st,
                et: me._sessionService.durationObj.et
            };
        }
        const path = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].api.dashboard.dbQuery.endpoint;
        const payload = {
            dbSourceCtx: {
                connectionUrl: "127.0.0.1:5432/alert_work?username=cavisson&password=''",
                databaseQuery: globalTime ? `SELECT DISTINCT data_source_name, service_name, region, k8s_node,k8s_service, k8s_namespace, type FROM expenses where expenses.date >= ${globalTime.st} and expenses.date < ${globalTime.et};` : "SELECT DISTINCT data_source_name, service_name, region, k8s_node,k8s_service, k8s_namespace, type FROM expenses;",
                // databaseQuery: globalTime ? `SELECT DISTINCT data_source_name, service_name, region, type FROM expenses where expenses.date >= ${globalTime.st} and expenses.date < ${globalTime.et};`: "SELECT DISTINCT data_source_name, service_name, region, type FROM expenses;",
                databaseType: "postgres",
                isDefaultDatabase: false,
                selectedDatabase: "alert_work"
            }
        };
        me._cloudCostExplorerService.load(path, payload).subscribe((state) => {
            if (state instanceof _services_cc_resources_state__WEBPACK_IMPORTED_MODULE_5__["CloudCostResourcesLoadingState"]) {
                me.onLoading(state);
                return;
            }
            if (state instanceof _services_cc_resources_state__WEBPACK_IMPORTED_MODULE_5__["CloudCostResourcesLoadedState"]) {
                me.onLoaded(state);
                return;
            }
        }, (state) => {
            me.onLoadingError(state);
        });
    }
    onLoading(state) {
    }
    onLoadingError(state) {
    }
    onLoaded(state) {
        var _a, _b;
        const me = this;
        if ((_b = (_a = state === null || state === void 0 ? void 0 : state.data) === null || _a === void 0 ? void 0 : _a.dbData) === null || _b === void 0 ? void 0 : _b.dbData) {
            const uniqueValues = {};
            state.data.dbData.dbData.forEach(row => {
                Object.entries(row).forEach(([key, value]) => {
                    if (!uniqueValues[key]) {
                        uniqueValues[key] = new Set();
                    }
                    uniqueValues[key].add(value);
                });
            });
            Object.keys(uniqueValues).forEach(key => {
                me.filterDisplayData[me.convertToTitle(key)] = me.getOptionsList(uniqueValues, key);
            });
        }
        else {
            console.log('Data not Available.');
        }
    }
    getOptionsList(uniqueValues, key) {
        const me = this;
        return Array.from(uniqueValues[key]).map(item => me.getSelectedItem(item));
    }
    getSelectedItem(item) {
        return { label: item, value: item };
    }
    convertToTitle(text) {
        return text
            .split('_')
            .map(word => word.charAt(0).toUpperCase() + word.slice(1))
            .join(' ');
    }
    toSnakeCase(str) {
        return str
            .trim()
            .replace(/\s+/g, ' ') // collapse extra whitespace
            .split(' ')
            .map(w => w.toLowerCase())
            .join('_');
    }
    getIFrameDAta(event) {
        var _a, _b, _c, _d;
        const me = this;
        if ((_a = event === null || event === void 0 ? void 0 : event.timePeriod) === null || _a === void 0 ? void 0 : _a.selected) {
            me.loadDataForIframe(null, null, false, src_app_shared_common_iframe_service_common_iframe_model__WEBPACK_IMPORTED_MODULE_6__["Operation"].LOAD_FAV_PARAM, null, (_b = event === null || event === void 0 ? void 0 : event.timePeriod) === null || _b === void 0 ? void 0 : _b.selected);
        }
        else if (typeof event === 'boolean') {
            me.loadDataForIframe(null, null, false, src_app_shared_common_iframe_service_common_iframe_model__WEBPACK_IMPORTED_MODULE_6__["Operation"].LOAD_FAV_PARAM, null, null, event);
        }
        else if ((event === null || event === void 0 ? void 0 : event.action) == "clickable") {
            me.breadcrumb = [
                { label: 'Cost Resource', routerLink: '/home/cloud-cost/resources' }
            ];
            let ccvGctx = (_d = (_c = this.dataForIframe) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.ccvGctx;
            ccvGctx = ccvGctx.filter(item => { var _a, _b; return !((_b = (_a = item === null || item === void 0 ? void 0 : item.subject) === null || _a === void 0 ? void 0 : _a.tags) === null || _b === void 0 ? void 0 : _b.some(t => t.key.toLowerCase() === 'resource_id')); });
            if (event === null || event === void 0 ? void 0 : event.ccvGctx) {
                Object.keys(event.ccvGctx).forEach((key) => {
                    if (key.toLowerCase() === 'resource_id') {
                        ccvGctx.push({
                            subject: {
                                tags: [{ key: key, value: event.ccvGctx[key], mode: 1 }],
                            },
                        });
                        me.breadcrumb.push({ label: `${me.convertToTitle(key)}: ${event.ccvGctx[key]}` });
                    }
                    else if (key.toLowerCase() === 'operation') {
                        ccvGctx.push({
                            subject: {
                                tags: [{ key: key, value: event.ccvGctx[key], mode: 1 }],
                            },
                        });
                    }
                    //me.breadcrumb.push({label: `${me.convertToTitle(key)}: ${event.ccvGctx[key]}`})
                });
            }
            //if(event?.favName)
            me.resourceDetailsFav = false;
            me.loadDataForIframe("RESOURCE_DETAILS", "/dashboards", true, src_app_shared_common_iframe_service_common_iframe_model__WEBPACK_IMPORTED_MODULE_6__["Operation"].LOAD_FAV_PARAM, ccvGctx);
        } //me.loadDataForIframe("RESOURCE_DETAILS.json","/dashboards",false, Operation.LOAD_FAV_PARAM, null, null,event);
    }
    handleBreadcrumbClick($event) {
        var _a, _b;
        const me = this;
        me.breadcrumb = null;
        me.resourceDetailsFav = true;
        me.loadDataForIframe("CLOUD_COST_RESOURCE_NAME", "/dashboards", true, src_app_shared_common_iframe_service_common_iframe_model__WEBPACK_IMPORTED_MODULE_6__["Operation"].LOAD_FAV_PARAM, (_b = (_a = this.dataForIframe) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.ccvGctx);
    }
};
CcResourcesComponent.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_2__["SessionService"] },
    { type: _services_cc_resources_service__WEBPACK_IMPORTED_MODULE_3__["CloudCostResourceService"] },
    { type: src_app_shared_time_bar_service_time_bar_service__WEBPACK_IMPORTED_MODULE_7__["TimebarService"] }
];
CcResourcesComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
        selector: 'app-cc-resources',
        template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./cc-resources.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.html")).default,
        styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./cc-resources.component.scss */ "./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.scss")).default]
    })
], CcResourcesComponent);



/***/ }),

/***/ "./src/app/pages/home/cloud-cost/cc-resources/cc-resources.module.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/home/cloud-cost/cc-resources/cc-resources.module.ts ***!
  \***************************************************************************/
/*! exports provided: CcResourcesModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CcResourcesModule", function() { return CcResourcesModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */ var _cc_resources_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cc-resources.component */ "./src/app/pages/home/cloud-cost/cc-resources/cc-resources.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var primeng__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng.js");
/* harmony import */ var src_app_shared_common_iframe_common_iframe_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/common-iframe/common-iframe.module */ "./src/app/shared/common-iframe/common-iframe.module.ts");









const route = [
    { path: '', component: _cc_resources_component__WEBPACK_IMPORTED_MODULE_3__["CcResourcesComponent"], },
];
let CcResourcesModule = class CcResourcesModule {
};
CcResourcesModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
        declarations: [_cc_resources_component__WEBPACK_IMPORTED_MODULE_3__["CcResourcesComponent"]],
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TabMenuModule"],
            _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["TooltipModule"],
            _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["ButtonModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["MultiSelectModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["SelectButtonModule"],
            src_app_shared_common_iframe_common_iframe_module__WEBPACK_IMPORTED_MODULE_7__["CommonIfameModule"],
            primeng__WEBPACK_IMPORTED_MODULE_6__["BreadcrumbModule"],
            _angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"].forChild(route)
        ],
        providers: [],
        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_5__["RouterModule"]]
    })
], CcResourcesModule);



/***/ }),

/***/ "./src/app/pages/home/cloud-cost/cc-resources/services/cc-resources.service.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/home/cloud-cost/cc-resources/services/cc-resources.service.ts ***!
  \*************************************************************************************/
/*! exports provided: CloudCostResourceService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloudCostResourceService", function() { return CloudCostResourceService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
/* harmony import */ var src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/session/session.service */ "./src/app/core/session/session.service.ts");
/* harmony import */ var src_app_core_store_store__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/store/store */ "./src/app/core/store/store.ts");
/* harmony import */ var _cc_resources_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cc-resources.state */ "./src/app/pages/home/cloud-cost/cc-resources/services/cc-resources.state.ts");






let CloudCostResourceService = class CloudCostResourceService extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_4__["Store"].AbstractService {
    constructor(sessionService) {
        super();
        this.sessionService = sessionService;
    }
    load(path, payload) {
        const me = this;
        const output = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        setTimeout(() => {
            output.next(new _cc_resources_state__WEBPACK_IMPORTED_MODULE_5__["CloudCostResourcesLoadingState"]());
        }, 0);
        /// DEV CODE ----------------->
        /* setTimeout(() => {
              output.next(new CompareDataLoadedState(COMPARE_DATA_TABLE));
              output.complete();
            }, 2000); */
        let basePath = me.sessionService.getBasePath(true, null, null);
        me.controller.post(path, payload, basePath).subscribe((res) => {
            output.next(new _cc_resources_state__WEBPACK_IMPORTED_MODULE_5__["CloudCostResourcesLoadedState"](res));
            output.complete();
        }, (e) => {
            output.error(new _cc_resources_state__WEBPACK_IMPORTED_MODULE_5__["CloudCostResourcesErrorState"](e));
            output.complete();
            me.logger.error('Cloud Cost Explorer loading failed', e);
        });
        return output;
    }
};
CloudCostResourceService.ctorParameters = () => [
    { type: src_app_core_session_session_service__WEBPACK_IMPORTED_MODULE_3__["SessionService"] }
];
CloudCostResourceService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
    Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
        providedIn: 'root',
    })
], CloudCostResourceService);



/***/ }),

/***/ "./src/app/pages/home/cloud-cost/cc-resources/services/cc-resources.state.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/home/cloud-cost/cc-resources/services/cc-resources.state.ts ***!
  \***********************************************************************************/
/*! exports provided: CloudCostResourcesLoadingState, CloudCostResourcesErrorState, CloudCostResourcesLoadedState */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloudCostResourcesLoadingState", function() { return CloudCostResourcesLoadingState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloudCostResourcesErrorState", function() { return CloudCostResourcesErrorState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CloudCostResourcesLoadedState", function() { return CloudCostResourcesLoadedState; });
/* harmony import */ var src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/store/store */ "./src/app/core/store/store.ts");

class CloudCostResourcesLoadingState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractLoadingState {
}
class CloudCostResourcesErrorState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractErrorState {
}
class CloudCostResourcesLoadedState extends src_app_core_store_store__WEBPACK_IMPORTED_MODULE_0__["Store"].AbstractIdealState {
}


/***/ })

}]);