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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.component.html":
/*!*****************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.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-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtCadEnviados\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.cliente' | translate}}</th>\n                    <th>{{ 'labels.msgErroIntegracao' | translate}}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td style=\"text-align: right;\">{{ t.destinatarioIdCliente }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td>{{ t.msgErroIntegracao }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosCadEnviados\">\n                    <th colspan=\"3\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-validacoes></app-validacoes>\n            <div class=\"tab-content top\">\n                <div class=\"tab-pane active show\" id=\"ge\">\n                    <div class=\"clearfix\">\n                        <ul class=\"nav nav-tabs \">\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link active show\" data-toggle=\"tab\" (click)=\"abaClicada('CP')\"\n                                    href=\"#cadPendentes\">{{\"labels.cadastrosPendentes\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('PED')\"\n                                    href=\"#pedidos\">{{\"labels.pedidos\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('NF')\"\n                                    href=\"#notasFiscais\">{{\"labels.notasFiscais\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('CADENV')\"\n                                    href=\"#cadEnviados\">{{\"labels.cadastrosEnviados\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('MOVENV')\"\n                                    href=\"#movEnviadas\">{{\"labels.movimentacoesEnviadas\" | translate}}</a>\n                            </li>\n                        </ul>\n                    </div>\n                    <div class=\"tab-content top\">\n                        <div class=\"tab-pane active show pl-0 pr-0\" id=\"cadPendentes\">\n                            <app-table>\n                                <div class=\"table-responsive\">\n                                    <table id=\"cadastrosPendentes\"\n                                        class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                        <thead>\n                                            <tr>\n                                                <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                                                <th>{{ 'labels.tipoCadastro' | translate}}</th>\n                                                <th>{{ 'labels.fantasia' | translate}}</th>\n                                                <th>{{ 'labels.cnpj' | translate}}</th>\n                                            </tr>\n                                        </thead>\n                                        <tbody>\n                                            <tr *ngFor=\"let t of dados; index as i\" (click)=\"_click(t, i)\"\n                                                (dblclick)=\"_doubleClick(t, i)\"\n                                                [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                                                <td style=\"text-align: right;\">{{ t.chave }}</td>\n                                                <td>{{ t.tipoCadastro }}</td>\n                                                <td>{{ t.fantasia }}</td>\n                                                <td>{{ t.cnpj }}</td>\n                                            </tr>\n                                            <tr *ngIf=\"!hasDadosCadPendentes\">\n                                                <th colspan=\"4\" style=\"text-align: center\">\n                                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                                </th>\n                                            </tr>\n                                        </tbody>\n                                    </table>\n                                </div>\n                            </app-table>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"pedidos\">\n                            <app-monitor-integracao-sap-pedidos\n                                (reenviarIntegracao)=\"habilitarBtnReenviarIntegracao($event,'PED')\"></app-monitor-integracao-sap-pedidos>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"notasFiscais\">\n                            <app-monitor-integracao-sap-nf\n                                (reenviarIntegracao)=\"habilitarBtnReenviarIntegracao($event,'NF')\"></app-monitor-integracao-sap-nf>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"cadEnviados\">\n                            <app-monitor-integracao-sap-cad-enviados\n                                (reenviarIntegracao)=\"habilitarBtnReenviarIntegracao($event,'CADENV')\"></app-monitor-integracao-sap-cad-enviados>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"movEnviadas\">\n                            <app-monitor-integracao-sap-mov-enviados\n                                (reenviarIntegracao)=\"habilitarBtnReenviarIntegracao($event,'MOVENV')\"></app-monitor-integracao-sap-mov-enviados>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.component.html":
/*!*****************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.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-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtCadEnviados\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th style=\"text-align: right;\">{{ 'labels.codiCliente' | translate}}</th>\n                    <th>{{ 'labels.cliente' | translate}}</th>\n                    <th>{{ 'labels.documento' | translate}}</th>\n                    <th>{{ 'labels.tipoMovimento' | translate}}</th>\n                    <th>{{ 'labels.dataMovimento' | translate}}</th>\n                    <th>{{ 'labels.msgErroIntegracao' | translate}}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td style=\"text-align: right;\">{{ t.destinatarioIdCliente }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td>{{ t.docto }}</td>\n                    <td>{{ t.descrMov }}</td>\n                    <td>{{ t.dtMovimento | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\n                    <td>{{ t.msgErroIntegracao }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosMovEnviados\">\n                    <th colspan=\"6\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-nf/monitor-integracao-sap-nf.component.html":
/*!*********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-nf/monitor-integracao-sap-nf.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-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtNf\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.nota' | translate}}</th>\n                    <th>{{ 'labels.cliente' | translate}}</th>\n                    <th>{{ 'labels.chaveNFE' | translate}}</th>\n                    <th>{{ 'labels.dataDeIntegracao' | translate}}</th>\n                    <th>{{ 'labels.msgErroIntegracao' | translate}}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td style=\"text-align: right;\">{{ t.notaFiscalId }}</td>\n                    <td>{{ t.nota }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td>{{ t.chaveNFE }}</td>\n                    <td>{{ t.dtIntegracao | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\n                    <td>{{ t.msgErroIntegracao }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosNf\">\n                    <th colspan=\"6\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.component.html":
/*!*******************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.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-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtPedidos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.pedido' | translate}}</th>\n                    <th>{{ 'labels.cliente' | translate}}</th>\n                    <th>{{ 'labels.dataDeIntegracao' | translate}}</th>\n                    <th>{{ 'labels.msgErroIntegracao' | translate}}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td style=\"text-align: right;\">{{ t.pedidoId }}</td>\n                    <td>{{ t.pedido }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td>{{ t.dtIntegracao | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\n                    <td>{{ t.msgErroIntegracao }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosPedidos\">\n                    <th colspan=\"5\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>");

/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.component.ts":
/*!*************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.component.ts ***!
  \*************************************************************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapCadEnviadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapCadEnviadosComponent", function() { return MonitorIntegracaoSapCadEnviadosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __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 _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* 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_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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_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 _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../monitor-integracao-sap.constants */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts");
