(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-movimentos-trocar-motorista-trocar-motorista-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-filter/trocar-motorista-filter.component.html":
/*!**************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-filter/trocar-motorista-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 fade\" id=\"trocar-motorista-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.trocarMotorista' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"numeroOSf\">{{'labels.numeroOS' | translate}}</label>\r\n                                <input id=\"numeroOSf\" name=\"numeroOSf\" [(ngModel)]=\"service.filter.regPlaneja\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" mask=\"999999999\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                    [(ngModel)]=\"service.filter.destinatarioIdCliente\" showInscricao=\"false\"\r\n                                    showCgcCpf=\"false\" [inSelected]=\"service.filter.cliente\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-form/trocar-motorista-form.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-form/trocar-motorista-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=\"row\">\n    <div class=\"col-lg-12\">\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\" (ngSubmit)=\"onSubmit(f)\">\n                    <app-validacoes></app-validacoes>\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=\"numeroOS\">{{'labels.numeroOS' | translate}}</label>\n                                <input id=\"numeroOS\" name=\"numeroOS\" [(ngModel)]=\"data.regPlaneja\"\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=\"emissao\">{{'labels.emissao' | translate}}</label>\n                                <input id=\"emissao\" name=\"emissao\"\n                                    value=\"{{data.dtEmissao | date:'dd/MM/yyyy HH:mm:ss'}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled\n                                    data-title=\"{{'labels.emissao' | translate}}\">\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=\"previsaoChegada\">{{'labels.previsaoChegada' | translate}}</label>\n                                <input id=\"previsaoChegada\" name=\"previsaoChegada\"\n                                    value=\"{{data.dtPrevisaoChegada | date:'dd/MM/yyyy HH:mm:ss'}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled\n                                    data-title=\"{{'labels.previsaoChegada' | translate}}\">\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=\"tipoOperacao\">{{'labels.tipoOperacao' | translate}}</label>\n                                <input id=\"tipoOperacao\" name=\"tipoOperacao\" [(ngModel)]=\"data.tipoMov\"\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=\"planejamento\">{{'labels.planejamento' | translate}}</label>\n                                <input id=\"planejamento\" name=\"planejamento\" [(ngModel)]=\"data.regPlanejCarga\"\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=\"shipment\">{{'labels.shipment' | translate}}</label>\n                                <input id=\"shipment\" name=\"shipment\" [(ngModel)]=\"data.shipment\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled currencyMask\n                                    [options]=\"funcoesService.numberUtils.formatCurrency(0)\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-input-description label=\"cliente\" [valueID]=\"data.destinatarioIdCliente\"\n                                [valueDescription]=\"data.nomeCliente\" [valueDoc]=\"data.cnpjCliente\">\n                            </app-input-description>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-input-description label=\"clienteVenda\" [valueID]=\"data.destinatarioIdClienteVenda\"\n                                [valueDescription]=\"data.clienteVenda\" [valueDoc]=\"data.clienteVendaCnpj\">\n                            </app-input-description>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-input-description label=\"transportadora\" [valueID]=\"data.destinatarioIdTransportadora\"\n                                [valueDescription]=\"data.razaoTransp\" [valueDoc]=\"data.cnpjTransp\">\n                            </app-input-description>\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=\"cavalo\">{{'labels.cavalo' | translate}}</label>\n                                <input id=\"cavalo\" name=\"cavalo\" [(ngModel)]=\"data.cadastroPlacaIdCavalo\"\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=\"carreta1\">{{'labels.carreta1' | translate}}</label>\n                                <input id=\"carreta1\" name=\"carreta1\" [(ngModel)]=\"data.cadastroPlacaIdCarreta1\"\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=\"carreta2\">{{'labels.carreta2' | translate}}</label>\n                                <input id=\"carreta2\" name=\"carreta2\" [(ngModel)]=\"data.cadastroPlacaIdCarreta2\"\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=\"numContainer1\">{{'labels.Container1' | translate}}</label>\n                                <input id=\"numContainer1\" name=\"numContainer1\" [(ngModel)]=\"data.numContainer1\"\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=\"numContainer2\">{{'labels.Container2' | translate}}</label>\n                                <input id=\"numContainer2\" name=\"numContainer2\" [(ngModel)]=\"data.numContainer2\"\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-6 col-sm-12\">\n                            <app-input-description label=\"motorista\" [valueID]=\"data.motoristaId\"\n                                [valueDescription]=\"data.nomeMotorista\" [valueDoc]=\"data.cpfMotorista\">\n                            </app-input-description>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <app-input-description label=\"produto\" [valueID]=\"data.materialId\"\n                                [valueDescription]=\"data.produto\">\n                            </app-input-description>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-3 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label>{{ \"labels.quantid\" | translate }}</label>\n                                <input id=\"quantid\" name=\"quantid\" class=\"form-control form-control-sm\"\n                                    style=\"display: inline-block;width: 75%;margin-right: 5px;\" type=\"text\"\n                                    value=\"{{ data.quantid | formatCurrency: 0 }}\" disabled />\n                                <span><strong>{{ data.descrUnidade }}</strong></span>\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                                <label for=\"observ100\">{{'labels.observacao' | translate}}</label>\n                                <textarea id=\"observ100\" name=\"observ100\" [(ngModel)]=\"data.observ100\" maxlength=\"100\"\n                                    class=\"form-control form-control-sm\" disabled></textarea>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <app-card-container tituloCard=\"novoMotorista\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-8 col-sm-12\">\n                                        <app-pesquisa-motorista id=\"motorista\" name=\"motorista\" label=\"motorista\"\n                                            modalTitle=\"pesquisaMotorista\" [(ngModel)]=\"data.motoristaIdNew\"\n                                            [showCpf]=\"true\" [inputMotorista]=\"data.motorista\" required=\"true\"\n                                            (outMotorista)=\"trataMotorista($event)\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </app-pesquisa-motorista>\n                                    </div>\n                                </div>\n                            </app-card-container>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-motiva-motorista (ok)=\"outMotivaMotorista($event)\"></app-motiva-motorista>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-index/trocar-motorista-index.component.html":
/*!************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-index/trocar-motorista-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\" [itemData]=\"data.regPlaneja\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtTrocarMotorista\" 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>\n<app-trocar-motorista-filter (filtrar)=\"executaFiltro()\"></app-trocar-motorista-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-filter/trocar-motorista-filter.component.ts":
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-filter/trocar-motorista-filter.component.ts ***!
  \**********************************************************************************************************************************/
/*! exports provided: TrocarMotoristaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotoristaFilterComponent", function() { return TrocarMotoristaFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _trocar_motorista_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../trocar-motorista.service */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.service.ts");
/* harmony import */ var _trocar_motorista_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../trocar-motorista.model */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.model.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");
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 TrocarMotoristaFilterComponent = /** @class */ (function () {
    function TrocarMotoristaFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
    }
    TrocarMotoristaFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filter)
            this.service.filter = new _trocar_motorista_model__WEBPACK_IMPORTED_MODULE_3__["TrocarMotoristaFilter"]();
    };
    TrocarMotoristaFilterComponent.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;
        }
        this.filtrar.emit();
        jQuery("#trocar-motorista-filter-dialog").modal("hide");
    };
    TrocarMotoristaFilterComponent.ctorParameters = function () { return [
        { type: _trocar_motorista_service__WEBPACK_IMPORTED_MODULE_2__["TrocarMotoristaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TrocarMotoristaFilterComponent.prototype, "filtrar", void 0);
    TrocarMotoristaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-trocar-motorista-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./trocar-motorista-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-filter/trocar-motorista-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_trocar_motorista_service__WEBPACK_IMPORTED_MODULE_2__["TrocarMotoristaService"]])
    ], TrocarMotoristaFilterComponent);
    return TrocarMotoristaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-form/trocar-motorista-form.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-form/trocar-motorista-form.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: TrocarMotoristaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotoristaFormComponent", function() { return TrocarMotoristaFormComponent; });
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _trocar_motorista_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../trocar-motorista.model */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.model.ts");
/* harmony import */ var _trocar_motorista_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../trocar-motorista.constants */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.constants.ts");
/* harmony import */ var _trocar_motorista_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../trocar-motorista.service */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.service */ "./src/app/pages/cadastro/motorista/motorista.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__ = __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_15__ = __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 TrocarMotoristaFormComponent = /** @class */ (function (_super) {
    __extends(TrocarMotoristaFormComponent, _super);
    function TrocarMotoristaFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, destinatarioService, materialService, motoristaService, configuracao) {
        var _this = _super.call(this, new _trocar_motorista_constants__WEBPACK_IMPORTED_MODULE_10__["TrocarMotoristaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.motoristaService = motoristaService;
        _this.configuracao = configuracao;
        _this.data = new _trocar_motorista_model__WEBPACK_IMPORTED_MODULE_9__["TrocarMotoristaOsDto"]();
        _this.mensagens = [];
        _this.constantes = new _trocar_motorista_constants__WEBPACK_IMPORTED_MODULE_10__["TrocarMotoristaConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/movimentos/trocarMotorista";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TrocarMotoristaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getOrdemDeServico({ regPlaneja: +id }).subscribe(function (resp) {
                    if (resp) {
                        _this.data = resp;
                    }
                    else {
                        _this.messageService.warning("titles.trocarMotorista", "messages.naoExistemDados");
                        _this.back();
                    }
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    TrocarMotoristaFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    TrocarMotoristaFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            var validationResult, mensagens, validationResult1, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_12__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            this.funcoesService.backToTop();
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.podeTrocarMotorista({
                                entradaVeiculoId: this.data.entradaVeiculoId,
                                motoristaIdNew: this.data.motoristaIdNew,
                                motoristaId: this.data.motoristaId,
                                macAddress: this.configuracao.macAddress
                            }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!!validationResult.isValid) return [3 /*break*/, 2];
                        mensagens = this.messageService.validationResult(validationResult);
                        mensagens.forEach(function (m) { return _this.messageService.warning("titles.trocarMotorista", m); });
                        return [2 /*return*/];
                    case 2: return [4 /*yield*/, this.service.verificaMotoristaComEntradaEmAberto({
                            entradaVeiculoId: this.data.entradaVeiculoId,
                            motoristaIdNew: this.data.motoristaIdNew
                        }).toPromise()];
                    case 3:
                        validationResult1 = _a.sent();
                        if (!validationResult1.isValid) {
                            mensagens = this.messageService.validationResult(validationResult1);
                            if (validationResult1.message === "PERGUNTAR") {
                                this.messageService.confirm('titles.trocarMotorista', mensagens[0], null, function () { return _this.executeWsWAccessTrocaMotorista(); });
                            }
                        }
                        else {
                            this.executeWsWAccessTrocaMotorista();
                        }
                        _a.label = 4;
                    case 4: return [2 /*return*/];
                }
            });
        }); });
    };
    TrocarMotoristaFormComponent.prototype.executeMotivaMotorista = function () {
        if (this.data.entradaVeiculoId > 0)
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_12__["EventEmitterService"].get('emiMotivaMotorista').emit({ entradaVeiculoId: this.data.entradaVeiculoId });
    };
    TrocarMotoristaFormComponent.prototype.executeTrocaMotoristaOs = 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.trocaMotoristaOs({
                            regPlaneja: this.data.regPlaneja,
                            motoristaIdNew: this.data.motoristaIdNew
                        }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (this.funcoesService.isNotUndefinedOrNull(validationResult)) {
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.trocarMotorista", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.messageService.success("titles.trocarMotorista", "messages.motoristaAlteradoComSucesso");
                                this.back();
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    TrocarMotoristaFormComponent.prototype.trataMotorista = function (motorista) {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!motorista)
                            return [2 /*return*/];
                        _a = this.data;
                        return [4 /*yield*/, this.motoristaService.getMotoristaId(motorista.motoristaId).toPromise()];
                    case 1:
                        _a.motorista = _b.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    TrocarMotoristaFormComponent.prototype.outMotivaMotorista = function (ok) {
        this.executeWsWAccessTrocaMotorista();
    };
    TrocarMotoristaFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["NumberUtilsStaticService"].isPositive(_this.data.regPlaneja)) {
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.data.regPlaneja]);
            }
        });
    };
    TrocarMotoristaFormComponent.prototype.executeWsWAccessTrocaMotorista = 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.executeTrocaMotoristaOs()];
                    case 1:
                        _a.sent();
                        return [4 /*yield*/, this.service.wsWAccessTrocaMotorista({ entradaVeiculoId: this.data.entradaVeiculoId }).toPromise()];
                    case 2:
                        validationResult = _a.sent();
                        if (this.funcoesService.isNotUndefinedOrNull(validationResult)) {
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.trocarMotorista", m); });
                                return [2 /*return*/];
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    TrocarMotoristaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _trocar_motorista_service__WEBPACK_IMPORTED_MODULE_11__["TrocarMotoristaService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"] },
        { type: app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_13__["MotoristaService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"] }
    ]; };
    TrocarMotoristaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-trocar-motorista-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./trocar-motorista-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-form/trocar-motorista-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _trocar_motorista_service__WEBPACK_IMPORTED_MODULE_11__["TrocarMotoristaService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"],
            app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_13__["MotoristaService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"]])
    ], TrocarMotoristaFormComponent);
    return TrocarMotoristaFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-index/trocar-motorista-index.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-index/trocar-motorista-index.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: TrocarMotoristaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotoristaIndexComponent", function() { return TrocarMotoristaIndexComponent; });
