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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-filter/integracao-patio-filter.component.html":
/*!***************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-filter/integracao-patio-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-patio-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.integracaoPatio' | 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 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.emissao' |\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\">\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.dataI\" (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.dataF\"\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                            <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.placa\">\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\" [inSelected]=\"service.filtro.cliente\"\n                                    (outModel)=\"trataCliente($event)\">\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=\"transportadora\" name=\"transportadora\"\n                                    tipoDestinatario=\"T\" modalTitle=\"pesquisaDeTransportadora\" label=\"transportadora\"\n                                    [(ngModel)]=\"service.filtro.destinatarioIdTransportadora\" showInscricao=\"false\"\n                                    showCgcCpf=\"false\" [inSelected]=\"service.filtro.transportadora\"\n                                    (outModel)=\"trataTransportadora($event)\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <label for=\"chaveNFE\">{{'labels.chaveNFE' |\n                                translate}}</label>\n                            <div class=\"input-group\">\n                                <input type=\"text\" id=\"chaveNFE\" name=\"chaveNFE\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.filtro.chaveNFE\" data-title=\"{{'labels.chaveNFE' | translate}}\"\n                                    maxlength=\"54\" mask=\"0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000\">\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=\"opcao\">{{'labels.opcao' | translate}}</label>\n                                <select id=\"opcao\" name=\"opcao\" [(ngModel)]=\"service.filtro.integrado\"\n                                    class=\"form-control form-control-sm\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"S\">{{'labels.enviadoComSucesso'|translate}}</option>\n                                    <option value=\"A\">{{'labels.aguardandoEnvioNaoEnviado'|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=\"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                                </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/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-index.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-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.regPlaneja\">\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)=\"getXmlEnvio()\">{{\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)=\"getXmlRetorno()\">{{\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.dtIntegracao' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.dtPrevisao' | translate}}</th>\r\n                                            <th>{{ 'labels.descrPatio' | translate}}</th>\r\n                                            <th>{{ 'labels.tipo' | translate}}</th>\r\n                                            <th>{{ 'labels.cliente' | translate}}</th>\r\n                                            <th>{{ 'labels.nomeCliente' | translate}}</th>\r\n                                            <th>{{ 'labels.statusDaIntegracao' | 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?.regPlaneja == data?.regPlaneja }\">\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]=\"{'green':t.selecao == 'S' ? true : false,\r\n                                                                'red':t.selecao == 'E' ? true : false,\r\n                                                                'blue':t.selecao == 'A' ? true : false}\">\r\n                                                    </span>\r\n                                                </label>\r\n                                            </td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.regOrigem }}</td>\r\n                                            <td>{{ t.dtIntegracao | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                                            <td>{{ t.dtPrevisaoChegada | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.descrPatio }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.tipoIntegracao }}</td>\r\n                                            <td>{{ t.codDest }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.nomeCliente }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t.statusIntegracao }}</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 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.aguardandoEnvio' | 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)=\"processar()\"\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-patio-filter (filtrar)=\"executaFiltro()\"></app-integracao-patio-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-filter/integracao-patio-filter.component.ts":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-filter/integracao-patio-filter.component.ts ***!
  \***********************************************************************************************************************************/
