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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [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('CNI')\"\n                                    href=\"#clientesNaoIntegrados\">{{\"labels.clientesNaoIntegrados\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('SNI')\"\n                                    href=\"#servicosNaoIntegrados\">{{\"labels.servicosNaoIntegrados\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('NNI')\"\n                                    href=\"#notasNaoIntegradas\">{{\"labels.notasNaoIntegradas\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('NCNI')\"\n                                    href=\"#notasCanceladasNaoIntegradas\">{{\"labels.notasCanceladasNaoIntegradas\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('NFI')\"\n                                    href=\"#notasFiscaisIntegradas\">{{\"labels.notasFiscaisIntegradas\" | 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=\"clientesNaoIntegrados\">\n                            <app-table>\n                                <table id=\"clientesNaoIntegrados\"\n                                    class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                    <thead>\n                                        <tr>\n                                            <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                                            <th>{{ 'labels.codigo' | translate}}</th>\n                                            <th>{{ 'labels.tipo' | translate}}</th>\n                                            <th>{{ 'labels.cgcCpf' | translate}}</th>\n                                            <th>{{ 'labels.codigoSap' | translate}}</th>\n                                            <th>{{ 'labels.razaoSocial' | translate}}</th>\n                                            <th>{{ 'labels.nFantasia' | translate}}</th>\n                                            <th>{{ 'labels.municipio' | translate }}</th>\n                                            <th>{{ 'labels.estado' | translate }}</th>\n                                            <th>{{ 'labels.pendenciaErro' | translate }}</th>\n                                        </tr>\n                                    </thead>\n                                    <tbody>\n                                        <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\"\n                                            (click)=\"_click(t, i)\"\n                                            [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                                            <td class=\"text-center\">\n                                                <label class=\"chk\">\n                                                    <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\"\n                                                        value=\"checked\"\n                                                        (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\"\n                                                        [ngModel]=\"t.selecionado ==='S'\"\n                                                        style=\"margin-left:auto; margin-right:auto;\" disabled>\n                                                    <span [ngClass]=\"{'red':t.flag == true ? true : false}\"></span>\n                                                </label>\n                                            </td>\n                                            <td>{{ t.destinatarioIdCliente }}</td>\n                                            <td>{{ t.descrTipoDest }}</td>\n                                            <td>{{ t.cgccpf }}</td>\n                                            <td>{{ t.codIntegreacao }}</td>\n                                            <td>{{ t.razaoSocial }}</td>\n                                            <td>{{ t.fantasia }}</td>\n                                            <td>{{ t.municipio }}</td>\n                                            <td>{{ t.estado }}</td>\n                                            <td>{{ t.pendencia }}</td>\n                                        </tr>\n                                        <tr *ngIf=\"!hasDadosClientesNaoIntegrados\">\n                                            <th colspan=\"15\" style=\"text-align: center\">\n                                                {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                            </th>\n                                        </tr>\n                                    </tbody>\n                                </table>\n                            </app-table>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"servicosNaoIntegrados\">\n                            <app-monitor-de-integracao-serv-nao-integrados\n                                (execute)=\"habilitaBtnReenviarRegistrosComErros()\"\n                                (visualizarLogs)=\"habilitarBtnVisualizarLogs($event,'SNI')\"></app-monitor-de-integracao-serv-nao-integrados>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"notasNaoIntegradas\">\n                            <app-monitor-de-integracao-notas-nao-integradas\n                                (execute)=\"habilitaBtnReenviarRegistrosComErros()\"\n                                (visualizarLogs)=\"habilitarBtnVisualizarLogs($event,'NNI')\"></app-monitor-de-integracao-notas-nao-integradas>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"notasCanceladasNaoIntegradas\">\n                            <app-monitor-de-integracao-notas-canceladas-nao-integradas\n                                (execute)=\"habilitaBtnReenviarRegistrosComErros()\"\n                                (visualizarLogs)=\"habilitarBtnVisualizarLogs($event,'NCNI')\"></app-monitor-de-integracao-notas-canceladas-nao-integradas>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"notasFiscaisIntegradas\">\n                            <app-monitor-de-integracao-notas-fiscais-integradas\n                            (visualizarLogs)=\"habilitarBtnVisualizarLogs($event,'NFI')\"></app-monitor-de-integracao-notas-fiscais-integradas>\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>\n<app-monitor-de-integracao-visualizar-logs-modal></app-monitor-de-integracao-visualizar-logs-modal>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component.html":
/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.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=\"dtServNaoIntegrados\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th colspan=\"5\" style=\"text-align: center;\"></th>\n                    <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.cliente' | translate }}</th>\n                    <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.servico' | translate }}</th>\n                    <th colspan=\"2\" style=\"text-align: center;\"></th>\n                </tr>\n                <tr>\n                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.numero' | translate}}</th>\n                    <th>{{ 'labels.item' | translate}}</th>\n                    <th>{{ 'labels.emissao' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.cliente' | translate }}</th>\n                    <th>{{ 'labels.codigo' | translate }}</th>\n                    <th>{{ 'labels.servico' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.valor' | translate }}</th>\n                    <th>{{ 'labels.pendenciaErro' | translate }}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.flag == true ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"text-align: right;\">{{ t.regNota }}</td>\n                    <td style=\"text-align: right;\">{{ t.numero }}</td>\n                    <td>{{ t.itemId }}</td>\n                    <td>{{ t.dtEmissao | date: 'dd/MM/yyyy' }}</td>\n                    <td style=\"text-align: right;\">{{ t.destinatarioIdCliente }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td>{{ t.materialId }}</td>\n                    <td>{{ t.servico }}</td>\n                    <td style=\"text-align: right;\">{{ t.vlItem | formatCurrency: 2 }}</td>\n                    <td>{{ t.pendencia }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosNotasCanceladasNaoIntegradas\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"row\">\n    <div class=\"col-lg-6\">\n        <div class=\"row\">\n            <div class=\"input-group\">\n                <div class=\"col-lg-4\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                        <app-data id=\"periodoDe\" name=\"periodoDe\"\n                            [(ngModel)]=\"service.notasFiscaisIntegradasFiltro.dataI\" autofocus class=\"dataHora\"\n                            [formatDateTime]=\"mascara.getFormatData\" required (executa)=\"validaData()\">\n                        </app-data>\n                    </div>\n                </div>\n                <div class=\"col-lg-4\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                        <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.notasFiscaisIntegradasFiltro.dataF\"\n                            class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required (executa)=\"validaData()\">\n                        </app-data>\n                    </div>\n                </div>\n                <div class=\"col-lg-2\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"pesquisar\" class=\"pesquisar\">{{'labels.pesquisar' | translate}}</label>\n                        <div class=\"input-group-prepend\">\n                            <button type=\"button\" class=\"input-group-text\" (click)=\"refresh();\">\n                                <i class=\"fa fa-search\"></i>\n                            </button>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<div class=\"clearfix\">&nbsp;</div>\n<app-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtServNaoIntegrados\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th colspan=\"5\" style=\"text-align: center;\"></th>\n                    <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.cliente' | translate }}</th>\n                    <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.sap' | translate }}</th>\n                    <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.dtIntegracao' | translate }}</th>\n                </tr>\n                <tr>\n                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.numero' | translate}}</th>\n                    <th>{{ 'labels.emissao' | translate}}</th>\n                    <th>{{ 'labels.status' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.descricao' | translate }}</th>\n                    <th>{{ 'labels.ordemVenda' | translate }}</th>\n                    <th>{{ 'labels.faturaComercial' | translate }}</th>\n                    <th>{{ 'labels.emissao' | translate }}</th>\n                    <th>{{ 'labels.cancelamento' | translate }}</th>\n\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.flag == true ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"text-align: right;\">{{ t.regNota }}</td>\n                    <td style=\"text-align: right;\">{{ t.numero }}</td>\n                    <td>{{ t.dtEmissao | date: 'dd/MM/yyyy' }}\n                    <td>{{ t.status }}</td>\n                    <td style=\"text-align: right;\">{{ t.destinatarioIdCliente }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td>{{ t.sapOrdemVenda }}</td>\n                    <td>{{ t.sapNumFatura }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.dtIntegracao2 | date: 'dd/MM/yyyy HH:mm:ss' }}\n                    <td style=\"white-space: nowrap;\">{{ t.dtIntegracao2C | date: 'dd/MM/yyyy HH:mm:ss' }}\n                </tr>\n                <tr *ngIf=\"!hasDadosNotasFiscaisIntegradas\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n<div class=\"row\">\n    <div class=\"col-sm-12\">\n        <button [disabled]=\"this.registrosSelecionados.length < 1\" type=\"button\" class=\"btn btn-success mr-2\"\n            (click)=\"reenviarEmissaoDosSelecionados()\">\n            <i class=\"fa fa-check\"></i>\n            {{ 'buttons.reenviarEmissaoDosSelecionados' | translate }}\n        </button>\n        <button [disabled]=\"this.registrosSelecionados.length < 1\" type=\"button\" class=\"btn btn-success mr-2\"\n            (click)=\"reenviarCancelamentoDosSelecionados()\">\n            <i class=\"fa fa-check\"></i>\n            {{ 'buttons.reenviarCancelamentoDosSelecionados' | translate }}\n        </button>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.html":
/*!*********************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.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=\"dtServNaoIntegrados\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th colspan=\"5\" style=\"text-align: center;\"></th>\n                    <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.cliente' | translate }}</th>\n                    <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.servico' | translate }}</th>\n                    <th colspan=\"2\" style=\"text-align: center;\"></th>\n                </tr>\n                <tr>\n                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.numero' | translate}}</th>\n                    <th>{{ 'labels.item' | translate}}</th>\n                    <th>{{ 'labels.emissao' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.cliente' | translate }}</th>\n                    <th>{{ 'labels.codigo' | translate }}</th>\n                    <th>{{ 'labels.servico' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.valor' | translate }}</th>\n                    <th>{{ 'labels.pendenciaErro' | translate }}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.flag == true ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"text-align: right;\">{{ t.regNota }}</td>\n                    <td style=\"text-align: right;\">{{ t.numero }}</td>\n                    <td>{{ t.itemId }}</td>\n                    <td>{{ t.dtEmissao | date: 'dd/MM/yyyy' }}</td>\n                    <td style=\"text-align: right;\">{{ t.destinatarioIdCliente }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td>{{ t.materialId }}</td>\n                    <td>{{ t.servico }}</td>\n                    <td style=\"text-align: right;\">{{ t.vlItem | formatCurrency: 2 }}</td>\n                    <td>{{ t.pendencia }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosNotasNaoIntegradas\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.html":
/*!*******************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.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=\"dtServNaoIntegrados\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                <thead>\n                    <tr>\n                        <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                        <th>{{ 'labels.codigo' | translate}}</th>\n                        <th>{{ 'labels.codigoSap' | translate}}</th>\n                        <th>{{ 'labels.descricao' | translate}}</th>\n                        <th>{{ 'labels.nFantasia' | translate}}</th>\n                        <th>{{ 'labels.codigoServico' | translate}}</th>\n                        <th>{{ 'labels.unidade' | translate}}</th>\n                        <th>{{ 'labels.pendenciaErro' | translate }}</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                        [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                        <td class=\"text-center\">\n                            <label class=\"chk\">\n                                <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                    (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\"\n                                    [ngModel]=\"t.selecionado ==='S'\" style=\"margin-left:auto; margin-right:auto;\"\n                                    disabled>\n                                <span [ngClass]=\"{'red':t.flag == true ? true : false}\"></span>\n                            </label>\n                        </td>\n                        <td>{{ t.material }}</td>\n                        <td>{{ t.emsMaterial }}</td>\n                        <td>{{ t.descrMater }}</td>\n                        <td>{{ t.fantasia }}</td>\n                        <td>{{ t.codGoverno }}</td>\n                        <td>{{ t.unidade }}</td>\n                        <td>{{ t.pendencia }}</td>\n                    </tr>\n                    <tr *ngIf=\"!hasDadosServicosNaoIntegrados\">\n                        <th colspan=\"15\" style=\"text-align: center\">\n                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                        </th>\n                    </tr>\n                </tbody>\n            </table>\n        </div>\n    </app-table>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-de-integracao-visualizar-logs-modal-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-75\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.visualizacaoDeLogsSap' | translate }}</h6>\r\n            </div>\r\n            <app-validacoes></app-validacoes>\r\n            <div class=\"modal-body\">\r\n                <div class=\"table-responsive mt-1\" style=\"overflow: auto; max-height: 300px;\">\r\n                    <table id=\"dtMonitorDeIntegracaoVisualizarLogs\"\r\n                        class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                        <thead>\r\n                            <tr>\r\n                                <th>{{ 'labels.dataHora' | translate }}</th>\r\n                                <th>{{ 'labels.tipo' | translate }}</th>\r\n                                <th>{{ 'labels.descricao' | translate }}</th>\r\n                            </tr>\r\n                        </thead>\r\n                        <tbody>\r\n                            <tr *ngFor=\"let t of dados; index as i\"\r\n                                [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\r\n                                <td style=\"white-space: nowrap;\">{{ t.dtLog | date: 'dd/MM/yyyy HH:mm:ss' }}\r\n                                </td>\r\n                                <td style=\"white-space: nowrap;\">{{ t.tipo }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t.descrLog }}</td>\r\n                            </tr>\r\n                            <tr *ngIf=\"!hasDados\">\r\n                                <th colspan=\"5\" style=\"text-align: center\">\r\n                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                </th>\r\n                            </tr>\r\n                        </tbody>\r\n                    </table>\r\n                </div>\r\n            </div>\r\n            <div class=\"modal-footer\">\r\n                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Fechar</button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-index.component.scss":
/*!*********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-index.component.scss ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxlc3BlY2lmaWNvc1xcc2FudG9zLWJyYXNpbFxcbW92aW1lbnRvc1xcbW9uaXRvci1kZS1pbnRlZ3JhY2FvXFxtb25pdG9yLWRlLWludGVncmFjYW8taW5kZXhcXG1vbml0b3ItZGUtaW50ZWdyYWNhby1pbmRleC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLWluZGV4LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE0cHg7XHJcbiAgICBoZWlnaHQ6IDE0cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuXHJcbiIsIi5jaGsgaW5wdXQge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY2hrIHNwYW4ge1xuICB3aWR0aDogMTRweDtcbiAgaGVpZ2h0OiAxNHB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcbiAgYm9yZGVyLXJhZGl1czogMThweDtcbn1cblxuc3Bhbi5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufSJdfQ== */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoIndexComponent", function() { return MonitorDeIntegracaoIndexComponent; });
/* 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 _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../monitor-de-integracao.constants */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.constants.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../monitor-de-integracao.model */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.model.ts");
/* harmony import */ var _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../monitor-de-integracao.service */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __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_11__ = __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_12__ = __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_de_integracao_visualizar_logs_modal_monitor_de_integracao_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./monitor-de-integracao-visualizar-logs-modal/monitor-de-integracao-visualizar-logs-modal.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-visualizar-logs-modal/monitor-de-integracao-visualizar-logs-modal.component.ts");
/* harmony import */ var _monitor_de_integracao_serv_nao_integrados_monitor_de_integracao_serv_nao_integrados_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.ts");
/* harmony import */ var _monitor_de_integracao_notas_nao_integradas_monitor_de_integracao_notas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.ts");
/* harmony import */ var _monitor_de_integracao_notas_canceladas_nao_integradas_monitor_de_integracao_notas_canceladas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.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 MonitorDeIntegracaoIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorDeIntegracaoIndexComponent, _super);
    function MonitorDeIntegracaoIndexComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.dadosClientesNaoIntegrados = [];
        _this.constantes = new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoConstants"]();
        _this.mensagens = [];
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getClientesNaoIntegrados().toPromise()];
                    case 1:
                        _a.dadosClientesNaoIntegrados = _b.sent();
                        this.service.registrosSelecionados = new _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoRegistrosSelecionados"]();
                        this.service.habilitaVisualizarLogs = false;
                        this.executaRefreshOutrasAbas();
                        this.trataExibicaoBotoes();
                        return [2 /*return*/];
                }
            });
        }); };
        _this.visualizarLogs = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                _this.childMonitorDeIntegracaoVisualizarLogsModalComponent.objectSelect(_this.dadosVisualizarLogs, _this.abaOrigemDados);
            });
        };
        _this.reenviarRegistrosComErro = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _this.messageService.confirm("titles.monitorDeIntegracao", "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                    var _this = this;
                    return __generator(this, function (_a) {
                        this.service.reenviarRegistrosComErro(this.service.registrosSelecionados).subscribe(function (result) {
                            _this.mensagens = _this.messageService.validationResult(result);
                            if (!result.isValid) {
                                if (result.erros.length > 1) {
                                    for (var i = 0; i < result.erros.length; i++) {
                                        _this.mensagens = _this.messageService.validationResult(result);
                                        var mensagem = _this.mensagens[i];
                                        _this.messageService.warning("titles.monitorDeIntegracao", _this.messageService.translate("" + mensagem));
                                    }
                                    return;
                                }
                                else {
                                    var mensagem = _this.mensagens[0];
                                    _this.messageService.warning("titles.monitorDeIntegracao", _this.messageService.translate("" + mensagem));
                                    return;
                                }
                            }
                            else {
                                _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                _this.refresh();
                                _this.executaRefreshOutrasAbas();
                            }
                        });
                        return [2 /*return*/];
                    });
                }); }, false);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MonitorDeIntegracaoIndexComponent.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: 'reenviarRegistrosComErro', func: function () { return _this.reenviarRegistrosComErro; } },
            { action: 'visualizarLogs', func: function () { return _this.visualizarLogs; } }
        ]);
    };
    MonitorDeIntegracaoIndexComponent.prototype.trataExibicaoBotoes = function () {
        this.habilitaBtnReenviarRegistrosComErros();
        this.buttonDisabled('listaIndex', 'visualizarLogs', !this.habilitaBtnVisualizarLogs);
    };
    Object.defineProperty(MonitorDeIntegracaoIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosClientesNaoIntegrados || !this.table.filtro) {
                return this.table.getPage(this.dadosClientesNaoIntegrados);
            }
            var dados = this.dadosClientesNaoIntegrados.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.descrTipoDest, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.cgccpf, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.codIntegreacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.razaoSocial, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.fantasia, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.municipio, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.estado, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorDeIntegracaoIndexComponent.prototype, "hasDadosClientesNaoIntegrados", {
        get: function () {
            if (!this.dadosClientesNaoIntegrados)
                return false;
            return this.dadosClientesNaoIntegrados && this.dadosClientesNaoIntegrados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorDeIntegracaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MonitorDeIntegracaoIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorDeIntegracaoIndexComponent.prototype.rowSelect = function (item) {
        this.service.habilitaVisualizarLogs = item.destinatarioIdCliente > 0;
        this.habilitarBtnVisualizarLogs(item, 'CNI');
    };
    MonitorDeIntegracaoIndexComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        item.selecionado = item.selecionado === "S" ? "N" : "S";
        item.flag = !item.flag;
        this.trataDadosSelecionados();
    };
    MonitorDeIntegracaoIndexComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.service.registrosSelecionados.clientesNaoIntegrados.selecionados = [];
        this.dadosClientesNaoIntegrados.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.service.registrosSelecionados.clientesNaoIntegrados.selecionados.push(element.destinatarioIdCliente);
            }
        });
        this.habilitaBtnReenviarRegistrosComErros();
    };
    Object.defineProperty(MonitorDeIntegracaoIndexComponent.prototype, "habilitaBotaoReenviarRegistrosComErros", {
        get: function () {
            if (this.service.registrosSelecionados.clientesNaoIntegrados.selecionados.length > 0 ||
                this.service.registrosSelecionados.notasCanceladasNaoIntegradas.selecionados.length > 0 ||
                this.service.registrosSelecionados.notasNaoIntegradas.selecionados.length > 0 ||
                this.service.registrosSelecionados.servicosNaoIntegrados.selecionados.length > 0) {
                return true;
            }
            return false;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorDeIntegracaoIndexComponent.prototype, "habilitaBtnVisualizarLogs", {
        get: function () {
            return this.service.habilitaVisualizarLogs;
        },
        enumerable: true,
        configurable: true
    });
    MonitorDeIntegracaoIndexComponent.prototype.abaClicada = function (aba) {
        this.service.habilitaVisualizarLogs = false;
        this.abaAtual = aba;
        this.trataExibicaoBotoes();
    };
    MonitorDeIntegracaoIndexComponent.prototype.habilitarBtnVisualizarLogs = function (dadosVisualizarLogs, aba) {
        this.buttonDisabled('listaIndex', 'visualizarLogs', !this.habilitaBtnVisualizarLogs);
        this.dadosVisualizarLogs = dadosVisualizarLogs;
        this.abaOrigemDados = aba;
    };
    MonitorDeIntegracaoIndexComponent.prototype.habilitaBtnReenviarRegistrosComErros = function () {
        this.buttonDisabled('listaIndex', 'reenviarRegistrosComErro', !this.habilitaBotaoReenviarRegistrosComErros || this.abaAtual === 'NFI');
    };
    MonitorDeIntegracaoIndexComponent.prototype.executaRefreshOutrasAbas = function () {
        this.childAbaServicosNaoIntegrados.refresh();
        this.childAbaNotasNaoIntegradas.refresh();
        this.childAbaNotasCanceladasNaoIntegradas.refresh();
    };
    MonitorDeIntegracaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"] },
        { type: _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_9__["MonitorDeIntegracaoService"] },
        { 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"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__["TableComponent"])
    ], MonitorDeIntegracaoIndexComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_de_integracao_visualizar_logs_modal_monitor_de_integracao_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_13__["MonitorDeIntegracaoVisualizarLogsModalComponent"], { static: false }),
        __metadata("design:type", _monitor_de_integracao_visualizar_logs_modal_monitor_de_integracao_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_13__["MonitorDeIntegracaoVisualizarLogsModalComponent"])
    ], MonitorDeIntegracaoIndexComponent.prototype, "childMonitorDeIntegracaoVisualizarLogsModalComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_de_integracao_serv_nao_integrados_monitor_de_integracao_serv_nao_integrados_component__WEBPACK_IMPORTED_MODULE_14__["MonitorDeIntegracaoServNaoIntegradosComponent"], { static: false }),
        __metadata("design:type", _monitor_de_integracao_serv_nao_integrados_monitor_de_integracao_serv_nao_integrados_component__WEBPACK_IMPORTED_MODULE_14__["MonitorDeIntegracaoServNaoIntegradosComponent"])
    ], MonitorDeIntegracaoIndexComponent.prototype, "childAbaServicosNaoIntegrados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_de_integracao_notas_nao_integradas_monitor_de_integracao_notas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_15__["MonitorDeIntegracaoNotasNaoIntegradasComponent"], { static: false }),
        __metadata("design:type", _monitor_de_integracao_notas_nao_integradas_monitor_de_integracao_notas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_15__["MonitorDeIntegracaoNotasNaoIntegradasComponent"])
    ], MonitorDeIntegracaoIndexComponent.prototype, "childAbaNotasNaoIntegradas", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_de_integracao_notas_canceladas_nao_integradas_monitor_de_integracao_notas_canceladas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_16__["MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent"], { static: false }),
        __metadata("design:type", _monitor_de_integracao_notas_canceladas_nao_integradas_monitor_de_integracao_notas_canceladas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_16__["MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent"])
    ], MonitorDeIntegracaoIndexComponent.prototype, "childAbaNotasCanceladasNaoIntegradas", void 0);
    MonitorDeIntegracaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-de-integracao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-de-integracao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-de-integracao-index.component.scss */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"],
            _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_9__["MonitorDeIntegracaoService"],
            _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"]])
    ], MonitorDeIntegracaoIndexComponent);
    return MonitorDeIntegracaoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component.scss":
