(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-integracoes-monitor-integracao-monitor-integracao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-filter/monitor-integracao-filter.component.html":
/*!*********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-filter/monitor-integracao-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=\"monitor-integracao-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.monitorIntegracao' | 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\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-12 col-md-8 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                            <input class=\"custom-control-input radio-success\" id=\"tipoManifT\"\r\n                                                name=\"tipoManif\" [(ngModel)]=\"service.monitorIntegracaoFilter.tipoManif\"\r\n                                                type=\"radio\" value=\"\">\r\n                                            <label class=\"custom-control-label\" for=\"tipoManifT\">{{\r\n                                                'labels.todas' |\r\n                                                translate }}\r\n                                            </label>\r\n                                        </div>\r\n                                        <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                            <input class=\"custom-control-input radio-success\" id=\"tipoManifI\"\r\n                                                name=\"tipoManif\" [(ngModel)]=\"service.monitorIntegracaoFilter.tipoManif\"\r\n                                                type=\"radio\" value=\"I\">\r\n                                            <label class=\"custom-control-label\" for=\"tipoManifI\">{{\r\n                                                'labels.naoIntegradas' |\r\n                                                translate }}\r\n                                            </label>\r\n                                        </div>\r\n                                        <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                            <input class=\"custom-control-input radio-success\" id=\"tipoManifE\"\r\n                                                name=\"tipoManif\" [(ngModel)]=\"service.monitorIntegracaoFilter.tipoManif\"\r\n                                                type=\"radio\" value=\"E\">\r\n                                            <label class=\"custom-control-label\" for=\"tipoManifE\">{{\r\n                                                'labels.integradasComErro' |\r\n                                                translate }}\r\n                                            </label>\r\n                                        </div>\r\n                                        <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                            <input class=\"custom-control-input radio-success\" id=\"tipoManifM\"\r\n                                                name=\"tipoManif\" [(ngModel)]=\"service.monitorIntegracaoFilter.tipoManif\"\r\n                                                type=\"radio\" value=\"M\">\r\n                                            <label class=\"custom-control-label\" for=\"tipoManifM\">{{\r\n                                                'labels.manifestadas' |\r\n                                                translate }}\r\n                                            </label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"input-group\">\r\n                                    <div class=\"col-lg-6\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\r\n                                                }}</label>\r\n                                            <app-data id=\"periodoDe\" name=\"periodoDe\"\r\n                                                [(ngModel)]=\"service.monitorIntegracaoFilter.manifDtIni\" autofocus\r\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required\r\n                                                (executa)=\"validaData()\">\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\"\r\n                                                [(ngModel)]=\"service.monitorIntegracaoFilter.manifDtFim\"\r\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required\r\n                                                (executa)=\"validaData()\">\r\n                                            </app-data>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"numero\">{{'labels.autorizacao' | translate}}</label>\r\n                                            <input id=\"numero\" name=\"numero\" maxlength=\"9\"\r\n                                                [(ngModel)]=\"service.monitorIntegracaoFilter.manifAutorizacao\"\r\n                                                class=\"form-control form-control-sm text-right\" type=\"text\"\r\n                                                (keypress)=\"funcoes.apenasNumeros($event)\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-8\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"cnpjCpfTaxId\">{{'labels.cnpjCpfTaxId' | translate}}</label>\r\n                                            <input id=\"cnpjCpfTaxId\" name=\"cnpjCpfTaxId\" maxlength=\"14\"\r\n                                                [(ngModel)]=\"service.monitorIntegracaoFilter.manifCnpj\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"chaveNFE\">{{'labels.chaveNFE' | translate}}</label>\r\n                                            <input id=\"chaveNFE\" name=\"chaveNFE\" maxlength=\"44\"\r\n                                                mask=\"0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000\"\r\n                                                dropSpecialCharacters=\"true\"\r\n                                                [(ngModel)]=\"service.monitorIntegracaoFilter.manifChaveNFe\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-2 mt-2\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <div class=\"custom-control custom-checkbox \">\r\n                                                <input id=\"manifContido\" name=\"manifContido\"\r\n                                                    [ngModel]=\"service.monitorIntegracaoFilter.manifContido === 'S'\"\r\n                                                    (ngModelChange)=\"service.monitorIntegracaoFilter.manifContido=$event?'S':'N'\"\r\n                                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                                <label class=\"custom-control-label\"\r\n                                                    for=\"manifContido\">{{'labels.contido' |\r\n                                                    translate}}</label>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\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\">{{ 'buttons.sair' | translate\r\n                            }}</button>\r\n                    </div>\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/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-index.component.html":
/*!*******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-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\" \n                      [formAction]=\"actionForm\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<app-monitor-integracao-filter (filtrar)=\"refreshMonitorIntegracao()\"></app-monitor-integracao-filter>\n\n<div class=\"clearfix\">&nbsp;</div>\n<app-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtMonitorIntegracao\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.autorizacao' | translate }}</th>\n                    <th>{{ 'labels.dataHoraAutoizacao' | translate}}</th>\n                    <th>{{ 'labels.dataHoraIntegracao' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codCliente' | translate }}</th>\n                    <th>{{ 'labels.cnpjCpfCliente' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.taxIdCliente' | translate }}</th>\n                    <th>{{ 'labels.nomeCliente' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codEmitente' | translate }}</th>\n                    <th>{{ 'labels.cnpjCpfEmitente' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.taxIdEmitente' | translate }}</th>\n                    <th>{{ 'labels.nomeEmitente' | translate }}</th>\n                    <th>{{ 'labels.chaveNFE' | translate }}</th>\n                    <th>{{ 'labels.situacao' | translate }}</th>\n                    <th>{{ 'labels.descriErro' | translate }}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"text-align: right;\">{{ t.autorizacao }}</td>\n                    <td>{{ t.dtAutorizacao | date: 'dd/MM/yyyy HH:mm' }}</td>\n                    <td>{{ t.dtIntManifGsw | date: 'dd/MM/yyyy HH:mm' }}</td>\n                    <td style=\"text-align: right;\">{{ t.codCliente }}</td>\n                    <td>{{ t.cnpjCliente }}</td>\n                    <td style=\"text-align: right;\">{{ t.taxIdCliente }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td style=\"text-align: right;\">{{ t.codEmitente }}</td>\n                    <td>{{ t.cnpjEmitente }}</td>\n                    <td style=\"text-align: right;\">{{ t.taxIdEmitente }}</td>\n                    <td>{{ t.nomeEmitente }}</td>\n                    <td>{{ t.chaveNFe }}</td>\n                    <td>{{ t.situacao }}</td>\n                    <td>{{ t.descrErro }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosMonitorIntegracao\">\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    <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\">\n        {{ 'buttons.selecionarTodos' | translate }}\n    </button>\n    <button type=\"button\" class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\">\n        {{ 'buttons.desmarcarTodos' | translate }}\n    </button>\n    <button [disabled]=\"!hasRegistrosSelecionados\" class=\"btn btn-success mr-2\" (click)=\"reenviarSelecionados()\"\n        type=\"button\">{{\n        'buttons.reenviarSelecionados' | translate }}\n    </button>\n</div>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-filter/monitor-integracao-filter.component.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-filter/monitor-integracao-filter.component.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoFilterComponent", function() { return MonitorIntegracaoFilterComponent; });
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __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_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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../monitor-integracao.model */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.model.ts");
/* harmony import */ var _monitor_integracao_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../monitor-integracao.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.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 __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 MonitorIntegracaoFilterComponent = /** @class */ (function () {
    function MonitorIntegracaoFilterComponent(funcoesService, service, messageService, funcoes) {
        var _this = this;
        this.funcoesService = funcoesService;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.dadosMonitorIntegracao = [];
        this.registrosSelecionados = [];
        this.refreshMonitorIntegracao = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.validaData()) {
                            return [2 /*return*/];
                        }
                        this.registrosSelecionados = [];
                        _a = this;
                        return [4 /*yield*/, this.service.getMonitorIntegracao(this.service.monitorIntegracaoFilter).toPromise()];
                    case 1:
                        _a.dadosMonitorIntegracao = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
    }
    MonitorIntegracaoFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.monitorIntegracaoFilter) {
            this.service.monitorIntegracaoFilter = new _monitor_integracao_model__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoFilter"]();
        }
    };
    MonitorIntegracaoFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validaData()) {
            return;
        }
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].closeModal("monitor-integracao-filter-dialog");
        this.filtrar.emit();
    };
    MonitorIntegracaoFilterComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].menorA(this.service.monitorIntegracaoFilter.manifDtFim, this.service.monitorIntegracaoFilter.manifDtIni, ['H', 'M'])) {
            this.messageService.warning("titles.monitorIntegracao", "messages.periodoDeMenorQueAte");
            return false;
        }
        if (!this.service.monitorIntegracaoFilter.manifDtFim || !this.service.monitorIntegracaoFilter.manifDtIni) {
            this.messageService.warning("titles.monitorIntegracao", "messages.dataInvalida");
            return false;
        }
        return true;
    };
    MonitorIntegracaoFilterComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _monitor_integracao_service__WEBPACK_IMPORTED_MODULE_8__["MonitorIntegracaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorIntegracaoFilterComponent.prototype, "filtrar", void 0);
    MonitorIntegracaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-monitor-integracao-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-filter/monitor-integracao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _monitor_integracao_service__WEBPACK_IMPORTED_MODULE_8__["MonitorIntegracaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], MonitorIntegracaoFilterComponent);
    return MonitorIntegracaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-index.component.scss":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-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: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvL21vbml0b3ItaW50ZWdyYWNhby1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFx2b3Bha1xcaW50ZWdyYWNvZXNcXG1vbml0b3ItaW50ZWdyYWNhb1xcbW9uaXRvci1pbnRlZ3JhY2FvLWluZGV4XFxtb25pdG9yLWludGVncmFjYW8taW5kZXguY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3ZvcGFrL2ludGVncmFjb2VzL21vbml0b3ItaW50ZWdyYWNhby9tb25pdG9yLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1pbnRlZ3JhY2FvLWluZGV4LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvL21vbml0b3ItaW50ZWdyYWNhby1pbmRleC9tb25pdG9yLWludGVncmFjYW8taW5kZXguY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgICB3aWR0aDogMTRweDtcclxuICAgIGhlaWdodDogMTRweDtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxOHB4O1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59XHJcblxyXG5cclxuIiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxNHB4O1xuICBoZWlnaHQ6IDE0cHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxOHB4O1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-index.component.ts":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-index.component.ts ***!
  \***************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoIndexComponent", function() { return MonitorIntegracaoIndexComponent; });
/* 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 app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __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_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __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_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../monitor-integracao.constants */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.constants.ts");
/* harmony import */ var _monitor_integracao_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../monitor-integracao.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 MonitorIntegracaoIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoIndexComponent, _super);
    function MonitorIntegracaoIndexComponent(router, service, messageService, funcoes, loginService, permissoesUtils, funcoesService) {
        var _this = _super.call(this, new _monitor_integracao_constants__WEBPACK_IMPORTED_MODULE_12__["MonitorIntegracaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.dadosMonitorIntegracao = [];
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.constantes = new _monitor_integracao_constants__WEBPACK_IMPORTED_MODULE_12__["MonitorIntegracaoConstants"]();
        _this.registrosSelecionados = [];
        _this.mensagens = [];
        _this.refreshMonitorIntegracao = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.validaData()) {
                            return [2 /*return*/];
                        }
                        this.registrosSelecionados = [];
                        _a = this;
                        return [4 /*yield*/, this.service.getMonitorIntegracao(this.service.monitorIntegracaoFilter).toPromise()];
                    case 1:
                        _a.dadosMonitorIntegracao = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        _this.reenviarSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (_this.hasRegistrosSelecionados) {
                    _this.messageService.confirm("titles.monitorIntegracao", "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarSelecionados(this.registrosSelecionados.join(',')).subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorIntegracao", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorIntegracao", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refreshMonitorIntegracao();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorIntegracao", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MonitorIntegracaoIndexComponent.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);
    };
    MonitorIntegracaoIndexComponent.prototype.abrirModal = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["ModalUtilsStaticService"].openModal("monitor-integracao-filter-dialog");
    };
    MonitorIntegracaoIndexComponent.prototype.refresh = function () {
        this.dados;
        this.refreshMonitorIntegracao();
    };
    MonitorIntegracaoIndexComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["DateTimeUtilsStaticService"].menorA(this.service.monitorIntegracaoFilter.manifDtFim, this.service.monitorIntegracaoFilter.manifDtIni, ['H', 'M'])) {
            this.messageService.warning("titles.monitorIntegracao", "messages.periodoDeMenorQueAte");
            return false;
        }
        if (!this.service.monitorIntegracaoFilter.manifDtFim || !this.service.monitorIntegracaoFilter.manifDtIni) {
            this.messageService.warning("titles.monitorIntegracao", "messages.dataInvalida");
            return false;
        }
        return true;
    };
    Object.defineProperty(MonitorIntegracaoIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosMonitorIntegracao || !this.table.filtro) {
                return this.table.getPage(this.dadosMonitorIntegracao);
            }
            var dados = this.dadosMonitorIntegracao.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.autorizacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtAutorizacao), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtIntManifGsw), _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.codCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.cnpjCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.taxIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.codEmitente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.cnpjEmitente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.taxIdEmitente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.nomeEmitente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.chaveNFe, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.situacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.descrErro, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorIntegracaoIndexComponent.prototype, "hasDadosMonitorIntegracao", {
        get: function () {
            if (!this.dadosMonitorIntegracao)
                return false;
            return this.dadosMonitorIntegracao && this.dadosMonitorIntegracao.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitorIntegracaoIndexComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        this.onMarcarDesmarcar(item);
    };
    MonitorIntegracaoIndexComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosMonitorIntegracao.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.autorizacao);
            }
        });
    };
    Object.defineProperty(MonitorIntegracaoIndexComponent.prototype, "hasRegistrosSelecionados", {
        get: function () {
            return this.registrosSelecionados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoIndexComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasDadosMonitorIntegracao) {
            this.messageService.warning("titles.monitorIntegracao", "messages.tabelaVazia");
            return;
        }
        this.dadosMonitorIntegracao.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MonitorIntegracaoIndexComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasDadosMonitorIntegracao) {
            this.messageService.warning("titles.monitorIntegracao", "messages.tabelaVazia");
            return;
        }
        this.dadosMonitorIntegracao.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MonitorIntegracaoIndexComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoIndexComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoIndexComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoIndexComponent.prototype.filtrar = function () {
        jQuery("#monitor-integracao-filter-dialog").modal('show');
    };
    MonitorIntegracaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MonitorIntegracaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _monitor_integracao_service__WEBPACK_IMPORTED_MODULE_13__["MonitorIntegracaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"])
    ], MonitorIntegracaoIndexComponent.prototype, "table", void 0);
    MonitorIntegracaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-integracao-index.component.scss */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _monitor_integracao_service__WEBPACK_IMPORTED_MODULE_13__["MonitorIntegracaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"]])
    ], MonitorIntegracaoIndexComponent);
    return MonitorIntegracaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.constants.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.constants.ts ***!
  \********************************************************************************************************/