/* harmony import */ var _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../monitor-integracao-sap.service */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.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 MonitorIntegracaoSapCadEnviadosComponent = /** @class */ (function () {
    function MonitorIntegracaoSapCadEnviadosComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.reenviarIntegracao = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_9__["MonitorIntegracaoSapConstants"]();
        this.mensagens = [];
        this.refreshCadEnviados = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this.service;
                        return [4 /*yield*/, this.service.getCadastrosEnviados().toPromise()];
                    case 1:
                        _a.dadosCadEnviados = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
    }
    Object.defineProperty(MonitorIntegracaoSapCadEnviadosComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosCadEnviados || !this.table.filtro) {
                return this.table.getPage(this.service.dadosCadEnviados);
            }
            var dados = this.service.dadosCadEnviados.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.msgErroIntegracao, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorIntegracaoSapCadEnviadosComponent.prototype, "hasDadosCadEnviados", {
        get: function () {
            if (!this.service.dadosCadEnviados)
                return false;
            return this.service.dadosCadEnviados && this.service.dadosCadEnviados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSapCadEnviadosComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorIntegracaoSapCadEnviadosComponent.prototype.rowSelect = function (item) {
        this.service.habilitaReenviarIntegracao = item.destinatarioIdCliente > 0;
        this.reenviarIntegracao.emit(item);
    };
    MonitorIntegracaoSapCadEnviadosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __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"])
    ], MonitorIntegracaoSapCadEnviadosComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorIntegracaoSapCadEnviadosComponent.prototype, "reenviarIntegracao", void 0);
    MonitorIntegracaoSapCadEnviadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-sap-cad-enviados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-sap-cad-enviados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitorIntegracaoSapCadEnviadosComponent);
    return MonitorIntegracaoSapCadEnviadosComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.ts":
/*!******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.ts ***!
  \******************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapIndexComponent", function() { return MonitorIntegracaoSapIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __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_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __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 _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../monitor-integracao-sap.constants */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts");
