(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-veiculo-justificativa-de-atraso-justificativa-de-atraso-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-filter/justificativa-de-atraso-filter.component.html":
/*!**************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-filter/justificativa-de-atraso-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"] = ("<script src=\"../justificativa-de-atraso.routing.module.ts\"></script>\r\n<div class=\"modal fade\" id=\"justificativa-de-atraso-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.justificativaDeatraso' | 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-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\"\r\n                                       class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"service.filtro.dataI\"\r\n                                          autofocus\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\"\r\n                                       class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"service.filtro.dataF\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\">{{ 'labels.situacao' | translate}}</label>\r\n                                <select id=\"situacao\"\r\n                                        name=\"situacao\"\r\n                                        data-title=\"{{ 'labels.situacao' | translate }}\"\r\n                                        class=\"form-control form-control-sm\"\r\n                                        [(ngModel)]=\"service.filtro.situacao\">\r\n                                    <option value=\"S\">{{'labels.justificado' | translate }}</option>\r\n                                    <option value=\"N\">{{'labels.naoJustificado' | translate }}</option>\r\n                                    <option value=\"T\">{{'labels.todos' | translate }}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"excedido\" name=\"excedido\" [ngModel]=\"service.filtro.excedido === 'S'\"\r\n                                       (ngModelChange)=\"service.filtro.excedido=$event?'S':'N'\"\r\n                                       class=\"custom-control-input checkbox-success\"\r\n                                       type=\"checkbox\">\r\n                                <label class=\"custom-control-label\"\r\n                                       for=\"excedido\">{{'labels.apenasOperacoesTempoExcedido' | translate}}</label>\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\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-form/justificativa-de-atraso-form.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-form/justificativa-de-atraso-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.autorizacao\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"card-body widget-body\">\r\n                <app-form-legenda></app-form-legenda>\r\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                    <app-validacoes></app-validacoes>\r\n                    <div class=\"card\">\r\n                        <div class=\"card-body widget-body\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-3 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"autorizacao\"> {{ 'labels.autorizacao' | translate }}</label>\r\n                                        <input id=\"autorizacao\" name=\"autorizacao\" maxlength=\"18\"\r\n                                               value=\"{{data.autorizacao}}\"\r\n                                               class=\"form-control form-control-sm\"\r\n                                               type=\"text\"\r\n                                               [disabled]=\"!funcoesService.isCreate(actionForm)\"\r\n                                        />\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-3 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"dtAutorizacao\"> {{ 'labels.dtAutorizacao' | translate }}\r\n                                        </label>\r\n                                        <input id=\"dtAutorizacao\" name=\"dtAutorizacao\"\r\n                                               value=\"{{data.dtAutorizacao | date: 'dd/MM/yyyy HH:mm:ss'}}\"\r\n                                               class=\"form-control form-control-sm\"\r\n                                               type=\"text\"\r\n                                               disabled/>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label>{{'labels.cliente' | translate}}</label>\r\n                                        <div class=\"input-group\">\r\n                                            <input type=\"text\"\r\n                                                   class=\"form-control form-control-sm col-2\"\r\n                                                   value=\"{{data.coddest}}\"\r\n                                                   disabled>\r\n                                            <input type=\"text\"\r\n                                                   class=\"form-control form-control-sm col\"\r\n                                                   value=\"{{data.cliente}}\"\r\n                                                   disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label>{{'labels.produto' | translate}}</label>\r\n                                        <div class=\"input-group\">\r\n                                            <input type=\"text\"\r\n                                                   class=\"form-control form-control-sm col-2\"\r\n                                                   value=\"{{data.material}}\"\r\n                                                   disabled>\r\n                                            <input type=\"text\"\r\n                                                   class=\"form-control form-control-sm col\"\r\n                                                   value=\"{{data.produto}}\"\r\n                                                   disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label>{{'labels.transportadora' | translate}}</label>\r\n                                        <div class=\"input-group\">\r\n                                            <input type=\"text\"\r\n                                                   class=\"form-control form-control-sm col-2\"\r\n                                                   value=\"{{data.transportadora}}\"\r\n                                                   disabled>\r\n                                            <input type=\"text\"\r\n                                                   class=\"form-control form-control-sm col\"\r\n                                                   value=\"{{data.nomeTransp}}\"\r\n                                                   disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"placa\"> {{ 'labels.placa' | translate }}</label>\r\n                                        <input id=\"placa\" name=\"placa\" maxlength=\"18\"\r\n                                               value=\"{{data.placa}}\"\r\n                                               class=\"form-control form-control-sm\"\r\n                                               type=\"text\"\r\n                                               disabled>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label>{{'labels.motorista' | translate}}</label>\r\n                                        <div class=\"input-group\">\r\n                                            <input type=\"text\"\r\n                                                   class=\"form-control form-control-sm col-2\"\r\n                                                   value=\"{{data.motorista}}\"\r\n                                                   disabled>\r\n\r\n                                            <input type=\"text\"\r\n                                                   class=\"form-control form-control-sm col\"\r\n                                                   value=\"{{data.nomeMotorista}}\"\r\n                                                   disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-3 col-md-10 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"usuario\">{{ 'labels.usuario' | translate }}</label>\r\n                                        <input id=\"usuario\" name=\"usuario\" maxlength=\"18\"\r\n                                               value=\"{{data.operMot}}\"\r\n                                               class=\"form-control form-control-sm\"\r\n                                               type=\"text\"\r\n                                               disabled>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"data\">{{'labels.data' | translate}}</label>\r\n                                        <input id=\"data\" name=\"data\"\r\n                                               value=\"{{data.dtOperMot | date: 'dd/MM/yyyy HH:mm:ss'}}\"\r\n                                               class=\"form-control form-control-sm\"\r\n                                               type=\"text\"\r\n                                               disabled/>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"codMotivo\" class=\"required\">{{ 'labels.motivo' | translate}}</label>\r\n                                <app-combo-padrao\r\n                                        name=\"codMotivo\"\r\n                                        id=\"codMotivo\"\r\n                                        chave=\"codMotivo\"\r\n                                        descricao=\"DescrMotivo\"\r\n                                        ativo=\"true\"\r\n                                        tabela=\"MotivoCaminhaoExc\"\r\n                                        required\r\n                                        [(ngModel)]=\"data.codMotivo\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </app-combo-padrao>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    {{ 'buttons.salvar' | translate }}\r\n                                </button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-index/justificativa-de-atraso-index.component.html":
/*!************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-index/justificativa-de-atraso-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]=\"data.autorizacao\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtJustificaAtraso\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-justificativa-de-atraso-filter (filtrar)=\"executaFiltro()\"></app-justificativa-de-atraso-filter>\r\n");

/***/ }),

