(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-ageo-cadastros-unidade-controle-unidade-controle-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-filter/unidade-controle-filter.component.html":
/*!************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-filter/unidade-controle-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=\"unidade-controle-filter-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    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\">{{ 'titles.unidadeControle' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\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=\"cliente\" name=\"cliente\" label=\"cliente\"\r\n                                    modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"data.destinatarioIdCliente\"\r\n                                    tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\r\n                                    modalTitle=\"pesquisaDeProduto\" [inSelected]=\"data\" [(ngModel)]=\"data.materialId\">\r\n                                </app-pesquisa-material>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-sm-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"unidade\">{{'labels.unidade' |\r\n                                    translate}}</label>\r\n                                <select id=\"unidade\" name=\"unidade\" [(ngModel)]=\"data.unidade\"\r\n                                    data-title=\"{{ 'labels.unidades' | translate }}\" class=\"form-control form-control-sm\">\r\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                    <option *ngFor=\"let unidade of unidades\" [value]=\"unidade\">{{ unidade }}</option>\r\n                                </select>\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/ageo/cadastros/unidade-controle/unidade-controle-form/unidade-controle-form.component.html":
/*!********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-form/unidade-controle-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\"\n    [itemData]=\"data.unidadeControleId\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-form-legenda></app-form-legenda>\n    <div class=\"card-body widget-body\">\n        <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n            <app-validacoes></app-validacoes>\n            <div class=\"row\">\n                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                            [required]=\"!funcoesService.isDetail(actionForm)\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\" modalTitle=\"pesquisaDeCliente\"\n                            [(ngModel)]=\"data.destinatarioIdCliente\" [inSelected]=\"data.cliente\" tipoDestinatario=\"C\"\n                            showCgcCpf=\"false\" showInscricao=\"false\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\n                            [required]=\"!funcoesService.isDetail(actionForm)\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\" modalTitle=\"pesquisaDeProduto\"\n                            [(ngModel)]=\"data.materialId\" [inSelected]=\"data.material\">\n                        </app-pesquisa-material>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-sm-6 col-md-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"unidade\">{{'labels.unidade' |\n                            translate}}</label>\n                        <select id=\"unidade\" name=\"unidade\" [(ngModel)]=\"data.unidade\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                            [required]=\"!funcoesService.isDetail(actionForm)\"\n                            data-title=\"{{ 'labels.unidade' | translate }}\" class=\"form-control form-control-sm\">\n                            <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                            <option *ngFor=\"let unidade of unidades\" [value]=\"unidade\">{{ unidade }}</option>\n                        </select>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row mt-4\">\n                <div class=\"col-12\">\n                    <div class=\"form-group\">\n                        <button class=\"btn btn-success mr-2\" type=\"submit\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            {{ 'buttons.salvar' | translate }}\n                        </button>\n                        <button class=\"btn btn-success mr-2\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            {{ 'buttons.salvarNovo' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.unidadeControleId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtUnidadeControle\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></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-unidade-controle-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-unidade-controle-filter>\n");

/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-filter/unidade-controle-filter.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-filter/unidade-controle-filter.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: UnidadeControleFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeControleFilterComponent", function() { return UnidadeControleFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _unidade_controle_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../unidade-controle.model */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _unidade_controle_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../unidade-controle.service */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.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 UnidadeControleFilterComponent = /** @class */ (function () {
    function UnidadeControleFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.unidades = [];
    }
    UnidadeControleFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
        this._getUnidades();
    };
    UnidadeControleFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#unidade-controle-filter-dialog").modal("hide");
    };
    UnidadeControleFilterComponent.prototype._getUnidades = function () {
        this.unidades = [
            "KG",
            "LT",
            "CC"
        ];
    };
    UnidadeControleFilterComponent.ctorParameters = function () { return [
        { type: _unidade_controle_service__WEBPACK_IMPORTED_MODULE_3__["UnidadeControleService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _unidade_controle_model__WEBPACK_IMPORTED_MODULE_1__["UnidadeControleFilter"])
    ], UnidadeControleFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], UnidadeControleFilterComponent.prototype, "filtrar", void 0);
    UnidadeControleFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-unidade-controle-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./unidade-controle-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-filter/unidade-controle-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_unidade_controle_service__WEBPACK_IMPORTED_MODULE_3__["UnidadeControleService"]])
    ], UnidadeControleFilterComponent);
    return UnidadeControleFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-form/unidade-controle-form.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-form/unidade-controle-form.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: UnidadeControleFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeControleFormComponent", function() { return UnidadeControleFormComponent; });
