(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cotriguacu-portaria-material-fornecedor-material-fornecedor-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-filter/material-fornecedor-filter.component.html":
/*!**************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-filter/material-fornecedor-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\" id=\"material-fornecedor-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.filter\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" label=\"emitente\"\r\n                                    modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"service.filter.destinatarioIdEmitente\"\r\n                                    [inSelected]=\"service.filter.emitente\"\r\n                                    (outSelected)=\"service.filter.emitente = $event\" tipoDestinatario=\"C\"\r\n                                    showCgcCpf=\"false\" showInscricao=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-form/material-fornecedor-form.component.html":
/*!**********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-form/material-fornecedor-form.component.html ***!
  \**********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\"\r\n    [itemData]=\"data.materialFornecedorId\" [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            <div class=\"\">\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-8 col-md-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" label=\"emitente\"\r\n                                        modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"data.destinatarioIdEmitente\"\r\n                                        tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                        [inSelected]=\"data.emitente\" [disabled]=\"!funcoesService.isCreate(actionForm)\"\r\n                                        required=\"true\" (outModel)=\"trataEmitente($event)\">\r\n                                    </app-pesquisa-destinatario>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-8 col-md-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"material\"\r\n                                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.materialId\"\r\n                                        [inSelected]=\"data.material\" (outModel)=\"trataMaterial($event)\" required=\"true\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    </app-pesquisa-material>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4\">\r\n                                <label for=\"codigoDoEmitente\" class=\"required\">{{\r\n                                    \"labels.codigoDoEmitente\" | translate\r\n                                    }}</label>\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <input id=\"codigoDoEmitente\" name=\"codigoDoEmitente\"\r\n                                        [(ngModel)]=\"data.codMatFornecedor\" maxlength=\"200\"\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-12\">\r\n                                <div class=\"form-group\">\r\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvar' | translate\r\n                                        }}\r\n                                    </button>\r\n                                    <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' |\r\n                                        translate }}</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</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-index/material-fornecedor-index.component.html":
/*!************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-index/material-fornecedor-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [formAction]=\"actionForm\" [itemData]=\"data.materialFornecedorId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtMaterialFornecedor\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n    </table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-material-fornecedor-filter (filtrar)=\"executarFiltro()\">\n</app-material-fornecedor-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-filter/material-fornecedor-filter.component.ts":
/*!**********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-filter/material-fornecedor-filter.component.ts ***!
  \**********************************************************************************************************************************************/
/*! exports provided: MaterialFornecedorFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedorFilterComponent", function() { return MaterialFornecedorFilterComponent; });
/* 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_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _material_fornecedor_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../material-fornecedor.constants */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.constants.ts");
/* harmony import */ var _material_fornecedor_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../material-fornecedor.service */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.service.ts");
/* harmony import */ var _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../material-fornecedor.model */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.model.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 MaterialFornecedorFilterComponent = /** @class */ (function () {
    function MaterialFornecedorFilterComponent(service, message) {
        this.service = service;
        this.message = message;
        this.constantes = new _material_fornecedor_constants__WEBPACK_IMPORTED_MODULE_3__["MaterialFornecedorConstants"]();
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    MaterialFornecedorFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filter) {
            this.service.filter = new _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_5__["MaterialFornecedorFilter"]();
        }
    };
    Object.defineProperty(MaterialFornecedorFilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.materiaisDeFornecedores");
        },
        enumerable: true,
        configurable: true
    });
    MaterialFornecedorFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.filtrar.emit();
        jQuery("#material-fornecedor-filter-dialog").modal("hide");
    };
    MaterialFornecedorFilterComponent.ctorParameters = function () { return [
        { type: _material_fornecedor_service__WEBPACK_IMPORTED_MODULE_4__["MaterialFornecedorService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MaterialFornecedorFilterComponent.prototype, "filtrar", void 0);
    MaterialFornecedorFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-material-fornecedor-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./material-fornecedor-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-filter/material-fornecedor-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_material_fornecedor_service__WEBPACK_IMPORTED_MODULE_4__["MaterialFornecedorService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], MaterialFornecedorFilterComponent);
    return MaterialFornecedorFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-form/material-fornecedor-form.component.ts":
/*!******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-form/material-fornecedor-form.component.ts ***!
  \******************************************************************************************************************************************/
/*! exports provided: MaterialFornecedorFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedorFormComponent", function() { return MaterialFornecedorFormComponent; });
/* 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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __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_7__ = __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_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _material_fornecedor_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../material-fornecedor.constants */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.constants.ts");
/* harmony import */ var _material_fornecedor_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../material-fornecedor.service */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.service.ts");
/* harmony import */ var _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../material-fornecedor.model */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.model.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.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 __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 __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
















var MaterialFornecedorFormComponent = /** @class */ (function (_super) {
    __extends(MaterialFornecedorFormComponent, _super);
    function MaterialFornecedorFormComponent(router, message, activatedRoute, service, funcoesService, permissoesUtils, loginService, configuracao) {
        var _this = _super.call(this, new _material_fornecedor_constants__WEBPACK_IMPORTED_MODULE_11__["MaterialFornecedorConstants"](), funcoesService) || this;
        _this.router = router;
        _this.message = message;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.data = new _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_13__["MaterialFornecedor"]();
        _this.mensagens = [];
        _this.constantes = new _material_fornecedor_constants__WEBPACK_IMPORTED_MODULE_11__["MaterialFornecedorConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.pageRoute = "/especificos/cotriguacu/portaria/materialFornecedor";
        _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;
    }
    MaterialFornecedorFormComponent.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 _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_13__["MaterialFornecedor"]();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    MaterialFornecedorFormComponent.prototype.edit = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].isPositive(this.data.materialFornecedorId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.materialFornecedorId]);
                    return [2 /*return*/];
                });
            }); });
        }
    };
    MaterialFornecedorFormComponent.prototype.onSubmit = function (form, create) {
        if (create === void 0) { create = false; }
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
                if (form.invalid) {
                    return [2 /*return*/];
                }
                this.data.logRotina = "Manutenção Mat. de Fornecedores";
                this.service
                    .save(this.data, this.funcoesService.isEdit(this.actionForm))
                    .subscribe(function (validationResult) {
                    if (!validationResult.isValid) {
                        _this.mensagens = _this.message.validationResult(validationResult);
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    }
                    else {
                        _this.message.saveSuccess("titles.materiaisDeFornecedores");
                        if (create) {
                            _this.data = new _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_13__["MaterialFornecedor"]();
                            _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
                        }
                        else {
                            _this.back();
                        }
                    }
                });
                return [2 /*return*/];
            });
        });
    };
    MaterialFornecedorFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    MaterialFornecedorFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    MaterialFornecedorFormComponent.prototype.trataEmitente = function (emitente) {
        this.data.emitente = !!emitente ? emitente : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_14__["Destinatario"]();
    };
    MaterialFornecedorFormComponent.prototype.trataMaterial = function (material) {
        this.data.material = !!material ? material : new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_15__["Material"]();
    };
    MaterialFornecedorFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _material_fornecedor_service__WEBPACK_IMPORTED_MODULE_12__["MaterialFornecedorService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"] }
    ]; };
    MaterialFornecedorFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-material-fornecedor-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./material-fornecedor-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-form/material-fornecedor-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _material_fornecedor_service__WEBPACK_IMPORTED_MODULE_12__["MaterialFornecedorService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"]])
    ], MaterialFornecedorFormComponent);
    return MaterialFornecedorFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-index/material-fornecedor-index.component.ts":