/***/ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-filter/justificativa-de-atraso-filter.component.ts":
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-filter/justificativa-de-atraso-filter.component.ts ***!
  \**********************************************************************************************************************************/
/*! exports provided: JustificativaDeAtrasoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtrasoFilterComponent", function() { return JustificativaDeAtrasoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _justificativa_de_atraso_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../justificativa-de-atraso.model */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../justificativa-de-atraso.service */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.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 JustificativaDeAtrasoFilterComponent = /** @class */ (function () {
    function JustificativaDeAtrasoFilterComponent(service, login) {
        this.service = service;
        this.login = login;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
    }
    JustificativaDeAtrasoFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _justificativa_de_atraso_model__WEBPACK_IMPORTED_MODULE_1__["JustificativaDeAtrasoFilter"]();
        }
    };
    JustificativaDeAtrasoFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.service.filtro.filialId = this.login.getLogin().filialId;
        this.service.filtro.colaboradorId = this.login.getLogin().colaboradorId;
        this.filtrar.emit();
        jQuery("#justificativa-de-atraso-filter-dialog").modal("hide");
    };
    JustificativaDeAtrasoFilterComponent.ctorParameters = function () { return [
        { type: _justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_4__["JustificativaDeAtrasoService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], JustificativaDeAtrasoFilterComponent.prototype, "filtrar", void 0);
    JustificativaDeAtrasoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-justificativa-de-atraso-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./justificativa-de-atraso-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-filter/justificativa-de-atraso-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_4__["JustificativaDeAtrasoService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"]])
    ], JustificativaDeAtrasoFilterComponent);
    return JustificativaDeAtrasoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-form/justificativa-de-atraso-form.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-form/justificativa-de-atraso-form.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: JustificativaDeAtrasoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtrasoFormComponent", function() { return JustificativaDeAtrasoFormComponent; });
