exports.ids = [38];
exports.modules = {

/***/ "7A3k":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);

// EXTERNAL MODULE: ./node_modules/@angular/core/fesm2015/core.js
var core = __webpack_require__("8Y7J");

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/dashboard.module.ts
class DashboardModule {
}

// EXTERNAL MODULE: ./node_modules/@angular/router/router.ngfactory.js
var router_ngfactory = __webpack_require__("pMnS");

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/dashboard.component.scss.shim.ngstyle.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 
var styles = ["@media only screen and (min-width:1024px) and (max-width:1279px){.combo-label[_ngcontent-%COMP%]{font-size:14px}.dashboard-body[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}img[_ngcontent-%COMP%]{height:30px}nb-progress-bar[_ngcontent-%COMP%]{background:#fff;flex:1}.combo-label[_ngcontent-%COMP%]{font-weight:700}.dashboard-body[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin-left:20px}.dashboard-body[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px;margin-bottom:3px}.dashboard-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.dashboard-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin-bottom:10px}.dashboard-container[_ngcontent-%COMP%]   omni-dashboard-card[_ngcontent-%COMP%], .dashboard-container[_ngcontent-%COMP%]   omni-widget[_ngcontent-%COMP%]{flex:1;margin-left:.25rem;margin-right:.25rem}.dashboard-container[_ngcontent-%COMP%]   omni-dashboard-card[_ngcontent-%COMP%]:first-child, .dashboard-container[_ngcontent-%COMP%]   omni-widget[_ngcontent-%COMP%]:first-child{margin-left:0}.dashboard-container[_ngcontent-%COMP%]   omni-dashboard-card[_ngcontent-%COMP%]:last-child, .dashboard-container[_ngcontent-%COMP%]   omni-widget[_ngcontent-%COMP%]:last-child{margin-right:0}.dashboard-phrase-text[_ngcontent-%COMP%]{font-size:1rem}.progress-bar[_ngcontent-%COMP%]{display:flex}"];


// EXTERNAL MODULE: ./node_modules/@nebular/theme/index.ngfactory.js
var index_ngfactory = __webpack_require__("jXVt");

// EXTERNAL MODULE: ./node_modules/@nebular/theme/fesm2015/index.js + 5 modules
var fesm2015 = __webpack_require__("tKwJ");

// EXTERNAL MODULE: ./node_modules/@angular/common/fesm2015/common.js
var common = __webpack_require__("SVse");

// EXTERNAL MODULE: ./src/app/shared/ui/no-content/no-content.component.ngfactory.js + 1 modules
var no_content_component_ngfactory = __webpack_require__("hARC");

// EXTERNAL MODULE: ./src/app/shared/ui/no-content/no-content.component.ts
var no_content_component = __webpack_require__("o220");

// EXTERNAL MODULE: ./src/app/shared/ui/inline-loader/inline-loader.component.ngfactory.js
var inline_loader_component_ngfactory = __webpack_require__("T9fw");

// EXTERNAL MODULE: ./src/app/shared/ui/inline-loader/inline-loader.component.ts
var inline_loader_component = __webpack_require__("IGDG");

// CONCATENATED MODULE: ./src/app/shared/ui/dashboard-card/dashboard-card.component.scss.shim.ngstyle.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 
var dashboard_card_component_scss_shim_ngstyle_styles = [".card[_ngcontent-%COMP%]{background-color:#fff;height:100%;min-height:190px}.card-body[_ngcontent-%COMP%]{padding:.85rem}.footer-text[_ngcontent-%COMP%]{font-size:13px;font-style:italic}.percentage[_ngcontent-%COMP%]{background-color:red;border-radius:5px;color:#fff;font-weight:700;margin-right:10px;padding:4px;text-align:center}.title[_ngcontent-%COMP%]{font-size:12px;font-weight:700;color:#0295fd!important}.value[_ngcontent-%COMP%]{color:#0295fd!important;padding-bottom:5px;padding-top:5px}@media only screen and (max-width:1279px){.icon[_ngcontent-%COMP%]{height:24px}.container[_ngcontent-%COMP%]{padding-left:2px;padding-right:2px}.footer-text[_ngcontent-%COMP%]{margin-bottom:5px}.percentage[_ngcontent-%COMP%]{font-size:10px;margin-bottom:5px}.value[_ngcontent-%COMP%]{font-size:20px}}@media only screen and (min-width:1280px) and (max-width:1365px){.icon[_ngcontent-%COMP%]{height:28px}.percentage[_ngcontent-%COMP%]{font-size:12px}.value[_ngcontent-%COMP%]{font-size:30px}}@media only screen and (min-width:1366px){.icon[_ngcontent-%COMP%]{height:32px}.percentage[_ngcontent-%COMP%]{font-size:14px}.title[_ngcontent-%COMP%]{font-size:16px}.value[_ngcontent-%COMP%]{font-size:32px}}"];


// EXTERNAL MODULE: ./src/app/shared/ui/dashboard-card/dashboard-card.component.ts
var dashboard_card_component = __webpack_require__("8jIb");

// CONCATENATED MODULE: ./src/app/shared/ui/dashboard-card/dashboard-card.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 






var styles_DashboardCardComponent = [dashboard_card_component_scss_shim_ngstyle_styles];
var RenderType_DashboardCardComponent = core["ɵcrt"]({ encapsulation: 0, styles: styles_DashboardCardComponent, data: {} });

function View_DashboardCardComponent_2(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "div", [], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 0, "img", [["class", "icon"]], [[8, "src", 4]], null, null, null, null))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.cardIcon; _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardCardComponent_3(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "span", [["class", "value"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" ", " "])), core["ɵppd"](2, 2)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵunv"](_v, 1, 0, _ck(_v, 2, 0, core["ɵnov"](_v.parent.parent, 0), (_co.value || 0), "BRL")); _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardCardComponent_4(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "span", [["class", "value"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" ", " "])), core["ɵppd"](2, 1)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵunv"](_v, 1, 0, _ck(_v, 2, 0, core["ɵnov"](_v.parent.parent, 1), _co.value)); _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardCardComponent_5(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 3, "div", [], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 2, "span", [["class", "percentage"]], null, null, null, null, null)), (_l()(), core["ɵted"](2, null, [" ", "% "])), core["ɵppd"](3, 2)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵunv"](_v, 2, 0, _ck(_v, 3, 0, core["ɵnov"](_v.parent.parent, 1), (_co.percentage || 0), "1.2-2")); _ck(_v, 2, 0, currVal_0); }); }
function View_DashboardCardComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 19, "div", [["class", "card-body"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 18, "div", [["class", "d-flex flex-column h-100 mb-2"]], null, null, null, null, null)), (_l()(), core["ɵeld"](2, 0, null, null, 5, "div", [["class", "d-flex flex-row align-items-center"]], null, null, null, null, null)), (_l()(), core["ɵeld"](3, 0, null, null, 2, "div", [["class", "flex-grow-1"]], null, null, null, null, null)), (_l()(), core["ɵeld"](4, 0, null, null, 1, "span", [["class", "title"]], null, null, null, null, null)), (_l()(), core["ɵted"](5, null, [" ", " "])), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardCardComponent_2)), core["ɵdid"](7, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](8, 0, null, null, 4, "div", [["class", "d-flex flex-row"]], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardCardComponent_3)), core["ɵdid"](10, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardCardComponent_4)), core["ɵdid"](12, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), core["ɵncd"](null, 0), (_l()(), core["ɵeld"](14, 0, null, null, 5, "div", [["class", "d-flex flex-row align-items-center mt-auto"]], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardCardComponent_5)), core["ɵdid"](16, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](17, 0, null, null, 2, "div", [["class", "flex-grow-1"]], null, null, null, null, null)), (_l()(), core["ɵeld"](18, 0, null, null, 1, "span", [["class", "footer-text text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](19, null, [" ", " "]))], function (_ck, _v) { var _co = _v.component; var currVal_1 = _co.hasIcon; _ck(_v, 7, 0, currVal_1); var currVal_2 = _co.valueInMoney; _ck(_v, 10, 0, currVal_2); var currVal_3 = !_co.valueInMoney; _ck(_v, 12, 0, currVal_3); var currVal_4 = (_co.percentage > 0); _ck(_v, 16, 0, currVal_4); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.cardTitle; _ck(_v, 5, 0, currVal_0); var currVal_5 = _co.footerText; _ck(_v, 19, 0, currVal_5); }); }
function View_DashboardCardComponent_6(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 3, "div", [["class", "card-body"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 2, "div", [["class", "d-flex align-items-center justify-content-center w-100 h-100"]], null, null, null, null, null)), (_l()(), core["ɵeld"](2, 0, null, null, 1, "omni-inline-loader", [["label", "Carregando informa\u00E7\u00F5es..."]], null, null, null, inline_loader_component_ngfactory["b" /* View_InlineLoaderComponent_0 */], inline_loader_component_ngfactory["a" /* RenderType_InlineLoaderComponent */])), core["ɵdid"](3, 114688, null, 0, inline_loader_component["a" /* InlineLoaderComponent */], [], { label: [0, "label"], refreshState: [1, "refreshState"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = "Carregando informa\u00E7\u00F5es..."; var currVal_1 = _co.isLoading; _ck(_v, 3, 0, currVal_0, currVal_1); }, null); }
function View_DashboardCardComponent_0(_l) { return core["ɵvid"](2, [core["ɵpid"](0, common["d" /* CurrencyPipe */], [core["LOCALE_ID"]]), core["ɵpid"](0, common["g" /* DecimalPipe */], [core["LOCALE_ID"]]), (_l()(), core["ɵeld"](2, 0, null, null, 4, "div", [["class", "card"]], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardCardComponent_1)), core["ɵdid"](4, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardCardComponent_6)), core["ɵdid"](6, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = !_co.isLoading; _ck(_v, 4, 0, currVal_0); var currVal_1 = _co.isLoading; _ck(_v, 6, 0, currVal_1); }, null); }
function View_DashboardCardComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-dashboard-card", [], null, null, null, View_DashboardCardComponent_0, RenderType_DashboardCardComponent)), core["ɵdid"](1, 114688, null, 0, dashboard_card_component["a" /* DashboardCardComponent */], [], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var DashboardCardComponentNgFactory = core["ɵccf"]("omni-dashboard-card", dashboard_card_component["a" /* DashboardCardComponent */], View_DashboardCardComponent_Host_0, { cardIcon: "cardIcon", footerText: "footerText", isLoading: "isLoading", percentage: "percentage", cardTitle: "cardTitle", value: "value", valueInMoney: "valueInMoney" }, {}, [".dashboard-body"]);


// EXTERNAL MODULE: ./src/app/shared/ui/page-title/page-title.component.ngfactory.js + 1 modules
var page_title_component_ngfactory = __webpack_require__("laEC");

// EXTERNAL MODULE: ./src/app/shared/ui/page-title/page-title.component.ts
var page_title_component = __webpack_require__("S4p5");

// EXTERNAL MODULE: ./node_modules/@angular/forms/fesm2015/forms.js
var fesm2015_forms = __webpack_require__("s7LF");

// EXTERNAL MODULE: ./node_modules/@fortawesome/angular-fontawesome/angular-fontawesome.ngfactory.js
var angular_fontawesome_ngfactory = __webpack_require__("fNgX");

// EXTERNAL MODULE: ./node_modules/@fortawesome/angular-fontawesome/fesm2015/angular-fontawesome.js
var angular_fontawesome = __webpack_require__("Nv++");

// EXTERNAL MODULE: ./node_modules/@angular/platform-browser/fesm2015/platform-browser.js
var platform_browser = __webpack_require__("cUpR");

// CONCATENATED MODULE: ./src/app/shared/ui/widget/widget.component.scss.shim.ngstyle.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 
var widget_component_scss_shim_ngstyle_styles = [".card-header[_ngcontent-%COMP%]{background-color:#fff;font-weight:700}"];


// EXTERNAL MODULE: ./src/app/shared/ui/widget/widget.component.ts
var widget_component = __webpack_require__("+Ih4");

// CONCATENATED MODULE: ./src/app/shared/ui/widget/widget.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 



var styles_WidgetComponent = [widget_component_scss_shim_ngstyle_styles];
var RenderType_WidgetComponent = core["ɵcrt"]({ encapsulation: 0, styles: styles_WidgetComponent, data: {} });

function View_WidgetComponent_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 5, "div", [], [[8, "className", 0]], null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 2, "div", [["class", "card-header"]], null, null, null, null, null)), (_l()(), core["ɵeld"](2, 0, null, null, 1, "span", [["class", "text-primary"]], null, null, null, null, null)), (_l()(), core["ɵted"](3, null, [" ", " "])), (_l()(), core["ɵeld"](4, 0, null, null, 1, "div", [["class", "card-body"]], null, null, null, null, null)), core["ɵncd"](null, 0)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵinlineInterpolate"](1, "card ", _co.cssClass, ""); _ck(_v, 0, 0, currVal_0); var currVal_1 = _co.widgetTitle; _ck(_v, 3, 0, currVal_1); }); }
function View_WidgetComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-widget", [], null, null, null, View_WidgetComponent_0, RenderType_WidgetComponent)), core["ɵdid"](1, 49152, null, 0, widget_component["a" /* WidgetComponent */], [], null, null)], null, null); }
var WidgetComponentNgFactory = core["ɵccf"]("omni-widget", widget_component["a" /* WidgetComponent */], View_WidgetComponent_Host_0, { cssClass: "cssClass", widgetTitle: "widgetTitle" }, {}, ["*"]);


// EXTERNAL MODULE: ./node_modules/angular2-chartjs/dist/chart.component.js
var chart_component = __webpack_require__("FZvA");

// CONCATENATED MODULE: ./node_modules/angular2-chartjs/dist/chart.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 


var styles_ChartComponent = ["[_nghost-%COMP%] { display: block; }"];
var RenderType_ChartComponent = core["ɵcrt"]({ encapsulation: 0, styles: styles_ChartComponent, data: {} });

function View_ChartComponent_0(_l) { return core["ɵvid"](0, [], null, null); }
function View_ChartComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "chart", [], null, null, null, View_ChartComponent_0, RenderType_ChartComponent)), core["ɵdid"](1, 638976, null, 0, chart_component["ChartComponent"], [core["ElementRef"], core["NgZone"]], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var ChartComponentNgFactory = core["ɵccf"]("chart", chart_component["ChartComponent"], View_ChartComponent_Host_0, { type: "type", data: "data", options: "options" }, { clickCanvas: "clickCanvas", clickDataset: "clickDataset", clickElements: "clickElements", clickElement: "clickElement" }, []);


// EXTERNAL MODULE: ./src/app/shared/ui/chart/chart.component.ts
var chart_chart_component = __webpack_require__("l+y7");

// CONCATENATED MODULE: ./src/app/shared/ui/chart/chart.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 




var chart_component_ngfactory_styles_ChartComponent = [];
var chart_component_ngfactory_RenderType_ChartComponent = core["ɵcrt"]({ encapsulation: 2, styles: chart_component_ngfactory_styles_ChartComponent, data: {} });

function chart_component_ngfactory_View_ChartComponent_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "chart", [], null, null, null, View_ChartComponent_0, RenderType_ChartComponent)), core["ɵdid"](1, 638976, null, 0, chart_component["ChartComponent"], [core["ElementRef"], core["NgZone"]], { type: [0, "type"], data: [1, "data"], options: [2, "options"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.type; var currVal_1 = _co.data; var currVal_2 = _co.options; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2); }, null); }
function chart_component_ngfactory_View_ChartComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-chart", [], null, null, null, chart_component_ngfactory_View_ChartComponent_0, chart_component_ngfactory_RenderType_ChartComponent)), core["ɵdid"](1, 114688, null, 0, chart_chart_component["a" /* ChartComponent */], [], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var chart_component_ngfactory_ChartComponentNgFactory = core["ɵccf"]("omni-chart", chart_chart_component["a" /* ChartComponent */], chart_component_ngfactory_View_ChartComponent_Host_0, { data: "data", options: "options", type: "type" }, {}, []);


