(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-comercial-indicadores-periodo-indicadores-periodo-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-filter/indicadores-periodo-filter.component.html":
/*!****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-filter/indicadores-periodo-filter.component.html ***!
  \****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"indicadores-periodo-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-sm\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.filter\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"indicador\" class=\"required\">{{ 'labels.indicador' | translate}}</label>\r\n                                <app-combo-padrao id=\"indicador\" name=\"indicador\" tabela=\"Indicadores\"\r\n                                    descricao=\"DescrIndicador\" chave=\"CodIndicador\" ativos=\"true\"\r\n                                    [(ngModel)]=\"service.filter.indicadorId\" required>\r\n                                </app-combo-padrao>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-form/indicadores-periodo-form.component.html":
/*!************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-form/indicadores-periodo-form.component.html ***!
  \************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\"\r\n    [itemData]=\"service.data.indicadorId\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <app-form-legenda></app-form-legenda>\r\n            <div class=\"card-body widget-body\">\r\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                    <app-validacoes></app-validacoes>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodo\" class=\"required\">{{\"labels.periodo\" | translate }}</label>\r\n                                <input id=\"periodo\" name=\"periodo\" [(ngModel)]=\"service.data.periodo\"\r\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\"\r\n                                    class=\" form-control form-control-sm\" type=\"text\" required=\"true\" mask=\"00/0000\"\r\n                                    [dropSpecialCharacters]=\"false\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row mt-2\">\r\n                        <div class=\"col-lg-2 col-sm-6 form-inline\">\r\n                            <label for=\"indice\" class=\"required\">{{'labels.indice' | translate}}</label>\r\n                            <div class=\"form-group form-group-sm form-inline\">\r\n                                <input id=\"indice\" name=\"indice\" [(ngModel)]=\"service.data.indice\" maxlength=\"6\"\r\n                                    currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\r\n                                    class=\"form-control form-control-sm input-inline-middle ml-2\" type=\"text\"\r\n                                    style=\"width:55px;\" [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                <label for=\"indice\" class=\"mb-0 ml-2\">\r\n                                    {{'labels.porcentagem' | translate}}\r\n                                </label>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 col-md-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"negativo\" name=\"negativo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                    [ngModel]=\"service.data.negativo === 'S'\"\r\n                                    (ngModelChange)=\"service.data.negativo=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                <label class=\"custom-control-label\" for=\"negativo\">{{'labels.negativo' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row mt-4\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    {{ 'buttons.salvar' | translate }}\r\n                                </button>\r\n                                <button class=\"btn btn-default\" type=\"button\" (click)=\"onCancelar()\">\r\n                                    {{ 'buttons.cancelar' | translate }}\r\n                                </button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-index/indicadores-periodo-index.component.html":
/*!**************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-index/indicadores-periodo-index.component.html ***!
  \**************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\" [itemData]=\"data.indicadorId\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtIndicadoresPeriodo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-indicadores-periodo-filter (filtrar)=\"executarFiltro()\">\r\n</app-indicadores-periodo-filter>");

/***/ }),

/***/ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-filter/indicadores-periodo-filter.component.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-filter/indicadores-periodo-filter.component.ts ***!
  \************************************************************************************************************************/
