(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-obrigacoes-monitor-entrega-carga-monitor-entrega-carga-module"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-entrega-carga-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeEntregaCarga' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                            }}</label>\n                                        <app-data-h-m-s id=\"periodoDe\" name=\"periodoDe\" (executa)=\"validaData()\"\n                                            [(ngModel)]=\"service.filtro.dtIni\" autofocus class=\"dataHora\"\n                                            required=\"true\">\n                                        </app-data-h-m-s>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data-h-m-s id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dtFim\"\n                                            (executa)=\"validaData()\" class=\"dataHora\" required=\"true\">\n                                        </app-data-h-m-s>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group\">\n                                <div class=\"custom-control custom-radio custom-control-inline\">\n                                    <input class=\"custom-control-input radio-success\" id=\"radioDefault\"\n                                        name=\"radioDefault\" [(ngModel)]=\"service.filtro.tipoPeriodo\" type=\"radio\"\n                                        value=\"E\">\n                                    <label class=\"custom-control-label\" for=\"radioDefault\">{{ 'labels.encerramento' |\n                                        translate }}\n                                    </label>\n                                </div>\n                                <div class=\"custom-control custom-radio custom-control-inline\">\n                                    <input class=\"custom-control-input radio-success\" id=\"radioPrimary\"\n                                        name=\"radioPrimary\" [(ngModel)]=\"service.filtro.tipoPeriodo\" type=\"radio\"\n                                        value=\"P\">\n                                    <label class=\"custom-control-label\" for=\"radioPrimary\">{{ 'labels.envio' | translate\n                                        }}\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"due\">{{ 'labels.due' | translate }}</label>\n                                <input type=\"text\" class=\"form-control-sm form-control text-right\" name=\"due\" id=\"due\"\n                                    maxlenght=\"25\" [(ngModel)]=\"service.filtro.numeroDue\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\n                                    [(ngModel)]=\"service.filtro.destinatarioIdCliente\" showInscricao=\"false\"\n                                    showCgcCpf=\"false\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"navio\" name=\"navio\" label=\"navio\"\n                                    modalTitle=\"pesquisaDeNavio\" [(ngModel)]=\"service.filtro.destinatarioIdNavio\"\n                                    showCgcCpf=\"false\" showInscricao=\"false\" tipoDestinatario=\"N\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-erros-cct id=\"erroIntegracao\" name=\"erroIntegracao\"\n                                    [label]=\"'erroIntegracao'\" [(ngModel)]=\"service.filtro.codErro\"\n                                    [valueDescription]=\"service.filtro?.errosCCT?.descrErro\"\n                                    (outSelected)=\"trataErrosCCT($event)\">\n                                </app-pesquisa-erros-cct>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"qtdeDeRegistros\">{{'labels.qtdeDeRegistros' | translate}}</label>\n                                <select id=\"qtdeDeRegistros\" name=\"qtdeDeRegistros\"\n                                    [(ngModel)]=\"service.filtro.qtdDeRegistros\" class=\"form-control form-control-sm\">\n                                    <option value=\"0\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"50\">50</option>\n                                    <option value=\"100\">100</option>\n                                    <option value=\"200\">200</option>\n                                    <option value=\"500\">500</option>\n                                    <option value=\"1000\">1000</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <!-- <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"qtdeDeRegistros\">{{'labels.qtdeDeRegistros' | translate}}</label>\n                                <select id=\"qtdeDeRegistros\" name=\"qtdeDeRegistros\"\n                                    [(ngModel)]=\"service.filtro.qtdeDeRegistros\" class=\"form-control form-control-sm\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"50\">50</option>\n                                    <option value=\"100\">100</option>\n                                    <option value=\"200\">200</option>\n                                    <option value=\"500\">500</option>\n                                    <option value=\"1000\">1000</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div> -->\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"data.regOrigem\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"clearfix\">\r\n            <ul class=\"nav nav-tabs\">\r\n                <li class=\"nav-item\">\r\n                    <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{ 'labels.dados' | translate }}</a>\r\n                </li>\r\n                <li class=\"nav-item\">\r\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#xe\">{{ 'labels.xmlEnvio' | translate }}</a>\r\n                </li>\r\n                <li class=\"nav-item\">\r\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#xr\">{{ 'labels.xmlRetorno' | translate }}</a>\r\n                </li>\r\n            </ul>\r\n        </div>\r\n        <div class=\"tab-content top\">\r\n            <div class=\"tab-pane active show\" id=\"da\">\r\n                <div class=\"section-comand-bar\">\r\n                    <app-table>\r\n                        <div class=\"table-responsive\" style=\"overflow: auto;\">\r\n                            <table id=\"dtConsulta\"\r\n                                class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                <thead>\r\n                                    <tr>\r\n                                        <th>{{ 'labels.sel' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.dtIntegracao' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.idEnvio' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.numDUE' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.quantidade' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.agencia' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.navio' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.nomeNavio' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.cliente' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.nomeCliente' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.erroIntegracao' | translate}}</th>\r\n                                    </tr>\r\n                                </thead>\r\n                                <tbody>\r\n                                    <tr *ngFor=\"let t of dados; index as i\" (click)=\"_dbClick(t, i)\"\r\n                                        [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\r\n                                        <td>\r\n                                            <label class=\"chk\">\r\n                                                <input type=\"checkbox\" id=\"selecao\" name=\"selecao\" value=\"checked\"\r\n                                                    (ngModelChange)=\"t.selecao = $event ? 'S' : 'N'\"\r\n                                                    [ngModel]=\"t.selecao ==='S'\"\r\n                                                    style=\"margin-left:auto; margin-right:auto;\" disabled>\r\n                                                <span [ngClass]=\"{'red':t.flag == true && t.selecao == 'R' ? true : false,\r\n                                        'green':t.flag == true && t.selecao == 'S' ? true : false,\r\n                                        'blue':t.flag == true && t.selecao == 'A' ? true : false,\r\n                                        'ligthgree':t.flag == true && t.selecao == 'X' ? true : false}\"></span>\r\n                                            </label>\r\n                                        </td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.dtIntegracao | date: 'dd/MM/yyyy HH:mm:ss'\r\n                                            }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.regOrigem }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.numeroDue }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.quantidade| formatCurrency: 0  }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.agencia }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.navio }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.nomeNavio }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.codDest }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.nomeCliente }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.erroIntegracao }}</td>\r\n                                    </tr>\r\n                                    <tr *ngIf=\"!hasDados\">\r\n                                        <th colspan=\"15\" 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                    </app-table>\r\n                    <div class=\"legend\">\r\n                        <div class=\"item\">\r\n                            <div class=\"circle green\"></div>\r\n                            <span>{{ 'labels.enviado' | translate }}</span>\r\n                        </div>\r\n                        <div class=\"item\">\r\n                            <div class=\"circle red\"></div>\r\n                            <span>{{ 'labels.enviadoComErro' | translate }}</span>\r\n                        </div>\r\n                        <div class=\"item\">\r\n                            <div class=\"circle blue\"></div>\r\n                            <span>{{ 'labels.aEnviar' | translate }}</span>\r\n                        </div>\r\n                        <div class=\"item\">\r\n                            <div class=\"circle ligthgree\"></div>\r\n                            <span>{{ 'labels.jaRegistradaEntrega' | translate }}</span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div>\r\n                    <button class=\"btn btn-success mr-2\" [disabled]=\"!hasDados || filterIntegradosMarcado\"\r\n                        (click)=\"selecionarTodos()\" type=\"button\">\r\n                        {{ 'buttons.todos' | translate }}\r\n                    </button>\r\n                    <button class=\"btn btn-success mr-2\" [disabled]=\"!hasDados || !hasSelecionados\"\r\n                        (click)=\"processar()\" type=\"button\">{{\r\n                        'buttons.processar' | translate }}\r\n                    </button>\r\n                </div>\r\n            </div>\r\n            <div class=\"tab-pane\" id=\"xe\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                        <div class=\"form-group\">\r\n                            <textarea id=\"xmlIntegracaoEnvio\" name=\"xmlIntegracaoEnvio\" class=\"form-control\" autofocus\r\n                                rows=\"20\">{{ getXml(data.xmlIntegracaoEnvio) }}</textarea>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\" tab-pane\" id=\"xr\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                        <div class=\"form-group\">\r\n                            <textarea id=\"xmlIntegracaoRetorno\" name=\"xmlIntegracaoRetorno\" class=\"form-control\"\r\n                                autofocus rows=\"20\">{{ getXml(data.xmlIntegracaoRetorno) }}</textarea>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-propriedades></app-propriedades>\r\n<app-monitor-entrega-carga-filter (filtrar)=\"executaFiltro()\"></app-monitor-entrega-carga-filter>\r\n<app-monitor-entrega-carga-process (filtrar)=\"executaFiltro()\" [filter]=\"filtro\"\r\n    [data]=\"service.dados\"></app-monitor-entrega-carga-process>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-process/monitor-entrega-carga-process.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-process/monitor-entrega-carga-process.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-entrega-carga-process-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-md\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.processarEntregaCarga' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit()\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group\">\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input class=\"custom-control-input radio-success\" id=\"_radioDefault\"\r\n                                        name=\"_radioDefault\" [(ngModel)]=\"filter.tipoProcess\" type=\"radio\" value=\"M\">\r\n                                    <label class=\"custom-control-label\" for=\"_radioDefault\">{{\r\n                                        'labels.marcarParaProcessamento' | translate }}\r\n                                    </label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group\">\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input class=\"custom-control-input radio-success\" id=\"_radioPrimary\"\r\n                                        name=\"_radioPrimary\" [(ngModel)]=\"filter.tipoProcess\" type=\"radio\" value=\"P\">\r\n                                    <label class=\"custom-control-label\" for=\"_radioPrimary\">{{ 'labels.processarDue' |\r\n                                        translate }}\r\n                                    </label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSubmit()\">\r\n                        {{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                        {{ 'buttons.cancelar' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-filter/monitor-entrega-carga-filter.component.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-filter/monitor-entrega-carga-filter.component.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: MonitorEntregaCargaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaFilterComponent", function() { return MonitorEntregaCargaFilterComponent; });
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _monitor_entrega_carga_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../monitor-entrega-carga.model */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.model.ts");
/* harmony import */ var _monitor_entrega_carga_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../monitor-entrega-carga.constants */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.constants.ts");
/* harmony import */ var _monitor_entrega_carga_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../monitor-entrega-carga.service */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};