/* 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 _unidade_controle_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../unidade-controle.service */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _unidade_controle_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../unidade-controle.model */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.model.ts");
/* harmony import */ var _unidade_controle_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../unidade-controle.constants */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.constants.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.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 UnidadeControleFormComponent = /** @class */ (function (_super) {
    __extends(UnidadeControleFormComponent, _super);
    function UnidadeControleFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, destinatarioService, materialService) {
        var _this = _super.call(this, new _unidade_controle_constants__WEBPACK_IMPORTED_MODULE_7__["UnidadeControleConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.data = new _unidade_controle_model__WEBPACK_IMPORTED_MODULE_6__["UnidadeControle"]();
        _this.mensagens = [];
        _this.constantes = new _unidade_controle_constants__WEBPACK_IMPORTED_MODULE_7__["UnidadeControleConstants"]();
        _this.unidades = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/ageo/cadastros/unidadeControle";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    UnidadeControleFormComponent.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");
            _this.data = new _unidade_controle_model__WEBPACK_IMPORTED_MODULE_6__["UnidadeControle"]();
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    if (resp) {
                        _this.data = resp;
                        if (_this.funcoesService.isPositive(_this.data.destinatarioIdCliente)) {
                            _this.destinatarioService.getById(_this.data.destinatarioIdCliente).subscribe(function (r) {
                                console.log(r);
                                _this.data.cliente = r;
                            });
                        }
                        if (_this.funcoesService.isNotUndefinedOrNull(_this.data.materialId)) {
                            _this.materialService.getById(_this.data.materialId).subscribe(function (r) {
                                _this.data.material = r;
                            });
                        }
                    }
                    else {
                        _this.messageService.warning("titles.unidadeControle", "messages.nenhumRegistroEncontrado");
                        _this.back();
                    }
                });
            }
            _this._getUnidades();
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    UnidadeControleFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Unidade Controle";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.unidadeControle");
                if (create) {
                    _this.data = new _unidade_controle_model__WEBPACK_IMPORTED_MODULE_6__["UnidadeControle"]();
                }
                else {
                    _this.back();
                }
            }
        });
    };
    UnidadeControleFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    UnidadeControleFormComponent.prototype.edit = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.unidadeControleId]);
    };
    UnidadeControleFormComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    UnidadeControleFormComponent.prototype._getUnidades = function () {
        this.unidades = [
            "KG",
            "LT",
            "CC"
        ];
    };
    UnidadeControleFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _unidade_controle_service__WEBPACK_IMPORTED_MODULE_3__["UnidadeControleService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_10__["DestinatarioService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_11__["MaterialService"] }
    ]; };
    UnidadeControleFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-unidade-controle-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./unidade-controle-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-form/unidade-controle-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _unidade_controle_service__WEBPACK_IMPORTED_MODULE_3__["UnidadeControleService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_10__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_11__["MaterialService"]])
    ], UnidadeControleFormComponent);
    return UnidadeControleFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-index/unidade-controle-index.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-index/unidade-controle-index.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: UnidadeControleIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeControleIndexComponent", function() { return UnidadeControleIndexComponent; });
/* 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 _unidade_controle_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../unidade-controle.service */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _unidade_controle_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../unidade-controle.model */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.model.ts");
/* harmony import */ var _unidade_controle_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../unidade-controle.constants */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.constants.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var UnidadeControleIndexComponent = /** @class */ (function (_super) {
    __extends(UnidadeControleIndexComponent, _super);
    function UnidadeControleIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _unidade_controle_constants__WEBPACK_IMPORTED_MODULE_7__["UnidadeControleConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _unidade_controle_model__WEBPACK_IMPORTED_MODULE_6__["UnidadeControle"]();
        _this.filtro = new _unidade_controle_model__WEBPACK_IMPORTED_MODULE_6__["UnidadeControleFilter"]();
        _this.constantes = new _unidade_controle_constants__WEBPACK_IMPORTED_MODULE_7__["UnidadeControleConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/ageo/cadastros/unidadeControle";
        _this.login = loginService.getLogin();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    UnidadeControleIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.filtrar();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    UnidadeControleIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
    };
    UnidadeControleIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.refresh();
    };
    UnidadeControleIndexComponent.prototype.filtrar = function () {
        jQuery("#unidade-controle-filter-dialog").modal("show");
    };
    UnidadeControleIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFilter(this.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataStringAlignRight("destinatarioIdCliente", "codigo"),
                _this.datatablesService.getDataString("clienteFantasia", "cliente"),
                _this.datatablesService.getDataString("materialId", "material"),
                _this.datatablesService.getDataString("produtoFantasia", "produto"),
                _this.datatablesService.getDataString("unidade", "unidade"),
            ];
            _this.datatablesService.datatable("dtUnidadeControle", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    UnidadeControleIndexComponent.prototype.edit = function () {
        if (!!(this.data.unidadeControleId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.unidadeControleId]);
        }
    };
    UnidadeControleIndexComponent.prototype.detail = function () {
        if (!!(this.data.unidadeControleId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.unidadeControleId]);
        }
    };
    UnidadeControleIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.unidadeControleId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtUnidadeControle");
                        _this.data = new _unidade_controle_model__WEBPACK_IMPORTED_MODULE_6__["UnidadeControle"]();
                    });
                });
            });
        }
    };
    UnidadeControleIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    UnidadeControleIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    UnidadeControleIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                destinatarioIdCliente: _this.filtro.destinatarioIdCliente !== undefined ? _this.filtro.destinatarioIdCliente : 0,
                materialId: _this.filtro.materialId !== undefined ? _this.filtro.materialId : "",
                unidade: _this.filtro.unidade !== undefined ? _this.filtro.unidade : ""
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    UnidadeControleIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _unidade_controle_service__WEBPACK_IMPORTED_MODULE_2__["UnidadeControleService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] }
    ]; };
    UnidadeControleIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-unidade-controle-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./unidade-controle-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-index/unidade-controle-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _unidade_controle_service__WEBPACK_IMPORTED_MODULE_2__["UnidadeControleService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"]])
    ], UnidadeControleIndexComponent);
    return UnidadeControleIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.constants.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.constants.ts ***!
  \*************************************************************************************************/