// EXTERNAL MODULE: ./node_modules/moment/moment.js
var moment = __webpack_require__("wd/R");

// EXTERNAL MODULE: ./src/app/shared/utils/date.util.ts
var date_util = __webpack_require__("6eHG");

// EXTERNAL MODULE: ./src/app/shared/utils/null.util.ts
var null_util = __webpack_require__("5tvI");

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/billing-in-period/billing-in-period.component.ts




class billing_in_period_component_BillingInPeriodComponent {
    constructor(chartService) {
        this.chartService = chartService;
        this.isLoading = false;
        this.orders = [];
        this.billingCounter = [];
        this.checked = false;
        this.orderCounter = [];
    }
    ngDoCheck() {
        if (null_util["a" /* NullUtil */].isNotNull(this.orders) && this.orders.length > 0 && !this.checked) {
            this.orders.forEach(order => {
                const i = moment(order.dataHoraPedido).get('date') - 1;
                if (null_util["a" /* NullUtil */].isNull(this.billingCounter[i]))
                    this.billingCounter[i] = 0;
                if (null_util["a" /* NullUtil */].isNull(this.orderCounter[i]))
                    this.orderCounter[i] = 0;
                this.billingCounter[i] = this.billingCounter[i] + order.totalDoPedido;
                this.orderCounter[i]++;
            });
            this.checked = true;
            this.initChart(this.chartService.colors);
        }
    }
    ngOnChanges(changes) {
        for (let propName in changes) {
            if (propName === 'orders') {
                this.checked = false;
                this.reset();
            }
        }
    }
    initChart(colors) {
        const daysInMonth = date_util["a" /* DateUtil */].makeLabels(this.month, this.year);
        daysInMonth.forEach(day => {
            const idx = daysInMonth.indexOf(day);
            this.billingCounter[idx] === undefined ? this.billingCounter[idx] = 0 : null;
            this.orderCounter[idx] === undefined ? this.orderCounter[idx] = 0 : null;
        });
        this.data = {
            labels: daysInMonth,
            datasets: [
                this.chartService.makeDataset('Faturamento', this.billingCounter, colors.info),
                this.chartService.makeDataset('Pedidos', this.orderCounter, colors.success)
            ]
        };
    }
    reset() {
        this.orderCounter = [];
        this.billingCounter = [];
    }
}

// CONCATENATED MODULE: ./src/app/shared/services/chart.service.ts



class chart_service_ChartService {
    constructor(theme) {
        this.theme = theme;
        this.themeSubscription = this.theme.getJsTheme().subscribe(config => {
            this.colors = config.variables;
        });
    }
    /**
     * Makes a dataset according the title, data and color passed by user.
     * @param title The subtitle of dataset.
     * @param data The data who will be used to generate the lines of chart.
     * @param color The color of background and border.
     */
    makeDataset(title, data, color) {
        return {
            backgroundColor: fesm2015["Cb" /* NbColorHelper */].hexToRgbA(color, 0.4),
            borderColor: color,
            borderWidth: 1,
            data: data,
            label: title
        };
    }
}
chart_service_ChartService.ngInjectableDef = core["ɵɵdefineInjectable"]({ factory: function ChartService_Factory() { return new chart_service_ChartService(core["ɵɵinject"](fesm2015["Gd" /* NbThemeService */])); }, token: chart_service_ChartService, providedIn: "root" });

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/billing-in-period/billing-in-period.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 










var styles_BillingInPeriodComponent = [];
var RenderType_BillingInPeriodComponent = core["ɵcrt"]({ encapsulation: 2, styles: styles_BillingInPeriodComponent, data: {} });

function View_BillingInPeriodComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-chart", [["type", "line"]], null, null, null, chart_component_ngfactory_View_ChartComponent_0, chart_component_ngfactory_RenderType_ChartComponent)), core["ɵdid"](1, 114688, null, 0, chart_chart_component["a" /* ChartComponent */], [], { data: [0, "data"], options: [1, "options"], type: [2, "type"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.data; var currVal_1 = _co.options; var currVal_2 = "line"; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2); }, null); }
function View_BillingInPeriodComponent_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵand"](16777216, null, null, 1, null, View_BillingInPeriodComponent_1)), core["ɵdid"](1, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](2, 0, null, null, 1, "omni-inline-loader", [["label", "Iniciando gr\u00E1fico..."]], null, null, null, inline_loader_component_ngfactory["b" /* View_InlineLoaderComponent_0 */], inline_loader_component_ngfactory["a" /* RenderType_InlineLoaderComponent */])), core["ɵdid"](3, 114688, null, 0, inline_loader_component["a" /* InlineLoaderComponent */], [], { label: [0, "label"], refreshState: [1, "refreshState"] }, null), (_l()(), core["ɵeld"](4, 0, null, null, 1, "omni-no-content", [["message", "Nenhum faturamento registrado at\u00E9 o momento"]], null, null, null, no_content_component_ngfactory["b" /* View_NoContentComponent_0 */], no_content_component_ngfactory["a" /* RenderType_NoContentComponent */])), core["ɵdid"](5, 114688, null, 0, no_content_component["a" /* NoContentComponent */], [], { isEmpty: [0, "isEmpty"], message: [1, "message"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = (!_co.isLoading && (_co.orders.length > 0)); _ck(_v, 1, 0, currVal_0); var currVal_1 = "Iniciando gr\u00E1fico..."; var currVal_2 = _co.isLoading; _ck(_v, 3, 0, currVal_1, currVal_2); var currVal_3 = (!_co.isLoading && (!_co.orders || (_co.orders.length === 0))); var currVal_4 = "Nenhum faturamento registrado at\u00E9 o momento"; _ck(_v, 5, 0, currVal_3, currVal_4); }, null); }
function View_BillingInPeriodComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-billing-in-period", [], null, null, null, View_BillingInPeriodComponent_0, RenderType_BillingInPeriodComponent)), core["ɵdid"](1, 835584, null, 0, billing_in_period_component_BillingInPeriodComponent, [chart_service_ChartService], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var BillingInPeriodComponentNgFactory = core["ɵccf"]("omni-billing-in-period", billing_in_period_component_BillingInPeriodComponent, View_BillingInPeriodComponent_Host_0, { isLoading: "isLoading", month: "month", orders: "orders", year: "year" }, {}, []);


// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/sales-by-category/sales-by-category.component.ts

class SalesByCategoryComponent {
    constructor(chartService) {
        this.chartService = chartService;
        this.isLoading = false;
        this.top10Categories = [];
        this.categories = [];
        this.quantityByCategory = [];
    }
    ngDoCheck() {
        if (this.top10Categories.length > 0 && this.categories.length === 0) {
            this.top10Categories.forEach((category, i) => {
                this.categories[i] = category.nome;
                this.quantityByCategory[i] = category.soma;
            });
            this.initChart(this.chartService.colors);
        }
    }
    ngOnChanges(changes) {
        for (let propName in changes) {
            if (propName === 'top10Categories') {
                this.categories = [];
                this.quantityByCategory = [];
            }
        }
    }
    /**
     * Initiates a chart.
     * @param colors The colors that will be used on the chart.
     */
    initChart(colors) {
        this.data = {
            labels: this.categories,
            datasets: [
                this.chartService.makeDataset('Vendas', this.quantityByCategory, colors.info)
            ]
        };
    }
}

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/sales-by-category/sales-by-category.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 










var styles_SalesByCategoryComponent = [];
var RenderType_SalesByCategoryComponent = core["ɵcrt"]({ encapsulation: 2, styles: styles_SalesByCategoryComponent, data: {} });

function View_SalesByCategoryComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-chart", [["type", "horizontalBar"]], null, null, null, chart_component_ngfactory_View_ChartComponent_0, chart_component_ngfactory_RenderType_ChartComponent)), core["ɵdid"](1, 114688, null, 0, chart_chart_component["a" /* ChartComponent */], [], { data: [0, "data"], options: [1, "options"], type: [2, "type"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.data; var currVal_1 = _co.options; var currVal_2 = "horizontalBar"; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2); }, null); }
function View_SalesByCategoryComponent_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵand"](16777216, null, null, 1, null, View_SalesByCategoryComponent_1)), core["ɵdid"](1, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](2, 0, null, null, 1, "omni-inline-loader", [["label", "Iniciando gr\u00E1fico..."]], null, null, null, inline_loader_component_ngfactory["b" /* View_InlineLoaderComponent_0 */], inline_loader_component_ngfactory["a" /* RenderType_InlineLoaderComponent */])), core["ɵdid"](3, 114688, null, 0, inline_loader_component["a" /* InlineLoaderComponent */], [], { label: [0, "label"], refreshState: [1, "refreshState"] }, null), (_l()(), core["ɵeld"](4, 0, null, null, 1, "omni-no-content", [["message", "Nenhuma venda por categoria registrado at\u00E9 o momento"]], null, null, null, no_content_component_ngfactory["b" /* View_NoContentComponent_0 */], no_content_component_ngfactory["a" /* RenderType_NoContentComponent */])), core["ɵdid"](5, 114688, null, 0, no_content_component["a" /* NoContentComponent */], [], { isEmpty: [0, "isEmpty"], message: [1, "message"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = (!_co.isLoading && (_co.top10Categories.length > 0)); _ck(_v, 1, 0, currVal_0); var currVal_1 = "Iniciando gr\u00E1fico..."; var currVal_2 = _co.isLoading; _ck(_v, 3, 0, currVal_1, currVal_2); var currVal_3 = (!_co.isLoading && (!_co.top10Categories || (_co.top10Categories.length === 0))); var currVal_4 = "Nenhuma venda por categoria registrado at\u00E9 o momento"; _ck(_v, 5, 0, currVal_3, currVal_4); }, null); }
function View_SalesByCategoryComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-sales-by-category", [], null, null, null, View_SalesByCategoryComponent_0, RenderType_SalesByCategoryComponent)), core["ɵdid"](1, 835584, null, 0, SalesByCategoryComponent, [chart_service_ChartService], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var SalesByCategoryComponentNgFactory = core["ɵccf"]("omni-sales-by-category", SalesByCategoryComponent, View_SalesByCategoryComponent_Host_0, { isLoading: "isLoading", top10Categories: "top10Categories" }, {}, []);


// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/sales-by-day/sales-by-day.component.ts




class sales_by_day_component_SalesByDayComponent {
    constructor(chartService) {
        this.chartService = chartService;
        this.isLoading = false;
        this.orderCounter = [];
        this.orders = [];
        this.checked = false;
    }
    ngDoCheck() {
        if (null_util["a" /* NullUtil */].isNotNull(this.orders) && this.orders.length > 0 && !this.checked) {
            this.orders.forEach(order => {
                const i = moment(order.dataHoraPedido).get('date') - 1;
                null_util["a" /* NullUtil */].isNull(this.orderCounter[i]) ? this.orderCounter[i] = 0 : '';
                this.orderCounter[i]++;
            });
            this.checked = true;
            this.initChart(this.chartService.colors);
        }
    }
    ngOnChanges(changes) {
        for (let propName in changes) {
            if (propName === 'orders') {
                this.checked = false;
                this.orderCounter = [];
            }
        }
    }
    initChart(colors) {
        const daysInMonth = date_util["a" /* DateUtil */].makeLabels(this.month, this.year);
        daysInMonth.forEach(day => {
            const idx = daysInMonth.indexOf(day);
            this.orderCounter[idx] === undefined ? this.orderCounter[idx] = 0 : null;
        });
        this.data = {
            labels: daysInMonth,
            datasets: [
                this.chartService.makeDataset('Vendas no Dia', this.orderCounter, colors.info)
            ]
        };
    }
}

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/sales-by-day/sales-by-day.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 










var styles_SalesByDayComponent = [];
var RenderType_SalesByDayComponent = core["ɵcrt"]({ encapsulation: 2, styles: styles_SalesByDayComponent, data: {} });