/*! exports provided: MonitorIntegracaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoConstants", function() { return MonitorIntegracaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorIntegracaoConstants = /** @class */ (function () {
    function MonitorIntegracaoConstants() {
        this.sisFormularioId = 65669;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.reenviarRegistrosSelecionados" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "DIV";
        this.nomeForm = "titles.monitorIntegracao";
        this.reportId = "VOP0000";
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", 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' }
        ];
    }
    return MonitorIntegracaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.model.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.model.ts ***!
  \****************************************************************************************************/
/*! exports provided: MonitorIntegracao, MonitorIntegracaoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracao", function() { return MonitorIntegracao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoFilter", function() { return MonitorIntegracaoFilter; });
/* 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");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var MonitorIntegracao = /** @class */ (function () {
    function MonitorIntegracao() {
    }
    return MonitorIntegracao;
}());

var MonitorIntegracaoFilter = /** @class */ (function () {
    function MonitorIntegracaoFilter() {
        this.manifDtIni = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getStartDay();
        this.manifDtFim = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
        this.tipoManif = '';
    }
    return MonitorIntegracaoFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.module.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.module.ts ***!
  \*****************************************************************************************************/
/*! exports provided: MonitorIntegracaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoModule", function() { return MonitorIntegracaoModule; });
/* 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 _monitor_integracao_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-integracao.routing.module */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.routing.module.ts");
/* harmony import */ var _monitor_integracao_index_monitor_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-index/monitor-integracao-index.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-index.component.ts");
/* harmony import */ var _monitor_integracao_filter_monitor_integracao_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-integracao-filter/monitor-integracao-filter.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-filter/monitor-integracao-filter.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 MonitorIntegracaoModule = /** @class */ (function () {
    function MonitorIntegracaoModule() {
    }
    MonitorIntegracaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _monitor_integracao_routing_module__WEBPACK_IMPORTED_MODULE_2__["MonitorIntegracaoRoutingModule"]],
            declarations: [
                _monitor_integracao_index_monitor_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoIndexComponent"],
                _monitor_integracao_filter_monitor_integracao_filter_component__WEBPACK_IMPORTED_MODULE_4__["MonitorIntegracaoFilterComponent"]
            ]
        })
    ], MonitorIntegracaoModule);
    return MonitorIntegracaoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.routing.module.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.routing.module.ts ***!
  \*************************************************************************************************************/