/* harmony import */ var _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../monitor-integracao-sap.service */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.service.ts");
/* harmony import */ var _monitor_integracao_sap_pedidos_monitor_integracao_sap_pedidos_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.component.ts");
/* harmony import */ var _monitor_integracao_sap_nf_monitor_integracao_sap_nf_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./monitor-integracao-sap-nf/monitor-integracao-sap-nf.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-nf/monitor-integracao-sap-nf.component.ts");
/* harmony import */ var _monitor_integracao_sap_cad_enviados_monitor_integracao_sap_cad_enviados_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.component.ts");
/* harmony import */ var _monitor_integracao_sap_mov_enviados_monitor_integracao_sap_mov_enviados_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.component.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






;










var MonitorIntegracaoSapIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoSapIndexComponent, _super);
    function MonitorIntegracaoSapIndexComponent(router, service, messageService, funcoes, loginService, permissoesUtils, cd) {
        var _this = _super.call(this, new _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.cd = cd;
        _this.dadosCadPendentes = [];
        _this.constantes = new _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapConstants"]();
        _this.mensagens = [];
        _this.abaAtual = "CP";
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.service.habilitaReenviarIntegracao = false;
                        this.trataExibicaoBotoes();
                        if (!(this.abaAtual === 'PED')) return [3 /*break*/, 1];
                        this.childAbaPedidos.refreshPedidos();
                        return [3 /*break*/, 6];
                    case 1:
                        if (!(this.abaAtual === 'NF')) return [3 /*break*/, 2];
                        this.childAbaNf.refreshNf();
                        return [3 /*break*/, 6];
                    case 2:
                        if (!(this.abaAtual === 'CADENV')) return [3 /*break*/, 3];
                        this.childAbaCadEnviados.refreshCadEnviados();
                        return [3 /*break*/, 6];
                    case 3:
                        if (!(this.abaAtual === 'MOVENV')) return [3 /*break*/, 4];
                        this.childAbaMovEnviados.refreshMovEnviados();
                        return [3 /*break*/, 6];
                    case 4:
                        _a = this;
                        return [4 /*yield*/, this.service.getCadastrosPendentes().toPromise()];
                    case 5:
                        _a.dadosCadPendentes = _b.sent();
                        _b.label = 6;
                    case 6: return [2 /*return*/];
                }
            });
        }); };
        _this.REPORT_MAP = {
            "CP": "CAT0058",
            "PED": "CAT0058-1",
            "NF": "CAT0058-2",
            "CADENV": "CAT0058-3",
            "MOVENV": "CAT0058-4",
        };
        _this.CADASTRO_MAP = {
            'D': function () { return _this.abrirCadTerceiros(); },
            'GM': function () { return _this.abrirCadProdutosArmazenados(); },
            'GS': function () { return _this.abrirCadServicos(); },
            'GA': function () { return _this.abrirCadTerceiros(); },
        };
        _this.INDICE_TABELA_MAP = {
            "CP": 0,
            "PED": 1,
            "NF": 2,
            "CADENV": 3,
            "MOVENV": 4
        };
        _this.reenviarIntegracao = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                var abaAtual = _this.abaOrigemDados;
                var registroSelecionado = _this.dadosReenviarIntegracao;
                if (abaAtual === 'CP') {
                    _this.messageService.warning("titles.monitorIntegracaoSap", "messages.opcaoNaoPermiteReenvio");
                    return;
                }
                if (!registroSelecionado) {
                    _this.messageService.warning("titles.monitorIntegracaoSap", "messages.selecioneUmRegistroParaReenvio");
                    return;
                }
                var codigoRegistro = null;
                var indiceTabela = _this.INDICE_TABELA_MAP[abaAtual];
                switch (abaAtual) {
                    case 'PED':
                        codigoRegistro = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(registroSelecionado.pedidoId);
                        break;
                    case 'NF':
                        codigoRegistro = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(registroSelecionado.notaFiscalId);
                        break;
                    case 'CADENV':
                        codigoRegistro = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(registroSelecionado.destinatarioIdCliente);
                        break;
                    case 'MOVENV':
                        codigoRegistro = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].toString(registroSelecionado.sequencia);
                        break;
                    default:
                        _this.messageService.error("titles.monitorIntegracaoSap", "messages.erroAbaOuRegistroInvalido");
                        return;
                }
                if (!codigoRegistro || indiceTabela === undefined) {
                    _this.messageService.error("titles.monitorIntegracaoSap", "messages.erroAbaOuRegistroInvalido");
                    return;
                }
                _this.messageService.confirm("titles.monitorIntegracaoSap", "messages.confirmaReenvioSAP", null, function () { return __awaiter(_this, void 0, void 0, function () {
                    return __generator(this, function (_a) {
                        this.executarReenvioSAP(indiceTabela, codigoRegistro);
                        return [2 /*return*/];
                    });
                }); });
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MonitorIntegracaoSapIndexComponent.prototype.ngAfterViewInit = function () {
        this.cd.detectChanges();
    };
    MonitorIntegracaoSapIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'reenviarIntegracao', func: function () { return _this.reenviarIntegracao; } },
        ]);
    };
    Object.defineProperty(MonitorIntegracaoSapIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosCadPendentes || !this.table.filtro) {
                return this.table.getPage(this.dadosCadPendentes);
            }
            var dados = this.dadosCadPendentes.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].exist(v.chave, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].exist(v.fantasia, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].exist(v.cnpj, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].exist(v.tipoCadastro, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorIntegracaoSapIndexComponent.prototype, "hasDadosCadPendentes", {
        get: function () {
            if (!this.dadosCadPendentes)
                return false;
            return this.dadosCadPendentes && this.dadosCadPendentes.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSapIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MonitorIntegracaoSapIndexComponent.prototype._doubleClick = function (registro, index) {
        this._click(registro, index);
        this.abrirCadastroSelecionado();
    };
    MonitorIntegracaoSapIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorIntegracaoSapIndexComponent.prototype.rowSelect = function (item) {
        this.service.habilitaReenviarIntegracao = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(item.chave) > 0;
        this.habilitarBtnReenviarIntegracao(item, 'CP');
    };
    MonitorIntegracaoSapIndexComponent.prototype.habilitarBtnReenviarIntegracao = function (dadosReenviarIntegracao, aba) {
        this.buttonDisabled('listaIndex', 'reenviarIntegracao', !this.habilitaBtnReenviarIntegracao);
        this.dadosReenviarIntegracao = dadosReenviarIntegracao;
        this.abaOrigemDados = aba;
    };
    Object.defineProperty(MonitorIntegracaoSapIndexComponent.prototype, "habilitaBtnReenviarIntegracao", {
        get: function () {
            return this.service.habilitaReenviarIntegracao;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSapIndexComponent.prototype.trataExibicaoBotoes = function () {
        this.buttonDisabled('listaIndex', 'reenviarIntegracao', !this.habilitaBtnReenviarIntegracao);
    };
    MonitorIntegracaoSapIndexComponent.prototype.abaClicada = function (aba) {
        this.abaAtual = aba;
        this.refresh();
    };
    MonitorIntegracaoSapIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            var reportId = _this.REPORT_MAP[_this.abaAtual];
            if (!reportId) {
                return;
            }
            _this.constantes.reportId = reportId;
            _super.prototype.print.call(_this, null, true);
        });
    };
    MonitorIntegracaoSapIndexComponent.prototype.abrirCadastroSelecionado = function () {
        try {
            if (!this.data) {
                this.messageService.warning("titles.monitorIntegracaoSap", "messages.selecioneUmRegistro");
                return;
            }
            var flag = this.data.flagCadastro;
            var acao = this.CADASTRO_MAP[flag];
            if (acao) {
                acao();
            }
        }
        catch (error) {
            console.error("Erro ao abrir cadastro selecionado:", error);
            this.messageService.error("titles.monitorIntegracaoSap", "messages.erroAoSelecionarRegistro");
        }
    };
    MonitorIntegracaoSapIndexComponent.prototype.abrirCadTerceiros = function () {
        if (!!this.data.chave)
            this.funcoesService.openWindow("cadastro/destinatario/detail/" + this.data.chave);
        else
            this.funcoesService.openWindow('cadastro/destinatario');
    };
    MonitorIntegracaoSapIndexComponent.prototype.abrirCadProdutosArmazenados = function () {
        if (!!this.data.chave)
            this.funcoesService.openWindow("cadastro/produtosArmazenados/detail/" + this.data.chave);
        else
            this.funcoesService.openWindow('cadastro/produtosArmazenados');
    };
    MonitorIntegracaoSapIndexComponent.prototype.abrirCadServicos = function () {
        if (!!this.data.chave)
            this.funcoesService.openWindow("cadastro/servico/detail/" + this.data.chave);
        else
            this.funcoesService.openWindow('cadastro/servico');
    };
    MonitorIntegracaoSapIndexComponent.prototype.executarReenvioSAP = function (indiceTabela, codigoRegistro) {
        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.reenviarSAP({ indiceTabela: indiceTabela, codigoRegistro: codigoRegistro }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (this.funcoes.isNotUndefinedOrNull(validationResult)) {
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.monitorIntegracaoSap", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.messageService.success("titles.monitorIntegracaoSap", "messages.aguardeAlgunsMinutosParaServicoReenviarRegistro");
                                this.refresh();
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    MonitorIntegracaoSapIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"] },
        { type: _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_11__["MonitorIntegracaoSapService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] },
        { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_6__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_6__["TableComponent"])
    ], MonitorIntegracaoSapIndexComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_integracao_sap_pedidos_monitor_integracao_sap_pedidos_component__WEBPACK_IMPORTED_MODULE_12__["MonitorIntegracaoSapPedidosComponent"], { static: false }),
        __metadata("design:type", _monitor_integracao_sap_pedidos_monitor_integracao_sap_pedidos_component__WEBPACK_IMPORTED_MODULE_12__["MonitorIntegracaoSapPedidosComponent"])
    ], MonitorIntegracaoSapIndexComponent.prototype, "childAbaPedidos", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_integracao_sap_nf_monitor_integracao_sap_nf_component__WEBPACK_IMPORTED_MODULE_13__["MonitorIntegracaoSapNfComponent"], { static: false }),
        __metadata("design:type", _monitor_integracao_sap_nf_monitor_integracao_sap_nf_component__WEBPACK_IMPORTED_MODULE_13__["MonitorIntegracaoSapNfComponent"])
    ], MonitorIntegracaoSapIndexComponent.prototype, "childAbaNf", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_integracao_sap_cad_enviados_monitor_integracao_sap_cad_enviados_component__WEBPACK_IMPORTED_MODULE_14__["MonitorIntegracaoSapCadEnviadosComponent"], { static: false }),
        __metadata("design:type", _monitor_integracao_sap_cad_enviados_monitor_integracao_sap_cad_enviados_component__WEBPACK_IMPORTED_MODULE_14__["MonitorIntegracaoSapCadEnviadosComponent"])
    ], MonitorIntegracaoSapIndexComponent.prototype, "childAbaCadEnviados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_integracao_sap_mov_enviados_monitor_integracao_sap_mov_enviados_component__WEBPACK_IMPORTED_MODULE_15__["MonitorIntegracaoSapMovEnviadosComponent"], { static: false }),
        __metadata("design:type", _monitor_integracao_sap_mov_enviados_monitor_integracao_sap_mov_enviados_component__WEBPACK_IMPORTED_MODULE_15__["MonitorIntegracaoSapMovEnviadosComponent"])
    ], MonitorIntegracaoSapIndexComponent.prototype, "childAbaMovEnviados", void 0);
    MonitorIntegracaoSapIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-sap-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-sap-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"],
            _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_11__["MonitorIntegracaoSapService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"],
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]])
    ], MonitorIntegracaoSapIndexComponent);
    return MonitorIntegracaoSapIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.component.ts":
