(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-admin-corporate-sis-campo-config-sis-campo-config-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-form/sis-campo-config-form.component.html":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-form/sis-campo-config-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [formAction]=\"actionForm\" [itemData]=\"data.sisCampoConfigId\">\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\" #dtSisSistema=\"ngForm\" (ngSubmit)=\"onSubmit(dtSisSistema)\">\n                    <app-validacoes></app-validacoes>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"sisCampoConfigId\">{{'labels.id' | translate}}</label>\n                                <input id=\"sisCampoConfigId\" name=\"sisCampoConfigId\" [(ngModel)]=\"data.sisCampoConfigId\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"codRotina\" class=\"required\">{{'labels.rotina' | translate}}</label>\n                                    <input id=\"codRotina\" name=\"rotina\" class=\"form-control form-control-sm\"\n                                        [(ngModel)]=\"data.codRotina\" required=\"true\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                </app-field-container>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"tabela\" class=\"required\">{{'labels.tabela' | translate}}</label>\n                                    <input id=\"tabela\" name=\"tabela\" [(ngModel)]=\"data.tabela\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        data-title=\"{{'labels.tabela' | translate}}\" required>\n                                </app-field-container>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"campo\" class=\"required\">{{'labels.campo' | translate}}</label>\n                                    <input id=\"campo\" name=\"campo\" [(ngModel)]=\"data.campo\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        data-title=\"{{'labels.campo' | translate}}\" required>\n                                </app-field-container>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"descrLabel\">{{'labels.label' | translate}}</label>\n                                    <input id=\"descrLabel\" name=\"descrLabel\" [(ngModel)]=\"data.descrLabel\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        data-title=\"{{'labels.label' | translate}}\" required>\n                                </app-field-container>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"tipoCampo\" class=\"required\">{{'labels.tipoCampo' | translate}}</label>\n                                    <select [(ngModel)]=\"data.tipoCampo\" class=\"form-control form-control-sm\"\n                                        id=\"tipoCampo\" name=\"tipoCampo\" required=\"true\"\n                                        data-title=\"{{'labels.tipoCampo' | translate}}\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        <option>{{ 'labels.selecione' | translate }}</option>\n                                        <option value=\"S\">Texto</option>\n                                        <option value=\"N\">Número</option>\n                                        <option value=\"D\">Data</option>\n                                        <option value=\"B\">Booleano</option>\n                                    </select>\n                                </app-field-container>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"tamCampo\" class=\"required\">{{'labels.tamanho' | translate}}</label>\n                                    <input id=\"tamCampo\" name=\"tamCampo\" [(ngModel)]=\"data.tamCampo\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        data-title=\"{{'labels.tamanho' | translate}}\" required>\n                                </app-field-container>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"decCampo\">{{'labels.decCampo' | translate}}</label>\n                                    <input id=\"decCampo\" name=\"decCampo\" [(ngModel)]=\"data.decCampo\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        data-title=\"{{'labels.decCampo' | translate}}\">\n                                </app-field-container>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"validacao\">{{'labels.validacao' | translate}}</label>\n                                    <input id=\"validacao\" name=\"validacao\" [(ngModel)]=\"data.validacao\"\n                                        class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        data-title=\"{{'labels.validacao' | translate}}\">\n                                </app-field-container>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"obrigatorio\">{{'labels.obrigatorio' | translate}}</label>\n                                <input id=\"obrigatorio\" name=\"obrigatorio\" [(ngModel)]=\"data.obrigatorio\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.obrigatorio' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"valMaximo\">{{'labels.valMaximo' | translate}}</label>\n                                <input id=\"valMaximo\" name=\"valMaximo\" [(ngModel)]=\"data.valMaximo\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.valMaximo' | translate}}\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"valMinimo\">{{'labels.valMinimo' | translate}}</label>\n                                <input id=\"valMinimo\" name=\"valMinimo\" [(ngModel)]=\"data.valMinimo\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                    data-title=\"{{'labels.valMinimo' | translate}}\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"form-group\">\n                        <button class=\"btn btn-success\" type=\"submit\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvar' | translate }}</button>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-index/sis-campo-config-index.component.html":
/*!***********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-index/sis-campo-config-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\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.sisCampoConfigId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n  <table id=\"dtSisCampoConfig\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades class=\"uni-btn\"></app-propriedades>\n");

/***/ }),