function View_SalesByDayComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-chart", [["type", "bar"]], null, null, null, chart_component_ngfactory_View_ChartComponent_0, chart_component_ngfactory_RenderType_ChartComponent)), core["ɵdid"](1, 114688, null, 0, chart_chart_component["a" /* ChartComponent */], [], { data: [0, "data"], options: [1, "options"], type: [2, "type"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.data; var currVal_1 = _co.options; var currVal_2 = "bar"; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2); }, null); }
function View_SalesByDayComponent_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵand"](16777216, null, null, 1, null, View_SalesByDayComponent_1)), core["ɵdid"](1, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](2, 0, null, null, 1, "omni-inline-loader", [["label", "Iniciando gr\u00E1fico..."]], null, null, null, inline_loader_component_ngfactory["b" /* View_InlineLoaderComponent_0 */], inline_loader_component_ngfactory["a" /* RenderType_InlineLoaderComponent */])), core["ɵdid"](3, 114688, null, 0, inline_loader_component["a" /* InlineLoaderComponent */], [], { label: [0, "label"], refreshState: [1, "refreshState"] }, null), (_l()(), core["ɵeld"](4, 0, null, null, 1, "omni-no-content", [["message", "Nenhuma venda di\u00E1ria registrada at\u00E9 o momento"]], null, null, null, no_content_component_ngfactory["b" /* View_NoContentComponent_0 */], no_content_component_ngfactory["a" /* RenderType_NoContentComponent */])), core["ɵdid"](5, 114688, null, 0, no_content_component["a" /* NoContentComponent */], [], { isEmpty: [0, "isEmpty"], message: [1, "message"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = (!_co.isLoading && (_co.orders.length > 0)); _ck(_v, 1, 0, currVal_0); var currVal_1 = "Iniciando gr\u00E1fico..."; var currVal_2 = _co.isLoading; _ck(_v, 3, 0, currVal_1, currVal_2); var currVal_3 = (!_co.isLoading && (!_co.orders || (_co.orders.length === 0))); var currVal_4 = "Nenhuma venda di\u00E1ria registrada at\u00E9 o momento"; _ck(_v, 5, 0, currVal_3, currVal_4); }, null); }
function View_SalesByDayComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-sales-by-day", [], null, null, null, View_SalesByDayComponent_0, RenderType_SalesByDayComponent)), core["ɵdid"](1, 835584, null, 0, sales_by_day_component_SalesByDayComponent, [chart_service_ChartService], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var SalesByDayComponentNgFactory = core["ɵccf"]("omni-sales-by-day", sales_by_day_component_SalesByDayComponent, View_SalesByDayComponent_Host_0, { data: "data", isLoading: "isLoading", month: "month", options: "options", orderCounter: "orderCounter", orders: "orders", year: "year" }, {}, []);


// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/top10-list/top10-list.component.scss.shim.ngstyle.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 
var top10_list_component_scss_shim_ngstyle_styles = ["*[_ngcontent-%COMP%]{font-size:12px}.table[_ngcontent-%COMP%]{height:100%;min-height:400px}.table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{color:var(--color-primary-default)}"];


// EXTERNAL MODULE: ./node_modules/@fortawesome/free-solid-svg-icons/index.js
var free_solid_svg_icons = __webpack_require__("YTkO");

// EXTERNAL MODULE: ./src/app/shared/utils/array.util.ts
var array_util = __webpack_require__("+Qmw");

// EXTERNAL MODULE: ./src/app/shared/utils/string.util.ts
var string_util = __webpack_require__("8n1d");

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/top10-list/top10-list.component.ts




class top10_list_component_Top10ListComponent {
    constructor() {
        this.top10 = [];
    }
    get sortIcon() {
        return free_solid_svg_icons["faSort"];
    }
    ngOnInit() {
    }
    reorder(field) {
        let sortDirection = 'desc';
        const firstPosition = this.top10[0][field];
        const lastPosition = this.top10[this.top10.length - 1][field];
        if (firstPosition > lastPosition) {
            sortDirection = 'asc';
        }
        this.top10 = array_util["a" /* ArrayUtil */].sortCollection(this.top10, field, sortDirection);
    }
    upperCaseFirstLetters(text) {
        return string_util["a" /* StringUtil */].upperCaseOnlyFirstLetters(text);
    }
}

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/top10-list/top10-list.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 









var styles_Top10ListComponent = [top10_list_component_scss_shim_ngstyle_styles];
var RenderType_Top10ListComponent = core["ɵcrt"]({ encapsulation: 0, styles: styles_Top10ListComponent, data: {} });

function View_Top10ListComponent_2(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 7, "tr", [], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 1, "td", [], null, null, null, null, null)), (_l()(), core["ɵted"](2, null, [" ", ". ", " "])), (_l()(), core["ɵeld"](3, 0, null, null, 1, "td", [["class", "text-right"]], null, null, null, null, null)), (_l()(), core["ɵted"](4, null, [" ", " "])), (_l()(), core["ɵeld"](5, 0, null, null, 2, "td", [["class", "text-right"]], null, null, null, null, null)), (_l()(), core["ɵted"](6, null, [" ", " "])), core["ɵppd"](7, 2)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_v.context.index + 1); var currVal_1 = _co.upperCaseFirstLetters(_v.context.$implicit.nome); _ck(_v, 2, 0, currVal_0, currVal_1); var currVal_2 = _v.context.$implicit.quantidade; _ck(_v, 4, 0, currVal_2); var currVal_3 = core["ɵunv"](_v, 6, 0, _ck(_v, 7, 0, core["ɵnov"](_v.parent.parent, 0), _v.context.$implicit.soma, "BRL")); _ck(_v, 6, 0, currVal_3); }); }
function View_Top10ListComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 15, "table", [["class", "table table-sm table-striped table-borderless"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 11, "thead", [], null, null, null, null, null)), (_l()(), core["ɵeld"](2, 0, null, null, 10, "tr", [], null, null, null, null, null)), (_l()(), core["ɵeld"](3, 0, null, null, 1, "th", [], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Nome"])), (_l()(), core["ɵeld"](5, 0, null, null, 3, "th", [["class", "text-right"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Qtd "])), (_l()(), core["ɵeld"](7, 0, null, null, 1, "fa-icon", [["class", "ng-fa-icon"]], [[1, "title", 0], [8, "innerHTML", 1]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
        var pd_0 = (_co.reorder("quantidade") !== false);
        ad = (pd_0 && ad);
    } return ad; }, angular_fontawesome_ngfactory["d" /* View_FaIconComponent_0 */], angular_fontawesome_ngfactory["c" /* RenderType_FaIconComponent */])), core["ɵdid"](8, 573440, null, 0, angular_fontawesome["c" /* FaIconComponent */], [platform_browser["b" /* DomSanitizer */], angular_fontawesome["a" /* FaConfig */], angular_fontawesome["d" /* FaIconLibrary */], [2, angular_fontawesome["i" /* FaStackItemSizeDirective */]]], { icon: [0, "icon"] }, null), (_l()(), core["ɵeld"](9, 0, null, null, 3, "th", [["class", "text-right"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Vendas "])), (_l()(), core["ɵeld"](11, 0, null, null, 1, "fa-icon", [["class", "ng-fa-icon"]], [[1, "title", 0], [8, "innerHTML", 1]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
        var pd_0 = (_co.reorder("soma") !== false);
        ad = (pd_0 && ad);
    } return ad; }, angular_fontawesome_ngfactory["d" /* View_FaIconComponent_0 */], angular_fontawesome_ngfactory["c" /* RenderType_FaIconComponent */])), core["ɵdid"](12, 573440, null, 0, angular_fontawesome["c" /* FaIconComponent */], [platform_browser["b" /* DomSanitizer */], angular_fontawesome["a" /* FaConfig */], angular_fontawesome["d" /* FaIconLibrary */], [2, angular_fontawesome["i" /* FaStackItemSizeDirective */]]], { icon: [0, "icon"] }, null), (_l()(), core["ɵeld"](13, 0, null, null, 2, "tbody", [], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_Top10ListComponent_2)), core["ɵdid"](15, 278528, null, 0, common["n" /* NgForOf */], [core["ViewContainerRef"], core["TemplateRef"], core["IterableDiffers"]], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_2 = _co.sortIcon; _ck(_v, 8, 0, currVal_2); var currVal_5 = _co.sortIcon; _ck(_v, 12, 0, currVal_5); var currVal_6 = _co.top10; _ck(_v, 15, 0, currVal_6); }, function (_ck, _v) { var currVal_0 = core["ɵnov"](_v, 8).title; var currVal_1 = core["ɵnov"](_v, 8).renderedIconHTML; _ck(_v, 7, 0, currVal_0, currVal_1); var currVal_3 = core["ɵnov"](_v, 12).title; var currVal_4 = core["ɵnov"](_v, 12).renderedIconHTML; _ck(_v, 11, 0, currVal_3, currVal_4); }); }
function View_Top10ListComponent_0(_l) { return core["ɵvid"](2, [core["ɵpid"](0, common["d" /* CurrencyPipe */], [core["LOCALE_ID"]]), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_Top10ListComponent_1)), core["ɵdid"](2, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](3, 0, null, null, 1, "omni-no-content", [], null, null, null, no_content_component_ngfactory["b" /* View_NoContentComponent_0 */], no_content_component_ngfactory["a" /* RenderType_NoContentComponent */])), core["ɵdid"](4, 114688, null, 0, no_content_component["a" /* NoContentComponent */], [], { isEmpty: [0, "isEmpty"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.top10.length > 0); _ck(_v, 2, 0, currVal_0); var currVal_1 = (!_co.top10 || (_co.top10.length === 0)); _ck(_v, 4, 0, currVal_1); }, null); }
function View_Top10ListComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-top10-list", [], null, null, null, View_Top10ListComponent_0, RenderType_Top10ListComponent)), core["ɵdid"](1, 114688, null, 0, top10_list_component_Top10ListComponent, [], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var Top10ListComponentNgFactory = core["ɵccf"]("omni-top10-list", top10_list_component_Top10ListComponent, View_Top10ListComponent_Host_0, { top10: "top10" }, {}, []);


// EXTERNAL MODULE: ./node_modules/tslib/tslib.js
var tslib = __webpack_require__("zOht");

// EXTERNAL MODULE: ./src/app/shared/base/base-form/base-form.component.ts
var base_form_component = __webpack_require__("rduj");

// EXTERNAL MODULE: ./src/app/shared/resources/domains.resource.ts
var domains_resource = __webpack_require__("O7oW");

// EXTERNAL MODULE: ./src/app/shared/services/pedido.service.ts + 2 modules
var pedido_service = __webpack_require__("3xOD");

// EXTERNAL MODULE: ./src/app/shared/utils/number.util.ts
var number_util = __webpack_require__("qzEW");

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/dashboard.component.ts











class dashboard_component_DashboardComponent extends base_form_component["a" /* BaseFormComponent */] {
    constructor(alertService, authService, messagesService, requestService, toastrService, formBuilder, router, clienteService, navExtras, pedidoService) {
        super(alertService, authService, messagesService, requestService, toastrService);
        this.alertService = alertService;
        this.authService = authService;
        this.messagesService = messagesService;
        this.requestService = requestService;
        this.toastrService = toastrService;
        this.formBuilder = formBuilder;
        this.router = router;
        this.clienteService = clienteService;
        this.navExtras = navExtras;
        this.pedidoService = pedidoService;
        this.cancelBillingPercentage = 0;
        this.cancelOrderPercentage = 0;
        this.chartIcon = free_solid_svg_icons["faChartBar"];
        this.months = [];
        this.orderAverageValue = 0;
        this.progress = 0;
        this.top10Categories = [];
        this.top10Customers = [];
        this.top10Neighborhoods = [];
        this.top10Products = [];
        this.clienteService.companyId = this.authService.loggedUser.id;
        this.company = this.authService.loggedUser;
    }
    get extraOrders() {
        return this.dashboardInfo.quantidadePedidos - this.dashboardInfo.quantidadeCancelados - this.company.limitePedidos;
    }
    get isCurrentMonth() {
        return this.selectedDate === this.months[0];
    }
    get loggedAsAdmin() {
        return this.authService.loggedUser && this.authService.loggedUser.logadoComoAdm;
    }
    get savedMoney() {
        const ordersValue = this.dashboardInfo.valorPedidos - this.dashboardInfo.valorPedidosExternos;
        const canceledValue = this.dashboardInfo.valorCancelados;
        const otherPlatformsPercentage = this.company.porcentagemOutraPlataforma;
        const planValue = this.company.valorPlano;
        const extraOrderValue = this.company.valorPedidoExcedente;
        const totalExtraOrderValue = this.extraOrders > 0 && extraOrderValue > 0 ? this.extraOrders * extraOrderValue : 0;
        return ((ordersValue - canceledValue) * (otherPlatformsPercentage / 100)) - planValue - totalExtraOrderValue;
    }
    get status() {
        if (this.progress <= 65) {
            return 'success';
        }
        else if (this.progress <= 85) {
            return 'warning';
        }
        else {
            return 'danger';
        }
    }
    get viewIcon() {
        return free_solid_svg_icons["faEye"];
    }
    ngOnInit() {
        this.initForm();
        this.initDates();
        this.showFeedback();
        this.loadDashboard();
    }
    back() { }
    initDates() {
        return tslib["__awaiter"](this, void 0, void 0, function* () {
            const now = new Date();
            const currentMonth = `${date_util["a" /* DateUtil */].getMonthName(now.getMonth() + 1)}/${now.getFullYear()}`;
            this.months = yield this.pedidoService.findDistinctMonths().toPromise().then(months => {
                if (!array_util["a" /* ArrayUtil */].isEmpty(months)) {
                    const options = months.map((month => ({
                        label: `${date_util["a" /* DateUtil */].getMonthName(+month.substring(5, 7))}/${month.substring(0, 4)}`,
                        value: month
                    })));
                    if (options[0].label !== currentMonth) {
                        options.unshift({
                            label: currentMonth,
                            value: `${now.getFullYear()}-${now.getMonth() + 1}`
                        });
                    }
                    return options;
                }
                return [{
                        label: currentMonth,
                        value: `${now.getFullYear()}-${now.getMonth() + 1}`
                    }];
            }).catch((resp) => {
                this.requestService.handleError(resp, this.toastrService);
                return [];
            });
            this.selectedDate = this.months[0];
        });
    }
    initForm() {
        this.form = this.formBuilder.group({
            month: ['']
        });
    }
    loadDashboard() {
        this.selectedYear = this.selectedDate ? +this.selectedDate.value.substring(0, 4) : moment().get('year');
        this.selectedMonth = this.selectedDate ? +this.selectedDate.value.substring(5, 7) : (moment().get('month')) + 1;
        this.loadOrders(this.selectedMonth, this.selectedYear);
        this.loadTop10(this.selectedMonth, this.selectedYear);
    }
    loadFormData() {
    }
    navigate() {
        const initialDateTag = `01/${number_util["a" /* NumberUtil */].fillWithZero(this.selectedMonth)}/${this.selectedYear}`;
        const finalDateTag = `${date_util["a" /* DateUtil */].getLastDayOfMonth(this.selectedMonth, this.selectedYear)}/${number_util["a" /* NumberUtil */].fillWithZero(this.selectedMonth)}/${this.selectedYear}`;
        this.navExtras.setExtras({
            key: 'dataHoraPedidoInicio',
            label: `A partir de`,
            operator: ':',
            tagValue: initialDateTag.substr(0, 10),
            value: initialDateTag
        }, {
            key: 'dataHoraPedidoFim',
            label: `Até`,
            operator: ':',
            tagValue: finalDateTag.substr(0, 10),
            value: finalDateTag
        }, {
            key: 'situacao',
            label: `Situação`,
            operator: ':',
            tagValue: 'Cancelado',
            value: 'CANCELADO'
        });
        this.router.navigate(['admin/consult/order-history']);
    }
    showFeedback() {
        if (localStorage.getItem(domains_resource["n" /* FEEDBACK */])) {
            this.toastrService.success(this.messagesService.getFeedbackByAction(localStorage.getItem(domains_resource["n" /* FEEDBACK */])));
        }
    }
    submit() {
    }
    loadOrders(month, year) {
        return tslib["__awaiter"](this, void 0, void 0, function* () {
            this.loadState();
            this.dashboardInfo = yield this.pedidoService.findOrdersByMonth(month, year)
                .then(dashboardInfo => dashboardInfo)
                .catch((resp) => {
                this.requestService.handleError(resp, this.toastrService);
                return null;
            });
            if (null_util["a" /* NullUtil */].isNotNull(this.dashboardInfo)) {
                this.dashboardInfo.quantidadePedidos = this.dashboardInfo.quantidadePedidos + this.dashboardInfo.quantidadePedidosExternos;
                this.dashboardInfo.valorPedidos = this.dashboardInfo.valorPedidos + this.dashboardInfo.valorPedidosExternos;
                this.orderAverageValue = this.dashboardInfo.valorPedidos / this.dashboardInfo.quantidadePedidos;
                this.cancelBillingPercentage = (this.dashboardInfo.valorCancelados / this.dashboardInfo.valorPedidos) * 100;
                this.cancelOrderPercentage = (this.dashboardInfo.quantidadeCancelados / this.dashboardInfo.quantidadePedidos) * 100;
                const progress = (this.dashboardInfo.quantidadePedidos - this.dashboardInfo.quantidadeCancelados) / this.company.limitePedidos * 100;
                this.progress = progress > 100 ? 100 : progress;
            }
            this.loadState();
        });
    }
    loadTop10(month, year) {
        return tslib["__awaiter"](this, void 0, void 0, function* () {
            this.top10Customers = yield this.pedidoService.findTop10(month, year, pedido_service["b" /* TipoTop10 */].CLIENTES)
                .then(customers => customers)
                .catch((resp) => {
                this.requestService.handleError(resp, this.toastrService);
                return [];
            });
            this.top10Products = yield this.pedidoService.findTop10(month, year, pedido_service["b" /* TipoTop10 */].PRODUTOS)
                .then(products => products)
                .catch((resp) => {
                this.requestService.handleError(resp, this.toastrService);
                return [];
            });
            this.top10Neighborhoods = yield this.pedidoService.findTop10(month, year, pedido_service["b" /* TipoTop10 */].BAIRROS)
                .then(neighborhoods => neighborhoods)
                .catch((resp) => {
                this.requestService.handleError(resp, this.toastrService);
                return [];
            });
            this.top10Categories = yield this.pedidoService.findTop10(month, year, pedido_service["b" /* TipoTop10 */].CATEGORIAS)
                .then(categories => categories)
                .catch((resp) => {
                this.requestService.handleError(resp, this.toastrService);
                return [];
            });
        });
    }
}

