(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-cadastro-tipo-carga-tipo-carga-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-carga/tipo-carga-form/tipo-carga-form.component.html":
/*!********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-carga/tipo-carga-form/tipo-carga-form.component.html ***!
  \********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"data.ptlTipoCargaPortologId\">\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\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                    <app-validacoes></app-validacoes>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"codigo\" class=\"required\">{{'labels.codigo' | translate}}</label>\n                                <input id=\"codigo\" name=\"codigo\" [(ngModel)]=\"data.codigo\"\n                                    class=\"form-control form-control-sm\" type=\"text\" maxlength=\"20\"\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\" [required]=\"true\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"descricao\" class=\"required\">{{'labels.descricao' | translate}}</label>\n                                <input id=\"descricao\" name=\"descricao\" [(ngModel)]=\"data.descricao\"\n                                    class=\"form-control form-control-sm\" type=\"text\" maxlength=\"50\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"true\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"custom-control custom-checkbox mt-2\">\n                                <div class=\"form-group form-group-sx\">\n                                    <input id=\"sitReg\" name=\"sitReg\" [ngModel]=\"data.sitReg === 'A'\"\n                                        (ngModelChange)=\"data.sitReg = $event ? 'A' : 'I'\"\n                                        [disabled]=\"!funcoesService.isEdit(actionForm)\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                    <label class=\"custom-control-label\" for=\"sitReg\">{{ 'labels.ativo' | translate  }}</label>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

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

/***/ }),

/***/ "./src/app/pages/cadastro/tipo-carga/tipo-carga-form/tipo-carga-form.component.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-carga/tipo-carga-form/tipo-carga-form.component.ts ***!
  \****************************************************************************************/
/*! exports provided: TipoCargaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoCargaFormComponent", function() { return TipoCargaFormComponent; });
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_veiculo_planejamento_carga_descarga_planejamento_carga_descarga_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/veiculo/planejamento-carga-descarga/planejamento-carga-descarga.service */ "./src/app/pages/veiculo/planejamento-carga-descarga/planejamento-carga-descarga.service.ts");
/* harmony import */ var _tipo_carga_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tipo-carga.model */ "./src/app/pages/cadastro/tipo-carga/tipo-carga.model.ts");
/* harmony import */ var _tipo_carga_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../tipo-carga.constants */ "./src/app/pages/cadastro/tipo-carga/tipo-carga.constants.ts");
/* harmony import */ var _tipo_carga_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../tipo-carga.service */ "./src/app/pages/cadastro/tipo-carga/tipo-carga.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 TipoCargaFormComponent = /** @class */ (function (_super) {
    __extends(TipoCargaFormComponent, _super);
    function TipoCargaFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, planejamentoCargaDescargaService) {
        var _this = _super.call(this, new _tipo_carga_constants__WEBPACK_IMPORTED_MODULE_10__["TipoCargaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.planejamentoCargaDescargaService = planejamentoCargaDescargaService;
        _this.mensagens = [];
        _this.data = new _tipo_carga_model__WEBPACK_IMPORTED_MODULE_9__["TipoCargaDto"]();
        _this.constantes = new _tipo_carga_constants__WEBPACK_IMPORTED_MODULE_10__["TipoCargaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["Mascaras"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TipoCargaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getById(id).subscribe(function (result) {
                    _this.data = result;
                });
            }
            else {
                _this.data = new _tipo_carga_model__WEBPACK_IMPORTED_MODULE_9__["TipoCargaDto"]();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    TipoCargaFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Man. Tipo Carga";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.tipoCarga");
                if (create) {
                    _this.data = new _tipo_carga_model__WEBPACK_IMPORTED_MODULE_9__["TipoCargaDto"]();
                    _this.router.navigate([_this.target + "/cadastro/tipoCarga/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    TipoCargaFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    TipoCargaFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/cadastro/tipoCarga"]);
    };
    TipoCargaFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate([_this.target + "/cadastro/tipoCarga/edit/" + _this.data.ptlTipoCargaPortologId]);
        });
    };
    TipoCargaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] },
        { type: _tipo_carga_service__WEBPACK_IMPORTED_MODULE_11__["TipoCargaService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_0__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_pages_veiculo_planejamento_carga_descarga_planejamento_carga_descarga_service__WEBPACK_IMPORTED_MODULE_8__["PlanejamentoCargaDescargaService"] }
    ]; };
    TipoCargaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: "app-tipo-carga-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-carga-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-carga/tipo-carga-form/tipo-carga-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"],
            _tipo_carga_service__WEBPACK_IMPORTED_MODULE_11__["TipoCargaService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_0__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_pages_veiculo_planejamento_carga_descarga_planejamento_carga_descarga_service__WEBPACK_IMPORTED_MODULE_8__["PlanejamentoCargaDescargaService"]])
    ], TipoCargaFormComponent);
    return TipoCargaFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-carga/tipo-carga-index/tipo-carga-index.component.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-carga/tipo-carga-index/tipo-carga-index.component.ts ***!
  \******************************************************************************************/