/*! exports provided: IntegracaoPatioFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPatioFilterComponent", function() { return IntegracaoPatioFilterComponent; });
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __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_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _integracao_patio_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../integracao-patio.constants */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.constants.ts");
/* harmony import */ var _integracao_patio_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../integracao-patio.service */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.service.ts");
/* harmony import */ var _integracao_patio_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../integracao-patio.model */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.model.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.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 IntegracaoPatioFilterComponent = /** @class */ (function () {
    function IntegracaoPatioFilterComponent(service, message, destinatarioService, funcoesService) {
        this.service = service;
        this.message = message;
        this.destinatarioService = destinatarioService;
        this.funcoesService = funcoesService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        this.constantes = new _integracao_patio_constants__WEBPACK_IMPORTED_MODULE_7__["IntegracaoPatioConstants"]();
    }
    IntegracaoPatioFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _integracao_patio_model__WEBPACK_IMPORTED_MODULE_9__["IntegracaoPatioFilter"]();
        }
    };
    IntegracaoPatioFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.message.warning("titles.integracaoPatio", "messages.dataInicioNaoPodeSerMaiorDataFim");
            return;
        }
        this.filtrar.emit();
        jQuery("#integracao-patio-filter-dialog").modal("hide");
    };
    IntegracaoPatioFilterComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.message.warning("titles.integracaoPatio", "messages.dataInicioNaoPodeSerMaiorDataFim");
        }
    };
    IntegracaoPatioFilterComponent.prototype.trataCliente = function (cliente) {
        this.service.filtro.cliente = !!cliente ? cliente : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_6__["Destinatario"]();
    };
    IntegracaoPatioFilterComponent.prototype.trataTransportadora = function (transportadora) {
        this.service.filtro.transportadora = !!transportadora ? transportadora : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_6__["Destinatario"]();
    };
    IntegracaoPatioFilterComponent.ctorParameters = function () { return [
        { type: _integracao_patio_service__WEBPACK_IMPORTED_MODULE_8__["IntegracaoPatioService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_0__["DestinatarioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"])(),
        __metadata("design:type", Object)
    ], IntegracaoPatioFilterComponent.prototype, "filtrar", void 0);
    IntegracaoPatioFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: "app-integracao-patio-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./integracao-patio-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-filter/integracao-patio-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_integracao_patio_service__WEBPACK_IMPORTED_MODULE_8__["IntegracaoPatioService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_0__["DestinatarioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"]])
    ], IntegracaoPatioFilterComponent);
    return IntegracaoPatioFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-index.component.scss":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvZ3JhbmVsL21vdmltZW50b3MvaW50ZWdyYWNhby1wYXRpby9pbnRlZ3JhY2FvLXBhdGlvLWluZGV4L0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXGdyYW5lbFxcbW92aW1lbnRvc1xcaW50ZWdyYWNhby1wYXRpb1xcaW50ZWdyYWNhby1wYXRpby1pbmRleFxcaW50ZWdyYWNhby1wYXRpby1pbmRleC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvZ3JhbmVsL21vdmltZW50b3MvaW50ZWdyYWNhby1wYXRpby9pbnRlZ3JhY2FvLXBhdGlvLWluZGV4L2ludGVncmFjYW8tcGF0aW8taW5kZXguY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxhQUFBO0FDQ0Y7O0FERUE7RUFDRSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7QUNDRjs7QURFQTs7RUFFRSxzQkFBQTtBQ0NGOztBREVBOztFQUVFLHlCQUFBO0FDQ0Y7O0FERUE7O0VBRUUseUJBQUE7QUNDRjs7QURFQTtFQUNFLGFBQUE7RUFDQSxVQUFBO0FDQ0Y7O0FERUE7RUFDRSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxhQUFBO0VBQ0EsT0FBQTtBQ0NGOztBREVBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EsZ0JBQUE7QUNDRjs7QURFQTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0EsaUJBQUE7QUNDRjs7QURFQTtFQUNFLGVBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2dyYW5lbC9tb3ZpbWVudG9zL2ludGVncmFjYW8tcGF0aW8vaW50ZWdyYWNhby1wYXRpby1pbmRleC9pbnRlZ3JhY2FvLXBhdGlvLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmNoayBzcGFuIHtcclxuICB3aWR0aDogMTJweDtcclxuICBoZWlnaHQ6IDEycHg7XHJcbiAgZGlzcGxheTogYmxvY2s7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcclxufVxyXG5cclxuc3Bhbi5yZWQsXHJcbmRpdi5jaXJjbGUucmVkIHtcclxuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59XHJcblxyXG5zcGFuLmdyZWVuLFxyXG5kaXYuY2lyY2xlLmdyZWVuIHtcclxuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzc4RDNCO1xyXG59XHJcblxyXG5zcGFuLmJsdWUsXHJcbmRpdi5jaXJjbGUuYmx1ZSB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogIzAwMDBDQztcclxufVxyXG5cclxuZGl2LmxlZ2VuZCB7XHJcbiAgZGlzcGxheTogZmxleDtcclxuICBtYXJnaW46IDElO1xyXG59XHJcblxyXG5kaXYubGVnZW5kIC5pdGVtIHtcclxuICBkaXNwbGF5OiBmbGV4O1xyXG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgcGFkZGluZzogMS41JTtcclxuICBmbGV4OiAxO1xyXG59XHJcblxyXG5kaXYubGVnZW5kIC5jaXJjbGUge1xyXG4gIHdpZHRoOiAxNXB4O1xyXG4gIGhlaWdodDogMTVweDtcclxuICBib3JkZXItcmFkaXVzOiA1MCU7XHJcbiAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcclxuICBtYXJnaW4tcmlnaHQ6IDIlO1xyXG59XHJcblxyXG4uY29sVG9kb3Mge1xyXG4gIGRpc3BsYXk6IGZsZXg7XHJcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XHJcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICBtYXJnaW4tdG9wOiAtMTZweDtcclxufVxyXG5cclxuaW5wdXRbdHlwZT1cImNoZWNrYm94XCJdIHtcclxuICBjdXJzb3I6IHBvaW50ZXI7XHJcbn1cclxuIiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxMnB4O1xuICBoZWlnaHQ6IDEycHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiA1MCU7XG59XG5cbnNwYW4ucmVkLFxuZGl2LmNpcmNsZS5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufVxuXG5zcGFuLmdyZWVuLFxuZGl2LmNpcmNsZS5ncmVlbiB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMzNzhEM0I7XG59XG5cbnNwYW4uYmx1ZSxcbmRpdi5jaXJjbGUuYmx1ZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMwMDAwQ0M7XG59XG5cbmRpdi5sZWdlbmQge1xuICBkaXNwbGF5OiBmbGV4O1xuICBtYXJnaW46IDElO1xufVxuXG5kaXYubGVnZW5kIC5pdGVtIHtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgcGFkZGluZzogMS41JTtcbiAgZmxleDogMTtcbn1cblxuZGl2LmxlZ2VuZCAuY2lyY2xlIHtcbiAgd2lkdGg6IDE1cHg7XG4gIGhlaWdodDogMTVweDtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBtYXJnaW4tcmlnaHQ6IDIlO1xufVxuXG4uY29sVG9kb3Mge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgbWFyZ2luLXRvcDogLTE2cHg7XG59XG5cbmlucHV0W3R5cGU9Y2hlY2tib3hdIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-index.component.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-index.component.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: IntegracaoPatioIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPatioIndexComponent", function() { return IntegracaoPatioIndexComponent; });
