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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto-form/saldo-por-produto-form.component.html":
/*!*******************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto-form/saldo-por-produto-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\"></app-menu-command-bar>\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)\" autocomplete=\"off\" novalidate>\n\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"data\" class=\"required\">{{\"labels.data\" | translate }}</label>\n                                    <app-data id=\"data\" name=\"data\" class=\"dataHora\"\n                                        [(ngModel)]=\"saldoPorProdutoFilter.dataRef\" [required]=\"true\"\n                                        [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" autofocus>\n                                    </app-data>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"grupo\">{{\"labels.grupo\" | translate}}</label>\n                                    <app-combo-grupo-cliente id=\"grupo\" name=\"grupo\"\n                                        [disabled]=\"validaClienteSelecionado()\"\n                                        [(ngModel)]=\"saldoPorProdutoFilter.grupoClienteId\"\n                                        (outSelected)=\"trataGrupoCliente($event)\">\n                                    </app-combo-grupo-cliente>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"destinatarioIdCliente\" name=\"destinatarioIdCliente\"\n                                        label=\"cliente\" modalTitle=\"cliente\" [disabled]=\"validaGrupoSelecionado()\"\n                                        [(ngModel)]=\"saldoPorProdutoFilter.destinatarioIdCliente\" tipoDestinatario=\"C\"\n                                        showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"trataDest($event)\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"destinatarioIdEmitente\" name=\"destinatarioIdEmitente\"\n                                        label=\"emitente\" modalTitle=\"emitente\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        [(ngModel)]=\"saldoPorProdutoFilter.destinatarioIdEmitente\" tipoDestinatario=\"C\"\n                                        showCgcCpf=\"false\" showInscricao=\"false\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                        modalTitle=\"produto\" [(ngModel)]=\"saldoPorProdutoFilter.materialId\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"destinatarioIdNavio\" name=\"destinatarioIdNavio\"\n                                        label=\"navio\" modalTitle=\"navio\"\n                                        [(ngModel)]=\"saldoPorProdutoFilter.destinatarioIdNavio\" tipoDestinatario=\"N\"\n                                        showCgcCpf=\"false\" showInscricao=\"false\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-sto-contrato-item id=\"contrato\" name=\"contrato\"\n                                        [(ngModel)]=\"saldoPorProdutoFilter.stoContratoId\"\n                                        (outSelected)=\"trataContrato($event)\">\n                                    </app-pesquisa-sto-contrato-item>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\" modalTitle=\"lote\"\n                                    [(ngModel)]=\"saldoPorProdutoFilter.loteId\"\n                                    [destinatarioIdCliente]=\"saldoPorProdutoFilter.destinatarioIdCliente\"\n                                    [materialId]=\"saldoPorProdutoFilter.materialId\"\n                                    [loteId]=\"saldoPorProdutoFilter.loteId\"\n                                    [destinatarioIdNavio]=\"saldoPorProdutoFilter.destinatarioIdNavio\"\n                                    [destinatarioIdEmitente]=\"saldoPorProdutoFilter.destinatarioIdEmitente\"\n                                    [osgId]=\"saldoPorProdutoFilter.osgId\"\n                                    [stoContratoId]=\"saldoPorProdutoFilter.stoContratoId\"\n                                    [stoContratoItemId]=\"saldoPorProdutoFilter.stoContratoItemId\"\n                                    [consideraLotesEncerrados]=\"true\">\n                                </app-pesquisa-lote>\n                            </div>\n                            <div class=\"col-lg-8 col-md-8 col-sm-12\">\n                                <div class=\"form-check mt-4\">\n                                    <input class=\"form-check-input\" type=\"checkbox\" id=\"considerarLotesEncerrados\"\n                                        name=\"considerarLotesEncerrados\"\n                                        [(ngModel)]=\"saldoPorProdutoFilter.consideraLotesEncerrados\">\n                                    <label class=\"form-check-label\"\n                                        for=\"considerarLotesEncerrados\">{{'labels.considerarLotesEncerrados' |\n                                        translate}}\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group\">\n                                    <app-pesquisa-osg id=\"osg\" label=\"osg\" name=\"osg\" sitOsg=\"T\"\n                                        [destinatarioIdCliente]=\"saldoPorProdutoFilter.destinatarioIdCliente\"\n                                        [materialId]=\"saldoPorProdutoFilter.materialId\"\n                                        [(ngModel)]=\"saldoPorProdutoFilter.osgId\">\n                                    </app-pesquisa-osg>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row mt-1\">\n                            <div class=\"col-12\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        {{ 'buttons.gerarRelatorio' | translate }}\n                                    </button>\n                                    <button class=\"btn btn-success mr-2\" (click)=\"export(f)\" type=\"button\">{{\n                                        'buttons.exportarExcel' | translate }}\n                                    </button>\n                                    <button class=\"btn btn-success mr-2\" (click)=\"sendMail(f)\" type=\"button\">{{\n                                        'buttons.enviarEmail' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-email [reportId]=\"constantes.reportId\" [titulo]=\"constantes.reportTitulo.titulo\"\n    [subTitulo]=\"constantes.reportTitulo.subTitulo\" [data]=\"constantes.paramRelatorio\"></app-email>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaldoPorProdutoFormComponent", function() { return SaldoPorProdutoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __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_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.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 _saldo_por_produto_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../saldo-por-produto.constants */ "./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.constants.ts");
/* harmony import */ var _saldo_por_produto_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../saldo-por-produto.model */ "./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.model.ts");
/* harmony import */ var _pages_login_login_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../../../../pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_14__ = __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_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../../../../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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
















