(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-estoque-fisico-medicao-medicao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/estoque-fisico/medicao/medicao-filter/medicao-filter.component.html":
/*!*********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/estoque-fisico/medicao/medicao-filter/medicao-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=\"medicao-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeMedicoes' | 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-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-tanque id=\"tanqueId\" name=\"tanqueId\"\r\n                                                     [(ngModel)]=\"service.filtro.tanqueId\"\r\n                                                     tipoDeposito=\"T\"\r\n                                                     label=\"deposito\"\r\n                                                     title=\"deposito\">\r\n                                </app-pesquisa-tanque>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <app-pesquisa-material id=\"materialId\"\r\n                                                    name=\"materialId\"\r\n                                                    label=\"produto\"\r\n                                                    modalTitle=\"pesquisaDeProduto\"\r\n                                                    [(ngModel)]=\"service.filtro.materialId\">\r\n                            </app-pesquisa-material>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"cliente\">{{'labels.cliente' | translate}}</label>\r\n                                <input id=\"cliente\" name=\"cliente\" [(ngModel)]=\"service.filtro.fantasia\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\" class=\"required\">\r\n                                    {{\"labels.periodoDe\" | translate }}\r\n                                </label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"service.filtro.dataI\"\r\n                                          autofocus\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatDataHorMin\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">\r\n                                    {{\"labels.ate\" | translate}}\r\n                                </label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"service.filtro.dataF\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatDataHorMin\"\r\n                                          required=\"true\">\r\n                                </app-data>\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\">\r\n                        {{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                        {{ 'buttons.sair' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/estoque-fisico/medicao/medicao-form/medicao-form.component.html":
/*!*****************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/estoque-fisico/medicao/medicao-form/medicao-form.component.html ***!
  \*****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.medicaoId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <app-form-legenda></app-form-legenda>\r\n            <div class=\"card-body widget-body\">\r\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                    <app-validacoes></app-validacoes>\r\n\r\n                    <app-medicao-shared-form *ngIf=\"isDataLoaded\"\r\n                        [form]=\"f\"\r\n                        [data]=\"data\"\r\n                        [actionForm]=\"actionForm\"\r\n                        [tipoLaudo]=\"tipoLaudoMedicao\"\r\n                        [hasPermissaoTodosCampos]=\"perTodosCampos\"\r\n                        [showCustomComboTanque]=\"false\"\r\n                        [showCustomComboProduto]=\"false\"\r\n                        [showTipoMedicao]=\"false\"\r\n                        [showCliente]=\"true\"\r\n                        pageTitle=\"medicoes\"\r\n                        (executaTrataDtMedicao)=\"trataDtMedicao()\"\r\n                        (executaTrataTipoMedicao)=\"trataTipoMedicao($event)\">\r\n                    </app-medicao-shared-form>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-sm-12\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    {{ 'buttons.salvar' | translate }}\r\n                                </button>\r\n                                <button class=\"btn btn-default\" type=\"button\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" (click)=\"back()\">\r\n                                    {{ 'buttons.cancelar' | translate }}\r\n                                </button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n");

/***/ }),

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

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

/***/ }),

/***/ "./src/app/pages/estoque-fisico/medicao/medicao-filter/medicao-filter.component.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/estoque-fisico/medicao/medicao-filter/medicao-filter.component.ts ***!
  \*****************************************************************************************/
/*! exports provided: MedicaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoFilterComponent", function() { return MedicaoFilterComponent; });
/* 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_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _medicao_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../medicao.service */ "./src/app/pages/estoque-fisico/medicao/medicao.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 MedicaoFilterComponent = /** @class */ (function () {
    function MedicaoFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
    }
    MedicaoFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.service.filtro);
        jQuery("#medicao-filter-dialog").modal("hide");
    };
    MedicaoFilterComponent.ctorParameters = function () { return [
        { type: _medicao_service__WEBPACK_IMPORTED_MODULE_3__["MedicaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MedicaoFilterComponent.prototype, "filtrar", void 0);
    MedicaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-medicao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./medicao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/estoque-fisico/medicao/medicao-filter/medicao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_medicao_service__WEBPACK_IMPORTED_MODULE_3__["MedicaoService"]])
    ], MedicaoFilterComponent);
    return MedicaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/estoque-fisico/medicao/medicao-form/medicao-form.component.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/estoque-fisico/medicao/medicao-form/medicao-form.component.ts ***!
  \*************************************************************************************/