/* harmony import */ var app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.service */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _justificativa_de_atraso_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../justificativa-de-atraso.constants */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.constants.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _justificativa_de_atraso_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../justificativa-de-atraso.model */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.model.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.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 JustificativaDeAtrasoFormComponent = /** @class */ (function (_super) {
    __extends(JustificativaDeAtrasoFormComponent, _super);
    function JustificativaDeAtrasoFormComponent(router, messageService, activatedRoute, justificativaDeAtrasoService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _justificativa_de_atraso_constants__WEBPACK_IMPORTED_MODULE_4__["JustificativaDeAtrasoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.justificativaDeAtrasoService = justificativaDeAtrasoService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _justificativa_de_atraso_model__WEBPACK_IMPORTED_MODULE_8__["JustificativaDeAtraso"]();
        _this.mensagens = [];
        _this.constantes = new _justificativa_de_atraso_constants__WEBPACK_IMPORTED_MODULE_4__["JustificativaDeAtrasoConstants"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_10__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    JustificativaDeAtrasoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.justificativaDeAtrasoService.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    JustificativaDeAtrasoFormComponent.prototype.getLibRotina = function (actionForm) {
        var lista = [
            { id: _config_enumerables__WEBPACK_IMPORTED_MODULE_10__["ActionForm"].edit, descricao: "2" },
            { id: _config_enumerables__WEBPACK_IMPORTED_MODULE_10__["ActionForm"].detail, descricao: "3" }
        ];
        var i = lista.findIndex(function (x) { return x.id === actionForm; });
        return lista[i].descricao;
    };
    JustificativaDeAtrasoFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.messageService.confirm("titles.justificativaDeatraso", "messages.desejaRealmenteAlterarMotivo", "", function () { return _this.save(); }, false);
    };
    JustificativaDeAtrasoFormComponent.prototype.save = function () {
        var _this = this;
        this.data.logRotina = "Manutenção de JustificativaDeAtraso";
        this.justificativaDeAtrasoService
            .save(this.data)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.justificativaDeatraso");
                _this.back();
            }
        });
    };
    JustificativaDeAtrasoFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/veiculo/justificativaDeAtraso"]);
    };
    JustificativaDeAtrasoFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/veiculo/justificativaDeAtraso/edit/" + this.data.autorizacao]);
    };
    JustificativaDeAtrasoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_0__["JustificativaDeAtrasoService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    JustificativaDeAtrasoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-justificativa-de-atraso-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./justificativa-de-atraso-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-form/justificativa-de-atraso-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_0__["JustificativaDeAtrasoService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], JustificativaDeAtrasoFormComponent);
    return JustificativaDeAtrasoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-index/justificativa-de-atraso-index.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-index/justificativa-de-atraso-index.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: JustificativaDeAtrasoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtrasoIndexComponent", function() { return JustificativaDeAtrasoIndexComponent; });
