(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-veiculo-integracao-appa-integracao-appa-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/integracao-appa/integracao-appa-filter/integracao-appa-filter.component.html":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/integracao-appa/integracao-appa-filter/integracao-appa-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=\"integracao-appa-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.integracaoAppa' | 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-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"periodoDe\" class=\"required\">\n                                    {{\"labels.periodoDe\" | translate }}\n                                </label>\n                                <app-data-h-m-s id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                    [(ngModel)]=\"service.filtro.dataInicial\" (executa)=\"validaDatas()\">\n                                </app-data-h-m-s>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ate\" class=\"required\">\n                                    {{\"labels.ate\" | translate}}\n                                </label>\n                                <app-data-h-m-s id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filtro.dataFinal\"\n                                    (executa)=\"validaDatas()\">\n                                </app-data-h-m-s>\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=\"situacao\">{{'labels.situacao' | translate}}</label>\n                                <select id=\"situacao\" name=\"situacao\" [(ngModel)]=\"service.filtro.sitReg\"\n                                    class=\"form-control form-control-sm\">\n                                    <option value=\"T\">{{ 'labels.todos' | translate }}</option>\n                                    <option value=\"A\">{{'labels.integradoComSucesso'|translate}}</option>\n                                    <option value=\"N\">{{'labels.erroDeIntegracao'|translate}}</option>\n                                    <option value=\"E\">{{'labels.erroDeProcessamento'|translate}}</option>\n                                </select>\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=\"placa\">{{ 'labels.placa' | translate }}</label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" name=\"placa\" id=\"placa\"\n                                    [(ngModel)]=\"service.filtro.placaCavalo\">\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=\"qtdeDeRegistros\">{{'labels.qtdeDeRegistros' | translate}}</label>\n                                <select id=\"qtdeDeRegistros\" name=\"qtdeDeRegistros\"\n                                    [(ngModel)]=\"service.filtro.qtdeRegistro\" 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                                    <option value=\"1000\">5000</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\">{{\n                        '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/veiculo/integracao-appa/integracao-appa-index/integracao-appa-index.component.html":
/*!************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-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\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"tab-content top\">\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' |\r\n                                translate\r\n                                }}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#xe\" (click)=\"xmlResult()\">{{\r\n                                'labels.xmlEnvio' |\r\n                                translate }}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#xr\" (click)=\"xmlResult()\">{{\r\n                                'labels.xmlRetorno' |\r\n                                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 pl-0 pr-0\" id=\"da\">\r\n                        <app-table>\r\n                            <div class=\"table-responsive\">\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 class=\"text-center\">{{ 'labels.sel' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.idEnvio' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.codigo' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.dataChegada' | translate}}</th>\r\n                                            <th>{{ 'labels.cliente' | translate}}</th>\r\n                                            <th>{{ 'labels.motorista' | translate}}</th>\r\n                                            <th>{{ 'labels.placa' | translate}}</th>\r\n                                            <th>{{ 'labels.dataProcessamento' | translate}}</th>\r\n                                            <th>{{ 'labels.situacao' | translate}}</th>\r\n                                            <th>{{ 'labels.mensagem' | translate}}</th>\r\n                                        </tr>\r\n                                    </thead>\r\n                                    <tbody>\r\n                                        <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"rowSelect(t)\"\r\n                                            (click)=\"select(t)\" \r\n                                            [ngClass]=\"{'info': t == dadoSelecionado }\">\r\n                                            <td>\r\n                                                <label class=\"chk\">\r\n                                                    <input type=\"checkbox\" id=\"sitReg\" name=\"sitReg\" value=\"checked\"\r\n                                                     style=\"margin-left:auto; margin-right:auto;\" disabled>\r\n                                                    <span [ngClass]=\"{'green':t.sitReg == 'A' || t.sitReg == 'X'  ? true : false,\r\n                                                                      'red':t.sitReg == 'E' || t.sitReg == 'N' ? true : false,\r\n                                                                      'blue':t.sitReg == 'S' ? true : false}\">\r\n                                                    </span>\r\n                                                </label>\r\n                                            </td>\r\n                                            <td>{{ t.integracaoAppaId }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.regControle }}</td>\r\n                                            <td>{{ t.dtChegada | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                                            <td>{{ t.cliente }}</td>\r\n                                            <td>{{ t.motorista }}</td>\r\n                                            <td>{{ t.placaCavalo }}</td>\r\n                                            <td>{{ t.dtEnvio | date: 'dd/MM/yyyy HH:mm' }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.situacao }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.msgRetorno }}</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\r\n                        <div class=\"legend\">\r\n                            <div class=\"item\">\r\n                                <div class=\"circle green\"></div>\r\n                                <span>{{ 'labels.enviadoComSucesso' | translate }}</span>\r\n                            </div>\r\n                            <div class=\"item\">\r\n                                <div class=\"circle blue\"></div>\r\n                                <span>{{ 'labels.aguardandoEnvio' | 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>\r\n                        <div>\r\n                            <button class=\"btn btn-success mr-2\" [disabled]=\"!hasDados\" (click)=\"selectAll()\"\r\n                                type=\"button\">\r\n                                {{ 'buttons.selecionaTodos' | translate }}\r\n                            </button>\r\n                            <button class=\"btn btn-success mr-2\" [disabled]=\"!hasDados\" (click)=\"processarIntegracao()\"\r\n                                type=\"button\">{{\r\n                                'buttons.processar' | translate }}\r\n                            </button>\r\n                            <button class=\"btn btn-success mr-2\" (click)=\"cancelar()\" type=\"button\">{{\r\n                                'buttons.sair' | 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\"\r\n                                        autofocus disabled rows=\"20\">\r\n                                        {{ xmlIntegracaoEnvio }}\r\n                                    </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                                        disabled autofocus rows=\"20\">{{ 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    </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-integracao-appa-filter (filtrar)=\"refresh()\"></app-integracao-appa-filter>");

/***/ }),