/*!*************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.component.ts ***!
  \*************************************************************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapMovEnviadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapMovEnviadosComponent", function() { return MonitorIntegracaoSapMovEnviadosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __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 _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* 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_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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_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 _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../monitor-integracao-sap.constants */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts");
/* harmony import */ var _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../monitor-integracao-sap.service */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.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 MonitorIntegracaoSapMovEnviadosComponent = /** @class */ (function () {
    function MonitorIntegracaoSapMovEnviadosComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.reenviarIntegracao = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_9__["MonitorIntegracaoSapConstants"]();
        this.mensagens = [];
        this.refreshMovEnviados = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this.service;
                        return [4 /*yield*/, this.service.getMovEnviadas().toPromise()];
                    case 1:
                        _a.dadosMovEnviados = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
    }
    Object.defineProperty(MonitorIntegracaoSapMovEnviadosComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosMovEnviados || !this.table.filtro) {
                return this.table.getPage(this.service.dadosMovEnviados);
            }
            var dados = this.service.dadosMovEnviados.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.sequencia, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.docto, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.dtMovimento, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.msgErroIntegracao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.descrMov, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorIntegracaoSapMovEnviadosComponent.prototype, "hasDadosMovEnviados", {
        get: function () {
            if (!this.service.dadosMovEnviados)
                return false;
            return this.service.dadosMovEnviados && this.service.dadosMovEnviados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSapMovEnviadosComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorIntegracaoSapMovEnviadosComponent.prototype.rowSelect = function (item) {
        this.service.habilitaReenviarIntegracao = item.sequencia > 0;
        this.reenviarIntegracao.emit(item);
    };
    MonitorIntegracaoSapMovEnviadosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __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"])
    ], MonitorIntegracaoSapMovEnviadosComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorIntegracaoSapMovEnviadosComponent.prototype, "reenviarIntegracao", void 0);
    MonitorIntegracaoSapMovEnviadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-sap-mov-enviados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-sap-mov-enviados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitorIntegracaoSapMovEnviadosComponent);
    return MonitorIntegracaoSapMovEnviadosComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-nf/monitor-integracao-sap-nf.component.ts":