/* 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_veiculo_justificativa_de_atraso_justificativa_de_atraso_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.model */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.model.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.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_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _justificativa_de_atraso_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../justificativa-de-atraso.constants */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.service */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.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 JustificativaDeAtrasoIndexComponent = /** @class */ (function (_super) {
    __extends(JustificativaDeAtrasoIndexComponent, _super);
    function JustificativaDeAtrasoIndexComponent(router, service, datatables, message, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _justificativa_de_atraso_constants__WEBPACK_IMPORTED_MODULE_6__["JustificativaDeAtrasoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_model__WEBPACK_IMPORTED_MODULE_2__["JustificativaDeAtraso"]();
        _this.constantes = new _justificativa_de_atraso_constants__WEBPACK_IMPORTED_MODULE_6__["JustificativaDeAtrasoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    JustificativaDeAtrasoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#justificativa-de-atraso-filter-dialog").modal("show");
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    JustificativaDeAtrasoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataString("tipoOCD", "tipo", "10%"),
                _this.datatables.getDataString("autorizacao", "autorizacao"),
                _this.datatables.getDataDateTime("dtAutorizacao", "data", "DD/MM/YYYY HH:MM", "10%"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataString("produto", "produto"),
                _this.datatables.getDataBool("flagTempoExc", "excedido", "10%"),
                _this.datatables.getDataString("descrMotivo", "motivo")
            ];
            _this.datatables.datatable("dtJustificaAtraso", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    JustificativaDeAtrasoIndexComponent.prototype.edit = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.autorizacao)) {
            this.router.navigate([this.target + "/veiculo/justificativaDeAtraso/edit/" + this.data.autorizacao]);
        }
    };
    JustificativaDeAtrasoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    JustificativaDeAtrasoIndexComponent.prototype.filtrar = function () {
        jQuery("#justificativa-de-atraso-filter-dialog").modal("show");
    };
    JustificativaDeAtrasoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    JustificativaDeAtrasoIndexComponent.prototype.detail = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.autorizacao)) {
            this.router.navigate([this.target + "/veiculo/justificativaDeAtraso/detail/" + this.data.autorizacao]);
        }
    };
    JustificativaDeAtrasoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            var reportTitulo = {
                titulo: _this.message.getTranslates('titles', 'justificativaDeAtraso'),
                subTitulo: ''
            };
            _this.service.filtro.filialId = _this.funcoes.isNotUndefinedOrNull(_this.service.filtro.filialId) ? _this.service.filtro.filialId : 0;
            _this.service.filtro.colaboradorId = _this.funcoes.isNotUndefinedOrNull(_this.service.filtro.colaboradorId) ? _this.service.filtro.colaboradorId : 0;
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, reportTitulo, _this.service.filtro);
        });
    };
    JustificativaDeAtrasoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_8__["JustificativaDeAtrasoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] }
    ]; };
    JustificativaDeAtrasoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-justificativa-de-atraso-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./justificativa-de-atraso-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-index/justificativa-de-atraso-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_service__WEBPACK_IMPORTED_MODULE_8__["JustificativaDeAtrasoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"]])
    ], JustificativaDeAtrasoIndexComponent);
    return JustificativaDeAtrasoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.constants.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.constants.ts ***!
  \********************************************************************************************/