/***/ "./src/app/pages/veiculo/integracao-appa/integracao-appa-filter/integracao-appa-filter.component.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/integracao-appa/integracao-appa-filter/integracao-appa-filter.component.ts ***!
  \**********************************************************************************************************/
/*! exports provided: IntegracaoAppaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoAppaFilterComponent", function() { return IntegracaoAppaFilterComponent; });
/* 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_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 _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __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_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 _integracao_appa_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../integracao-appa.constants */ "./src/app/pages/veiculo/integracao-appa/integracao-appa.constants.ts");
/* harmony import */ var _integracao_appa_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../integracao-appa.service */ "./src/app/pages/veiculo/integracao-appa/integracao-appa.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _integracao_appa_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../integracao-appa.model */ "./src/app/pages/veiculo/integracao-appa/integracao-appa.model.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var IntegracaoAppaFilterComponent = /** @class */ (function () {
    function IntegracaoAppaFilterComponent(service, message, destinatarioService, funcoesService) {
        this.service = service;
        this.message = message;
        this.destinatarioService = destinatarioService;
        this.funcoesService = funcoesService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.constantes = new _integracao_appa_constants__WEBPACK_IMPORTED_MODULE_5__["IntegracaoAppaConstants"]();
    }
    IntegracaoAppaFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _integracao_appa_model__WEBPACK_IMPORTED_MODULE_9__["IntegracaoAppaFilter"]();
        }
    };
    IntegracaoAppaFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataFinal, this.service.filtro.dataInicial, ['H', 'M'])) {
            this.message.warning("titles.integracaoAppa", "messages.dataInicioNaoPodeSerMaiorDataFim");
            return;
        }
        this.filtrar.emit();
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ModalUtilsStaticService"].closeModal("integracao-appa-filter-dialog");
    };
    IntegracaoAppaFilterComponent.prototype.validaDatas = function () {
        if (_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataFinal, this.service.filtro.dataInicial, ['H', 'M'])) {
            this.message.warning("titles.integracaoAppa", "messages.dataInicioNaoPodeSerMaiorDataFim");
        }
    };
    IntegracaoAppaFilterComponent.ctorParameters = function () { return [
        { type: _integracao_appa_service__WEBPACK_IMPORTED_MODULE_6__["IntegracaoAppaService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], IntegracaoAppaFilterComponent.prototype, "filtrar", void 0);
    IntegracaoAppaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-integracao-appa-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./integracao-appa-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/integracao-appa/integracao-appa-filter/integracao-appa-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_integracao_appa_service__WEBPACK_IMPORTED_MODULE_6__["IntegracaoAppaService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], IntegracaoAppaFilterComponent);
    return IntegracaoAppaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-index.component.scss":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-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: 50%;\n}\n\nspan.red,\ndiv.circle.red {\n  background-color: #c03;\n}\n\nspan.green,\ndiv.circle.green {\n  background-color: #378D3B;\n}\n\nspan.blue,\ndiv.circle.blue {\n  background-color: #0000CC;\n}\n\ndiv.legend {\n  display: flex;\n  margin: 1%;\n}\n\ndiv.legend .item {\n  display: flex;\n  align-items: center;\n  padding: 1.5%;\n  flex: 1;\n}\n\ndiv.legend .circle {\n  width: 15px;\n  height: 15px;\n  border-radius: 50%;\n  border: 1px solid #ccc;\n  margin-right: 2%;\n}\n\n.colTodos {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: -16px;\n}\n\ninput[type=checkbox] {\n  cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvdmVpY3Vsby9pbnRlZ3JhY2FvLWFwcGEvaW50ZWdyYWNhby1hcHBhLWluZGV4L0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcdmVpY3Vsb1xcaW50ZWdyYWNhby1hcHBhXFxpbnRlZ3JhY2FvLWFwcGEtaW5kZXhcXGludGVncmFjYW8tYXBwYS1pbmRleC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvdmVpY3Vsby9pbnRlZ3JhY2FvLWFwcGEvaW50ZWdyYWNhby1hcHBhLWluZGV4L2ludGVncmFjYW8tYXBwYS1pbmRleC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGFBQUE7QUNDRjs7QURFQTtFQUNFLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtBQ0NGOztBREVBOztFQUVFLHNCQUFBO0FDQ0Y7O0FERUE7O0VBRUUseUJBQUE7QUNDRjs7QURFQTs7RUFFRSx5QkFBQTtBQ0NGOztBREVBO0VBQ0UsYUFBQTtFQUNBLFVBQUE7QUNDRjs7QURFQTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtFQUNBLGFBQUE7RUFDQSxPQUFBO0FDQ0Y7O0FERUE7RUFDRSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSxnQkFBQTtBQ0NGOztBREVBO0VBQ0UsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxpQkFBQTtBQ0NGOztBREVBO0VBQ0UsZUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvdmVpY3Vsby9pbnRlZ3JhY2FvLWFwcGEvaW50ZWdyYWNhby1hcHBhLWluZGV4L2ludGVncmFjYW8tYXBwYS1pbmRleC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jaGsgaW5wdXQge1xyXG4gIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgd2lkdGg6IDEycHg7XHJcbiAgaGVpZ2h0OiAxMnB4O1xyXG4gIGRpc3BsYXk6IGJsb2NrO1xyXG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcclxuICBib3JkZXItcmFkaXVzOiA1MCU7XHJcbn1cclxuXHJcbnNwYW4ucmVkLFxyXG5kaXYuY2lyY2xlLnJlZCB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuc3Bhbi5ncmVlbixcclxuZGl2LmNpcmNsZS5ncmVlbiB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogIzM3OEQzQjtcclxufVxyXG5cclxuc3Bhbi5ibHVlLFxyXG5kaXYuY2lyY2xlLmJsdWUge1xyXG4gIGJhY2tncm91bmQtY29sb3I6ICMwMDAwQ0M7XHJcbn1cclxuXHJcbmRpdi5sZWdlbmQge1xyXG4gIGRpc3BsYXk6IGZsZXg7XHJcbiAgbWFyZ2luOiAxJTtcclxufVxyXG5cclxuZGl2LmxlZ2VuZCAuaXRlbSB7XHJcbiAgZGlzcGxheTogZmxleDtcclxuICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gIHBhZGRpbmc6IDEuNSU7XHJcbiAgZmxleDogMTtcclxufVxyXG5cclxuZGl2LmxlZ2VuZCAuY2lyY2xlIHtcclxuICB3aWR0aDogMTVweDtcclxuICBoZWlnaHQ6IDE1cHg7XHJcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xyXG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XHJcbiAgbWFyZ2luLXJpZ2h0OiAyJTtcclxufVxyXG5cclxuLmNvbFRvZG9zIHtcclxuICBkaXNwbGF5OiBmbGV4O1xyXG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgbWFyZ2luLXRvcDogLTE2cHg7XHJcbn1cclxuXHJcbmlucHV0W3R5cGU9XCJjaGVja2JveFwiXSB7XHJcbiAgY3Vyc29yOiBwb2ludGVyO1xyXG59XHJcbiIsIi5jaGsgaW5wdXQge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY2hrIHNwYW4ge1xuICB3aWR0aDogMTJweDtcbiAgaGVpZ2h0OiAxMnB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xufVxuXG5zcGFuLnJlZCxcbmRpdi5jaXJjbGUucmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcbn1cblxuc3Bhbi5ncmVlbixcbmRpdi5jaXJjbGUuZ3JlZW4ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzc4RDNCO1xufVxuXG5zcGFuLmJsdWUsXG5kaXYuY2lyY2xlLmJsdWUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMDAwMENDO1xufVxuXG5kaXYubGVnZW5kIHtcbiAgZGlzcGxheTogZmxleDtcbiAgbWFyZ2luOiAxJTtcbn1cblxuZGl2LmxlZ2VuZCAuaXRlbSB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIHBhZGRpbmc6IDEuNSU7XG4gIGZsZXg6IDE7XG59XG5cbmRpdi5sZWdlbmQgLmNpcmNsZSB7XG4gIHdpZHRoOiAxNXB4O1xuICBoZWlnaHQ6IDE1cHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcbiAgbWFyZ2luLXJpZ2h0OiAyJTtcbn1cblxuLmNvbFRvZG9zIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIG1hcmdpbi10b3A6IC0xNnB4O1xufVxuXG5pbnB1dFt0eXBlPWNoZWNrYm94XSB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-index.component.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-index.component.ts ***!
  \********************************************************************************************************/
/*! exports provided: IntegracaoAppaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoAppaIndexComponent", function() { return IntegracaoAppaIndexComponent; });
/* 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 _pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../pages/login/login.service */ "./src/app/pages/login/login.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_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __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_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var _integracao_appa_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../integracao-appa.model */ "./src/app/pages/veiculo/integracao-appa/integracao-appa.model.ts");
/* harmony import */ var _integracao_appa_constants__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../integracao-appa.constants */ "./src/app/pages/veiculo/integracao-appa/integracao-appa.constants.ts");
/* harmony import */ var _integracao_appa_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../integracao-appa.service */ "./src/app/pages/veiculo/integracao-appa/integracao-appa.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_18__ = __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 __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 IntegracaoAppaIndexComponent = /** @class */ (function (_super) {
    __extends(IntegracaoAppaIndexComponent, _super);
    function IntegracaoAppaIndexComponent(router, configuracao, funcoesService, messageService, permissoesUtils, service, loginService, excelService, reportService) {
        var _this = _super.call(this, new _integracao_appa_constants__WEBPACK_IMPORTED_MODULE_16__["IntegracaoAppaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.data = new _integracao_appa_model__WEBPACK_IMPORTED_MODULE_15__["IntegracaoAppaDto"]();
        _this.dadoSelecionado = new _integracao_appa_model__WEBPACK_IMPORTED_MODULE_15__["IntegracaoAppaDto"]();
        _this.dadosAux = [];
        _this.constantes = new _integracao_appa_constants__WEBPACK_IMPORTED_MODULE_16__["IntegracaoAppaConstants"]();
        _this.mensagens = [];
        _this.geraDados = false;
        _this.itemSelecionado = [];
        _this.dadosXml = new _integracao_appa_model__WEBPACK_IMPORTED_MODULE_15__["IntegracaoAppaDto"]();
        _this.refresh = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 1, function () {
                _this.service.getByFiltro(_this.service.filtro).subscribe(function (resp) {
                    _this.service.dados = resp;
                });
            });
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        return _this;
    }
    IntegracaoAppaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        var base = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!base.loginService.isTokenExpired()) {
                jQuery("#integracao-patio-filter-dialog").modal("show");
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    IntegracaoAppaIndexComponent.prototype.filtrar = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["ModalUtilsStaticService"].openModal("integracao-appa-filter-dialog");
    };
    IntegracaoAppaIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    IntegracaoAppaIndexComponent.prototype.select = function (item) {
        this.dadoSelecionado = item;
    };
    IntegracaoAppaIndexComponent.prototype.rowSelect = function (item) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (item.sitReg == "A") {
                _this.messageService.warning("titles.integracaoAppa", "messages.erroDeIntegracaoEprocessamento");
                return;
            }
            if (item.sitReg == "N" || item.sitReg == "E") {
                _this.service.atualizaIntegracaoAppa(item.integracaoAppaId).subscribe(function (result) {
                    if (!result.isValid) {
                        _this.messageService.warning("titles.integracaoAppa", result.message);
                        return;
                    }
                });
                _this.refresh();
            }
            _this.dadoSelecionado = item;
        });
    };
    IntegracaoAppaIndexComponent.prototype.selectAll = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            var itensSelecionados = _this.service.dados.filter(function (item) { return item.sitReg == "N" || item.sitReg == "E"; });
            itensSelecionados.forEach(function (item) {
                _this.service.atualizaIntegracaoAppa(item.integracaoAppaId).subscribe(function (result) {
                    if (!result.isValid) {
                        _this.messageService.warning("titles.integracaoAppa", "Id Envio " + item.integracaoAppaId + ": " + result.message);
                        return;
                    }
                    _this.refresh();
                });
            });
        });
    };
    IntegracaoAppaIndexComponent.prototype.processarIntegracao = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.messageService.confirm("titles.mensagens", "messages.confirmaReenvioParaAPPA", null, function () {
                var itensSelecionados = _this.service.dados.filter(function (item) { return item.sitReg == "S"; });
                _this.service.processarIntegracaoAppa(itensSelecionados).subscribe(function (result) {
                    if (!result.isValid) {
                        _this.messageService.warning("titles.integracaoAppa", result.message);
                        return;
                    }
                    _this.refresh();
                });
            });
        });
    };
    IntegracaoAppaIndexComponent.prototype.xmlResult = function () {
        var _this = this;
        if (!this.itemClicked())
            return;
        this.service.xmlIntegracaoAppa(this.dadoSelecionado.integracaoAppaId).subscribe(function (result) {
            _this.getXmlEnvio(result.xmlEnvio);
            _this.getXmlRetorno(result.xmlRetorno);
        });
    };
    IntegracaoAppaIndexComponent.prototype.getXmlEnvio = function (xmlEnvio) {
        this.xmlIntegracaoEnvio = this.getXml(xmlEnvio);
        if (_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].isEmpty(this.xmlIntegracaoEnvio)) {
            this.messageService.warning("titles.integracaoAppa", this.messageService.translate("messages.xmlNaoLocalizadoNoBancoDeDadosRegistro"));
            return;
        }
    };
    IntegracaoAppaIndexComponent.prototype.getXmlRetorno = function (xmlRetorno) {
        this.xmlIntegracaoRetorno = this.getXml(xmlRetorno);
        if (_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].isEmpty(this.xmlIntegracaoRetorno)) {
            this.messageService.warning("titles.integracaoAppa", this.messageService.translate("messages.xmlNaoLocalizadoNoBancoDeDadosRegistro"));
            return;
        }
    };
    IntegracaoAppaIndexComponent.prototype.itemClicked = function () {
        if (!this.dadoSelecionado.integracaoAppaId) {
            this.messageService.warning("titles.painelIntegracao", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    IntegracaoAppaIndexComponent.prototype.cancelar = function () {
        this.service.dados = null;
        this.data = new _integracao_appa_model__WEBPACK_IMPORTED_MODULE_15__["IntegracaoAppaDto"]();
        this.service.filtro = new _integracao_appa_model__WEBPACK_IMPORTED_MODULE_15__["IntegracaoAppaFilter"]();
        this.filtrar();
    };
    IntegracaoAppaIndexComponent.prototype.getXml = function (xml) {
        if (!xml || (xml && xml.trim() === "")) {
            return;
        }
        // primeira posição onde a tag aparece <PostData>, no xml não formatado
        var begingPosdata = xml.indexOf("<PostData>");
        // primeira posição onde a tag aparece </PostData>, no xml não formatado
        var endPosdata = xml.indexOf("</PostData>");
        if (begingPosdata && begingPosdata > 1 && endPosdata && endPosdata > 1) {
            var subXml = xml.substring(begingPosdata, endPosdata + 11);
            var rspXml = this.funcoesService.stringUtils.formatacaoXml(xml);
            // primeira posição onde a tag aparece <PostData>, no xml não formatado
            var begingPosdataXmlNovo = rspXml.indexOf("<PostData>");
            // primeira posição onde a tag aparece </PostData>, no xml não formatado
            var endPosdataXmlNovo = rspXml.indexOf("</PostData>");
            var subXmlNovo = rspXml.substring(begingPosdataXmlNovo, endPosdataXmlNovo + 11);
            rspXml = rspXml.replace(subXmlNovo, subXml);
            return rspXml;
        }
        return this.funcoesService.stringUtils.formatacaoXml(xml);
    };
    Object.defineProperty(IntegracaoAppaIndexComponent.prototype, "hasDados", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(this.service.dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IntegracaoAppaIndexComponent.prototype, "dados", {
        get: function () {
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            return this.table.getPage(this.dadosFilter);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IntegracaoAppaIndexComponent.prototype, "dadosFilter", {
        get: function () {
            var _this = this;
            return this.service.dados.filter(function (v) {
                return _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.integracaoAppaId, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtChegada), _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtEnvio), _this.table.filtro) ||
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].exist(v.regControle, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.motorista, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.placaCavalo, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.situacao, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].exist(v.msgRetorno, _this.table.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    IntegracaoAppaIndexComponent.prototype.printParams = function () {
        this.constantes.paramRelatorio = {
            dataInicial: this.service.filtro.dataInicial,
            dataFinal: this.service.filtro.dataFinal,
            placaCavalo: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.service.filtro.placaCavalo),
            sitReg: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.service.filtro.sitReg),
            qtdeRegistro: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["NumberUtilsStaticService"].toNumber(this.service.filtro.qtdeRegistro)
        };
        return true;
    };
    IntegracaoAppaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (!_this.printParams())
                return;
            _super.prototype.print.call(_this);
        });
    };
    IntegracaoAppaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _integracao_appa_service__WEBPACK_IMPORTED_MODULE_17__["IntegracaoAppaService"] },
        { type: _pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_13__["ExcelService"] },
        { type: _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_14__["ReportService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__["TableComponent"], { static: false }),
        __metadata("design:type", _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__["TableComponent"])
    ], IntegracaoAppaIndexComponent.prototype, "table", void 0);
    IntegracaoAppaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-integracao-appa-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./integracao-appa-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./integracao-appa-index.component.scss */ "./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _integracao_appa_service__WEBPACK_IMPORTED_MODULE_17__["IntegracaoAppaService"],
            _pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_13__["ExcelService"],
            _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_14__["ReportService"]])
    ], IntegracaoAppaIndexComponent);
    return IntegracaoAppaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/veiculo/integracao-appa/integracao-appa.constants.ts":