/***/ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-form/sis-campo-config-form.component.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-form/sis-campo-config-form.component.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: SisCampoConfigFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisCampoConfigFormComponent", function() { return SisCampoConfigFormComponent; });
/* 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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _sis_campo_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../sis-campo-config.service */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! ../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _sis_campo_config_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../sis-campo-config.model */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.model.ts");
/* harmony import */ var _sis_campo_config_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../sis-campo-config.constants */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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 SisCampoConfigFormComponent = /** @class */ (function (_super) {
    __extends(SisCampoConfigFormComponent, _super);
    function SisCampoConfigFormComponent(router, messageService, activatedRoute, sisCampoConfigService, funcoesService) {
        var _this = _super.call(this, new _sis_campo_config_constants__WEBPACK_IMPORTED_MODULE_7__["SisCampoConfigConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.sisCampoConfigService = sisCampoConfigService;
        _this.funcoesService = funcoesService;
        _this.data = new _sis_campo_config_model__WEBPACK_IMPORTED_MODULE_6__["SisCampoConfig"]();
        _this.mensagens = [];
        _this.constantes = new _sis_campo_config_constants__WEBPACK_IMPORTED_MODULE_7__["SisCampoConfigConstants"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    SisCampoConfigFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        var id = this.activatedRoute.snapshot.paramMap.get("id");
        if (id) {
            this.sisCampoConfigService.getById(id).subscribe(function (resp) {
                _this.data = resp;
            });
        }
        else {
            this.data = new _sis_campo_config_model__WEBPACK_IMPORTED_MODULE_6__["SisCampoConfig"]();
        }
    };
    SisCampoConfigFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Manutenção SisCampoConfig";
        this.sisCampoConfigService
            .save(this.data, this.data.sisCampoConfigId > 0)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.campoConfig");
                _this.back();
            }
        });
    };
    SisCampoConfigFormComponent.prototype.edit = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data)) {
            return;
        }
        if (this.funcoesService.isUndefinedOrNull(this.data.sisCampoConfigId)) {
            return;
        }
        this.router.navigate(["pages/admin/corporate/campoConfig", "edit", this.data.sisCampoConfigId]);
    };
    SisCampoConfigFormComponent.prototype.back = function () {
        this.router.navigate(["pages/admin/corporate/campoConfig"]);
    };
    SisCampoConfigFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _sis_campo_config_service__WEBPACK_IMPORTED_MODULE_3__["SisCampoConfigService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    SisCampoConfigFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-sis-campo-config-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./sis-campo-config-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-form/sis-campo-config-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _sis_campo_config_service__WEBPACK_IMPORTED_MODULE_3__["SisCampoConfigService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], SisCampoConfigFormComponent);
    return SisCampoConfigFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-index/sis-campo-config-index.component.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-index/sis-campo-config-index.component.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: SisCampoConfigIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisCampoConfigIndexComponent", function() { return SisCampoConfigIndexComponent; });
/* 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 _sis_campo_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../sis-campo-config.service */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _sis_campo_config_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../sis-campo-config.model */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.model.ts");
/* harmony import */ var _sis_campo_config_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../sis-campo-config.constants */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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 SisCampoConfigIndexComponent = /** @class */ (function (_super) {
    __extends(SisCampoConfigIndexComponent, _super);
    function SisCampoConfigIndexComponent(router, sisCampoConfigService, datatablesService, messageService, funcoesService) {
        var _this = _super.call(this, new _sis_campo_config_constants__WEBPACK_IMPORTED_MODULE_7__["SisCampoConfigConstants"](), funcoesService) || this;
        _this.router = router;
        _this.sisCampoConfigService = sisCampoConfigService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.data = new _sis_campo_config_model__WEBPACK_IMPORTED_MODULE_6__["SisCampoConfig"]();
        _this.constantes = new _sis_campo_config_constants__WEBPACK_IMPORTED_MODULE_7__["SisCampoConfigConstants"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    SisCampoConfigIndexComponent.prototype.ngOnInit = function () {
        this.refresh();
    };
    SisCampoConfigIndexComponent.prototype.create = function () {
        this.router.navigate(["pages/admin/corporate/campoConfig/create"]);
    };
    SisCampoConfigIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.sisCampoConfigService.get().subscribe(function (resp) {
            var columns = [
                {
                    data: "sisCampoConfigId",
                    title: _this.messageService.getTranslates("labels", "id")
                },
                {
                    data: "codRotina",
                    title: _this.messageService.getTranslates("labels", "rotina")
                },
                {
                    data: "tabela",
                    title: _this.messageService.getTranslates("labels", "tabela")
                },
                {
                    data: "campo",
                    title: _this.messageService.getTranslates("labels", "campo")
                },
                {
                    data: "descrLabel",
                    title: _this.messageService.getTranslates("labels", "label")
                }
            ];
            _this.datatablesService.datatable("dtSisCampoConfig", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    SisCampoConfigIndexComponent.prototype.edit = function () {
        if (!!(this.data.sisCampoConfigId)) {
            this.router.navigate([
                "pages/admin/corporate/campoConfig/edit/" + this.data.sisCampoConfigId
            ]);
        }
    };
    SisCampoConfigIndexComponent.prototype.detail = function () {
        if (!!(this.data.sisCampoConfigId)) {
            this.router.navigate([
                "pages/admin/corporate/campoConfig",
                "detail",
                this.data.sisCampoConfigId
            ]);
        }
    };
    SisCampoConfigIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.sisCampoConfigId)) {
            this.messageService.removeConfirm(function () {
                _this.sisCampoConfigService.remove(_this.data).subscribe(function () {
                    _this.datatablesService.remove("dtSisCampoConfig");
                });
            });
        }
    };
    SisCampoConfigIndexComponent.prototype.properties = function (param) {
        if (param === void 0) { param = {}; }
        _super.prototype.properties.call(this, this.data);
    };
    SisCampoConfigIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _sis_campo_config_service__WEBPACK_IMPORTED_MODULE_2__["SisCampoConfigService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    SisCampoConfigIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-campo-config-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./sis-campo-config-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-index/sis-campo-config-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _sis_campo_config_service__WEBPACK_IMPORTED_MODULE_2__["SisCampoConfigService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], SisCampoConfigIndexComponent);
    return SisCampoConfigIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.constants.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.constants.ts ***!
  \**************************************************************************************/
/*! exports provided: SisCampoConfigConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisCampoConfigConstants", function() { return SisCampoConfigConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SisCampoConfigConstants = /** @class */ (function () {
    function SisCampoConfigConstants() {
        this.sisFormularioId = 6;
        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.propriedades" }
        ];
        this.sisSistemaId = "COR";
        this.nomeForm = "titles.sisCampoConfig";
        this.reportId = "COR0005";
        this.tabela = "SisCampoConfig";
        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: '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 SisCampoConfigConstants;
}());



/***/ }),

/***/ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.model.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.model.ts ***!
  \**********************************************************************************/
/*! exports provided: SisCampoConfig */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.module.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.module.ts ***!
  \***********************************************************************************/
/*! exports provided: SisCampoConfigModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisCampoConfigModule", function() { return SisCampoConfigModule; });
/* 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 _sis_campo_config_index_sis_campo_config_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sis-campo-config-index/sis-campo-config-index.component */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-index/sis-campo-config-index.component.ts");
/* harmony import */ var _sis_campo_config_form_sis_campo_config_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sis-campo-config-form/sis-campo-config-form.component */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-form/sis-campo-config-form.component.ts");
/* harmony import */ var _sis_campo_config_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sis-campo-config.routing.module */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.routing.module.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 SisCampoConfigModule = /** @class */ (function () {
    function SisCampoConfigModule() {
    }
    SisCampoConfigModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _sis_campo_config_routing_module__WEBPACK_IMPORTED_MODULE_4__["SisCampoConfigRoutingModule"]],
            declarations: [_sis_campo_config_index_sis_campo_config_index_component__WEBPACK_IMPORTED_MODULE_2__["SisCampoConfigIndexComponent"], _sis_campo_config_form_sis_campo_config_form_component__WEBPACK_IMPORTED_MODULE_3__["SisCampoConfigFormComponent"]]
        })
    ], SisCampoConfigModule);
    return SisCampoConfigModule;
}());



