(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-operacao-operacao-ferroviaria-carga-check-list-operacao-ferroviaria-carga-check-list-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-filter/operacao-ferroviaria-carga-check-list-filter.component.html":
/*!*********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-filter/operacao-ferroviaria-carga-check-list-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 fade\" id=\"operacao-ferroviaria-carga-check-list-filter-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.operacaoFerroviariaCargaCheckList' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"emissaoDe\" class=\"required\">{{\"labels.emissaoDe\" | translate }}</label>\r\n                                <app-data id=\"emissaoDe\" name=\"emissaoDe\" [(ngModel)]=\"service.filtro.dataI\" autofocus\r\n                                    class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataF\" class=\"dataHora\"\r\n                                    (executa)=\"validaData()\" autofocus\r\n                                    [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                    [(ngModel)]=\"service.filtro.destinatarioIdCliente\" showInscricao=\"false\"\r\n                                    showCgcCpf=\"false\"\r\n                                    [inSelected]=\"service.filtro.cliente\"\r\n                                    (outSelected)=\"service.filtro.cliente = $event\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\r\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\"\r\n                                    [inSelected]=\"service.filtro.material\"\r\n                                    (outSelected)=\"service.filtro.material = $event\">\r\n                                </app-pesquisa-material>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"cadastroPlacaId\">{{ 'labels.placa' | translate}}</label>\r\n                                <input id=\"cadastroPlacaId\" name=\"cadastroPlacaId\" class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"service.filtro.placa\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\" class=\"required\">{{'labels.situacao' | translate}}</label>\r\n                                <select id=\"situacao\"\r\n                                        required=\"true\"\r\n                                        name=\"situacao\"\r\n                                        class=\"form-control form-control-sm\"\r\n                                        [(ngModel)]=\"service.filtro.situacao\">\r\n                                    <option *ngFor=\"let situacao of listaSituacoes\" [value]=\"situacao.value\">{{ situacao.label | translate}}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-index.component.html":
/*!*******************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.regComboio\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <app-pesquisa-comboio\r\n    id=\"comboio\" name=\"comboio\"\r\n    [label]=\"'comboio'\"\r\n    [tipoMov]=\"'C'\"\r\n    [(ngModel)]=\"service.filtro.comboioId\"\r\n    (executa)=\"refresh()\">\r\n</app-pesquisa-comboio>\r\n<div class=\"clearfix\">&nbsp;</div>\r\n    <table id=\"dtOperacaoFerroviariaCargaCheckList\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-operacao-ferroviaria-carga-check-list-filter (filtrar)=\"executaFiltro($event)\"></app-operacao-ferroviaria-carga-check-list-filter>\r\n<app-propriedades></app-propriedades>\r\n<app-operacao-ferroviaria-carga-check-list-recusa-check-list (_refresh)=\"_refresh($event)\"></app-operacao-ferroviaria-carga-check-list-recusa-check-list>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.component.html":
/*!*******************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.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=\"operacao-ferroviaria-carga-recusa-check-list-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-30\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.recusaDeVeiculo' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"motivoRecusa\" class=\"required\">{{'labels.motivoRecusa' | translate}}</label>\r\n                                <input id=\"motivoRecusa\" name=\"motivoRecusa\"\r\n                                       [(ngModel)]=\"data.motivo\"\r\n                                       class=\"form-control form-control-sm\"\r\n                                       type=\"text\"\r\n                                       required=\"true\"\r\n                                       maxlength=\"40\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">cancelar</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-filter/operacao-ferroviaria-carga-check-list-filter.component.ts":
/*!*****************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-filter/operacao-ferroviaria-carga-check-list-filter.component.ts ***!
  \*****************************************************************************************************************************************************************************/
/*! exports provided: OperacaoFerroviariaCargaCheckListFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListFilterComponent", function() { return OperacaoFerroviariaCargaCheckListFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../operacao-ferroviaria-carga-check-list.service */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __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 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 OperacaoFerroviariaCargaCheckListFilterComponent = /** @class */ (function () {
    function OperacaoFerroviariaCargaCheckListFilterComponent(service, loginService, messageService) {
        this.service = service;
        this.loginService = loginService;
        this.messageService = messageService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
    }
    OperacaoFerroviariaCargaCheckListFilterComponent.prototype.ngOnInit = function () {
        this.initListaSituacoes();
    };
    OperacaoFerroviariaCargaCheckListFilterComponent.prototype.initListaSituacoes = function () {
        this.listaSituacoes = [
            { value: "A", label: "labels.emAberto" },
            { value: "B", label: "labels.baixado" },
            { value: "R", label: "labels.recusado" },
            { value: "S", label: "labels.suspenso" },
            { value: "T", label: "labels.todos" }
        ];
    };
    OperacaoFerroviariaCargaCheckListFilterComponent.prototype.onSubmit = function (form) {
        if (!this.validaData()) {
            return;
        }
        if (!form.invalid) {
            this.filtrar.emit();
            jQuery("#operacao-ferroviaria-carga-check-list-filter-dialog").modal("hide");
        }
    };
    OperacaoFerroviariaCargaCheckListFilterComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.operacaoFerroviariaCargaCheckList", "messages.dataDeAteInvalida");
            return false;
        }
        return true;
    };
    OperacaoFerroviariaCargaCheckListFilterComponent.ctorParameters = function () { return [
        { type: _operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoFerroviariaCargaCheckListService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoFerroviariaCargaCheckListFilterComponent.prototype, "filtrar", void 0);
    OperacaoFerroviariaCargaCheckListFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-ferroviaria-carga-check-list-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-ferroviaria-carga-check-list-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-filter/operacao-ferroviaria-carga-check-list-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoFerroviariaCargaCheckListService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"]])
    ], OperacaoFerroviariaCargaCheckListFilterComponent);
    return OperacaoFerroviariaCargaCheckListFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-index.component.ts":
/*!***************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-index.component.ts ***!
  \***************************************************************************************************************************************************************************/
/*! exports provided: OperacaoFerroviariaCargaCheckListIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListIndexComponent", function() { return OperacaoFerroviariaCargaCheckListIndexComponent; });
/* 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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! app/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 _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../operacao-ferroviaria-carga-check-list.model */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.model.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-ferroviaria-carga-check-list.service */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.service.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-ferroviaria-carga-check-list.constants */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.constants.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.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 _operacao_ferroviaria_carga_check_list_recusa_check_list_operacao_ferroviaria_carga_check_list_recusa_check_list_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.component */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.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 OperacaoFerroviariaCargaCheckListIndexComponent = /** @class */ (function (_super) {
    __extends(OperacaoFerroviariaCargaCheckListIndexComponent, _super);
    function OperacaoFerroviariaCargaCheckListIndexComponent(router, service, datatables, message, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _operacao_ferroviaria_carga_check_list_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoFerroviariaCargaCheckListConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _operacao_ferroviaria_carga_check_list_model__WEBPACK_IMPORTED_MODULE_7__["OperacaoFerroviariaCargaCheckListDto"]();
        _this.constantes = new _operacao_ferroviaria_carga_check_list_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoFerroviariaCargaCheckListConstants"]();
        _this.mensagens = [];
        _this.target = _this.funcoes.getTargetLocation();
        _this.create = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 1, function () {
                if (_this.funcoes.isNotUndefinedOrNull(_this.data.regComboio)) {
                    if (_this.data.codSitVeiculo === 10) {
                        _this.message.confirm("titles.operacaoFerroviariaCargaCheckList", "messages.confirmaInclusaoChecklist", null, function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
                            return [2 /*return*/, this.funcoes.openWindow("veiculo/checkList/create/" + this.data.regControle)];
                        }); }); });
                    }
                    else {
                        _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.operacaoNaoPermitida");
                        return;
                    }
                }
                else {
                    _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        _this.aprovarCheckList = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                if (_this.funcoes.isNotUndefinedOrNull(_this.data.regComboio)) {
                    if (_this.data.codCheckList > 0) {
                        var object_1 = {
                            checkListId: _this.data.codCheckList,
                            aprovado: "A",
                            motivo: "",
                            codSit: 1005,
                            regCracha: 0,
                            codPessoa: 0,
                            gravaFoto: "N",
                            bioHK: "",
                            automatico: "N"
                        };
                        _this.message.confirm("titles.operacaoFerroviariaCargaCheckList", "messages.confirmaAprovacaoCheckList", null, function () {
                            return _this.service.aprovarCheckList(object_1).subscribe(function (result) {
                                _this.mensagens = _this.message.validationResult(result.validationResult);
                                if (!result.validationResult.isValid) {
                                    _this.message.warning("titles.operacaoFerroviariaCargaCheckList", _this.mensagens[0]);
                                }
                                else {
                                    _this.message.success("titles.operacaoFerroviariaCargaCheckList", "messages.registroAtualizado");
                                    _this.refresh();
                                }
                            });
                        });
                    }
                    else {
                        _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.operacaoNaoPermitida");
                        return;
                    }
                }
                else {
                    _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        _this.recusarCheckList = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 9, function () {
                if (_this.funcoes.isNotUndefinedOrNull(_this.data.regComboio)) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__["EventEmitterService"].get("formError").emit(null);
                    _this.childOperacaoFerroviariaCargaCheckListRecusaCheckListComponent.objectSelect(_this.data);
                    jQuery("#operacao-ferroviaria-carga-recusa-check-list-dialog").modal("show");
                }
                else {
                    _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.service.filtro = new _operacao_ferroviaria_carga_check_list_model__WEBPACK_IMPORTED_MODULE_7__["OperacaoFerroviariaCargaCheckListFilter"]();
                    jQuery("#operacao-ferroviaria-carga-check-list-filter-dialog").modal("show");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'aprovarCheckList', func: function () { return _this.aprovarCheckList; } },
            { action: 'recusarCheckList', func: function () { return _this.recusarCheckList; } }
        ]);
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.data = new _operacao_ferroviaria_carga_check_list_model__WEBPACK_IMPORTED_MODULE_7__["OperacaoFerroviariaCargaCheckListDto"]();
        this.habilitarBotoes();
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("tipoMov", "tipo"),
                _this.datatables.getDataStringAlignRight("regComboio", "comboio"),
                _this.datatables.getDataStringAlignRight("codCheckList", "checkList"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataDateTime("dtChegada", "chegada", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("nomeTransp", "transportadora"),
                _this.datatables.getDataString("placaCavalo", "vagao"),
                _this.datatables.getDataString("descrSitVeiculo", "situacao"),
                _this.datatables.getDataStringAlignRight("regControle", "contr"),
                _this.datatables.getDataStringAlignRight("codSitVeiculo", "codSitVeiculo")
            ];
            _this.datatables.toDataTable({ tableId: "dtOperacaoFerroviariaCargaCheckList", columns: columns, data: data }, function (aData) {
                _this.data = aData;
                _this.habilitarBotoes();
            });
        });
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (_this.funcoes.isNotUndefinedOrNull(_this.data.regComboio)) {
                if (_this.data.codCheckList > 0) {
                    _this.funcoes.openWindow("veiculo/checkList/create/" + _this.data.codCheckList);
                }
                else {
                    _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.operacaoNaoPermitida");
                    return;
                }
            }
            else {
                _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.selecioneUmRegistro");
                return;
            }
        });
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.remove = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (_this.funcoes.isNotUndefinedOrNull(_this.data.regComboio)) {
                if (_this.data.codCheckList > 0) {
                    _this.message.confirm("titles.operacaoFerroviariaCargaCheckList", "messages.confirmaExclusaoCheckList", null, function () {
                        return _this.service.excluirCheckList(_this.data.codCheckList).subscribe(function (result) {
                            _this.mensagens = _this.message.validationResult(result);
                            if (!result.isValid) {
                                _this.message.warning("titles.operacaoFerroviariaCargaCheckList", _this.mensagens[0]);
                            }
                            else {
                                _this.message.success("titles.operacaoFerroviariaCargaCheckList", "messages.checkListExcluido");
                                _this.refresh();
                            }
                        });
                    });
                }
                else {
                    _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.operacaoNaoPermitida");
                    return;
                }
            }
            else {
                _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.selecioneUmRegistro");
                return;
            }
        });
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.filtrar = function () {
        jQuery("#operacao-ferroviaria-carga-check-list-filter-dialog").modal("show");
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            if (_this.funcoes.isNotUndefinedOrNull(_this.data.regComboio)) {
                _this.constantes.paramRelatorio = {
                    filialId: _this.loginService.getLogin().filialId,
                    comboioId: _this.data.regComboio
                };
                _super.prototype.print.call(_this);
            }
            else {
                _this.message.warning("titles.operacaoFerroviariaCargaCheckList", "messages.selecioneUmRegistro");
                return;
            }
        });
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype._refresh = function (event) {
        if (event) {
            this.refresh();
        }
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.prototype.habilitarBotoes = function () {
        this.buttonDisabled('listaIndex', 'aprovarCheckList', !this.data.codCheckList);
        this.buttonDisabled('listaIndex', 'recusarCheckList', !this.data.codCheckList);
        this.buttonDisabled('listaIndex', 'edit', !this.data.codCheckList);
        this.buttonDisabled('listaIndex', 'remove', !this.data.codCheckList);
        this.buttonDisabled('listaIndex', 'create', this.data.codSitVeiculo !== 10);
    };
    OperacaoFerroviariaCargaCheckListIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoFerroviariaCargaCheckListService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_ferroviaria_carga_check_list_recusa_check_list_operacao_ferroviaria_carga_check_list_recusa_check_list_component__WEBPACK_IMPORTED_MODULE_12__["OperacaoFerroviariaCargaCheckListRecusaCheckListComponent"], { static: false }),
        __metadata("design:type", _operacao_ferroviaria_carga_check_list_recusa_check_list_operacao_ferroviaria_carga_check_list_recusa_check_list_component__WEBPACK_IMPORTED_MODULE_12__["OperacaoFerroviariaCargaCheckListRecusaCheckListComponent"])
    ], OperacaoFerroviariaCargaCheckListIndexComponent.prototype, "childOperacaoFerroviariaCargaCheckListRecusaCheckListComponent", void 0);
    OperacaoFerroviariaCargaCheckListIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-ferroviaria-carga-check-list",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-ferroviaria-carga-check-list-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoFerroviariaCargaCheckListService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"]])
    ], OperacaoFerroviariaCargaCheckListIndexComponent);
    return OperacaoFerroviariaCargaCheckListIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.component.ts":
