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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/lotes-clientes/lotes-clientes-form/lotes-clientes-form.component.html":
/*!**********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/lotes-clientes/lotes-clientes-form/lotes-clientes-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\" [botoesComando]=\"constantes.listaForm\">\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            <div class=\"\">\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)\" autocomplete=\"off\" novalidate>\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row mt-2\">\r\n                            <div class=\"col-lg-8\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-6\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"dataIni\" class=\"required\">{{\"labels.periodoDe\" | translate\r\n                                                }}</label>\r\n                                            <app-data id=\"dataIni\" name=\"dataIni\" [(ngModel)]=\"filtro.dataI\"\r\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\r\n                                                [required]=\"true\" autofocus>\r\n                                            </app-data>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-6\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"dataF\" class=\"required\">{{\"labels.ate\" | translate }}</label>\r\n                                            <app-data id=\"dataF\" name=\"dataF\" [(ngModel)]=\"filtro.dataF\"\r\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\r\n                                                [required]=\"true\" autofocus>\r\n                                            </app-data>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-6\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"grupoClienteId\">{{\"labels.grupo\" | translate}}</label>\r\n                                            <app-combo-grupo-cliente id=\"grupoClienteId\" name=\"grupoClienteId\"\r\n                                                [disabled]=\"validaClienteSelecionado()\"\r\n                                                [(ngModel)]=\"filtro.grupoClienteId\"\r\n                                                (outSelected)=\"trataGrupoCliente($event)\">\r\n                                            </app-combo-grupo-cliente>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-12\">\r\n                                        <app-pesquisa-destinatario id=\"destinatarioIdCliente\"\r\n                                            name=\"destinatarioIdCliente\" label=\"cliente\" modalTitle=\"cliente\"\r\n                                            [disabled]=\"validaGrupoSelecionado()\"\r\n                                            [(ngModel)]=\"filtro.destinatarioIdCliente\" tipoDestinatario=\"C\"\r\n                                            showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"trataDest($event)\">\r\n                                        </app-pesquisa-destinatario>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-12\">\r\n                                        <app-pesquisa-destinatario id=\"destinatarioIdEmitente\"\r\n                                            name=\"destinatarioIdEmitente\" label=\"emitente\" modalTitle=\"emitente\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"filtro.destinatarioIdEmitente\" tipoDestinatario=\"C\"\r\n                                            showCgcCpf=\"false\" showInscricao=\"false\">\r\n                                        </app-pesquisa-destinatario>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-12\">\r\n                                        <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\r\n                                            modalTitle=\"produto\" [(ngModel)]=\"filtro.materialId\">\r\n                                        </app-pesquisa-material>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row mb-2\">\r\n                                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                                        <div class=\"form-check mb-2\">\r\n                                            <input id=\"apresentaLoteEncerrado\" class=\"form-check-input\" type=\"checkbox\"\r\n                                                name=\"apresentaLoteEncerrado\" [(ngModel)]=\"filtro.apresentaLoteEncerrado\">\r\n                                            <label class=\"form-check-label\" for=\"apresentaLoteEncerrado\">\r\n                                                {{'labels.apresentaLoteEncerrado' | translate}}\r\n                                            </label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success mr-2\" [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ 'buttons.gerarRelatorio' | translate }}\r\n                            </button>\r\n                            <button class=\"btn btn-success mr-2\" (click)=\"export(f)\" type=\"button\">{{\r\n                                'buttons.exportarExcel' | translate }}\r\n                            </button>\r\n                            <button class=\"btn btn-success mr-2\" (click)=\"sendMail(f)\" type=\"button\">{{\r\n                                'buttons.enviarEmail' | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </form>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-email [reportId]=\"constantes.reportId\" [titulo]=\"constantes.reportTitulo.titulo\"\r\n    [subTitulo]=\"constantes.reportTitulo.subTitulo\" [data]=\"constantes.paramRelatorio\"></app-email>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LotesClientesFormComponent", function() { return LotesClientesFormComponent; });
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __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_6__ = __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_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _lotes_clientes_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../lotes-clientes.constants */ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.constants.ts");
/* harmony import */ var _lotes_clientes_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../lotes-clientes.model */ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.model.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __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 _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-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 LotesClientesFormComponent = /** @class */ (function (_super) {
    __extends(LotesClientesFormComponent, _super);
    function LotesClientesFormComponent(router, loginService, permissoesUtils, funcoesService, excelService, reportService, messageService) {
        var _this = _super.call(this, new _lotes_clientes_constants__WEBPACK_IMPORTED_MODULE_9__["LotesClientesConstants"](), funcoesService) || this;
        _this.router = router;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.messageService = messageService;
        _this.mensagens = [];
        _this.constantes = new _lotes_clientes_constants__WEBPACK_IMPORTED_MODULE_9__["LotesClientesConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.filtro = new _lotes_clientes_model__WEBPACK_IMPORTED_MODULE_10__["LotesClientes"]();
        _this.disabledGrupo = false;
        _this.disabledCliente = false;
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__["Mascaras"]();
        _this.export = function (form) {
            if (!_this.printParams(form))
                false;
            _this.reportService.export(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {
                    "materialId": "produto",
                    "precoArmazenado": "precoArmazenado",
                };
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                resp.forEach(function (r) {
                    delete r.observ;
                });
                resp = resp.map(function (_a) {
                    var loteId = _a.loteId, dataLote = _a.dataLote, precoArmazenado = _a.precoArmazenado, precoSeguro = _a.precoSeguro, densidade = _a.densidade, produto = _a.produto, unidadeId = _a.unidadeId, destinatarioIdCliente = _a.destinatarioIdCliente, cliente = _a.cliente, materialId = _a.materialId;
                    return { loteId: loteId, dataLote: dataLote, precoArmazenado: precoArmazenado, precoSeguro: precoSeguro, densidade: densidade, produto: produto, unidadeId: unidadeId, destinatarioIdCliente: destinatarioIdCliente, cliente: cliente, materialId: materialId };
                });
                _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "lotesClientes"), options);
            });
        };
        return _this;
    }
    LotesClientesFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    LotesClientesFormComponent.prototype.onSubmit = function (form) {
        if (!this.printParams(form))
            false;
        this.print();
    };
    LotesClientesFormComponent.prototype.onCancelar = function () {
        this.filtro = new _lotes_clientes_model__WEBPACK_IMPORTED_MODULE_10__["LotesClientes"]();
    };
    LotesClientesFormComponent.prototype.validaGrupoSelecionado = function () {
        var valReturn = false;
        if (this.filtro.grupoClienteId > 0) {
            valReturn = true;
        }
        return valReturn;
    };
    LotesClientesFormComponent.prototype.validaClienteSelecionado = function () {
        var valReturn = false;
        if (this.filtro.destinatarioIdCliente > 0) {
            valReturn = true;
        }
        return valReturn;
    };
    LotesClientesFormComponent.prototype.trataDest = function (destinatario) {
        this.filtro.cliente = destinatario;
    };
    LotesClientesFormComponent.prototype.trataGrupoCliente = function (grupoCliente) {
        this.filtro.grupoCliente = grupoCliente;
    };
    LotesClientesFormComponent.prototype.printParams = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(!form);
        if (form.invalid) {
            return false;
        }
        this.constantes.reportTitulo.subTitulo = "";
        if (this.funcoesService.isPositive(this.filtro.grupoClienteId)) {
            if (this.funcoesService.isNotUndefinedOrNull(this.filtro.grupoCliente.descricao)) {
                this.constantes.reportTitulo.subTitulo = this.filtro.grupoCliente.descricao;
            }
        }
        else if (this.funcoesService.isPositive(this.filtro.destinatarioIdCliente)) {
            if (this.funcoesService.isNotUndefinedOrNull(this.filtro.cliente)) {
                this.constantes.reportTitulo.subTitulo = this.filtro.cliente.fantasia;
            }
        }
        this.constantes.paramRelatorio = {
            filialId: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.loginService.getLogin().filialId),
            dataI: this.filtro.dataI,
            dataF: this.filtro.dataF,
            grupoClienteId: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.filtro.grupoClienteId),
            destinatarioIdCliente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.filtro.destinatarioIdCliente),
            destinatarioIdEmitente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.filtro.destinatarioIdEmitente),
            materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(this.filtro.materialId),
            apresentaLoteEncerrado: app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["BooleanUtilsStaticService"].toBoolean(this.filtro.apresentaLoteEncerrado)
        };
        return true;
    };
    LotesClientesFormComponent.prototype.sendMail = function (form) {
        if (!this.printParams(form))
            false;
        _super.prototype.sendMail.call(this, this.constantes);
    };
    LotesClientesFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    LotesClientesFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_13__["ExcelService"] },
        { type: _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__["ReportService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"] }
    ]; };
    LotesClientesFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: "app-lotes-clientes-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./lotes-clientes-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/lotes-clientes/lotes-clientes-form/lotes-clientes-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_13__["ExcelService"],
            _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__["ReportService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"]])
    ], LotesClientesFormComponent);
    return LotesClientesFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.constants.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/relatorios/lotes-clientes/lotes-clientes.constants.ts ***!
  \*****************************************************************************/
