(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-raizen-cadastros-tipo-de-nota-tipo-de-nota-module"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.cliRaizenTipoNotaId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <app-form-legenda></app-form-legenda>\r\n            <div class=\"card-body widget-body\">\r\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                    <app-validacoes></app-validacoes>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"cliRaizenTipoNotaId\">{{'labels.id' | translate}}</label>\r\n                                <input id=\"cliRaizenTipoNotaId\" name=\"id\" [(ngModel)]=\"data.cliRaizenTipoNotaId\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"operacaoId\">{{\"labels.operacao\" | translate}}</label>\r\n                                <app-combo-operacao id=\"operacaoId\" label=\"operacaoId\" name=\"operacao\" tipo=\"S\"\r\n                                    [disabled]=\"!permiteAlterarOperacao || funcoesService.isDetail(actionForm)\"\r\n                                    [(ngModel)]=\"data.operacaoId\">\r\n                                </app-combo-operacao>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipoMov\">{{'labels.tipoMov' | translate}}</label>\r\n                                <input id=\"tipoMov\" name=\"tipoMov\" [(ngModel)]=\"data.tipoMov\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"obrigaBSLZ\">{{'labels.obrigaBSLZ' | translate}}</label>\r\n                                <input id=\"obrigaBSLZ\" name=\"obrigaBSLZ\" [(ngModel)]=\"data.obrigaBSLZ\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"descricao\">{{'labels.descricao' | translate}}</label>\r\n                                <input id=\"descricao\" name=\"descricao\" [(ngModel)]=\"data.descricao\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"row\" *ngIf=\"permiteAlterarOperacao\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success\" type=\"submit\"\r\n                                    [disabled]=\"!permiteAlterarOperacao || funcoesService.isDetail(actionForm)\">{{\r\n                                    'buttons.salvar' | translate\r\n                                    }}</button>\r\n                            </div>\r\n                        </div>\r\n\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

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

/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-form/tipo-de-nota-form.component.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-form/tipo-de-nota-form.component.ts ***!
  \******************************************************************************************************************/
/*! exports provided: TipoDeNotaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeNotaFormComponent", function() { return TipoDeNotaFormComponent; });
/* 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 app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _tipo_de_nota_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tipo-de-nota.constants */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.constants.ts");
/* harmony import */ var _tipo_de_nota_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tipo-de-nota.model */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.model.ts");
/* harmony import */ var _tipo_de_nota_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../tipo-de-nota.service */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.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 TipoDeNotaFormComponent = /** @class */ (function (_super) {
    __extends(TipoDeNotaFormComponent, _super);
    function TipoDeNotaFormComponent(permissoesUtils, router, activatedRoute, service, funcoesService, messageService) {
        var _this = _super.call(this, new _tipo_de_nota_constants__WEBPACK_IMPORTED_MODULE_8__["TipoDeNotaConstants"](), funcoesService) || this;
        _this.permissoesUtils = permissoesUtils;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.constantes = new _tipo_de_nota_constants__WEBPACK_IMPORTED_MODULE_8__["TipoDeNotaConstants"]();
        _this.data = new _tipo_de_nota_model__WEBPACK_IMPORTED_MODULE_9__["TipoDeNota"]();
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/raizen/cadastros/tipoDeNota";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TipoDeNotaFormComponent.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 (resp) {
                    _this.data = resp;
                });
            }
            else {
                _this.data = new _tipo_de_nota_model__WEBPACK_IMPORTED_MODULE_9__["TipoDeNota"]();
            }
        });
    };
    TipoDeNotaFormComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    TipoDeNotaFormComponent.prototype.edit = function () {
        if (this.service.validaPermiteAlterarOperacao(this.data.tipoMov))
            return;
        this.router.navigate(["" + this.target + this.pageRoute, "edit", this.data.cliRaizenTipoNotaId]);
    };
    TipoDeNotaFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get('formError').emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = 'Manutenção Tipo de Nota';
        this.service.save(this.data, this.funcoesService.isEdit(this.actionForm)).subscribe(function (resp) {
            _this.mensagens = _this.messageService.validationResult(resp.validationResult);
            if (!resp.validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get('backError').emit(_this.mensagens);
                return;
            }
            _this.messageService.saveSuccess('titles.tipoDeNota');
            _this.back();
        });
    };
    Object.defineProperty(TipoDeNotaFormComponent.prototype, "permiteAlterarOperacao", {
        get: function () {
            if (!this.data.tipoMov)
                return false;
            return (this.data.tipoMov === 'S');
        },
        enumerable: true,
        configurable: true
    });
    TipoDeNotaFormComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _tipo_de_nota_service__WEBPACK_IMPORTED_MODULE_10__["TipoDeNotaService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] }
    ]; };
    TipoDeNotaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-de-nota-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-form/tipo-de-nota-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _tipo_de_nota_service__WEBPACK_IMPORTED_MODULE_10__["TipoDeNotaService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"]])
    ], TipoDeNotaFormComponent);
    return TipoDeNotaFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-index/tipo-de-nota-index.component.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-index/tipo-de-nota-index.component.ts ***!
  \********************************************************************************************************************/