/*!********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-index/material-fornecedor-index.component.ts ***!
  \********************************************************************************************************************************************/
/*! exports provided: MaterialFornecedorIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedorIndexComponent", function() { return MaterialFornecedorIndexComponent; });
/* 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_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.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 app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../material-fornecedor.model */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.model.ts");
/* harmony import */ var _material_fornecedor_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../material-fornecedor.constants */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.constants.ts");
/* harmony import */ var _material_fornecedor_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../material-fornecedor.service */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.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 __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var MaterialFornecedorIndexComponent = /** @class */ (function (_super) {
    __extends(MaterialFornecedorIndexComponent, _super);
    function MaterialFornecedorIndexComponent(router, service, datatables, permissoesUtils, message, loginService, funcoes) {
        var _this = _super.call(this, new _material_fornecedor_constants__WEBPACK_IMPORTED_MODULE_10__["MaterialFornecedorConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.permissoesUtils = permissoesUtils;
        _this.message = message;
        _this.loginService = loginService;
        _this.funcoes = funcoes;
        _this.data = new _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_9__["MaterialFornecedor"]();
        _this.constantes = new _material_fornecedor_constants__WEBPACK_IMPORTED_MODULE_10__["MaterialFornecedorConstants"]();
        _this.pageRoute = "/especificos/cotriguacu/portaria/materialFornecedor";
        _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;
    }
    MaterialFornecedorIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.loginService.isTokenExpired()) {
                    if (this.funcoesService.abrirFiltro) {
                        this.service.filter = new _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_9__["MaterialFornecedorFilter"]();
                        this.filtrar();
                    }
                    else {
                        this.refresh();
                    }
                }
                return [2 /*return*/];
            });
        }); }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    MaterialFornecedorIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.service.getByFiltro({ destinatarioIdEmitente: this.service.filter.destinatarioIdEmitente }).subscribe(function (data) {
                    var columns = [
                        _this.datatables.getDataString("materialId", "material"),
                        _this.datatables.getDataString("codMatFornecedor", "codMatFornecedor"),
                    ];
                    _this.datatables.toDataTable({ tableId: "dtMaterialFornecedor", columns: columns, data: data, columnOrder: 1, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["EOrientationOrder"].ASC }, function (aData) {
                        _this.data = aData;
                    });
                });
                return [2 /*return*/];
            });
        });
    };
    MaterialFornecedorIndexComponent.prototype.filtrar = function () {
        jQuery("#material-fornecedor-filter-dialog").modal("show");
    };
    MaterialFornecedorIndexComponent.prototype.executarFiltro = function () {
        this.refresh();
    };
    MaterialFornecedorIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MaterialFornecedorIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    MaterialFornecedorIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.materialFornecedorId]);
                return [2 /*return*/];
            });
        }); });
    };
    MaterialFornecedorIndexComponent.prototype.detail = function () {
        if (!this.itemSelecionado())
            return;
        this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.materialFornecedorId]);
    };
    MaterialFornecedorIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isNotPositive(this.data.materialFornecedorId)) {
            this.message.warning("titles.materiaisDeFornecedores", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    MaterialFornecedorIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
    };
    MaterialFornecedorIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.message.removeConfirm(function () {
                _this.service._remove({ materialFornecedorId: _this.data.materialFornecedorId }).subscribe(function (validationResult) {
                    if (!validationResult.isValid) {
                        var mensagens = _this.message.validationResult(validationResult);
                        mensagens.forEach(function (m) { return _this.message.warning("titles.materiaisDeFornecedores", m); });
                        return;
                    }
                    _this.datatables.remove("dtMaterialFornecedor");
                    _this.refresh();
                });
            });
        });
    };
    MaterialFornecedorIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                destinatarioIdEmitente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(_this.service.filter.destinatarioIdEmitente)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    MaterialFornecedorIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _material_fornecedor_service__WEBPACK_IMPORTED_MODULE_11__["MaterialFornecedorService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] }
    ]; };
    MaterialFornecedorIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-material-fornecedor-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./material-fornecedor-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-index/material-fornecedor-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _material_fornecedor_service__WEBPACK_IMPORTED_MODULE_11__["MaterialFornecedorService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"]])
    ], MaterialFornecedorIndexComponent);
    return MaterialFornecedorIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.constants.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.constants.ts ***!
  \************************************************************************************************************/