/*! exports provided: IndicadoresPeriodoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoFilterComponent", function() { return IndicadoresPeriodoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _indicadores_periodo_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../indicadores-periodo.constants */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.constants.ts");
/* harmony import */ var _indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../indicadores-periodo.service */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.service.ts");
/* harmony import */ var _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../indicadores-periodo.model */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var IndicadoresPeriodoFilterComponent = /** @class */ (function () {
    function IndicadoresPeriodoFilterComponent(service, message) {
        this.service = service;
        this.message = message;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.constantes = new _indicadores_periodo_constants__WEBPACK_IMPORTED_MODULE_4__["IndicadoresPeriodoConstants"]();
    }
    IndicadoresPeriodoFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filter) {
            this.service.filter = new _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_6__["IndicadoresPeriodoFilter"]();
        }
    };
    Object.defineProperty(IndicadoresPeriodoFilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.indicadoresPeriodo");
        },
        enumerable: true,
        configurable: true
    });
    IndicadoresPeriodoFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.filtrar.emit();
        jQuery("#indicadores-periodo-filter-dialog").modal("hide");
    };
    IndicadoresPeriodoFilterComponent.ctorParameters = function () { return [
        { type: _indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_5__["IndicadoresPeriodoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], IndicadoresPeriodoFilterComponent.prototype, "filtrar", void 0);
    IndicadoresPeriodoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-indicadores-periodo-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./indicadores-periodo-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-filter/indicadores-periodo-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_5__["IndicadoresPeriodoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], IndicadoresPeriodoFilterComponent);
    return IndicadoresPeriodoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-form/indicadores-periodo-form.component.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-form/indicadores-periodo-form.component.ts ***!
  \********************************************************************************************************************/
/*! exports provided: IndicadoresPeriodoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoFormComponent", function() { return IndicadoresPeriodoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _indicadores_periodo_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../indicadores-periodo.constants */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.constants.ts");
/* harmony import */ var _indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../indicadores-periodo.service */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.service.ts");
/* harmony import */ var _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../indicadores-periodo.model */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.model.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

















var IndicadoresPeriodoFormComponent = /** @class */ (function (_super) {
    __extends(IndicadoresPeriodoFormComponent, _super);
    function IndicadoresPeriodoFormComponent(router, activatedRoute, message, service, permissoesUtils, configuracao, funcoes, loginService, materialService, destinatarioService) {
        var _this = _super.call(this, new _indicadores_periodo_constants__WEBPACK_IMPORTED_MODULE_12__["IndicadoresPeriodoConstants"](), funcoes) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.message = message;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.configuracao = configuracao;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.materialService = materialService;
        _this.destinatarioService = destinatarioService;
        _this.mensagens = [];
        _this.constantes = new _indicadores_periodo_constants__WEBPACK_IMPORTED_MODULE_12__["IndicadoresPeriodoConstants"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.periodo = "";
        _this.target = _this.funcoes.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    IndicadoresPeriodoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.indicadorId = this.activatedRoute.snapshot.paramMap.get("indicadorId");
                this.mes = this.activatedRoute.snapshot.paramMap.get("mes");
                this.ano = this.activatedRoute.snapshot.paramMap.get("ano");
                if (this.mes && this.ano) {
                    this.periodo = this.mes + "/" + this.ano;
                }
                if (this.funcoes.isCreate(this.actionForm)) {
                    this.preCreate();
                }
                else {
                    this.preEditOrDetail(this.indicadorId, this.mes, this.ano);
                }
                return [2 /*return*/];
            });
        }); }, function () {
            _this.permissoesUtils.back();
        });
    };
    IndicadoresPeriodoFormComponent.prototype.preCreate = function () {
        this.service.data = new _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_14__["IndicadoresPeriodo"](app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["NumberUtilsStaticService"].toNumber(this.indicadorId));
    };
    IndicadoresPeriodoFormComponent.prototype.preEditOrDetail = function (indicadorId, mes, ano) {
        var _this = this;
        this.service._getById(indicadorId, mes, ano).subscribe(function (resp) {
            _this.service.data = resp;
            if (resp.indice > 0) {
                _this.service.data.negativo = "N";
            }
            else {
                _this.service.data.negativo = "S";
            }
        });
    };
    IndicadoresPeriodoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        var per = this.funcoesService.dateTimeUtils.getPeriodo(this.service.data.periodo);
        if (per.error) {
            this.message.warning('titles.indicadoresPeriodo', 'messages.periodoInformadoInvalido');
            return;
        }
        this.service.data.periodo = per.periodo;
        this.service.data.logRotina = "Indicadores por Periodo";
        this.service
            .save(this.service.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (validationResult) {
            _this.mensagens = _this.message.validationResult(validationResult);
            if (!validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.message.saveSuccess("titles.indicadoresPeriodo");
                if (create) {
                    _this.service.data = new _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_14__["IndicadoresPeriodo"]();
                }
                else {
                    _this.back();
                }
            }
        });
    };
    IndicadoresPeriodoFormComponent.prototype.edit = function () {
        if (!!this.service.data.indicadorId && app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].isNotEmpty(this.periodo)) {
            var sData = this.periodo.split('/');
            this.mes = sData[0];
            this.ano = sData[1];
            this.router.navigate([this.target + "/comercial/indicadoresPeriodo/edit/" + this.service.data.indicadorId + "/" + this.mes + "/" + this.ano]);
        }
    };
    IndicadoresPeriodoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/comercial/indicadoresPeriodo"]);
    };
    IndicadoresPeriodoFormComponent.prototype.onCancelar = function () {
        this.service.data = new _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_14__["IndicadoresPeriodo"]();
        this.back();
    };
    IndicadoresPeriodoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_13__["IndicadoresPeriodoService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] },
        { type: _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_9__["MaterialService"] },
        { type: _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"] }
    ]; };
    IndicadoresPeriodoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-indicadores-periodo-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./indicadores-periodo-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-form/indicadores-periodo-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_13__["IndicadoresPeriodoService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"],
            _pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_9__["MaterialService"],
            _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"]])
    ], IndicadoresPeriodoFormComponent);
    return IndicadoresPeriodoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-index/indicadores-periodo-index.component.ts":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-index/indicadores-periodo-index.component.ts ***!
  \**********************************************************************************************************************/