/*! exports provided: TipoDeNotaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeNotaIndexComponent", function() { return TipoDeNotaIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _tipo_de_nota_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tipo-de-nota.constants */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.constants.ts");
/* harmony import */ var _tipo_de_nota_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tipo-de-nota.model */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.model.ts");
/* harmony import */ var _tipo_de_nota_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../tipo-de-nota.service */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.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 TipoDeNotaIndexComponent = /** @class */ (function (_super) {
    __extends(TipoDeNotaIndexComponent, _super);
    function TipoDeNotaIndexComponent(funcoesService, permissoesUtils, datatablesService, service, router, loginService, messageService) {
        var _this = _super.call(this, new _tipo_de_nota_constants__WEBPACK_IMPORTED_MODULE_8__["TipoDeNotaConstants"](), funcoesService) || this;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.datatablesService = datatablesService;
        _this.service = service;
        _this.router = router;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.constantes = new _tipo_de_nota_constants__WEBPACK_IMPORTED_MODULE_8__["TipoDeNotaConstants"]();
        _this.data = new _tipo_de_nota_model__WEBPACK_IMPORTED_MODULE_9__["TipoDeNota"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mensagens = [];
        _this.pageRoute = "/especificos/raizen/cadastros/tipoDeNota";
        return _this;
    }
    TipoDeNotaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.refresh();
        });
    };
    TipoDeNotaIndexComponent.prototype.refresh = function () {
        var _this = this;
        var columns = [
            this.datatablesService.getDataString('cliRaizenTipoNotaId', 'id', "5%"),
            this.datatablesService.getDataString('tipoMov', 'tipoMov', "15%"),
            this.datatablesService.getDataString('obrigaBSLZ', 'obrigaBSLZ', "10%"),
            this.datatablesService.getDataString('descrOperacao', 'operacao'),
            this.datatablesService.getDataString('descricao', 'descricao'),
        ];
        this.service.get().subscribe(function (resp) {
            _this.datatablesService.datatable('dtTipoDeNota', columns, resp, function (aData) {
                _this.data = aData;
            }, 0, "asc");
        });
    };
    TipoDeNotaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    TipoDeNotaIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    TipoDeNotaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TipoDeNotaIndexComponent.prototype.edit = function () {
        if (!!(this.data.cliRaizenTipoNotaId)) {
            if (this.service.validaPermiteAlterarOperacao(this.data.tipoMov))
                return;
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.cliRaizenTipoNotaId]);
        }
    };
    TipoDeNotaIndexComponent.prototype.detail = function () {
        if (!!(this.data.cliRaizenTipoNotaId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.cliRaizenTipoNotaId]);
        }
    };
    TipoDeNotaIndexComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _tipo_de_nota_service__WEBPACK_IMPORTED_MODULE_10__["TipoDeNotaService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] }
    ]; };
    TipoDeNotaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-de-nota-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-index/tipo-de-nota-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _tipo_de_nota_service__WEBPACK_IMPORTED_MODULE_10__["TipoDeNotaService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"]])
    ], TipoDeNotaIndexComponent);
    return TipoDeNotaIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.constants.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.constants.ts ***!
  \*******************************************************************************************/
