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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-idioma/sis-idioma-index/sis-idioma-index.component.html":
/*!*****************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-idioma/sis-idioma-index/sis-idioma-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"] = ("<div class=\"section-comand-bar\">\n    <div class=\"d-flex justify-content-between align-items-end\">\n        <ng-container *ngFor=\"let i of idiomas\">\n            <button class=\"btn btn-block mr-2\" style=\"height: 50px;\"\n                (click)=\"geraTranslateByIdioma(i?.sisIdiomaId)\">{{i?.descrIdiomas}}</button>\n        </ng-container>\n    </div>\n    <p>{{mensagem}}</p>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisIdiomaIndexComponent", function() { return SisIdiomaIndexComponent; });
/* 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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _corporate_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../corporate.service */ "./src/app/pages/admin/corporate/corporate.service.ts");
/* harmony import */ var _sis_translate_sis_translate_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sis-translate/sis-translate.service */ "./src/app/pages/admin/corporate/sis-translate/sis-translate.service.ts");
/* harmony import */ var _sis_idioma_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../sis-idioma.constants */ "./src/app/pages/admin/corporate/sis-idioma/sis-idioma.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 SisIdiomaIndexComponent = /** @class */ (function (_super) {
    __extends(SisIdiomaIndexComponent, _super);
    function SisIdiomaIndexComponent(router, messageService, funcoesService, sisTranslateService, corporate) {
        var _this = _super.call(this, new _sis_idioma_constants__WEBPACK_IMPORTED_MODULE_7__["SisIdiomaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.sisTranslateService = sisTranslateService;
        _this.corporate = corporate;
        _this.mensagem = "Translate somente é gerado com acesso a api da unisolution";
        _this.constantes = new _sis_idioma_constants__WEBPACK_IMPORTED_MODULE_7__["SisIdiomaConstants"]();
        _this.idiomas = [];
        _this.geraTranslateByIdioma = function (sisIdiomaId) {
            _this.messageService.confirm("messages.gerarArquivoI18n", null, "messages.operacaoRealizadaComSucesso", function () {
                _this.corporate.geraTranslateByIdioma(sisIdiomaId).subscribe(function () {
                    _this.mensagem = "Translate gerado com sucsso";
                });
            });
        };
        return _this;
    }
    SisIdiomaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.corporate.getIdiomas().subscribe(function (r) { return _this.idiomas = r; });
    };
    SisIdiomaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _sis_translate_sis_translate_service__WEBPACK_IMPORTED_MODULE_6__["SisTranslateService"] },
        { type: _corporate_service__WEBPACK_IMPORTED_MODULE_5__["CorporateService"] }
    ]; };
    SisIdiomaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-idiomas-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./sis-idioma-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/corporate/sis-idioma/sis-idioma-index/sis-idioma-index.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_4__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _sis_translate_sis_translate_service__WEBPACK_IMPORTED_MODULE_6__["SisTranslateService"],
            _corporate_service__WEBPACK_IMPORTED_MODULE_5__["CorporateService"]])
    ], SisIdiomaIndexComponent);
    return SisIdiomaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisIdiomaConstants", function() { return SisIdiomaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SisIdiomaConstants = /** @class */ (function () {
    function SisIdiomaConstants() {
        this.sisFormularioId = 9;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: this.sisFormularioId, 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.sisIdioma";
        this.reportId = "COR0006";
        this.tabela = "SisIdioma";
        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' },
            { title: 'GeraTranslate', action: 'geraTranslateByIdioma', icon: "icon-world", 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 SisIdiomaConstants;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisIdiomaModule", function() { return SisIdiomaModule; });
/* 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_idioma_index_sis_idioma_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sis-idioma-index/sis-idioma-index.component */ "./src/app/pages/admin/corporate/sis-idioma/sis-idioma-index/sis-idioma-index.component.ts");
/* harmony import */ var _sis_idioma_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sis-idioma.routing.module */ "./src/app/pages/admin/corporate/sis-idioma/sis-idioma.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 SisIdiomaModule = /** @class */ (function () {
    function SisIdiomaModule() {
    }
    SisIdiomaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _sis_idioma_routing_module__WEBPACK_IMPORTED_MODULE_3__["SisIdiomaRoutingModule"]],
            declarations: [_sis_idioma_index_sis_idioma_index_component__WEBPACK_IMPORTED_MODULE_2__["SisIdiomaIndexComponent"]]
        })
    ], SisIdiomaModule);
    return SisIdiomaModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SisIdiomaRoutingModule", function() { return SisIdiomaRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _sis_idioma_index_sis_idioma_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sis-idioma-index/sis-idioma-index.component */ "./src/app/pages/admin/corporate/sis-idioma/sis-idioma-index/sis-idioma-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: _sis_idioma_index_sis_idioma_index_component__WEBPACK_IMPORTED_MODULE_3__["SisIdiomaIndexComponent"],
        data: { breadcrumb: "Idioma", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var SisIdiomaRoutingModule = /** @class */ (function () {
    function SisIdiomaRoutingModule() {
    }
    SisIdiomaRoutingModule = __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"]],
        })
    ], SisIdiomaRoutingModule);
    return SisIdiomaRoutingModule;
}());



/***/ })

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