/* 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_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __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_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _integracao_patio_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../integracao-patio.model */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.model.ts");
/* harmony import */ var _integracao_patio_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../integracao-patio.constants */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.constants.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __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_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __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_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var _integracao_patio_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../integracao-patio.service */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.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 IntegracaoPatioIndexComponent = /** @class */ (function (_super) {
    __extends(IntegracaoPatioIndexComponent, _super);
    function IntegracaoPatioIndexComponent(router, configuracao, funcoesService, messageService, permissoesUtils, service, loginService, excelService, reportService) {
        var _this = _super.call(this, new _integracao_patio_constants__WEBPACK_IMPORTED_MODULE_8__["IntegracaoPatioConstants"](), 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_patio_model__WEBPACK_IMPORTED_MODULE_7__["IntegracaoPatioDto"]();
        _this.dadosAux = [];
        _this.constantes = new _integracao_patio_constants__WEBPACK_IMPORTED_MODULE_8__["IntegracaoPatioConstants"]();
        _this.mensagens = [];
        _this.geraDados = false;
        _this.refresh = function () {
            _this.service.filtro.geraDados = _this.geraDados;
            _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);
            });
        };
        _this.marcarComoProcessada = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 6, function () {
                if (_this.hasDados) {
                    var hasSelecaoA = _this.existeRegistroSelecaoA();
                    if (!hasSelecaoA) {
                        _this.messageService.warning("titles.integracaoPatio", "messages.necessarioInformarUmaNota");
                        return;
                    }
                    else {
                        _this.messageService.confirm("titles.integracaoPatio", "messages.marcarOsRegistrosSelecionadosComoProcessados", "null", function () { return __awaiter(_this, void 0, void 0, function () {
                            var validationResult, mensagens;
                            var _this = this;
                            return __generator(this, function (_a) {
                                switch (_a.label) {
                                    case 0:
                                        this.dadosAux = [];
                                        this.dadosAux = this.filtrarDadosPorSelecaoA();
                                        return [4 /*yield*/, this.service.marcarComoProcessada(this.dadosAux).toPromise()];
                                    case 1:
                                        validationResult = _a.sent();
                                        if (!validationResult.isValid) {
                                            mensagens = this.messageService.validationResult(validationResult);
                                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.integracaoPatio", m); });
                                            return [2 /*return*/];
                                        }
                                        else {
                                            this.geraDados = true;
                                            this.refresh();
                                        }
                                        return [2 /*return*/];
                                }
                            });
                        }); }, false, function () {
                        });
                    }
                }
                else {
                    _this.messageService.warning('titles.integracaoPatio', 'messages.naoExisteRegistroParaSelecionar');
                    return;
                }
            });
        };
        _this.reenviaNotaJaEnviada = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 7, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (!this.itemSelecionado())
                                return [2 /*return*/];
                            if (this.service.registroNaoEnviado(this.data.selecao))
                                return [2 /*return*/];
                            return [4 /*yield*/, this.service.reenviaNota(this.data).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.integracaoPatio", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.geraDados = false;
                                this.refresh();
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 1, function () {
                _this.service.filtro.geraDados = false;
                if (!_this.printParams())
                    return;
                _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                    var headerDictionary = {};
                    var options = {
                        headerJsonKeys: true,
                        headerDictionary: headerDictionary
                    };
                    _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "painelIntegracao"), options);
                });
            });
        };
        return _this;
    }
    IntegracaoPatioIndexComponent.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);
        _super.prototype.addFuncoes.call(this, [
            { action: 'marcarComoProcessada', func: function () { return _this.marcarComoProcessada; } },
            { action: 'reenviaNotaJaEnviada', func: function () { return _this.reenviaNotaJaEnviada; } },
            { action: 'export', func: function () { return _this.export; } },
        ]);
    };
    IntegracaoPatioIndexComponent.prototype.filtrar = function () {
        jQuery("#integracao-patio-filter-dialog").modal("show");
    };
    IntegracaoPatioIndexComponent.prototype.executaFiltro = function () {
        this.geraDados = true;
        this.refresh();
    };
    IntegracaoPatioIndexComponent.prototype.onMarcarDesmarcar = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.itemSelecionado())
                            return [2 /*return*/];
                        this.data.selecao = this.data.selecao === "A" ? "N" : "A";
                        return [4 /*yield*/, this.service.selecionar({ regNota: this.data.regPlaneja, selecao: this.data.selecao }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.integracaoPatio", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.geraDados = false;
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    IntegracaoPatioIndexComponent.prototype.select = function (item) {
        this.data = item;
    };
    IntegracaoPatioIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].isNotPositive(this.data.regPlaneja)) {
            this.messageService.warning("titles.integracaoPatio", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    IntegracaoPatioIndexComponent.prototype.rowSelect = function (item) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.data = item;
            var self = _this;
            if (["S", "F", "C"].includes(self.data.selecao)) {
                _this.messageService.confirm("titles.integracaoPatio", "messages.registroSelecionadoJaEnviadoDesejaReprocessar", "null", function () { return __awaiter(_this, void 0, void 0, function () {
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, this.onMarcarDesmarcar()];
                            case 1:
                                _a.sent();
                                return [2 /*return*/];
                        }
                    });
                }); }, false, function () {
                });
            }
            else {
                _this.onMarcarDesmarcar();
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    IntegracaoPatioIndexComponent.prototype.selectAll = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () { return __awaiter(_this, void 0, void 0, function () {
            var obj, validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.hasDados) return [3 /*break*/, 2];
                        obj = {
                            integrado: this.service.filtro.integrado
                        };
                        return [4 /*yield*/, this.service.selecionarTodos(obj).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.integracaoPatio", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.geraDados = false;
                            this.refresh();
                        }
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        }); });
    };
    IntegracaoPatioIndexComponent.prototype.processar = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () { return __awaiter(_this, void 0, void 0, function () {
            var hasSelecaoA;
            var _this = this;
            return __generator(this, function (_a) {
                if (this.hasDados) {
                    hasSelecaoA = this.existeRegistroSelecaoA();
                    if (!hasSelecaoA) {
                        this.messageService.warning("titles.integracaoPatio", "messages.necessarioInformarUmaNota");
                        return [2 /*return*/];
                    }
                    else {
                        this.messageService.confirm("titles.integracaoPatio", "messages.reprocessRegsSelecionados", null, function () {
                            _this.dadosAux = [];
                            _this.dadosAux = _this.filtrarDadosPorSelecaoA();
                            _this.reprocessar(_this.dadosAux);
                        });
                    }
                }
                return [2 /*return*/];
            });
        }); });
    };
    IntegracaoPatioIndexComponent.prototype.filtrarDadosPorSelecaoA = function () {
        return this.service.dados.filter(function (obj) { return obj.selecao === "A"; });
    };
    IntegracaoPatioIndexComponent.prototype.existeRegistroSelecaoA = function () {
        return this.service.dados.some(function (obj) { return obj.selecao === "A"; });
    };
    IntegracaoPatioIndexComponent.prototype.reprocessar = function (object) {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.reprocessar(object).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.integracaoPatio", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success("titles.integracaoPatio", "messages.registrosReprocessadosComSucesso");
                            this.geraDados = true;
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    IntegracaoPatioIndexComponent.prototype.cancelar = function () {
        this.service.dados = null;
        this.data = new _integracao_patio_model__WEBPACK_IMPORTED_MODULE_7__["IntegracaoPatioDto"]();
        this.service.filtro = new _integracao_patio_model__WEBPACK_IMPORTED_MODULE_7__["IntegracaoPatioFilter"]();
        this.filtrar();
    };
    IntegracaoPatioIndexComponent.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(IntegracaoPatioIndexComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ArrayUtilsStaticService"].any(this.service.dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IntegracaoPatioIndexComponent.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(IntegracaoPatioIndexComponent.prototype, "dadosFilter", {
        get: function () {
            var _this = this;
            return this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.regOrigem.toString(), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtIntegracao), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtPrevisaoChegada), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.descrPatio, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.tipoIntegracao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.codDest.toString(), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].exist(v.statusIntegracao, _this.table.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    IntegracaoPatioIndexComponent.prototype.printParams = function () {
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            colaboradorId: this.loginService.getLogin().colaboradorId,
            dataI: this.service.filtro.dataI,
            dataF: this.service.filtro.dataF,
            integrado: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(this.service.filtro.integrado),
            destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].toNumber(this.service.filtro.destinatarioIdCliente),
            destinatarioIdTransportadora: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].toNumber(this.service.filtro.destinatarioIdTransportadora),
            placa: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(this.service.filtro.placa),
            tipoPeriodo: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(this.service.filtro.tipoPeriodo),
            qtdeRegistro: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(this.service.filtro.qtdeRegistro),
            geraDados: app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["BooleanUtilsStaticService"].toBoolean(this.service.filtro.geraDados),
        };
        return true;
    };
    IntegracaoPatioIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.service.filtro.geraDados = false;
            if (!_this.printParams())
                return;
            _super.prototype.print.call(_this, null, true);
        });
    };
    IntegracaoPatioIndexComponent.prototype.getXmlEnvio = function () {
        if (!this.itemSelecionado())
            return;
        this.xmlIntegracaoEnvio = this.getXml(this.data.xmlIntegracaoEnvio);
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].isEmpty(this.xmlIntegracaoEnvio)) {
            this.messageService.warning("titles.integracaoPatio", this.messageService.translate("messages.xmlNaoLocalizadoNoBancoDeDadosRegistro", { registro: this.data.regPlaneja }));
            return;
        }
    };
    IntegracaoPatioIndexComponent.prototype.getXmlRetorno = function () {
        if (!this.itemSelecionado())
            return;
        this.xmlIntegracaoRetorno = this.getXml(this.data.xmlIntegracaoRetorno);
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].isEmpty(this.xmlIntegracaoRetorno)) {
            this.messageService.warning("titles.integracaoPatio", this.messageService.translate("messages.xmlNaoLocalizadoNoBancoDeDadosRegistro", { registro: this.data.regPlaneja }));
            return;
        }
    };
    IntegracaoPatioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _integracao_patio_service__WEBPACK_IMPORTED_MODULE_18__["IntegracaoPatioService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_15__["ExcelService"] },
        { type: app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_16__["ReportService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__["TableComponent"])
    ], IntegracaoPatioIndexComponent.prototype, "table", void 0);
    IntegracaoPatioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-integracao-patio-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./integracao-patio-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./integracao-patio-index.component.scss */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _integracao_patio_service__WEBPACK_IMPORTED_MODULE_18__["IntegracaoPatioService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_15__["ExcelService"],
            app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_16__["ReportService"]])
    ], IntegracaoPatioIndexComponent);
    return IntegracaoPatioIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.constants.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.constants.ts ***!
  \****************************************************************************************************/