/*! exports provided: TipoDeNotaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeNotaConstants", function() { return TipoDeNotaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TipoDeNotaConstants = /** @class */ (function () {
    function TipoDeNotaConstants() {
        this.sisFormularioId = 65658;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" }
        ];
        this.sisSistemaId = 'CAD';
        this.nomeForm = 'titles.tipoDeNota';
        this.reportId = 'RAI0003';
        this.reportTitulo = { 'titulo': 'Tipo de Nota', 'subTitulo': '' };
        this.listaIndex = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", 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: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return TipoDeNotaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.model.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.model.ts ***!
  \***************************************************************************************/
/*! exports provided: TipoDeNota */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeNota", function() { return TipoDeNota; });
/* 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 TipoDeNota = /** @class */ (function (_super) {
    __extends(TipoDeNota, _super);
    function TipoDeNota() {
        return _super.call(this) || this;
    }
    return TipoDeNota;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.module.ts ***!
  \****************************************************************************************/
/*! exports provided: TipoDeNotaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeNotaModule", function() { return TipoDeNotaModule; });
/* 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_de_nota_form_tipo_de_nota_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tipo-de-nota-form/tipo-de-nota-form.component */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-form/tipo-de-nota-form.component.ts");
/* harmony import */ var _tipo_de_nota_index_tipo_de_nota_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tipo-de-nota-index/tipo-de-nota-index.component */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-index/tipo-de-nota-index.component.ts");
/* harmony import */ var _tipo_de_nota_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tipo-de-nota.routing.module */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.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 TipoDeNotaModule = /** @class */ (function () {
    function TipoDeNotaModule() {
    }
    TipoDeNotaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _tipo_de_nota_index_tipo_de_nota_index_component__WEBPACK_IMPORTED_MODULE_3__["TipoDeNotaIndexComponent"],
                _tipo_de_nota_form_tipo_de_nota_form_component__WEBPACK_IMPORTED_MODULE_2__["TipoDeNotaFormComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _tipo_de_nota_routing_module__WEBPACK_IMPORTED_MODULE_4__["TipoDeNotaRoutingModule"]
            ]
        })
    ], TipoDeNotaModule);
    return TipoDeNotaModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.routing.module.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.routing.module.ts ***!
  \************************************************************************************************/
/*! exports provided: TipoDeNotaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeNotaRoutingModule", function() { return TipoDeNotaRoutingModule; });
/* 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_de_nota_form_tipo_de_nota_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tipo-de-nota-form/tipo-de-nota-form.component */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-form/tipo-de-nota-form.component.ts");
/* harmony import */ var _tipo_de_nota_index_tipo_de_nota_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tipo-de-nota-index/tipo-de-nota-index.component */ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota-index/tipo-de-nota-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 ROUTES = [
    {
        path: '',
        component: _tipo_de_nota_index_tipo_de_nota_index_component__WEBPACK_IMPORTED_MODULE_4__["TipoDeNotaIndexComponent"],
        data: {
            breadcrumb: 'titles.tipoDeNota',
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: 'edit/:id',
        component: _tipo_de_nota_form_tipo_de_nota_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoDeNotaFormComponent"],
        data: {
            breadcrumb: 'titles.tipoDeNota',
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _tipo_de_nota_form_tipo_de_nota_form_component__WEBPACK_IMPORTED_MODULE_3__["TipoDeNotaFormComponent"],
        data: {
            breadcrumb: "titles.tipoDeNota",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var TipoDeNotaRoutingModule = /** @class */ (function () {
    function TipoDeNotaRoutingModule() {
    }
    TipoDeNotaRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(ROUTES)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], TipoDeNotaRoutingModule);
    return TipoDeNotaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.service.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/cadastros/tipo-de-nota/tipo-de-nota.service.ts ***!
  \*****************************************************************************************/
/*! exports provided: TipoDeNotaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeNotaService", function() { return TipoDeNotaService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.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 TipoDeNotaService = /** @class */ (function (_super) {
    __extends(TipoDeNotaService, _super);
    function TipoDeNotaService(http, message) {
        var _this = _super.call(this, http, 'raizen/TipoDeNota') || this;
        _this.http = http;
        _this.message = message;
        return _this;
    }
    TipoDeNotaService.prototype.validaPermiteAlterarOperacao = function (tipoMov) {
        var result = (tipoMov !== 'S');
        if (result)
            this.message.warning("titles.tipoDeNota", "messages.tipoMovimentacaoNaoPermite", { tipoMov: tipoMov });
        return result;
    };
    TipoDeNotaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    TipoDeNotaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], TipoDeNotaService);
    return TipoDeNotaService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-raizen-cadastros-tipo-de-nota-tipo-de-nota-module.js.map