/*!*****************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-nf/monitor-integracao-sap-nf.component.ts ***!
  \*****************************************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapNfComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapNfComponent", function() { return MonitorIntegracaoSapNfComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __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 _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* 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_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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_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 _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../monitor-integracao-sap.constants */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts");
/* harmony import */ var _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../monitor-integracao-sap.service */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.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 MonitorIntegracaoSapNfComponent = /** @class */ (function () {
    function MonitorIntegracaoSapNfComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.reenviarIntegracao = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_9__["MonitorIntegracaoSapConstants"]();
        this.mensagens = [];
        this.refreshNf = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this.service;
                        return [4 /*yield*/, this.service.getNotasFiscais().toPromise()];
                    case 1:
                        _a.dadosNf = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
    }
    Object.defineProperty(MonitorIntegracaoSapNfComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosNf || !this.table.filtro) {
                return this.table.getPage(this.service.dadosNf);
            }
            var dados = this.service.dadosNf.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.notaFiscalId, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.nota, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.chaveNFE, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.dtIntegracao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.msgErroIntegracao, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorIntegracaoSapNfComponent.prototype, "hasDadosNf", {
        get: function () {
            if (!this.service.dadosNf)
                return false;
            return this.service.dadosNf && this.service.dadosNf.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSapNfComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorIntegracaoSapNfComponent.prototype.rowSelect = function (item) {
        this.service.habilitaReenviarIntegracao = item.notaFiscalId > 0;
        this.reenviarIntegracao.emit(item);
    };
    MonitorIntegracaoSapNfComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __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"])
    ], MonitorIntegracaoSapNfComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorIntegracaoSapNfComponent.prototype, "reenviarIntegracao", void 0);
    MonitorIntegracaoSapNfComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-sap-nf",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-sap-nf.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-nf/monitor-integracao-sap-nf.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitorIntegracaoSapNfComponent);
    return MonitorIntegracaoSapNfComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.component.ts":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.component.ts ***!
  \***************************************************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapPedidosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapPedidosComponent", function() { return MonitorIntegracaoSapPedidosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __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 _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* 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_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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_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 _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../monitor-integracao-sap.constants */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts");
