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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"tipo-de-material-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.tipoDeMaterial' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group\">\n                                <label for=\"tipoMaterialDe\">{{'labels.tipoDe' | translate}}</label>\n                                <input id=\"tipoMaterialDe\" name=\"tipoMaterialDe\" [(ngModel)]=\"service.filter.tipoMaterialDe\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       data-title=\"{{'labels.tipoMaterialDe' | translate}}\" autofocus\n                                       mask=\"00.000.0000\" [dropSpecialCharacters]=\"false\" [validation]=\"false\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group\">\n                                <label for=\"tipoMaterialAte\">{{'labels.tipoAte' | translate}}</label>\n                                <input id=\"tipoMaterialAte\" name=\"tipoMaterialAte\" [(ngModel)]=\"service.filter.tipoMaterialAte\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       data-title=\"{{'labels.tipoMaterialAte' | translate}}\" autofocus\n                                       mask=\"00.000.0000\" [dropSpecialCharacters]=\"false\" [validation]=\"false\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group\">\n                                <label for=\"descricaoDe\">{{'labels.descricaoDe' | translate}}</label>\n                                <input id=\"descricaoDe\" name=\"descricaoDe\" [(ngModel)]=\"service.filter.descricaoDe\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       data-title=\"{{'labels.descricaoDe' | translate}}\" autofocus>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group\">\n                                <label for=\"descricaoAte\">{{'labels.descricaoAte' | translate}}</label>\n                                <input id=\"descricaoAte\" name=\"descricaoAte\" [(ngModel)]=\"service.filter.descricaoAte\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       data-title=\"{{'labels.descricaoAte' | translate}}\" autofocus>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-material/tipo-de-material-form/tipo-de-material-form.component.html":
/*!**************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-material/tipo-de-material-form/tipo-de-material-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\" [dropDownMenu]=\"\" [formAction]=\"actionForm\"\r\n    [itemData]=\"data.tipoDeMaterialId\">\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\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipoDeMaterialId\">{{'labels.id' | translate}}</label>\r\n                                <input id=\"tipoDeMaterialId\" name=\"tipoDeMaterialId\" [(ngModel)]=\"data.tipoDeMaterialId\"\r\n                                    class=\"form-control form-control-sm\" required- type=\"text\"\r\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\" disabled>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-5\">\r\n                            <div class=\"form-group\">\r\n                                <label for=\"tipoMaterial\" class=\"required\">{{'labels.tipo' | translate}}</label>\r\n                                <input id=\"tipoMaterial\" name=\"tipoMaterial\" [(ngModel)]=\"data.tipoMater\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm) || !alteracaoDeTipo\"\r\n                                    data-title=\"{{'labels.tipo' | translate}}\" required autofocus mask=\"00.000.0000\"\r\n                                    [dropSpecialCharacters]=\"false\" [validation]=\"false\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3\">\r\n                            <label for=\"flagAtivo\">&nbsp;</label>\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagAtivo\" name=\"flagAtivo\" [ngModel]=\"data.flagAtivo === 'S'\"\r\n                                    (ngModelChange)=\"data.flagAtivo=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagAtivo\">{{'labels.ativo' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"descricao\" class=\"required\">{{'labels.descricao' | translate}}</label>\r\n                                <input id=\"descricao\" name=\"descricao\" [(ngModel)]=\"data.descrTipoMater\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-2\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"fatorCompra\">{{'labels.fatorCompra' | translate}}</label>\r\n                                <input id=\"fatorCompra\" name=\"fatorCompra\" [(ngModel)]=\"data.fatorCompra\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"8\" currencyMask\r\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: '5' }\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-2\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"codGrupo\">{{'labels.referencia' | translate}}</label>\r\n                                <input id=\"codGrupo\" name=\"codGrupo\" [(ngModel)]=\"data.codGrupo\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"5\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-2\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipoCusto\">{{ 'labels.tipoCusto' | translate}}</label>\r\n                                <select [(ngModel)]=\"data.tipoCusto\" class=\"form-control form-control-sm\" id=\"tipoCusto\"\r\n                                    name=\"tipoCusto\" [(ngModel)]=\"data.tipoCusto\"\r\n                                    data-title=\"{{'labels.tipoCusto' | translate}}\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                    <option value=\"F\">Fixo</option>\r\n                                    <option value=\"V\">Variável</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-3\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-field-container>\r\n                                    <label for=\"tipoMaterialSpedId\">{{'labels.tipoMaterialSped' | translate}}</label>\r\n                                    <app-combo-padrao id=\"tipoMaterialSpedId\" name=\"tipoMaterialSped\"\r\n                                        id=\"tipoMaterialSped\" chave=\"TipoMaterialSped\" descricao=\"DescrMaterialSped\"\r\n                                        ativo=\"true\" tabela=\"TipoMaterialSped\" [(ngModel)]=\"data.tipoMaterialSpedId\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    </app-combo-padrao>\r\n                                </app-field-container>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-3\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipoGranel\">{{ 'labels.tipoGranel' | translate}}</label>\r\n                                <select [(ngModel)]=\"data.tipoGranel\" class=\"form-control form-control-sm\"\r\n                                    id=\"tipoGranel\" name=\"tipoGranel\" [(ngModel)]=\"data.tipoGranel\"\r\n                                    data-title=\"{{'labels.tipoGranel' | translate}}\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                    <option *ngFor=\"let t of tipoDeProdutos.get\" value=\"{{t['id']}}\">{{ t['descricao']\r\n                                        }}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"movEstoque\" name=\"movEstoque\" [ngModel]=\"data.movEstoque === 'S'\"\r\n                                    (ngModelChange)=\"data.movEstoque=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"movEstoque\">{{'labels.estoque' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagCaract\" name=\"flagCaract\" [ngModel]=\"data.flagCaract === 'S'\"\r\n                                    (ngModelChange)=\"data.flagCaract=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagCaract\">{{'labels.flagCaract' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagLote\" name=\"flagLote\" [ngModel]=\"data.flagLote === 'S'\"\r\n                                    (ngModelChange)=\"data.flagLote=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagLote\">{{'labels.flagLote' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagInventario\" name=\"flagInventario\" [ngModel]=\"data.flagInventario === 'S'\"\r\n                                    (ngModelChange)=\"data.flagInventario=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagInventario\">{{'labels.flagInventario' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagPesa\" name=\"flagPesa\" [ngModel]=\"data.flagPesa === 'S'\"\r\n                                    (ngModelChange)=\"data.flagPesa=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagPesa\">{{'labels.flagPesa' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagSintetica\" name=\"flagSintetica\" [ngModel]=\"data.contaSintetica === 'S'\"\r\n                                    (ngModelChange)=\"data.contaSintetica=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagSintetica\">{{'labels.sintetica' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagPregao\" name=\"flagPregao\" [ngModel]=\"data.flagPregao === 'S'\"\r\n                                    (ngModelChange)=\"data.flagPregao=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagPregao\">{{'labels.flagPregao' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagAnalise\" name=\"flagAnalise\" [ngModel]=\"data.flagAnalise === 'S'\"\r\n                                    (ngModelChange)=\"data.flagAnalise=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagAnalise\">{{'labels.flagAnalise' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"flagMapa\" name=\"flagMapa\" [ngModel]=\"data.flagMapa === 'S'\"\r\n                                    (ngModelChange)=\"data.flagMapa=$event?'S':'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                <label class=\"custom-control-label\" for=\"flagMapa\">{{'labels.flagMapa' |\r\n                                    translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4\">\r\n                            <span *ngIf=\"data.sisCampoAdds\">\r\n                                <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\r\n                                    <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\r\n                                        [(ngModel)]=\"d.valorCampo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\r\n                                </div>\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    {{ 'buttons.salvar' | translate }}\r\n                                </button>\r\n                                <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' | translate\r\n                                    }}</button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

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

/***/ }),

