(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-oiltanking-cadastros-simulador-cadastro-integracao-simulador-cadastro-integracao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.component.html":
/*!*****************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.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.listaForm\" [formAction]=\"actionForm\" [itemData]=\"data.regPlaneja\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-form-legenda></app-form-legenda>\n    <div class=\"card-body widget-body\">\n        <form class=\"form\" #f=\"ngForm\">\n            <app-validacoes></app-validacoes>\n            <div class=\"row\">\n                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"nrOrdem\" class=\"required\">{{'labels.nrOrdem' | translate}}</label>\n                        <div class=\"input-group\">\n                            <input id=\"nrOrdem\" name=\"nrOrdem\" maxlength=\"30\" [(ngModel)]=\"data.numOrdem\"\n                                [required]=\"true\" (blur)=\"getDadosIntegracaoAutoload()\"\n                                class=\"form-control form-control-sm\" type=\"text\">\n                            <button type=\"button\" class=\"input-group-text\" (click)=\"getDadosIntegracaoAutoload()\">\n                                <i class=\"fa fa-search\"></i>\n                            </button>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"nrAgendamento\">{{'labels.nrAgendamento'|translate}}</label>\n                        <input type=\"text\" [(ngModel)]=\"data.regPlaneja\" id=\"nrAgendamento\" name=\"nrAgendamento\"\n                            class=\"form-control form-control-sm text-right\" [disabled]=\"true\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6 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\" [(ngModel)]=\"data.destinatarioIdCliente\"\n                            showInscricao=\"false\" showCgcCpf=\"false\" [inSelected]=\"data.cliente\" [disabled]=\"true\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-motorista id=\"motoristaId\" name=\"motoristaId\" label=\"motorista\"\n                            modalTitle=\"pesquisaMotorista\" [(ngModel)]=\"data.motoristaId\" [showCpf]=\"false\"\n                            [disabled]=\"true\" showCursos=\"false\" showDocumentos=\"false\"\n                            (outSelected)=\"data.motorista = $event\">\n                        </app-pesquisa-motorista>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\" tipoDestinatario=\"T\"\n                            modalTitle=\"pesquisaDeransportadora\" label=\"transportadora\"\n                            [(ngModel)]=\"data.destinatarioIdTransportadora\" showInscricao=\"false\" showCgcCpf=\"false\"\n                            [inSelected]=\"data.transportadora\" [disabled]=\"true\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"placaCavalo\">{{'labels.placaCavalo' | translate}}</label>\n                        <input id=\"placaCavalo\" name=\"placaCavalo\" [(ngModel)]=\"data.placaCavalo\"\n                            class=\"form-control form-control-sm\" type=\"text\" disabled>\n                    </div>\n                </div>\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"placaCarreta1\">{{'labels.placaCarreta1' | translate}}</label>\n                        <input id=\"placaCarreta1\" name=\"placaCarreta1\" [(ngModel)]=\"data.placaCarreta1\"\n                            class=\"form-control form-control-sm\" type=\"text\" disabled>\n                    </div>\n                </div>\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"placaCarreta2\">{{'labels.placaCarreta2' | translate}}</label>\n                        <input id=\"placaCarreta2\" name=\"placaCarreta2\" [(ngModel)]=\"data.placaCarreta2\"\n                            class=\"form-control form-control-sm\" type=\"text\" disabled>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"dtPrevisaoChegada\">{{ 'labels.dtPrevisaoChegada' | translate }}</label>\n                        <app-data-h-m-s id=\"dtPrevisaoChegada\" name=\"dtPrevisaoChegada\" [disabled]=\"true\"\n                            [(ngModel)]=\"data.dtPrevisaoChegada\">\n                        </app-data-h-m-s>\n                    </div>\n                </div>\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"dtChegadaPatio\">{{ 'labels.dtChegadaPatio' | translate }}</label>\n                        <app-data-h-m-s id=\"dtChegadaPatio\" name=\"dtChegadaPatio\" [disabled]=\"true\"\n                            [(ngModel)]=\"data.dtChegadaPatio\">\n                        </app-data-h-m-s>\n                    </div>\n                </div>\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"dtSaidaPatio\">{{ 'labels.dtSaidaPatio' | translate }}</label>\n                        <app-data-h-m-s id=\"dtSaidaPatio\" name=\"dtSaidaPatio\" [disabled]=\"true\"\n                            [(ngModel)]=\"data.dtSaidaPatio\">\n                        </app-data-h-m-s>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"qtdeNoShow\">{{'labels.qtdeNoShow' | translate}}</label>\n                        <input id=\"qtdeNoShow\" name=\"qtdeNoShow\" type=\"text\" [disabled]=\"true\" currencyMask\n                            [options]=\"funcoesService.optionCurrency(0)\" [(ngModel)]=\"data.qtdeNoShow\" maxlength=\"11\"\n                            class=\"form-control form-control-sm\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"dataHora\" class=\"required\">{{ 'labels.dataHora' | translate }}</label>\n                        <app-data-h-m-s id=\"dataHora\" name=\"dataHora\" [disabled]=\"false\" [(ngModel)]=\"data.dataHora\"\n                            [required]=\"true\">\n                        </app-data-h-m-s>\n                    </div>\n                </div>\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"area\">{{'labels.area' | translate}}</label>\n                        <input id=\"area\" name=\"area\" type=\"text\" [disabled]=\"false\" currencyMask\n                            [options]=\"funcoesService.optionCurrency(0)\" [(ngModel)]=\"data.area\" maxlength=\"11\"\n                            class=\"form-control form-control-sm\">\n                    </div>\n                </div>\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"baia\">{{'labels.baia' | translate}}</label>\n                        <input id=\"baia\" name=\"baia\" type=\"text\" [disabled]=\"false\" currencyMask\n                            [options]=\"funcoesService.optionCurrency(0)\" [(ngModel)]=\"data.baia\" maxlength=\"11\"\n                            class=\"form-control form-control-sm\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row mt-3\">\n                <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                    <div class=\"form-group d-flex justify-content-between\">\n                        <button type=\"button\" class=\"btn btn-success flex-fill mr-2\" (click)=\"chegadaPatio()\">\n                            <i class=\"fa fa-check\"></i> {{ 'buttons.chegadaPatio' | translate }}\n                        </button>\n                        <button type=\"button\" class=\"btn btn-success flex-fill mr-2\" (click)=\"saidaPatio()\">\n                            <i class=\"fa fa-check\"></i> {{ 'buttons.saidaPatio' | translate }}\n                        </button>\n                        <button type=\"button\" class=\"btn btn-success flex-fill\" (click)=\"noShow()\">\n                            <i class=\"fa fa-check\"></i> {{ 'buttons.noShow' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                    <div class=\"form-group d-flex justify-content-between\">\n                        <button type=\"button\" class=\"btn btn-success flex-fill mr-2\" (click)=\"autorizacaoEntrada()\">\n                            <i class=\"fa fa-check\"></i> {{ 'buttons.autDeEntrada' | translate }}\n                        </button>\n                        <button type=\"button\" class=\"btn btn-success flex-fill\" (click)=\"fimOperacao()\">\n                            <i class=\"fa fa-check\"></i> {{ 'buttons.fimOperacao' | translate }}\n                        </button>\n                    </div>\n                </div>\n                <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                    <div class=\"form-group d-flex justify-content-between\">\n                        <button type=\"button\" class=\"btn btn-default flex-fill\" (click)=\"cancelar()\">\n                            <i class=\"fa fa-close\"></i> {{ 'buttons.cancelar' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\n    [itemData]=\"data.regPlaneja\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtSimuladorCadastroIntegracao\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.component.ts":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.component.ts ***!
  \*************************************************************************************************************************************************************************/
/*! exports provided: SimuladorCadastroIntegracaoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimuladorCadastroIntegracaoFormComponent", function() { return SimuladorCadastroIntegracaoFormComponent; });
/* 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_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _simulador_cadastro_integracao_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../simulador-cadastro-integracao.model */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.model.ts");
/* harmony import */ var _simulador_cadastro_integracao_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../simulador-cadastro-integracao.constants */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.constants.ts");
/* harmony import */ var _simulador_cadastro_integracao_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../simulador-cadastro-integracao.service */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.service */ "./src/app/pages/cadastro/motorista/motorista.service.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __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_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


















var SimuladorCadastroIntegracaoFormComponent = /** @class */ (function (_super) {
    __extends(SimuladorCadastroIntegracaoFormComponent, _super);
    function SimuladorCadastroIntegracaoFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, configuracao, destinatarioService, motoristaService) {
        var _this = _super.call(this, new _simulador_cadastro_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["SimuladorCadastroIntegracaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.configuracao = configuracao;
        _this.destinatarioService = destinatarioService;
        _this.motoristaService = motoristaService;
        _this.data = new _simulador_cadastro_integracao_model__WEBPACK_IMPORTED_MODULE_7__["SimuladorCadastroIntegracaoAutoload"]();
        _this.mensagens = [];
        _this.horas = [];
        _this.constantes = new _simulador_cadastro_integracao_constants__WEBPACK_IMPORTED_MODULE_8__["SimuladorCadastroIntegracaoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/oiltanking/cadastros/simuladorCadastroIntegracao";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    SimuladorCadastroIntegracaoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.data = new _simulador_cadastro_integracao_model__WEBPACK_IMPORTED_MODULE_7__["SimuladorCadastroIntegracaoAutoload"]();
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.getDadosIntegracaoAutoload = function () {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit();
        if (!this.data.numOrdem) {
            this.messageService.warning("titles.simuladorCadastroIntegracao", "messages.informeNumeroOrdemAutoload");
            this.data = new _simulador_cadastro_integracao_model__WEBPACK_IMPORTED_MODULE_7__["SimuladorCadastroIntegracaoAutoload"]();
            return;
        }
        this.service.getIntegracaoAutoload(this.data.numOrdem).subscribe(function (result) {
            if (!result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.data = new _simulador_cadastro_integracao_model__WEBPACK_IMPORTED_MODULE_7__["SimuladorCadastroIntegracaoAutoload"]();
                return;
            }
            else {
                _this.data = result;
                _this.trataData();
            }
        });
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.trataData = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                Object(rxjs__WEBPACK_IMPORTED_MODULE_11__["forkJoin"])([
                    this.destinatarioService.getById(this.data.destinatarioIdCliente),
                    this.motoristaService.getById(this.data.motoristaId),
                    this.destinatarioService.getById(this.data.destinatarioIdTransportadora)
                ]).subscribe(function (resp) {
                    _this.data.cliente = !!resp[0] ? resp[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_13__["Destinatario"]();
                    _this.data.motorista = !!resp[1] ? resp[1] : new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_15__["Motorista"]();
                    _this.data.transportadora = !!resp[2] ? resp[2] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_13__["Destinatario"]();
                });
                return [2 /*return*/];
            });
        });
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.chegadaPatio = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (!this.validations())
                    return [2 /*return*/];
                this.messageService.confirm("titles.simuladorCadastroIntegracao", "messages.confirmaRegistroChegadaPatioAgendamento", 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: return [4 /*yield*/, this.service.chegadaPatio(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.simuladorCadastroIntegracao", m); });
                                    return [2 /*return*/];
                                }
                                else {
                                    this.messageService.success('titles.simuladorCadastroIntegracao', 'messages.registradoComSucesso');
                                    this.limparDados();
                                }
                                return [2 /*return*/];
                        }
                    });
                }); });
                return [2 /*return*/];
            });
        });
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.saidaPatio = function () {
        var _this = this;
        if (!this.validations())
            return;
        this.messageService.confirm("titles.simuladorCadastroIntegracao", "messages.confirmaRegistroSaidaPatioAgendamento", 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: return [4 /*yield*/, this.service.saidaPatio(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.simuladorCadastroIntegracao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success('titles.simuladorCadastroIntegracao', 'messages.registradoComSucesso');
                            this.limparDados();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.noShow = function () {
        var _this = this;
        if (!this.validations())
            return;
        this.messageService.confirm("titles.simuladorCadastroIntegracao", "messages.confirmaRegistroNoShowAgendamento", 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: return [4 /*yield*/, this.service.noShow(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.simuladorCadastroIntegracao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success('titles.simuladorCadastroIntegracao', 'messages.registradoComSucesso');
                            this.limparDados();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.autorizacaoEntrada = function () {
        var _this = this;
        if (!this.validations(true))
            return;
        this.messageService.confirm("titles.simuladorCadastroIntegracao", "messages.confirmaRegistroAutEntradaAgendamento", 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: return [4 /*yield*/, this.service.autorizacaoEntrada(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.simuladorCadastroIntegracao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success('titles.simuladorCadastroIntegracao', 'messages.registradoComSucesso');
                            this.limparDados();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.fimOperacao = function () {
        var _this = this;
        if (!this.validations())
            return;
        this.messageService.confirm("titles.simuladorCadastroIntegracao", "messages.confirmaRegistroFimOperacaoAgendamento", 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: return [4 /*yield*/, this.service.fimOperacao(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.simuladorCadastroIntegracao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success('titles.simuladorCadastroIntegracao', 'messages.registradoComSucesso');
                            this.limparDados();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.cancelar = function () {
        this.limparDados();
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.validations = function (isAutEntrada) {
        if (isAutEntrada === void 0) { isAutEntrada = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit();
        this.mensagens = [];
        var r = { "isValid": true };
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["StringUtilsStaticService"].isEmpty(this.data.numOrdem)) {
            r.isValid = false;
            this.mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.nrOrdem') }));
        }
        if (!this.data.dataHora) {
            r.isValid = false;
            this.mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.dataHora') }));
        }
        if (isAutEntrada) {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].isNotPositive(this.data.area)) {
                r.isValid = false;
                this.mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.area') }));
            }
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].isNotPositive(this.data.baia)) {
                r.isValid = false;
                this.mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.baia') }));
            }
        }
        if (!r.isValid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(this.mensagens);
            this.funcoesService.backToTop();
            return false;
        }
        return true;
    };
    SimuladorCadastroIntegracaoFormComponent.prototype.limparDados = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit();
        this.data = new _simulador_cadastro_integracao_model__WEBPACK_IMPORTED_MODULE_7__["SimuladorCadastroIntegracaoAutoload"]();
        this.funcoesService.focus('nrOrdem');
    };
    SimuladorCadastroIntegracaoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _simulador_cadastro_integracao_service__WEBPACK_IMPORTED_MODULE_9__["SimuladorCadastroIntegracaoService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__["DestinatarioService"] },
        { type: app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_14__["MotoristaService"] }
    ]; };
    SimuladorCadastroIntegracaoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-simulador-cadastro-integracao-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./simulador-cadastro-integracao-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _simulador_cadastro_integracao_service__WEBPACK_IMPORTED_MODULE_9__["SimuladorCadastroIntegracaoService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__["DestinatarioService"],
            app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_14__["MotoristaService"]])
    ], SimuladorCadastroIntegracaoFormComponent);
    return SimuladorCadastroIntegracaoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-index/simulador-cadastro-integracao-index.component.ts":
/*!***************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-index/simulador-cadastro-integracao-index.component.ts ***!
  \***************************************************************************************************************************************************************************/
/*! exports provided: SimuladorCadastroIntegracaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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












var SimuladorCadastroIntegracaoIndexComponent = /** @class */ (function (_super) {
    __extends(SimuladorCadastroIntegracaoIndexComponent, _super);
    function SimuladorCadastroIntegracaoIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _simulador_cadastro_integracao_constants__WEBPACK_IMPORTED_MODULE_9__["SimuladorCadastroIntegracaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _simulador_cadastro_integracao_model__WEBPACK_IMPORTED_MODULE_10__["SimuladorCadastroIntegracao"]();
        _this.constantes = new _simulador_cadastro_integracao_constants__WEBPACK_IMPORTED_MODULE_9__["SimuladorCadastroIntegracaoConstants"]();
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/oiltanking/cadastros/simuladorCadastroIntegracao";
        _this.gerarCodIntegracao = function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
                    var _this = this;
                    return __generator(this, function (_a) {
                        if (!this.itemSelecionado())
                            return [2 /*return*/];
                        this.messageService.confirm("titles.simuladorCadastroIntegracao", "messages.confirmaGeracao", null, function () { return __awaiter(_this, void 0, void 0, function () {
                            var ret;
                            var _this = this;
                            return __generator(this, function (_a) {
                                switch (_a.label) {
                                    case 0: return [4 /*yield*/, this.service.gerarCodIntegracao(this.data.regPlaneja).toPromise()];
                                    case 1:
                                        ret = _a.sent();
                                        if (!ret.isValid) {
                                            ret.erros.forEach(function (m) { return _this.messageService.warning('titles.simuladorCadastroIntegracao', m.message); });
                                            return [2 /*return*/];
                                        }
                                        else {
                                            this.messageService.success('titles.simuladorCadastroIntegracao', 'messages.codigoGeradoComSucesso');
                                            this.refresh();
                                        }
                                        return [2 /*return*/];
                                }
                            });
                        }); });
                        return [2 /*return*/];
                    });
                }); });
                return [2 /*return*/];
            });
        }); };
        _this.integracaoAutoload = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    this.router.navigate(["" + this.target + this.pageRoute + "/integracaoAutoload"]);
                    return [2 /*return*/];
                });
            }); });
        };
        _this.login = loginService.getLogin();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    SimuladorCadastroIntegracaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'gerarCodIntegracao', func: function () { return _this.gerarCodIntegracao; } },
            { action: 'integracaoAutoload', func: function () { return _this.integracaoAutoload; } }
        ]);
    };
    SimuladorCadastroIntegracaoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.data = new _simulador_cadastro_integracao_model__WEBPACK_IMPORTED_MODULE_10__["SimuladorCadastroIntegracao"]();
        this.service.get().subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataStringAlignRight('regPlaneja', 'planejamento'),
                _this.datatablesService.getDataDateTime('dtPrevisaoChegada', 'dtPrevisaoChegada', 'DD/MM/YYYY HH:mm:ss', '10%'),
                _this.datatablesService.getDataStringAlignRight('destinatarioIdCliente', 'codiCliente'),
                _this.datatablesService.getDataString('fantasiaCliente', 'cliente'),
                _this.datatablesService.getDataStringAlignRight('destinatarioIdTransportadora', 'codTransp'),
                _this.datatablesService.getDataString('fantasiaTransportadora', 'transportadora'),
                _this.datatablesService.getDataString('placaCavalo', 'placaCavalo'),
                _this.datatablesService.getDataString('materialId', 'codMaterial'),
                _this.datatablesService.getDataString('descrMater', 'material'),
                _this.datatablesService.getDataStringAlignRight('item', 'item'),
                _this.datatablesService.getDataDouble('volume', 'volume', 0)
            ];
            _this.datatablesService.toDataTable({ tableId: 'dtSimuladorCadastroIntegracao', columns: columns, columnOrder: 1, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["EOrientationOrder"].ASC, data: resp }, function (aData) {
                _this.data = aData;
            });
        });
    };
    SimuladorCadastroIntegracaoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.print.call(_this, null, true);
        });
    };
    SimuladorCadastroIntegracaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    SimuladorCadastroIntegracaoIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isNotPositive(this.data.regPlaneja)) {
            this.messageService.warning("titles.simuladorCadastroIntegracao", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    SimuladorCadastroIntegracaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _simulador_cadastro_integracao_service__WEBPACK_IMPORTED_MODULE_8__["SimuladorCadastroIntegracaoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] }
    ]; };
    SimuladorCadastroIntegracaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-simulador-cadastro-integracao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./simulador-cadastro-integracao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-index/simulador-cadastro-integracao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _simulador_cadastro_integracao_service__WEBPACK_IMPORTED_MODULE_8__["SimuladorCadastroIntegracaoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"]])
    ], SimuladorCadastroIntegracaoIndexComponent);
    return SimuladorCadastroIntegracaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.constants.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.constants.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: SimuladorCadastroIntegracaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimuladorCadastroIntegracaoConstants", function() { return SimuladorCadastroIntegracaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SimuladorCadastroIntegracaoConstants = /** @class */ (function () {
    function SimuladorCadastroIntegracaoConstants() {
        this.sisFormularioId = 375450;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.gerarCodIntegracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.integracaoAutoload" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.simuladorCadastroIntegracao";
        this.reportId = "OIL0014";
        this.reportTitulo = { "titulo": "Simulador Cadastro Integração", "subTitulo": "" };
        this.listaIndex = [
            { title: 'GerarCodIntegracao', action: 'gerarCodIntegracao', icon: "fa fa-cogs", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'IntegracaoAutoload', action: 'integracaoAutoload', icon: "fa fa-plug", exibeButton: true, eximeMenu: true, depitem: false, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return SimuladorCadastroIntegracaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.model.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.model.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: SimuladorCadastroIntegracao, SimuladorCadastroIntegracaoAutoload */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimuladorCadastroIntegracao", function() { return SimuladorCadastroIntegracao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimuladorCadastroIntegracaoAutoload", function() { return SimuladorCadastroIntegracaoAutoload; });
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



var SimuladorCadastroIntegracao = /** @class */ (function (_super) {
    __extends(SimuladorCadastroIntegracao, _super);
    function SimuladorCadastroIntegracao() {
        return _super.call(this) || this;
    }
    return SimuladorCadastroIntegracao;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var SimuladorCadastroIntegracaoAutoload = /** @class */ (function (_super) {
    __extends(SimuladorCadastroIntegracaoAutoload, _super);
    function SimuladorCadastroIntegracaoAutoload() {
        var _this = _super.call(this) || this;
        _this.destinatarioIdCliente = 0;
        _this.motoristaId = 0;
        _this.destinatarioIdTransportadora = 0;
        _this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.motorista = new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__["Motorista"]();
        _this.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        return _this;
    }
    return SimuladorCadastroIntegracaoAutoload;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.module.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.module.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: SimuladorCadastroIntegracaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimuladorCadastroIntegracaoModule", function() { return SimuladorCadastroIntegracaoModule; });
/* 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 _simulador_cadastro_integracao_index_simulador_cadastro_integracao_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./simulador-cadastro-integracao-index/simulador-cadastro-integracao-index.component */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-index/simulador-cadastro-integracao-index.component.ts");
/* harmony import */ var _simulador_cadastro_integracao_form_simulador_cadastro_integracao_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.component */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.component.ts");
/* harmony import */ var _simulador_cadastro_integracao_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./simulador-cadastro-integracao.routing.module */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.routing.module.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 SimuladorCadastroIntegracaoModule = /** @class */ (function () {
    function SimuladorCadastroIntegracaoModule() {
    }
    SimuladorCadastroIntegracaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _simulador_cadastro_integracao_index_simulador_cadastro_integracao_index_component__WEBPACK_IMPORTED_MODULE_2__["SimuladorCadastroIntegracaoIndexComponent"],
                _simulador_cadastro_integracao_form_simulador_cadastro_integracao_form_component__WEBPACK_IMPORTED_MODULE_3__["SimuladorCadastroIntegracaoFormComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _simulador_cadastro_integracao_routing_module__WEBPACK_IMPORTED_MODULE_4__["SimuladorCadastroIntegracaoRoutingModule"]
            ]
        })
    ], SimuladorCadastroIntegracaoModule);
    return SimuladorCadastroIntegracaoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.routing.module.ts":
/*!**************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.routing.module.ts ***!
  \**************************************************************************************************************************************/
/*! exports provided: SimuladorCadastroIntegracaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimuladorCadastroIntegracaoRoutingModule", function() { return SimuladorCadastroIntegracaoRoutingModule; });
/* 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_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _simulador_cadastro_integracao_index_simulador_cadastro_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./simulador-cadastro-integracao-index/simulador-cadastro-integracao-index.component */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-index/simulador-cadastro-integracao-index.component.ts");
/* harmony import */ var _simulador_cadastro_integracao_form_simulador_cadastro_integracao_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.component */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao-form/simulador-cadastro-integracao-form.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 SimuladorCadastroIntegracaoRoutes = [
    {
        path: "",
        component: _simulador_cadastro_integracao_index_simulador_cadastro_integracao_index_component__WEBPACK_IMPORTED_MODULE_3__["SimuladorCadastroIntegracaoIndexComponent"],
        data: {
            breadcrumb: "simuladorCadastroIntegracao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "integracaoAutoload",
        component: _simulador_cadastro_integracao_form_simulador_cadastro_integracao_form_component__WEBPACK_IMPORTED_MODULE_4__["SimuladorCadastroIntegracaoFormComponent"],
        data: {
            breadcrumb: "integracaoAutoloadSimulador"
        }
    }
];
var SimuladorCadastroIntegracaoRoutingModule = /** @class */ (function () {
    function SimuladorCadastroIntegracaoRoutingModule() {
    }
    SimuladorCadastroIntegracaoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(SimuladorCadastroIntegracaoRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], SimuladorCadastroIntegracaoRoutingModule);
    return SimuladorCadastroIntegracaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.service.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.service.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: SimuladorCadastroIntegracaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimuladorCadastroIntegracaoService", function() { return SimuladorCadastroIntegracaoService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _simulador_cadastro_integracao_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./simulador-cadastro-integracao.constants */ "./src/app/pages/especificos/oiltanking/cadastros/simulador-cadastro-integracao/simulador-cadastro-integracao.constants.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var SimuladorCadastroIntegracaoService = /** @class */ (function (_super) {
    __extends(SimuladorCadastroIntegracaoService, _super);
    function SimuladorCadastroIntegracaoService(http) {
        var _this = _super.call(this, http, "oiltanking/simuladorCadastroIntegracao") || this;
        _this.http = http;
        _this.constantes = new _simulador_cadastro_integracao_constants__WEBPACK_IMPORTED_MODULE_3__["SimuladorCadastroIntegracaoConstants"]();
        return _this;
    }
    SimuladorCadastroIntegracaoService.prototype.gerarCodIntegracao = function (regPlaneja) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/oiltanking/simuladorCadastroIntegracao/gerarCodIntegracao", { regPlaneja: regPlaneja })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    SimuladorCadastroIntegracaoService.prototype.getIntegracaoAutoload = function (numOrdem) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/oiltanking/simuladorCadastroIntegracao/getIntegracaoAutoload/" + numOrdem)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    SimuladorCadastroIntegracaoService.prototype.chegadaPatio = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/oiltanking/simuladorCadastroIntegracao/chegadaPatio", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    SimuladorCadastroIntegracaoService.prototype.saidaPatio = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/oiltanking/simuladorCadastroIntegracao/saidaPatio", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    SimuladorCadastroIntegracaoService.prototype.noShow = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/oiltanking/simuladorCadastroIntegracao/noShow", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    SimuladorCadastroIntegracaoService.prototype.autorizacaoEntrada = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/oiltanking/simuladorCadastroIntegracao/autorizacaoEntrada", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    SimuladorCadastroIntegracaoService.prototype.fimOperacao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/oiltanking/simuladorCadastroIntegracao/fimOperacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    SimuladorCadastroIntegracaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    SimuladorCadastroIntegracaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], SimuladorCadastroIntegracaoService);
    return SimuladorCadastroIntegracaoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-oiltanking-cadastros-simulador-cadastro-integracao-simulador-cadastro-integracao-module.js.map