/*!*****************************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component.scss ***!
  \*****************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLWNhbmNlbGFkYXMtbmFvLWludGVncmFkYXMvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxlc3BlY2lmaWNvc1xcc2FudG9zLWJyYXNpbFxcbW92aW1lbnRvc1xcbW9uaXRvci1kZS1pbnRlZ3JhY2FvXFxtb25pdG9yLWRlLWludGVncmFjYW8taW5kZXhcXG1vbml0b3ItZGUtaW50ZWdyYWNhby1ub3Rhcy1jYW5jZWxhZGFzLW5hby1pbnRlZ3JhZGFzXFxtb25pdG9yLWRlLWludGVncmFjYW8tbm90YXMtY2FuY2VsYWRhcy1uYW8taW50ZWdyYWRhcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLWNhbmNlbGFkYXMtbmFvLWludGVncmFkYXMvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLWNhbmNlbGFkYXMtbmFvLWludGVncmFkYXMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9zYW50b3MtYnJhc2lsL21vdmltZW50b3MvbW9uaXRvci1kZS1pbnRlZ3JhY2FvL21vbml0b3ItZGUtaW50ZWdyYWNhby1pbmRleC9tb25pdG9yLWRlLWludGVncmFjYW8tbm90YXMtY2FuY2VsYWRhcy1uYW8taW50ZWdyYWRhcy9tb25pdG9yLWRlLWludGVncmFjYW8tbm90YXMtY2FuY2VsYWRhcy1uYW8taW50ZWdyYWRhcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jaGsgaW5wdXQge1xyXG4gICAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmNoayBzcGFuIHtcclxuICAgIHdpZHRoOiAxNHB4O1xyXG4gICAgaGVpZ2h0OiAxNHB4O1xyXG4gICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xyXG4gICAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDE4cHg7XHJcbn1cclxuXHJcbnNwYW4ucmVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XHJcbn1cclxuXHJcblxyXG4iLCIuY2hrIGlucHV0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNoayBzcGFuIHtcbiAgd2lkdGg6IDE0cHg7XG4gIGhlaWdodDogMTRweDtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XG4gIGJvcmRlci1yYWRpdXM6IDE4cHg7XG59XG5cbnNwYW4ucmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component.ts":
/*!***************************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component.ts ***!
  \***************************************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent", function() { return MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent; });
/* 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_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../monitor-de-integracao.service */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../monitor-de-integracao.constants */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__ = __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_10__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent = /** @class */ (function (_super) {
    __extends(MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent, _super);
    function MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.visualizarLogs = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.dadosNotasCanceladasNaoIntegradas = [];
        _this.constantes = new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoConstants"]();
        //O Refresh é chamado e executado pela primeira aba(Index)
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getNotasCanceladasNaoIntegradas().toPromise()];
                    case 1:
                        _a.dadosNotasCanceladasNaoIntegradas = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    Object.defineProperty(MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosNotasCanceladasNaoIntegradas || !this.table.filtro) {
                return this.table.getPage(this.dadosNotasCanceladasNaoIntegradas);
            }
            var dados = this.dadosNotasCanceladasNaoIntegradas.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.regNota, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.numero, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.itemId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.dtEmissao, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.materialId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.servico, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.vlItem, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.pendencia, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype, "hasDadosNotasCanceladasNaoIntegradas", {
        get: function () {
            if (!this.dadosNotasCanceladasNaoIntegradas)
                return false;
            return this.dadosNotasCanceladasNaoIntegradas && this.dadosNotasCanceladasNaoIntegradas.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype.rowSelect = function (item) {
        this.service.habilitaVisualizarLogs = item.regNota > 0;
        this.visualizarLogs.emit(item);
    };
    MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        item.selecionado = item.selecionado === "S" ? "N" : "S";
        item.flag = !item.flag;
        this.trataDadosSelecionados();
    };
    MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.service.registrosSelecionados.notasCanceladasNaoIntegradas.selecionados = [];
        this.dadosNotasCanceladasNaoIntegradas.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.service.registrosSelecionados.notasCanceladasNaoIntegradas.selecionados.push(element.regNota);
            }
        });
        this.execute.emit();
    };
    MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["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_5__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_5__["TableComponent"])
    ], MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype, "execute", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent.prototype, "visualizarLogs", void 0);
    MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-de-integracao-notas-canceladas-nao-integradas",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-de-integracao-notas-canceladas-nao-integradas.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-de-integracao-notas-canceladas-nao-integradas.component.scss */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["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"]])
    ], MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent);
    return MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-fiscais-integradas/monitor-de-integracao-notas-fiscais-integradas.component.scss":