/***/ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material-filter/tipo-de-material-filter.component.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-de-material/tipo-de-material-filter/tipo-de-material-filter.component.ts ***!
  \**************************************************************************************************************/
/*! exports provided: TipoDeMaterialFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialFilterComponent", function() { return TipoDeMaterialFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tipo-de-material.service */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var TipoDeMaterialFilterComponent = /** @class */ (function () {
    function TipoDeMaterialFilterComponent(loginService, message, service) {
        this.loginService = loginService;
        this.message = message;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.blockFields = false;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.filialId = loginService.getLogin().filialId;
    }
    TipoDeMaterialFilterComponent.prototype.ngOnInit = function () {
    };
    TipoDeMaterialFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.filtrar.emit();
        }
        jQuery("#tipo-de-material-filter").modal("hide");
    };
    TipoDeMaterialFilterComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_4__["TipoDeMaterialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TipoDeMaterialFilterComponent.prototype, "filtrar", void 0);
    TipoDeMaterialFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-tipo-de-material-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-de-material-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-material/tipo-de-material-filter/tipo-de-material-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_4__["TipoDeMaterialService"]])
    ], TipoDeMaterialFilterComponent);
    return TipoDeMaterialFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialFormComponent", function() { return TipoDeMaterialFormComponent; });
