(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-operacao-medicao-calculo-altura-medicao-calculo-altura-module"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"medicao-calculo-altura-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.medicaoCalculoAltura' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"de\">{{ 'labels.de' | translate}}</label>\n                                <app-data id=\"de\"\n                                          name=\"de\"\n                                          [(ngModel)]=\"filtro.de\"\n                                          required=\"true\"\n                                          autofocus>\n                                </app-data>\n                            </div>\n                        </div>\n\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-field-container>\n                                    <label for=\"ate\">{{'labels.ate' | translate}}</label>\n                                    <app-data id=\"ate\"\n                                              name=\"ate\"\n                                              [(ngModel)]=\"filtro.ate\"\n                                              required=\"true\"\n                                              autofocus>\n                                    </app-data>\n                                </app-field-container>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-tanque id=\"deposito\"\n                                                     name=\"deposito\"\n                                                     label=\"deposito\"\n                                                     modalTitle=\"deposito\"\n                                                     tipoDeposito=\"T\"\n                                                     [(ngModel)]=\"filtro.tanqueId\">\n                                </app-pesquisa-tanque>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-form.component.html":
/*!********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-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\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.medicaoCalculoAlturaId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\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-8 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-tanque id=\"deposito\"\n                                                     name=\"deposito\"\n                                                     label=\"deposito\"\n                                                     modalTitle=\"deposito\"\n                                                     tipoDeposito=\"T\"\n                                                     [(ngModel)]=\"data.tanqueId\"\n                                                     [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                     (outTanque)=\"preencheUltMedicao()\"\n                                                     [required]=\"true\">\n                                </app-pesquisa-tanque>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipoMov\">{{'labels.tipoMov' | translate}}</label>\n                                <select style=\"height: 27px\" id=\"tipoMov\" class=\"form-control\" name=\"tipoMov\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        [(ngModel)]=\"data.tipoMov\" (change)=\"onChange()\">\n                                    <option value=\"C\">{{'labels.encherTanque' | translate }}</option>\n                                    <option value=\"D\">{{'labels.esvaziarTanque' | translate}}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"densidade\">{{'labels.densidade' | translate}}</label>\n                                <input id=\"densidade\" name=\"densidade\" [(ngModel)]=\"data.densidade\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                       disabled>\n                            </div>\n                        </div>\n\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"litros\">{{'labels.litros' | translate}}</label>\n                                <input id=\"litros\" name=\"litros\" [(ngModel)]=\"data.litros\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                       (blur)=\"this.calculaValorKilos()\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"alturaCorte\">{{'labels.alturaCorte' | translate}}</label>\n                                <input id=\"alturaCorte\" name=\"alturaCorte\" [(ngModel)]=\"data.alturaCorte\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 1 }\"\n                                       disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"linha\">{{'labels.volumeLinha' | translate}}</label>\n                                <input id=\"linha\" name=\"linha\" [(ngModel)]=\"data.linha\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                       (blur)=\"calculaValorLinha()\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"kilos\">{{'labels.kilos' | translate}}</label>\n                                <input id=\"kilos\" name=\"kilos\" [(ngModel)]=\"data.kilos\"\n                                       class=\"form-control form-control-sm\" type=\"text\"\n                                       (blur)=\"this.calculaValorLitros()\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                       [disabled]=\"disableKilos()\">\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                <div class=\"form-group\" id=\"centralizar\">\n                                    <button class=\"btn btn-success\" (click)=\"this.calculaAltura()\" type=\"button\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.calcularAltura' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                            <div class=\"card\">\n                                <div class=\"card-body\">\n                                    <label>{{'labels.ultimaMedicao' | translate}}</label>\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"produto\">{{'labels.produto' | translate}}</label>\n                                                <input id=\"produto\" name=\"produto\" [(ngModel)]=\"data.descrMaterial\"\n                                                       class=\"form-control form-control-sm\" type=\"text\"\n                                                       disabled>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-6\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"dtMedicao\">{{'labels.dtMedicao' | translate}}</label>\n                                                <input id=\"dtMedicao\" name=\"dtMedicao\"\n                                                       class=\"form-control form-control-sm\" type=\"text\"\n                                                       value=\"{{ data.dtMedicao | date: 'dd/MM/yyyy hh:mm:ss' }}\"\n                                                       disabled>\n                                            </div>\n                                        </div>\n                                        <div class=\"col-lg-6\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"litrosMed\">{{'labels.litros' | translate}}</label>\n                                                <input id=\"litrosMed\" name=\"litrosMed\" [(ngModel)]=\"data.litrosMed\"\n                                                       class=\"form-control form-control-sm\" type=\"text\"\n                                                       currencyMask\n                                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                                       disabled>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-6\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"densidadeMed\">{{'labels.densidade' | translate}}</label>\n                                                <input id=\"densidadeMed\" name=\"densidadeMed\"\n                                                       [(ngModel)]=\"data.densidadeMed\"\n                                                       class=\"form-control form-control-sm\" type=\"text\"\n                                                       currencyMask\n                                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                                       disabled>\n                                            </div>\n                                        </div>\n                                        <div class=\"col-lg-6\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"kilosMed\">{{'labels.kilos' | translate}}</label>\n                                                <input id=\"kilosMed\" name=\"kilosMed\" [(ngModel)]=\"data.kilosMed\"\n                                                       class=\"form-control form-control-sm\" type=\"text\"\n                                                       currencyMask\n                                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                                       disabled>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                                  <span *ngIf=\"data.sisCampoAdds\">\n                                    <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                      <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\n                                                             [(ngModel)]=\"d.valorCampo\"\n                                                             [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                             [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\n                                    </div>\n                                  </span>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-4\">\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                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-index/medicao-calculo-altura-index.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-index/medicao-calculo-altura-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.medicaoCalculoAlturaId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtMedicaoCalculoAltura\" 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-medicao-calculo-altura-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-medicao-calculo-altura-filter>\n");

/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-filter/medicao-calculo-altura-filter.component.scss":
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-filter/medicao-calculo-altura-filter.component.scss ***!
  \**********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL29wZXJhY2FvL21lZGljYW8tY2FsY3Vsby1hbHR1cmEvbWVkaWNhby1jYWxjdWxvLWFsdHVyYS1maWx0ZXIvbWVkaWNhby1jYWxjdWxvLWFsdHVyYS1maWx0ZXIuY29tcG9uZW50LnNjc3MifQ== */");

/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-filter/medicao-calculo-altura-filter.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-filter/medicao-calculo-altura-filter.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: MedicaoCalculoAlturaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAlturaFilterComponent", function() { return MedicaoCalculoAlturaFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../medicao-calculo-altura.model */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.model.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.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 MedicaoCalculoAlturaFilterComponent = /** @class */ (function () {
    function MedicaoCalculoAlturaFilterComponent(loginService) {
        this.loginService = loginService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
    }
    MedicaoCalculoAlturaFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
        this.filtro.filialId = this.loginService.getLogin().filialId;
    };
    MedicaoCalculoAlturaFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#medicao-calculo-altura-filter-dialog").modal("hide");
    };
    MedicaoCalculoAlturaFilterComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_1__["MedicaoCalculoAlturaFilter"])
    ], MedicaoCalculoAlturaFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MedicaoCalculoAlturaFilterComponent.prototype, "filtrar", void 0);
    MedicaoCalculoAlturaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-medicao-calculo-altura-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./medicao-calculo-altura-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-filter/medicao-calculo-altura-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./medicao-calculo-altura-filter.component.scss */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-filter/medicao-calculo-altura-filter.component.scss")).default]
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"]])
    ], MedicaoCalculoAlturaFilterComponent);
    return MedicaoCalculoAlturaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-form.component.scss":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-form.component.scss ***!
  \******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("#centralizar {\n  position: relative;\n  top: 18px;\n  left: 15px;\n}\n\n.card {\n  margin-bottom: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vbWVkaWNhby1jYWxjdWxvLWFsdHVyYS9tZWRpY2FvLWNhbGN1bG8tYWx0dXJhLWZvcm0vQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxvcGVyYWNhb1xcbWVkaWNhby1jYWxjdWxvLWFsdHVyYVxcbWVkaWNhby1jYWxjdWxvLWFsdHVyYS1mb3JtXFxtZWRpY2FvLWNhbGN1bG8tYWx0dXJhLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL29wZXJhY2FvL21lZGljYW8tY2FsY3Vsby1hbHR1cmEvbWVkaWNhby1jYWxjdWxvLWFsdHVyYS1mb3JtL21lZGljYW8tY2FsY3Vsby1hbHR1cmEtZm9ybS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGtCQUFBO0VBQ0EsU0FBQTtFQUNBLFVBQUE7QUNDRjs7QURFQTtFQUFPLG1CQUFBO0FDRVAiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9vcGVyYWNhby9tZWRpY2FvLWNhbGN1bG8tYWx0dXJhL21lZGljYW8tY2FsY3Vsby1hbHR1cmEtZm9ybS9tZWRpY2FvLWNhbGN1bG8tYWx0dXJhLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIjY2VudHJhbGl6YXJ7XHJcbiAgcG9zaXRpb246cmVsYXRpdmU7XHJcbiAgdG9wOiAxOHB4O1xyXG4gIGxlZnQ6IDE1cHg7XHJcbn1cclxuXHJcbi5jYXJkIHttYXJnaW4tYm90dG9tOiAxMHB4O31cclxuIiwiI2NlbnRyYWxpemFyIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB0b3A6IDE4cHg7XG4gIGxlZnQ6IDE1cHg7XG59XG5cbi5jYXJkIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-form.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-form.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: MedicaoCalculoAlturaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAlturaFormComponent", function() { return MedicaoCalculoAlturaFormComponent; });