/* harmony import */ var _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../monitor-integracao-sap.service */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.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 MonitorIntegracaoSapPedidosComponent = /** @class */ (function () {
    function MonitorIntegracaoSapPedidosComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.reenviarIntegracao = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _monitor_integracao_sap_constants__WEBPACK_IMPORTED_MODULE_9__["MonitorIntegracaoSapConstants"]();
        this.mensagens = [];
        this.refreshPedidos = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this.service;
                        return [4 /*yield*/, this.service.getPedidos().toPromise()];
                    case 1:
                        _a.dadosPedidos = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
    }
    Object.defineProperty(MonitorIntegracaoSapPedidosComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosPedidos || !this.table.filtro) {
                return this.table.getPage(this.service.dadosPedidos);
            }
            var dados = this.service.dadosPedidos.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.pedidoId, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.pedido, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.dtIntegracao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.msgErroIntegracao, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorIntegracaoSapPedidosComponent.prototype, "hasDadosPedidos", {
        get: function () {
            if (!this.service.dadosPedidos)
                return false;
            return this.service.dadosPedidos && this.service.dadosPedidos.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSapPedidosComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorIntegracaoSapPedidosComponent.prototype.rowSelect = function (item) {
        this.service.habilitaReenviarIntegracao = item.pedidoId > 0;
        this.reenviarIntegracao.emit(item);
    };
    MonitorIntegracaoSapPedidosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __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"])
    ], MonitorIntegracaoSapPedidosComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorIntegracaoSapPedidosComponent.prototype, "reenviarIntegracao", void 0);
    MonitorIntegracaoSapPedidosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-sap-pedidos",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-sap-pedidos.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_sap_service__WEBPACK_IMPORTED_MODULE_10__["MonitorIntegracaoSapService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitorIntegracaoSapPedidosComponent);
    return MonitorIntegracaoSapPedidosComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.constants.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapConstants", function() { return MonitorIntegracaoSapConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorIntegracaoSapConstants = /** @class */ (function () {
    function MonitorIntegracaoSapConstants() {
        this.sisFormularioId = 375434;
        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.reenviarIntegracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "DIV";
        this.nomeForm = "titles.monitorIntegracaoSap";
        this.reportId = "CAT0058";
        this.reportTitulo = { "titulo": "Monitor Integração SAP", "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: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'reenviarIntegracao', action: 'reenviarIntegracao', icon: "fa fa-bug", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: true },
        ];
    }
    return MonitorIntegracaoSapConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.module.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.module.ts ***!
  \****************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapModule", function() { return MonitorIntegracaoSapModule; });