var MonitorEntregaCargaFilterComponent = /** @class */ (function () {
    function MonitorEntregaCargaFilterComponent(service, messageService) {
        this.service = service;
        this.messageService = messageService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        this.constantes = new _monitor_entrega_carga_constants__WEBPACK_IMPORTED_MODULE_5__["MonitorEntregaCargaConstants"]();
    }
    MonitorEntregaCargaFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _monitor_entrega_carga_model__WEBPACK_IMPORTED_MODULE_4__["MonitorEntregaCargaFilter"]();
        }
    };
    MonitorEntregaCargaFilterComponent.prototype.onSubmit = function (form) {
        if (!this.validaData()) {
            return;
        }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit(this.filtro);
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].closeModal("monitor-entrega-carga-filter-dialog");
    };
    MonitorEntregaCargaFilterComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dtFim, this.service.filtro.dtIni, ['H', 'M'])) {
            this.messageService.warning("titles.monitorEntregaCarga", "messages.periodoDeMenorQueAte");
            return false;
        }
        return true;
    };
    MonitorEntregaCargaFilterComponent.prototype.trataErrosCCT = function (errosCCT) {
        this.service.filtro.errosCCT = errosCCT;
    };
    MonitorEntregaCargaFilterComponent.ctorParameters = function () { return [
        { type: _monitor_entrega_carga_service__WEBPACK_IMPORTED_MODULE_6__["MonitorEntregaCargaService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorEntregaCargaFilterComponent.prototype, "filtrar", void 0);
    MonitorEntregaCargaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-monitor-entrega-carga-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-entrega-carga-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-filter/monitor-entrega-carga-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_monitor_entrega_carga_service__WEBPACK_IMPORTED_MODULE_6__["MonitorEntregaCargaService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"]])
    ], MonitorEntregaCargaFilterComponent);
    return MonitorEntregaCargaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-index/monitor-entrega-carga-index.component.scss":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-index/monitor-entrega-carga-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: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\nspan.green {\n  background-color: #378D3B;\n}\n\nspan.blue {\n  background-color: #0000CC;\n}\n\nspan.ligthgree {\n  background-color: #37b400;\n}\n\ndiv.legend {\n  display: flex;\n  flex-direction: row;\n  margin: 1%;\n}\n\ndiv.legend div.item {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  flex: 1;\n}\n\ndiv.legend div.item div.circle {\n  width: 15px;\n  height: 15px;\n  border-radius: 100%;\n  border: 1px solid #ccc;\n  margin-right: 2%;\n}\n\ndiv.legend div.item div.circle.red {\n  background-color: #c03;\n}\n\ndiv.legend div.item div.circle.green {\n  background-color: #378D3B;\n}\n\ndiv.legend div.item div.circle.blue {\n  background-color: #0000CC;\n}\n\ndiv.legend div.item div.circle.ligthgree {\n  background-color: #37b400;\n}\n\ndiv.legend div.item span {\n  /**/\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-index/monitor-entrega-carga-index.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-index/monitor-entrega-carga-index.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: MonitorEntregaCargaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaIndexComponent", function() { return MonitorEntregaCargaIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_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_report_report_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_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_message_message_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _monitor_entrega_carga_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../monitor-entrega-carga.constants */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.constants.ts");
/* harmony import */ var _monitor_entrega_carga_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../monitor-entrega-carga.model */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.model.ts");
/* harmony import */ var _monitor_entrega_carga_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../monitor-entrega-carga.service */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


















var MonitorEntregaCargaIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorEntregaCargaIndexComponent, _super);
    function MonitorEntregaCargaIndexComponent(router, funcoesService, configuracao, messageService, permissoesUtils, service, loginService, reportService, excelService) {
        var _this = _super.call(this, new _monitor_entrega_carga_constants__WEBPACK_IMPORTED_MODULE_14__["MonitorEntregaCargaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.funcoesService = funcoesService;
        _this.configuracao = configuracao;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.reportService = reportService;
        _this.excelService = excelService;
        _this.data = new _monitor_entrega_carga_model__WEBPACK_IMPORTED_MODULE_15__["MonitorEntregaCargaDto"]();
        _this.filtro = new _monitor_entrega_carga_model__WEBPACK_IMPORTED_MODULE_15__["MonitorEntregaCargaFilter"]();
        _this.constantes = new _monitor_entrega_carga_constants__WEBPACK_IMPORTED_MODULE_14__["MonitorEntregaCargaConstants"]();
        _this.hasDados = false;
        _this.geraDados = false;
        _this.dbClick = false;
        _this.mensagens = [];
        _this.isValid = true;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            _this.cctAtivo = _this.configuracao.lerConfig("OBR", "CCTAtivo") === "S" ? true : false;
            _this.cctCodigoRA = _this.configuracao.lerConfig("OBR", "CCTCodigoRA");
            _this.cctUrlProducao = _this.configuracao.lerConfig("OBR", "CCTUrlProducao");
            _this.cctUrlHomologa = _this.configuracao.lerConfig("OBR", "CCTUrlHomologa");
            _this.cctAmbiente = _this.configuracao.lerConfig("OBR", "CCTAmbiente");
            _this.cctHorasNF = _this.configuracao.lerConfig("OBR", "CCTHorasNF");
            _this.cctCert = _this.configuracao.lerConfig("OBR", "CCTCert");
            _this.cctUrlWsCorp = _this.configuracao.lerConfig("OBR", "CCTUrlWsCorp");
            _this.cctCnpjResp = _this.configuracao.lerConfig("OBR", "CCTCnpjResp");
            _this.cctEnvNFFerroPerc = _this.configuracao.lerConfig("OBR", "CCTEnvNFFerroPerc");
            _this.cctNFFerroPerc = _this.configuracao.lerConfig("OBR", "CCTNFFerroPerc");
        };
        _this.refresh = function () {
            _this.executaFiltro();
        };
        _this._refresh = function () {
            var object = {
                dtIni: _this.service.filtro.dtIni,
                dtFim: _this.service.filtro.dtFim,
                numeroDue: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(_this.service.filtro.numeroDue),
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdCliente),
                destinatarioIdNavio: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdNavio),
                tipoPeriodo: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(_this.service.filtro.tipoPeriodo),
                codErro: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(_this.service.filtro.codErro),
                qtdDeRegistros: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.service.filtro.qtdDeRegistros),
                geraDados: _this.geraDados
            };
            _this.service.getByFiltro(object).subscribe(function (resp) {
                _this.service.dados = resp;
                _this.service.dados.forEach(function (val) {
                    val.flag = true;
                });
                _this.hasDados = resp && resp.length > 0;
            });
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () {
                if (!_this.printParams())
                    return;
                _this.reportService.export(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                    var headerDictionary = {
                        "regOrigem": "idEnvio",
                        "numeroDue": "numDUE",
                        "dtLiberacao": "dataHoraLiberacao"
                    };
                    var options = {
                        headerJsonKeys: true,
                        headerDictionary: headerDictionary
                    };
                    resp.forEach(function (r) {
                        delete r.xmlIntegracaoEnvio;
                        delete r.xmlIntegracaoRetorno;
                        delete r.selecao;
                        delete r.quantidade;
                        delete r.flagIntegracao;
                    });
                    _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "monitorEntregaCarga"), options);
                });
            });
        };
        return _this;
    }
    MonitorEntregaCargaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        var base = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!base.loginService.isTokenExpired()) {
                _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ModalUtilsStaticService"].openModal("monitor-entrega-carga-filter-dialog");
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'export', func: function () { return _this.export; } }
        ]);
    };
    Object.defineProperty(MonitorEntregaCargaIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.service.dados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            var dados = this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.dtIntegracao, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].exist(v.regOrigem, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.numeroDue, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].exist(v.navio, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.nomeNavio, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].exist(v.codDest, _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.erroIntegracao, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    MonitorEntregaCargaIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ModalUtilsStaticService"].openModal("monitor-entrega-carga-filter-dialog");
    };
    MonitorEntregaCargaIndexComponent.prototype.executaFiltro = function () {
        this.geraDados = true;
        this._refresh();
    };
    MonitorEntregaCargaIndexComponent.prototype.rowSelect = function (item) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (item.selecao === "S") {
                _this.messageService.confirm("titles.monitorEntregaCarga", "messages.registroSelecionadoJaEnviadoDesejaReprocessar", null, function () {
                    _this.entregaSelecionar(item.regOrigem, item.selecao);
                });
            }
            else {
                _this.entregaSelecionar(item.regOrigem, item.selecao);
            }
        });
    };
    MonitorEntregaCargaIndexComponent.prototype.entregaSelecionar = function (pRegOrigem, pSelecao) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.entregaSelecionar({ regEnvio: pRegOrigem }).toPromise()];
                    case 1:
                        _a.sent();
                        return [4 /*yield*/, this.service.setDueConsultaErro({ regEnvio: pRegOrigem, selecao: pSelecao === "A" ? "N" : "A" }).toPromise()];
                    case 2:
                        _a.sent();
                        this.geraDados = false;
                        this._refresh();
                        return [2 /*return*/];
                }
            });
        });
    };
    MonitorEntregaCargaIndexComponent.prototype._dbClick = function (item, index) {
        var _this = this;
        this.currentIndex = index;
        this.data = item;
        if (this.dbClick === true) {
            item.color = '#fff';
            this.rowSelect(item);
        }
        if (this.dbClick === false) {
            this.dbClick = true;
        }
        setTimeout(function () {
            _this.dbClick = false;
        }, 250);
    };
    MonitorEntregaCargaIndexComponent.prototype.processar = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
                    var dataAux;
                    return __generator(this, function (_a) {
                        dataAux = [];
                        dataAux = this.service.dados.filter(function (d) { return d.selecao === "A"; });
                        if (dataAux.length > 0) {
                            _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ModalUtilsStaticService"].openModal("monitor-entrega-carga-process-dialog");
                        }
                        else {
                            this.messageService.warning("titles.monitorEntregaCarga", "messages.selecioneUmRegistro");
                        }
                        return [2 /*return*/];
                    });
                }); }, function () { return _this.permissoesUtils.back(); }, true);
                return [2 /*return*/];
            });
        });
    };
    MonitorEntregaCargaIndexComponent.prototype.selecionarTodos = function () {
        var _this = this;
        var opcao = this.service.dados[0].selecao === 'A' ? 'N' : 'A';
        this.service.selecionarTodos({ opcao: opcao }).subscribe(function (_) {
            _this.geraDados = false;
            _this._refresh();
        });
    };
    MonitorEntregaCargaIndexComponent.prototype.getXml = function (xml) {
        if (!xml || (xml && xml.trim() === "")) {
            return;
        }
        return this.funcoesService.stringUtils.formatacaoXml(xml);
    };
    MonitorEntregaCargaIndexComponent.prototype.printParams = function () {
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dtIni: this.service.filtro.dtIni,
            dtFim: this.service.filtro.dtFim,
            numeroDue: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.service.filtro.numeroDue),
            destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.service.filtro.destinatarioIdCliente),
            destinatarioIdNavio: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.service.filtro.destinatarioIdNavio),
            tipoPeriodo: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.service.filtro.tipoPeriodo),
            codErro: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.service.filtro.codErro),
            qtdDeRegistros: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.service.filtro.qtdDeRegistros),
            geraDados: this.geraDados,
            integrados: this.service.filtro.integrados
        };
        return true;
    };
    Object.defineProperty(MonitorEntregaCargaIndexComponent.prototype, "filterIntegradosMarcado", {
        get: function () {
            if (!this.service.filtro)
                return false;
            return this.service.filtro.integrados === "S";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorEntregaCargaIndexComponent.prototype, "hasSelecionados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ArrayUtilsStaticService"].any(this.service.dados.filter(function (obj) { return obj.selecao === "A"; }));
        },
        enumerable: true,
        configurable: true
    });
    MonitorEntregaCargaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_13__["ConfiguracaoFacade"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: _monitor_entrega_carga_service__WEBPACK_IMPORTED_MODULE_16__["MonitorEntregaCargaService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_5__["ReportService"] },
        { type: app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_7__["ExcelService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__["TableComponent"])
    ], MonitorEntregaCargaIndexComponent.prototype, "table", void 0);
    MonitorEntregaCargaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-entrega-carga-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-entrega-carga-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-index/monitor-entrega-carga-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-entrega-carga-index.component.scss */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-index/monitor-entrega-carga-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_13__["ConfiguracaoFacade"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_12__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            _monitor_entrega_carga_service__WEBPACK_IMPORTED_MODULE_16__["MonitorEntregaCargaService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_5__["ReportService"],
            app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_7__["ExcelService"]])
    ], MonitorEntregaCargaIndexComponent);
    return MonitorEntregaCargaIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-process/monitor-entrega-carga-process.component.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-process/monitor-entrega-carga-process.component.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: MonitorEntregaCargaProcessComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaProcessComponent", function() { return MonitorEntregaCargaProcessComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _monitor_entrega_carga_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../monitor-entrega-carga.model */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.model.ts");
