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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/configuracoes-anp/configuracoes-anp-form/configuracoes-anp-form.component.html":
/*!**********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/configuracoes-anp/configuracoes-anp-form/configuracoes-anp-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                      [itemData]=\"data.filialId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <div class=\"clearfix\">\n        <ul class=\"nav nav-tabs\">\n            <li class=\"nav-item\">\n                <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#tgeral\">{{\"labels.geral\" | translate }}</a>\n            </li>\n            <li class=\"nav-item\">\n                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#testoquediario\">{{ 'labels.estoqueDiarioAnp' | translate }}</a>\n            </li>\n        </ul>\n    </div>\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"_onSubmit(f)\">\n        <div class=\"tab-content top\">\n            <!-- ABA GERAL -->\n            <div class=\"tab-pane active show\" id=\"tgeral\">\n                <app-form-legenda></app-form-legenda>\n                <app-validacoes></app-validacoes>\n                <div class=\"row\">\n                    <div class=\"col-lg-4\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"instalacao\" class=\"required\">{{'labels.instalacao' | translate}}</label>\n                            <app-combo-padrao \n                                name=\"instalacao\" \n                                id=\"instalacao\" \n                                chave=\"Instalacao\"\n                                descricao=\"Fantasia\"\n                                ativo=\"true\"\n                                tabela=\"ANP17Instalacao\"\n                                required\n                                [(ngModel)]=\"data.anP17InstalacaoId\">\n                            </app-combo-padrao>   \n                        </div>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-lg-4\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"codigoTerminal\">{{'labels.codigoTerminal' | translate}}</label>\n                            <input id=\"codigoTerminal\" name=\"codigoTerminal\"\n                                    [(ngModel)]=\"data.codigoTerminal\" maxlength=\"10\"\n                                    class=\"form-control form-control-sm\"\n                                    type=\"text\"  required\n                                    autofocus>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-lg-4\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"codigoTerminal\">{{'labels.codigoOperador' | translate}}</label>\n                            <input id=\"codigoOperador\" name=\"codigoOperador\"\n                                    [(ngModel)]=\"data.codigoOperador\" maxlength=\"10\"\n                                    class=\"form-control form-control-sm\"\n                                    type=\"text\"  required\n                                    autofocus>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-lg-4\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"agenteRegulado\">{{'labels.agenteRegulado' | translate}}</label>\n                            <input id=\"agenteRegulado\" name=\"agenteRegulado\"\n                                    [(ngModel)]=\"data.agenteRegulado\" maxlength=\"10\"\n                                    class=\"form-control form-control-sm\"\n                                    type=\"text\"  required\n                                    autofocus>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row cont-ckeck\">\n                    <div class=\"col-lg-3\">\n                        <div class=\"custom-control custom-checkbox\">\n                            <input id=\"flagAtivo\" name=\"flagAtivo\"\n                                    [ngModel]=\"data.geracaoDetalhada === 'S'\"\n                                    (ngModelChange)=\"data.geracaoDetalhada=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                    >\n                            <label class=\"custom-control-label\"\n                                    for=\"flagAtivo\">{{'labels.geracaoDetalhada' | translate}}</label>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"clearfix\">&nbsp;</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                                    >\n                                {{ 'buttons.salvar' | translate }}\n                            </button>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <!-- ABA ESTOQUE DIÁRIO ANP 868 -->\n            <div class=\"tab-pane\" id=\"testoquediario\">\n                <div class=\"row\">\n                    <div class=\"col-sm-12\">\n                        <fieldset>\n                            <legend>{{ \"labels.enderecosWebService\" | translate }}</legend>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"urlProducao\">{{'labels.urlProducao' | translate}}</label>\n                                        <input id=\"urlProducao\" name=\"urlProducao\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            [(ngModel)]=\"data.urlProdANPEnvioDia\"\n                                            maxlength=\"250\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"urlHomologacao\">{{'labels.urlHomologacao' | translate}}</label>\n                                        <input id=\"urlHomologacao\" name=\"urlHomologacao\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            [(ngModel)]=\"data.urlHomoANPEnvioDia\"\n                                            maxlength=\"250\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"urlWsCorporate\">{{'labels.urlWsCorporate' | translate}}</label>\n                                        <input id=\"urlWsCorporate\" name=\"urlWsCorporate\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            [(ngModel)]=\"data.urlWSCorporateAnp\"\n                                            maxlength=\"250\">\n                                    </div>\n                                </div>\n                            </div>\n                        </fieldset>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-sm-12 col-md-8\">\n                        <fieldset>\n                            <legend>{{ \"labels.geracaoEnvio\" | translate }}</legend>\n                            <div class=\"row mt-2\">\n                                <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"geracao\">{{'labels.geracao' | translate}}</label>\n                                        <input id=\"geracao\" name=\"geracao\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            mask=\"00:00:00\"\n                                            max-length=\"8\"\n                                            [(ngModel)]=\"dtProcessANPDia\"\n                                            (blur)=\"atualizarHoras($event, data.dtProcessANPDia)\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row mt-2\">\n                                <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"envio\">{{'labels.envio' | translate}}</label>\n                                        <input id=\"envio\" name=\"envio\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            mask=\"00:00:00\"\n                                            max-length=\"8\"\n                                            [(ngModel)]=\"dtEnvioANPDia\"\n                                            (blur)=\"atualizarHoras($event, data.dtEnvioANPDia)\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row mt-3 mb-3\">\n                                <div class=\"col-lg-3 col-md-5 col-sm-12 checkbox-inline-bottom\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"apenasGeracao\" name=\"apenasGeracao\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            [ngModel]=\"data.aNPDGera === 'S'\"\n                                            (ngModelChange)=\"data.aNPDGera=$event?'S':'N'\">\n                                        <label class=\"custom-control-label\" for=\"apenasGeracao\">{{ 'labels.apenasGeracao' | translate }}</label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-4 col-md-6 col-sm-12 checkbox-inline-bottom\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"matrizConsolidacao\" name=\"matrizConsolidacao\"\n                                            class=\"custom-control-input checkbox-success\"\n                                            type=\"checkbox\"\n                                            [ngModel]=\"data.aNPDMatrizConsol === 'S'\"\n                                            (ngModelChange)=\"data.aNPDMatrizConsol=$event?'S':'N'\">\n                                        <label class=\"custom-control-label\" for=\"matrizConsolidacao\">{{ 'labels.matrizConsolidacao' | translate }}</label>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"stringConexao\">{{'labels.stringConexaoBaseConsolidada' | translate}}</label>\n                                        <input id=\"stringConexao\" name=\"stringConexao\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            [(ngModel)]=\"data.aNPExportSrv\"\n                                            maxlength=\"250\">\n                                    </div>\n                                </div>\n                            </div>\n                        </fieldset>\n                    </div>\n                    <div class=\"col-sm-12 col-md-4\">\n                        <fieldset>\n                            <legend>{{ \"labels.dadosAcesso\" | translate }}</legend>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"login\">{{'labels.login' | translate}}</label>\n                                        <input id=\"login\" name=\"login\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            [(ngModel)]=\"data.loginAnp\"\n                                            maxlength=\"250\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"senha\">{{'labels.senha' | translate}}</label>\n                                        <input id=\"senha\" name=\"senha\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            [(ngModel)]=\"data.senhaAnp\"\n                                            maxlength=\"250\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"cnpj\">{{'labels.cnpj' | translate}}</label>\n                                        <input id=\"cnpj\" name=\"cnpj\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            [(ngModel)]=\"data.cnpjAnp\"\n                                            maxlength=\"250\">\n                                    </div>\n                                </div>\n                            </div>\n                        </fieldset>\n                        <fieldset>\n                            <legend>{{ \"labels.ambiente\" | translate }}</legend>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-check-inline\">\n                                        <input id=\"homologacao\" name=\"ambiente\"\n                                            class=\"form-check-input\"\n                                            type=\"radio\"\n                                            value=\"0\"\n                                            [(ngModel)]=\"data.ambienteANPEnvioDia\">\n                                        <label class=\"form-check-label\" for=\"homologacao\">{{ 'labels.homologacao' | translate }}</label>\n                                    </div>\n                                    <div class=\"form-check-inline\">\n                                        <input id=\"producao\" name=\"ambiente\"\n                                            class=\"form-check-input\"\n                                            type=\"radio\"\n                                            value=\"1\"\n                                            [(ngModel)]=\"data.ambienteANPEnvioDia\">\n                                        <label class=\"form-check-label\" for=\"producao\">{{ 'labels.producao' | translate }}</label>\n                                    </div>\n                                </div>\n                            </div>\n                        </fieldset>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-sm-12\">\n                        <fieldset>\n                            <legend>{{ \"labels.enderecoEmailCasoFalhaEnvio\" | translate }}</legend>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"emails\">{{'labels.separarEmailPorPontoVirgula' | translate}}</label>\n                                        <input id=\"emails\" name=\"emails\"\n                                            class=\"form-control form-control-sm\"\n                                            type=\"text\"\n                                            [(ngModel)]=\"data.emailFalhaAnp\"\n                                            maxlength=\"250\">\n                                    </div>\n                                </div>\n                            </div>\n                        </fieldset>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </form>\n</div>\n\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesAnpFormComponent", function() { return ConfiguracoesAnpFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.model */ "./src/app/shared/services/funcoes/configuracao/configuracao.model.ts");
/* harmony import */ var _configuracoes_anp_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../configuracoes-anp.constants */ "./src/app/pages/configuracoes/configuracoes-anp/configuracoes-anp.constants.ts");
/* harmony import */ var _configuracoes_anp_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../configuracoes-anp.model */ "./src/app/pages/configuracoes/configuracoes-anp/configuracoes-anp.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.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 ConfiguracoesAnpFormComponent = /** @class */ (function (_super) {
    __extends(ConfiguracoesAnpFormComponent, _super);
    function ConfiguracoesAnpFormComponent(messageService, configuracao, funcoesService, loginService, loteService, permissoesUtils, funcoes) {
        var _this = _super.call(this, new _configuracoes_anp_constants__WEBPACK_IMPORTED_MODULE_10__["ConfiguracoesAnpConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.loteService = loteService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.data = new _configuracoes_anp_model__WEBPACK_IMPORTED_MODULE_11__["ConfiguracoesAnp"]();
        _this.dtEnvioANPDia = "";
        _this.dtProcessANPDia = "";
        _this.mensagens = [];
        _this.constantes = new _configuracoes_anp_constants__WEBPACK_IMPORTED_MODULE_10__["ConfiguracoesAnpConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.codigoTerminal = _this.configuracao.string("CTR", "CodigoTerminal");
                _this.data.codigoOperador = _this.configuracao.string("CTR", "CodigoOperador");
                _this.data.anP17InstalacaoId = _this.configuracao.string("OBR", "Instalacao");
                _this.data.agenteRegulado = _this.configuracao.string("OBR", "AgenteRegulado");
                _this.data.geracaoDetalhada = _this.configuracao.string("OBR", "GeracaoDetalhada");
                _this.data.urlProdANPEnvioDia = _this.configuracao.string("OBR", "UrlProdANPEnvioDia");
                _this.data.urlHomoANPEnvioDia = _this.configuracao.string("OBR", "UrlHomoANPEnvioDia");
                _this.data.ambienteANPEnvioDia = _this.configuracao.string("OBR", "AmbienteANPEnvioDia");
                _this.data.dtEnvioANPDia = _this.configuracao.date("OBR", "DtEnvioANPDia");
                _this.data.dtProcessANPDia = _this.configuracao.date("OBR", "DtProcessANPDia");
                _this.data.loginAnp = _this.configuracao.string("OBR", "LoginAnp");
                _this.data.senhaAnp = _this.configuracao.string("OBR", "SenhaAnp");
                _this.data.cnpjAnp = _this.configuracao.string("OBR", "CnpjAnp");
                _this.data.urlWSCorporateAnp = _this.configuracao.string("OBR", "UrlWSCorporateAnp");
                _this.data.emailFalhaAnp = _this.configuracao.string("OBR", "EmailFalhaAnp");
                _this.data.aNPDGera = _this.configuracao.string("OBR", "ANPDGera");
                _this.data.aNPExportSrv = _this.configuracao.string("OBR", "ANPExportSrv");
                _this.data.aNPDMatrizConsol = _this.configuracao.string("OBR", "ANPDMatrizConsol");
                _this.dtEnvioANPDia = _this.getHoras(_this.data.dtEnvioANPDia);
                _this.dtProcessANPDia = _this.getHoras(_this.data.dtProcessANPDia);
            }
        };
        return _this;
    }
    ConfiguracoesAnpFormComponent.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);
    };
    ConfiguracoesAnpFormComponent.prototype.getHoras = function (data) {
        return data.getHours().toString().padStart(2, "0")
            + ":" + data.getMinutes().toString().padStart(2, "0")
            + ":" + data.getSeconds().toString().padStart(2, "0");
    };
    ConfiguracoesAnpFormComponent.prototype.atualizarHoras = function (event, data) {
        data = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].isDate(data) ? data : new Date();
        var hora = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].isNotEmpty(event.currentTarget.value) ? event.currentTarget.value.split(":") : event.currentTarget.value;
        if (!hora)
            return;
        data.setHours(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(hora[0] ? hora[0] : 0), app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(hora[1] ? hora[1] : 0), app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(hora[2] ? hora[2] : 0));
        event.currentTarget.value = this.getHoras(data);
    };
    ConfiguracoesAnpFormComponent.prototype._onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.messageService.confirm("titles.anp", "messages.updateConfigConfirm", null, function () { return _this.onSubmit(); });
    };
    ConfiguracoesAnpFormComponent.prototype.onSubmit = function () {
        var _this = this;
        var object = new app_shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_9__["Config"](this.constantes.sisFormularioId);
        object.setConfig(this.data.filialId, 'CTR', 'CodigoTerminal', this.data.codigoTerminal);
        object.setConfig(this.data.filialId, 'CTR', 'CodigoOperador', this.data.codigoOperador);
        object.setConfig(this.data.filialId, 'OBR', 'Instalacao', this.data.anP17InstalacaoId, "I");
        object.setConfig(this.data.filialId, 'OBR', 'AgenteRegulado', this.data.agenteRegulado);
        object.setConfig(this.data.filialId, 'OBR', 'GeracaoDetalhada', this.data.geracaoDetalhada);
        object.setConfig(this.data.filialId, "OBR", "UrlProdANPEnvioDia", this.data.urlProdANPEnvioDia);
        object.setConfig(this.data.filialId, "OBR", "UrlHomoANPEnvioDia", this.data.urlHomoANPEnvioDia);
        object.setConfig(this.data.filialId, "OBR", "AmbienteANPEnvioDia", this.data.ambienteANPEnvioDia, "I");
        object.setConfig(this.data.filialId, "OBR", "DtEnvioANPDia", app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].convertDateToDateTimeSql(this.data.dtEnvioANPDia).replace(/[-]/g, ''), "D");
        object.setConfig(this.data.filialId, "OBR", "DtProcessANPDia", app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].convertDateToDateTimeSql(this.data.dtProcessANPDia).replace(/[-]/g, ''), "D");
        object.setConfig(this.data.filialId, "OBR", "LoginAnp", this.data.loginAnp);
        object.setConfig(this.data.filialId, "OBR", "SenhaAnp", this.data.senhaAnp);
        object.setConfig(this.data.filialId, "OBR", "CnpjAnp", this.data.cnpjAnp);
        object.setConfig(this.data.filialId, "OBR", "UrlWSCorporateAnp", this.data.urlWSCorporateAnp);
        object.setConfig(this.data.filialId, "OBR", "EmailFalhaAnp", this.data.emailFalhaAnp);
        object.setConfig(this.data.filialId, "OBR", "ANPDGera", this.data.aNPDGera);
        object.setConfig(this.data.filialId, "OBR", "ANPExportSrv", this.data.aNPExportSrv);
        object.setConfig(this.data.filialId, "OBR", "ANPDMatrizConsol", this.data.aNPDMatrizConsol);
        this.configuracao
            .save(object)
            .subscribe(function (result) {
            if (result.validationResult != null && !result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                app_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");
            }
        });
    };
    ConfiguracoesAnpFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ConfiguracoesAnpFormComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__["LoteService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] }
    ]; };
    ConfiguracoesAnpFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-configuracoes-anp-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./configuracoes-anp-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/configuracoes-anp/configuracoes-anp-form/configuracoes-anp-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            app_pages_cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_6__["LoteService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"]])
    ], ConfiguracoesAnpFormComponent);
    return ConfiguracoesAnpFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfiguracoesAnpModule", function() { return ConfiguracoesAnpModule; });
/* 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 _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _configuracoes_anp_routing__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./configuracoes-anp.routing */ "./src/app/pages/configuracoes/configuracoes-anp/configuracoes-anp.routing.ts");
/* harmony import */ var _configuracoes_anp_form_configuracoes_anp_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./configuracoes-anp-form/configuracoes-anp-form.component */ "./src/app/pages/configuracoes/configuracoes-anp/configuracoes-anp-form/configuracoes-anp-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 ConfiguracoesAnpModule = /** @class */ (function () {
    function ConfiguracoesAnpModule() {
    }
    ConfiguracoesAnpModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_configuracoes_anp_form_configuracoes_anp_form_component__WEBPACK_IMPORTED_MODULE_4__["ConfiguracoesAnpFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _configuracoes_anp_routing__WEBPACK_IMPORTED_MODULE_3__["ConfiguracoesAnpRouting"]
            ]
        })
    ], ConfiguracoesAnpModule);
    return ConfiguracoesAnpModule;
}());



/***/ }),

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

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



/***/ })

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