/*!***************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-fiscais-integradas/monitor-de-integracao-notas-fiscais-integradas.component.scss ***!
  \***************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLWZpc2NhaXMtaW50ZWdyYWRhcy9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxzYW50b3MtYnJhc2lsXFxtb3ZpbWVudG9zXFxtb25pdG9yLWRlLWludGVncmFjYW9cXG1vbml0b3ItZGUtaW50ZWdyYWNhby1pbmRleFxcbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLWZpc2NhaXMtaW50ZWdyYWRhc1xcbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLWZpc2NhaXMtaW50ZWdyYWRhcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLWZpc2NhaXMtaW50ZWdyYWRhcy9tb25pdG9yLWRlLWludGVncmFjYW8tbm90YXMtZmlzY2Fpcy1pbnRlZ3JhZGFzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLWZpc2NhaXMtaW50ZWdyYWRhcy9tb25pdG9yLWRlLWludGVncmFjYW8tbm90YXMtZmlzY2Fpcy1pbnRlZ3JhZGFzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE0cHg7XHJcbiAgICBoZWlnaHQ6IDE0cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuXHJcbiIsIi5jaGsgaW5wdXQge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY2hrIHNwYW4ge1xuICB3aWR0aDogMTRweDtcbiAgaGVpZ2h0OiAxNHB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcbiAgYm9yZGVyLXJhZGl1czogMThweDtcbn1cblxuc3Bhbi5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-fiscais-integradas/monitor-de-integracao-notas-fiscais-integradas.component.ts":
/*!*************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-fiscais-integradas/monitor-de-integracao-notas-fiscais-integradas.component.ts ***!
  \*************************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoNotasFiscaisIntegradasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoNotasFiscaisIntegradasComponent", function() { return MonitorDeIntegracaoNotasFiscaisIntegradasComponent; });
/* 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_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../monitor-de-integracao.service */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../monitor-de-integracao.constants */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../monitor-de-integracao.model */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.model.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __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_12__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};