/*! exports provided: MaterialFornecedorConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedorConstants", function() { return MaterialFornecedorConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MaterialFornecedorConstants = /** @class */ (function () {
    function MaterialFornecedorConstants() {
        this.sisFormularioId = 375017;
        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.permissoes" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.materiaisDeFornecedores";
        this.reportId = "COT0024";
        this.reportTitulo = { "titulo": "Materiais de Forncedores", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: '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 MaterialFornecedorConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.model.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.model.ts ***!
  \********************************************************************************************************/
/*! exports provided: MaterialFornecedorFilter, MaterialFornecedor */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedorFilter", function() { return MaterialFornecedorFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedor", function() { return MaterialFornecedor; });
/* 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 MaterialFornecedorFilter = /** @class */ (function () {
    function MaterialFornecedorFilter() {
        this.destinatarioIdEmitente = 0;
    }
    return MaterialFornecedorFilter;
}());

var MaterialFornecedor = /** @class */ (function (_super) {
    __extends(MaterialFornecedor, _super);
    function MaterialFornecedor() {
        var _this = _super.call(this) || this;
        _this.materialFornecedorId = 0;
        _this.materialId = "";
        _this.destinatarioIdEmitente = 0;
        return _this;
    }
    return MaterialFornecedor;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.module.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.module.ts ***!
  \*********************************************************************************************************/
/*! exports provided: MaterialFornecedorModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedorModule", function() { return MaterialFornecedorModule; });
/* 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 _material_fornecedor_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./material-fornecedor.routing.module */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.routing.module.ts");
/* harmony import */ var _material_fornecedor_index_material_fornecedor_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./material-fornecedor-index/material-fornecedor-index.component */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-index/material-fornecedor-index.component.ts");
/* harmony import */ var _material_fornecedor_filter_material_fornecedor_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./material-fornecedor-filter/material-fornecedor-filter.component */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-filter/material-fornecedor-filter.component.ts");
/* harmony import */ var _material_fornecedor_form_material_fornecedor_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./material-fornecedor-form/material-fornecedor-form.component */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-form/material-fornecedor-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 MaterialFornecedorModule = /** @class */ (function () {
    function MaterialFornecedorModule() {
    }
    MaterialFornecedorModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _material_fornecedor_routing_module__WEBPACK_IMPORTED_MODULE_2__["MaterialFornecedorRoutingModule"]],
            declarations: [
                _material_fornecedor_index_material_fornecedor_index_component__WEBPACK_IMPORTED_MODULE_3__["MaterialFornecedorIndexComponent"],
                _material_fornecedor_filter_material_fornecedor_filter_component__WEBPACK_IMPORTED_MODULE_4__["MaterialFornecedorFilterComponent"],
                _material_fornecedor_form_material_fornecedor_form_component__WEBPACK_IMPORTED_MODULE_5__["MaterialFornecedorFormComponent"]
            ]
        })
    ], MaterialFornecedorModule);
    return MaterialFornecedorModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.routing.module.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.routing.module.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: MaterialFornecedorRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedorRoutingModule", function() { return MaterialFornecedorRoutingModule; });
/* 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 _material_fornecedor_index_material_fornecedor_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./material-fornecedor-index/material-fornecedor-index.component */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-index/material-fornecedor-index.component.ts");
/* harmony import */ var _material_fornecedor_form_material_fornecedor_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./material-fornecedor-form/material-fornecedor-form.component */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor-form/material-fornecedor-form.component.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _material_fornecedor_index_material_fornecedor_index_component__WEBPACK_IMPORTED_MODULE_2__["MaterialFornecedorIndexComponent"],
        data: { breadcrumb: "materiaisDeFornecedores" }
    },
    {
        path: "create",
        component: _material_fornecedor_form_material_fornecedor_form_component__WEBPACK_IMPORTED_MODULE_3__["MaterialFornecedorFormComponent"],
        data: {
            breadcrumb: "materiaisDeFornecedores",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _material_fornecedor_form_material_fornecedor_form_component__WEBPACK_IMPORTED_MODULE_3__["MaterialFornecedorFormComponent"],
        data: {
            breadcrumb: "materiaisDeFornecedores",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _material_fornecedor_form_material_fornecedor_form_component__WEBPACK_IMPORTED_MODULE_3__["MaterialFornecedorFormComponent"],
        data: {
            breadcrumb: "materiaisDeFornecedores",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail }
        }
    }
];
var MaterialFornecedorRoutingModule = /** @class */ (function () {
    function MaterialFornecedorRoutingModule() {
    }
    MaterialFornecedorRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], MaterialFornecedorRoutingModule);
    return MaterialFornecedorRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.service.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.service.ts ***!
  \**********************************************************************************************************/
/*! exports provided: MaterialFornecedorService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialFornecedorService", function() { return MaterialFornecedorService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./material-fornecedor.model */ "./src/app/pages/especificos/cotriguacu/portaria/material-fornecedor/material-fornecedor.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 __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 MaterialFornecedorService = /** @class */ (function (_super) {
    __extends(MaterialFornecedorService, _super);
    function MaterialFornecedorService(http) {
        var _this = _super.call(this, http, "cotriguacu/materialFornecedor") || this;
        _this.filter = new _material_fornecedor_model__WEBPACK_IMPORTED_MODULE_6__["MaterialFornecedorFilter"]();
        return _this;
    }
    MaterialFornecedorService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cotriguacu/materialFornecedor/filter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MaterialFornecedorService.prototype._remove = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cotriguacu/materialFornecedor/remove", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MaterialFornecedorService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    MaterialFornecedorService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], MaterialFornecedorService);
    return MaterialFornecedorService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cotriguacu-portaria-material-fornecedor-material-fornecedor-module.js.map