/*! exports provided: IntegracaoPatioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPatioConstants", function() { return IntegracaoPatioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var IntegracaoPatioConstants = /** @class */ (function () {
    function IntegracaoPatioConstants() {
        this.sisFormularioId = 375158;
        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" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.marcarComoProcessada" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.reenviaNotaJaEnviada" },
        ];
        this.nomeForm = "titles.integracaoPatio";
        this.reportId = "GRN0014";
        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' },
            { title: 'marcarComoProcessada', action: "marcarComoProcessada", icon: "fa fa-thumb-tack", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: false },
            { title: 'reenviaNotaJaEnviada', action: "reenviaNotaJaEnviada", icon: "fa fa-share-square-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return IntegracaoPatioConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.model.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.model.ts ***!
  \************************************************************************************************/
/*! exports provided: IntegracaoPatioFilter, IntegracaoPatioDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPatioFilter", function() { return IntegracaoPatioFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPatioDto", function() { return IntegracaoPatioDto; });
/* 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 IntegracaoPatioFilter = /** @class */ (function () {
    function IntegracaoPatioFilter() {
        this.tipoPeriodo = "E";
        var periodoDe = new Date();
        periodoDe.setHours(0, 0, 1);
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(periodoDe, -5);
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
        this.placa = "";
        this.destinatarioIdCliente = 0;
        this.destinatarioIdTransportadora = 0;
        this.chaveNFE = "";
        this.integrado = "A";
        this.qtdeRegistro = "1000";
    }
    return IntegracaoPatioFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.module.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.module.ts ***!
  \*************************************************************************************************/
/*! exports provided: IntegracaoPatioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPatioModule", function() { return IntegracaoPatioModule; });
/* 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_patio_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./integracao-patio.routing.module */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.routing.module.ts");
/* harmony import */ var _integracao_patio_index_integracao_patio_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./integracao-patio-index/integracao-patio-index.component */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-index.component.ts");
/* harmony import */ var _integracao_patio_filter_integracao_patio_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./integracao-patio-filter/integracao-patio-filter.component */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-filter/integracao-patio-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 IntegracaoPatioModule = /** @class */ (function () {
    function IntegracaoPatioModule() {
    }
    IntegracaoPatioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _integracao_patio_routing_module__WEBPACK_IMPORTED_MODULE_2__["IntegracaoPatioRoutingModule"]],
            declarations: [
                _integracao_patio_index_integracao_patio_index_component__WEBPACK_IMPORTED_MODULE_3__["IntegracaoPatioIndexComponent"],
                _integracao_patio_filter_integracao_patio_filter_component__WEBPACK_IMPORTED_MODULE_4__["IntegracaoPatioFilterComponent"],
            ]
        })
    ], IntegracaoPatioModule);
    return IntegracaoPatioModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.routing.module.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.routing.module.ts ***!
  \*********************************************************************************************************/
/*! exports provided: IntegracaoPatioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPatioRoutingModule", function() { return IntegracaoPatioRoutingModule; });
/* 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_patio_index_integracao_patio_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./integracao-patio-index/integracao-patio-index.component */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio-index/integracao-patio-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_patio_index_integracao_patio_index_component__WEBPACK_IMPORTED_MODULE_2__["IntegracaoPatioIndexComponent"],
        data: { breadcrumb: "integracaoPatio" }
    }
];
var IntegracaoPatioRoutingModule = /** @class */ (function () {
    function IntegracaoPatioRoutingModule() {
    }
    IntegracaoPatioRoutingModule = __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"]]
        })
    ], IntegracaoPatioRoutingModule);
    return IntegracaoPatioRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.service.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.service.ts ***!
  \**************************************************************************************************/