/*! exports provided: MedicaoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoFormComponent", function() { return MedicaoFormComponent; });
/* 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_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 _medicao_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../medicao.constants */ "./src/app/pages/estoque-fisico/medicao/medicao.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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 _medicao_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../medicao.model */ "./src/app/pages/estoque-fisico/medicao/medicao.model.ts");
/* harmony import */ var _medicao_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../medicao.service */ "./src/app/pages/estoque-fisico/medicao/medicao.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_components_forms_medicao_shared_form_medicao_shared_form_validation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/components/forms/medicao-shared-form/medicao-shared-form.validation */ "./src/app/shared/components/forms/medicao-shared-form/medicao-shared-form.validation.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.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 MedicaoFormComponent = /** @class */ (function (_super) {
    __extends(MedicaoFormComponent, _super);
    function MedicaoFormComponent(router, messageService, activatedRoute, service, loginService, configuracao, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _medicao_constants__WEBPACK_IMPORTED_MODULE_3__["MedicaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _medicao_model__WEBPACK_IMPORTED_MODULE_8__["Medicao"]();
        _this.filtroCriaTmp = new _medicao_model__WEBPACK_IMPORTED_MODULE_8__["MedicaoCriaTmp"]();
        _this.mensagens = [];
        _this.constantes = new _medicao_constants__WEBPACK_IMPORTED_MODULE_3__["MedicaoConstants"]();
        _this.perTodosCampos = false;
        _this.isContinueDtMedicao = false;
        _this.isDataLoaded = false;
        _this.tipoLaudoMedicao = app_config_enumerables__WEBPACK_IMPORTED_MODULE_10__["TipoLaudoMedicaoEnum"].estoqueFisico;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            _this.service.configs.medicaoMM = _this.configuracao.boolean("OPE", "MedicaoMM");
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.medicaoValidation = new app_shared_components_forms_medicao_shared_form_medicao_shared_form_validation__WEBPACK_IMPORTED_MODULE_11__["MedicaoSharedFormValidation"](funcoesService);
        return _this;
    }
    MedicaoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        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;
                    if (_this.funcoesService.isEdit(_this.actionForm)) {
                        if (_this.funcoesService.isPositive(_this.data.nrMovimento)) {
                            _this.messageService.error("titles.medicoes", "messages.medicaoLancadaMovFisicoAlteracaoNaoPermitida");
                            _this.back();
                        }
                        if (_this.data.tipoMov === "N") {
                            _this.messageService.error("titles.medicoes", "messages.medicaoLancadaMovNavioAlteracaoNaoPermitida");
                            _this.back();
                        }
                        _this.auxDtMedicao = _this.data.dtMedicao;
                        _this.filtroCriaTmp.nrMedicao = _this.data.medicaoId;
                        _this.service.medicaoCriaTmp(_this.filtroCriaTmp, _this.tipoLaudoMedicao).subscribe(function () {
                            _this.isDataLoaded = true;
                        });
                    }
                    else {
                        _this.isDataLoaded = true;
                    }
                });
            }
            else {
                _this.data = new _medicao_model__WEBPACK_IMPORTED_MODULE_8__["Medicao"]();
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.filtroCriaTmp.nrMedicao = _this.data.medicaoId;
                _this.service.medicaoCriaTmp(_this.filtroCriaTmp, _this.tipoLaudoMedicao).subscribe(function () {
                    _this.getCamposAdicionais();
                    _this.isDataLoaded = true;
                });
            }
            _this.permissoesUtils.validRotina(_this.constantes.sisFormularioId, 6, function () { return _this.perTodosCampos = true; }, function () { return _this.perTodosCampos = false; });
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    MedicaoFormComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (form.invalid) {
                    this.service.removerFormatacaoMedicaoTanqueAgua(this.data);
                    this.data.medicaoVal = this.data.maskedMedicaoVal;
                    this.data.medAgua = this.data.maskedMedAgua;
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
                    this.funcoesService.backToTop();
                    return [2 /*return*/];
                }
                this.data.logRotina = "Manut. de Medições";
                this.data.inclui = this.funcoesService.isCreate(this.actionForm) ? "S" : "N";
                this.service
                    .save(this.data, this.funcoesService.isEdit(this.actionForm))
                    .subscribe(function (result) {
                    if (!result.validationResult.isValid) {
                        _this.data.medicaoVal = _this.data.maskedMedicaoVal;
                        _this.data.medAgua = _this.data.maskedMedAgua;
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
                        _this.funcoesService.backToTop();
                    }
                    else {
                        _this.messageService.saveSuccess("titles.medicoes");
                        _this.data = new _medicao_model__WEBPACK_IMPORTED_MODULE_8__["Medicao"]();
                        _this.back();
                    }
                }, function (error) {
                    _this.messageService.error("titles.medicoes", error);
                });
                return [2 /*return*/];
            });
        });
    };
    MedicaoFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/estoqueFisico/medicao/edit/" + this.data.medicaoId]);
    };
    MedicaoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/estoqueFisico/medicao"]);
    };
    MedicaoFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    MedicaoFormComponent.prototype.trataDtMedicao = function () {
        var _this = this;
        var dtAnterior;
        this.service.getTmpMedicaoAnterior().subscribe(function (resp) {
            if (resp) {
                dtAnterior = resp.dtMedicao;
                var anterior = moment__WEBPACK_IMPORTED_MODULE_13__(dtAnterior).format('DD/MM/YYYY HH:mm');
                var medicao = moment__WEBPACK_IMPORTED_MODULE_13__(_this.data.dtMedicao).format('DD/MM/YYYY HH:mm');
                if (medicao === anterior) {
                    _this.messageService.warning("titles.medicoes", "messages.jaExisteMedicaoParaDataInformada");
                    _this.data.dtMedicao = _this.auxDtMedicao;
                    return;
                }
                if (_this.data.dtMedicao < dtAnterior) {
                    _this.messageService.confirm("messages.confirmaOperacao", "messages.existeMedicaoDataAnteriorContinua", "messages.operacaoRealizadaComSucesso", function () {
                        _this.isContinueDtMedicao = true;
                    }, false, function () {
                        _this.data.dtMedicao = _this.auxDtMedicao;
                    });
                }
            }
        });
    };
    MedicaoFormComponent.prototype.trataTipoMedicao = function (tipoMedicaoInicial) {
        var _this = this;
        this.service.getTipoUltimaMedicao(this.data).subscribe(function (ultMedicao) {
            var validation = _this.medicaoValidation.validaTipoUltimaMedicao(ultMedicao, _this.data, _this.actionForm);
            if (!validation.isValid) {
                _this.messageService.warning("titles.medicoes", validation.message);
                _this.data.tipoMedicao = tipoMedicaoInicial;
            }
        });
    };
    MedicaoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _medicao_service__WEBPACK_IMPORTED_MODULE_9__["MedicaoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_12__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    MedicaoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-medicao-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./medicao-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/estoque-fisico/medicao/medicao-form/medicao-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_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _medicao_service__WEBPACK_IMPORTED_MODULE_9__["MedicaoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_12__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], MedicaoFormComponent);
    return MedicaoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/estoque-fisico/medicao/medicao-index/medicao-index.component.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/estoque-fisico/medicao/medicao-index/medicao-index.component.ts ***!
  \***************************************************************************************/
