(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cargill-relatorios-cut-off-cut-off-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off-form/cut-off-form.component.html":
/*!*********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off-form/cut-off-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\">\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 col-md-10 col-sm-12\">\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                                            <label for=\"periodoDe\" class=\"required\">{{ \"labels.periodoDe\" | translate }}</label>\n                                            <app-data id=\"periodoDe\" name=\"periodoDe\" class=\"dataHora\"\n                                                autofocus\n                                                required=\"true\"\n                                                [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                                [(ngModel)]=\"data.dataI\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                            <app-data id=\"ate\" name=\"ate\" class=\"dataHora\"\n                                                required=\"true\"\n                                                maxlength=\"1\"\n                                                [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                                [(ngModel)]=\"data.dataF\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-material  id=\"materialId\"\n                                                                    name=\"materialId\"\n                                                                    label=\"produto\"\n                                                                    modalTitle=\"produto\"\n                                                                    flagResiduo=\"N\"\n                                                                    [(ngModel)]=\"data.materialId\">\n                                            </app-pesquisa-material>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"listaQuebra\" name=\"listaQuebra\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [ngModel]=\"data.listaQuebra === 'S'\"\n                                                (ngModelChange)=\"consideraQuebraChange($event)\">\n                                            <label class=\"custom-control-label\" for=\"listaQuebra\">\n                                                {{'labels.consideraQuebrasJaLancadas' | translate}}\n                                            </label>\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-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                    </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<app-email [reportId]=\"constantes.reportId\" [titulo]=\"constantes.reportTitulo.titulo\"\n    [subTitulo]=\"constantes.reportTitulo.subTitulo\" [data]=\"constantes.paramRelatorio\"></app-email>");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off-form/cut-off-form.component.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off-form/cut-off-form.component.ts ***!
  \*****************************************************************************************************/
/*! exports provided: CutOffFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CutOffFormComponent", function() { return CutOffFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __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 app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _cut_off_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../cut-off.constants */ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.constants.ts");
/* harmony import */ var _cut_off_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cut-off.model */ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.model.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _cut_off_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../cut-off.service */ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-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 CutOffFormComponent = /** @class */ (function (_super) {
    __extends(CutOffFormComponent, _super);
    function CutOffFormComponent(router, messageService, loginService, excelService, cutOffService, permissoesUtils, funcoesService) {
        var _this = _super.call(this, new _cut_off_constants__WEBPACK_IMPORTED_MODULE_10__["CutOffConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.loginService = loginService;
        _this.excelService = excelService;
        _this.cutOffService = cutOffService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.data = new _cut_off_model__WEBPACK_IMPORTED_MODULE_11__["CutOffFilter"]();
        _this.mensagens = [];
        _this.constantes = new _cut_off_constants__WEBPACK_IMPORTED_MODULE_10__["CutOffConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_6__["Mascaras"]();
        _this.export = function (form) {
            if (!_this.printParams(form)) {
                return;
            }
            _this.excelService.getExcelFormat(_this.exportExcel);
        };
        _this.exportExcel = function (selectedFileFormat) {
            _this.data.fileFormat = selectedFileFormat;
            var getRelCutOff$ = _this.cutOffService.getRelExcelCutOff(_this.data);
            _this.excelService.exportCustomExcelReportByServer(getRelCutOff$, _this.messageService.getTranslates("titles", "relatorioCutOff"), selectedFileFormat);
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    CutOffFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    CutOffFormComponent.prototype.onSubmit = function (form) {
        if (!this.printParams(form)) {
            return;
        }
        this.print(null, true);
    };
    CutOffFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    CutOffFormComponent.prototype.onCancelar = function () {
        this.data = new _cut_off_model__WEBPACK_IMPORTED_MODULE_11__["CutOffFilter"]();
    };
    CutOffFormComponent.prototype.printParams = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return false;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["DateTimeUtilsStaticService"].menorA(this.data.dataF, this.data.dataI)) {
            this.messageService.warning("titles.relatorioCutOff", "messages.dataDeMaiordataAte");
            return false;
        }
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataI: this.data.dataI,
            dataF: this.data.dataF,
            materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].toString(this.data.materialId),
            listaQuebra: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].toString(this.data.listaQuebra)
        };
        return true;
    };
    CutOffFormComponent.prototype.sendMail = function (form) {
        if (!this.printParams(form)) {
            return;
        }
        _super.prototype.sendMail.call(this, this.constantes, true);
    };
    CutOffFormComponent.prototype.consideraQuebraChange = function (event) {
        this.data.listaQuebra = event ? "S" : "N";
    };
    CutOffFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_9__["ExcelService"] },
        { type: _cut_off_service__WEBPACK_IMPORTED_MODULE_13__["CutOffService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] }
    ]; };
    CutOffFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-cut-off-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./cut-off-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off-form/cut-off-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_9__["ExcelService"],
            _cut_off_service__WEBPACK_IMPORTED_MODULE_13__["CutOffService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"]])
    ], CutOffFormComponent);
    return CutOffFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.constants.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.constants.ts ***!
  \***********************************************************************************/