var MonitorDeIntegracaoNotasFiscaisIntegradasComponent = /** @class */ (function (_super) {
    __extends(MonitorDeIntegracaoNotasFiscaisIntegradasComponent, _super);
    function MonitorDeIntegracaoNotasFiscaisIntegradasComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.visualizarLogs = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.dadosNotasFiscaisIntegradas = [];
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_13__["Mascaras"]();
        _this.constantes = new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoConstants"]();
        _this.registrosSelecionados = [];
        _this.mensagens = [];
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.validaData()) {
                            return [2 /*return*/];
                        }
                        this.registrosSelecionados = [];
                        this.service.habilitaVisualizarLogs = false;
                        this.visualizarLogs.emit("");
                        _a = this;
                        return [4 /*yield*/, this.service.getNotasFiscaisIntegradas(this.service.notasFiscaisIntegradasFiltro).toPromise()];
                    case 1:
                        _a.dadosNotasFiscaisIntegradas = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        _this.reenviarEmissaoDosSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                if (_this.registrosSelecionados.length > 0) {
                    _this.messageService.confirm("titles.monitorDeIntegracao", "messages.confirmaReenvioDeEmissaoDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarEmissaoDosSelecionados(this.registrosSelecionados.join(',')).subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorDeIntegracao", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorDeIntegracao", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refresh();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorDeIntegracao", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        _this.reenviarCancelamentoDosSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                if (_this.registrosSelecionados.length > 0) {
                    _this.messageService.confirm("titles.monitorDeIntegracao", "messages.confirmaReenvioDeCancelamentoDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarCancelamentoDosSelecionados(this.registrosSelecionados.join(',')).subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorDeIntegracao", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorDeIntegracao", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refresh();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorDeIntegracao", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (!_this.service.notasFiscaisIntegradasFiltro) {
                    _this.service.notasFiscaisIntegradasFiltro = new _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_10__["MonitorDeIntegracaoNotasFiscaisIntegradasFilter"]();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'reenviarEmissaoDosSelecionados', func: function () { return _this.reenviarEmissaoDosSelecionados; } },
            { action: 'reenviarCancelamentoDosSelecionados', func: function () { return _this.reenviarCancelamentoDosSelecionados; } }
        ]);
    };
    MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["DateTimeUtilsStaticService"].menorA(this.service.notasFiscaisIntegradasFiltro.dataF, this.service.notasFiscaisIntegradasFiltro.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.monitorDeIntegracao", "messages.periodoDeMenorQueAte");
            return false;
        }
        if (!this.service.notasFiscaisIntegradasFiltro.dataF || !this.service.notasFiscaisIntegradasFiltro.dataI) {
            this.messageService.warning("titles.monitorDeIntegracao", "messages.dataInvalida");
            return false;
        }
        return true;
    };
    Object.defineProperty(MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosNotasFiscaisIntegradas || !this.table.filtro) {
                return this.table.getPage(this.dadosNotasFiscaisIntegradas);
            }
            var dados = this.dadosNotasFiscaisIntegradas.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.regNota, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.numero, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.dtEmissao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.status, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.sapOrdemVenda, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.sapNumFatura, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.dtIntegracao2, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.dtIntegracao2C, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype, "hasDadosNotasFiscaisIntegradas", {
        get: function () {
            if (!this.dadosNotasFiscaisIntegradas)
                return false;
            return this.dadosNotasFiscaisIntegradas && this.dadosNotasFiscaisIntegradas.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype.rowSelect = function (item) {
        this.service.habilitaVisualizarLogs = item.regNota > 0;
        this.visualizarLogs.emit(item);
    };
    MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        item.selecionado = item.selecionado === "S" ? "N" : "S";
        item.flag = !item.flag;
        this.trataDadosSelecionados();
    };
    MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosNotasFiscaisIntegradas.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.regNota);
            }
        });
    };
    MonitorDeIntegracaoNotasFiscaisIntegradasComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["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_5__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_5__["TableComponent"])
    ], MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorDeIntegracaoNotasFiscaisIntegradasComponent.prototype, "visualizarLogs", void 0);
    MonitorDeIntegracaoNotasFiscaisIntegradasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-de-integracao-notas-fiscais-integradas",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-de-integracao-notas-fiscais-integradas.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-fiscais-integradas/monitor-de-integracao-notas-fiscais-integradas.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-de-integracao-notas-fiscais-integradas.component.scss */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-fiscais-integradas/monitor-de-integracao-notas-fiscais-integradas.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["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"]])
    ], MonitorDeIntegracaoNotasFiscaisIntegradasComponent);
    return MonitorDeIntegracaoNotasFiscaisIntegradasComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.scss":