/* 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_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-material/tipo-de-material.model */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tipo-de-material.service */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _tipo_de_material_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tipo-de-material.constants */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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 TipoDeMaterialFormComponent = /** @class */ (function (_super) {
    __extends(TipoDeMaterialFormComponent, _super);
    function TipoDeMaterialFormComponent(router, messageService, activatedRoute, tipoDeMaterialService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _tipo_de_material_constants__WEBPACK_IMPORTED_MODULE_8__["TipoDeMaterialConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.tipoDeMaterialService = tipoDeMaterialService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_2__["TipoDeMaterial"]();
        _this.mensagens = [];
        _this.tipoDeProdutos = new _config_enumerables__WEBPACK_IMPORTED_MODULE_7__["TipoDeProduto"]();
        _this.constantes = new _tipo_de_material_constants__WEBPACK_IMPORTED_MODULE_8__["TipoDeMaterialConstants"]();
        _this.alteracaoDeTipo = true;
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TipoDeMaterialFormComponent.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.permissoesUtils.validRotina(_this.constantes.sisFormularioId, 7, function () { return _this.alteracaoDeTipo = true; }, function () { return _this.alteracaoDeTipo = false; });
                _this.tipoDeMaterialService.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                });
            }
            else {
                _this.data = new app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_2__["TipoDeMaterial"]();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    TipoDeMaterialFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Manutenção tipo material";
        this.tipoDeMaterialService
            .save(this.data, this.data.tipoDeMaterialId > 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_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.tipoDeMaterial");
                if (create) {
                    _this.data = new app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_2__["TipoDeMaterial"]();
                    _this.router.navigate([_this.target + "/cadastro/tipoDeMaterial/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    TipoDeMaterialFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeMaterial/edit/" + this.data.tipoDeMaterialId]);
    };
    TipoDeMaterialFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    TipoDeMaterialFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeMaterial"]);
    };
    TipoDeMaterialFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    TipoDeMaterialFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_4__["TipoDeMaterialService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] }
    ]; };
    TipoDeMaterialFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-tipo-de-material-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-de-material-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-material/tipo-de-material-form/tipo-de-material-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_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_4__["TipoDeMaterialService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"]])
    ], TipoDeMaterialFormComponent);
    return TipoDeMaterialFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_9__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialIndexComponent", function() { return TipoDeMaterialIndexComponent; });