/* harmony import */ var _monitor_entrega_carga_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../monitor-entrega-carga.constants */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.constants.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_entrega_carga_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../monitor-entrega-carga.service */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var MonitorEntregaCargaProcessComponent = /** @class */ (function () {
    function MonitorEntregaCargaProcessComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.constantes = new _monitor_entrega_carga_constants__WEBPACK_IMPORTED_MODULE_4__["MonitorEntregaCargaConstants"]();
    }
    MonitorEntregaCargaProcessComponent.prototype.ngOnInit = function () {
    };
    MonitorEntregaCargaProcessComponent.prototype.onSubmit = function () {
        var _this = this;
        if (this.filter.tipoProcess === "M") {
            this.messageService.confirm("titles.monitorEntregaCarga", "messages.desejaMarcarReprocessRegsSelecionados", null, function () {
                _this.service.dueEntregaErroProcessar().subscribe(function (resp) {
                    if (resp && resp.erros.length > 0) {
                        _this.message = resp.erros[0].message;
                    }
                    if (!resp.isValid) {
                        _this.messageService.warning("titles.monitorEntregaCarga", _this.message);
                    }
                    else {
                        _this.messageService.success("Sucesso", "messages.registrosMarcadosComSucesso");
                        _this.filtrar.emit();
                    }
                });
            });
        }
        else {
            if (this.filter.tipoProcess === "P") {
                this.messageService.confirm("titles.monitorEntregaCarga", "messages.reprocessRegsSelecionados", null, function () {
                    /* percorrer todos registros com o campo SELECAO = 'A' */
                    _this.dataAux = [];
                    _this.data.forEach(function (obj) {
                        if (obj.selecao === "A") {
                            _this.dataAux.push(obj);
                        }
                    });
                    _this.entregaReprocessar(_this.dataAux);
                });
            }
        }
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ModalUtilsStaticService"].closeModal("monitor-entrega-carga-process-dialog");
    };
    MonitorEntregaCargaProcessComponent.prototype.entregaReprocessar = function (object) {
        return __awaiter(this, void 0, void 0, function () {
            var result;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.entregaReprocessar(object).toPromise()];
                    case 1:
                        result = _a.sent();
                        if (result && result.erros.length > 0) {
                            this.message = result.erros[0].message;
                        }
                        if (!result.isValid) {
                            this.messageService.warning("titles.monitorEntregaCarga", this.message);
                        }
                        else {
                            this.messageService.success("Sucesso", "messages.registrosReprocessadosComSucesso");
                            this.filtrar.emit();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    MonitorEntregaCargaProcessComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _monitor_entrega_carga_service__WEBPACK_IMPORTED_MODULE_6__["MonitorEntregaCargaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _monitor_entrega_carga_model__WEBPACK_IMPORTED_MODULE_3__["MonitorEntregaCargaFilter"])
    ], MonitorEntregaCargaProcessComponent.prototype, "filter", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], MonitorEntregaCargaProcessComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorEntregaCargaProcessComponent.prototype, "filtrar", void 0);
    MonitorEntregaCargaProcessComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-entrega-carga-process",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-entrega-carga-process.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-process/monitor-entrega-carga-process.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _monitor_entrega_carga_service__WEBPACK_IMPORTED_MODULE_6__["MonitorEntregaCargaService"]])
    ], MonitorEntregaCargaProcessComponent);
    return MonitorEntregaCargaProcessComponent;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.constants.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.constants.ts ***!
  \*******************************************************************************************/