/*! exports provided: MedicaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoIndexComponent", function() { return MedicaoIndexComponent; });
/* 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_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__ = __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_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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _medicao_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../medicao.constants */ "./src/app/pages/estoque-fisico/medicao/medicao.constants.ts");
/* harmony import */ var _medicao_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../medicao.model */ "./src/app/pages/estoque-fisico/medicao/medicao.model.ts");
/* harmony import */ var _medicao_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../medicao.service */ "./src/app/pages/estoque-fisico/medicao/medicao.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 MedicaoIndexComponent = /** @class */ (function (_super) {
    __extends(MedicaoIndexComponent, _super);
    function MedicaoIndexComponent(router, service, configuracao, datatables, message, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _medicao_constants__WEBPACK_IMPORTED_MODULE_9__["MedicaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _medicao_model__WEBPACK_IMPORTED_MODULE_10__["Medicao"]();
        _this.mensagens = [];
        _this.constantes = new _medicao_constants__WEBPACK_IMPORTED_MODULE_9__["MedicaoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.service.filtro.configMedicaoMM = _this.funcoesService.isBoolean(_this.configuracao.lerConfig("OPE", "MedicaoMM"));
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MedicaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.configuracao.getConfig(_this.constantes.listaParam, _this.loadConfig);
                _this.exibirFiltro();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    MedicaoIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/estoqueFisico/medicao/create"]);
    };
    MedicaoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (resp) {
            _this.adicionarFormatacao(resp);
            var columns = [
                _this.datatables.getDataString("medicaoId", "medicao", '10%'),
                _this.datatables.getDataString("tanqueId", "deposito", '10%'),
                _this.datatables.getDataDateTime("dtMedicao", "data", "DD/MM/YYYY HH:mm:ss", "12%"),
                _this.datatables.getDataString("material", "produto"),
                _this.datatables.getDataDouble("medicaoVal", "medicao", _this.qtdeDecimaisMedicao, false, "20%"),
                _this.datatables.getDataDouble("litrosAmb", "litrosArqueacao", 0, false, "10%"),
                _this.datatables.getDataDouble("densidadePadrao", "densidadePadrao", 4, false, "10%"),
                _this.datatables.getDataDouble("kilos", "kilos", 0, false, "10%"),
            ];
            _this.datatables.datatable("dtMedicao", columns, resp, function (aData) {
                _this.data = aData;
            }, 2, 'desc');
        });
    };
    MedicaoIndexComponent.prototype.adicionarFormatacao = function (medicoes) {
        if (this.service.filtro.configMedicaoMM) {
            medicoes.forEach(function (m) {
                m.medicaoVal = (m.medicaoVal * 10);
            });
            this.qtdeDecimaisMedicao = 0;
        }
        else {
            this.qtdeDecimaisMedicao = 1;
        }
    };
    MedicaoIndexComponent.prototype.edit = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.medicaoId)) {
            this.router.navigate([this.target + "/estoqueFisico/medicao/edit/" + this.data.medicaoId]);
        }
    };
    MedicaoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    MedicaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 8, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MedicaoIndexComponent.prototype.exibirFiltro = function () {
        if (this.funcoesService.abrirFiltro) {
            this.service.filtro = new _medicao_model__WEBPACK_IMPORTED_MODULE_10__["MedicaoFilter"]();
            jQuery("#medicao-filter-dialog").modal("show");
        }
        else {
            this.refresh();
        }
    };
    MedicaoIndexComponent.prototype.filtrar = function () {
        jQuery("#medicao-filter-dialog").modal("show");
    };
    MedicaoIndexComponent.prototype.executarFiltro = function (event) {
        this.refresh();
    };
    MedicaoIndexComponent.prototype.detail = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.medicaoId)) {
            this.router.navigate([this.target + "/estoqueFisico/medicao/detail/" + this.data.medicaoId]);
        }
    };
    MedicaoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (this.funcoes.isNotUndefinedOrNull(this.data.medicaoId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.message.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.message.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.message.error("titles.medicoes", _this.mensagens[0]);
                        }
                        else {
                            _this.datatables.remove("dtMedicao");
                            _this.data = new _medicao_model__WEBPACK_IMPORTED_MODULE_10__["Medicao"]();
                        }
                    });
                });
            });
        }
    };
    MedicaoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, _this.constantes.reportTitulo, _this.service.filtro);
        });
    };
    MedicaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _medicao_service__WEBPACK_IMPORTED_MODULE_11__["MedicaoService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__["ConfiguracaoFacade"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["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_8__["LoginService"] }
    ]; };
    MedicaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-medicao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./medicao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/estoque-fisico/medicao/medicao-index/medicao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _medicao_service__WEBPACK_IMPORTED_MODULE_11__["MedicaoService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__["ConfiguracaoFacade"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"]])
    ], MedicaoIndexComponent);
    return MedicaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/estoque-fisico/medicao/medicao.module.ts":