/***/ }),

/***/ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.routing.module.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.routing.module.ts ***!
  \*******************************************************************************************/
/*! exports provided: SisCampoConfigRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisCampoConfigRoutingModule", function() { return SisCampoConfigRoutingModule; });
/* 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 _sis_campo_config_index_sis_campo_config_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sis-campo-config-index/sis-campo-config-index.component */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-index/sis-campo-config-index.component.ts");
/* harmony import */ var _sis_campo_config_form_sis_campo_config_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sis-campo-config-form/sis-campo-config-form.component */ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config-form/sis-campo-config-form.component.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.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: _sis_campo_config_index_sis_campo_config_index_component__WEBPACK_IMPORTED_MODULE_2__["SisCampoConfigIndexComponent"],
        data: { breadcrumb: "CampoConfig", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _sis_campo_config_form_sis_campo_config_form_component__WEBPACK_IMPORTED_MODULE_3__["SisCampoConfigFormComponent"],
        data: {
            breadcrumb: "CampoConfig",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _sis_campo_config_form_sis_campo_config_form_component__WEBPACK_IMPORTED_MODULE_3__["SisCampoConfigFormComponent"],
        data: {
            breadcrumb: "CampoConfig",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _sis_campo_config_form_sis_campo_config_form_component__WEBPACK_IMPORTED_MODULE_3__["SisCampoConfigFormComponent"],
        data: {
            breadcrumb: "CampoConfig",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail }
        }
    }
];
var SisCampoConfigRoutingModule = /** @class */ (function () {
    function SisCampoConfigRoutingModule() {
    }
    SisCampoConfigRoutingModule = __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"]],
        })
    ], SisCampoConfigRoutingModule);
    return SisCampoConfigRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.service.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/admin/corporate/sis-campo-config/sis-campo-config.service.ts ***!
  \************************************************************************************/
/*! exports provided: SisCampoConfigService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisCampoConfigService", function() { return SisCampoConfigService; });
/* 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 _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../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 SisCampoConfigService = /** @class */ (function (_super) {
    __extends(SisCampoConfigService, _super);
    function SisCampoConfigService(http) {
        return _super.call(this, http, "corporate/sisCampoConfig") || this;
    }
    SisCampoConfigService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    SisCampoConfigService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], SisCampoConfigService);
    return SisCampoConfigService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-admin-corporate-sis-campo-config-sis-campo-config-module.js.map