/* 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 _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tipo-de-material.service */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-material/tipo-de-material.model */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts");
/* harmony import */ var _tipo_de_material_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tipo-de-material.constants */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.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");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
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 TipoDeMaterialIndexComponent = /** @class */ (function (_super) {
    __extends(TipoDeMaterialIndexComponent, _super);
    function TipoDeMaterialIndexComponent(router, tipoDeMaterialService, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _tipo_de_material_constants__WEBPACK_IMPORTED_MODULE_7__["TipoDeMaterialConstants"](), funcoesService) || this;
        _this.router = router;
        _this.tipoDeMaterialService = tipoDeMaterialService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_6__["TipoDeMaterial"]();
        _this.constantes = new _tipo_de_material_constants__WEBPACK_IMPORTED_MODULE_7__["TipoDeMaterialConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TipoDeMaterialIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            jQuery("#tipo-de-material-filter").modal("show");
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    TipoDeMaterialIndexComponent.prototype.filtrar = function () {
        jQuery("#tipo-de-material-filter").modal("show");
    };
    TipoDeMaterialIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    TipoDeMaterialIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeMaterial/create"]);
    };
    TipoDeMaterialIndexComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeMaterial", "edit", this.data.tipoDeMaterialId]);
    };
    TipoDeMaterialIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    TipoDeMaterialIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TipoDeMaterialIndexComponent.prototype.detail = function () {
        this.router.navigate([this.target + "/cadastro/tipoDeMaterial", "detail", this.data.tipoDeMaterialId]);
    };
    TipoDeMaterialIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.tipoDeMaterialService.getList(this.tipoDeMaterialService.filter).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("tipoDeMaterialId", "id", "10%"),
                _this.datatablesService.getDataString("tipoMater", "tipo", "10%"),
                _this.datatablesService.getDataString("descrTipoMater", "descricao"),
                _this.datatablesService.getDataBool("movEstoque", "estoque", "10%"),
                _this.datatablesService.getDataBool("contaSintetica", "sintetica", "10%"),
                _this.datatablesService.getDataBool("flagLote", "lote", "10%")
            ];
            _this.datatablesService.datatable("dtTipoDeMaterial", columns, resp, function (aData) {
                _this.data = aData;
            }, 1, "asc");
        });
    };
    TipoDeMaterialIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.tipoDeMaterialId)) {
            this.messageService.removeConfirm(function () {
                _this.tipoDeMaterialService.remove(_this.data).subscribe(function () {
                    _this.datatablesService.remove("dtTipoDeMaterial");
                });
            });
        }
    };
    TipoDeMaterialIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_3__["TipoDeMaterialService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    TipoDeMaterialIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-tipo-de-material-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tipo-de-material-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/tipo-de-material/tipo-de-material-index/tipo-de-material-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _tipo_de_material_service__WEBPACK_IMPORTED_MODULE_3__["TipoDeMaterialService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], TipoDeMaterialIndexComponent);
    return TipoDeMaterialIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialConstants", function() { return TipoDeMaterialConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TipoDeMaterialConstants = /** @class */ (function () {
    function TipoDeMaterialConstants() {
        this.sisFormularioId = 25028;
        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" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.alteracaoDeTipo" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.tipoDeMaterial";
        this.reportId = "CAD0111";
        this.tabela = "tipoDeMaterial";
        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: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { 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 TipoDeMaterialConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts ***!
  \***************************************************************************/
/*! exports provided: TipoDeMaterial, TipoDeMaterialFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

var TipoDeMaterial = /** @class */ (function (_super) {
    __extends(TipoDeMaterial, _super);
    function TipoDeMaterial() {
        var _this = _super.call(this) || this;
        _this.flagAnalise = "N";
        _this.flagAtivo = "S";
        _this.flagCaract = "N";
        _this.flagInventario = "N";
        _this.flagLote = "N";
        _this.flagMapa = "N";
        _this.flagMob = "N";
        _this.flagPalm = "N";
        _this.flagPcp = "N";
        _this.flagPed = "N";
        _this.flagPesa = "N";
        _this.flagPregao = "N";
        _this.contaSintetica = "N";
        _this.flagWeb = "N";
        _this.tipoGranel = "";
        _this.tipoMaterialSpedId = "";
        _this.tipoCusto = "";
        return _this;
    }
    return TipoDeMaterial;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var TipoDeMaterialFilter = /** @class */ (function () {
    function TipoDeMaterialFilter() {
    }
    return TipoDeMaterialFilter;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialModule", function() { return TipoDeMaterialModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _tipo_de_material_routing_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tipo-de-material.routing.module */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.routing.module.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var app_pages_cadastro_tipo_de_material_tipo_de_material_index_tipo_de_material_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-material/tipo-de-material-index/tipo-de-material-index.component */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material-index/tipo-de-material-index.component.ts");
/* harmony import */ var app_pages_cadastro_tipo_de_material_tipo_de_material_form_tipo_de_material_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-material/tipo-de-material-form/tipo-de-material-form.component */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material-form/tipo-de-material-form.component.ts");
/* harmony import */ var _tipo_de_material_filter_tipo_de_material_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./tipo-de-material-filter/tipo-de-material-filter.component */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material-filter/tipo-de-material-filter.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var TipoDeMaterialModule = /** @class */ (function () {
    function TipoDeMaterialModule() {
    }
    TipoDeMaterialModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _tipo_de_material_routing_module__WEBPACK_IMPORTED_MODULE_1__["TipoDeMaterialRoutingModule"]
            ],
            declarations: [app_pages_cadastro_tipo_de_material_tipo_de_material_index_tipo_de_material_index_component__WEBPACK_IMPORTED_MODULE_3__["TipoDeMaterialIndexComponent"], app_pages_cadastro_tipo_de_material_tipo_de_material_form_tipo_de_material_form_component__WEBPACK_IMPORTED_MODULE_4__["TipoDeMaterialFormComponent"], _tipo_de_material_filter_tipo_de_material_filter_component__WEBPACK_IMPORTED_MODULE_5__["TipoDeMaterialFilterComponent"]]
        })
    ], TipoDeMaterialModule);
    return TipoDeMaterialModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialRoutingModule", function() { return TipoDeMaterialRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _tipo_de_material_index_tipo_de_material_index_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tipo-de-material-index/tipo-de-material-index.component */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material-index/tipo-de-material-index.component.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _tipo_de_material_form_tipo_de_material_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tipo-de-material-form/tipo-de-material-form.component */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material-form/tipo-de-material-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _tipo_de_material_index_tipo_de_material_index_component__WEBPACK_IMPORTED_MODULE_1__["TipoDeMaterialIndexComponent"],
        data: { breadcrumb: "TipoDeMaterial", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _tipo_de_material_form_tipo_de_material_form_component__WEBPACK_IMPORTED_MODULE_4__["TipoDeMaterialFormComponent"],
        data: {
            breadcrumb: "TipoDeMaterial",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _tipo_de_material_form_tipo_de_material_form_component__WEBPACK_IMPORTED_MODULE_4__["TipoDeMaterialFormComponent"],
        data: {
            breadcrumb: "TipoDeMaterial",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _tipo_de_material_form_tipo_de_material_form_component__WEBPACK_IMPORTED_MODULE_4__["TipoDeMaterialFormComponent"],
        data: {
            breadcrumb: "TipoDeMaterial",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].detail }
        }
    }
];
var TipoDeMaterialRoutingModule = /** @class */ (function () {
    function TipoDeMaterialRoutingModule() {
    }
    TipoDeMaterialRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
        })
    ], TipoDeMaterialRoutingModule);
    return TipoDeMaterialRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoDeMaterialService", function() { return TipoDeMaterialService; });
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-material/tipo-de-material.model */ "./src/app/pages/cadastro/tipo-de-material/tipo-de-material.model.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.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 TipoDeMaterialService = /** @class */ (function (_super) {
    __extends(TipoDeMaterialService, _super);
    function TipoDeMaterialService(http) {
        var _this = _super.call(this, http, "cadastros/tipoDeMaterial") || this;
        _this.filter = new app_pages_cadastro_tipo_de_material_tipo_de_material_model__WEBPACK_IMPORTED_MODULE_3__["TipoDeMaterialFilter"]();
        return _this;
    }
    TipoDeMaterialService.prototype.getList = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/tipoDeMaterial/listar", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    TipoDeMaterialService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    TipoDeMaterialService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], TipoDeMaterialService);
    return TipoDeMaterialService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ })

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