/*!***************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.component.ts ***!
  \***************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoFerroviariaCargaCheckListRecusaCheckListComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListRecusaCheckListComponent", function() { return OperacaoFerroviariaCargaCheckListRecusaCheckListComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-ferroviaria-carga-check-list.model */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.model.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../operacao-ferroviaria-carga-check-list.service */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.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 OperacaoFerroviariaCargaCheckListRecusaCheckListComponent = /** @class */ (function () {
    function OperacaoFerroviariaCargaCheckListRecusaCheckListComponent(funcoesService, messageService, service, loginService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.mensagens = [];
        this._refresh = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    OperacaoFerroviariaCargaCheckListRecusaCheckListComponent.prototype.ngOnInit = function () {
        this.data = new _operacao_ferroviaria_carga_check_list_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoFerroviariaCargaCheckListDto"]();
    };
    OperacaoFerroviariaCargaCheckListRecusaCheckListComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        var object = {
            checkListId: this.data.codCheckList,
            aprovado: "R",
            motivo: this.data.motivo,
            codSit: 0,
            regCracha: 0,
            codPessoa: 0,
            gravaFoto: "N",
            bioHK: "",
            automatico: "N"
        };
        this.service.recusarCheckList(object).subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                _this.mensagens = _this.messageService.validationResult(resp.validationResult);
                if (resp && !resp.validationResult.isValid) {
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.funcoesService.backToTop();
                    return;
                }
                else {
                    _this.messageService.success("titles.operacaoFerroviariaCargaCheckList", "messages.checkListRecusado");
                }
            }
            _this._refresh.emit(true);
            jQuery("#operacao-ferroviaria-carga-recusa-check-list-dialog").modal("hide");
        });
    };
    OperacaoFerroviariaCargaCheckListRecusaCheckListComponent.prototype.objectSelect = function (current) {
        this.data = current;
    };
    OperacaoFerroviariaCargaCheckListRecusaCheckListComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoFerroviariaCargaCheckListService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoFerroviariaCargaCheckListRecusaCheckListComponent.prototype, "_refresh", void 0);
    OperacaoFerroviariaCargaCheckListRecusaCheckListComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-ferroviaria-carga-check-list-recusa-check-list",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-ferroviaria-carga-check-list-recusa-check-list.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_ferroviaria_carga_check_list_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoFerroviariaCargaCheckListService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"]])
    ], OperacaoFerroviariaCargaCheckListRecusaCheckListComponent);
    return OperacaoFerroviariaCargaCheckListRecusaCheckListComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.constants.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.constants.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: OperacaoFerroviariaCargaCheckListConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListConstants", function() { return OperacaoFerroviariaCargaCheckListConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var OperacaoFerroviariaCargaCheckListConstants = /** @class */ (function () {
    function OperacaoFerroviariaCargaCheckListConstants() {
        this.sisFormularioId = 250099;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.aprovarCheckList" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.recusarCheckList" }
        ];
        this.sisSistemaId = "OPE";
        this.nomeForm = "titles.operacaoFerroviariaCargaCheckList";
        this.reportId = "OPE0023";
        this.reportTitulo = { "titulo": "Ficha para Inspeção de Comboio", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { 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: 'AprovarCheckList', action: 'aprovarCheckList', icon: "fa fa-thumbs-o-up", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'RecusarCheckList', action: 'recusarCheckList', icon: "fa fa-thumbs-o-down", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return OperacaoFerroviariaCargaCheckListConstants;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.model.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.model.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: OperacaoFerroviariaCargaCheckListDto, OperacaoFerroviariaCargaCheckListFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListDto", function() { return OperacaoFerroviariaCargaCheckListDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListFilter", function() { return OperacaoFerroviariaCargaCheckListFilter; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __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 OperacaoFerroviariaCargaCheckListDto = /** @class */ (function (_super) {
    __extends(OperacaoFerroviariaCargaCheckListDto, _super);
    function OperacaoFerroviariaCargaCheckListDto() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return OperacaoFerroviariaCargaCheckListDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var OperacaoFerroviariaCargaCheckListFilter = /** @class */ (function () {
    function OperacaoFerroviariaCargaCheckListFilter() {
        var currentDate = new Date();
        currentDate.setDate(currentDate.getDate() - 2);
        this.dataI = currentDate;
        this.dataF = new Date();
        this.destinatarioIdCliente = 0;
        this.materialId = "";
        this.placa = "";
        this.situacao = "A";
        this.comboioId = 0;
        this.filialId = 0;
    }
    return OperacaoFerroviariaCargaCheckListFilter;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.module.ts":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.module.ts ***!
  \**********************************************************************************************************************/
/*! exports provided: OperacaoFerroviariaCargaCheckListModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListModule", function() { return OperacaoFerroviariaCargaCheckListModule; });
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_filter_operacao_ferroviaria_carga_check_list_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operacao-ferroviaria-carga-check-list-filter/operacao-ferroviaria-carga-check-list-filter.component */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-filter/operacao-ferroviaria-carga-check-list-filter.component.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-ferroviaria-carga-check-list.routing.module */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.routing.module.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_index_operacao_ferroviaria_carga_check_list_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-index.component */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-index.component.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_recusa_check_list_operacao_ferroviaria_carga_check_list_recusa_check_list_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.component */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list/operacao-ferroviaria-carga-check-list-recusa-check-list.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 OperacaoFerroviariaCargaCheckListModule = /** @class */ (function () {
    function OperacaoFerroviariaCargaCheckListModule() {
    }
    OperacaoFerroviariaCargaCheckListModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_0__["SharedModule"], _operacao_ferroviaria_carga_check_list_routing_module__WEBPACK_IMPORTED_MODULE_3__["OperacaoFerroviariaCargaCheckListRoutingModule"]],
            declarations: [
                _operacao_ferroviaria_carga_check_list_index_operacao_ferroviaria_carga_check_list_index_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoFerroviariaCargaCheckListIndexComponent"],
                _operacao_ferroviaria_carga_check_list_filter_operacao_ferroviaria_carga_check_list_filter_component__WEBPACK_IMPORTED_MODULE_2__["OperacaoFerroviariaCargaCheckListFilterComponent"],
                _operacao_ferroviaria_carga_check_list_recusa_check_list_operacao_ferroviaria_carga_check_list_recusa_check_list_component__WEBPACK_IMPORTED_MODULE_5__["OperacaoFerroviariaCargaCheckListRecusaCheckListComponent"]
            ]
        })
    ], OperacaoFerroviariaCargaCheckListModule);
    return OperacaoFerroviariaCargaCheckListModule;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.routing.module.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.routing.module.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: OperacaoFerroviariaCargaCheckListRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListRoutingModule", function() { return OperacaoFerroviariaCargaCheckListRoutingModule; });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_index_operacao_ferroviaria_carga_check_list_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-index.component */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list-index/operacao-ferroviaria-carga-check-list-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 MRoutes = [
    {
        path: "",
        component: _operacao_ferroviaria_carga_check_list_index_operacao_ferroviaria_carga_check_list_index_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoFerroviariaCargaCheckListIndexComponent"],
        data: { breadcrumb: "operacaoFerroviariaCargaCheckList", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var OperacaoFerroviariaCargaCheckListRoutingModule = /** @class */ (function () {
    function OperacaoFerroviariaCargaCheckListRoutingModule() {
    }
    OperacaoFerroviariaCargaCheckListRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"]]
        })
    ], OperacaoFerroviariaCargaCheckListRoutingModule);
    return OperacaoFerroviariaCargaCheckListRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.service.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.service.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: OperacaoFerroviariaCargaCheckListService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoFerroviariaCargaCheckListService", function() { return OperacaoFerroviariaCargaCheckListService; });
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _operacao_ferroviaria_carga_check_list_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./operacao-ferroviaria-carga-check-list.model */ "./src/app/pages/operacao/operacao-ferroviaria-carga-check-list/operacao-ferroviaria-carga-check-list.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var OperacaoFerroviariaCargaCheckListService = /** @class */ (function (_super) {
    __extends(OperacaoFerroviariaCargaCheckListService, _super);
    function OperacaoFerroviariaCargaCheckListService(http) {
        var _this = _super.call(this, http, "operacao/operacaoFerroviariaCargaCheckList") || this;
        _this.filtro = new _operacao_ferroviaria_carga_check_list_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoFerroviariaCargaCheckListFilter"]();
        return _this;
    }
    OperacaoFerroviariaCargaCheckListService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/operacaoFerroviariaCargaCheckList/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoFerroviariaCargaCheckListService.prototype.aprovarCheckList = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/operacaoFerroviariaCargaCheckList/aprovarCheckList", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoFerroviariaCargaCheckListService.prototype.recusarCheckList = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/operacaoFerroviariaCargaCheckList/recusarCheckList", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoFerroviariaCargaCheckListService.prototype.excluirCheckList = function (checkListId) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/operacaoFerroviariaCargaCheckList/excluirCheckList", { checkListId: checkListId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoFerroviariaCargaCheckListService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    OperacaoFerroviariaCargaCheckListService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], OperacaoFerroviariaCargaCheckListService);
    return OperacaoFerroviariaCargaCheckListService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-operacao-operacao-ferroviaria-carga-check-list-operacao-ferroviaria-carga-check-list-module.js.map