var SaldoPorProdutoFormComponent = /** @class */ (function (_super) {
    __extends(SaldoPorProdutoFormComponent, _super);
    function SaldoPorProdutoFormComponent(loginService, permissoesUtils, funcoesService, configuracao, excelService, reportService, messageService) {
        var _this = _super.call(this, new _saldo_por_produto_constants__WEBPACK_IMPORTED_MODULE_9__["SaldoPorProdutoConstants"](), funcoesService) || this;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.configuracao = configuracao;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.messageService = messageService;
        _this.mensagens = [];
        _this.constantes = new _saldo_por_produto_constants__WEBPACK_IMPORTED_MODULE_9__["SaldoPorProdutoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.saldoPorProdutoFilter = new _saldo_por_produto_model__WEBPACK_IMPORTED_MODULE_10__["SaldoPorProdutoFilter"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        _this.dataAtual = new Date();
        _this.isCtrSaldoContab = false;
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.isCtrSaldoContab = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("STO", "CtrSaldoContab"));
            }
        };
        _this.export = function (form) {
            if (!_this.printParams(form))
                return;
            _this.reportService.export(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {};
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                resp.forEach(function (obj) {
                    delete obj.deposito;
                    delete obj.lote;
                    delete obj.codDest;
                    delete obj.cliente;
                    delete obj.precoArmazenado;
                    delete obj.cnpjCliente;
                    delete obj.cnpjEmitente;
                    delete obj.codEmitente;
                    delete obj.emitente;
                    delete obj.estadoEmitente;
                    delete obj.nomeArmazenado;
                    delete obj.codigoProduto;
                    delete obj.valorUnitario;
                    delete obj.origem;
                    delete obj.unidade;
                    delete obj.numContrato;
                });
                _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "saldoPorProduto"), options);
            });
        };
        return _this;
    }
    SaldoPorProdutoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.saldoPorProdutoFilter.filialId = _this.loginService.getLogin().filialId;
            _this.configuracao.getConfig(_this.constantes.configs, _this.loadConfig);
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    SaldoPorProdutoFormComponent.prototype.onSubmit = function (form) {
        if (!this.printParams(form))
            return;
        this.print();
    };
    SaldoPorProdutoFormComponent.prototype.validaGrupoSelecionado = function () {
        var valReturn = false;
        if (this.funcoesService.isPositive(this.saldoPorProdutoFilter.grupoClienteId)) {
            valReturn = true;
        }
        return valReturn;
    };
    SaldoPorProdutoFormComponent.prototype.validaClienteSelecionado = function () {
        var valReturn = false;
        if (this.funcoesService.isPositive(this.saldoPorProdutoFilter.destinatarioIdCliente)) {
            valReturn = true;
        }
        return valReturn;
    };
    SaldoPorProdutoFormComponent.prototype.trataDest = function (destinatario) {
        this.saldoPorProdutoFilter.cliente = destinatario;
    };
    SaldoPorProdutoFormComponent.prototype.trataGrupoCliente = function (grupoCliente) {
        this.saldoPorProdutoFilter.grupoCliente = grupoCliente;
    };
    SaldoPorProdutoFormComponent.prototype.trataContrato = function (contrato) {
        this.saldoPorProdutoFilter.stoContratoId = contrato.stoContratoId;
        this.saldoPorProdutoFilter.stoContratoItemId = contrato.stoContratoItemId;
    };
    SaldoPorProdutoFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    SaldoPorProdutoFormComponent.prototype.printParams = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return false;
        }
        var habilitaCliente = false;
        this.constantes.reportTitulo.subTitulo = "";
        if (this.funcoesService.isPositive(this.saldoPorProdutoFilter.grupoClienteId)) {
            if (this.funcoesService.isNotUndefinedOrNull(this.saldoPorProdutoFilter.grupoCliente)) {
                this.constantes.reportTitulo.subTitulo = this.saldoPorProdutoFilter.grupoCliente.descricao;
                habilitaCliente = true;
            }
        }
        else if (this.funcoesService.isPositive(this.saldoPorProdutoFilter.destinatarioIdCliente)) {
            if (this.funcoesService.isNotUndefinedOrNull(this.saldoPorProdutoFilter.cliente)) {
                this.constantes.reportTitulo.subTitulo = this.saldoPorProdutoFilter.cliente.fantasia;
                habilitaCliente = true;
            }
        }
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataRef: this.saldoPorProdutoFilter.dataRef,
            grupoClienteId: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.saldoPorProdutoFilter.grupoClienteId),
            loteId: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(this.saldoPorProdutoFilter.loteId),
            destinatarioIdCliente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.saldoPorProdutoFilter.destinatarioIdCliente),
            destinatarioIdEmitente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.saldoPorProdutoFilter.destinatarioIdEmitente),
            destinatarioIdNavio: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.saldoPorProdutoFilter.destinatarioIdNavio),
            stoContratoId: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.saldoPorProdutoFilter.stoContratoId),
            stoContratoItemId: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.saldoPorProdutoFilter.stoContratoItemId),
            osgId: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.saldoPorProdutoFilter.osgId),
            materialId: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(this.saldoPorProdutoFilter.materialId),
            consideraLotesEncerrados: _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["BooleanUtilsStaticService"].toBoolean(this.saldoPorProdutoFilter.consideraLotesEncerrados),
            ctrSaldoContab: _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["BooleanUtilsStaticService"].toBoolean(this.isCtrSaldoContab),
            habilitaCliente: _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["BooleanUtilsStaticService"].toBoolean(habilitaCliente),
        };
        return true;
    };
    SaldoPorProdutoFormComponent.prototype.sendMail = function (form) {
        if (!this.printParams(form))
            return;
        _super.prototype.sendMail.call(this, this.constantes);
    };
    SaldoPorProdutoFormComponent.ctorParameters = function () { return [
        { type: _pages_login_login_service__WEBPACK_IMPORTED_MODULE_11__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_14__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_6__["ExcelService"] },
        { type: _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__["ReportService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] }
    ]; };
    SaldoPorProdutoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-saldo-por-produto-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./saldo-por-produto-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto-form/saldo-por-produto-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_pages_login_login_service__WEBPACK_IMPORTED_MODULE_11__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_14__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_6__["ExcelService"],
            _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__["ReportService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"]])
    ], SaldoPorProdutoFormComponent);
    return SaldoPorProdutoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.constants.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.constants.ts ***!
  \***********************************************************************************/