/*! exports provided: UnidadeControleConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeControleConstants", function() { return UnidadeControleConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var UnidadeControleConstants = /** @class */ (function () {
    function UnidadeControleConstants() {
        this.sisFormularioId = 65707;
        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 = "CAD";
        this.nomeForm = "titles.unidadeControle";
        this.reportId = "AGE0034";
        this.reportTitulo = { "titulo": "Unidade de Controle", "subTitulo": "" };
        this.configs = [];
        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' },
        ];
        this.listaParam = [
            { sistema: "STO", parametros: ["NumDecCalc20", "NumDecCalcOutros", "QtDigFatorCorrecao20", "QtDigFatorCorrecao"] },
            { sistema: "CTR", parametros: ["CodCadastroMat", "GrupoProdutoDefault"] },
            { sistema: "MAT", parametros: ["TamCodigo"] },
        ];
    }
    return UnidadeControleConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.model.ts":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.model.ts ***!
  \*********************************************************************************************/
/*! exports provided: UnidadeControle, UnidadeControleFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.module.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.module.ts ***!
  \**********************************************************************************************/
/*! exports provided: UnidadeControleModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeControleModule", function() { return UnidadeControleModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _unidade_controle_filter_unidade_controle_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unidade-controle-filter/unidade-controle-filter.component */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-filter/unidade-controle-filter.component.ts");
/* harmony import */ var _unidade_controle_form_unidade_controle_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./unidade-controle-form/unidade-controle-form.component */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-form/unidade-controle-form.component.ts");
/* harmony import */ var _unidade_controle_index_unidade_controle_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./unidade-controle-index/unidade-controle-index.component */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle-index/unidade-controle-index.component.ts");
/* harmony import */ var _unidade_controle_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./unidade-controle.routing.module */ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.routing.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var UnidadeControleModule = /** @class */ (function () {
    function UnidadeControleModule() {
    }
    UnidadeControleModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _unidade_controle_routing_module__WEBPACK_IMPORTED_MODULE_5__["UnidadeControleRoutingModule"]],
            declarations: [
                _unidade_controle_index_unidade_controle_index_component__WEBPACK_IMPORTED_MODULE_4__["UnidadeControleIndexComponent"],
                _unidade_controle_form_unidade_controle_form_component__WEBPACK_IMPORTED_MODULE_3__["UnidadeControleFormComponent"],
                _unidade_controle_filter_unidade_controle_filter_component__WEBPACK_IMPORTED_MODULE_2__["UnidadeControleFilterComponent"]
            ]
        })
    ], UnidadeControleModule);
    return UnidadeControleModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.routing.module.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.routing.module.ts ***!
  \******************************************************************************************************/
/*! exports provided: UnidadeControleRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MRoutes = [
    {
        path: "",
        component: _unidade_controle_index_unidade_controle_index_component__WEBPACK_IMPORTED_MODULE_4__["UnidadeControleIndexComponent"],
        data: { breadcrumb: "unidadeControle", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _unidade_controle_form_unidade_controle_form_component__WEBPACK_IMPORTED_MODULE_3__["UnidadeControleFormComponent"],
        data: {
            breadcrumb: "unidadeControle",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _unidade_controle_form_unidade_controle_form_component__WEBPACK_IMPORTED_MODULE_3__["UnidadeControleFormComponent"],
        data: {
            breadcrumb: "unidadeControle",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _unidade_controle_form_unidade_controle_form_component__WEBPACK_IMPORTED_MODULE_3__["UnidadeControleFormComponent"],
        data: {
            breadcrumb: "unidadeControle",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var UnidadeControleRoutingModule = /** @class */ (function () {
    function UnidadeControleRoutingModule() {
    }
    UnidadeControleRoutingModule = __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"]],
        })
    ], UnidadeControleRoutingModule);
    return UnidadeControleRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.service.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/unidade-controle/unidade-controle.service.ts ***!
  \***********************************************************************************************/
/*! exports provided: UnidadeControleService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnidadeControleService", function() { return UnidadeControleService; });
/* 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");
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 UnidadeControleService = /** @class */ (function (_super) {
    __extends(UnidadeControleService, _super);
    function UnidadeControleService(http) {
        return _super.call(this, http, "ageo/unidadeControle") || this;
    }
    UnidadeControleService.prototype.getByFilter = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/unidadeControle/getByFilter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    UnidadeControleService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    UnidadeControleService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], UnidadeControleService);
    return UnidadeControleService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-ageo-cadastros-unidade-controle-unidade-controle-module.js.map