/* 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_sap_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-integracao-sap.routing.module */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.routing.module.ts");
/* harmony import */ var _monitor_integracao_sap_index_monitor_integracao_sap_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-sap-index/monitor-integracao-sap-index.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-index.component.ts");
/* harmony import */ var _monitor_integracao_sap_index_monitor_integracao_sap_pedidos_monitor_integracao_sap_pedidos_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-integracao-sap-index/monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-pedidos/monitor-integracao-sap-pedidos.component.ts");
/* harmony import */ var _monitor_integracao_sap_index_monitor_integracao_sap_nf_monitor_integracao_sap_nf_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitor-integracao-sap-index/monitor-integracao-sap-nf/monitor-integracao-sap-nf.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-nf/monitor-integracao-sap-nf.component.ts");
/* harmony import */ var _monitor_integracao_sap_index_monitor_integracao_sap_cad_enviados_monitor_integracao_sap_cad_enviados_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitor-integracao-sap-index/monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-cad-enviados/monitor-integracao-sap-cad-enviados.component.ts");
/* harmony import */ var _monitor_integracao_sap_index_monitor_integracao_sap_mov_enviados_monitor_integracao_sap_mov_enviados_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./monitor-integracao-sap-index/monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-mov-enviados/monitor-integracao-sap-mov-enviados.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 MonitorIntegracaoSapModule = /** @class */ (function () {
    function MonitorIntegracaoSapModule() {
    }
    MonitorIntegracaoSapModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _monitor_integracao_sap_routing_module__WEBPACK_IMPORTED_MODULE_2__["MonitorIntegracaoSapRoutingModule"]],
            declarations: [
                _monitor_integracao_sap_index_monitor_integracao_sap_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoSapIndexComponent"],
                _monitor_integracao_sap_index_monitor_integracao_sap_pedidos_monitor_integracao_sap_pedidos_component__WEBPACK_IMPORTED_MODULE_4__["MonitorIntegracaoSapPedidosComponent"],
                _monitor_integracao_sap_index_monitor_integracao_sap_nf_monitor_integracao_sap_nf_component__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSapNfComponent"],
                _monitor_integracao_sap_index_monitor_integracao_sap_cad_enviados_monitor_integracao_sap_cad_enviados_component__WEBPACK_IMPORTED_MODULE_6__["MonitorIntegracaoSapCadEnviadosComponent"],
                _monitor_integracao_sap_index_monitor_integracao_sap_mov_enviados_monitor_integracao_sap_mov_enviados_component__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoSapMovEnviadosComponent"]
            ]
        })
    ], MonitorIntegracaoSapModule);
    return MonitorIntegracaoSapModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.routing.module.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.routing.module.ts ***!
  \************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapRoutingModule", function() { return MonitorIntegracaoSapRoutingModule; });