/*! exports provided: IndicadoresPeriodoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoIndexComponent", function() { return IndicadoresPeriodoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../indicadores-periodo.model */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.model.ts");
/* harmony import */ var _indicadores_periodo_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../indicadores-periodo.constants */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.constants.ts");
/* harmony import */ var _indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../indicadores-periodo.service */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var IndicadoresPeriodoIndexComponent = /** @class */ (function (_super) {
    __extends(IndicadoresPeriodoIndexComponent, _super);
    function IndicadoresPeriodoIndexComponent(router, service, datatables, message, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _indicadores_periodo_constants__WEBPACK_IMPORTED_MODULE_10__["IndicadoresPeriodoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_9__["IndicadoresPeriodo"]();
        _this.constantes = new _indicadores_periodo_constants__WEBPACK_IMPORTED_MODULE_10__["IndicadoresPeriodoConstants"]();
        _this.mensagens = [];
        _this.target = _this.funcoes.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    IndicadoresPeriodoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.loginService.isTokenExpired()) {
                    if (this.funcoes.abrirFiltro) {
                        this.service.filter = new _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_9__["IndicadoresPeriodoFilter"]();
                        this.funcoes.openModal("indicadores-periodo-filter-dialog");
                    }
                    this.refresh();
                }
                return [2 /*return*/];
            });
        }); }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    IndicadoresPeriodoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filter).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("periodo", "periodo"),
                _this.datatables.getDataDouble("indice", "indice", 3),
            ];
            _this.datatables.toDataTable({ tableId: "dtIndicadoresPeriodo", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    IndicadoresPeriodoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    IndicadoresPeriodoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    IndicadoresPeriodoIndexComponent.prototype.filtrar = function () {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(null);
        jQuery("#indicadores-periodo-filter-dialog").modal("show");
    };
    IndicadoresPeriodoIndexComponent.prototype.executarFiltro = function () {
        this.refresh();
    };
    IndicadoresPeriodoIndexComponent.prototype.detail = function () {
        if (!!this.data.indicadorId && app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].isNotEmpty(this.data.periodo)) {
            var sData = this.data.periodo.split('/');
            this.mes = sData[0];
            this.ano = sData[1];
            this.router.navigate([this.target + "/comercial/indicadoresPeriodo/detail/" + this.data.indicadorId + "/" + this.mes + "/" + this.ano]);
        }
    };
    IndicadoresPeriodoIndexComponent.prototype.edit = function () {
        if (!!this.data.indicadorId && app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].isNotEmpty(this.data.periodo)) {
            var sData = this.data.periodo.split('/');
            this.mes = sData[0];
            this.ano = sData[1];
            this.router.navigate([this.target + "/comercial/indicadoresPeriodo/edit/" + this.data.indicadorId + "/" + this.mes + "/" + this.ano]);
        }
    };
    IndicadoresPeriodoIndexComponent.prototype.create = function () {
        if (this.service.filter.indicadorId === "") {
            this.message.warning("titles.indicadoresPeriodo", "messages.informeIndicador");
            jQuery("#indicadores-periodo-filter-dialog").modal("show");
            return;
        }
        this.router.navigate([this.target + "/comercial/indicadoresPeriodo/create/" + this.service.filter.indicadorId]);
    };
    IndicadoresPeriodoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (this.funcoes.isNotUndefinedOrNull(this.data.indicadorId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.message.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function () {
                        _this.datatables.remove("dtIndicadoresPeriodo");
                    });
                });
            });
        }
    };
    IndicadoresPeriodoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            var reportTitulo = {
                titulo: _this.message.getTranslates('titles', 'Indicadores por Período'),
                subTitulo: ''
            };
            _this.service.filter.indicadorId = _this.funcoes.isNotUndefinedOrNull(_this.service.filter.indicadorId) ? _this.service.filter.indicadorId : 0;
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                indicadorId: _this.service.filter.indicadorId
            };
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, reportTitulo, _this.constantes.paramRelatorio);
        });
    };
    IndicadoresPeriodoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_11__["IndicadoresPeriodoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] }
    ]; };
    IndicadoresPeriodoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-indicadores-periodo-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./indicadores-periodo-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-index/indicadores-periodo-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _indicadores_periodo_service__WEBPACK_IMPORTED_MODULE_11__["IndicadoresPeriodoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"]])
    ], IndicadoresPeriodoIndexComponent);
    return IndicadoresPeriodoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.constants.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.constants.ts ***!
  \**************************************************************************************/
