(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-configuracoes-medicoes-medicoes-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/medicoes/medicoes-form/medicoes-form.component.html":
/*!*******************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/medicoes/medicoes-form/medicoes-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\" [itemData]=\"data.filialId\"\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-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"capacKgMedicao\" name=\"capacKgMedicao\" [ngModel]=\"data.capacKgMedicao === 'S'\"\n                                    (ngModelChange)=\"data.capacKgMedicao=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"capacKgMedicao\">{{'labels.configCapacKgMedicao'\n                                    | translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"altDtLanctoDensidade\" name=\"altDtLanctoDensidade\"\n                                    [ngModel]=\"data.altDtLanctoDensidade === 'S'\"\n                                    (ngModelChange)=\"data.altDtLanctoDensidade=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"altDtLanctoDensidade\">{{'labels.permiteAlterarDatalançamentoDensidade' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"densidadeTanque\" name=\"densidadeTanque\"\n                                    [ngModel]=\"data.densidadeTanque === 'S'\"\n                                    (ngModelChange)=\"data.densidadeTanque=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"densidadeTanque\">{{'labels.configDensidadeTanque' | translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"arredondaDecimalTemp\" name=\"arredondaDecimalTemp\"\n                                    [ngModel]=\"data.arredondaDecimalTemp === 'S'\"\n                                    (ngModelChange)=\"data.arredondaDecimalTemp=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"arredondaDecimalTemp\">{{'labels.arredondaDecimaltemperatura' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"alteraMedRadar\" name=\"alteraMedRadar\" [ngModel]=\"data.alteraMedRadar === 'S'\"\n                                    (ngModelChange)=\"data.alteraMedRadar=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"alteraMedRadar\">{{'labels.configAlteraMedRadar'\n                                    | translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"medicaoCliProd\" name=\"medicaoCliProd\" [ngModel]=\"data.medicaoCliProd === 'S'\"\n                                    (ngModelChange)=\"data.medicaoCliProd=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"medicaoCliProd\">{{'labels.configMedicaoCliProd'\n                                    | translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"dtMedAutomatica\" name=\"alteraMedRadar\"\n                                    [ngModel]=\"data.dtMedAutomatica === 'S'\"\n                                    (ngModelChange)=\"data.dtMedAutomatica=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"dtMedAutomatica\">{{'labels.configDtMedAutomatica' | translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"validaFechamento\" name=\"validaFechamento\"\n                                    [ngModel]=\"data.validaFechamento === 'S'\"\n                                    (ngModelChange)=\"data.validaFechamento=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"validaFechamento\">{{'labels.configValidaFechamento' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"interpolacao\" name=\"interpolacao\" [ngModel]=\"data.interpolacao === 'S'\"\n                                    (ngModelChange)=\"data.interpolacao=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"interpolacao\">{{'labels.configInterpolacao' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"pesoCorrCompl\" name=\"pesoCorrCompl\" [ngModel]=\"data.pesoCorrCompl === 'S'\"\n                                    (ngModelChange)=\"data.pesoCorrCompl=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"pesoCorrCompl\">{{'labels.configPesoCorrCompl' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"medicaoMM\" name=\"medicaoMM\" [ngModel]=\"data.medicaoMM === 'S'\"\n                                    (ngModelChange)=\"data.medicaoMM=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"medicaoMM\">{{'labels.configMedicaoMM' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"bloqVolumeMedicao\" name=\"bloqVolumeMedicao\"\n                                    [ngModel]=\"data.bloqVolumeMedicao === 'S'\"\n                                    (ngModelChange)=\"data.bloqVolumeMedicao=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"bloqVolumeMedicao\">{{'labels.configBloqVolumeMedicao' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"obrigaObsMedManual\" name=\"obrigaObsMedManual\"\n                                    [ngModel]=\"data.obrigaObsMedManual === 'S'\"\n                                    (ngModelChange)=\"data.obrigaObsMedManual=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"obrigaObsMedManual\">{{'labels.configObrigaObsMedManual' | translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"atDensTanqMedicao\" name=\"atDensTanqMedicao\"\n                                    [ngModel]=\"data.atDensTanqMedicao === 'S'\"\n                                    (ngModelChange)=\"data.atDensTanqMedicao=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"atDensTanqMedicao\">{{'labels.configAtDensTanqMedicao' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"cadTanqueCtrle20\" name=\"cadTanqueCtrle20\"\n                                    [ngModel]=\"data.cadTanqueCtrle20 === 'S'\"\n                                    (ngModelChange)=\"data.cadTanqueCtrle20=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"cadTanqueCtrle20\">{{'labels.cadTanqueCtrle20' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"tempTanqueGRadar\" name=\"tempTanqueGRadar\"\n                                    [ngModel]=\"data.tempTanqueGRadar === 'S'\"\n                                    (ngModelChange)=\"data.tempTanqueGRadar=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"tempTanqueGRadar\">{{'labels.tempTanqueGRadar' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"usaDensidadeRadar\" name=\"usaDensidadeRadar\"\n                                    [ngModel]=\"data.usaDensidadeRadar === 'S'\"\n                                    (ngModelChange)=\"data.usaDensidadeRadar=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"usaDensidadeRadar\">{{'labels.utilizaDensidadeInformadaPeloRadar' | translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"usaTempRadar\" name=\"usaTempRadar\"\n                                    [ngModel]=\"data.usaTempRadar === 'S'\"\n                                    (ngModelChange)=\"data.usaTempRadar=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"usaTempRadar\">{{'labels.utilizaTemperaturaInformadapeloRadar' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"ctrLitrosMed\" name=\"ctrLitrosMed\"\n                                    [ngModel]=\"data.ctrLitrosMed === 'S'\"\n                                    (ngModelChange)=\"data.ctrLitrosMed=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"ctrLitrosMed\">{{'labels.diferencaEmLitrosNamedição' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clerarfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"formCalc20Alc\">{{'labels.metodoCalculo20ºparaAlcoool' | translate}}</label>\n                                <select class=\"form-control form-control-sm\" name=\"formCalc20Alc\" id=\"formCalc20Alc\"\n                                    [(ngModel)]=\"data.formCalc20Alc\">\n                                    <option value=\"0\">{{'labels.tabela' | translate}}</option>\n                                    <option value=\"1\">{{'labels.formula' | translate}}</option>\n                                </select>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"formaCalcDens\">{{'labels.formulaDamedicaoMetodoCalculoDensidade' | translate}}</label>\n                                <select class=\"form-control form-control-sm\" name=\"formaCalcDens\" id=\"formaCalcDens\"\n                                    [(ngModel)]=\"data.formaCalcDens\">\n                                    <option value=\"0\">{{'labels.tempAmostraTempTanque' | translate}}</option>\n                                    <option value=\"1\">{{'labels.tempTanqueTempAmostra' | translate}}</option>\n                                </select>\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=\"formCalc20Der\">{{'labels.configFormCalc20Der' | translate}}</label>\n                                <select class=\"form-control form-control-sm\" name=\"formCalc20Der\" id=\"formCalc20Der\"\n                                    [(ngModel)]=\"data.formCalc20Der\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"0\">{{'labels.tabela' | translate}}</option>\n                                    <option value=\"1\">{{'labels.formula' | translate}}</option>\n                                </select>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"atualTemperatura\">{{'labels.configAtualTemperatura' | translate}}</label>\n                                <select class=\"form-control form-control-sm\" name=\"atualTemperatura\"\n                                    id=\"atualTemperatura\" [(ngModel)]=\"data.atualTemperatura\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"0\">{{'labels.temperaturaAmostra' | translate}}</option>\n                                    <option value=\"1\">{{'labels.temperaturaTanque' | translate}}</option>\n                                    <option value=\"2\">{{'labels.ambos' | translate}}</option>\n                                </select>\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=\"numDecCalc20\">{{'labels.configNumDecCalc20' | translate}}</label>\n                                <select class=\"form-control form-control-sm\" name=\"numDecCalc20\" id=\"numDecCalc20\"\n                                    [(ngModel)]=\"data.numDecCalc20\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"0\">0</option>\n                                    <option value=\"1\">1</option>\n                                    <option value=\"2\">2</option>\n                                    <option value=\"3\">3</option>\n                                    <option value=\"4\">4</option>\n                                    <option value=\"5\">5</option>\n                                </select>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"qtDigFatorCorrecao20\">{{'labels.configQtDigFatorCorrecao20' |\n                                    translate}}</label>\n                                <select class=\"form-control form-control-sm\" name=\"qtDigFatorCorrecao20\"\n                                    id=\"qtDigFatorCorrecao20\" [(ngModel)]=\"data.qtDigFatorCorrecao20\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"0\">0</option>\n                                    <option value=\"1\">1</option>\n                                    <option value=\"2\">2</option>\n                                    <option value=\"3\">3</option>\n                                    <option value=\"4\">4</option>\n                                    <option value=\"5\">5</option>\n                                </select>\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=\"numDecCalcOutros\">{{'labels.configNumDecCalcOutros' | translate}}</label>\n                                <select class=\"form-control form-control-sm\" name=\"numDecCalcOutros\"\n                                    id=\"numDecCalcOutros\" [(ngModel)]=\"data.numDecCalcOutros\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"0\">0</option>\n                                    <option value=\"1\">1</option>\n                                    <option value=\"2\">2</option>\n                                    <option value=\"3\">3</option>\n                                    <option value=\"4\">4</option>\n                                    <option value=\"5\">5</option>\n                                </select>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"qtDigFatorCorrecao\">{{'labels.configQtDigFatorCorrecao' |\n                                    translate}}</label>\n                                <select class=\"form-control form-control-sm\" name=\"qtDigFatorCorrecao\"\n                                    id=\"qtDigFatorCorrecao\" [(ngModel)]=\"data.qtDigFatorCorrecao\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"0\">0</option>\n                                    <option value=\"1\">1</option>\n                                    <option value=\"2\">2</option>\n                                    <option value=\"3\">3</option>\n                                    <option value=\"4\">4</option>\n                                    <option value=\"5\">5</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./src/app/pages/configuracoes/medicoes/medicoes-form/medicoes-form.component.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/medicoes/medicoes-form/medicoes-form.component.ts ***!
  \***************************************************************************************/
/*! exports provided: MedicoesFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicoesFormComponent", function() { return MedicoesFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.model */ "./src/app/shared/services/funcoes/configuracao/configuracao.model.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _medicoes_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../medicoes.constants */ "./src/app/pages/configuracoes/medicoes/medicoes.constants.ts");
/* harmony import */ var _medicoes_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../medicoes.model */ "./src/app/pages/configuracoes/medicoes/medicoes.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 MedicoesFormComponent = /** @class */ (function (_super) {
    __extends(MedicoesFormComponent, _super);
    function MedicoesFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, funcoes) {
        var _this = _super.call(this, new _medicoes_constants__WEBPACK_IMPORTED_MODULE_9__["MedicoesConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.data = new _medicoes_model__WEBPACK_IMPORTED_MODULE_10__["Medicoes"]();
        _this.mensagens = [];
        _this.constantes = new _medicoes_constants__WEBPACK_IMPORTED_MODULE_9__["MedicoesConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.capacKgMedicao = _this.configuracao.string("FIS", "CapacKgMedicao");
                _this.data.atDensTanqMedicao = _this.configuracao.string("FIS", "AtDensTanqMedicao");
                _this.data.densidadeTanque = _this.configuracao.string("FIS", "DensidadeTanque");
                _this.data.alteraMedRadar = _this.configuracao.string("FIS", "AlteraMedRadar");
                _this.data.medicaoCliProd = _this.configuracao.string("STO", "MedicaoCliProd");
                _this.data.dtMedAutomatica = _this.configuracao.string("STO", "DtMedAutomatica");
                _this.data.validaFechamento = _this.configuracao.string("STO", "ValidaFechamento");
                _this.data.interpolacao = _this.configuracao.string("STO", "Interpolacao");
                _this.data.pesoCorrCompl = _this.configuracao.string("STO", "PesoCorrCompl");
                _this.data.bloqVolumeMedicao = _this.configuracao.string("STO", "BloqVolumeMedicao");
                _this.data.obrigaObsMedManual = _this.configuracao.string("STO", "ObrigaObsMedManual");
                _this.data.formCalc20Der = _this.configuracao.string("STO", "FormCalc20Der");
                _this.data.atualTemperatura = _this.configuracao.string("STO", "AtualTemperatura");
                _this.data.numDecCalc20 = _this.configuracao.string("STO", "NumDecCalc20");
                _this.data.qtDigFatorCorrecao20 = _this.configuracao.string("STO", "QtDigFatorCorrecao20");
                _this.data.numDecCalcOutros = _this.configuracao.string("STO", "NumDecCalcOutros");
                _this.data.qtDigFatorCorrecao = _this.configuracao.string("STO", "QtDigFatorCorrecao");
                _this.data.medicaoMM = _this.configuracao.string("OPE", "MedicaoMM");
                _this.data.cadTanqueCtrle20 = _this.configuracao.string("STO", "CadTanqueCtrle20");
                _this.data.tempTanqueGRadar = _this.configuracao.string("FIS", "TempTanqueGRadar");
                _this.data.formCalc20Alc = _this.configuracao.number("STO", "FormCalc20Alc");
                _this.data.altDtLanctoDensidade = _this.configuracao.string("STO", "AltDtLanctoDensidade");
                _this.data.arredondaDecimalTemp = _this.configuracao.string("FIS", "ArredondaDecimalTemp");
                _this.data.usaDensidadeRadar = _this.configuracao.string("FIS", "UsaDensidadeRadar");
                _this.data.usaTempRadar = _this.configuracao.string("FIS", "UsaTempRadar");
                _this.data.tempTanqueGRadar = _this.configuracao.string("FIS", "TempTanqueGRadar");
                _this.data.ctrLitrosMed = _this.configuracao.string("STO", "CtrLitrosMed");
                _this.data.formaCalcDens = _this.configuracao.number("STO", "FormaCalcDens");
            }
        };
        return _this;
    }
    MedicoesFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.configuracao.getConfig({
                codRotina: _this.constantes.sisFormularioId,
                configs: _this.constantes.configuracoes
            }, _this.loadConfig);
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    MedicoesFormComponent.prototype._onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.messageService.confirm("titles.medicoes", "messages.updateConfigConfirm", null, function () { return _this.onSubmit(); });
        });
    };
    MedicoesFormComponent.prototype.onSubmit = function () {
        var _this = this;
        var object = new _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_4__["Config"](this.constantes.sisFormularioId);
        object.setConfig(this.data.filialId, 'FIS', 'CapacKgMedicao', this.data.capacKgMedicao);
        object.setConfig(this.data.filialId, 'FIS', 'AtDensTanqMedicao', this.data.atDensTanqMedicao);
        object.setConfig(this.data.filialId, 'FIS', 'DensidadeTanque', this.data.densidadeTanque);
        object.setConfig(this.data.filialId, 'FIS', 'AlteraMedRadar', this.data.alteraMedRadar);
        object.setConfig(this.data.filialId, 'STO', 'MedicaoCliProd', this.data.medicaoCliProd);
        object.setConfig(this.data.filialId, 'STO', 'DtMedAutomatica', this.data.dtMedAutomatica);
        object.setConfig(this.data.filialId, 'STO', 'ValidaFechamento', this.data.validaFechamento);
        object.setConfig(this.data.filialId, 'STO', 'Interpolacao', this.data.interpolacao);
        object.setConfig(this.data.filialId, 'STO', 'PesoCorrCompl', this.data.pesoCorrCompl);
        object.setConfig(this.data.filialId, 'STO', 'BloqVolumeMedicao', this.data.bloqVolumeMedicao);
        object.setConfig(this.data.filialId, 'STO', 'ObrigaObsMedManual', this.data.obrigaObsMedManual);
        object.setConfig(this.data.filialId, 'STO', 'FormCalc20Der', this.data.formCalc20Der);
        object.setConfig(this.data.filialId, 'STO', 'AtualTemperatura', this.data.atualTemperatura);
        object.setConfig(this.data.filialId, 'STO', 'NumDecCalc20', this.data.numDecCalc20);
        object.setConfig(this.data.filialId, 'STO', 'QtDigFatorCorrecao20', this.data.qtDigFatorCorrecao20);
        object.setConfig(this.data.filialId, 'STO', 'NumDecCalcOutros', this.data.numDecCalcOutros);
        object.setConfig(this.data.filialId, 'STO', 'QtDigFatorCorrecao', this.data.qtDigFatorCorrecao);
        object.setConfig(this.data.filialId, 'OPE', 'MedicaoMM', this.data.medicaoMM);
        object.setConfig(this.data.filialId, 'STO', 'CadTanqueCtrle20', this.data.cadTanqueCtrle20);
        object.setConfig(this.data.filialId, 'FIS', 'TempTanqueGRadar', this.data.tempTanqueGRadar);
        object.setConfig(this.data.filialId, 'STO', 'FormCalc20Alc', this.data.formCalc20Alc, "I");
        object.setConfig(this.data.filialId, 'STO', 'AltDtLanctoDensidade', this.data.altDtLanctoDensidade);
        object.setConfig(this.data.filialId, 'FIS', 'ArredondaDecimalTemp', this.data.arredondaDecimalTemp);
        object.setConfig(this.data.filialId, 'FIS', 'UsaDensidadeRadar', this.data.usaDensidadeRadar);
        object.setConfig(this.data.filialId, 'FIS', 'UsaTempRadar', this.data.usaTempRadar);
        object.setConfig(this.data.filialId, 'STO', 'CtrLitrosMed', this.data.ctrLitrosMed);
        object.setConfig(this.data.filialId, 'STO', 'FormaCalcDens', this.data.formaCalcDens, "I");
        this.configuracao
            .save(object)
            .subscribe(function (result) {
            if (result.validationResult != null && !result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.configuracoes", "messages.configuracaoDe");
            }
        });
    };
    MedicoesFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MedicoesFormComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    MedicoesFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-medicoes-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./medicoes-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/medicoes/medicoes-form/medicoes-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], MedicoesFormComponent);
    return MedicoesFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/configuracoes/medicoes/medicoes.constants.ts":