/*!*******************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.scss ***!
  \*******************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLW5hby1pbnRlZ3JhZGFzL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXHNhbnRvcy1icmFzaWxcXG1vdmltZW50b3NcXG1vbml0b3ItZGUtaW50ZWdyYWNhb1xcbW9uaXRvci1kZS1pbnRlZ3JhY2FvLWluZGV4XFxtb25pdG9yLWRlLWludGVncmFjYW8tbm90YXMtbmFvLWludGVncmFkYXNcXG1vbml0b3ItZGUtaW50ZWdyYWNhby1ub3Rhcy1uYW8taW50ZWdyYWRhcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLW5vdGFzLW5hby1pbnRlZ3JhZGFzL21vbml0b3ItZGUtaW50ZWdyYWNhby1ub3Rhcy1uYW8taW50ZWdyYWRhcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGFBQUE7QUNDSjs7QURFQTtFQUNJLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtBQ0NKOztBREVBO0VBQ0ksc0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3NhbnRvcy1icmFzaWwvbW92aW1lbnRvcy9tb25pdG9yLWRlLWludGVncmFjYW8vbW9uaXRvci1kZS1pbnRlZ3JhY2FvLWluZGV4L21vbml0b3ItZGUtaW50ZWdyYWNhby1ub3Rhcy1uYW8taW50ZWdyYWRhcy9tb25pdG9yLWRlLWludGVncmFjYW8tbm90YXMtbmFvLWludGVncmFkYXMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgICB3aWR0aDogMTRweDtcclxuICAgIGhlaWdodDogMTRweDtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxOHB4O1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59XHJcblxyXG5cclxuIiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxNHB4O1xuICBoZWlnaHQ6IDE0cHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxOHB4O1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.ts":
/*!*****************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.ts ***!
  \*****************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoNotasNaoIntegradasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoNotasNaoIntegradasComponent", function() { return MonitorDeIntegracaoNotasNaoIntegradasComponent; });
/* 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_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../monitor-de-integracao.service */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../monitor-de-integracao.constants */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__ = __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_10__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var MonitorDeIntegracaoNotasNaoIntegradasComponent = /** @class */ (function (_super) {
    __extends(MonitorDeIntegracaoNotasNaoIntegradasComponent, _super);
    function MonitorDeIntegracaoNotasNaoIntegradasComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.visualizarLogs = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.dadosNotasNaoIntegradas = [];
        _this.constantes = new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoConstants"]();
        //O Refresh é chamado e executado pela primeira aba(Index)
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getNotasNaoIntegradas().toPromise()];
                    case 1:
                        _a.dadosNotasNaoIntegradas = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    Object.defineProperty(MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosNotasNaoIntegradas || !this.table.filtro) {
                return this.table.getPage(this.dadosNotasNaoIntegradas);
            }
            var dados = this.dadosNotasNaoIntegradas.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.regNota, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.numero, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.itemId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.dtEmissao, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.materialId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.servico, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.vlItem, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.pendencia, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype, "hasDadosNotasNaoIntegradas", {
        get: function () {
            if (!this.dadosNotasNaoIntegradas)
                return false;
            return this.dadosNotasNaoIntegradas && this.dadosNotasNaoIntegradas.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype.rowSelect = function (item) {
        this.service.habilitaVisualizarLogs = item.regNota > 0;
        this.visualizarLogs.emit(item);
    };
    MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        item.selecionado = item.selecionado === "S" ? "N" : "S";
        item.flag = !item.flag;
        this.trataDadosSelecionados();
    };
    MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.service.registrosSelecionados.notasNaoIntegradas.selecionados = [];
        this.dadosNotasNaoIntegradas.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.service.registrosSelecionados.notasNaoIntegradas.selecionados.push(element.regNota);
            }
        });
        this.execute.emit();
    };
    MonitorDeIntegracaoNotasNaoIntegradasComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["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_5__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_5__["TableComponent"])
    ], MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype, "execute", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorDeIntegracaoNotasNaoIntegradasComponent.prototype, "visualizarLogs", void 0);
    MonitorDeIntegracaoNotasNaoIntegradasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-de-integracao-notas-nao-integradas",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-de-integracao-notas-nao-integradas.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-de-integracao-notas-nao-integradas.component.scss */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["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"]])
    ], MonitorDeIntegracaoNotasNaoIntegradasComponent);
    return MonitorDeIntegracaoNotasNaoIntegradasComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.scss":