/*! exports provided: MonitorEntregaCargaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaConstants", function() { return MonitorEntregaCargaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorEntregaCargaConstants = /** @class */ (function () {
    function MonitorEntregaCargaConstants() {
        this.sisFormularioId = 35080;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.processar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.reprocessar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.exportExcel" }
        ];
        this.nomeForm = "titles.monitorEntregaCarga";
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'exportExcel', action: 'export', icon: "fa fa-file-excel-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            {
                'sistema': 'OBR', 'parametros': ["CCTAtivo",
                    "CCTCodigoRA",
                    "CCTUrlProducao",
                    "CCTUrlHomologa",
                    "CCTAmbiente",
                    "CCTHorasNF",
                    "CCTCert",
                    "CCTUrlWsCorp",
                    "CCTCnpjResp",
                    "CCTEnvNFFerroPerc",
                    "CCTNFFerroPerc"]
            },
        ];
    }
    return MonitorEntregaCargaConstants;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.model.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.model.ts ***!
  \***************************************************************************************/
/*! exports provided: MonitorEntregaCargaFilter, MonitorEntregaCargaDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaFilter", function() { return MonitorEntregaCargaFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaDto", function() { return MonitorEntregaCargaDto; });
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var MonitorEntregaCargaFilter = /** @class */ (function () {
    function MonitorEntregaCargaFilter() {
        this.dtIni = _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getStartDay();
        this.dtFim = _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
        this.numeroDue = "";
        this.destinatarioIdCliente = 0;
        this.destinatarioIdNavio = 0;
        this.tipoPeriodo = "P";
        this.codErro = "";
        this.qtdDeRegistros = 1000;
        this.geraDados = false;
        this.tipoProcess = "M";
        this.integrados = "N";
    }
    return MonitorEntregaCargaFilter;
}());