/*! exports provided: MonitorIntegracaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoRoutingModule", function() { return MonitorIntegracaoRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _monitor_integracao_index_monitor_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-index/monitor-integracao-index.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao-index/monitor-integracao-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: _monitor_integracao_index_monitor_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoIndexComponent"],
        data: { breadcrumb: "monitorIntegracao", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var MonitorIntegracaoRoutingModule = /** @class */ (function () {
    function MonitorIntegracaoRoutingModule() {
    }
    MonitorIntegracaoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], MonitorIntegracaoRoutingModule);
    return MonitorIntegracaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.service.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.service.ts ***!
  \******************************************************************************************************/
/*! exports provided: MonitorIntegracaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoService", function() { return MonitorIntegracaoService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _monitor_integracao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitor-integracao.model */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao/monitor-integracao.model.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 MonitorIntegracaoService = /** @class */ (function () {
    function MonitorIntegracaoService(http, loginService) {
        this.http = http;
        this.loginService = loginService;
        this.monitorIntegracaoFilter = new _monitor_integracao_model__WEBPACK_IMPORTED_MODULE_6__["MonitorIntegracaoFilter"]();
    }
    MonitorIntegracaoService.prototype.reenviarSelecionados = function (registrosIds) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracao/reenviarSelecionados", { ids: registrosIds })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoService.prototype.getMonitorIntegracao = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracao/getMonitorIntegracao", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] }
    ]; };
    MonitorIntegracaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"]])
    ], MonitorIntegracaoService);
    return MonitorIntegracaoService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-integracoes-monitor-integracao-monitor-integracao-module.js.map