/*!*****************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.scss ***!
  \*****************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLXNlcnYtbmFvLWludGVncmFkb3MvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxlc3BlY2lmaWNvc1xcc2FudG9zLWJyYXNpbFxcbW92aW1lbnRvc1xcbW9uaXRvci1kZS1pbnRlZ3JhY2FvXFxtb25pdG9yLWRlLWludGVncmFjYW8taW5kZXhcXG1vbml0b3ItZGUtaW50ZWdyYWNhby1zZXJ2LW5hby1pbnRlZ3JhZG9zXFxtb25pdG9yLWRlLWludGVncmFjYW8tc2Vydi1uYW8taW50ZWdyYWRvcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvc2FudG9zLWJyYXNpbC9tb3ZpbWVudG9zL21vbml0b3ItZGUtaW50ZWdyYWNhby9tb25pdG9yLWRlLWludGVncmFjYW8taW5kZXgvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLXNlcnYtbmFvLWludGVncmFkb3MvbW9uaXRvci1kZS1pbnRlZ3JhY2FvLXNlcnYtbmFvLWludGVncmFkb3MuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9zYW50b3MtYnJhc2lsL21vdmltZW50b3MvbW9uaXRvci1kZS1pbnRlZ3JhY2FvL21vbml0b3ItZGUtaW50ZWdyYWNhby1pbmRleC9tb25pdG9yLWRlLWludGVncmFjYW8tc2Vydi1uYW8taW50ZWdyYWRvcy9tb25pdG9yLWRlLWludGVncmFjYW8tc2Vydi1uYW8taW50ZWdyYWRvcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jaGsgaW5wdXQge1xyXG4gICAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmNoayBzcGFuIHtcclxuICAgIHdpZHRoOiAxNHB4O1xyXG4gICAgaGVpZ2h0OiAxNHB4O1xyXG4gICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xyXG4gICAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDE4cHg7XHJcbn1cclxuXHJcbnNwYW4ucmVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XHJcbn1cclxuXHJcblxyXG4iLCIuY2hrIGlucHV0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNoayBzcGFuIHtcbiAgd2lkdGg6IDE0cHg7XG4gIGhlaWdodDogMTRweDtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XG4gIGJvcmRlci1yYWRpdXM6IDE4cHg7XG59XG5cbnNwYW4ucmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.ts":
/*!***************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.ts ***!
  \***************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoServNaoIntegradosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoServNaoIntegradosComponent", function() { return MonitorDeIntegracaoServNaoIntegradosComponent; });
/* 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_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../monitor-de-integracao.service */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../monitor-de-integracao.constants */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__ = __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_10__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
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 MonitorDeIntegracaoServNaoIntegradosComponent = /** @class */ (function (_super) {
    __extends(MonitorDeIntegracaoServNaoIntegradosComponent, _super);
    function MonitorDeIntegracaoServNaoIntegradosComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.visualizarLogs = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.dadosServicosNaoIntegrados = [];
        _this.constantes = new _monitor_de_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoConstants"]();
        //O Refresh é chamado e executado pela primeira aba(Index)
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getServicosNaoIntegrados().toPromise()];
                    case 1:
                        _a.dadosServicosNaoIntegrados = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    Object.defineProperty(MonitorDeIntegracaoServNaoIntegradosComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosServicosNaoIntegrados || !this.table.filtro) {
                return this.table.getPage(this.dadosServicosNaoIntegrados);
            }
            var dados = this.dadosServicosNaoIntegrados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.material, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.emsMaterial, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.descrMater, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.fantasia, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.codGoverno, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.unidade, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.pendencia, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorDeIntegracaoServNaoIntegradosComponent.prototype, "hasDadosServicosNaoIntegrados", {
        get: function () {
            if (!this.dadosServicosNaoIntegrados)
                return false;
            return this.dadosServicosNaoIntegrados && this.dadosServicosNaoIntegrados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorDeIntegracaoServNaoIntegradosComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.rowSelect(item);
    };
    MonitorDeIntegracaoServNaoIntegradosComponent.prototype.rowSelect = function (item) {
        if (!!item.material) {
            this.service.habilitaVisualizarLogs = true;
        }
        this.visualizarLogs.emit(item);
    };
    MonitorDeIntegracaoServNaoIntegradosComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        item.selecionado = item.selecionado === "S" ? "N" : "S";
        item.flag = !item.flag;
        this.trataDadosSelecionados();
    };
    MonitorDeIntegracaoServNaoIntegradosComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.service.registrosSelecionados.servicosNaoIntegrados.selecionados = [];
        this.dadosServicosNaoIntegrados.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.service.registrosSelecionados.servicosNaoIntegrados.selecionados.push(element.material);
            }
        });
        this.execute.emit();
    };
    MonitorDeIntegracaoServNaoIntegradosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["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_5__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_5__["TableComponent"])
    ], MonitorDeIntegracaoServNaoIntegradosComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorDeIntegracaoServNaoIntegradosComponent.prototype, "execute", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorDeIntegracaoServNaoIntegradosComponent.prototype, "visualizarLogs", void 0);
    MonitorDeIntegracaoServNaoIntegradosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-de-integracao-serv-nao-integrados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-de-integracao-serv-nao-integrados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-de-integracao-serv-nao-integrados.component.scss */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["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"]])
    ], MonitorDeIntegracaoServNaoIntegradosComponent);
    return MonitorDeIntegracaoServNaoIntegradosComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-visualizar-logs-modal/monitor-de-integracao-visualizar-logs-modal.component.ts":