/*!****************************************************************************!*\
  !*** ./src/app/pages/veiculo/integracao-appa/integracao-appa.constants.ts ***!
  \****************************************************************************/
/*! exports provided: IntegracaoAppaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoAppaConstants", function() { return IntegracaoAppaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var IntegracaoAppaConstants = /** @class */ (function () {
    function IntegracaoAppaConstants() {
        this.sisFormularioId = 375220;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.selecionar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.processar" }
        ];
        this.nomeForm = "titles.integracaoAppa";
        this.reportId = "CTV0019";
        this.reportTitulo = { "titulo": "Integração Pátio", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return IntegracaoAppaConstants;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/integracao-appa/integracao-appa.model.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/veiculo/integracao-appa/integracao-appa.model.ts ***!
  \************************************************************************/
/*! exports provided: IntegracaoAppaFilter, IntegracaoAppaDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoAppaFilter", function() { return IntegracaoAppaFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoAppaDto", function() { return IntegracaoAppaDto; });
/* 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 IntegracaoAppaFilter = /** @class */ (function () {
    function IntegracaoAppaFilter() {
        var periodoDe = new Date();
        periodoDe.setHours(0, 0, 2);
        this.dataInicial = periodoDe;
        this.dataFinal = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
        this.placaCavalo = "";
        this.sitReg = "T";
        this.qtdeRegistro = "100";
    }
    return IntegracaoAppaFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/veiculo/integracao-appa/integracao-appa.module.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/veiculo/integracao-appa/integracao-appa.module.ts ***!
  \*************************************************************************/
/*! exports provided: IntegracaoAppaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoAppaModule", function() { return IntegracaoAppaModule; });
/* 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_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _integracao_appa_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./integracao-appa.routing.module */ "./src/app/pages/veiculo/integracao-appa/integracao-appa.routing.module.ts");
/* harmony import */ var _integracao_appa_index_integracao_appa_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./integracao-appa-index/integracao-appa-index.component */ "./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-index.component.ts");
/* harmony import */ var _integracao_appa_filter_integracao_appa_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./integracao-appa-filter/integracao-appa-filter.component */ "./src/app/pages/veiculo/integracao-appa/integracao-appa-filter/integracao-appa-filter.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var IntegracaoAppaModule = /** @class */ (function () {
    function IntegracaoAppaModule() {
    }
    IntegracaoAppaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _integracao_appa_routing_module__WEBPACK_IMPORTED_MODULE_2__["IntegracaoAppaRoutingModule"]],
            declarations: [
                _integracao_appa_index_integracao_appa_index_component__WEBPACK_IMPORTED_MODULE_3__["IntegracaoAppaIndexComponent"],
                _integracao_appa_filter_integracao_appa_filter_component__WEBPACK_IMPORTED_MODULE_4__["IntegracaoAppaFilterComponent"],
            ]
        })
    ], IntegracaoAppaModule);
    return IntegracaoAppaModule;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/integracao-appa/integracao-appa.routing.module.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/veiculo/integracao-appa/integracao-appa.routing.module.ts ***!
  \*********************************************************************************/