/*! exports provided: IntegracaoPatioService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPatioService", function() { return IntegracaoPatioService; });
/* 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 _integracao_patio_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./integracao-patio.model */ "./src/app/pages/especificos/granel/movimentos/integracao-patio/integracao-patio.model.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __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 IntegracaoPatioService = /** @class */ (function () {
    function IntegracaoPatioService(http, message) {
        this.http = http;
        this.message = message;
        this.filtro = new _integracao_patio_model__WEBPACK_IMPORTED_MODULE_5__["IntegracaoPatioFilter"]();
    }
    IntegracaoPatioService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/granel/integracaoPatio/filter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoPatioService.prototype.selecionar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/granel/integracaoPatio/selecionar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoPatioService.prototype.selecionarTodos = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/granel/integracaoPatio/selecionarTodos", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoPatioService.prototype.reprocessar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/granel/integracaoPatio/reprocessar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoPatioService.prototype.registroNaoEnviado = function (selecao) {
        var result = selecao !== "S";
        if (result)
            this.message.warning("titles.integracaoPatio", "messages.registroSelecionadoNaoFoiEnviado");
        return result;
    };
    IntegracaoPatioService.prototype.marcarComoProcessada = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/granel/integracaoPatio/marcarComoProcessada", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoPatioService.prototype.reenviaNota = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/granel/integracaoPatio/reenviaNota", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    IntegracaoPatioService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] }
    ]; };
    IntegracaoPatioService = __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_6__["MessageService"]])
    ], IntegracaoPatioService);
    return IntegracaoPatioService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-granel-movimentos-integracao-patio-integracao-patio-module.js.map