// EXTERNAL MODULE: ./src/app/shared/services/alert.service.ts
var alert_service = __webpack_require__("Cmua");

// EXTERNAL MODULE: ./src/app/shared/services/auth.service.ts + 3 modules
var auth_service = __webpack_require__("IYfF");

// EXTERNAL MODULE: ./src/app/shared/services/messages.service.ts + 1 modules
var messages_service = __webpack_require__("N7YL");

// EXTERNAL MODULE: ./src/app/shared/services/request.service.ts
var request_service = __webpack_require__("a9NN");

// EXTERNAL MODULE: ./node_modules/@angular/router/fesm2015/router.js + 5 modules
var fesm2015_router = __webpack_require__("iInd");

// EXTERNAL MODULE: ./src/app/shared/services/cliente.service.ts
var cliente_service = __webpack_require__("eCBd");

// EXTERNAL MODULE: ./src/app/shared/services/nav-extras.service.ts
var nav_extras_service = __webpack_require__("JmCY");

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/dashboard.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 





































var styles_DashboardComponent = [styles];
var RenderType_DashboardComponent = core["ɵcrt"]({ encapsulation: 0, styles: styles_DashboardComponent, data: {} });

function View_DashboardComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "nb-option", [], [[2, "selected", null], [1, "disabled", 0], [8, "tabIndex", 0]], [[null, "click"], [null, "keydown.space"], [null, "keydown.enter"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("keydown.space" === en)) {
        var pd_1 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_1 && ad);
    } if (("keydown.enter" === en)) {
        var pd_2 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_2 && ad);
    } return ad; }, index_ngfactory["Z" /* View_NbOptionComponent_0 */], index_ngfactory["C" /* RenderType_NbOptionComponent */])), core["ɵdid"](1, 180224, [[1, 4]], 0, fesm2015["yc" /* NbOptionComponent */], [fesm2015["k" /* NB_SELECT_INJECTION_TOKEN */], core["ElementRef"], core["ChangeDetectorRef"]], { value: [0, "value"] }, null), (_l()(), core["ɵted"](2, 0, [" ", " "]))], function (_ck, _v) { var currVal_3 = _v.context.$implicit; _ck(_v, 1, 0, currVal_3); }, function (_ck, _v) { var currVal_0 = core["ɵnov"](_v, 1).selectedClass; var currVal_1 = core["ɵnov"](_v, 1).disabledAttribute; var currVal_2 = core["ɵnov"](_v, 1).tabindex; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2); var currVal_4 = _v.context.$implicit.label; _ck(_v, 2, 0, currVal_4); }); }