/*! exports provided: IntegracaoAppaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoAppaRoutingModule", function() { return IntegracaoAppaRoutingModule; });
/* 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 _integracao_appa_index_integracao_appa_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./integracao-appa-index/integracao-appa-index.component */ "./src/app/pages/veiculo/integracao-appa/integracao-appa-index/integracao-appa-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: _integracao_appa_index_integracao_appa_index_component__WEBPACK_IMPORTED_MODULE_2__["IntegracaoAppaIndexComponent"],
        data: { breadcrumb: "integracaoAppa" }
    }
];
var IntegracaoAppaRoutingModule = /** @class */ (function () {
    function IntegracaoAppaRoutingModule() {
    }
    IntegracaoAppaRoutingModule = __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"]]
        })
    ], IntegracaoAppaRoutingModule);
    return IntegracaoAppaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/integracao-appa/integracao-appa.service.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/veiculo/integracao-appa/integracao-appa.service.ts ***!
  \**************************************************************************/
/*! exports provided: IntegracaoAppaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoAppaService", function() { return IntegracaoAppaService; });
/* 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 environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _integracao_appa_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./integracao-appa.model */ "./src/app/pages/veiculo/integracao-appa/integracao-appa.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 IntegracaoAppaService = /** @class */ (function () {
    function IntegracaoAppaService(http, message) {
        this.http = http;
        this.message = message;
        this.filtro = new _integracao_appa_model__WEBPACK_IMPORTED_MODULE_6__["IntegracaoAppaFilter"]();
    }
    IntegracaoAppaService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/consulta/integracao/getIntegracaoAppaIndex", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoAppaService.prototype.atualizaIntegracaoAppa = function (integracaoAppaId) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/consulta/integracao/atualizaIntegracaoAppa/" + integracaoAppaId, null)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoAppaService.prototype.processarIntegracaoAppa = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/consulta/integracao/processarIntegracaoAppa", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoAppaService.prototype.xmlIntegracaoAppa = function (integracaoAppaId) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/consulta/integracao/xmlIntegracaoAppa/" + integracaoAppaId, null)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoAppaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] }
    ]; };
    IntegracaoAppaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"]])
    ], IntegracaoAppaService);
    return IntegracaoAppaService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-veiculo-integracao-appa-integracao-appa-module.js.map