/*! exports provided: TipoCargaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoCargaIndexComponent", function() { return TipoCargaIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _tipo_carga_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tipo-carga.model */ "./src/app/pages/cadastro/tipo-carga/tipo-carga.model.ts");
/* harmony import */ var _tipo_carga_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tipo-carga.service */ "./src/app/pages/cadastro/tipo-carga/tipo-carga.service.ts");
/* harmony import */ var _tipo_carga_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../tipo-carga.constants */ "./src/app/pages/cadastro/tipo-carga/tipo-carga.constants.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 TipoCargaIndexComponent = /** @class */ (function (_super) {
    __extends(TipoCargaIndexComponent, _super);
    function TipoCargaIndexComponent(router, service, messageService, funcoes, loginService, permissoesUtils, datatablesService) {
        var _this = _super.call(this, new _tipo_carga_constants__WEBPACK_IMPORTED_MODULE_10__["TipoCargaConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.datatablesService = datatablesService;
        _this.dataResult = new _tipo_carga_model__WEBPACK_IMPORTED_MODULE_8__["TipoCargaDto"]();
        _this.data = new _tipo_carga_model__WEBPACK_IMPORTED_MODULE_8__["TipoCarga"]();
        _this.constantes = new _tipo_carga_constants__WEBPACK_IMPORTED_MODULE_10__["TipoCargaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mensagens = [];
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TipoCargaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    TipoCargaIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.TipoCargaIndex().subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("codigo", "codigo", "10%"),
                _this.datatablesService.getDataString("descricao", "descricao")
            ];
            _this.datatablesService.datatable("dtTipoCarga", columns, resp, function (aData) {
                _this.dataResult = aData;
            });
        });
    };
    TipoCargaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TipoCargaIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate([_this.target + "/cadastro/tipoCarga/create"]);
        });
    };
    TipoCargaIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.router.navigate([_this.target + "/cadastro/tipoCarga/detail/" + _this.dataResult.ptlTipoCargaPortologId]);
        });
    };
    TipoCargaIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.dataResult.ptlTipoCargaPortologId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.dataResult).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.messageService.warning("titles.tipoCarga", _this.mensagens[0]);
                        }
                        _this.refresh();
                    });
                });
            });
        }
    };
    TipoCargaIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate([_this.target + "/cadastro/tipoCarga/edit/" + _this.dataResult.ptlTipoCargaPortologId]);
        });
    };
    TipoCargaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {};
            _super.prototype.print.call(_this);
        });
    };
    TipoCargaIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.properties.call(_this, _this.dataResult);
        });
    };
    TipoCargaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _tipo_carga_service__WEBPACK_IMPORTED_MODULE_9__["TipoCargaService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"] }
    ]; };
    TipoCargaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-tipo-carga-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-carga-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-carga/tipo-carga-index/tipo-carga-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _tipo_carga_service__WEBPACK_IMPORTED_MODULE_9__["TipoCargaService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"]])
    ], TipoCargaIndexComponent);
    return TipoCargaIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-carga/tipo-carga.constants.ts":
/*!*******************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-carga/tipo-carga.constants.ts ***!
  \*******************************************************************/