var MonitorEntregaCargaDto = /** @class */ (function (_super) {
    __extends(MonitorEntregaCargaDto, _super);
    function MonitorEntregaCargaDto() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return MonitorEntregaCargaDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.module.ts ***!
  \****************************************************************************************/
/*! exports provided: MonitorEntregaCargaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaModule", function() { return MonitorEntregaCargaModule; });
/* 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_entrega_carga_index_monitor_entrega_carga_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-entrega-carga-index/monitor-entrega-carga-index.component */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-index/monitor-entrega-carga-index.component.ts");
/* harmony import */ var _monitor_entrega_carga_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-entrega-carga.routing.module */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.routing.module.ts");
/* harmony import */ var _monitor_entrega_carga_filter_monitor_entrega_carga_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-entrega-carga-filter/monitor-entrega-carga-filter.component */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-filter/monitor-entrega-carga-filter.component.ts");
/* harmony import */ var _monitor_entrega_carga_process_monitor_entrega_carga_process_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitor-entrega-carga-process/monitor-entrega-carga-process.component */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-process/monitor-entrega-carga-process.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 MonitorEntregaCargaModule = /** @class */ (function () {
    function MonitorEntregaCargaModule() {
    }
    MonitorEntregaCargaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _monitor_entrega_carga_routing_module__WEBPACK_IMPORTED_MODULE_3__["MonitorEntregaCargaRoutingModule"]],
            declarations: [_monitor_entrega_carga_index_monitor_entrega_carga_index_component__WEBPACK_IMPORTED_MODULE_2__["MonitorEntregaCargaIndexComponent"], _monitor_entrega_carga_filter_monitor_entrega_carga_filter_component__WEBPACK_IMPORTED_MODULE_4__["MonitorEntregaCargaFilterComponent"], _monitor_entrega_carga_process_monitor_entrega_carga_process_component__WEBPACK_IMPORTED_MODULE_5__["MonitorEntregaCargaProcessComponent"]]
        })
    ], MonitorEntregaCargaModule);
    return MonitorEntregaCargaModule;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.routing.module.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.routing.module.ts ***!
  \************************************************************************************************/
