(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-relatorios-receita-receita-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/receita/receita-form/receita-form.component.html":
/*!*************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/receita/receita-form/receita-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 [sisFormularioId]=\"constantes.sisFormularioId\"\n                      [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodoDe\"\n                                                   class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                                            <app-data id=\"periodoDe\"\n                                                      name=\"periodoDe\"\n                                                      [(ngModel)]=\"data.dataI\"\n                                                      autofocus\n                                                      class=\"dataHora\"\n                                                      [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                                      required=\"true\"\n                                            ></app-data>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ate\"\n                                                   class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                            <app-data id=\"ate\"\n                                                      name=\"ate\"\n                                                      [(ngModel)]=\"data.dataF\"\n                                                      class=\"dataHora\"\n                                                      [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                                      required=\"true\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"card\">\n                                    <div class=\"card-header\">\n                                        {{'labels.depositos' | translate }}\n                                    </div>\n                                    <div class=\"card-body p-2\">\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-12\">\n                                                <app-combo-multi-tanque id=\"tanques\" name=\"tanques\"\n                                                                        (executa)=\"trataTanques($event)\"\n                                                                        tipo=\"T\"></app-combo-multi-tanque>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"form-group\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                {{ 'buttons.gerarRelatorio' | translate }}\n                            </button>\n                            <button class=\"btn btn-default\" type=\"button\" (click)=\"onCancelar()\">\n                                {{ 'buttons.cancelar' | translate }}\n                            </button>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./src/app/pages/relatorios/receita/receita-form/receita-form.component.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/relatorios/receita/receita-form/receita-form.component.ts ***!
  \*********************************************************************************/
/*! exports provided: ReceitaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReceitaFormComponent", function() { return ReceitaFormComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _receita_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../receita.constants */ "./src/app/pages/relatorios/receita/receita.constants.ts");
/* harmony import */ var _receita_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../receita.model */ "./src/app/pages/relatorios/receita/receita.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 ReceitaFormComponent = /** @class */ (function (_super) {
    __extends(ReceitaFormComponent, _super);
    function ReceitaFormComponent(loginService, permissoesUtils, funcoes) {
        var _this = _super.call(this, new _receita_constants__WEBPACK_IMPORTED_MODULE_7__["ReceitaConstants"](), funcoes) || this;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.mensagens = [];
        _this.constantes = new _receita_constants__WEBPACK_IMPORTED_MODULE_7__["ReceitaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.data = new _receita_model__WEBPACK_IMPORTED_MODULE_8__["Receita"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_5__["Mascaras"]();
        return _this;
    }
    ReceitaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    ReceitaFormComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.constantes.reportTitulo.subTitulo = '';
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataI: this.data.dataI === undefined ? "" : this.data.dataI,
            dataF: this.data.dataF === undefined ? "" : this.data.dataF,
            depositos: this.data.depositos === undefined ? "" : this.data.depositos
        };
        this.print();
    };
    ReceitaFormComponent.prototype.onCancelar = function () {
        this.data = new _receita_model__WEBPACK_IMPORTED_MODULE_8__["Receita"]();
    };
    ReceitaFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ReceitaFormComponent.prototype.trataTanques = function (arg) {
        // *** TODO: Assinatura do método criada apenas para build, implentear posteriormente.
    };
    ReceitaFormComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] }
    ]; };
    ReceitaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-receita",
            template: __importDefault(__webpack_require__(/*! raw-loader!./receita-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/receita/receita-form/receita-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"]])
    ], ReceitaFormComponent);
    return ReceitaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/relatorios/receita/receita.constants.ts":
/*!***************************************************************!*\
  !*** ./src/app/pages/relatorios/receita/receita.constants.ts ***!
  \***************************************************************/
/*! exports provided: ReceitaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReceitaConstants", function() { return ReceitaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ReceitaConstants = /** @class */ (function () {
    function ReceitaConstants() {
        this.sisFormularioId = 95070;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.receita";
        this.reportId = "REL0089";
        this.reportTitulo = { "titulo": "Demonstrativo Receita Federal", "subTitulo": "" };
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return ReceitaConstants;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/receita/receita.model.ts":
/*!***********************************************************!*\
  !*** ./src/app/pages/relatorios/receita/receita.model.ts ***!
  \***********************************************************/
/*! exports provided: Receita */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Receita", function() { return Receita; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var Receita = /** @class */ (function () {
    function Receita() {
        this.filialId = 0;
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_0__().startOf('month').toDate();
        this.dataF = new Date();
        this.depositos = "";
    }
    return Receita;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/receita/receita.module.ts":
/*!************************************************************!*\
  !*** ./src/app/pages/relatorios/receita/receita.module.ts ***!
  \************************************************************/
/*! exports provided: ReceitaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReceitaModule", function() { return ReceitaModule; });
/* 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 _receita_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./receita.routing.module */ "./src/app/pages/relatorios/receita/receita.routing.module.ts");
/* harmony import */ var _receita_form_receita_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./receita-form/receita-form.component */ "./src/app/pages/relatorios/receita/receita-form/receita-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 ReceitaModule = /** @class */ (function () {
    function ReceitaModule() {
    }
    ReceitaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _receita_routing_module__WEBPACK_IMPORTED_MODULE_2__["ReceitaRoutingModule"]],
            declarations: [_receita_form_receita_form_component__WEBPACK_IMPORTED_MODULE_3__["ReceitaFormComponent"]]
        })
    ], ReceitaModule);
    return ReceitaModule;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/receita/receita.routing.module.ts":
/*!********************************************************************!*\
  !*** ./src/app/pages/relatorios/receita/receita.routing.module.ts ***!
  \********************************************************************/
/*! exports provided: ReceitaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReceitaRoutingModule", function() { return ReceitaRoutingModule; });
/* 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 _receita_form_receita_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./receita-form/receita-form.component */ "./src/app/pages/relatorios/receita/receita-form/receita-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: _receita_form_receita_form_component__WEBPACK_IMPORTED_MODULE_3__["ReceitaFormComponent"],
        data: { breadcrumb: "demonstrativoReceitaFederal", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var ReceitaRoutingModule = /** @class */ (function () {
    function ReceitaRoutingModule() {
    }
    ReceitaRoutingModule = __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"]],
        })
    ], ReceitaRoutingModule);
    return ReceitaRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-relatorios-receita-receita-module.js.map