/*!****************************************************************!*\
  !*** ./src/app/pages/estoque-fisico/medicao/medicao.module.ts ***!
  \****************************************************************/
/*! exports provided: MedicaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoModule", function() { return MedicaoModule; });
/* 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 _medicao_index_medicao_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./medicao-index/medicao-index.component */ "./src/app/pages/estoque-fisico/medicao/medicao-index/medicao-index.component.ts");
/* harmony import */ var _medicao_filter_medicao_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./medicao-filter/medicao-filter.component */ "./src/app/pages/estoque-fisico/medicao/medicao-filter/medicao-filter.component.ts");
/* harmony import */ var _medicao_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./medicao.routing.module */ "./src/app/pages/estoque-fisico/medicao/medicao.routing.module.ts");
/* harmony import */ var _medicao_form_medicao_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./medicao-form/medicao-form.component */ "./src/app/pages/estoque-fisico/medicao/medicao-form/medicao-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 MedicaoModule = /** @class */ (function () {
    function MedicaoModule() {
    }
    MedicaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _medicao_routing_module__WEBPACK_IMPORTED_MODULE_4__["MedicaoRoutingModule"]],
            declarations: [
                _medicao_form_medicao_form_component__WEBPACK_IMPORTED_MODULE_5__["MedicaoFormComponent"],
                _medicao_index_medicao_index_component__WEBPACK_IMPORTED_MODULE_2__["MedicaoIndexComponent"],
                _medicao_filter_medicao_filter_component__WEBPACK_IMPORTED_MODULE_3__["MedicaoFilterComponent"]
            ]
        })
    ], MedicaoModule);
    return MedicaoModule;
}());