/*! exports provided: SaldoPorProdutoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaldoPorProdutoConstants", function() { return SaldoPorProdutoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SaldoPorProdutoConstants = /** @class */ (function () {
    function SaldoPorProdutoConstants() {
        this.sisFormularioId = 90035;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.saldoPorProduto";
        this.reportId = "REL0005";
        this.reportTitulo = { "titulo": "Saldos por Produto", "subTitulo": "" };
        this.configs = [];
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
        this.configs = [
            { sistema: "STO", parametros: ["CtrSaldoContab"] }
        ];
    }
    return SaldoPorProdutoConstants;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.model.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.model.ts ***!
  \*******************************************************************************/
/*! exports provided: SaldoPorProdutoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaldoPorProdutoFilter", function() { return SaldoPorProdutoFilter; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SaldoPorProdutoFilter = /** @class */ (function () {
    function SaldoPorProdutoFilter() {
        this.filialId = 0;
        var data = new Date();
        data.setHours(23);
        data.setMinutes(59);
        data.setSeconds(59);
        this.dataRef = data;
        this.destinatarioIdCliente = 0;
        this.destinatarioIdEmitente = 0;
        this.grupoClienteId = undefined;
        this.materialId = "";
        this.destinatarioIdNavio = 0;
        this.loteId = "";
        this.consideraLotesEncerrados = true;
        this.stoContratoId = 0;
        this.stoContratoItemId = 0;
        this.osgId = 0;
    }
    return SaldoPorProdutoFilter;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.module.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.module.ts ***!
  \********************************************************************************/
/*! exports provided: SaldoPorProdutoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaldoPorProdutoModule", function() { return SaldoPorProdutoModule; });
/* 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 _saldo_por_produto_form_saldo_por_produto_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./saldo-por-produto-form/saldo-por-produto-form.component */ "./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto-form/saldo-por-produto-form.component.ts");
/* harmony import */ var _saldo_por_produto_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./saldo-por-produto.routing.module */ "./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.routing.module.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 SaldoPorProdutoModule = /** @class */ (function () {
    function SaldoPorProdutoModule() {
    }
    SaldoPorProdutoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _saldo_por_produto_routing_module__WEBPACK_IMPORTED_MODULE_3__["SaldoPorProdutoRoutingModule"]],
            declarations: [_saldo_por_produto_form_saldo_por_produto_form_component__WEBPACK_IMPORTED_MODULE_2__["SaldoPorProdutoFormComponent"]]
        })
    ], SaldoPorProdutoModule);
    return SaldoPorProdutoModule;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.routing.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/relatorios/saldo-por-produto/saldo-por-produto.routing.module.ts ***!
  \****************************************************************************************/
/*! exports provided: SaldoPorProdutoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ })

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