/* 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_sap_index_monitor_integracao_sap_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-sap-index/monitor-integracao-sap-index.component */ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap-index/monitor-integracao-sap-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_sap_index_monitor_integracao_sap_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoSapIndexComponent"],
        data: { breadcrumb: "monitorIntegracaoSap", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var MonitorIntegracaoSapRoutingModule = /** @class */ (function () {
    function MonitorIntegracaoSapRoutingModule() {
    }
    MonitorIntegracaoSapRoutingModule = __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"]],
        })
    ], MonitorIntegracaoSapRoutingModule);
    return MonitorIntegracaoSapRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.service.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/monitor-integracao-sap/monitor-integracao-sap.service.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSapService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSapService", function() { return MonitorIntegracaoSapService; });
/* 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_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.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 MonitorIntegracaoSapService = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoSapService, _super);
    function MonitorIntegracaoSapService(http, loginService) {
        var _this = _super.call(this, http, "cattalini/monitorIntegracaoSap") || this;
        _this.http = http;
        _this.loginService = loginService;
        _this.dadosPedidos = [];
        _this.dadosNf = [];
        _this.dadosCadEnviados = [];
        _this.dadosMovEnviados = [];
        _this.habilitaReenviarIntegracao = false;
        return _this;
    }
    MonitorIntegracaoSapService.prototype.getCadastrosPendentes = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cattalini/monitorIntegracaoSap/getCadastrosPendentes")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.prototype.getPedidos = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cattalini/monitorIntegracaoSap/getPedidos")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.prototype.getNotasFiscais = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cattalini/monitorIntegracaoSap/getNotasFiscais")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.prototype.getCadastrosEnviados = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cattalini/monitorIntegracaoSap/getCadastrosEnviados")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.prototype.getMovEnviadas = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cattalini/monitorIntegracaoSap/getMovEnviadas")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.prototype.reenviarSAP = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cattalini/monitorIntegracaoSap/reenviarSAP", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSapService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] }
    ]; };
    MonitorIntegracaoSapService = __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_4__["LoginService"]])
    ], MonitorIntegracaoSapService);
    return MonitorIntegracaoSapService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_3__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cattalini-movimentos-monitor-integracao-sap-monitor-integracao-sap-module.js.map