/***/ }),

/***/ "./src/app/pages/estoque-fisico/medicao/medicao.routing.module.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/estoque-fisico/medicao/medicao.routing.module.ts ***!
  \************************************************************************/
/*! exports provided: MedicaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoRoutingModule", function() { return MedicaoRoutingModule; });
/* 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 _medicao_form_medicao_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./medicao-form/medicao-form.component */ "./src/app/pages/estoque-fisico/medicao/medicao-form/medicao-form.component.ts");
/* harmony import */ var _medicao_index_medicao_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./medicao-index/medicao-index.component */ "./src/app/pages/estoque-fisico/medicao/medicao-index/medicao-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: _medicao_index_medicao_index_component__WEBPACK_IMPORTED_MODULE_4__["MedicaoIndexComponent"],
        data: { breadcrumb: "medicoes", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _medicao_form_medicao_form_component__WEBPACK_IMPORTED_MODULE_3__["MedicaoFormComponent"],
        data: {
            breadcrumb: "medicoes",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _medicao_form_medicao_form_component__WEBPACK_IMPORTED_MODULE_3__["MedicaoFormComponent"],
        data: {
            breadcrumb: "medicoes",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _medicao_form_medicao_form_component__WEBPACK_IMPORTED_MODULE_3__["MedicaoFormComponent"],
        data: {
            breadcrumb: "medicoes",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var MedicaoRoutingModule = /** @class */ (function () {
    function MedicaoRoutingModule() {
    }
    MedicaoRoutingModule = __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"]]
        })
    ], MedicaoRoutingModule);
    return MedicaoRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-estoque-fisico-medicao-medicao-module.js.map