/*! exports provided: CutOffConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.model.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.model.ts ***!
  \*******************************************************************************/
/*! exports provided: CutOffFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

var CutOffFilter = /** @class */ (function (_super) {
    __extends(CutOffFilter, _super);
    function CutOffFilter() {
        var _this = _super.call(this) || this;
        var dtFinal = new Date();
        dtFinal.setHours(23);
        dtFinal.setMinutes(59);
        dtFinal.setSeconds(59);
        _this.filialId = 0;
        _this.materialId = "";
        _this.dataI = new Date();
        _this.dataF = dtFinal;
        _this.listaQuebra = "N";
        return _this;
    }
    return CutOffFilter;
}(app_shared_services_funcoes_excel_excel_model__WEBPACK_IMPORTED_MODULE_0__["ExcelFileByServerParams"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.module.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.module.ts ***!
  \********************************************************************************/
/*! exports provided: CutOffModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CutOffModule", function() { return CutOffModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _cut_off_form_cut_off_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cut-off-form/cut-off-form.component */ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off-form/cut-off-form.component.ts");
/* harmony import */ var _cut_off_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cut-off.routing.module */ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.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 CutOffModule = /** @class */ (function () {
    function CutOffModule() {
    }
    CutOffModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _cut_off_routing_module__WEBPACK_IMPORTED_MODULE_3__["CutOffRoutingModule"]],
            declarations: [_cut_off_form_cut_off_form_component__WEBPACK_IMPORTED_MODULE_2__["CutOffFormComponent"]]
        })
    ], CutOffModule);
    return CutOffModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.routing.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.routing.module.ts ***!
  \****************************************************************************************/
/*! exports provided: CutOffRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CutOffRoutingModule", function() { return CutOffRoutingModule; });
/* 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 _cut_off_form_cut_off_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cut-off-form/cut-off-form.component */ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off-form/cut-off-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: _cut_off_form_cut_off_form_component__WEBPACK_IMPORTED_MODULE_3__["CutOffFormComponent"],
        data: { breadcrumb: "relatorioCutOff", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var CutOffRoutingModule = /** @class */ (function () {
    function CutOffRoutingModule() {
    }
    CutOffRoutingModule = __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"]],
        })
    ], CutOffRoutingModule);
    return CutOffRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.service.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/relatorios/cut-off/cut-off.service.ts ***!
  \*********************************************************************************/
/*! exports provided: CutOffService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CutOffService", function() { return CutOffService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 CutOffService = /** @class */ (function (_super) {
    __extends(CutOffService, _super);
    function CutOffService(http) {
        return _super.call(this, http, "cargill/relatorios") || this;
    }
    CutOffService.prototype.getRelExcelCutOff = function (filtro) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cargill/relatorios/relCutOffExcel", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__["ErrorHandler"].handleError));
    };
    CutOffService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    CutOffService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], CutOffService);
    return CutOffService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cargill-relatorios-cut-off-cut-off-module.js.map