/*! exports provided: LotesClientesConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.model.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/relatorios/lotes-clientes/lotes-clientes.model.ts ***!
  \*************************************************************************/
/*! exports provided: LotesClientes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LotesClientes", function() { return LotesClientes; });
/* 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 LotesClientes = /** @class */ (function () {
    /*observ: string;*/
    function LotesClientes() {
        this.filialId = 0;
        var dataFinal = new Date();
        dataFinal.setHours(23);
        dataFinal.setMinutes(59);
        dataFinal.setSeconds(59);
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_0__().startOf('month').toDate();
        this.dataF = dataFinal;
        this.destinatarioIdCliente = 0;
        this.destinatarioIdEmitente = 0;
        this.grupoClienteId = undefined;
        this.materialId = "";
        this.destinatarioIdNavio = 0;
        this.loteId = "";
        this.operacaoId = 0;
        this.apresentaLoteEncerrado = false;
    }
    return LotesClientes;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.module.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/relatorios/lotes-clientes/lotes-clientes.module.ts ***!
  \**************************************************************************/
/*! exports provided: LotesClientesModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LotesClientesModule", function() { return LotesClientesModule; });
/* 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 _lotes_clientes_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lotes-clientes.routing.module */ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.routing.module.ts");
/* harmony import */ var _lotes_clientes_form_lotes_clientes_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lotes-clientes-form/lotes-clientes-form.component */ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes-form/lotes-clientes-form.component.ts");
/* harmony import */ var _lotes_clientes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lotes-clientes.service */ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.service.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 LotesClientesModule = /** @class */ (function () {
    function LotesClientesModule() {
    }
    LotesClientesModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _lotes_clientes_routing_module__WEBPACK_IMPORTED_MODULE_2__["LotesClientesRoutingModule"]],
            declarations: [_lotes_clientes_form_lotes_clientes_form_component__WEBPACK_IMPORTED_MODULE_3__["LotesClientesFormComponent"]],
            providers: [_lotes_clientes_service__WEBPACK_IMPORTED_MODULE_4__["LotesClientesService"]]
        })
    ], LotesClientesModule);
    return LotesClientesModule;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.routing.module.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/relatorios/lotes-clientes/lotes-clientes.routing.module.ts ***!
  \**********************************************************************************/
/*! exports provided: LotesClientesRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/relatorios/lotes-clientes/lotes-clientes.service.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/relatorios/lotes-clientes/lotes-clientes.service.ts ***!
  \***************************************************************************/
/*! exports provided: LotesClientesService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LotesClientesService", function() { return LotesClientesService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.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 LotesClientesService = /** @class */ (function (_super) {
    __extends(LotesClientesService, _super);
    function LotesClientesService(http) {
        var _this = _super.call(this, http, "api") || this;
        _this.http = http;
        return _this;
    }
    LotesClientesService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].service_url + "/v1/relatorios/lotesClientes", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    LotesClientesService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    LotesClientesService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], LotesClientesService);
    return LotesClientesService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]));



/***/ })

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