/*! exports provided: IndicadoresPeriodoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoConstants", function() { return IndicadoresPeriodoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var IndicadoresPeriodoConstants = /** @class */ (function () {
    function IndicadoresPeriodoConstants() {
        this.sisFormularioId = 1157;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.indicadoresPeriodo";
        this.reportId = "COM0011";
        this.reportTitulo = { "titulo": "Indicadores por Período", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return IndicadoresPeriodoConstants;
}());



/***/ }),

/***/ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.model.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.model.ts ***!
  \**********************************************************************************/
/*! exports provided: IndicadoresPeriodo, IndicadoresPeriodoFilter, IndicadoresPeriodoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodo", function() { return IndicadoresPeriodo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoFilter", function() { return IndicadoresPeriodoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoDto", function() { return IndicadoresPeriodoDto; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var IndicadoresPeriodo = /** @class */ (function (_super) {
    __extends(IndicadoresPeriodo, _super);
    function IndicadoresPeriodo(indicadorId) {
        if (indicadorId === void 0) { indicadorId = 0; }
        var _this = _super.call(this) || this;
        _this.indicadorId = indicadorId;
        _this.negativo = "N";
        return _this;
    }
    return IndicadoresPeriodo;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var IndicadoresPeriodoFilter = /** @class */ (function () {
    function IndicadoresPeriodoFilter() {
        this.indicadorId = "";
    }
    return IndicadoresPeriodoFilter;
}());

var IndicadoresPeriodoDto = /** @class */ (function () {
    function IndicadoresPeriodoDto() {
    }
    return IndicadoresPeriodoDto;
}());



/***/ }),

/***/ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.module.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.module.ts ***!
  \***********************************************************************************/