function View_DashboardComponent_4(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 6, "div", [["class", "d-block dashboard-phrase-text"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" ", " ", " voc\u00EA ", " deixou de repassar "])), (_l()(), core["ɵeld"](2, 0, null, null, 3, "strong", [], null, null, null, null, null)), (_l()(), core["ɵeld"](3, 0, null, null, 2, "span", [["class", "text-success"]], null, null, null, null, null)), (_l()(), core["ɵted"](4, null, ["", ""])), core["ɵppd"](5, 2), (_l()(), core["ɵted"](-1, null, [" \u00E0 outras plataformas de delivery porque utiliza o Pedido Agora. "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.isCurrentMonth ? "Esse m\u00EAs" : "Em"); var currVal_1 = (_co.isCurrentMonth ? "" : _co.selectedDate.label); var currVal_2 = (_co.isCurrentMonth ? "j\u00E1" : ""); _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2); var currVal_3 = core["ɵunv"](_v, 4, 0, _ck(_v, 5, 0, core["ɵnov"](_v.parent.parent.parent, 0), _co.savedMoney, "BRL")); _ck(_v, 4, 0, currVal_3); }); }
function View_DashboardComponent_5(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "div", [["class", "d-block dashboard-phrase-text"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" Sua mensalidade vence todo dia ", ". Fique atento! "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.company.diaVencimentoMensalidade; _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardComponent_6(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "div", [["class", "d-block dashboard-phrase-text"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" ", " ", " ", ", acrescentando ", " \u00E0 sua mensalidade. "])), core["ɵppd"](2, 2)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = ((_co.extraOrders > 1) ? "Houveram" : "Houve"); var currVal_1 = _co.extraOrders; var currVal_2 = ((_co.extraOrders > 1) ? "pedidos excedentes" : "pedido excedente"); var currVal_3 = core["ɵunv"](_v, 1, 3, _ck(_v, 2, 0, core["ɵnov"](_v.parent.parent.parent, 0), (_co.extraOrders * _co.company.valorPedidoExcedente), "BRL")); _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3); }); }
function View_DashboardComponent_7(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "div", [["class", "d-block dashboard-phrase-text"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" Voc\u00EA j\u00E1 teve ", "% do seu limite de pedidos atingido. Voc\u00EA ainda tem ", " pedidos dispon\u00EDveis. "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.progress; var currVal_1 = (_co.company.limitePedidos - (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadePedidos) - ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeCancelados))); _ck(_v, 1, 0, currVal_0, currVal_1); }); }
function View_DashboardComponent_8(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "div", [["class", "progress-bar"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 1, "nb-progress-bar", [], [[2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-success", null], [2, "status-info", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null]], null, null, index_ngfactory["ab" /* View_NbProgressBarComponent_0 */], index_ngfactory["D" /* RenderType_NbProgressBarComponent */])), core["ɵdid"](2, 49152, null, 0, fesm2015["Rc" /* NbProgressBarComponent */], [], { value: [0, "value"], status: [1, "status"], displayValue: [2, "displayValue"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_12 = _co.progress; var currVal_13 = _co.status; var currVal_14 = true; _ck(_v, 2, 0, currVal_12, currVal_13, currVal_14); }, function (_ck, _v) { var currVal_0 = core["ɵnov"](_v, 2).tiny; var currVal_1 = core["ɵnov"](_v, 2).small; var currVal_2 = core["ɵnov"](_v, 2).medium; var currVal_3 = core["ɵnov"](_v, 2).large; var currVal_4 = core["ɵnov"](_v, 2).giant; var currVal_5 = core["ɵnov"](_v, 2).primary; var currVal_6 = core["ɵnov"](_v, 2).success; var currVal_7 = core["ɵnov"](_v, 2).info; var currVal_8 = core["ɵnov"](_v, 2).warning; var currVal_9 = core["ɵnov"](_v, 2).danger; var currVal_10 = core["ɵnov"](_v, 2).basic; var currVal_11 = core["ɵnov"](_v, 2).control; _ck(_v, 1, 1, [currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11]); }); }
function View_DashboardComponent_3(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 11, "div", [["class", "card-body d-flex align-items-center"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 10, "div", [["class", "w-100"]], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_4)), core["ɵdid"](3, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_5)), core["ɵdid"](5, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_6)), core["ɵdid"](7, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_7)), core["ɵdid"](9, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_8)), core["ɵdid"](11, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.savedMoney > 0); _ck(_v, 3, 0, currVal_0); var currVal_1 = (_co.company.diaVencimentoMensalidade > 0); _ck(_v, 5, 0, currVal_1); var currVal_2 = (((_co.isCurrentMonth || (_co.selectedDate === _co.months[1])) && (_co.company.limitePedidos > 0)) && (_co.dashboardInfo.quantidadePedidos > _co.company.limitePedidos)); _ck(_v, 7, 0, currVal_2); var currVal_3 = (((_co.company.limitePedidos > 0) && (_co.progress > 0)) && (_co.progress < 100)); _ck(_v, 9, 0, currVal_3); var currVal_4 = (((_co.company.limitePedidos > 0) && (_co.progress > 0)) && (_co.progress < 100)); _ck(_v, 11, 0, currVal_4); }, null); }
function View_DashboardComponent_10(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "div", [["class", "card-body d-flex align-items-center w-100"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 1, "omni-no-content", [["message", "O seu plano n\u00E3o est\u00E1 configurado. Entre em contato com o suporte do Pedido Agora para mais informa\u00E7\u00F5es."]], null, null, null, no_content_component_ngfactory["b" /* View_NoContentComponent_0 */], no_content_component_ngfactory["a" /* RenderType_NoContentComponent */])), core["ɵdid"](2, 114688, null, 0, no_content_component["a" /* NoContentComponent */], [], { isEmpty: [0, "isEmpty"], message: [1, "message"] }, null)], function (_ck, _v) { var currVal_0 = true; var currVal_1 = "O seu plano n\u00E3o est\u00E1 configurado. Entre em contato com o suporte do Pedido Agora para mais informa\u00E7\u00F5es."; _ck(_v, 2, 0, currVal_0, currVal_1); }, null); }
function View_DashboardComponent_11(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "div", [["class", "card-body d-flex align-items-center w-100"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 1, "omni-no-content", [["message", "Sua loja ainda n\u00E3o iniciou as opera\u00E7\u00F5es de delivery!"]], null, null, null, no_content_component_ngfactory["b" /* View_NoContentComponent_0 */], no_content_component_ngfactory["a" /* RenderType_NoContentComponent */])), core["ɵdid"](2, 114688, null, 0, no_content_component["a" /* NoContentComponent */], [], { isEmpty: [0, "isEmpty"], message: [1, "message"] }, null)], function (_ck, _v) { var currVal_0 = true; var currVal_1 = "Sua loja ainda n\u00E3o iniciou as opera\u00E7\u00F5es de delivery!"; _ck(_v, 2, 0, currVal_0, currVal_1); }, null); }
function View_DashboardComponent_9(_l) { return core["ɵvid"](0, [(_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_10)), core["ɵdid"](1, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"], ngIfElse: [1, "ngIfElse"] }, null), (_l()(), core["ɵand"](0, [["withoutOperations", 2]], null, 0, null, View_DashboardComponent_11))], function (_ck, _v) { var _co = _v.component; var currVal_0 = ((_co.company.fazDelivery || _co.company.fazRetirada) && (_co.company.diaVencimentoMensalidade === 0)); var currVal_1 = core["ɵnov"](_v, 2); _ck(_v, 1, 0, currVal_0, currVal_1); }, null); }
function View_DashboardComponent_2(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 3, "div", [["class", "card flex-grow-1 ml-2"]], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_3)), core["ɵdid"](2, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"], ngIfElse: [1, "ngIfElse"] }, null), (_l()(), core["ɵand"](0, [["noAccountData", 2]], null, 0, null, View_DashboardComponent_9))], function (_ck, _v) { var _co = _v.component; var currVal_0 = (((!_co.isLoading && _co.selectedDate) && _co.dashboardInfo) && (_co.company.diaVencimentoMensalidade > 0)); var currVal_1 = core["ɵnov"](_v, 3); _ck(_v, 2, 0, currVal_0, currVal_1); }, null); }
function View_DashboardComponent_12(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 3, "div", [["class", "card flex-grow-1 ml-2"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 2, "div", [["class", "card-body d-flex align-items-center"]], null, null, null, null, null)), (_l()(), core["ɵeld"](2, 0, null, null, 1, "omni-inline-loader", [["label", "Obtendo informa\u00E7\u00F5es do plano..."]], null, null, null, inline_loader_component_ngfactory["b" /* View_InlineLoaderComponent_0 */], inline_loader_component_ngfactory["a" /* RenderType_InlineLoaderComponent */])), core["ɵdid"](3, 114688, null, 0, inline_loader_component["a" /* InlineLoaderComponent */], [], { label: [0, "label"], refreshState: [1, "refreshState"] }, null)], function (_ck, _v) { var currVal_0 = "Obtendo informa\u00E7\u00F5es do plano..."; var currVal_1 = true; _ck(_v, 3, 0, currVal_0, currVal_1); }, null); }
function View_DashboardComponent_13(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "p", [["class", "text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" Delivery: ", " "])), core["ɵppd"](2, 2)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵunv"](_v, 1, 0, _ck(_v, 2, 0, core["ɵnov"](_v.parent, 0), ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorDelivery), "BRL")); _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardComponent_14(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "p", [["class", "text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" Retirada: ", " "])), core["ɵppd"](2, 2)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵunv"](_v, 1, 0, _ck(_v, 2, 0, core["ɵnov"](_v.parent, 0), ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorRetirada), "BRL")); _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardComponent_15(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "p", [["class", "text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" Mesa: ", " "])), core["ɵppd"](2, 2)], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵunv"](_v, 1, 0, _ck(_v, 2, 0, core["ɵnov"](_v.parent, 0), ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorNaMesa), "BRL")); _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardComponent_16(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "p", [["class", "text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" Delivery: ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeDelivery); _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardComponent_17(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "p", [["class", "text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" Retirada: ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeRetirada); _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardComponent_18(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "p", [["class", "text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" Mesa: ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeNaMesa); _ck(_v, 1, 0, currVal_0); }); }
function View_DashboardComponent_19(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 4, "div", [["class", "dashboard-container mt-3"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 1, "omni-dashboard-card", [["cardIcon", "assets/images/money.png"], ["cardTitle", "Faturamento Externo"]], null, null, null, View_DashboardCardComponent_0, RenderType_DashboardCardComponent)), core["ɵdid"](2, 114688, null, 0, dashboard_card_component["a" /* DashboardCardComponent */], [], { cardIcon: [0, "cardIcon"], isLoading: [1, "isLoading"], cardTitle: [2, "cardTitle"], value: [3, "value"], valueInMoney: [4, "valueInMoney"] }, null), (_l()(), core["ɵeld"](3, 0, null, null, 1, "omni-dashboard-card", [["cardIcon", "assets/images/cart.png"], ["title", "Quantidade de pedidos externos"]], null, null, null, View_DashboardCardComponent_0, RenderType_DashboardCardComponent)), core["ɵdid"](4, 114688, null, 0, dashboard_card_component["a" /* DashboardCardComponent */], [], { cardIcon: [0, "cardIcon"], isLoading: [1, "isLoading"], value: [2, "value"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = "assets/images/money.png"; var currVal_1 = _co.isLoading; var currVal_2 = "Faturamento Externo"; var currVal_3 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorPedidosExternos); var currVal_4 = true; _ck(_v, 2, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4); var currVal_5 = "assets/images/cart.png"; var currVal_6 = _co.isLoading; var currVal_7 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadePedidosExternos); _ck(_v, 4, 0, currVal_5, currVal_6, currVal_7); }, null); }
function View_DashboardComponent_0(_l) { return core["ɵvid"](0, [core["ɵpid"](0, common["d" /* CurrencyPipe */], [core["LOCALE_ID"]]), core["ɵpid"](0, common["g" /* DecimalPipe */], [core["LOCALE_ID"]]), (_l()(), core["ɵeld"](2, 0, null, null, 3, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), core["ɵeld"](3, 0, null, null, 2, "div", [["class", "col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](4, 0, null, null, 1, "omni-page-title", [["pageTitle", "Presen\u00E7a da Loja"], ["size", "1"], ["tutorialTag", "chartIcon"]], null, null, null, page_title_component_ngfactory["b" /* View_PageTitleComponent_0 */], page_title_component_ngfactory["a" /* RenderType_PageTitleComponent */])), core["ɵdid"](5, 114688, null, 0, page_title_component["a" /* PageTitleComponent */], [fesm2015["Rb" /* NbDialogService */]], { icon: [0, "icon"], tutorial: [1, "tutorial"], tutorialTag: [2, "tutorialTag"], pageTitle: [3, "pageTitle"], size: [4, "size"] }, null), (_l()(), core["ɵeld"](6, 0, null, null, 17, "div", [["class", "d-flex flex-row align-items-stretch"]], null, null, null, null, null)), (_l()(), core["ɵeld"](7, 0, null, null, 12, "div", [["class", "card flex-shrink-1 min-w-250"]], null, null, null, null, null)), (_l()(), core["ɵeld"](8, 0, null, null, 11, "div", [["class", "card-body"]], null, null, null, null, null)), (_l()(), core["ɵeld"](9, 0, null, null, 10, "div", [["class", "d-flex flex-column"]], null, null, null, null, null)), (_l()(), core["ɵeld"](10, 0, null, null, 1, "b", [["class", "combo-label form-group"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Selecione um per\u00EDodo:"])), (_l()(), core["ɵeld"](12, 0, null, null, 7, "nb-select", [["fullWidth", ""], ["placeholder", "Selecione um per\u00EDodo"], ["status", "primary"]], [[2, "appearance-outline", null], [2, "appearance-filled", null], [2, "appearance-hero", null], [2, "full-width", null], [2, "open", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-round", null], [2, "shape-semi-round", null]], [[null, "selectedChange"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("selectedChange" === en)) {
        var pd_0 = ((_co.selectedDate = $event) !== false);
        ad = (pd_0 && ad);
    } if (("selectedChange" === en)) {
        var pd_1 = (_co.loadDashboard() !== false);
        ad = (pd_1 && ad);
    } return ad; }, index_ngfactory["db" /* View_NbSelectComponent_0 */], index_ngfactory["G" /* RenderType_NbSelectComponent */])), core["ɵprd"](6144, null, fesm2015["k" /* NB_SELECT_INJECTION_TOKEN */], null, [fesm2015["id" /* NbSelectComponent */]]), core["ɵprd"](5120, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015["id" /* NbSelectComponent */]]), core["ɵdid"](15, 5423104, null, 2, fesm2015["id" /* NbSelectComponent */], [fesm2015["g" /* NB_DOCUMENT */], fesm2015["Gc" /* NbOverlayService */], core["ElementRef"], fesm2015["Oc" /* NbPositionBuilderService */], fesm2015["de" /* NbTriggerStrategyBuilderService */], core["ChangeDetectorRef"], fesm2015["qe" /* ɵd */]], { status: [0, "status"], disabled: [1, "disabled"], fullWidth: [2, "fullWidth"], placeholder: [3, "placeholder"], selected: [4, "selected"] }, { selectedChange: "selectedChange" }), core["ɵqud"](603979776, 1, { options: 1 }), core["ɵqud"](603979776, 2, { customLabel: 0 }), (_l()(), core["ɵand"](16777216, null, 1, 1, null, View_DashboardComponent_1)), core["ɵdid"](19, 278528, null, 0, common["n" /* NgForOf */], [core["ViewContainerRef"], core["TemplateRef"], core["IterableDiffers"]], { ngForOf: [0, "ngForOf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_2)), core["ɵdid"](21, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_12)), core["ɵdid"](23, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](24, 0, null, null, 30, "div", [["class", "dashboard-container mt-3"]], null, null, null, null, null)), (_l()(), core["ɵeld"](25, 0, null, null, 10, "omni-dashboard-card", [["cardIcon", "assets/images/money.png"], ["cardTitle", "Faturamento"]], null, null, null, View_DashboardCardComponent_0, RenderType_DashboardCardComponent)), core["ɵdid"](26, 114688, null, 0, dashboard_card_component["a" /* DashboardCardComponent */], [], { cardIcon: [0, "cardIcon"], footerText: [1, "footerText"], isLoading: [2, "isLoading"], percentage: [3, "percentage"], cardTitle: [4, "cardTitle"], value: [5, "value"], valueInMoney: [6, "valueInMoney"] }, null), core["ɵppd"](27, 2), (_l()(), core["ɵeld"](28, 0, null, 0, 7, "div", [["class", "dashboard-body row"]], null, null, null, null, null)), (_l()(), core["ɵeld"](29, 0, null, null, 6, "div", [["class", "col-12 ml-0"]], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_13)), core["ɵdid"](31, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_14)), core["ɵdid"](33, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_15)), core["ɵdid"](35, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](36, 0, null, null, 14, "omni-dashboard-card", [["cardIcon", "assets/images/cart.png"], ["cardTitle", "Pedidos"]], null, null, null, View_DashboardCardComponent_0, RenderType_DashboardCardComponent)), core["ɵdid"](37, 114688, null, 0, dashboard_card_component["a" /* DashboardCardComponent */], [], { cardIcon: [0, "cardIcon"], footerText: [1, "footerText"], isLoading: [2, "isLoading"], percentage: [3, "percentage"], cardTitle: [4, "cardTitle"], value: [5, "value"] }, null), (_l()(), core["ɵeld"](38, 0, null, 0, 12, "div", [["class", "d-flex flex-row align-items-center dashboard-body"]], null, null, null, null, null)), (_l()(), core["ɵeld"](39, 0, null, null, 6, "div", [["class", "flex-grow-1 ml-0"]], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_16)), core["ɵdid"](41, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_17)), core["ɵdid"](43, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_18)), core["ɵdid"](45, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](46, 0, null, null, 4, "div", [], null, null, null, null, null)), (_l()(), core["ɵeld"](47, 0, null, null, 3, "button", [["ghost", ""], ["nbButton", ""], ["size", "tiny"], ["status", "primary"], ["type", "button"]], [[2, "appearance-filled", null], [2, "appearance-outline", null], [2, "appearance-ghost", null], [2, "appearance-hero", null], [2, "full-width", null], [1, "aria-disabled", 0], [2, "btn-disabled", null], [1, "tabindex", 0], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-round", null], [2, "shape-semi-round", null], [2, "icon-start", null], [2, "icon-end", null], [2, "transitions", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 48).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("click" === en)) {
        var pd_1 = (_co.navigate() !== false);
        ad = (pd_1 && ad);
    } return ad; }, index_ngfactory["M" /* View_NbButtonComponent_0 */], index_ngfactory["p" /* RenderType_NbButtonComponent */])), core["ɵdid"](48, 4243456, null, 0, fesm2015["L" /* NbButtonComponent */], [core["Renderer2"], core["ElementRef"], core["ChangeDetectorRef"]], { size: [0, "size"], status: [1, "status"], ghost: [2, "ghost"] }, null), (_l()(), core["ɵeld"](49, 0, null, 0, 1, "fa-icon", [["class", "ng-fa-icon"], ["size", "2x"]], [[1, "title", 0], [8, "innerHTML", 1]], null, null, angular_fontawesome_ngfactory["d" /* View_FaIconComponent_0 */], angular_fontawesome_ngfactory["c" /* RenderType_FaIconComponent */])), core["ɵdid"](50, 573440, null, 0, angular_fontawesome["c" /* FaIconComponent */], [platform_browser["b" /* DomSanitizer */], angular_fontawesome["a" /* FaConfig */], angular_fontawesome["d" /* FaIconLibrary */], [2, angular_fontawesome["i" /* FaStackItemSizeDirective */]]], { icon: [0, "icon"], size: [1, "size"] }, null), (_l()(), core["ɵeld"](51, 0, null, null, 1, "omni-dashboard-card", [["cardIcon", "assets/images/list.png"], ["cardTitle", "Ticket M\u00E9dio"], ["footerText", "Valor m\u00E9dio por pedido"]], null, null, null, View_DashboardCardComponent_0, RenderType_DashboardCardComponent)), core["ɵdid"](52, 114688, null, 0, dashboard_card_component["a" /* DashboardCardComponent */], [], { cardIcon: [0, "cardIcon"], footerText: [1, "footerText"], isLoading: [2, "isLoading"], cardTitle: [3, "cardTitle"], value: [4, "value"], valueInMoney: [5, "valueInMoney"] }, null), (_l()(), core["ɵeld"](53, 0, null, null, 1, "omni-dashboard-card", [["cardIcon", "assets/images/man.png"], ["cardTitle", "Clientes cadastrados"]], null, null, null, View_DashboardCardComponent_0, RenderType_DashboardCardComponent)), core["ɵdid"](54, 114688, null, 0, dashboard_card_component["a" /* DashboardCardComponent */], [], { cardIcon: [0, "cardIcon"], footerText: [1, "footerText"], isLoading: [2, "isLoading"], cardTitle: [3, "cardTitle"], value: [4, "value"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_DashboardComponent_19)), core["ɵdid"](56, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](57, 0, null, null, 8, "div", [["class", "dashboard-container mt-3"]], null, null, null, null, null)), (_l()(), core["ɵeld"](58, 0, null, null, 3, "omni-widget", [["widgetTitle", "Faturamento no Per\u00EDodo"]], null, null, null, View_WidgetComponent_0, RenderType_WidgetComponent)), core["ɵdid"](59, 49152, null, 0, widget_component["a" /* WidgetComponent */], [], { cssClass: [0, "cssClass"], widgetTitle: [1, "widgetTitle"] }, null), (_l()(), core["ɵeld"](60, 0, null, 0, 1, "omni-billing-in-period", [], null, null, null, View_BillingInPeriodComponent_0, RenderType_BillingInPeriodComponent)), core["ɵdid"](61, 835584, null, 0, billing_in_period_component_BillingInPeriodComponent, [chart_service_ChartService], { isLoading: [0, "isLoading"], month: [1, "month"], orders: [2, "orders"], year: [3, "year"] }, null), (_l()(), core["ɵeld"](62, 0, null, null, 3, "omni-widget", [["widgetTitle", "Vendas por Categoria"]], null, null, null, View_WidgetComponent_0, RenderType_WidgetComponent)), core["ɵdid"](63, 49152, null, 0, widget_component["a" /* WidgetComponent */], [], { cssClass: [0, "cssClass"], widgetTitle: [1, "widgetTitle"] }, null), (_l()(), core["ɵeld"](64, 0, null, 0, 1, "omni-sales-by-category", [], null, null, null, View_SalesByCategoryComponent_0, RenderType_SalesByCategoryComponent)), core["ɵdid"](65, 835584, null, 0, SalesByCategoryComponent, [chart_service_ChartService], { isLoading: [0, "isLoading"], top10Categories: [1, "top10Categories"] }, null), (_l()(), core["ɵeld"](66, 0, null, null, 4, "div", [["class", "dashboard-container mt-3"]], null, null, null, null, null)), (_l()(), core["ɵeld"](67, 0, null, null, 3, "omni-widget", [["widgetTitle", "Vendas por Dia"]], null, null, null, View_WidgetComponent_0, RenderType_WidgetComponent)), core["ɵdid"](68, 49152, null, 0, widget_component["a" /* WidgetComponent */], [], { widgetTitle: [0, "widgetTitle"] }, null), (_l()(), core["ɵeld"](69, 0, null, 0, 1, "omni-sales-by-day", [], null, null, null, View_SalesByDayComponent_0, RenderType_SalesByDayComponent)), core["ɵdid"](70, 835584, null, 0, sales_by_day_component_SalesByDayComponent, [chart_service_ChartService], { isLoading: [0, "isLoading"], month: [1, "month"], orders: [2, "orders"], year: [3, "year"] }, null), (_l()(), core["ɵeld"](71, 0, null, null, 12, "div", [["class", "dashboard-container mt-3"]], null, null, null, null, null)), (_l()(), core["ɵeld"](72, 0, null, null, 3, "omni-widget", [["size", "medium"], ["widgetTitle", "Top 10 Clientes"]], null, null, null, View_WidgetComponent_0, RenderType_WidgetComponent)), core["ɵdid"](73, 49152, null, 0, widget_component["a" /* WidgetComponent */], [], { widgetTitle: [0, "widgetTitle"] }, null), (_l()(), core["ɵeld"](74, 0, null, 0, 1, "omni-top10-list", [], null, null, null, View_Top10ListComponent_0, RenderType_Top10ListComponent)), core["ɵdid"](75, 114688, null, 0, top10_list_component_Top10ListComponent, [], { top10: [0, "top10"] }, null), (_l()(), core["ɵeld"](76, 0, null, null, 3, "omni-widget", [["size", "medium"], ["widgetTitle", "Top 10 Produtos"]], null, null, null, View_WidgetComponent_0, RenderType_WidgetComponent)), core["ɵdid"](77, 49152, null, 0, widget_component["a" /* WidgetComponent */], [], { widgetTitle: [0, "widgetTitle"] }, null), (_l()(), core["ɵeld"](78, 0, null, 0, 1, "omni-top10-list", [], null, null, null, View_Top10ListComponent_0, RenderType_Top10ListComponent)), core["ɵdid"](79, 114688, null, 0, top10_list_component_Top10ListComponent, [], { top10: [0, "top10"] }, null), (_l()(), core["ɵeld"](80, 0, null, null, 3, "omni-widget", [["size", "medium"], ["widgetTitle", "Top 10 Bairros"]], null, null, null, View_WidgetComponent_0, RenderType_WidgetComponent)), core["ɵdid"](81, 49152, null, 0, widget_component["a" /* WidgetComponent */], [], { widgetTitle: [0, "widgetTitle"] }, null), (_l()(), core["ɵeld"](82, 0, null, 0, 1, "omni-top10-list", [], null, null, null, View_Top10ListComponent_0, RenderType_Top10ListComponent)), core["ɵdid"](83, 114688, null, 0, top10_list_component_Top10ListComponent, [], { top10: [0, "top10"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.chartIcon; var currVal_1 = true; var currVal_2 = "chartIcon"; var currVal_3 = "Presen\u00E7a da Loja"; var currVal_4 = "1"; _ck(_v, 5, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4); var currVal_25 = "primary"; var currVal_26 = _co.isLoading; var currVal_27 = ""; var currVal_28 = "Selecione um per\u00EDodo"; var currVal_29 = _co.selectedDate; _ck(_v, 15, 0, currVal_25, currVal_26, currVal_27, currVal_28, currVal_29); var currVal_30 = _co.months; _ck(_v, 19, 0, currVal_30); var currVal_31 = !_co.isLoading; _ck(_v, 21, 0, currVal_31); var currVal_32 = _co.isLoading; _ck(_v, 23, 0, currVal_32); var currVal_33 = "assets/images/money.png"; var currVal_34 = core["ɵinlineInterpolate"](1, "", core["ɵunv"](_v, 26, 1, _ck(_v, 27, 0, core["ɵnov"](_v, 1), (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorCancelados) || 0), "1.2-2")), " Cancelados"); var currVal_35 = _co.isLoading; var currVal_36 = _co.cancelBillingPercentage; var currVal_37 = "Faturamento"; var currVal_38 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorPedidos); var currVal_39 = true; _ck(_v, 26, 0, currVal_33, currVal_34, currVal_35, currVal_36, currVal_37, currVal_38, currVal_39); var currVal_40 = (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorDelivery) > 0); _ck(_v, 31, 0, currVal_40); var currVal_41 = (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorRetirada) > 0); _ck(_v, 33, 0, currVal_41); var currVal_42 = (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.valorNaMesa) > 0); _ck(_v, 35, 0, currVal_42); var currVal_43 = "assets/images/cart.png"; var currVal_44 = core["ɵinlineInterpolate"](1, "", ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeCancelados), " Cancelados"); var currVal_45 = _co.isLoading; var currVal_46 = _co.cancelOrderPercentage; var currVal_47 = "Pedidos"; var currVal_48 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadePedidos); _ck(_v, 37, 0, currVal_43, currVal_44, currVal_45, currVal_46, currVal_47, currVal_48); var currVal_49 = (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeDelivery) > 0); _ck(_v, 41, 0, currVal_49); var currVal_50 = (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeRetirada) > 0); _ck(_v, 43, 0, currVal_50); var currVal_51 = (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeNaMesa) > 0); _ck(_v, 45, 0, currVal_51); var currVal_78 = "tiny"; var currVal_79 = "primary"; var currVal_80 = ""; _ck(_v, 48, 0, currVal_78, currVal_79, currVal_80); var currVal_83 = _co.viewIcon; var currVal_84 = "2x"; _ck(_v, 50, 0, currVal_83, currVal_84); var currVal_85 = "assets/images/list.png"; var currVal_86 = "Valor m\u00E9dio por pedido"; var currVal_87 = _co.isLoading; var currVal_88 = "Ticket M\u00E9dio"; var currVal_89 = _co.orderAverageValue; var currVal_90 = true; _ck(_v, 52, 0, currVal_85, currVal_86, currVal_87, currVal_88, currVal_89, currVal_90); var currVal_91 = "assets/images/man.png"; var currVal_92 = core["ɵinlineInterpolate"](1, "Este m\u00EAs ", ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeClientesMes), ""); var currVal_93 = _co.isLoading; var currVal_94 = "Clientes cadastrados"; var currVal_95 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.quantidadeClientes); _ck(_v, 54, 0, currVal_91, currVal_92, currVal_93, currVal_94, currVal_95); var currVal_96 = _co.loggedAsAdmin; _ck(_v, 56, 0, currVal_96); var currVal_97 = ((((_co.dashboardInfo == null) ? null : _co.dashboardInfo.pedidos) && (((_co.dashboardInfo == null) ? null : _co.dashboardInfo.pedidos.length) > 0)) ? "inline-chart" : ""); var currVal_98 = "Faturamento no Per\u00EDodo"; _ck(_v, 59, 0, currVal_97, currVal_98); var currVal_99 = _co.isLoading; var currVal_100 = _co.selectedMonth; var currVal_101 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.pedidos); var currVal_102 = _co.selectedYear; _ck(_v, 61, 0, currVal_99, currVal_100, currVal_101, currVal_102); var currVal_103 = ((_co.top10Categories && (_co.top10Categories.length > 0)) ? "inline-chart" : ""); var currVal_104 = "Vendas por Categoria"; _ck(_v, 63, 0, currVal_103, currVal_104); var currVal_105 = _co.isLoading; var currVal_106 = _co.top10Categories; _ck(_v, 65, 0, currVal_105, currVal_106); var currVal_107 = "Vendas por Dia"; _ck(_v, 68, 0, currVal_107); var currVal_108 = _co.isLoading; var currVal_109 = _co.selectedMonth; var currVal_110 = ((_co.dashboardInfo == null) ? null : _co.dashboardInfo.pedidos); var currVal_111 = _co.selectedYear; _ck(_v, 70, 0, currVal_108, currVal_109, currVal_110, currVal_111); var currVal_112 = "Top 10 Clientes"; _ck(_v, 73, 0, currVal_112); var currVal_113 = _co.top10Customers; _ck(_v, 75, 0, currVal_113); var currVal_114 = "Top 10 Produtos"; _ck(_v, 77, 0, currVal_114); var currVal_115 = _co.top10Products; _ck(_v, 79, 0, currVal_115); var currVal_116 = "Top 10 Bairros"; _ck(_v, 81, 0, currVal_116); var currVal_117 = _co.top10Neighborhoods; _ck(_v, 83, 0, currVal_117); }, function (_ck, _v) { var currVal_5 = core["ɵnov"](_v, 15).outline; var currVal_6 = core["ɵnov"](_v, 15).filled; var currVal_7 = core["ɵnov"](_v, 15).hero; var currVal_8 = core["ɵnov"](_v, 15).fullWidth; var currVal_9 = core["ɵnov"](_v, 15).isOpen; var currVal_10 = core["ɵnov"](_v, 15).tiny; var currVal_11 = core["ɵnov"](_v, 15).small; var currVal_12 = core["ɵnov"](_v, 15).medium; var currVal_13 = core["ɵnov"](_v, 15).large; var currVal_14 = core["ɵnov"](_v, 15).giant; var currVal_15 = core["ɵnov"](_v, 15).primary; var currVal_16 = core["ɵnov"](_v, 15).info; var currVal_17 = core["ɵnov"](_v, 15).success; var currVal_18 = core["ɵnov"](_v, 15).warning; var currVal_19 = core["ɵnov"](_v, 15).danger; var currVal_20 = core["ɵnov"](_v, 15).basic; var currVal_21 = core["ɵnov"](_v, 15).control; var currVal_22 = core["ɵnov"](_v, 15).rectangle; var currVal_23 = core["ɵnov"](_v, 15).round; var currVal_24 = core["ɵnov"](_v, 15).semiRound; _ck(_v, 12, 1, [currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22, currVal_23, currVal_24]); var currVal_52 = core["ɵnov"](_v, 48).filled; var currVal_53 = core["ɵnov"](_v, 48).outline; var currVal_54 = core["ɵnov"](_v, 48).ghost; var currVal_55 = core["ɵnov"](_v, 48).hero; var currVal_56 = core["ɵnov"](_v, 48).fullWidth; var currVal_57 = core["ɵnov"](_v, 48).disabled; var currVal_58 = core["ɵnov"](_v, 48).disabled; var currVal_59 = core["ɵnov"](_v, 48).tabbable; var currVal_60 = core["ɵnov"](_v, 48).tiny; var currVal_61 = core["ɵnov"](_v, 48).small; var currVal_62 = core["ɵnov"](_v, 48).medium; var currVal_63 = core["ɵnov"](_v, 48).large; var currVal_64 = core["ɵnov"](_v, 48).giant; var currVal_65 = core["ɵnov"](_v, 48).primary; var currVal_66 = core["ɵnov"](_v, 48).info; var currVal_67 = core["ɵnov"](_v, 48).success; var currVal_68 = core["ɵnov"](_v, 48).warning; var currVal_69 = core["ɵnov"](_v, 48).danger; var currVal_70 = core["ɵnov"](_v, 48).basic; var currVal_71 = core["ɵnov"](_v, 48).control; var currVal_72 = core["ɵnov"](_v, 48).rectangle; var currVal_73 = core["ɵnov"](_v, 48).round; var currVal_74 = core["ɵnov"](_v, 48).semiRound; var currVal_75 = core["ɵnov"](_v, 48).iconLeft; var currVal_76 = core["ɵnov"](_v, 48).iconRight; var currVal_77 = core["ɵnov"](_v, 48).transitions; _ck(_v, 47, 1, [currVal_52, currVal_53, currVal_54, currVal_55, currVal_56, currVal_57, currVal_58, currVal_59, currVal_60, currVal_61, currVal_62, currVal_63, currVal_64, currVal_65, currVal_66, currVal_67, currVal_68, currVal_69, currVal_70, currVal_71, currVal_72, currVal_73, currVal_74, currVal_75, currVal_76, currVal_77]); var currVal_81 = core["ɵnov"](_v, 50).title; var currVal_82 = core["ɵnov"](_v, 50).renderedIconHTML; _ck(_v, 49, 0, currVal_81, currVal_82); }); }