/* 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 _medicao_calculo_altura_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../medicao-calculo-altura.constants */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.constants.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_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../medicao-calculo-altura.model */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.model.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 _config_enumerables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _medicao_calculo_altura_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../medicao-calculo-altura.service */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var MedicaoCalculoAlturaFormComponent = /** @class */ (function (_super) {
    __extends(MedicaoCalculoAlturaFormComponent, _super);
    function MedicaoCalculoAlturaFormComponent(router, messageService, activatedRoute, medicaoCalculoAlturaService, loginService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _medicao_calculo_altura_constants__WEBPACK_IMPORTED_MODULE_3__["MedicaoCalculoAlturaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.medicaoCalculoAlturaService = medicaoCalculoAlturaService;
        _this.loginService = loginService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_7__["MedicaoCalculoAltura"]();
        _this.dataAux = new _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_7__["MedicaoCalculoAltura"]();
        _this.dataCombo = new _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_7__["MedicaoCalculoAlturaDto"]();
        _this.filtro = new _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_7__["MedicaoCalculoAltura"]();
        _this.filtroMov = new _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_7__["SetAlturaCorte"]();
        _this.mensagens = [];
        _this.constantes = new _medicao_calculo_altura_constants__WEBPACK_IMPORTED_MODULE_3__["MedicaoCalculoAlturaConstants"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_9__["Mascaras"]();
        _this.hasDados = false;
        _this.desabilitaKilos = true;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.onChange = function () {
            _this.data.alturaCorte = 0;
            if (!(_this.data.tipoMov === "")) {
                _this.filtroMov.linha = (_this.funcoesService.isNotUndefinedOrNull(_this.data.linha) ? _this.data.linha : 0);
                _this.filtroMov.litros = (_this.funcoesService.isNotUndefinedOrNull(_this.data.litros) ? _this.data.litros : 0);
                _this.filtroMov.litrosMedicao = (_this.funcoesService.isNotUndefinedOrNull(_this.data.litrosMed) ? _this.data.litrosMed : 0);
                _this.filtroMov.tanqueId = (_this.funcoesService.isNotUndefinedOrNull(_this.data.tanqueId) ? _this.data.tanqueId : "");
                _this.filtroMov.tipoMov = (_this.funcoesService.isNotUndefinedOrNull(_this.data.tipoMov) ? _this.data.tipoMov : "C");
                _this.medicaoCalculoAlturaService.setAlturaCorte(_this.filtroMov).subscribe(function (resp) {
                    _this.data.alturaCorte = resp;
                    _this.data.alturaCorte = (_this.funcoesService.isNotUndefinedOrNull(_this.data.alturaCorte) ? _this.data.alturaCorte : 0);
                });
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    MedicaoCalculoAlturaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.medicaoCalculoAlturaService.getByMedicaoCalculoAlturaId(+id).subscribe(function (resp) {
                    if (resp) {
                        _this.data = resp;
                        if (_this.data && !_this.data.sisCampoAdds) {
                            _this.getCamposAdicionais();
                        }
                    }
                    else {
                        _this.messageService.warning("titles.medicaoCalculoAltura", "messages.registroNaoLocalizado");
                        _this.back();
                    }
                });
            }
            else {
                _this.data = new _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_7__["MedicaoCalculoAltura"]();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    MedicaoCalculoAlturaFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manutenção - Cálculo de Altura para Corte";
        this.medicaoCalculoAlturaService
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result1) {
            _this.mensagens = _this.messageService.validationResult(result1.validationResult);
            if (!result1.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.medicaoCalculoAltura");
                if (create) {
                    _this.data = new _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_7__["MedicaoCalculoAltura"]();
                    _this.router.navigate([_this.target + "/operacao/medicaoCalculoAltura/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    MedicaoCalculoAlturaFormComponent.prototype.edit = function () {
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_9__["ActionForm"].edit;
    };
    MedicaoCalculoAlturaFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    MedicaoCalculoAlturaFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/operacao/medicaoCalculoAltura"]);
    };
    MedicaoCalculoAlturaFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    MedicaoCalculoAlturaFormComponent.prototype.preencheUltMedicao = function () {
        var _this = this;
        this.tanque = this.data.tanqueId;
        if (this.data && (this.funcoesService.isNotUndefinedOrNull(this.tanque))) {
            this.medicaoCalculoAlturaService.getObterUltimaMedicao(this.tanque).subscribe(function (resp) {
                _this.dataCombo = resp;
                _this.data.materialId = _this.dataCombo.materialId;
                if (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.descrMaterial)) {
                    _this.data.descrMaterial = (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.descrMaterial) ? _this.dataCombo.descrMaterial : "");
                    _this.data.produto = (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.descrMaterial) ? _this.dataCombo.descrMaterial : "");
                }
                else {
                    _this.data.descrMaterial = (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.produto) ? _this.dataCombo.produto : "");
                    _this.data.produto = (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.produto) ? _this.dataCombo.produto : "");
                }
                _this.data.dtMedicao = _this.dataCombo.dtMedicao;
                _this.data.densidadeMed = (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.densidadeMed) ? _this.dataCombo.densidadeMed : 0);
                _this.data.kilosMed = (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.kilosMed) ? _this.dataCombo.kilosMed : 0);
                _this.data.litrosMed = (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.litrosMed) ? _this.dataCombo.litrosMed : 0);
                _this.data.densidade = (_this.funcoesService.isNotUndefinedOrNull(_this.dataCombo.densidade) ? _this.dataCombo.densidade : 0);
            });
        }
    };
    MedicaoCalculoAlturaFormComponent.prototype.calculaValorLinha = function () {
        this.data.kilos = 0;
        this.data.litros = (this.funcoesService.isNotUndefinedOrNull(this.data.litros) ? this.data.litros : 0);
        this.data.linha = (this.funcoesService.isNotUndefinedOrNull(this.data.linha) ? this.data.linha : 0);
        this.data.densidade = (this.funcoesService.isNotUndefinedOrNull(this.data.densidade) ? this.data.densidade : 0);
        var valor = ((this.data.litros + this.data.linha) * this.data.densidade);
        this.data.kilos = Math.round(valor);
    };
    MedicaoCalculoAlturaFormComponent.prototype.calculaValorKilos = function () {
        this.data.kilos = 0;
        this.data.litros = (this.funcoesService.isNotUndefinedOrNull(this.data.litros) ? this.data.litros : 0);
        this.data.linha = (this.funcoesService.isNotUndefinedOrNull(this.data.linha) ? this.data.linha : 0);
        this.data.densidade = (this.funcoesService.isNotUndefinedOrNull(this.data.densidade) ? this.data.densidade : 0);
        var valor = ((this.data.litros + this.data.linha) * this.data.densidade);
        this.data.kilos = Math.round(valor);
    };
    MedicaoCalculoAlturaFormComponent.prototype.calculaValorLitros = function () {
        this.data.litros = 0;
        this.data.kilos = (this.funcoesService.isNotUndefinedOrNull(this.data.kilos) ? this.data.kilos : 0);
        this.data.linha = (this.funcoesService.isNotUndefinedOrNull(this.data.linha) ? this.data.linha : 0);
        this.data.densidade = (this.funcoesService.isNotUndefinedOrNull(this.data.densidade) ? this.data.densidade : 0);
        if (this.data.densidade > 0) {
            var valor = (this.data.kilos / this.data.densidade);
            this.data.litros = Math.round(valor);
        }
        else {
            this.messageService.warning("messages.divisaoPorZero", "messages.densidadeNaoPodeSerZero");
        }
        if ((this.funcoesService.isNotUndefinedOrNull(this.data.litros)) && (this.data.litros > 0)) {
            this.desabilitaKilos = false;
        }
        else {
            this.desabilitaKilos = true;
        }
    };
    MedicaoCalculoAlturaFormComponent.prototype.calculaAltura = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.data.alturaCorte = 0;
                        if (!!(this.data.tipoMov === "")) return [3 /*break*/, 2];
                        this.filtroMov.linha = (this.funcoesService.isNotUndefinedOrNull(this.data.linha) ? this.data.linha : 0);
                        this.filtroMov.litros = (this.funcoesService.isNotUndefinedOrNull(this.data.litros) ? this.data.litros : 0);
                        this.filtroMov.litrosMedicao = (this.funcoesService.isNotUndefinedOrNull(this.data.litrosMed) ? this.data.litrosMed : 0);
                        this.filtroMov.tanqueId = (this.funcoesService.isNotUndefinedOrNull(this.data.tanqueId) ? this.data.tanqueId : "");
                        this.filtroMov.tipoMov = (this.funcoesService.isNotUndefinedOrNull(this.data.tipoMov) ? this.data.tipoMov : "C");
                        return [4 /*yield*/, this.medicaoCalculoAlturaService.setAlturaCorte(this.filtroMov).subscribe(function (resp) {
                                _this.data.alturaCorte = resp;
                                _this.data.alturaCorte = (_this.funcoesService.isNotUndefinedOrNull(_this.data.alturaCorte) ? _this.data.alturaCorte : 0);
                            })];
                    case 1:
                        _a.sent();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    MedicaoCalculoAlturaFormComponent.prototype.disableKilos = function () {
        if ((this.funcoesService.isNotUndefinedOrNull(this.data.litros)) && (this.data.litros > 0)) {
            this.desabilitaKilos = true;
        }
        else {
            this.desabilitaKilos = false;
        }
        return this.desabilitaKilos;
    };
    MedicaoCalculoAlturaFormComponent.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: _medicao_calculo_altura_service__WEBPACK_IMPORTED_MODULE_10__["MedicaoCalculoAlturaService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_11__["LoginService"] },
        { 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"] }
    ]; };
    MedicaoCalculoAlturaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-medicao-calculo-altura-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./medicao-calculo-altura-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./medicao-calculo-altura-form.component.scss */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-form.component.scss")).default]
        }),
        __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"],
            _medicao_calculo_altura_service__WEBPACK_IMPORTED_MODULE_10__["MedicaoCalculoAlturaService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_11__["LoginService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"]])
    ], MedicaoCalculoAlturaFormComponent);
    return MedicaoCalculoAlturaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-index/medicao-calculo-altura-index.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-index/medicao-calculo-altura-index.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: MedicaoCalculoAlturaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAlturaIndexComponent", function() { return MedicaoCalculoAlturaIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_operacao_medicao_calculo_altura_medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.model */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.model.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.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_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _medicao_calculo_altura_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../medicao-calculo-altura.constants */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_operacao_medicao_calculo_altura_medicao_calculo_altura_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.service */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.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 MedicaoCalculoAlturaIndexComponent = /** @class */ (function (_super) {
    __extends(MedicaoCalculoAlturaIndexComponent, _super);
    function MedicaoCalculoAlturaIndexComponent(router, service, datatables, message, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _medicao_calculo_altura_constants__WEBPACK_IMPORTED_MODULE_6__["MedicaoCalculoAlturaConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new app_pages_operacao_medicao_calculo_altura_medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_2__["MedicaoCalculoAlturaDto"]();
        _this.constantes = new _medicao_calculo_altura_constants__WEBPACK_IMPORTED_MODULE_6__["MedicaoCalculoAlturaConstants"]();
        _this.filtro = new app_pages_operacao_medicao_calculo_altura_medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_2__["MedicaoCalculoAlturaFilter"]();
        _this.target = _this.funcoes.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MedicaoCalculoAlturaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#medicao-calculo-altura-filter-dialog").modal("show");
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    MedicaoCalculoAlturaIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/operacao/medicaoCalculoAltura/create"]);
    };
    MedicaoCalculoAlturaIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFilter(this.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataString("tanqueId", "tanque", "10%"),
                _this.datatables.getDataDateTime("dtLancamento", "lancamento", "DD/MM/YYYY", "15%"),
                _this.datatables.getDataDateTime("dtMedicao", "medicao", "DD/MM/YYYY", "10%"),
                _this.datatables.getDataString("produto", "produto", "10%"),
                _this.datatables.getDataDouble("densidade", "densidade", 5, false, "10%"),
                _this.datatables.getDataDouble("kilos", "kilos", 0, false, "10%"),
                _this.datatables.getDataDouble("litros", "litros", 0, false, "10%"),
                _this.datatables.getDataDouble("linha", "linha", 0, false, "10%"),
                _this.datatables.getDataDouble("alturaCorte", "alturacorte", 1, false, "10%")
            ];
            _this.datatables.datatable("dtMedicaoCalculoAltura", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    MedicaoCalculoAlturaIndexComponent.prototype.edit = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.medicaoCalculoAlturaId)) {
            this.router.navigate([this.target + "/operacao/medicaoCalculoAltura/edit/" + this.data.medicaoCalculoAlturaId]);
        }
    };
    MedicaoCalculoAlturaIndexComponent.prototype.remove = function () {
        var _this = this;
        if (this.funcoes.isNotUndefinedOrNull(this.data.medicaoCalculoAlturaId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.message.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function () {
                        _this.datatables.remove("dtMedicaoCalculoAltura");
                    });
                });
            });
        }
    };
    MedicaoCalculoAlturaIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    MedicaoCalculoAlturaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MedicaoCalculoAlturaIndexComponent.prototype.filtrar = function () {
        jQuery("#medicao-calculo-altura-filter-dialog").modal("show");
    };
    MedicaoCalculoAlturaIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.refresh();
    };
    MedicaoCalculoAlturaIndexComponent.prototype.detail = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.medicaoCalculoAlturaId)) {
            this.router.navigate([this.target + "/operacao/medicaoCalculoAltura/detail/" + this.data.medicaoCalculoAlturaId]);
        }
    };
    MedicaoCalculoAlturaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            var reportTitulo = {
                titulo: _this.message.getTranslates('titles', 'medicaoCalculoAltura'),
                subTitulo: ''
            };
            _this.filtro.tanqueId = _this.funcoes.isNotUndefinedOrNull(_this.filtro.tanqueId) ? _this.filtro.tanqueId : 0;
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, reportTitulo, _this.filtro);
        });
    };
    MedicaoCalculoAlturaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_operacao_medicao_calculo_altura_medicao_calculo_altura_service__WEBPACK_IMPORTED_MODULE_8__["MedicaoCalculoAlturaService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] }
    ]; };
    MedicaoCalculoAlturaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-medicao-calculo-altura-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./medicao-calculo-altura-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-index/medicao-calculo-altura-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_operacao_medicao_calculo_altura_medicao_calculo_altura_service__WEBPACK_IMPORTED_MODULE_8__["MedicaoCalculoAlturaService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"]])
    ], MedicaoCalculoAlturaIndexComponent);
    return MedicaoCalculoAlturaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.constants.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.constants.ts ***!
  \*******************************************************************************************/
/*! exports provided: MedicaoCalculoAlturaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAlturaConstants", function() { return MedicaoCalculoAlturaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MedicaoCalculoAlturaConstants = /** @class */ (function () {
    function MedicaoCalculoAlturaConstants() {
        this.sisFormularioId = 250139;
        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.medicaoCalculoAltura";
        this.reportId = "CAD0240";
        this.reportTitulo = { "titulo": "Cálculo de Altura para Corte", "subTitulo": "" };
        this.tabela = "MedicaoCalculoAltura";
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return MedicaoCalculoAlturaConstants;
}());



/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.model.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.model.ts ***!
  \***************************************************************************************/
/*! exports provided: MedicaoCalculoAltura, MedicaoCalculoAlturaDto, MedicaoCalculoAlturaFilter, SetAlturaCorte */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAltura", function() { return MedicaoCalculoAltura; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAlturaDto", function() { return MedicaoCalculoAlturaDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAlturaFilter", function() { return MedicaoCalculoAlturaFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetAlturaCorte", function() { return SetAlturaCorte; });
/* 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 MedicaoCalculoAltura = /** @class */ (function (_super) {
    __extends(MedicaoCalculoAltura, _super);
    function MedicaoCalculoAltura(medicaoCalculoAlturaId) {
        if (medicaoCalculoAlturaId === void 0) { medicaoCalculoAlturaId = 0; }
        var _this = _super.call(this) || this;
        _this.tipoMov = "C";
        _this.medicaoCalculoAlturaId = medicaoCalculoAlturaId;
        return _this;
    }
    return MedicaoCalculoAltura;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var MedicaoCalculoAlturaDto = /** @class */ (function (_super) {
    __extends(MedicaoCalculoAlturaDto, _super);
    function MedicaoCalculoAlturaDto() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return MedicaoCalculoAlturaDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var MedicaoCalculoAlturaFilter = /** @class */ (function () {
    function MedicaoCalculoAlturaFilter() {
        var currentDate = new Date();
        currentDate.setDate(1);
        this.tanqueId = '';
        this.de = currentDate;
        this.ate = new Date();
        this.filialId = 0;
    }
    return MedicaoCalculoAlturaFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.module.ts ***!
  \****************************************************************************************/
/*! exports provided: MedicaoCalculoAlturaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAlturaModule", function() { return MedicaoCalculoAlturaModule; });
/* 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_calculo_altura_index_medicao_calculo_altura_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./medicao-calculo-altura-index/medicao-calculo-altura-index.component */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-index/medicao-calculo-altura-index.component.ts");
/* harmony import */ var _medicao_calculo_altura_form_medicao_calculo_altura_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./medicao-calculo-altura-form/medicao-calculo-altura-form.component */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-form/medicao-calculo-altura-form.component.ts");
/* harmony import */ var _medicao_calculo_altura_filter_medicao_calculo_altura_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./medicao-calculo-altura-filter/medicao-calculo-altura-filter.component */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura-filter/medicao-calculo-altura-filter.component.ts");
/* harmony import */ var _medicao_calculo_altura_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./medicao-calculo-altura.routing.module */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.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 MedicaoCalculoAlturaModule = /** @class */ (function () {
    function MedicaoCalculoAlturaModule() {
    }
    MedicaoCalculoAlturaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _medicao_calculo_altura_routing_module__WEBPACK_IMPORTED_MODULE_5__["MedicaoCalculoAlturaRoutingModule"]],
            declarations: [_medicao_calculo_altura_form_medicao_calculo_altura_form_component__WEBPACK_IMPORTED_MODULE_3__["MedicaoCalculoAlturaFormComponent"], _medicao_calculo_altura_index_medicao_calculo_altura_index_component__WEBPACK_IMPORTED_MODULE_2__["MedicaoCalculoAlturaIndexComponent"], _medicao_calculo_altura_filter_medicao_calculo_altura_filter_component__WEBPACK_IMPORTED_MODULE_4__["MedicaoCalculoAlturaFilterComponent"]]
        })
    ], MedicaoCalculoAlturaModule);
    return MedicaoCalculoAlturaModule;
}());



/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.routing.module.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.routing.module.ts ***!
  \************************************************************************************************/
/*! exports provided: MedicaoCalculoAlturaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MRoutes = [
    {
        path: "",
        component: _medicao_calculo_altura_index_medicao_calculo_altura_index_component__WEBPACK_IMPORTED_MODULE_3__["MedicaoCalculoAlturaIndexComponent"],
        data: { breadcrumb: "medicaoCalculoAltura", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _medicao_calculo_altura_form_medicao_calculo_altura_form_component__WEBPACK_IMPORTED_MODULE_4__["MedicaoCalculoAlturaFormComponent"],
        data: { breadcrumb: "medicaoCalculoAltura", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    },
    {
        path: "edit/:id",
        component: _medicao_calculo_altura_form_medicao_calculo_altura_form_component__WEBPACK_IMPORTED_MODULE_4__["MedicaoCalculoAlturaFormComponent"],
        data: {
            breadcrumb: "medicaoCalculoAltura",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _medicao_calculo_altura_form_medicao_calculo_altura_form_component__WEBPACK_IMPORTED_MODULE_4__["MedicaoCalculoAlturaFormComponent"],
        data: {
            breadcrumb: "medicaoCalculoAltura",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var MedicaoCalculoAlturaRoutingModule = /** @class */ (function () {
    function MedicaoCalculoAlturaRoutingModule() {
    }
    MedicaoCalculoAlturaRoutingModule = __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"]]
        })
    ], MedicaoCalculoAlturaRoutingModule);
    return MedicaoCalculoAlturaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.service.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.service.ts ***!
  \*****************************************************************************************/
/*! exports provided: MedicaoCalculoAlturaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicaoCalculoAlturaService", function() { return MedicaoCalculoAlturaService; });
/* 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 _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./medicao-calculo-altura.model */ "./src/app/pages/operacao/medicao-calculo-altura/medicao-calculo-altura.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var MedicaoCalculoAlturaService = /** @class */ (function (_super) {
    __extends(MedicaoCalculoAlturaService, _super);
    function MedicaoCalculoAlturaService(http) {
        var _this = _super.call(this, http, "operacao/medicaoCalculoAltura") || this;
        _this.http = http;
        _this.filtro = new _medicao_calculo_altura_model__WEBPACK_IMPORTED_MODULE_6__["MedicaoCalculoAlturaFilter"]();
        return _this;
    }
    MedicaoCalculoAlturaService.prototype.getByFilter = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/medicaoCalculoAltura/getByFiltro", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MedicaoCalculoAlturaService.prototype.getByMedicaoCalculoAlturaId = function (medicaoCalculoAlturaId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/medicaoCalculoAltura/getByMedicaoCalculoAlturaId/" + medicaoCalculoAlturaId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MedicaoCalculoAlturaService.prototype.getObterUltimaMedicao = function (tanqueId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/medicaoCalculoAltura/GetObterUltimaMedicao/" + tanqueId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MedicaoCalculoAlturaService.prototype.setAlturaCorte = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/medicaoCalculoAltura/setAlturaCorte", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MedicaoCalculoAlturaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    MedicaoCalculoAlturaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], MedicaoCalculoAlturaService);
    return MedicaoCalculoAlturaService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-operacao-medicao-calculo-altura-medicao-calculo-altura-module.js.map