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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-erros/motivacao-de-veiculos-erros.component.html":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-erros/motivacao-de-veiculos-erros.component.html ***!
  \***************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"motivacao-de-veiculos-erros-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-lg\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.errosMotivacaoDeVeiculos' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\r\n                    <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                        <thead>\r\n                            <tr>\r\n                                <th class=\"text-right\" width=\"15%\">{{ 'labels.numeroOS' | translate }}</th>\r\n                                <th width=\"15%\">{{ 'labels.placa' | translate }}</th>\r\n                                <th>{{ 'labels.erro' | translate }}</th>\r\n                            </tr>\r\n                        </thead>\r\n                        <tbody>\r\n                            <tr *ngFor=\"let item of dados\">\r\n                                <td class=\"text-right\" width=\"15%\">{{ item.regPlaneja }}</td>\r\n                                <td width=\"15%\">{{ item.placa }}</td>\r\n                                <td style=\"white-space: pre-wrap;\">{{ item.msgErro | translate }}</td>\r\n                            </tr>\r\n                        </tbody>\r\n                    </table>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | 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/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.html":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"itemSelecionado\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <app-table>\r\n        <div class=\"table-responsive\">\r\n            <table id=\"dtMotivacaoDeVeiculos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                <thead>\r\n                    <tr>\r\n                        <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\r\n                        <th class=\"text-right\">{{ 'labels.numeroOS' | translate}}</th>\r\n                        <th class=\"text-center\">{{ 'labels.emissao' | translate}}</th>\r\n                        <th class=\"text-center\">{{ 'labels.prevChegada' | translate}}</th>\r\n                        <th style=\"white-space: nowrap;\">{{ 'labels.cliente' | translate}}</th>\r\n                        <th style=\"white-space: nowrap;\">{{ 'labels.motorista' | translate}}</th>\r\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaCavalo' | translate}}</th>\r\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaCarreta1' | translate}}</th>\r\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaCarreta2' | translate}}</th>\r\n                        <th style=\"white-space: nowrap;\">{{ 'labels.situacao' | translate}}</th>\r\n                        <th style=\"white-space: nowrap;\">{{ 'labels.descricaoDoErro' | translate}}</th>\r\n                    </tr>\r\n                </thead>\r\n                <tbody>\r\n                    <tr *ngFor=\"let d of dados; index as i\"\r\n                        [class.selected]=\"itemSelecionado.regPlaneja === d.regPlaneja\" (click)=\"_click(d)\"\r\n                        (dblclick)=\"_dbClick(d)\">\r\n                        <td class=\"text-center\">\r\n                            <label class=\"chk\">\r\n                                <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\r\n                                    (ngModelChange)=\"d.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"d.selecionado\"\r\n                                    style=\"margin-left:auto; margin-right:auto;\" disabled>\r\n                                <span [ngClass]=\"{'red':d.selecionado === 'S'}\"></span>\r\n                            </label>\r\n                        </td>\r\n                        <td class=\"text-right\">{{ d.regPlaneja }}</td>\r\n                        <td style=\"white-space: nowrap;\">{{ d.dtEmissao | date: 'dd/MM/yyyy HH:mm'}}</td>\r\n                        <td style=\"white-space: nowrap;\">{{ d.dtPrevisaoChegada | date: 'dd/MM/yyyy HH:mm'}}</td>\r\n                        <td>{{ d.cliente }}</td>\r\n                        <td>{{ d.nomeMotorista }}</td>\r\n                        <td>{{ d.placaCavalo }}</td>\r\n                        <td>{{ d.placaCarreta1 }}</td>\r\n                        <td>{{ d.placaCarreta2 }}</td>\r\n                        <td>{{ d.situacao }}</td>\r\n                        <td>{{ d.descrErro }}</td>\r\n                    </tr>\r\n                    <tr *ngIf=\"!hasDados\">\r\n                        <th colspan=\"15\" style=\"text-align: center\">\r\n                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                        </th>\r\n                    </tr>\r\n                </tbody>\r\n            </table>\r\n        </div>\r\n    </app-table>\r\n    <div class=\"mt-4\">\r\n        <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\" [disabled]=\"dados.length === 0\">\r\n            {{ 'buttons.selecionarTodos' | translate }}\r\n        </button>\r\n        <button class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\" type=\"button\" [disabled]=\"dados.length === 0 || itensSelecionados.length === 0\">\r\n            {{ 'buttons.desmarcarTodos' | translate }}\r\n        </button>\r\n        <button class=\"btn btn-success mr-2\" (click)=\"onSubmit()\" type=\"button\"\r\n            [disabled]=\"itensSelecionados.length === 0\">\r\n            {{ 'buttons.enviarSelecionados' | translate }}\r\n        </button>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-motivacao-de-veiculos-erros [dados]=\"dataErros\" (executa)=\"executaRefresh()\"></app-motivacao-de-veiculos-erros>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-erros/motivacao-de-veiculos-erros.component.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-erros/motivacao-de-veiculos-erros.component.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: MotivacaoDeVeiculosErrosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MotivacaoDeVeiculosErrosComponent", function() { return MotivacaoDeVeiculosErrosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var MotivacaoDeVeiculosErrosComponent = /** @class */ (function () {
    function MotivacaoDeVeiculosErrosComponent() {
        this.executa = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    MotivacaoDeVeiculosErrosComponent.prototype.ngOnInit = function () {
    };
    MotivacaoDeVeiculosErrosComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.executa.emit();
        }
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], MotivacaoDeVeiculosErrosComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MotivacaoDeVeiculosErrosComponent.prototype, "executa", void 0);
    MotivacaoDeVeiculosErrosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-motivacao-de-veiculos-erros",
            template: __importDefault(__webpack_require__(/*! raw-loader!./motivacao-de-veiculos-erros.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-erros/motivacao-de-veiculos-erros.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        })
    ], MotivacaoDeVeiculosErrosComponent);
    return MotivacaoDeVeiculosErrosComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.scss":
/*!*************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.scss ***!
  \*************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\n.selected {\n  background-color: #b4d7eb !important;\n}\n\n.table th,\n.table td {\n  white-space: nowrap;\n}\n\n.table-responsive {\n  overflow: auto;\n  max-height: 420px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvbW92aW1lbnRvcy9tb3RpdmFjYW8tZGUtdmVpY3Vsb3MvbW90aXZhY2FvLWRlLXZlaWN1bG9zLWluZGV4L0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXHZvcGFrXFxtb3ZpbWVudG9zXFxtb3RpdmFjYW8tZGUtdmVpY3Vsb3NcXG1vdGl2YWNhby1kZS12ZWljdWxvcy1pbmRleFxcbW90aXZhY2FvLWRlLXZlaWN1bG9zLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy92b3Bhay9tb3ZpbWVudG9zL21vdGl2YWNhby1kZS12ZWljdWxvcy9tb3RpdmFjYW8tZGUtdmVpY3Vsb3MtaW5kZXgvbW90aXZhY2FvLWRlLXZlaWN1bG9zLWluZGV4LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKOztBREVBO0VBQ0ksb0NBQUE7QUNDSjs7QURFQTs7RUFFSSxtQkFBQTtBQ0NKOztBREVBO0VBQ0ksY0FBQTtFQUNBLGlCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy92b3Bhay9tb3ZpbWVudG9zL21vdGl2YWNhby1kZS12ZWljdWxvcy9tb3RpdmFjYW8tZGUtdmVpY3Vsb3MtaW5kZXgvbW90aXZhY2FvLWRlLXZlaWN1bG9zLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE0cHg7XHJcbiAgICBoZWlnaHQ6IDE0cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuLnNlbGVjdGVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNiNGQ3ZWIgIWltcG9ydGFudDtcclxufVxyXG5cclxuLnRhYmxlIHRoLFxyXG4udGFibGUgdGQge1xyXG4gICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcclxufVxyXG5cclxuLnRhYmxlLXJlc3BvbnNpdmUge1xyXG4gICAgb3ZlcmZsb3c6IGF1dG87XHJcbiAgICBtYXgtaGVpZ2h0OiA0MjBweDtcclxufVxyXG4iLCIuY2hrIGlucHV0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNoayBzcGFuIHtcbiAgd2lkdGg6IDE0cHg7XG4gIGhlaWdodDogMTRweDtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XG4gIGJvcmRlci1yYWRpdXM6IDE4cHg7XG59XG5cbnNwYW4ucmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcbn1cblxuLnNlbGVjdGVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2I0ZDdlYiAhaW1wb3J0YW50O1xufVxuXG4udGFibGUgdGgsXG4udGFibGUgdGQge1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xufVxuXG4udGFibGUtcmVzcG9uc2l2ZSB7XG4gIG92ZXJmbG93OiBhdXRvO1xuICBtYXgtaGVpZ2h0OiA0MjBweDtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: MotivacaoDeVeiculosIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MotivacaoDeVeiculosIndexComponent", function() { return MotivacaoDeVeiculosIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _motivacao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../motivacao-de-veiculos.model */ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.model.ts");
/* 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 _motivacao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../motivacao-de-veiculos.constants */ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.constants.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 _motivacao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../motivacao-de-veiculos.service */ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __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_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__ = __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_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __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 MotivacaoDeVeiculosIndexComponent = /** @class */ (function (_super) {
    __extends(MotivacaoDeVeiculosIndexComponent, _super);
    function MotivacaoDeVeiculosIndexComponent(service, configuracao, message, funcoes, permissoesUtils) {
        var _this = _super.call(this, new _motivacao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_4__["MotivacaoDeVeiculosConstants"](), funcoes) || this;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.itemSelecionado = new _motivacao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_1__["MotivacaoDeVeiculos"]();
        _this.itensSelecionados = [];
        _this.mensagens = [];
        _this.dataErros = [];
        _this.hasDados = false;
        _this.constantes = new _motivacao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_4__["MotivacaoDeVeiculosConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.constantes.configBAL.intCta = _this.configuracao.boolean("BAL", "IntCta");
                _this.constantes.configBAL.intCtaTipo = _this.configuracao.string("BAL", "IntCtaTipo");
                _this.constantes.configREL.r3sEq = _this.configuracao.string("REL", "R3sEq" + _this.configuracao.macAddress);
            }
        };
        return _this;
    }
    MotivacaoDeVeiculosIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.refresh();
            _this.getConfig();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    MotivacaoDeVeiculosIndexComponent.prototype.getConfig = function () {
        var _this = this;
        this.constantes.parametrosConfig.map(function (c) {
            if (c.sistema === 'REL') {
                c.parametros.push("R3sEq" + _this.configuracao.macAddress);
            }
        });
        this.configuracao.getConfig({ codRotina: this.constantes.sisFormularioId, configs: this.constantes.parametrosConfig }, this.loadConfig);
    };
    MotivacaoDeVeiculosIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.get().subscribe(function (resp) {
            _this.itemSelecionado = new _motivacao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_1__["MotivacaoDeVeiculos"]();
            _this.service.dados = resp;
            _this.atualizaItensSelecionados();
            _this.hasDados = resp && resp.length > 0;
        });
    };
    Object.defineProperty(MotivacaoDeVeiculosIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            var dados = this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].exist(v.regPlaneja, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtEmissao), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtPrevisaoChegada), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.nomeMotorista, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.placaCavalo, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.placaCarreta1, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.placaCarreta2, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.situacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.descrErro, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    MotivacaoDeVeiculosIndexComponent.prototype._click = function (obj) {
        this.itemSelecionado = obj;
    };
    MotivacaoDeVeiculosIndexComponent.prototype._dbClick = function (obj) {
        this.onMarcarDesmarcar(obj);
    };
    MotivacaoDeVeiculosIndexComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasDados) {
            this.message.warning("titles.motivacaoDeVeiculos", "messages.tabelaVazia");
            return;
        }
        this.dados.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MotivacaoDeVeiculosIndexComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasDados) {
            this.message.warning("titles.motivacaoDeVeiculos", "messages.tabelaVazia");
            return;
        }
        this.dados.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MotivacaoDeVeiculosIndexComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.atualizaItensSelecionados();
    };
    MotivacaoDeVeiculosIndexComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.atualizaItensSelecionados();
    };
    MotivacaoDeVeiculosIndexComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.atualizaItensSelecionados();
    };
    MotivacaoDeVeiculosIndexComponent.prototype.atualizaItensSelecionados = function () {
        this.itensSelecionados = this.dados
            .filter(function (d) { return d.selecionado === "S"; })
            .map(function (d) {
            return {
                regPlaneja: d.regPlaneja,
                placa: d.placaCavalo
            };
        });
    };
    MotivacaoDeVeiculosIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.print.call(_this, null, true);
        });
    };
    MotivacaoDeVeiculosIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MotivacaoDeVeiculosIndexComponent.prototype.onSubmit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.validarItensSelecionados()) {
                return;
            }
            if (!_this.constantes.configBAL.intCta) {
                _this.message.warning("titles.motivacaoDeVeiculos", "messages.integracaoComControleDeAcessoDesativada");
                return;
            }
            if (_this.constantes.configBAL.intCtaTipo !== 'W-Access') {
                _this.message.warning("titles.motivacaoDeVeiculos", "messages.controleDeAcessoConfiguradoDiferenteWAccess");
                return;
            }
            if (_this.constantes.configREL.r3sEq !== 'D') {
                _this.message.warning("titles.motivacaoDeVeiculos", "messages.integracaoComR3SDesativada");
                return;
            }
            _this.message.confirm('titles.motivacaoDeVeiculos', 'messages.confirmaEnvioDosRegistrosSelecionados', null, function () { return _this.executaMotivaVeiculo(); });
        });
    };
    MotivacaoDeVeiculosIndexComponent.prototype.executaMotivaVeiculo = function () {
        return __awaiter(this, void 0, void 0, function () {
            var object;
            var _this = this;
            return __generator(this, function (_a) {
                object = {
                    itensSelecionados: this.itensSelecionados,
                    macAddress: this.configuracao.macAddress
                };
                this.service.motivaVeiculo(object)
                    .subscribe(function (resp) {
                    if (resp.length > 0) {
                        var erroValidation = resp.some(function (item) { return item.validationResult.erros; });
                        var xmlRetornouErro = resp.some(function (item) { return item.xmlRetornouErro === 'S'; });
                        if (erroValidation) {
                            if (xmlRetornouErro && resp.length > 1) {
                                _this.dataErros = [];
                                _this.dataErros = resp;
                                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ModalUtilsStaticService"].openModal("motivacao-de-veiculos-erros-dialog");
                            }
                            else {
                                resp.forEach(function (item) {
                                    item.validationResult.erros.forEach(function (erro) {
                                        _this.message.warning('titles.motivacaoDeVeiculos', erro.message);
                                    });
                                });
                                return;
                            }
                        }
                        else {
                            _this.message.success("titles.motivacaoDeVeiculos", "messages.registrosEnviadosComSucesso");
                            _this.refresh();
                        }
                    }
                    else {
                        _this.message.success("titles.motivacaoDeVeiculos", "messages.registrosEnviadosComSucesso");
                        _this.refresh();
                    }
                });
                return [2 /*return*/];
            });
        });
    };
    MotivacaoDeVeiculosIndexComponent.prototype.executaRefresh = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ModalUtilsStaticService"].closeModal("motivacao-de-veiculos-erros-dialog");
        this.refresh();
        return;
    };
    MotivacaoDeVeiculosIndexComponent.prototype.validarItensSelecionados = function () {
        if (this.itensSelecionados.length === 0) {
            this.message.warning("titles.motivacaoDeVeiculos", "messages.nenhumItemSelecionado");
            return false;
        }
        return true;
    };
    MotivacaoDeVeiculosIndexComponent.ctorParameters = function () { return [
        { type: _motivacao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_6__["MotivacaoDeVeiculosService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { 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_7__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_8__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_8__["TableComponent"])
    ], MotivacaoDeVeiculosIndexComponent.prototype, "table", void 0);
    MotivacaoDeVeiculosIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-motivacao-de-veiculos-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./motivacao-de-veiculos-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./motivacao-de-veiculos-index.component.scss */ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_motivacao_de_veiculos_service__WEBPACK_IMPORTED_MODULE_6__["MotivacaoDeVeiculosService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], MotivacaoDeVeiculosIndexComponent);
    return MotivacaoDeVeiculosIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.constants.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.constants.ts ***!
  \*************************************************************************************************************/
/*! exports provided: MotivacaoDeVeiculosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MotivacaoDeVeiculosConstants", function() { return MotivacaoDeVeiculosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MotivacaoDeVeiculosConstants = /** @class */ (function () {
    function MotivacaoDeVeiculosConstants() {
        this.sisFormularioId = 65732;
        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.enviarSelecionados" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.motivacaoDeVeiculos";
        this.reportTitulo = { "titulo": "Motivação de Veículos", "subTitulo": "" };
        this.reportId = "VOP0063";
        this.listaIndex = [
            { 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.parametrosConfig = [
            {
                sistema: 'BAL', parametros: [
                    'IntCta',
                    'IntCtaTipo'
                ]
            },
            {
                sistema: 'REL', parametros: []
            }
        ];
        this.configBAL = {
            intCta: false,
            intCtaTipo: ""
        };
        this.configREL = {
            r3sEq: ""
        };
    }
    return MotivacaoDeVeiculosConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.model.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.model.ts ***!
  \*********************************************************************************************************/
/*! exports provided: MotivacaoDeVeiculos, MotivaVeiculosItensEnviados */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.module.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.module.ts ***!
  \**********************************************************************************************************/
/*! exports provided: MotivacaoDeVeiculosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MotivacaoDeVeiculosModule", function() { return MotivacaoDeVeiculosModule; });
/* 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 _motivacao_de_veiculos_index_motivacao_de_veiculos_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./motivacao-de-veiculos-index/motivacao-de-veiculos-index.component */ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.ts");
/* harmony import */ var _motivacao_de_veiculos_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./motivacao-de-veiculos.routing.module */ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.routing.module.ts");
/* harmony import */ var _motivacao_de_veiculos_erros_motivacao_de_veiculos_erros_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./motivacao-de-veiculos-erros/motivacao-de-veiculos-erros.component */ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-erros/motivacao-de-veiculos-erros.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 MotivacaoDeVeiculosModule = /** @class */ (function () {
    function MotivacaoDeVeiculosModule() {
    }
    MotivacaoDeVeiculosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _motivacao_de_veiculos_routing_module__WEBPACK_IMPORTED_MODULE_3__["MotivacaoDeVeiculosRoutingModule"]],
            declarations: [_motivacao_de_veiculos_index_motivacao_de_veiculos_index_component__WEBPACK_IMPORTED_MODULE_2__["MotivacaoDeVeiculosIndexComponent"], _motivacao_de_veiculos_erros_motivacao_de_veiculos_erros_component__WEBPACK_IMPORTED_MODULE_4__["MotivacaoDeVeiculosErrosComponent"]]
        })
    ], MotivacaoDeVeiculosModule);
    return MotivacaoDeVeiculosModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.routing.module.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.routing.module.ts ***!
  \******************************************************************************************************************/
/*! exports provided: MotivacaoDeVeiculosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MotivacaoDeVeiculosRoutingModule", function() { return MotivacaoDeVeiculosRoutingModule; });
/* 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 _motivacao_de_veiculos_index_motivacao_de_veiculos_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./motivacao-de-veiculos-index/motivacao-de-veiculos-index.component */ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos-index/motivacao-de-veiculos-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: "",
        component: _motivacao_de_veiculos_index_motivacao_de_veiculos_index_component__WEBPACK_IMPORTED_MODULE_3__["MotivacaoDeVeiculosIndexComponent"],
        data: { breadcrumb: "motivacaoDeVeiculos", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var MotivacaoDeVeiculosRoutingModule = /** @class */ (function () {
    function MotivacaoDeVeiculosRoutingModule() {
    }
    MotivacaoDeVeiculosRoutingModule = __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"]]
        })
    ], MotivacaoDeVeiculosRoutingModule);
    return MotivacaoDeVeiculosRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.service.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/motivacao-de-veiculos/motivacao-de-veiculos.service.ts ***!
  \***********************************************************************************************************/
/*! exports provided: MotivacaoDeVeiculosService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MotivacaoDeVeiculosService", function() { return MotivacaoDeVeiculosService; });
/* 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 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.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 MotivacaoDeVeiculosService = /** @class */ (function (_super) {
    __extends(MotivacaoDeVeiculosService, _super);
    function MotivacaoDeVeiculosService(http) {
        var _this = _super.call(this, http, "vopak/motivacaoDeVeiculos") || this;
        _this.http = http;
        _this.dados = [];
        return _this;
    }
    MotivacaoDeVeiculosService.prototype.motivaVeiculo = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/motivacaoDeVeiculos/motivaVeiculo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MotivacaoDeVeiculosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    MotivacaoDeVeiculosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], MotivacaoDeVeiculosService);
    return MotivacaoDeVeiculosService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-movimentos-motivacao-de-veiculos-motivacao-de-veiculos-module.js.map