/*!*******************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-visualizar-logs-modal/monitor-de-integracao-visualizar-logs-modal.component.ts ***!
  \*******************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoVisualizarLogsModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoVisualizarLogsModalComponent", function() { return MonitorDeIntegracaoVisualizarLogsModalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../monitor-de-integracao.service */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.service.ts");
/* harmony import */ var _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../monitor-de-integracao.model */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var MonitorDeIntegracaoVisualizarLogsModalComponent = /** @class */ (function () {
    function MonitorDeIntegracaoVisualizarLogsModalComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.data = new _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_5__["MonitorDeIntegracaoLogs"]();
        this.mensagens = [];
        this.hasDados = false;
    }
    MonitorDeIntegracaoVisualizarLogsModalComponent.prototype.ngOnInit = function () {
        this.data = new _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_5__["MonitorDeIntegracaoLogs"]();
    };
    MonitorDeIntegracaoVisualizarLogsModalComponent.prototype.objectSelect = function (dados, abaOrigemDados) {
        var _this = this;
        if (!!dados) {
            if (abaOrigemDados === 'CNI') {
                this.tipoRegOrigem = 'CLIENTE';
                this.regOrigem = dados.destinatarioIdCliente;
            }
            else if (abaOrigemDados === 'SNI') {
                this.tipoRegOrigem = 'SERVICO';
                this.regOrigem = this.extrairNumeroDaString(dados.material);
            }
            else {
                this.tipoRegOrigem = 'NOTA';
                this.regOrigem = dados.regNota;
            }
            var object = {
                tipoRegOrigem: this.tipoRegOrigem,
                regOrigem: this.regOrigem
            };
            this.service.getLogs(object).subscribe(function (resp) {
                if (resp && resp.length > 0) {
                    _this.dados = resp;
                    _this.hasDados = resp && resp.length > 0;
                    app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["ModalUtilsStaticService"].openModal("monitor-de-integracao-visualizar-logs-modal-dialog");
                }
                else {
                    _this.messageService.warning("titles.monitorDeIntegracao", "messages.naoExisteLogParaORegistroSelecionado");
                    return;
                }
            });
        }
        else {
            this.messageService.warning("titles.monitorDeIntegracao", "messages.nenhumRegistroFoiSelecionado");
            return;
        }
    };
    MonitorDeIntegracaoVisualizarLogsModalComponent.prototype.extrairNumeroDaString = function (data) {
        var match = data.match(/\d+/);
        if (match) {
            return parseInt(match[0], 10);
        }
        return 0;
    };
    MonitorDeIntegracaoVisualizarLogsModalComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_4__["MonitorDeIntegracaoService"] }
    ]; };
    MonitorDeIntegracaoVisualizarLogsModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-de-integracao-visualizar-logs-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-de-integracao-visualizar-logs-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-visualizar-logs-modal/monitor-de-integracao-visualizar-logs-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _monitor_de_integracao_service__WEBPACK_IMPORTED_MODULE_4__["MonitorDeIntegracaoService"]])
    ], MonitorDeIntegracaoVisualizarLogsModalComponent);
    return MonitorDeIntegracaoVisualizarLogsModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.constants.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.constants.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoConstants", function() { return MonitorDeIntegracaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorDeIntegracaoConstants = /** @class */ (function () {
    function MonitorDeIntegracaoConstants() {
        this.sisFormularioId = 375007;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.reenviarRegistrosComErro" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.reenviarNotasIntegradas" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.visualizarLogs" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "DIV";
        this.nomeForm = "titles.monitorDeIntegracao";
        this.reportId = "STS0000";
        this.reportTitulo = { "titulo": "Resumo de Movimentações", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'reenviarRegistrosComErro', action: 'reenviarRegistrosComErro', icon: "fa fa-share-square-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: true },
            { title: 'visualizarLogs', action: 'visualizarLogs', icon: "fa fa-file-code-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: true },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return MonitorDeIntegracaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.model.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.model.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: MonitorDeIntegracao, MonitorDeIntegracaoClientesNaoIntegrados, MonitorDeIntegracaoServicosNaoIntegrados, MonitorDeIntegracaoNotasNaoIntegradas, MonitorDeIntegracaoNotasCanceladasNaoIntegradas, MonitorDeIntegracaoNotasFiscaisIntegradas, MonitorDeIntegracaoNotasFiscaisIntegradasFilter, MonitorDeIntegracaoRegistrosSelecionados, MonitorDeIntegracaoLogs */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracao", function() { return MonitorDeIntegracao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoClientesNaoIntegrados", function() { return MonitorDeIntegracaoClientesNaoIntegrados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoServicosNaoIntegrados", function() { return MonitorDeIntegracaoServicosNaoIntegrados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoNotasNaoIntegradas", function() { return MonitorDeIntegracaoNotasNaoIntegradas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoNotasCanceladasNaoIntegradas", function() { return MonitorDeIntegracaoNotasCanceladasNaoIntegradas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoNotasFiscaisIntegradas", function() { return MonitorDeIntegracaoNotasFiscaisIntegradas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoNotasFiscaisIntegradasFilter", function() { return MonitorDeIntegracaoNotasFiscaisIntegradasFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoRegistrosSelecionados", function() { return MonitorDeIntegracaoRegistrosSelecionados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoLogs", function() { return MonitorDeIntegracaoLogs; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

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

var MonitorDeIntegracaoClientesNaoIntegrados = /** @class */ (function () {
    function MonitorDeIntegracaoClientesNaoIntegrados() {
        this.selecionados = [];
    }
    return MonitorDeIntegracaoClientesNaoIntegrados;
}());

var MonitorDeIntegracaoServicosNaoIntegrados = /** @class */ (function () {
    function MonitorDeIntegracaoServicosNaoIntegrados() {
        this.selecionados = [];
        this.selecionado = 'N';
    }
    return MonitorDeIntegracaoServicosNaoIntegrados;
}());

var MonitorDeIntegracaoNotasNaoIntegradas = /** @class */ (function () {
    function MonitorDeIntegracaoNotasNaoIntegradas() {
        this.selecionados = [];
    }
    return MonitorDeIntegracaoNotasNaoIntegradas;
}());

var MonitorDeIntegracaoNotasCanceladasNaoIntegradas = /** @class */ (function () {
    function MonitorDeIntegracaoNotasCanceladasNaoIntegradas() {
        this.selecionados = [];
    }
    return MonitorDeIntegracaoNotasCanceladasNaoIntegradas;
}());

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

var MonitorDeIntegracaoNotasFiscaisIntegradasFilter = /** @class */ (function () {
    function MonitorDeIntegracaoNotasFiscaisIntegradasFilter() {
        this.dataI = this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFirstDayOfMonth();
        this.dataF = new Date();
    }
    return MonitorDeIntegracaoNotasFiscaisIntegradasFilter;
}());

var MonitorDeIntegracaoRegistrosSelecionados = /** @class */ (function () {
    function MonitorDeIntegracaoRegistrosSelecionados() {
        this.clientesNaoIntegrados = new MonitorDeIntegracaoClientesNaoIntegrados();
        this.servicosNaoIntegrados = new MonitorDeIntegracaoServicosNaoIntegrados();
        this.notasNaoIntegradas = new MonitorDeIntegracaoNotasNaoIntegradas();
        this.notasCanceladasNaoIntegradas = new MonitorDeIntegracaoNotasCanceladasNaoIntegradas();
    }
    return MonitorDeIntegracaoRegistrosSelecionados;
}());

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



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.module.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.module.ts ***!
  \******************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoModule", function() { return MonitorDeIntegracaoModule; });
/* 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_de_integracao_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-de-integracao.routing.module */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.routing.module.ts");
/* harmony import */ var _monitor_de_integracao_index_monitor_de_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-de-integracao-index/monitor-de-integracao-index.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-index.component.ts");
/* harmony import */ var _monitor_de_integracao_index_monitor_de_integracao_serv_nao_integrados_monitor_de_integracao_serv_nao_integrados_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-serv-nao-integrados/monitor-de-integracao-serv-nao-integrados.component.ts");
/* harmony import */ var _monitor_de_integracao_index_monitor_de_integracao_notas_nao_integradas_monitor_de_integracao_notas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-nao-integradas/monitor-de-integracao-notas-nao-integradas.component.ts");
/* harmony import */ var _monitor_de_integracao_index_monitor_de_integracao_notas_canceladas_nao_integradas_monitor_de_integracao_notas_canceladas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-canceladas-nao-integradas/monitor-de-integracao-notas-canceladas-nao-integradas.component.ts");
/* harmony import */ var _monitor_de_integracao_index_monitor_de_integracao_notas_fiscais_integradas_monitor_de_integracao_notas_fiscais_integradas_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./monitor-de-integracao-index/monitor-de-integracao-notas-fiscais-integradas/monitor-de-integracao-notas-fiscais-integradas.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-notas-fiscais-integradas/monitor-de-integracao-notas-fiscais-integradas.component.ts");
/* harmony import */ var _monitor_de_integracao_index_monitor_de_integracao_visualizar_logs_modal_monitor_de_integracao_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./monitor-de-integracao-index/monitor-de-integracao-visualizar-logs-modal/monitor-de-integracao-visualizar-logs-modal.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-visualizar-logs-modal/monitor-de-integracao-visualizar-logs-modal.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 MonitorDeIntegracaoModule = /** @class */ (function () {
    function MonitorDeIntegracaoModule() {
    }
    MonitorDeIntegracaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _monitor_de_integracao_routing_module__WEBPACK_IMPORTED_MODULE_2__["MonitorDeIntegracaoRoutingModule"]],
            declarations: [
                _monitor_de_integracao_index_monitor_de_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorDeIntegracaoIndexComponent"],
                _monitor_de_integracao_index_monitor_de_integracao_serv_nao_integrados_monitor_de_integracao_serv_nao_integrados_component__WEBPACK_IMPORTED_MODULE_4__["MonitorDeIntegracaoServNaoIntegradosComponent"],
                _monitor_de_integracao_index_monitor_de_integracao_notas_nao_integradas_monitor_de_integracao_notas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_5__["MonitorDeIntegracaoNotasNaoIntegradasComponent"],
                _monitor_de_integracao_index_monitor_de_integracao_notas_canceladas_nao_integradas_monitor_de_integracao_notas_canceladas_nao_integradas_component__WEBPACK_IMPORTED_MODULE_6__["MonitorDeIntegracaoNotasCanceladasNaoIntegradasComponent"],
                _monitor_de_integracao_index_monitor_de_integracao_notas_fiscais_integradas_monitor_de_integracao_notas_fiscais_integradas_component__WEBPACK_IMPORTED_MODULE_7__["MonitorDeIntegracaoNotasFiscaisIntegradasComponent"],
                _monitor_de_integracao_index_monitor_de_integracao_visualizar_logs_modal_monitor_de_integracao_visualizar_logs_modal_component__WEBPACK_IMPORTED_MODULE_8__["MonitorDeIntegracaoVisualizarLogsModalComponent"]
            ]
        })
    ], MonitorDeIntegracaoModule);
    return MonitorDeIntegracaoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.routing.module.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.routing.module.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoRoutingModule", function() { return MonitorDeIntegracaoRoutingModule; });
/* 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_de_integracao_index_monitor_de_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-de-integracao-index/monitor-de-integracao-index.component */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao-index/monitor-de-integracao-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: "",
        component: _monitor_de_integracao_index_monitor_de_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorDeIntegracaoIndexComponent"],
        data: { breadcrumb: "monitorDeIntegracao", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var MonitorDeIntegracaoRoutingModule = /** @class */ (function () {
    function MonitorDeIntegracaoRoutingModule() {
    }
    MonitorDeIntegracaoRoutingModule = __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"]],
        })
    ], MonitorDeIntegracaoRoutingModule);
    return MonitorDeIntegracaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.service.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.service.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: MonitorDeIntegracaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorDeIntegracaoService", function() { return MonitorDeIntegracaoService; });
/* 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");
/* harmony import */ var _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./monitor-de-integracao.model */ "./src/app/pages/especificos/santos-brasil/movimentos/monitor-de-integracao/monitor-de-integracao.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var MonitorDeIntegracaoService = /** @class */ (function (_super) {
    __extends(MonitorDeIntegracaoService, _super);
    function MonitorDeIntegracaoService(http, loginService) {
        var _this = _super.call(this, http, "santosBrasil/monitorDeIntegracao") || this;
        _this.http = http;
        _this.loginService = loginService;
        _this.notasFiscaisIntegradasFiltro = new _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_7__["MonitorDeIntegracaoNotasFiscaisIntegradasFilter"]();
        _this.registrosSelecionados = new _monitor_de_integracao_model__WEBPACK_IMPORTED_MODULE_7__["MonitorDeIntegracaoRegistrosSelecionados"]();
        _this.habilitaVisualizarLogs = false;
        return _this;
    }
    MonitorDeIntegracaoService.prototype.getClientesNaoIntegrados = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/getClientesNaoIntegrados")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.prototype.getServicosNaoIntegrados = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/getServicosNaoIntegrados")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.prototype.getNotasNaoIntegradas = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/getNotasNaoIntegradas")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.prototype.getNotasCanceladasNaoIntegradas = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/getNotasCanceladasNaoIntegradas")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.prototype.getNotasFiscaisIntegradas = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/getNotasFiscaisIntegradas", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.prototype.reenviarEmissaoDosSelecionados = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/reenviarEmissao", { regNotas: filter })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.prototype.reenviarCancelamentoDosSelecionados = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/reenviarCancelamento", { regNotas: filter })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.prototype.reenviarRegistrosComErro = function (dados) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/reenviarRegistrosComErro", dados)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.prototype.getLogs = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/santosBrasil/monitorDeIntegracao/getLogs", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorDeIntegracaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] }
    ]; };
    MonitorDeIntegracaoService = __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"]])
    ], MonitorDeIntegracaoService);
    return MonitorDeIntegracaoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_3__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-santos-brasil-movimentos-monitor-de-integracao-monitor-de-integracao-module.js.map