/*! exports provided: JustificativaDeAtrasoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtrasoConstants", function() { return JustificativaDeAtrasoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var JustificativaDeAtrasoConstants = /** @class */ (function () {
    function JustificativaDeAtrasoConstants() {
        this.sisFormularioId = 65480;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CTV";
        this.nomeForm = "titles.JustificativaDeAtraso";
        this.reportId = "CTV0003";
        this.reportTitulo = { "titulo": "JustificativaDeAtraso", "subTitulo": "" };
        this.tabela = "JustificativaDeAtraso";
        this.listaIndex = [
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', 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: 'Editar', 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' },
        ];
    }
    return JustificativaDeAtrasoConstants;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.model.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.model.ts ***!
  \****************************************************************************************/
/*! exports provided: JustificativaDeAtraso, JustificativaDeAtrasoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtraso", function() { return JustificativaDeAtraso; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtrasoFilter", function() { return JustificativaDeAtrasoFilter; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../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 JustificativaDeAtraso = /** @class */ (function (_super) {
    __extends(JustificativaDeAtraso, _super);
    function JustificativaDeAtraso() {
        var _this = _super.call(this) || this;
        _this.codMotivo = "";
        return _this;
    }
    return JustificativaDeAtraso;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var JustificativaDeAtrasoFilter = /** @class */ (function () {
    function JustificativaDeAtrasoFilter() {
        this.filialId = 0;
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_0__().startOf('month').toDate();
        this.dataF = new Date();
        this.situacao = "T";
        this.excedido = "S";
    }
    return JustificativaDeAtrasoFilter;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.module.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.module.ts ***!
  \*****************************************************************************************/
/*! exports provided: JustificativaDeAtrasoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtrasoModule", function() { return JustificativaDeAtrasoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_form_justificativa_de_atraso_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-form/justificativa-de-atraso-form.component */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-form/justificativa-de-atraso-form.component.ts");
/* harmony import */ var app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_index_justificativa_de_atraso_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-index/justificativa-de-atraso-index.component */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-index/justificativa-de-atraso-index.component.ts");
/* harmony import */ var app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.routing.module */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.routing.module.ts");
/* harmony import */ var app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_filter_justificativa_de_atraso_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-filter/justificativa-de-atraso-filter.component */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-filter/justificativa-de-atraso-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 JustificativaDeAtrasoModule = /** @class */ (function () {
    function JustificativaDeAtrasoModule() {
    }
    JustificativaDeAtrasoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_routing_module__WEBPACK_IMPORTED_MODULE_4__["JustificativaDeAtrasoRoutingModule"]],
            declarations: [
                app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_form_justificativa_de_atraso_form_component__WEBPACK_IMPORTED_MODULE_2__["JustificativaDeAtrasoFormComponent"],
                app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_index_justificativa_de_atraso_index_component__WEBPACK_IMPORTED_MODULE_3__["JustificativaDeAtrasoIndexComponent"],
                app_pages_veiculo_justificativa_de_atraso_justificativa_de_atraso_filter_justificativa_de_atraso_filter_component__WEBPACK_IMPORTED_MODULE_5__["JustificativaDeAtrasoFilterComponent"]
            ]
        })
    ], JustificativaDeAtrasoModule);
    return JustificativaDeAtrasoModule;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.routing.module.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.routing.module.ts ***!
  \*************************************************************************************************/
/*! exports provided: JustificativaDeAtrasoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtrasoRoutingModule", function() { return JustificativaDeAtrasoRoutingModule; });
/* 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 _justificativa_de_atraso_form_justificativa_de_atraso_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./justificativa-de-atraso-form/justificativa-de-atraso-form.component */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-form/justificativa-de-atraso-form.component.ts");
/* harmony import */ var _justificativa_de_atraso_index_justificativa_de_atraso_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./justificativa-de-atraso-index/justificativa-de-atraso-index.component */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso-index/justificativa-de-atraso-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: _justificativa_de_atraso_index_justificativa_de_atraso_index_component__WEBPACK_IMPORTED_MODULE_4__["JustificativaDeAtrasoIndexComponent"],
        data: {
            breadcrumb: "JustificativaDeAtraso",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "edit/:id",
        component: _justificativa_de_atraso_form_justificativa_de_atraso_form_component__WEBPACK_IMPORTED_MODULE_3__["JustificativaDeAtrasoFormComponent"],
        data: {
            breadcrumb: "JustificativaDeAtraso",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _justificativa_de_atraso_form_justificativa_de_atraso_form_component__WEBPACK_IMPORTED_MODULE_3__["JustificativaDeAtrasoFormComponent"],
        data: {
            breadcrumb: "justificativaDeAtraso",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var JustificativaDeAtrasoRoutingModule = /** @class */ (function () {
    function JustificativaDeAtrasoRoutingModule() {
    }
    JustificativaDeAtrasoRoutingModule = __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"]]
        })
    ], JustificativaDeAtrasoRoutingModule);
    return JustificativaDeAtrasoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.service.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.service.ts ***!
  \******************************************************************************************/
/*! exports provided: JustificativaDeAtrasoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JustificativaDeAtrasoService", function() { return JustificativaDeAtrasoService; });
/* 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 _justificativa_de_atraso_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./justificativa-de-atraso.model */ "./src/app/pages/veiculo/justificativa-de-atraso/justificativa-de-atraso.model.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.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 JustificativaDeAtrasoService = /** @class */ (function () {
    function JustificativaDeAtrasoService(http) {
        this.http = http;
        this.filtro = new _justificativa_de_atraso_model__WEBPACK_IMPORTED_MODULE_2__["JustificativaDeAtrasoFilter"]();
    }
    JustificativaDeAtrasoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/justificativaDeAtraso/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    JustificativaDeAtrasoService.prototype.getById = function (id) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/justificativaDeAtraso/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    JustificativaDeAtrasoService.prototype.save = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/veiculo/justificativaDeAtraso", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    JustificativaDeAtrasoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    JustificativaDeAtrasoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], JustificativaDeAtrasoService);
    return JustificativaDeAtrasoService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-veiculo-justificativa-de-atraso-justificativa-de-atraso-module.js.map