(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-obrigacoes-monitor-integracao-anp-868-monitor-integracao-anp-868-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-filter/monitor-integracao-anp-868-filter.component.html":
/*!**************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-filter/monitor-integracao-anp-868-filter.component.html ***!
  \**************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-integracao-anp-868-filter-dialog\" tabindex=\"-1\" role=\"dialog\" 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\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.filter\">\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=\"periodoDe\" class=\"required\">\r\n                                    {{\"labels.periodoDe\" | translate }}\r\n                                </label>\r\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\r\n                                    [(ngModel)]=\"service.filter.dataI\" (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\">\r\n                                    {{\"labels.ate\" | translate}}\r\n                                </label>\r\n                                <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filter.dataF\"\r\n                                    (executa)=\"validaData()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\" class=\"required\">{{'labels.situacao' | translate}}</label>\r\n                                <select id=\"situacao\" name=\"situacao\" [(ngModel)]=\"service.filter.sitReg\"\r\n                                    class=\"form-control form-control-sm\" required>\r\n                                    <option value=\"T\">{{ 'labels.todos' | translate}}</option>\r\n                                    <option value=\"I\">{{ 'labels.integradoComSucesso' | translate}}</option>\r\n                                    <option value=\"E\">{{ 'labels.erroDeIntegracao' | 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\">{{ 'buttons.sair' | translate\r\n                        }}</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/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-index/monitor-integracao-anp-868-index.component.html":
/*!************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-index/monitor-integracao-anp-868-index.component.html ***!
  \************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\r\n    [itemData]=\"data.dtReferencia\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtMonitorIntegracaoAnp868\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-monitor-integracao-anp-868-filter (filtrar)=\"executarFiltro()\">\r\n</app-monitor-integracao-anp-868-filter>");

/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-filter/monitor-integracao-anp-868-filter.component.ts":
/*!**********************************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-filter/monitor-integracao-anp-868-filter.component.ts ***!
  \**********************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoAnp868FilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoAnp868FilterComponent", function() { return MonitorIntegracaoAnp868FilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.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_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 _monitor_integracao_anp_868_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../monitor-integracao-anp-868.constants */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.constants.ts");
/* harmony import */ var _monitor_integracao_anp_868_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../monitor-integracao-anp-868.service */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.service.ts");
/* harmony import */ var _monitor_integracao_anp_868_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../monitor-integracao-anp-868.model */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.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 MonitorIntegracaoAnp868FilterComponent = /** @class */ (function () {
    function MonitorIntegracaoAnp868FilterComponent(service, message) {
        this.service = service;
        this.message = message;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.constantes = new _monitor_integracao_anp_868_constants__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoAnp868Constants"]();
    }
    MonitorIntegracaoAnp868FilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filter) {
            this.service.filter = new _monitor_integracao_anp_868_model__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoAnp868FilterVo"]();
        }
    };
    Object.defineProperty(MonitorIntegracaoAnp868FilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.monitorIntegracaoAnp868");
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoAnp868FilterComponent.prototype.onSubmit = function (form) {
        if (!this.validaData()) {
            return;
        }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.filtrar.emit();
        jQuery("#monitor-integracao-anp-868-filter-dialog").modal("hide");
    };
    MonitorIntegracaoAnp868FilterComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].menorA(this.service.filter.dataF, this.service.filter.dataI, ['H', 'M'])) {
            this.message.warning("titles.monitorIntegracaoAnp868", "messages.dataDeAteInvalida");
            return false;
        }
        return true;
    };
    MonitorIntegracaoAnp868FilterComponent.ctorParameters = function () { return [
        { type: _monitor_integracao_anp_868_service__WEBPACK_IMPORTED_MODULE_6__["MonitorIntegracaoAnp868Service"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorIntegracaoAnp868FilterComponent.prototype, "filtrar", void 0);
    MonitorIntegracaoAnp868FilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-anp-868-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-anp-868-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-filter/monitor-integracao-anp-868-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_monitor_integracao_anp_868_service__WEBPACK_IMPORTED_MODULE_6__["MonitorIntegracaoAnp868Service"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], MonitorIntegracaoAnp868FilterComponent);
    return MonitorIntegracaoAnp868FilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-index/monitor-integracao-anp-868-index.component.ts":
/*!********************************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-index/monitor-integracao-anp-868-index.component.ts ***!
  \********************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoAnp868IndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoAnp868IndexComponent", function() { return MonitorIntegracaoAnp868IndexComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.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 _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _monitor_integracao_anp_868_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../monitor-integracao-anp-868.model */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.model.ts");
/* harmony import */ var _monitor_integracao_anp_868_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../monitor-integracao-anp-868.constants */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.constants.ts");
/* harmony import */ var _monitor_integracao_anp_868_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../monitor-integracao-anp-868.service */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 MonitorIntegracaoAnp868IndexComponent = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoAnp868IndexComponent, _super);
    function MonitorIntegracaoAnp868IndexComponent(router, service, datatables, message, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _monitor_integracao_anp_868_constants__WEBPACK_IMPORTED_MODULE_9__["MonitorIntegracaoAnp868Constants"](), 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 _monitor_integracao_anp_868_model__WEBPACK_IMPORTED_MODULE_8__["MonitorIntegracaoAnp868Dto"]();
        _this.constantes = new _monitor_integracao_anp_868_constants__WEBPACK_IMPORTED_MODULE_9__["MonitorIntegracaoAnp868Constants"]();
        _this.mensagens = [];
        _this.target = _this.funcoes.getTargetLocation();
        _this.reenviarAnp = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                if (!app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["DateTimeUtilsStaticService"].isDate(_this.data.dtReferencia)) {
                    _this.message.warning("titles.monitorIntegracaoAnp868", "messages.dataInvalida");
                    return;
                }
                else {
                    _this.message.confirm("titles.monitorIntegracaoAnp868", "messages.confirmaReenvioParaANP", null, function () {
                        _this.reenviaANP();
                    }, false);
                }
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MonitorIntegracaoAnp868IndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.loginService.isTokenExpired()) {
                    if (this.funcoes.abrirFiltro) {
                        this.service.filter = new _monitor_integracao_anp_868_model__WEBPACK_IMPORTED_MODULE_8__["MonitorIntegracaoAnp868FilterVo"]();
                        this.funcoes.openModal("monitor-integracao-anp-868-filter-dialog");
                    }
                    this.refresh();
                }
                return [2 /*return*/];
            });
        }); }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'reenviarAnp', func: function () { return _this.reenviarAnp; } }
        ]);
    };
    MonitorIntegracaoAnp868IndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filter).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataDateTime("dtReferencia", "dtReferencia", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataString("protocolo", "protocolo"),
                _this.datatables.getDataDateTime("dtEnvio", "dtEnvio", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("situacao", "situacao"),
                _this.datatables.getDataString("descricaoSituacao", "situacaoArquivo")
            ];
            _this.datatables.toDataTable({ tableId: "dtMonitorIntegracaoAnp868", columns: columns, data: data, columnOrder: 1, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
        });
    };
    MonitorIntegracaoAnp868IndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MonitorIntegracaoAnp868IndexComponent.prototype.filtrar = function () {
        jQuery("#monitor-integracao-anp-868-filter-dialog").modal("show");
    };
    MonitorIntegracaoAnp868IndexComponent.prototype.executarFiltro = function () {
        this.refresh();
    };
    MonitorIntegracaoAnp868IndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            var reportTitulo = {
                titulo: _this.message.getTranslates('titles', 'monitorIntegracaoAnp868'),
                subTitulo: ''
            };
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, reportTitulo, _this.service.filter);
        });
    };
    MonitorIntegracaoAnp868IndexComponent.prototype.reenviaANP = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.reenviaANP(this.data).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (this.funcoes.isNotUndefinedOrNull(validationResult)) {
                            if (!validationResult.isValid) {
                                mensagens = this.message.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.message.warning("titles.monitorIntegracaoAnp868", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.message.success("titles.monitorIntegracaoAnp868", "messages.aguardeAlgunsMinutosParaServicoReenviarRegistro");
                                this.refresh();
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    MonitorIntegracaoAnp868IndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _monitor_integracao_anp_868_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoAnp868Service"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    MonitorIntegracaoAnp868IndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-anp-868-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-anp-868-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-index/monitor-integracao-anp-868-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _monitor_integracao_anp_868_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoAnp868Service"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], MonitorIntegracaoAnp868IndexComponent);
    return MonitorIntegracaoAnp868IndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.constants.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.constants.ts ***!
  \*****************************************************************************************************/
/*! exports provided: MonitorIntegracaoAnp868Constants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoAnp868Constants", function() { return MonitorIntegracaoAnp868Constants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorIntegracaoAnp868Constants = /** @class */ (function () {
    function MonitorIntegracaoAnp868Constants() {
        this.sisFormularioId = 255069;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: 'labels.reenviarAnp' }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.monitorIntegracaoAnp868";
        this.reportId = "OBR0002";
        this.reportTitulo = { "titulo": "Estoque Diário 868", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'ReenviarAnp', action: 'reenviarAnp', icon: "fa fa-repeat", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return MonitorIntegracaoAnp868Constants;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.model.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.model.ts ***!
  \*************************************************************************************************/
/*! exports provided: MonitorIntegracaoAnp868Dto, MonitorIntegracaoAnp868FilterVo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoAnp868Dto", function() { return MonitorIntegracaoAnp868Dto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoAnp868FilterVo", function() { return MonitorIntegracaoAnp868FilterVo; });
/* 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 MonitorIntegracaoAnp868Dto = /** @class */ (function () {
    function MonitorIntegracaoAnp868Dto() {
    }
    return MonitorIntegracaoAnp868Dto;
}());

var MonitorIntegracaoAnp868FilterVo = /** @class */ (function () {
    function MonitorIntegracaoAnp868FilterVo() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -1);
        this.dataF = new Date();
        this.sitReg = "T";
    }
    return MonitorIntegracaoAnp868FilterVo;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.module.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.module.ts ***!
  \**************************************************************************************************/
/*! exports provided: MonitorIntegracaoAnp868Module */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoAnp868Module", function() { return MonitorIntegracaoAnp868Module; });
/* 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_anp_868_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-integracao-anp-868.routing.module */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.routing.module.ts");
/* harmony import */ var _monitor_integracao_anp_868_index_monitor_integracao_anp_868_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-anp-868-index/monitor-integracao-anp-868-index.component */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-index/monitor-integracao-anp-868-index.component.ts");
/* harmony import */ var _monitor_integracao_anp_868_filter_monitor_integracao_anp_868_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-integracao-anp-868-filter/monitor-integracao-anp-868-filter.component */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-filter/monitor-integracao-anp-868-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 MonitorIntegracaoAnp868Module = /** @class */ (function () {
    function MonitorIntegracaoAnp868Module() {
    }
    MonitorIntegracaoAnp868Module = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _monitor_integracao_anp_868_routing_module__WEBPACK_IMPORTED_MODULE_2__["MonitorIntegracaoAnp868RoutingModule"]],
            declarations: [_monitor_integracao_anp_868_index_monitor_integracao_anp_868_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoAnp868IndexComponent"],
                _monitor_integracao_anp_868_filter_monitor_integracao_anp_868_filter_component__WEBPACK_IMPORTED_MODULE_4__["MonitorIntegracaoAnp868FilterComponent"]]
        })
    ], MonitorIntegracaoAnp868Module);
    return MonitorIntegracaoAnp868Module;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.routing.module.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.routing.module.ts ***!
  \**********************************************************************************************************/
/*! exports provided: MonitorIntegracaoAnp868RoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoAnp868RoutingModule", function() { return MonitorIntegracaoAnp868RoutingModule; });
/* 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 _monitor_integracao_anp_868_index_monitor_integracao_anp_868_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-anp-868-index/monitor-integracao-anp-868-index.component */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868-index/monitor-integracao-anp-868-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_anp_868_index_monitor_integracao_anp_868_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoAnp868IndexComponent"],
        data: { breadcrumb: "monitorIntegracaoAnp868", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var MonitorIntegracaoAnp868RoutingModule = /** @class */ (function () {
    function MonitorIntegracaoAnp868RoutingModule() {
    }
    MonitorIntegracaoAnp868RoutingModule = __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"]]
        })
    ], MonitorIntegracaoAnp868RoutingModule);
    return MonitorIntegracaoAnp868RoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.service.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.service.ts ***!
  \***************************************************************************************************/