function View_DashboardComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "ng-component", [], null, null, null, View_DashboardComponent_0, RenderType_DashboardComponent)), core["ɵdid"](1, 114688, null, 0, dashboard_component_DashboardComponent, [alert_service["a" /* AlertService */], auth_service["a" /* AuthService */], messages_service["a" /* MessagesService */], request_service["a" /* RequestService */], fesm2015["Ld" /* NbToastrService */], fesm2015_forms["g" /* FormBuilder */], fesm2015_router["l" /* Router */], cliente_service["a" /* ClienteService */], nav_extras_service["a" /* NavExtrasService */], pedido_service["a" /* PedidoService */]], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var DashboardComponentNgFactory = core["ɵccf"]("ng-component", dashboard_component_DashboardComponent, View_DashboardComponent_Host_0, {}, {}, []);


// EXTERNAL MODULE: ./node_modules/@sweetalert2/ngx-sweetalert2/sweetalert2-ngx-sweetalert2.ngfactory.js
var sweetalert2_ngx_sweetalert2_ngfactory = __webpack_require__("kExW");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/typeahead/ngx-bootstrap-typeahead.ngfactory.js
var ngx_bootstrap_typeahead_ngfactory = __webpack_require__("SfUx");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/cashback/cashback-credit-dialog/cashback-credit-dialog.component.ngfactory.js + 1 modules
var cashback_credit_dialog_component_ngfactory = __webpack_require__("sKAB");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/category/category-quick-form-dialog/category-quick-form-dialog.component.ngfactory.js + 1 modules
var category_quick_form_dialog_component_ngfactory = __webpack_require__("iY9W");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/customization/edit-customization-value-dialog/edit-customization-value-dialog.component.ngfactory.js + 1 modules
var edit_customization_value_dialog_component_ngfactory = __webpack_require__("x9iD");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/edit-delivery-address-dialog/edit-delivery-address-dialog.component.ngfactory.js + 1 modules
var edit_delivery_address_dialog_component_ngfactory = __webpack_require__("EXuQ");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/cashback/extract-cashback-list-dialog/extract-cashback-list-dialog.component.ngfactory.js + 1 modules
var extract_cashback_list_dialog_component_ngfactory = __webpack_require__("ZjL+");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/orders/order-detail-dialog/order-detail-dialog.component.ngfactory.js + 3 modules
var order_detail_dialog_component_ngfactory = __webpack_require__("lbLe");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/orders/order-update-dialog/order-update-dialog.component.ngfactory.js + 1 modules
var order_update_dialog_component_ngfactory = __webpack_require__("/Cjm");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/promotion/promotion-rule-edit-dialog/promotion-rule-edit-dialog.component.ngfactory.js + 1 modules
var promotion_rule_edit_dialog_component_ngfactory = __webpack_require__("AHux");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/view-picture-dialog/view-picture-dialog.component.ngfactory.js + 1 modules
var view_picture_dialog_component_ngfactory = __webpack_require__("YAEL");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/promotion/promotion-gift-edit-dialog/promotion-gift-edit-dialog.component.ngfactory.js + 1 modules
var promotion_gift_edit_dialog_component_ngfactory = __webpack_require__("RswS");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/promotion/promotion-rule-view-dialog/promotion-rule-view-dialog.component.ngfactory.js + 1 modules
var promotion_rule_view_dialog_component_ngfactory = __webpack_require__("BRe2");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/orders/order-feedback-dialog/order-feedback-dialog.component.ngfactory.js + 1 modules
var order_feedback_dialog_component_ngfactory = __webpack_require__("otmp");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/tutorial-dialog/tutorial-dialog.component.ngfactory.js + 1 modules
var tutorial_dialog_component_ngfactory = __webpack_require__("Uvoc");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/overlay.js
var overlay = __webpack_require__("QQfA");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/bidi.js
var bidi = __webpack_require__("IP0z");

// EXTERNAL MODULE: ./node_modules/@sweetalert2/ngx-sweetalert2/fesm2015/sweetalert2-ngx-sweetalert2.js
var sweetalert2_ngx_sweetalert2 = __webpack_require__("hvj1");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/positioning/fesm2015/ngx-bootstrap-positioning.js
var ngx_bootstrap_positioning = __webpack_require__("2uy1");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/component-loader/fesm2015/ngx-bootstrap-component-loader.js
var ngx_bootstrap_component_loader = __webpack_require__("z/SZ");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/typeahead/fesm2015/ngx-bootstrap-typeahead.js + 2 modules
var ngx_bootstrap_typeahead = __webpack_require__("ZMeN");

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/dashboard-routing.module.ts


const routes = [
    { path: '', component: dashboard_component_DashboardComponent }
];
class HomeRoutingModule {
}

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/portal.js
var portal = __webpack_require__("zMNK");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/platform.js
var platform = __webpack_require__("/HVE");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/scrolling.js + 6 modules
var scrolling = __webpack_require__("hOhj");

// EXTERNAL MODULE: ./node_modules/br-mask/dist/app.module.js
var app_module = __webpack_require__("CbX2");

// EXTERNAL MODULE: ./node_modules/angular2-chartjs/dist/chart.module.js
var chart_module = __webpack_require__("AE88");

// EXTERNAL MODULE: ./src/app/shared/directives/directives.module.ts + 1 modules
var directives_module = __webpack_require__("yGOH");

// EXTERNAL MODULE: ./node_modules/@nebular/eva-icons/fesm2015/index.js
var eva_icons_fesm2015 = __webpack_require__("XoTT");

// EXTERNAL MODULE: ./node_modules/ngx-dropzone/fesm2015/ngx-dropzone.js
var ngx_dropzone = __webpack_require__("tq8E");

// EXTERNAL MODULE: ./src/app/shared/pipes/pipes.module.ts + 9 modules
var pipes_module = __webpack_require__("9Xeq");

// EXTERNAL MODULE: ./src/app/shared/ui/ui.module.ts + 6 modules
var ui_module = __webpack_require__("4zvT");

// CONCATENATED MODULE: ./src/app/pages/reports/dashboard/dashboard.module.ngfactory.js
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardModuleNgFactory", function() { return DashboardModuleNgFactory; });
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 












































var DashboardModuleNgFactory = core["ɵcmf"](DashboardModule, [], function (_l) { return core["ɵmod"]([core["ɵmpd"](512, core["ComponentFactoryResolver"], core["ɵCodegenComponentFactoryResolver"], [[8, [router_ngfactory["a" /* ɵangular_packages_router_router_lNgFactory */], DashboardComponentNgFactory, angular_fontawesome_ngfactory["b" /* FaIconComponentNgFactory */], angular_fontawesome_ngfactory["a" /* FaDuotoneIconComponentNgFactory */], index_ngfactory["m" /* NbToastrContainerComponentNgFactory */], index_ngfactory["l" /* NbToastComponentNgFactory */], sweetalert2_ngx_sweetalert2_ngfactory["b" /* SwalComponentNgFactory */], sweetalert2_ngx_sweetalert2_ngfactory["d" /* ɵcNgFactory */], index_ngfactory["h" /* NbContextMenuComponentNgFactory */], index_ngfactory["j" /* NbDialogContainerComponentNgFactory */], index_ngfactory["k" /* NbPopoverComponentNgFactory */], index_ngfactory["n" /* NbTooltipComponentNgFactory */], ngx_bootstrap_typeahead_ngfactory["a" /* TypeaheadContainerComponentNgFactory */], cashback_credit_dialog_component_ngfactory["a" /* CashbackCreditDialogComponentNgFactory */], category_quick_form_dialog_component_ngfactory["a" /* CategoryQuickFormDialogComponentNgFactory */], edit_customization_value_dialog_component_ngfactory["a" /* EditCustomizationValueDialogComponentNgFactory */], edit_delivery_address_dialog_component_ngfactory["a" /* EditDeliveryAddressDialogComponentNgFactory */], extract_cashback_list_dialog_component_ngfactory["a" /* ExtractCashbackListDialogComponentNgFactory */], order_detail_dialog_component_ngfactory["a" /* OrderDetailDialogComponentNgFactory */], order_update_dialog_component_ngfactory["a" /* OrderUpdateDialogComponentNgFactory */], promotion_rule_edit_dialog_component_ngfactory["a" /* PromotionRuleEditDialogComponentNgFactory */], view_picture_dialog_component_ngfactory["b" /* ViewPictureDialogComponentNgFactory */], promotion_gift_edit_dialog_component_ngfactory["a" /* PromotionGiftEditDialogComponentNgFactory */], promotion_rule_view_dialog_component_ngfactory["a" /* PromotionRuleViewDialogComponentNgFactory */], order_feedback_dialog_component_ngfactory["a" /* OrderFeedbackDialogComponentNgFactory */], tutorial_dialog_component_ngfactory["b" /* TutorialDialogComponentNgFactory */]]], [3, core["ComponentFactoryResolver"]], core["NgModuleRef"]]), core["ɵmpd"](4608, common["q" /* NgLocalization */], common["p" /* NgLocaleLocalization */], [core["LOCALE_ID"], [2, common["R" /* ɵangular_packages_common_common_a */]]]), core["ɵmpd"](4608, fesm2015_forms["B" /* ɵangular_packages_forms_forms_o */], fesm2015_forms["B" /* ɵangular_packages_forms_forms_o */], []), core["ɵmpd"](4608, overlay["d" /* Overlay */], overlay["d" /* Overlay */], [overlay["i" /* ScrollStrategyOptions */], overlay["e" /* OverlayContainer */], core["ComponentFactoryResolver"], overlay["h" /* OverlayPositionBuilder */], overlay["f" /* OverlayKeyboardDispatcher */], core["Injector"], core["NgZone"], common["e" /* DOCUMENT */], bidi["b" /* Directionality */], [2, common["k" /* Location */]]]), core["ɵmpd"](5120, overlay["j" /* ɵc */], overlay["k" /* ɵd */], [overlay["d" /* Overlay */]]), core["ɵmpd"](4608, sweetalert2_ngx_sweetalert2["b" /* SwalPartialTargets */], sweetalert2_ngx_sweetalert2["b" /* SwalPartialTargets */], []), core["ɵmpd"](4608, fesm2015_forms["g" /* FormBuilder */], fesm2015_forms["g" /* FormBuilder */], []), core["ɵmpd"](4608, ngx_bootstrap_positioning["a" /* PositioningService */], ngx_bootstrap_positioning["a" /* PositioningService */], [core["NgZone"], core["RendererFactory2"], core["PLATFORM_ID"]]), core["ɵmpd"](4608, ngx_bootstrap_component_loader["a" /* ComponentLoaderFactory */], ngx_bootstrap_component_loader["a" /* ComponentLoaderFactory */], [core["ComponentFactoryResolver"], core["NgZone"], core["Injector"], ngx_bootstrap_positioning["a" /* PositioningService */], core["ApplicationRef"]]), core["ɵmpd"](4608, ngx_bootstrap_typeahead["a" /* TypeaheadConfig */], ngx_bootstrap_typeahead["a" /* TypeaheadConfig */], []), core["ɵmpd"](4608, fesm2015["Jd" /* NbToastrContainerRegistry */], fesm2015["Jd" /* NbToastrContainerRegistry */], [fesm2015["Gc" /* NbOverlayService */], fesm2015["Oc" /* NbPositionBuilderService */], fesm2015["Pc" /* NbPositionHelper */], core["ComponentFactoryResolver"], fesm2015["g" /* NB_DOCUMENT */]]), core["ɵmpd"](4608, fesm2015["Ld" /* NbToastrService */], fesm2015["Ld" /* NbToastrService */], [fesm2015["o" /* NB_TOASTR_CONFIG */], fesm2015["Jd" /* NbToastrContainerRegistry */]]), core["ɵmpd"](1073742336, common["c" /* CommonModule */], common["c" /* CommonModule */], []), core["ɵmpd"](1073742336, fesm2015_router["p" /* RouterModule */], fesm2015_router["p" /* RouterModule */], [[2, fesm2015_router["u" /* ɵangular_packages_router_router_a */]], [2, fesm2015_router["l" /* Router */]]]), core["ɵmpd"](1073742336, HomeRoutingModule, HomeRoutingModule, []), core["ɵmpd"](1073742336, angular_fontawesome["j" /* FontAwesomeModule */], angular_fontawesome["j" /* FontAwesomeModule */], []), core["ɵmpd"](1073742336, fesm2015_forms["A" /* ɵangular_packages_forms_forms_d */], fesm2015_forms["A" /* ɵangular_packages_forms_forms_d */], []), core["ɵmpd"](1073742336, fesm2015_forms["n" /* FormsModule */], fesm2015_forms["n" /* FormsModule */], []), core["ɵmpd"](1073742336, fesm2015["pe" /* ɵc */], fesm2015["pe" /* ɵc */], []), core["ɵmpd"](1073742336, fesm2015["M" /* NbButtonModule */], fesm2015["M" /* NbButtonModule */], []), core["ɵmpd"](1073742336, fesm2015["rc" /* NbListModule */], fesm2015["rc" /* NbListModule */], []), core["ɵmpd"](1073742336, fesm2015["Sc" /* NbProgressBarModule */], fesm2015["Sc" /* NbProgressBarModule */], []), core["ɵmpd"](1073742336, bidi["a" /* BidiModule */], bidi["a" /* BidiModule */], []), core["ɵmpd"](1073742336, portal["f" /* PortalModule */], portal["f" /* PortalModule */], []), core["ɵmpd"](1073742336, platform["b" /* PlatformModule */], platform["b" /* PlatformModule */], []), core["ɵmpd"](1073742336, scrolling["b" /* ScrollingModule */], scrolling["b" /* ScrollingModule */], []), core["ɵmpd"](1073742336, overlay["g" /* OverlayModule */], overlay["g" /* OverlayModule */], []), core["ɵmpd"](1073742336, fesm2015["pb" /* NbCdkMappingModule */], fesm2015["pb" /* NbCdkMappingModule */], []), core["ɵmpd"](1073742336, fesm2015["ob" /* NbCdkAdapterModule */], fesm2015["ob" /* NbCdkAdapterModule */], []), core["ɵmpd"](1073742336, fesm2015["Ec" /* NbOverlayModule */], fesm2015["Ec" /* NbOverlayModule */], []), core["ɵmpd"](1073742336, fesm2015["fc" /* NbInputModule */], fesm2015["fc" /* NbInputModule */], []), core["ɵmpd"](1073742336, fesm2015["dc" /* NbIconModule */], fesm2015["dc" /* NbIconModule */], [fesm2015["cc" /* NbIconLibraries */]]), core["ɵmpd"](1073742336, fesm2015["nb" /* NbCardModule */], fesm2015["nb" /* NbCardModule */], []), core["ɵmpd"](1073742336, fesm2015["Bb" /* NbCheckboxModule */], fesm2015["Bb" /* NbCheckboxModule */], []), core["ɵmpd"](1073742336, fesm2015["kd" /* NbSelectModule */], fesm2015["kd" /* NbSelectModule */], []), core["ɵmpd"](1073742336, fesm2015["F" /* NbBadgeModule */], fesm2015["F" /* NbBadgeModule */], []), core["ɵmpd"](1073742336, fesm2015["Ed" /* NbTabsetModule */], fesm2015["Ed" /* NbTabsetModule */], []), core["ɵmpd"](1073742336, fesm2015["Kd" /* NbToastrModule */], fesm2015["Kd" /* NbToastrModule */], []), core["ɵmpd"](1073742336, sweetalert2_ngx_sweetalert2["c" /* SweetAlert2Module */], sweetalert2_ngx_sweetalert2["c" /* SweetAlert2Module */], []), core["ɵmpd"](1073742336, app_module["a" /* BrMaskerModule */], app_module["a" /* BrMaskerModule */], []), core["ɵmpd"](1073742336, chart_module["ChartModule"], chart_module["ChartModule"], []), core["ɵmpd"](1073742336, directives_module["a" /* DirectivesModule */], directives_module["a" /* DirectivesModule */], []), core["ɵmpd"](1073742336, fesm2015["D" /* NbAlertModule */], fesm2015["D" /* NbAlertModule */], []), core["ɵmpd"](1073742336, fesm2015["B" /* NbActionsModule */], fesm2015["B" /* NbActionsModule */], []), core["ɵmpd"](1073742336, fesm2015["vc" /* NbMenuModule */], fesm2015["vc" /* NbMenuModule */], []), core["ɵmpd"](1073742336, fesm2015["Gb" /* NbContextMenuModule */], fesm2015["Gb" /* NbContextMenuModule */], []), core["ɵmpd"](1073742336, fesm2015["Qb" /* NbDialogModule */], fesm2015["Qb" /* NbDialogModule */], []), core["ɵmpd"](1073742336, eva_icons_fesm2015["a" /* NbEvaIconsModule */], eva_icons_fesm2015["a" /* NbEvaIconsModule */], [fesm2015["cc" /* NbIconLibraries */]]), core["ɵmpd"](1073742336, fesm2015["Lc" /* NbPopoverModule */], fesm2015["Lc" /* NbPopoverModule */], []), core["ɵmpd"](1073742336, fesm2015["Vc" /* NbRadioModule */], fesm2015["Vc" /* NbRadioModule */], []), core["ɵmpd"](1073742336, fesm2015["Qd" /* NbTooltipModule */], fesm2015["Qd" /* NbTooltipModule */], []), core["ɵmpd"](1073742336, fesm2015["fe" /* NbUserModule */], fesm2015["fe" /* NbUserModule */], []), core["ɵmpd"](1073742336, ngx_dropzone["c" /* NgxDropzoneModule */], ngx_dropzone["c" /* NgxDropzoneModule */], []), core["ɵmpd"](1073742336, pipes_module["a" /* PipesModule */], pipes_module["a" /* PipesModule */], []), core["ɵmpd"](1073742336, fesm2015_forms["x" /* ReactiveFormsModule */], fesm2015_forms["x" /* ReactiveFormsModule */], []), core["ɵmpd"](1073742336, ngx_bootstrap_typeahead["d" /* TypeaheadModule */], ngx_bootstrap_typeahead["d" /* TypeaheadModule */], []), core["ɵmpd"](1073742336, ui_module["a" /* UiModule */], ui_module["a" /* UiModule */], []), core["ɵmpd"](1073742336, DashboardModule, DashboardModule, []), core["ɵmpd"](1024, fesm2015_router["j" /* ROUTES */], function () { return [[{ path: "", component: dashboard_component_DashboardComponent }]]; }, []), core["ɵmpd"](256, sweetalert2_ngx_sweetalert2["d" /* ɵa */], undefined, []), core["ɵmpd"](256, fesm2015["o" /* NB_TOASTR_CONFIG */], {}, [])]); });



/***/ }),