/* 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_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _trocar_motorista_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../trocar-motorista.model */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.model.ts");
/* harmony import */ var _trocar_motorista_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../trocar-motorista.constants */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.constants.ts");
/* harmony import */ var _trocar_motorista_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../trocar-motorista.service */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var TrocarMotoristaIndexComponent = /** @class */ (function (_super) {
    __extends(TrocarMotoristaIndexComponent, _super);
    function TrocarMotoristaIndexComponent(router, service, message, funcoes, datatables, loginService, permissoesUtils) {
        var _this = _super.call(this, new _trocar_motorista_constants__WEBPACK_IMPORTED_MODULE_10__["TrocarMotoristaConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.datatables = datatables;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _trocar_motorista_model__WEBPACK_IMPORTED_MODULE_9__["TrocarMotorista"]();
        _this.constantes = new _trocar_motorista_constants__WEBPACK_IMPORTED_MODULE_10__["TrocarMotoristaConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/especificos/vopak/movimentos/trocarMotorista";
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TrocarMotoristaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    _this.service.filter = new _trocar_motorista_model__WEBPACK_IMPORTED_MODULE_9__["TrocarMotoristaFilter"]();
                    _this.funcoes.openModal("trocar-motorista-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    TrocarMotoristaIndexComponent.prototype.filtrar = function () {
        jQuery("#trocar-motorista-filter-dialog").modal('show');
    };
    TrocarMotoristaIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    TrocarMotoristaIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getDados(this.service.filter).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("regPlaneja", "numeroOS"),
                _this.datatables.getDataString("tipoMov", "tipo"),
                _this.datatables.getDataDateTime("dtEmissao", "emissao", "DD/MM/YYYY HH:mm", "15%"),
                _this.datatables.getDataDateTime("dtPrevisaoChegada", "prevChegada", "DD/MM/YYYY HH:mm", "15%"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataString("produto", "produto"),
                _this.datatables.getDataString("razaoTransp", "transportadora"),
                _this.datatables.getDataString("cadastroPlacaIdCavalo", "cavalo"),
                _this.datatables.getDataString("cadastroPlacaIdCarreta1", "carreta1"),
                _this.datatables.getDataString("cadastroPlacaIdCarreta2", "carreta2"),
            ];
            _this.datatables.toDataTable({ tableId: "dtTrocarMotorista", columns: columns, data: data, columnOrder: 0, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__["EOrientationOrder"].ASC }, function (aData) {
                _this.data = aData;
            });
        });
    };
    TrocarMotoristaIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isPositive(_this.data.regPlaneja)) {
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/detail/" + _this.data.regPlaneja]);
            }
        });
    };
    TrocarMotoristaIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isPositive(_this.data.regPlaneja)) {
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.data.regPlaneja]);
            }
        });
    };
    TrocarMotoristaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                regPlaneja: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(_this.service.filter.regPlaneja),
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(_this.service.filter.destinatarioIdCliente)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    TrocarMotoristaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TrocarMotoristaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _trocar_motorista_service__WEBPACK_IMPORTED_MODULE_11__["TrocarMotoristaService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__["DatatablesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    TrocarMotoristaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-trocar-motorista-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./trocar-motorista-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-index/trocar-motorista-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _trocar_motorista_service__WEBPACK_IMPORTED_MODULE_11__["TrocarMotoristaService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_8__["DatatablesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], TrocarMotoristaIndexComponent);
    return TrocarMotoristaIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.constants.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.constants.ts ***!
  \***************************************************************************************************/