/*! exports provided: MonitorIntegracaoAnp868Service */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoAnp868Service", function() { return MonitorIntegracaoAnp868Service; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_anp_868_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./monitor-integracao-anp-868.model */ "./src/app/pages/obrigacoes/monitor-integracao-anp-868/monitor-integracao-anp-868.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 MonitorIntegracaoAnp868Service = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoAnp868Service, _super);
    function MonitorIntegracaoAnp868Service(http, message) {
        var _this = _super.call(this, http, "obrigacoes/monitorIntegracaoAnp868") || this;
        _this.http = http;
        _this.message = message;
        _this.data = new _monitor_integracao_anp_868_model__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoAnp868Dto"]();
        _this.filter = new _monitor_integracao_anp_868_model__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoAnp868FilterVo"]();
        return _this;
    }
    MonitorIntegracaoAnp868Service.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/monitorIntegracaoAnp868/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoAnp868Service.prototype.reenviaANP = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/monitorIntegracaoAnp868/reenviaANP", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoAnp868Service.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] }
    ]; };
    MonitorIntegracaoAnp868Service = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"]])
    ], MonitorIntegracaoAnp868Service);
    return MonitorIntegracaoAnp868Service;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-obrigacoes-monitor-integracao-anp-868-monitor-integracao-anp-868-module.js.map