/*!********************************************************************!*\
  !*** ./src/app/pages/configuracoes/medicoes/medicoes.constants.ts ***!
  \********************************************************************/
/*! exports provided: MedicoesConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicoesConstants", function() { return MedicoesConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MedicoesConstants = /** @class */ (function () {
    function MedicoesConstants() {
        this.sisFormularioId = 35069;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.pemissoes" },
        ];
        this.configuracoes = [];
        this.nomeForm = "titles.medicoes";
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "FIS",
                parametros: [
                    "CapacKgMedicao",
                    "AtDensTanqMedicao",
                    "DensidadeTanque",
                    "AlteraMedRadar",
                    "TempTanqueGRadar",
                    "ArredondaDecimalTemp",
                    "UsaDensidadeRadar",
                    "UsaTempRadar"
                ]
            },
            {
                sistema: "STO",
                parametros: [
                    "MedicaoCliProd",
                    "DtMedAutomatica",
                    "ValidaFechamento",
                    "Interpolacao",
                    "PesoCorrCompl",
                    "BloqVolumeMedicao",
                    "ObrigaObsMedManual",
                    "FormCalc20Der",
                    "AtualTemperatura",
                    "NumDecCalc20",
                    "QtDigFatorCorrecao20",
                    "NumDecCalcOutros",
                    "QtDigFatorCorrecao",
                    "CadTanqueCtrle20",
                    "FormCalc20Alc",
                    "AltDtLanctoDensidade",
                    "CtrLitrosMed",
                    "FormaCalcDens"
                ]
            },
            {
                sistema: "OPE",
                parametros: [
                    "MedicaoMM"
                ]
            },
        ];
    }
    return MedicoesConstants;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/medicoes/medicoes.model.ts":