/*! exports provided: TipoCargaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoCargaConstants", function() { return TipoCargaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TipoCargaConstants = /** @class */ (function () {
    function TipoCargaConstants() {
        this.sisFormularioId = 375222;
        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.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.propriedades" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.tipoCarga";
        this.reportId = "CAD0292";
        this.reportTitulo = { "titulo": "Tipo de Carga", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { 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: 'Excluir', action: 'remove', icon: "icon-close", 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: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", 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 TipoCargaConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-carga/tipo-carga.model.ts":
/*!***************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-carga/tipo-carga.model.ts ***!
  \***************************************************************/
/*! exports provided: TipoCarga, TipoCargaDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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

var TipoCargaDto = /** @class */ (function (_super) {
    __extends(TipoCargaDto, _super);
    function TipoCargaDto() {
        var _this = _super.call(this) || this;
        _this.sitReg = "A";
        _this.ptlTipoCargaPortologId = 0;
        return _this;
    }
    return TipoCargaDto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-carga/tipo-carga.module.ts":
/*!****************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-carga/tipo-carga.module.ts ***!
  \****************************************************************/
/*! exports provided: TipoCargaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoCargaModule", function() { return TipoCargaModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _tipo_carga_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tipo-carga.routing.module */ "./src/app/pages/cadastro/tipo-carga/tipo-carga.routing.module.ts");
/* harmony import */ var _tipo_carga_index_tipo_carga_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tipo-carga-index/tipo-carga-index.component */ "./src/app/pages/cadastro/tipo-carga/tipo-carga-index/tipo-carga-index.component.ts");
/* harmony import */ var _tipo_carga_form_tipo_carga_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tipo-carga-form/tipo-carga-form.component */ "./src/app/pages/cadastro/tipo-carga/tipo-carga-form/tipo-carga-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 TipoCargaModule = /** @class */ (function () {
    function TipoCargaModule() {
    }
    TipoCargaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _tipo_carga_routing_module__WEBPACK_IMPORTED_MODULE_2__["TipoCargaRoutingModule"]],
            declarations: [
                _tipo_carga_index_tipo_carga_index_component__WEBPACK_IMPORTED_MODULE_3__["TipoCargaIndexComponent"],
                _tipo_carga_form_tipo_carga_form_component__WEBPACK_IMPORTED_MODULE_4__["TipoCargaFormComponent"]
            ]
        })
    ], TipoCargaModule);
    return TipoCargaModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-carga/tipo-carga.routing.module.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-carga/tipo-carga.routing.module.ts ***!
  \************************************************************************/
/*! exports provided: TipoCargaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoCargaRoutingModule", function() { return TipoCargaRoutingModule; });
/* 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 _tipo_carga_form_tipo_carga_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tipo-carga-form/tipo-carga-form.component */ "./src/app/pages/cadastro/tipo-carga/tipo-carga-form/tipo-carga-form.component.ts");
/* harmony import */ var _tipo_carga_index_tipo_carga_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tipo-carga-index/tipo-carga-index.component */ "./src/app/pages/cadastro/tipo-carga/tipo-carga-index/tipo-carga-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: _tipo_carga_index_tipo_carga_index_component__WEBPACK_IMPORTED_MODULE_4__["TipoCargaIndexComponent"],
        data: { breadcrumb: "tipoCarga", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _tipo_carga_form_tipo_carga_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoCargaFormComponent"],
        data: {
            breadcrumb: "tipoCarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _tipo_carga_form_tipo_carga_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoCargaFormComponent"],
        data: {
            breadcrumb: "tipoCarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _tipo_carga_form_tipo_carga_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoCargaFormComponent"],
        data: {
            breadcrumb: "tipoCarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var TipoCargaRoutingModule = /** @class */ (function () {
    function TipoCargaRoutingModule() {
    }
    TipoCargaRoutingModule = __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"]],
        })
    ], TipoCargaRoutingModule);
    return TipoCargaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-carga/tipo-carga.service.ts":
/*!*****************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-carga/tipo-carga.service.ts ***!
  \*****************************************************************/
/*! exports provided: TipoCargaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoCargaService", function() { return TipoCargaService; });
/* 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_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.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 TipoCargaService = /** @class */ (function (_super) {
    __extends(TipoCargaService, _super);
    function TipoCargaService(http) {
        var _this = _super.call(this, http, "cadastros/tipoCarga") || this;
        _this.http = http;
        return _this;
    }
    TipoCargaService.prototype.TipoCargaIndex = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/cadastros/tipoCarga/tipoCargaIndex")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TipoCargaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    TipoCargaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], TipoCargaService);
    return TipoCargaService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-cadastro-tipo-carga-tipo-carga-module.js.map