/*! exports provided: IndicadoresPeriodoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoModule", function() { return IndicadoresPeriodoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _indicadores_periodo_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./indicadores-periodo.routing.module */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.routing.module.ts");
/* harmony import */ var _indicadores_periodo_form_indicadores_periodo_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./indicadores-periodo-form/indicadores-periodo-form.component */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-form/indicadores-periodo-form.component.ts");
/* harmony import */ var _indicadores_periodo_index_indicadores_periodo_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./indicadores-periodo-index/indicadores-periodo-index.component */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-index/indicadores-periodo-index.component.ts");
/* harmony import */ var _indicadores_periodo_filter_indicadores_periodo_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./indicadores-periodo-filter/indicadores-periodo-filter.component */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-filter/indicadores-periodo-filter.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var IndicadoresPeriodoModule = /** @class */ (function () {
    function IndicadoresPeriodoModule() {
    }
    IndicadoresPeriodoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _indicadores_periodo_routing_module__WEBPACK_IMPORTED_MODULE_2__["IndicadoresPeriodoRoutingModule"]],
            declarations: [_indicadores_periodo_form_indicadores_periodo_form_component__WEBPACK_IMPORTED_MODULE_3__["IndicadoresPeriodoFormComponent"],
                _indicadores_periodo_index_indicadores_periodo_index_component__WEBPACK_IMPORTED_MODULE_4__["IndicadoresPeriodoIndexComponent"],
                _indicadores_periodo_filter_indicadores_periodo_filter_component__WEBPACK_IMPORTED_MODULE_5__["IndicadoresPeriodoFilterComponent"]]
        })
    ], IndicadoresPeriodoModule);
    return IndicadoresPeriodoModule;
}());



/***/ }),

/***/ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.routing.module.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.routing.module.ts ***!
  \*******************************************************************************************/
/*! exports provided: IndicadoresPeriodoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoRoutingModule", function() { return IndicadoresPeriodoRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _indicadores_periodo_index_indicadores_periodo_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./indicadores-periodo-index/indicadores-periodo-index.component */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-index/indicadores-periodo-index.component.ts");
/* harmony import */ var _indicadores_periodo_form_indicadores_periodo_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./indicadores-periodo-form/indicadores-periodo-form.component */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo-form/indicadores-periodo-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _indicadores_periodo_index_indicadores_periodo_index_component__WEBPACK_IMPORTED_MODULE_3__["IndicadoresPeriodoIndexComponent"],
        data: { breadcrumb: "indicadoresPeriodo", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create/:indicadorId",
        component: _indicadores_periodo_form_indicadores_periodo_form_component__WEBPACK_IMPORTED_MODULE_4__["IndicadoresPeriodoFormComponent"],
        data: {
            breadcrumb: "indicadoresPeriodo",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:indicadorId/:mes/:ano",
        component: _indicadores_periodo_form_indicadores_periodo_form_component__WEBPACK_IMPORTED_MODULE_4__["IndicadoresPeriodoFormComponent"],
        data: {
            breadcrumb: "indicadoresPeriodo",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:indicadorId/:mes/:ano",
        component: _indicadores_periodo_form_indicadores_periodo_form_component__WEBPACK_IMPORTED_MODULE_4__["IndicadoresPeriodoFormComponent"],
        data: {
            breadcrumb: "indicadoresPeriodo",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var IndicadoresPeriodoRoutingModule = /** @class */ (function () {
    function IndicadoresPeriodoRoutingModule() {
    }
    IndicadoresPeriodoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], IndicadoresPeriodoRoutingModule);
    return IndicadoresPeriodoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.service.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.service.ts ***!
  \************************************************************************************/
/*! exports provided: IndicadoresPeriodoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndicadoresPeriodoService", function() { return IndicadoresPeriodoService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./indicadores-periodo.model */ "./src/app/pages/comercial/indicadores-periodo/indicadores-periodo.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var IndicadoresPeriodoService = /** @class */ (function (_super) {
    __extends(IndicadoresPeriodoService, _super);
    function IndicadoresPeriodoService(http, message) {
        var _this = _super.call(this, http, "comercial/indicadoresPeriodo") || this;
        _this.http = http;
        _this.message = message;
        _this.data = new _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_7__["IndicadoresPeriodo"]();
        _this.filter = new _indicadores_periodo_model__WEBPACK_IMPORTED_MODULE_7__["IndicadoresPeriodoFilter"]();
        return _this;
    }
    IndicadoresPeriodoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/comercial/indicadoresPeriodo/filter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IndicadoresPeriodoService.prototype._getById = function (id, mes, ano) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/comercial/indicadoresPeriodo/" + id + "/" + mes + "/" + ano);
    };
    IndicadoresPeriodoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] }
    ]; };
    IndicadoresPeriodoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"]])
    ], IndicadoresPeriodoService);
    return IndicadoresPeriodoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-comercial-indicadores-periodo-indicadores-periodo-module.js.map