/*! exports provided: MonitorEntregaCargaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaRoutingModule", function() { return MonitorEntregaCargaRoutingModule; });
/* 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 _monitor_entrega_carga_index_monitor_entrega_carga_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-entrega-carga-index/monitor-entrega-carga-index.component */ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga-index/monitor-entrega-carga-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_entrega_carga_index_monitor_entrega_carga_index_component__WEBPACK_IMPORTED_MODULE_2__["MonitorEntregaCargaIndexComponent"],
        data: { breadcrumb: "monitorEntregaCarga" }
    }
];
var MonitorEntregaCargaRoutingModule = /** @class */ (function () {
    function MonitorEntregaCargaRoutingModule() {
    }
    MonitorEntregaCargaRoutingModule = __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"]]
        })
    ], MonitorEntregaCargaRoutingModule);
    return MonitorEntregaCargaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.service.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-entrega-carga/monitor-entrega-carga.service.ts ***!
  \*****************************************************************************************/
/*! exports provided: MonitorEntregaCargaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorEntregaCargaService", function() { return MonitorEntregaCargaService; });
/* 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 _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 MonitorEntregaCargaService = /** @class */ (function () {
    function MonitorEntregaCargaService(http) {
        this.http = http;
    }
    MonitorEntregaCargaService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/monitorEntregaCarga/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    MonitorEntregaCargaService.prototype.selecionarTodos = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/monitorEntregaCarga/selecionarTodos", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    MonitorEntregaCargaService.prototype.setDueConsultaErro = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/monitorEntregaCarga/setDueConsultaErro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    MonitorEntregaCargaService.prototype.entregaSelecionar = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/monitorEntregaCarga/entregaSelecionar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    MonitorEntregaCargaService.prototype.dueEntregaErroProcessar = function () {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/monitorEntregaCarga/dueEntregaErroProcessar", null)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    MonitorEntregaCargaService.prototype.entregaReprocessar = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/monitorEntregaCarga/entregaReprocessar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    MonitorEntregaCargaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    MonitorEntregaCargaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], MonitorEntregaCargaService);
    return MonitorEntregaCargaService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-obrigacoes-monitor-entrega-carga-monitor-entrega-carga-module.js.map