(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-rotinas-de-apoio-inativar-motorista-inativar-motorista-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-motorista-form.component.html":
/*!****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-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\n  [botoesComando]=\"constantes.listaForm\"\n  [itemData]=\"data.meses\"\n  [sisFormularioId]=\"constantes.sisFormularioId\"\n>\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-12\">\n              <label for=\"meses\">{{ \"labels.mesInatMot1\" | translate }}</label>\n              <input\n                id=\"meses\"\n                name=\"meses\"\n                [(ngModel)]=\"data.meses\"\n                maxlength=\"3\"\n                type=\"text\"\n                required=\"true\"\n                autofocus\n                mask=\"999\"\n                style=\"text-align: center; width: 50px;\"\n              />\n              <label for=\"meses\" class=\"required\">\n                {{ \"labels.mesInatMot2\" | translate }} ?\n              </label>\n              <button class=\"btn btn-success mr-2\" type=\"submit\">\n                {{ \"buttons.sim\" | translate }}\n              </button>\n            </div>\n          </div>\n        </form>\n      </div>\n    </div>\n  </div>\n</div>\n\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n");

/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-motorista-form.component.scss":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-motorista-form.component.scss ***!
  \**************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("input {\n  width: 30px;\n}\n\nlabel,\nbutton {\n  margin-left: 5px;\n  margin-right: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvcm90aW5hcy1kZS1hcG9pby9pbmF0aXZhci1tb3RvcmlzdGEvaW5hdGl2YXItbW90b3Jpc3RhLWZvcm0vQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxyb3RpbmFzLWRlLWFwb2lvXFxpbmF0aXZhci1tb3RvcmlzdGFcXGluYXRpdmFyLW1vdG9yaXN0YS1mb3JtXFxpbmF0aXZhci1tb3RvcmlzdGEtZm9ybS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvcm90aW5hcy1kZS1hcG9pby9pbmF0aXZhci1tb3RvcmlzdGEvaW5hdGl2YXItbW90b3Jpc3RhLWZvcm0vaW5hdGl2YXItbW90b3Jpc3RhLWZvcm0uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxXQUFBO0FDQ0Y7O0FERUE7O0VBRUUsZ0JBQUE7RUFDQSxpQkFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvcm90aW5hcy1kZS1hcG9pby9pbmF0aXZhci1tb3RvcmlzdGEvaW5hdGl2YXItbW90b3Jpc3RhLWZvcm0vaW5hdGl2YXItbW90b3Jpc3RhLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpbnB1dCB7XHJcbiAgd2lkdGg6MzBweDtcclxufVxyXG5cclxubGFiZWwsXHJcbmJ1dHRvbiB7XHJcbiAgbWFyZ2luLWxlZnQ6IDVweDtcclxuICBtYXJnaW4tcmlnaHQ6IDVweDtcclxufSIsImlucHV0IHtcbiAgd2lkdGg6IDMwcHg7XG59XG5cbmxhYmVsLFxuYnV0dG9uIHtcbiAgbWFyZ2luLWxlZnQ6IDVweDtcbiAgbWFyZ2luLXJpZ2h0OiA1cHg7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-motorista-form.component.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-motorista-form.component.ts ***!
  \************************************************************************************************************************/
/*! exports provided: InativarMotoristaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InativarMotoristaFormComponent", function() { return InativarMotoristaFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _inativar_motorista_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../inativar-motorista.model */ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.model.ts");
/* harmony import */ var _inativar_motorista_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../inativar-motorista.constants */ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.constants.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _inativar_motorista_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../inativar-motorista.service */ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! sweetalert2 */ "./node_modules/sweetalert2/dist/sweetalert2.all.js");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_11__);
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 InativarMotoristaFormComponent = /** @class */ (function (_super) {
    __extends(InativarMotoristaFormComponent, _super);
    function InativarMotoristaFormComponent(messageService, activatedRoute, service, funcoesService, loginService, permissoesUtils) {
        var _this = _super.call(this, new _inativar_motorista_constants__WEBPACK_IMPORTED_MODULE_3__["InativarMotoristaConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _inativar_motorista_model__WEBPACK_IMPORTED_MODULE_2__["InativarMotorista"]();
        _this.mensagens = [];
        _this.constantes = new _inativar_motorista_constants__WEBPACK_IMPORTED_MODULE_3__["InativarMotoristaConstants"]();
        return _this;
    }
    InativarMotoristaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    InativarMotoristaFormComponent.prototype._onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        var title;
        var text;
        var buttonYes;
        var buttonCancel;
        this.funcoesService.translateService
            .get('titles.inativarMotorista')
            .subscribe(function (res) {
            title = res;
        });
        this.funcoesService.translateService
            .get('messages.updateinativarMotoristaConfirm', { 'qtMeses': this.data.meses })
            .subscribe(function (res) {
            text = res;
        });
        this.funcoesService.translateService
            .get('buttons.sim')
            .subscribe(function (res) {
            buttonYes = res;
        });
        this.funcoesService.translateService
            .get('buttons.cancelar')
            .subscribe(function (res) {
            buttonCancel = res;
        });
        sweetalert2__WEBPACK_IMPORTED_MODULE_11___default.a.fire({
            title: title,
            text: text,
            showCancelButton: true,
            confirmButtonColor: '#d33',
            cancelButtonColor: '#3085d6',
            confirmButtonText: buttonYes,
            cancelButtonText: buttonCancel
        }).then(function (result) {
            if (result.value) {
                _this.onSubmit(form);
            }
        });
    };
    InativarMotoristaFormComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var ret, titulo;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (form.invalid) {
                            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_10__["EventEmitterService"].get("formError").emit(form);
                            return [2 /*return*/];
                        }
                        if (!(this.data.meses > 0)) {
                            this.messageService.warning('titles.inativarMotorista', 'messages.mesesNaoPodeserZero');
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.inativarMotorista(this.data).toPromise()];
                    case 1:
                        ret = _a.sent();
                        if (this.funcoesService.isNotUndefinedOrNull(ret.validationResult)) {
                            this.mensagens = this.messageService.validationResult(ret.validationResult);
                            if (ret && !ret.validationResult.isValid) {
                                this.messageService.warning("titles.inativarMotorista", this.mensagens[0]);
                                return [2 /*return*/];
                            }
                            else {
                                this.data = new _inativar_motorista_model__WEBPACK_IMPORTED_MODULE_2__["InativarMotorista"]();
                                titulo = this.messageService.translate("messages.foramDesativados", { qtde: ret.retInativados });
                                this.messageService.saveSuccess("titles.inativarMotorista", titulo);
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    InativarMotoristaFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    InativarMotoristaFormComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"] },
        { type: _inativar_motorista_service__WEBPACK_IMPORTED_MODULE_9__["InativarMotoristaService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] }
    ]; };
    InativarMotoristaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-inativar-motorista-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./inativar-motorista-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-motorista-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./inativar-motorista-form.component.scss */ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-motorista-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"],
            _inativar_motorista_service__WEBPACK_IMPORTED_MODULE_9__["InativarMotoristaService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"]])
    ], InativarMotoristaFormComponent);
    return InativarMotoristaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.constants.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.constants.ts ***!
  \*******************************************************************************************/
/*! exports provided: InativarMotoristaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InativarMotoristaConstants", function() { return InativarMotoristaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var InativarMotoristaConstants = /** @class */ (function () {
    function InativarMotoristaConstants() {
        this.sisFormularioId = 230134;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.nomeForm = "titles.inativarMotorista";
        this.reportTitulo = { "titulo": "Inativar Motoristas", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return InativarMotoristaConstants;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.model.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.model.ts ***!
  \***************************************************************************************/
/*! exports provided: InativarMotorista */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InativarMotorista", function() { return InativarMotorista; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var InativarMotorista = /** @class */ (function () {
    function InativarMotorista() {
        this.operador = "";
        this.regLog = 0;
        this.retInativados = 0;
    }
    return InativarMotorista;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.module.ts ***!
  \****************************************************************************************/
/*! exports provided: InativarMotoristaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InativarMotoristaModule", function() { return InativarMotoristaModule; });
/* 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__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _inativar_motorista_form_inativar_motorista_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./inativar-motorista-form/inativar-motorista-form.component */ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-motorista-form.component.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _inativar_motorista_routing__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inativar-motorista.routing */ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.routing.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 InativarMotoristaModule = /** @class */ (function () {
    function InativarMotoristaModule() {
    }
    InativarMotoristaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_inativar_motorista_form_inativar_motorista_form_component__WEBPACK_IMPORTED_MODULE_2__["InativarMotoristaFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__["SharedModule"],
                _inativar_motorista_routing__WEBPACK_IMPORTED_MODULE_4__["InativarMotoristaRouting"]
            ]
        })
    ], InativarMotoristaModule);
    return InativarMotoristaModule;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.routing.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.routing.ts ***!
  \*****************************************************************************************/
/*! exports provided: InativarMotoristaRouting */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InativarMotoristaRouting", function() { return InativarMotoristaRouting; });
/* 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 _inativar_motorista_form_inativar_motorista_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inativar-motorista-form/inativar-motorista-form.component */ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista-form/inativar-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: _inativar_motorista_form_inativar_motorista_form_component__WEBPACK_IMPORTED_MODULE_3__["InativarMotoristaFormComponent"],
        data: { breadcrumb: "inativarMotorista", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var InativarMotoristaRouting = /** @class */ (function () {
    function InativarMotoristaRouting() {
    }
    InativarMotoristaRouting = __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"]]
        })
    ], InativarMotoristaRouting);
    return InativarMotoristaRouting;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.service.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/inativar-motorista/inativar-motorista.service.ts ***!
  \*****************************************************************************************/
/*! exports provided: InativarMotoristaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InativarMotoristaService", function() { return InativarMotoristaService; });
/* 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 _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.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_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.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 InativarMotoristaService = /** @class */ (function () {
    function InativarMotoristaService(http) {
        this.http = http;
    }
    InativarMotoristaService.prototype.inativarMotorista = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/cadastros/motorista/inativarMotorista", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    InativarMotoristaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    InativarMotoristaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], InativarMotoristaService);
    return InativarMotoristaService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-rotinas-de-apoio-inativar-motorista-inativar-motorista-module.js.map