(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cargill-movimentos-barcacas-com-desvio-barcacas-com-desvio-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-filter/barcacas-com-desvio-filter.component.html":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-filter/barcacas-com-desvio-filter.component.html ***!
  \*************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"barcacas-com-desvio-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-30\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaBarcacasComDesvio' | translate }}</h6>\n            </div>\n            <div class=\"modal-body\">\n                <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"listaTiposDesvios\">{{'labels.tiposDesvios' | translate}}</label>\n                                <select id=\"listaTiposDesvios\" name=\"listaTiposDesvios\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.filtro.flagDesvio\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\n                                    <option *ngFor=\"let tiposDesvios of listaTiposDesvios\" [value]=\"tiposDesvios.value\">\n                                        {{ tiposDesvios.label | translate}}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label class=\"required\" for=\"periodoDe\">{{ 'labels.periodoDe' | translate }}</label>\n                                <app-data-h-m-s id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                    [(ngModel)]=\"service.filtro.dataI\">\n                                </app-data-h-m-s>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label class=\"required\" for=\"ate\">{{ 'labels.ate' | translate }}</label>\n                                <app-data-h-m-s id=\"ate\" name=\"ate\" required=\"true\"\n                                    [(ngModel)]=\"service.filtro.dataF\">\n                                </app-data-h-m-s>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"modal-footer\">\n                        <button class=\"btn btn-success\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\n                        <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.html ***!
  \***********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\" \n    [itemData]=\"data.cliCglLineUpBarcacaId\">\n</app-menu-command-bar>\n\n<div class=\"clearfix\">&nbsp;</div>\n<div class=\"section-comand-bar\">\n    <app-table>\n        <div class=\"table-responsive\" style=\"overflow: auto;\">\n            <table id=\"dtBarcacasComDesvio\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                <thead>\n                    <tr>\n                        <th>{{ 'labels.id' | translate }}</th>\n                        <th>{{ 'labels.barcacas' | translate }}</th>\n                        <th>{{ 'labels.comboio' | translate }}</th>\n                        <th>{{ 'labels.origem' | translate }}</th>\n                        <th>{{ 'labels.data' | translate }}</th>\n                        <th>{{ 'labels.produto' | translate }}</th>\n                        <th>{{ 'labels.umidade' | translate }}</th>\n                        <th>{{ 'labels.avariado' | translate }}</th>\n                        <th>{{ 'labels.impureza' | translate }}</th>\n                        <th>{{ 'labels.temperatura' | translate }}</th>\n                        <th>{{ 'labels.justificativa' | translate }}</th>\n                        <th class=\"text-center\">{{ 'labels.orig' | translate}}</th>\n                        <th class=\"text-center\">{{ 'labels.dest' | translate}}</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr *ngFor=\"let t of dados; index as i\"  (click)=\"data = t\"\n                        [ngClass]=\"{'info': t == data }\">\n                        <td>{{ t.cliCglLineUpBarcacaId }}</td>\n                        <td>{{ t.barcaca }}</td>\n                        <td>{{ t.title }}</td>\n                        <td>{{ t.origem }}</td>\n                        <td>{{ t.dtAtracacaoComboio | date: 'dd/MM/yyyy' }}</td>\n                        <td>{{ t.produtoBarcaca }}</td>\n                        <td><span [ngClass]=\"{'color-red': t?.flagDesvioUmidade === 'S'}\">{{ t.umidadeDest | formatCurrency: 2 }}</span></td>\n                        <td><span [ngClass]=\"{'color-red': t?.flagDesvioAvariado === 'S'}\">{{ t.avariadoDest | formatCurrency: 2 }}</span></td>\n                        <td><span [ngClass]=\"{'color-red': t?.flagDesvioTemperatura === 'S'}\">{{ t.impurezaDest | formatCurrency: 2 }}</span></td>\n                        <td><span [ngClass]=\"{'color-red': t?.flagDesvioImpureza === 'S'}\">{{ t.temperaturaDest | formatCurrency: 2 }}</span></td>\n                        <td>\n                            <input [id]=\"'justReclassifRealizada_' + i\" class=\"form-control form-control-sm\" type=\"text\"\n                                [name]=\"'justReclassifRealizada_' + i\" [disabled]=\"t.flagReclassifOri === 'R'\"\n                                [(ngModel)]=\"t.justReclassifRealizada\" maxlength=\"150\">\n                        </td>\n                        <td class=\"text-center\">\n                            <label class=\"chk\">\n                                <input type=\"checkbox\" [id]=\"'selecionaOri_' + i\" [name]=\"'selecionaOri_' + i\"\n                                    (ngModelChange)=\"reclassificarSelecionados(t.flagReclassifOri, t, 'Ori')\"\n                                    [disabled]=\"t.flagSegundaReclassifOri === 'S' && t.flagReclassifOri === 'S'\"\n                                    [ngModel]=\"['S', 'R'].includes(t.flagReclassifOri)\">\n                                <span\n                                    [ngClass]=\"{'red': t.flagReclassifOri === 'S', 'ligthgree': t.flagReclassifOri === 'R'}\"></span>\n                            </label>\n                        </td>\n                        <td class=\"text-center\">\n                            <label class=\"chk\">\n                                <input type=\"checkbox\" [id]=\"'selecionaDest_' + i\" [name]=\"'selecionaDest_' + i\"\n                                    (ngModelChange)=\"reclassificarSelecionados(t.flagReclassifDes ,t, 'Des')\"\n                                    [disabled]=\"t.flagSegundaReclassifDes === 'S' && t.flagReclassifDes === 'S'\"\n                                    [ngModel]=\"['S', 'R'].includes(t.flagReclassifDes)\">\n                                <span [ngClass]=\"{'red': t.flagReclassifDes === 'S', 'ligthgree': t.flagReclassifDes === 'R'}\"></span>\n                            </label>\n                        </td>                      \n                    </tr>\n                    <tr *ngIf=\"!hasDadosBarcacasComDesvio\">\n                        <th colspan=\"15\" style=\"text-align: center\">\n                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                        </th>\n                    </tr>\n                </tbody>\n            </table>\n        </div>\n    </app-table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-barcacas-com-desvio-filter (filtrar)=\"refreshBarcacasComDesvio()\"></app-barcacas-com-desvio-filter>\n<app-barcacas-com-desvio-log></app-barcacas-com-desvio-log>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-log/barcacas-com-desvio-log.component.html":
/*!*******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-log/barcacas-com-desvio-log.component.html ***!
  \*******************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"barcacas-com-desvio-log\" tabindex=\"-1\" role=\"log\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.LogBarcacasComDesvio' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <div class=\"table-responsive mt-1\" style=\"overflow: auto; max-height: 300px;\">\n                        <table id=\"dthistoricoDeEmailsEnviados\"\n                            class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                            <thead>\n                                <tr>\n                                    <th>{{ 'labels.id' | translate }}</th>\n                                    <th>{{ 'labels.umidade' | translate }}</th>\n                                    <th>{{ 'labels.avariado' | translate }}</th>\n                                    <th>{{ 'labels.impureza' | translate }}</th>\n                                    <th>{{ 'labels.temperatura' | translate }}</th>\n                                    <th>{{ 'labels.umidadeDest' | translate }}</th>\n                                    <th>{{ 'labels.avariadoDest' | translate }}</th>\n                                    <th>{{ 'labels.impurezaDest' | translate }}</th>\n                                    <th>{{ 'labels.temperaturaDest' | translate }}</th>\n                                    <th>{{ 'labels.justificativa' | translate }}</th>\n                                    <th>{{ 'labels.usuario' | translate }}</th>\n                                </tr>\n                            </thead>\n                            <tbody>\n                                <tr *ngFor=\"let t of dados; index as i\"\n                                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                                    <td>{{ t?.cliCglLineUpBarcacaId }}</td>\n                                    <td>{{ t?.umidade }}</td>\n                                    <td>{{ t?.avariado }}</td>\n                                    <td>{{ t?.impureza }}</td>\n                                    <td>{{ t?.temperatura }}</td>\n                                    <td>{{ t?.umidadeDest }}</td>\n                                    <td>{{ t?.avariadoDest }}</td>\n                                    <td>{{ t?.impurezaDest }}</td>\n                                    <td>{{ t?.temperaturaDest }}</td>\n                                    <td>{{ t?.justReclassifRealizada }}</td>\n                                    <td>{{ t?.operInc }}</td>\n                                </tr>\n                                <tr *ngIf=\"!hasDados\">\n                                    <th colspan=\"10\" style=\"text-align: center\">\n                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                    </th>\n                                </tr>\n                            </tbody>\n                        </table>\n                    </div>\n                    <div class=\"modal-footer\">\n                        <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-filter/barcacas-com-desvio-filter.component.ts":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-filter/barcacas-com-desvio-filter.component.ts ***!
  \*********************************************************************************************************************************************/
/*! exports provided: BarcacasComDesvioFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioFilterComponent", function() { return BarcacasComDesvioFilterComponent; });
/* 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_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../barcacas-com-desvio.model */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.model.ts");
/* harmony import */ var _barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../barcacas-com-desvio.service */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.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 __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 BarcacasComDesvioFilterComponent = /** @class */ (function () {
    function BarcacasComDesvioFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    BarcacasComDesvioFilterComponent.prototype.ngOnInit = function () {
        this.initListaTiposDesvios();
        if (!this.service.filtro) {
            this.service.filtro = new _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_3__["BarcacasComDesvioFilter"]();
        }
    };
    BarcacasComDesvioFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("barcacas-com-desvio-filter-dialog");
        this.filtrar.emit();
    };
    BarcacasComDesvioFilterComponent.prototype.initListaTiposDesvios = function () {
        this.listaTiposDesvios = [
            { value: "S", label: "labels.aReclassificar" },
            { value: "R", label: "labels.reclassificada" },
        ];
    };
    BarcacasComDesvioFilterComponent.ctorParameters = function () { return [
        { type: _barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_4__["BarcacasComDesvioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_3__["BarcacasComDesvioFilter"])
    ], BarcacasComDesvioFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], BarcacasComDesvioFilterComponent.prototype, "filtrar", void 0);
    BarcacasComDesvioFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-barcacas-com-desvio-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./barcacas-com-desvio-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-filter/barcacas-com-desvio-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_4__["BarcacasComDesvioService"]])
    ], BarcacasComDesvioFilterComponent);
    return BarcacasComDesvioFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.scss":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.scss ***!
  \*********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\nspan.color-red {\n  background-color: #e3533a;\n  padding: 2px 6px;\n  border-radius: 5px;\n  color: #f3dad5;\n}\n\nspan.ligthgree {\n  background-color: #37b400;\n}\n\n.table-sm td {\n  vertical-align: middle;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY2FyZ2lsbC9tb3ZpbWVudG9zL2JhcmNhY2FzLWNvbS1kZXN2aW8vYmFyY2FjYXMtY29tLWRlc3Zpby1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxjYXJnaWxsXFxtb3ZpbWVudG9zXFxiYXJjYWNhcy1jb20tZGVzdmlvXFxiYXJjYWNhcy1jb20tZGVzdmlvLWluZGV4XFxiYXJjYWNhcy1jb20tZGVzdmlvLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9jYXJnaWxsL21vdmltZW50b3MvYmFyY2FjYXMtY29tLWRlc3Zpby9iYXJjYWNhcy1jb20tZGVzdmlvLWluZGV4L2JhcmNhY2FzLWNvbS1kZXN2aW8taW5kZXguY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0FDQ0o7O0FERUE7RUFDSSx5QkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxjQUFBO0FDQ0o7O0FERUE7RUFDSSx5QkFBQTtBQ0NKOztBREVBO0VBQ0ksc0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NhcmdpbGwvbW92aW1lbnRvcy9iYXJjYWNhcy1jb20tZGVzdmlvL2JhcmNhY2FzLWNvbS1kZXN2aW8taW5kZXgvYmFyY2FjYXMtY29tLWRlc3Zpby1pbmRleC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jaGsgaW5wdXQge1xyXG4gICAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmNoayBzcGFuIHtcclxuICAgIHdpZHRoOiAxMnB4O1xyXG4gICAgaGVpZ2h0OiAxMnB4O1xyXG4gICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xyXG4gICAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7XHJcbn1cclxuXHJcbnNwYW4ucmVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XHJcbn1cclxuXHJcbnNwYW4uY29sb3ItcmVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNlMzUzM2E7XHJcbiAgICBwYWRkaW5nOiAycHggNnB4O1xyXG4gICAgYm9yZGVyLXJhZGl1czogNXB4O1xyXG4gICAgY29sb3I6ICNmM2RhZDU7XHJcbn1cclxuXHJcbnNwYW4ubGlndGhncmVlIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICMzN2I0MDA7XHJcbn1cclxuXHJcbi50YWJsZS1zbSB0ZCB7XHJcbiAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xyXG59IiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxMnB4O1xuICBoZWlnaHQ6IDEycHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxMDAlO1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59XG5cbnNwYW4uY29sb3ItcmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2UzNTMzYTtcbiAgcGFkZGluZzogMnB4IDZweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICBjb2xvcjogI2YzZGFkNTtcbn1cblxuc3Bhbi5saWd0aGdyZWUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzdiNDAwO1xufVxuXG4udGFibGUtc20gdGQge1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: BarcacasComDesvioIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioIndexComponent", function() { return BarcacasComDesvioIndexComponent; });
/* 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 _barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../barcacas-com-desvio.service */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* 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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../barcacas-com-desvio.model */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.model.ts");
/* harmony import */ var _barcacas_com_desvio_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../barcacas-com-desvio.constants */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.constants.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var 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 app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __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");
/* harmony import */ var _barcacas_com_desvio_log_barcacas_com_desvio_log_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../barcacas-com-desvio-log/barcacas-com-desvio-log.component */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-log/barcacas-com-desvio-log.component.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



















var BarcacasComDesvioIndexComponent = /** @class */ (function (_super) {
    __extends(BarcacasComDesvioIndexComponent, _super);
    function BarcacasComDesvioIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _barcacas_com_desvio_constants__WEBPACK_IMPORTED_MODULE_7__["BarcacasComDesvioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_6__["BarcacasComDesvio"]();
        _this.dadosBarcacasComDesvio = [];
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_16__["Mascaras"]();
        _this.constantes = new _barcacas_com_desvio_constants__WEBPACK_IMPORTED_MODULE_7__["BarcacasComDesvioConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cargill/movimentos/barcacasComDesvio";
        _this.historicoLog = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    this.childBarcacasComDesvioLogComponent.objectSelect(this.data.cliCglLineUpBarcacaId);
                    app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ModalUtilsStaticService"].openModal("barcacas-com-desvio-log");
                    return [2 /*return*/];
                });
            }); });
        };
        _this.refreshBarcacasComDesvio = function () {
            _this.service.getDados(_this.service.filtro).subscribe(function (resp) { return _this.dadosBarcacasComDesvio = resp; });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _super.prototype.addFuncoes.call(_this, [
            { action: 'historicoLog', func: function () { return _this.historicoLog; } }
        ]);
        return _this;
    }
    BarcacasComDesvioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.abrirModal();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    BarcacasComDesvioIndexComponent.prototype.abrirLog = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ModalUtilsStaticService"].openModal("barcacas-com-desvio-log");
    };
    BarcacasComDesvioIndexComponent.prototype.abrirModal = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ModalUtilsStaticService"].openModal("barcacas-com-desvio-filter-dialog");
    };
    BarcacasComDesvioIndexComponent.prototype.filtrar = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__["EventEmitterService"].get("formError").emit(null);
        jQuery("#barcacas-com-desvio-filter-dialog").modal("show");
    };
    BarcacasComDesvioIndexComponent.prototype.refresh = function () {
        this.refreshBarcacasComDesvio();
    };
    Object.defineProperty(BarcacasComDesvioIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosBarcacasComDesvio || !this.table.filtro) {
                return this.table.getPage(this.dadosBarcacasComDesvio);
            }
            var dados = this.dadosBarcacasComDesvio.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].exist(v.cliCglLineUpBarcacaId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.barcaca, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.title, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.origem, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtAtracacaoComboio), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.produtoBarcaca, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.umidade, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.avariado, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.impureza, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.temperatura, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.flagReclassifOri, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.flagReclassifDes, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.flagSegundaReclassifOri, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.flagSegundaReclassifDes, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BarcacasComDesvioIndexComponent.prototype, "hasDadosBarcacasComDesvio", {
        get: function () {
            if (!this.dadosBarcacasComDesvio)
                return false;
            return this.dadosBarcacasComDesvio && this.dadosBarcacasComDesvio.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    BarcacasComDesvioIndexComponent.prototype.reclassificarSelecionados = function (flagReclassif, cliCglLineUpBarcaca, tipo) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.validacaoMensagem(cliCglLineUpBarcaca, tipo);
            var s = flagReclassif === 'R' ? 'S' : 'N';
            _this.messageService.confirm("titles.barcacasComDesvio", _this.mensagens, null, function () { return __awaiter(_this, void 0, void 0, function () {
                var _this = this;
                return __generator(this, function (_a) {
                    this.service.reclassificarSelecionados({
                        cliCglLineUpBarcacaId: cliCglLineUpBarcaca.cliCglLineUpBarcacaId,
                        tipo: tipo,
                        justReclassifRealizada: cliCglLineUpBarcaca.justReclassifRealizada,
                        segundaReclassificacao: s
                    }).subscribe(function (result) {
                        if (!result.isValid) {
                            result.erros.forEach(function (m) { return _this.messageService.translate(m.message); });
                            return;
                        }
                        else {
                            _this.messageService.saveSuccess("titles.barcacasComDesvio");
                            _this.refreshBarcacasComDesvio();
                        }
                    });
                    return [2 /*return*/];
                });
            }); }, false);
        });
    };
    BarcacasComDesvioIndexComponent.prototype.validacaoMensagem = function (cliCglLineUpBarcaca, tipo) {
        if (tipo === 'Ori') {
            if (cliCglLineUpBarcaca.flagReclassifOri === 'R') {
                this.mensagens = "messages.removerBarcacaJaReclassificada";
            }
            else if (cliCglLineUpBarcaca.flagReclassifOri === 'S') {
                this.mensagens = "messages.removerReclassificacaoBarcaca";
            }
            else {
                this.mensagens = "messages.enviarReclassificacaoBarcaca";
            }
        }
        else {
            if (cliCglLineUpBarcaca.flagReclassifDes === 'R') {
                this.mensagens = "messages.removerBarcacaJaReclassificada";
            }
            else if (cliCglLineUpBarcaca.flagReclassifDes === 'S') {
                this.mensagens = "messages.removerReclassificacaoBarcaca";
            }
            else {
                this.mensagens = "messages.enviarReclassificacaoBarcaca";
            }
        }
    };
    BarcacasComDesvioIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                FlagDesvio: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].toString(_this.service.filtro.flagDesvio),
                dataI: _this.service.filtro.dataI,
                dataF: _this.service.filtro.dataF
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    BarcacasComDesvioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    BarcacasComDesvioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_2__["BarcacasComDesvioService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_barcacas_com_desvio_log_barcacas_com_desvio_log_component__WEBPACK_IMPORTED_MODULE_18__["BarcacasComDesvioLogComponent"], { static: false }),
        __metadata("design:type", _barcacas_com_desvio_log_barcacas_com_desvio_log_component__WEBPACK_IMPORTED_MODULE_18__["BarcacasComDesvioLogComponent"])
    ], BarcacasComDesvioIndexComponent.prototype, "childBarcacasComDesvioLogComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_13__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_13__["TableComponent"])
    ], BarcacasComDesvioIndexComponent.prototype, "table", void 0);
    BarcacasComDesvioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-barcacas-com-desvio-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./barcacas-com-desvio-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./barcacas-com-desvio-index.component.scss */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_2__["BarcacasComDesvioService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"]])
    ], BarcacasComDesvioIndexComponent);
    return BarcacasComDesvioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-log/barcacas-com-desvio-log.component.ts":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-log/barcacas-com-desvio-log.component.ts ***!
  \***************************************************************************************************************************************/
/*! exports provided: BarcacasComDesvioLogComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioLogComponent", function() { return BarcacasComDesvioLogComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../barcacas-com-desvio.model */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.model.ts");
/* harmony import */ var _barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../barcacas-com-desvio.service */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.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 __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 BarcacasComDesvioLogComponent = /** @class */ (function () {
    function BarcacasComDesvioLogComponent(funcoesService, messageService, service, loginService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.data = new _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_2__["BarcacasComDesvioLog"]();
        this.hasDados = false;
    }
    BarcacasComDesvioLogComponent.prototype.ngOnInit = function () {
    };
    BarcacasComDesvioLogComponent.prototype.onSubmit = function (form) {
        jQuery("#barcacas-com-desvio-log").modal("hide");
    };
    BarcacasComDesvioLogComponent.prototype.objectSelect = function (id) {
        var _this = this;
        this.service.getDadosHistoricoLog(id).subscribe(function (resp) {
            _this.dados = resp;
            _this.comboioId = id;
            _this.hasDados = resp && resp.length > 0;
        });
    };
    BarcacasComDesvioLogComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_3__["BarcacasComDesvioService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] }
    ]; };
    BarcacasComDesvioLogComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-barcacas-com-desvio-log",
            template: __importDefault(__webpack_require__(/*! raw-loader!./barcacas-com-desvio-log.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-log/barcacas-com-desvio-log.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _barcacas_com_desvio_service__WEBPACK_IMPORTED_MODULE_3__["BarcacasComDesvioService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"]])
    ], BarcacasComDesvioLogComponent);
    return BarcacasComDesvioLogComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.constants.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.constants.ts ***!
  \***********************************************************************************************************/
/*! exports provided: BarcacasComDesvioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioConstants", function() { return BarcacasComDesvioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var BarcacasComDesvioConstants = /** @class */ (function () {
    function BarcacasComDesvioConstants() {
        this.sisFormularioId = 375118;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.reenviarRegistrosSelecionados" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.historicoLog" },
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.BarcacasComDesvio";
        this.reportId = "CAR0038";
        this.reportTitulo = { "titulo": "Barcaças com Desvio", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'HistoricoLog', action: 'historicoLog', icon: "fa fa-history", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return BarcacasComDesvioConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.model.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.model.ts ***!
  \*******************************************************************************************************/
/*! exports provided: BarcacasComDesvio, BarcacasComDesvioLog, BarcacasComDesvioFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvio", function() { return BarcacasComDesvio; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioLog", function() { return BarcacasComDesvioLog; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioFilter", function() { return BarcacasComDesvioFilter; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var BarcacasComDesvio = /** @class */ (function (_super) {
    __extends(BarcacasComDesvio, _super);
    function BarcacasComDesvio() {
        return _super.call(this) || this;
    }
    return BarcacasComDesvio;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var BarcacasComDesvioLog = /** @class */ (function (_super) {
    __extends(BarcacasComDesvioLog, _super);
    function BarcacasComDesvioLog() {
        return _super.call(this) || this;
    }
    return BarcacasComDesvioLog;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var BarcacasComDesvioFilter = /** @class */ (function () {
    function BarcacasComDesvioFilter() {
        this.flagDesvio = '';
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -60);
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
    }
    return BarcacasComDesvioFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.module.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.module.ts ***!
  \********************************************************************************************************/
/*! exports provided: BarcacasComDesvioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioModule", function() { return BarcacasComDesvioModule; });
/* 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 _barcacas_com_desvio_filter_barcacas_com_desvio_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./barcacas-com-desvio-filter/barcacas-com-desvio-filter.component */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-filter/barcacas-com-desvio-filter.component.ts");
/* harmony import */ var _barcacas_com_desvio_log_barcacas_com_desvio_log_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./barcacas-com-desvio-log/barcacas-com-desvio-log.component */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-log/barcacas-com-desvio-log.component.ts");
/* harmony import */ var _barcacas_com_desvio_index_barcacas_com_desvio_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./barcacas-com-desvio-index/barcacas-com-desvio-index.component */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.component.ts");
/* harmony import */ var _barcacas_com_desvio_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./barcacas-com-desvio.routing.module */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.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 BarcacasComDesvioModule = /** @class */ (function () {
    function BarcacasComDesvioModule() {
    }
    BarcacasComDesvioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _barcacas_com_desvio_index_barcacas_com_desvio_index_component__WEBPACK_IMPORTED_MODULE_4__["BarcacasComDesvioIndexComponent"],
                _barcacas_com_desvio_filter_barcacas_com_desvio_filter_component__WEBPACK_IMPORTED_MODULE_2__["BarcacasComDesvioFilterComponent"],
                _barcacas_com_desvio_log_barcacas_com_desvio_log_component__WEBPACK_IMPORTED_MODULE_3__["BarcacasComDesvioLogComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _barcacas_com_desvio_routing_module__WEBPACK_IMPORTED_MODULE_5__["BarcacasComDesvioRoutingModule"]
            ]
        })
    ], BarcacasComDesvioModule);
    return BarcacasComDesvioModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.routing.module.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.routing.module.ts ***!
  \****************************************************************************************************************/
/*! exports provided: BarcacasComDesvioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioRoutingModule", function() { return BarcacasComDesvioRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _barcacas_com_desvio_index_barcacas_com_desvio_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./barcacas-com-desvio-index/barcacas-com-desvio-index.component */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio-index/barcacas-com-desvio-index.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 BarcacasComDesvioRoutes = [
    {
        path: "",
        component: _barcacas_com_desvio_index_barcacas_com_desvio_index_component__WEBPACK_IMPORTED_MODULE_3__["BarcacasComDesvioIndexComponent"],
        data: {
            breadcrumb: "barcacasComDesvio",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var BarcacasComDesvioRoutingModule = /** @class */ (function () {
    function BarcacasComDesvioRoutingModule() {
    }
    BarcacasComDesvioRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(BarcacasComDesvioRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], BarcacasComDesvioRoutingModule);
    return BarcacasComDesvioRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.service.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.service.ts ***!
  \*********************************************************************************************************/
/*! exports provided: BarcacasComDesvioService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BarcacasComDesvioService", function() { return BarcacasComDesvioService; });
/* 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 _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./barcacas-com-desvio.model */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.model.ts");
/* harmony import */ var _barcacas_com_desvio_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./barcacas-com-desvio.constants */ "./src/app/pages/especificos/cargill/movimentos/barcacas-com-desvio/barcacas-com-desvio.constants.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_7__ = __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 BarcacasComDesvioService = /** @class */ (function (_super) {
    __extends(BarcacasComDesvioService, _super);
    function BarcacasComDesvioService(http) {
        var _this = _super.call(this, http, "cargill/barcacasComDesvio") || this;
        _this.http = http;
        _this.filtro = new _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_2__["BarcacasComDesvioFilter"]();
        _this.barcacasComDesvio = new _barcacas_com_desvio_model__WEBPACK_IMPORTED_MODULE_2__["BarcacasComDesvio"]();
        _this.constantes = new _barcacas_com_desvio_constants__WEBPACK_IMPORTED_MODULE_3__["BarcacasComDesvioConstants"]();
        return _this;
    }
    BarcacasComDesvioService.prototype.reclassificarSelecionados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_7__["environment"].specifics_service_url + "/api/v1/cargill/barcacasComDesvio/reclassificar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    BarcacasComDesvioService.prototype.getDados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_7__["environment"].specifics_service_url + "/api/v1/cargill/barcacasComDesvio/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    BarcacasComDesvioService.prototype.getDadosHistoricoLog = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_7__["environment"].specifics_service_url + "/api/v1/cargill/barcacasComDesvio/getDadosHistoricoLog/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    BarcacasComDesvioService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    BarcacasComDesvioService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], BarcacasComDesvioService);
    return BarcacasComDesvioService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cargill-movimentos-barcacas-com-desvio-barcacas-com-desvio-module.js.map