/*! exports provided: TrocarMotoristaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotoristaConstants", function() { return TrocarMotoristaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TrocarMotoristaConstants = /** @class */ (function () {
    function TrocarMotoristaConstants() {
        this.sisFormularioId = 375072;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.trocarMotorista" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.trocarMotorista";
        this.reportId = "VOP0054";
        this.reportTitulo = { 'titulo': 'Trocar Motorista', 'subTitulo': '' };
        this.listaIndex = [
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'TrocarMotorista', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, 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: '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' }
        ];
        this.listaForm = [
            { title: 'TrocarMotorista', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [{ 'sistema': '', 'parametros': [''] }
        ];
    }
    return TrocarMotoristaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.model.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.model.ts ***!
  \***********************************************************************************************/
/*! exports provided: TrocarMotorista, TrocarMotoristaFilter, TrocarMotoristaOsDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotorista", function() { return TrocarMotorista; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotoristaFilter", function() { return TrocarMotoristaFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotoristaOsDto", function() { return TrocarMotoristaOsDto; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __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 TrocarMotorista = /** @class */ (function (_super) {
    __extends(TrocarMotorista, _super);
    function TrocarMotorista() {
        return _super.call(this) || this;
    }
    return TrocarMotorista;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var TrocarMotoristaFilter = /** @class */ (function () {
    function TrocarMotoristaFilter() {
        this.destinatarioIdCliente = 0;
    }
    return TrocarMotoristaFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.module.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.module.ts ***!
  \************************************************************************************************/
/*! exports provided: TrocarMotoristaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotoristaModule", function() { return TrocarMotoristaModule; });
/* 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 _trocar_motorista_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./trocar-motorista.routing.module */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.routing.module.ts");
/* harmony import */ var _trocar_motorista_index_trocar_motorista_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trocar-motorista-index/trocar-motorista-index.component */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-index/trocar-motorista-index.component.ts");
/* harmony import */ var _trocar_motorista_form_trocar_motorista_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./trocar-motorista-form/trocar-motorista-form.component */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-form/trocar-motorista-form.component.ts");
/* harmony import */ var _trocar_motorista_filter_trocar_motorista_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./trocar-motorista-filter/trocar-motorista-filter.component */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-filter/trocar-motorista-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 TrocarMotoristaModule = /** @class */ (function () {
    function TrocarMotoristaModule() {
    }
    TrocarMotoristaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _trocar_motorista_routing_module__WEBPACK_IMPORTED_MODULE_2__["TrocarMotoristaRoutingModule"]
            ],
            declarations: [
                _trocar_motorista_index_trocar_motorista_index_component__WEBPACK_IMPORTED_MODULE_3__["TrocarMotoristaIndexComponent"],
                _trocar_motorista_form_trocar_motorista_form_component__WEBPACK_IMPORTED_MODULE_4__["TrocarMotoristaFormComponent"],
                _trocar_motorista_filter_trocar_motorista_filter_component__WEBPACK_IMPORTED_MODULE_5__["TrocarMotoristaFilterComponent"]
            ]
        })
    ], TrocarMotoristaModule);
    return TrocarMotoristaModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.routing.module.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.routing.module.ts ***!
  \********************************************************************************************************/
/*! exports provided: TrocarMotoristaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarMotoristaRoutingModule", function() { return TrocarMotoristaRoutingModule; });
/* 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 _trocar_motorista_index_trocar_motorista_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trocar-motorista-index/trocar-motorista-index.component */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-index/trocar-motorista-index.component.ts");
/* harmony import */ var _trocar_motorista_form_trocar_motorista_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./trocar-motorista-form/trocar-motorista-form.component */ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista-form/trocar-motorista-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 MRoutes = [
    {
        path: "",
        component: _trocar_motorista_index_trocar_motorista_index_component__WEBPACK_IMPORTED_MODULE_3__["TrocarMotoristaIndexComponent"],
        data: { breadcrumb: "trocarMotorista", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "detail/:id",
        component: _trocar_motorista_form_trocar_motorista_form_component__WEBPACK_IMPORTED_MODULE_4__["TrocarMotoristaFormComponent"],
        data: {
            breadcrumb: "trocarMotorista",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "edit/:id",
        component: _trocar_motorista_form_trocar_motorista_form_component__WEBPACK_IMPORTED_MODULE_4__["TrocarMotoristaFormComponent"],
        data: {
            breadcrumb: "trocarMotorista",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    }
];
var TrocarMotoristaRoutingModule = /** @class */ (function () {
    function TrocarMotoristaRoutingModule() {
    }
    TrocarMotoristaRoutingModule = __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"]],
        })
    ], TrocarMotoristaRoutingModule);
    return TrocarMotoristaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.service.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/trocar-motorista/trocar-motorista.service.ts ***!
  \*************************************************************************************************/
/*! exports provided: TrocarMotoristaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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







var TrocarMotoristaService = /** @class */ (function (_super) {
    __extends(TrocarMotoristaService, _super);
    function TrocarMotoristaService(http) {
        var _this = _super.call(this, http, "vopak/trocarMotorista") || this;
        _this.filter = new _trocar_motorista_model__WEBPACK_IMPORTED_MODULE_6__["TrocarMotoristaFilter"]();
        return _this;
    }
    TrocarMotoristaService.prototype.getDados = function (data) {
        data.destinatarioIdCliente = !data.destinatarioIdCliente ? 0 : data.destinatarioIdCliente;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/trocarMotorista/getByFilter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    TrocarMotoristaService.prototype.getOrdemDeServico = function (data) {
        data.regPlaneja = !data.regPlaneja ? 0 : data.regPlaneja;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/trocarMotorista/getOrdemDeServico", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    TrocarMotoristaService.prototype.podeTrocarMotorista = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/trocarMotorista/podeTrocarMotorista", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    TrocarMotoristaService.prototype.verificaMotoristaComEntradaEmAberto = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/trocarMotorista/verificaMotoristaComEntradaEmAberto", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    TrocarMotoristaService.prototype.trocaMotoristaOs = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/trocarMotorista/trocaMotoristaOs", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    TrocarMotoristaService.prototype.wsWAccessTrocaMotorista = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/trocarMotorista/wsWAccessTrocaMotorista", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    TrocarMotoristaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    TrocarMotoristaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], TrocarMotoristaService);
    return TrocarMotoristaService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-movimentos-trocar-motorista-trocar-motorista-module.js.map