/*!****************************************************************!*\
  !*** ./src/app/pages/configuracoes/medicoes/medicoes.model.ts ***!
  \****************************************************************/
/*! exports provided: Medicoes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Medicoes", function() { return Medicoes; });
/* 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 Medicoes = /** @class */ (function (_super) {
    __extends(Medicoes, _super);
    function Medicoes() {
        var _this = _super.call(this) || this;
        _this.formCalc20Der = "";
        _this.atualTemperatura = "";
        _this.numDecCalc20 = "";
        _this.qtDigFatorCorrecao20 = "";
        _this.numDecCalcOutros = "";
        _this.qtDigFatorCorrecao = "";
        return _this;
    }
    return Medicoes;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/configuracoes/medicoes/medicoes.module.ts":
/*!*****************************************************************!*\
  !*** ./src/app/pages/configuracoes/medicoes/medicoes.module.ts ***!
  \*****************************************************************/
/*! exports provided: MedicoesModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicoesModule", function() { return MedicoesModule; });
/* 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__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _medicoes_form_medicoes_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./medicoes-form/medicoes-form.component */ "./src/app/pages/configuracoes/medicoes/medicoes-form/medicoes-form.component.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _medicoes_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./medicoes.routing.module */ "./src/app/pages/configuracoes/medicoes/medicoes.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 MedicoesModule = /** @class */ (function () {
    function MedicoesModule() {
    }
    MedicoesModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_medicoes_form_medicoes_form_component__WEBPACK_IMPORTED_MODULE_2__["MedicoesFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__["SharedModule"],
                _medicoes_routing_module__WEBPACK_IMPORTED_MODULE_4__["MedicoesRoutingModule"]
            ]
        })
    ], MedicoesModule);
    return MedicoesModule;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/medicoes/medicoes.routing.module.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/configuracoes/medicoes/medicoes.routing.module.ts ***!
  \*************************************************************************/
/*! exports provided: MedicoesRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MedicoesRoutingModule", function() { return MedicoesRoutingModule; });
/* 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 _medicoes_form_medicoes_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./medicoes-form/medicoes-form.component */ "./src/app/pages/configuracoes/medicoes/medicoes-form/medicoes-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: _medicoes_form_medicoes_form_component__WEBPACK_IMPORTED_MODULE_3__["MedicoesFormComponent"],
        data: { breadcrumb: "medicoes", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    }
];
var MedicoesRoutingModule = /** @class */ (function () {
    function MedicoesRoutingModule() {
    }
    MedicoesRoutingModule = __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"]]
        })
    ], MedicoesRoutingModule);
    return MedicoesRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-configuracoes-medicoes-medicoes-module.js.map