/***/ "JmCY":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return NavExtrasService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8Y7J");

class NavExtrasService {
    constructor() { }
    setExtras(...data) {
        this.extras = data;
    }
    getExtras() {
        return this.extras;
    }
    resetExtras() {
        this.extras = null;
    }
}
NavExtrasService.ngInjectableDef = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ factory: function NavExtrasService_Factory() { return new NavExtrasService(); }, token: NavExtrasService, providedIn: "root" });


/***/ }),

/***/ "eCBd":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ClienteService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("IheW");
/* harmony import */ var _resource_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("edFq");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("8Y7J");




class ClienteService extends _resource_service__WEBPACK_IMPORTED_MODULE_1__[/* ResourceService */ "a"] {
    constructor(http) {
        super(http, 'admin/clientes');
    }
    /**
     * Update an User, changing block status on it.
     * @param customer: Cliente
     */
    blockOrUnblockCustomer(customer) {
        const params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__[/* HttpParams */ "h"]()
            .append('customerId', customer.id.toString());
        return this.http.put(`${this.api}/${this.endpoint}/${customer.empresa.id}/bloqueio/usuario`, params);
    }
    /**
     * Atualiza o estado de bloqueio de recebimento de pagamento online do cliente.
     * @param customerId number
     */
    lockOnlinePaymentReceivement(customerId) {
        const params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__[/* HttpParams */ "h"]().append('customerId', customerId.toString());
        return this.http.put(`${this.api}/${this.endpoint}/${this.vendorId}/bloqueio/pagamento-online`, params);
    }
    findInactiveCustomers() {
        return this.http.get(`${this.api}/${this.endpoint}/${this.vendorId}/inactive-customers`);
    }
    getCustomerStatus(status) {
        return status ? 'success' : 'danger';
    }
    /**
     * Get all users who don't buy anything in the last 90 days.
     */
    getDetachedCustomers() {
        return this.http.get(`${this.api}/${this.endpoint}/${this.vendorId}/consultas/sem-pedidos-90`);
    }
    /**
     * Update all customers data.
     * @param customers: Cliente[]
     * @returns Observable<Cliente[]>
     */
    sendEmail(customers) {
        return this.http.post(`${this.api}/${this.endpoint}/${this.vendorId}/send-email`, customers);
    }
}
ClienteService.ngInjectableDef = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ factory: function ClienteService_Factory() { return new ClienteService(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__[/* HttpClient */ "c"])); }, token: ClienteService, providedIn: "root" });


/***/ }),

/***/ "hARC":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./src/app/shared/ui/no-content/no-content.component.scss.shim.ngstyle.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 
var styles = [""];


// EXTERNAL MODULE: ./node_modules/@angular/core/fesm2015/core.js
var core = __webpack_require__("8Y7J");

// EXTERNAL MODULE: ./node_modules/@nebular/theme/index.ngfactory.js
var index_ngfactory = __webpack_require__("jXVt");

// EXTERNAL MODULE: ./node_modules/@nebular/theme/fesm2015/index.js + 5 modules
var fesm2015 = __webpack_require__("tKwJ");

// EXTERNAL MODULE: ./node_modules/@fortawesome/angular-fontawesome/angular-fontawesome.ngfactory.js
var angular_fontawesome_ngfactory = __webpack_require__("fNgX");

// EXTERNAL MODULE: ./node_modules/@fortawesome/angular-fontawesome/fesm2015/angular-fontawesome.js
var angular_fontawesome = __webpack_require__("Nv++");

// EXTERNAL MODULE: ./node_modules/@angular/platform-browser/fesm2015/platform-browser.js
var platform_browser = __webpack_require__("cUpR");

// EXTERNAL MODULE: ./node_modules/@angular/common/fesm2015/common.js
var common = __webpack_require__("SVse");

// EXTERNAL MODULE: ./src/app/shared/ui/no-content/no-content.component.ts
var no_content_component = __webpack_require__("o220");

// CONCATENATED MODULE: ./src/app/shared/ui/no-content/no-content.component.ngfactory.js
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RenderType_NoContentComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return View_NoContentComponent_0; });
/* unused harmony export View_NoContentComponent_Host_0 */
/* unused harmony export NoContentComponentNgFactory */
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 









var styles_NoContentComponent = [styles];
var RenderType_NoContentComponent = core["ɵcrt"]({ encapsulation: 0, styles: styles_NoContentComponent, data: {} });

function View_NoContentComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 8, "nb-card", [], [[2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "accent", null], [2, "accent-primary", null], [2, "accent-info", null], [2, "accent-success", null], [2, "accent-warning", null], [2, "accent-danger", null], [2, "accent-basic", null], [2, "accent-control", null]], null, null, index_ngfactory["O" /* View_NbCardComponent_0 */], index_ngfactory["r" /* RenderType_NbCardComponent */])), core["ɵdid"](1, 49152, null, 0, fesm2015["jb" /* NbCardComponent */], [], null, null), (_l()(), core["ɵeld"](2, 0, null, 1, 6, "nb-card-body", [], null, null, null, index_ngfactory["N" /* View_NbCardBodyComponent_0 */], index_ngfactory["q" /* RenderType_NbCardBodyComponent */])), core["ɵdid"](3, 49152, null, 0, fesm2015["ib" /* NbCardBodyComponent */], [], null, null), (_l()(), core["ɵeld"](4, 0, null, 0, 4, "div", [["class", "d-flex align-items-center justify-content-center text-medium"]], null, null, null, null, null)), (_l()(), core["ɵeld"](5, 0, null, null, 1, "fa-icon", [["class", "text-warning mr-2 ng-fa-icon"], ["size", "lg"]], [[1, "title", 0], [8, "innerHTML", 1]], null, null, angular_fontawesome_ngfactory["d" /* View_FaIconComponent_0 */], angular_fontawesome_ngfactory["c" /* RenderType_FaIconComponent */])), core["ɵdid"](6, 573440, null, 0, angular_fontawesome["c" /* FaIconComponent */], [platform_browser["b" /* DomSanitizer */], angular_fontawesome["a" /* FaConfig */], angular_fontawesome["d" /* FaIconLibrary */], [2, angular_fontawesome["i" /* FaStackItemSizeDirective */]]], { icon: [0, "icon"], size: [1, "size"] }, null), (_l()(), core["ɵeld"](7, 0, null, null, 1, "em", [["class", "text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](8, null, ["", ""]))], function (_ck, _v) { var _co = _v.component; var currVal_22 = _co.warningIcon; var currVal_23 = "lg"; _ck(_v, 6, 0, currVal_22, currVal_23); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵnov"](_v, 1).tiny; var currVal_1 = core["ɵnov"](_v, 1).small; var currVal_2 = core["ɵnov"](_v, 1).medium; var currVal_3 = core["ɵnov"](_v, 1).large; var currVal_4 = core["ɵnov"](_v, 1).giant; var currVal_5 = core["ɵnov"](_v, 1).primary; var currVal_6 = core["ɵnov"](_v, 1).info; var currVal_7 = core["ɵnov"](_v, 1).success; var currVal_8 = core["ɵnov"](_v, 1).warning; var currVal_9 = core["ɵnov"](_v, 1).danger; var currVal_10 = core["ɵnov"](_v, 1).basic; var currVal_11 = core["ɵnov"](_v, 1).control; var currVal_12 = core["ɵnov"](_v, 1).hasAccent; var currVal_13 = core["ɵnov"](_v, 1).primaryAccent; var currVal_14 = core["ɵnov"](_v, 1).infoAccent; var currVal_15 = core["ɵnov"](_v, 1).successAccent; var currVal_16 = core["ɵnov"](_v, 1).warningAccent; var currVal_17 = core["ɵnov"](_v, 1).dangerAccent; var currVal_18 = core["ɵnov"](_v, 1).basicAccent; var currVal_19 = core["ɵnov"](_v, 1).controlAccent; _ck(_v, 0, 1, [currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19]); var currVal_20 = core["ɵnov"](_v, 6).title; var currVal_21 = core["ɵnov"](_v, 6).renderedIconHTML; _ck(_v, 5, 0, currVal_20, currVal_21); var currVal_24 = _co.message; _ck(_v, 8, 0, currVal_24); }); }
function View_NoContentComponent_2(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 4, "div", [["class", "d-flex align-items-center justify-content-center text-medium"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 1, "fa-icon", [["class", "text-warning mr-2 ng-fa-icon"], ["size", "lg"]], [[1, "title", 0], [8, "innerHTML", 1]], null, null, angular_fontawesome_ngfactory["d" /* View_FaIconComponent_0 */], angular_fontawesome_ngfactory["c" /* RenderType_FaIconComponent */])), core["ɵdid"](2, 573440, null, 0, angular_fontawesome["c" /* FaIconComponent */], [platform_browser["b" /* DomSanitizer */], angular_fontawesome["a" /* FaConfig */], angular_fontawesome["d" /* FaIconLibrary */], [2, angular_fontawesome["i" /* FaStackItemSizeDirective */]]], { icon: [0, "icon"], size: [1, "size"] }, null), (_l()(), core["ɵeld"](3, 0, null, null, 1, "em", [["class", "text-muted"]], null, null, null, null, null)), (_l()(), core["ɵted"](4, null, ["", ""]))], function (_ck, _v) { var _co = _v.component; var currVal_2 = _co.warningIcon; var currVal_3 = "lg"; _ck(_v, 2, 0, currVal_2, currVal_3); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵnov"](_v, 2).title; var currVal_1 = core["ɵnov"](_v, 2).renderedIconHTML; _ck(_v, 1, 0, currVal_0, currVal_1); var currVal_4 = _co.message; _ck(_v, 4, 0, currVal_4); }); }
function View_NoContentComponent_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵand"](16777216, null, null, 1, null, View_NoContentComponent_1)), core["ɵdid"](1, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_NoContentComponent_2)), core["ɵdid"](3, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.isEmpty && !_co.inline); _ck(_v, 1, 0, currVal_0); var currVal_1 = (_co.isEmpty && _co.inline); _ck(_v, 3, 0, currVal_1); }, null); }
function View_NoContentComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-no-content", [], null, null, null, View_NoContentComponent_0, RenderType_NoContentComponent)), core["ɵdid"](1, 114688, null, 0, no_content_component["a" /* NoContentComponent */], [], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var NoContentComponentNgFactory = core["ɵccf"]("omni-no-content", no_content_component["a" /* NoContentComponent */], View_NoContentComponent_Host_0, { isEmpty: "isEmpty", inline: "inline", message: "message" }, {}, []);



/***/ })

};;