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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/configuracoes/smart/smart-form/smart-form.component.html":
/*!****************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/configuracoes/smart/smart-form/smart-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\" [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                    <fieldset>\n                        <legend>{{ \"labels.agendamento\" | translate }}</legend>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tolerChegadaPatio\">{{ 'labels.toleranciaChegadaPatioMin' |\n                                        translate}}</label>\n                                    <input id=\"tolerChegadaPatio\" name=\"tolerChegadaPatio\"\n                                        [(ngModel)]=\"data.tolerChegadaPatio\" class=\"form-control form-control-sm\"\n                                        currencyMask [options]=\"funcoesService.numberUtils.formatCurrency(0)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tolerAtrasoPatio\">{{ 'labels.toleranciaSaidaPatioMin' |\n                                        translate}}</label>\n                                    <input id=\"tolerAtrasoPatio\" name=\"tolerAtrasoPatio\"\n                                        [(ngModel)]=\"data.tolerAtrasoPatio\" class=\"form-control form-control-sm\"\n                                        currencyMask [options]=\"funcoesService.numberUtils.formatCurrency(0)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tempoMinPregate\">{{ 'labels.tempoMinimoPreGate' | translate}}</label>\n                                    <input id=\"tempoMinPregate\" name=\"tempoMinPregate\"\n                                        [(ngModel)]=\"data.tempoMinPregate\" class=\"form-control form-control-sm\"\n                                        currencyMask [options]=\"funcoesService.numberUtils.formatCurrency(0)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tempoMaxPregate\">{{ 'labels.tempoMaximoPreGate' | translate}}</label>\n                                    <input id=\"tempoMaxPregate\" name=\"tempoMaxPregate\"\n                                        [(ngModel)]=\"data.tempoMaxPregate\" class=\"form-control form-control-sm\"\n                                        currencyMask [options]=\"funcoesService.numberUtils.formatCurrency(0)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"maxVeiInspPesagem\">{{ 'labels.qteMaxVeiculosParaInspecaoPesagem' |\n                                        translate}}</label>\n                                    <input id=\"maxVeiInspPesagem\" name=\"maxVeiInspPesagem\"\n                                        [(ngModel)]=\"data.maxVeiInspPesagem\" class=\"form-control form-control-sm\"\n                                        currencyMask [options]=\"funcoesService.numberUtils.formatCurrency(0)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"custom-control custom-checkbox mt-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <input id=\"valPBTAgendVeic\" name=\"valPBTAgendVeic\"\n                                            [ngModel]=\"data.valPBTAgendVeic === 'S'\"\n                                            (ngModelChange)=\"data.valPBTAgendVeic = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                        <label class=\"custom-control-label\" for=\"valPBTAgendVeic\">{{\n                                            'labels.validaPBTAgendamentoVeiculos' | translate }}</label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"custom-control custom-checkbox mt-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <input id=\"valPBTAgendVeic\" name=\"valPBTAgendVeic\"\n                                            [ngModel]=\"data.valPBTAgendVeic === 'S'\"\n                                            (ngModelChange)=\"data.valPBTAgendVeic = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                        <label class=\"custom-control-label\" for=\"valPBTAgendVeic\">{{\n                                            'labels.NaoPermiteAgendamentoComExcesso' | translate }}</label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"custom-control custom-checkbox mt-2\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <input id=\"valSaldoFisCheckin\" name=\"valSaldoFisCheckin\"\n                                            [ngModel]=\"data.valSaldoFisCheckin === 'S'\"\n                                            (ngModelChange)=\"data.valSaldoFisCheckin = $event ? 'S' : 'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                        <label class=\"custom-control-label\" for=\"valSaldoFisCheckin\">{{\n                                            'labels.validaSaldoFisicoCheckin' | translate }}</label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-5 col-md-5 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <input id=\"flagAberJanAge\" name=\"flagAberJanAge\"\n                                                [ngModel]=\"data.flagAberJanAge === 'S'\"\n                                                (ngModelChange)=\"data.flagAberJanAge = $event ? 'S' : 'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                            <label class=\"custom-control-label\" for=\"flagAberJanAge\">{{\n                                                'labels.aberturaJanelasApartirDas' | translate }}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-1 col-md-1\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"horaAberJanAge\">{{ 'labels.horaSmart' | translate}}</label>\n                                    <input id=\"horaAberJanAge\" name=\"horaAberJanAge\" [(ngModel)]=\"data.horaAberJanAge\"\n                                        class=\"form-control form-control-sm\" [dropSpecialCharacters]=\"false\"\n                                        mask=\"00:00\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <input id=\"inspCheckList\" name=\"inspCheckList\"\n                                                [ngModel]=\"data.inspCheckList === 'S'\"\n                                                (ngModelChange)=\"data.inspCheckList = $event ? 'S' : 'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                            <label class=\"custom-control-label\" for=\"inspCheckList\">{{\n                                                'labels.InspecaooDeCheckListCada' | translate }}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-2 col-md-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"maxVeiInspCheckList\">{{ 'labels.veiculosNoMaximo' | translate}}</label>\n                                    <input id=\"maxVeiInspCheckList\" name=\"maxVeiInspCheckList\"\n                                        [(ngModel)]=\"data.maxVeiInspCheckList\" class=\"form-control form-control-sm\"\n                                        currencyMask [options]=\"funcoesService.numberUtils.formatCurrency(0)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"msgTanqueBloq\">{{ 'labels.mensagemTanqueBloqueado' | translate}}</label>\n                                    <input maxlength=\"100\" id=\"msgTanqueBloq\" name=\"msgTanqueBloq\"\n                                        [(ngModel)]=\"data.msgTanqueBloq\" class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"msgOsPendente\">{{ 'labels.mensagemOsComPedendencia' |\n                                        translate}}</label>\n                                    <input maxlength=\"100\" id=\"msgOsPendente\" name=\"msgOsPendente\"\n                                        [(ngModel)]=\"data.msgOsPendente\" class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"motivoSuspensao\">{{\"labels.motivoParaSuspensaoOs\" | translate }}</label>\n                                    <app-combo-padrao name=\"motivoSuspensao\" id=\"motivoSuspensao\" #motivoSuspensao\n                                        chave=\"RegMotivo\" descricao=\"DescrMotivo\" ativo=\"true\"\n                                        tabela=\"CliVopMotivoSuspensaoOs\" [required]=\"true\"\n                                        [(ngModel)]=\"data.motSuspOsAuto\">\n                                    </app-combo-padrao>\n                                </div>\n                            </div>\n                        </div>\n                    </fieldset>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <fieldset>\n                        <legend>{{ \"labels.envioDeEmailDocVeiculos\" | translate }}</legend>\n                        <div class=\"row\">\n                            <div class=\"col-lg-2 col-md-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"diasVenctoDocto\">{{ 'labels.diasVencimento' | translate}}</label>\n                                    <input id=\"diasVenctoDocto\" name=\"diasVenctoDocto\"\n                                        [(ngModel)]=\"data.diasVenctoDocto\" class=\"form-control form-control-sm\"\n                                        currencyMask [options]=\"funcoesService.numberUtils.formatCurrency(0)\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tipo\">{{ 'labels.configuracaoDeEnvio' | translate }}</label>\n                                    <select class=\"form-control\" name=\"tipo\" id=\"tipo\" [(ngModel)]=\"data.tipoEnvioDocto\"\n                                        (change)=\"selecionarTipo($event.target.value)\">\n                                        <option *ngFor=\"let tipo of tipos\" [value]=\"tipo.value\">{{ tipo.label }}\n                                        </option>\n                                    </select>\n                                </div>\n                            </div>\n                        </div>\n\n                        <!-- <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tipo\">{{'labels.configuracaoDeEnvio'|translate}}</label>\n                                    <select (change)=\"selecionarTipo($event.target.value)\" class=\"form-control\" id=\"tipo\">\n                                        <option value=\"0\">Uma Vez por Dia</option>\n                                        <option value=\"1\">Uma Vez antes de Vencer e Uma Depois</option>\n                                        <option value=\"2\">Somente Vencidos</option>\n                                    </select>\n                                </div>\n                            </div>\n                        </div> -->\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"emailPadraoDocto\">{{ 'labels.emailPadrao' | translate}}</label>\n                                    <input maxlength=\"100\" id=\"emailPadraoDocto\" name=\"emailPadraoDocto\"\n                                        [(ngModel)]=\"data.emailPadraoDocto\" class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"emailCopiaDocto\">{{ 'labels.emailCopia' | translate}}</label>\n                                    <input maxlength=\"100\" id=\"emailCopiaDocto\" name=\"emailCopiaDocto\"\n                                        [(ngModel)]=\"data.emailCopiaDocto\" class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                        </div>\n                    </fieldset>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-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<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmartFormComponent", function() { return SmartFormComponent; });
/* 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_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _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_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../pages/login/login.service */ "./src/app/pages/login/login.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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __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_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/configuracao/configuracao.model */ "./src/app/shared/services/funcoes/configuracao/configuracao.model.ts");
/* harmony import */ var _smart_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../smart.model */ "./src/app/pages/especificos/vopak/configuracoes/smart/smart.model.ts");
/* harmony import */ var _smart_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../smart.constants */ "./src/app/pages/especificos/vopak/configuracoes/smart/smart.constants.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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 SmartFormComponent = /** @class */ (function (_super) {
    __extends(SmartFormComponent, _super);
    function SmartFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, funcoes) {
        var _this = _super.call(this, new _smart_constants__WEBPACK_IMPORTED_MODULE_10__["SmartConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.data = new _smart_model__WEBPACK_IMPORTED_MODULE_9__["Smart"]();
        _this.mensagens = [];
        _this.constantes = new _smart_constants__WEBPACK_IMPORTED_MODULE_10__["SmartConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_11__["Mascaras"]();
        _this.tipos = [
            { value: 0, label: 'Uma Vez por Dia' },
            { value: 1, label: 'Uma Vez antes de Vencer e Uma Depois' },
            { value: 2, label: 'Somente Vencidos' }
        ];
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.tolerChegadaPatio = _this.configuracao.number("REL", "TolerChegadaPatio");
                _this.data.tolerAtrasoPatio = _this.configuracao.number("REL", "TolerAtrasoPatio");
                _this.data.tempoMinPregate = _this.configuracao.number("REL", "TempoMinPregate");
                _this.data.tempoMaxPregate = _this.configuracao.number("REL", "TempoMaxPregate");
                _this.data.maxVeiInspPesagem = _this.configuracao.number("REL", "MaxVeiInspPesagem");
                _this.data.valPBTAgendVeic = _this.configuracao.string("REL", "ValPBTAgendVeic");
                _this.data.bloqAgendEstPBT = _this.configuracao.string("REL", "BloqAgendEstPBT");
                _this.data.valSaldoFisCheckin = _this.configuracao.string("REL", "ValSaldoFisCheckin");
                _this.data.flagAberJanAge = _this.configuracao.string("REL", "FlagAberJanAge");
                _this.data.horaAberJanAge = _this.configuracao.string("REL", "HoraAberJanAge");
                _this.data.inspCheckList = _this.configuracao.string("REL", "InspCheckList");
                _this.data.maxVeiInspCheckList = _this.configuracao.number("REL", "MaxVeiInspCheckList");
                _this.data.msgTanqueBloq = _this.configuracao.string("REL", "MsgTanqueBloq");
                _this.data.msgOsPendente = _this.configuracao.string("REL", "MsgOsPendente");
                _this.data.motSuspOsAuto = _this.configuracao.string("REL", "MotSuspOsAuto");
                _this.data.diasVenctoDocto = _this.configuracao.number("REL", "DiasVenctoDocto");
                _this.data.tipoEnvioDocto = _this.configuracao.number("REL", "TipoEnvioDocto");
                _this.data.emailPadraoDocto = _this.configuracao.string("REL", "EmailPadraoDocto");
                _this.data.emailCopiaDocto = _this.configuracao.string("REL", "EmailCopiaDocto");
                _this.carregarConfiguracao(_this.data.tipoEnvioDocto);
            }
        };
        return _this;
    }
    SmartFormComponent.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);
    };
    SmartFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        var object = new _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_8__["Config"](this.constantes.sisFormularioId);
        object.setConfig(this.data.filialId, 'REL', 'TolerChegadaPatio', this.data.tolerChegadaPatio, 'I');
        object.setConfig(this.data.filialId, 'REL', 'TolerAtrasoPatio', this.data.tolerAtrasoPatio, 'I');
        object.setConfig(this.data.filialId, 'REL', 'TempoMinPregate', this.data.tempoMinPregate, 'I');
        object.setConfig(this.data.filialId, 'REL', 'TempoMaxPregate', this.data.tempoMaxPregate, 'I');
        object.setConfig(this.data.filialId, 'REL', 'MaxVeiInspPesagem', this.data.maxVeiInspPesagem, 'I');
        object.setConfig(this.data.filialId, 'REL', 'ValPBTAgendVeic', this.data.valPBTAgendVeic, 'S');
        object.setConfig(this.data.filialId, 'REL', 'BloqAgendEstPBT', this.data.bloqAgendEstPBT, 'S');
        object.setConfig(this.data.filialId, 'REL', 'ValSaldoFisCheckin', this.data.valSaldoFisCheckin, 'S');
        object.setConfig(this.data.filialId, 'REL', 'FlagAberJanAge', this.data.flagAberJanAge, 'S');
        object.setConfig(this.data.filialId, 'REL', 'HoraAberJanAge', this.data.horaAberJanAge, 'S');
        object.setConfig(this.data.filialId, 'REL', 'InspCheckList', this.data.inspCheckList, 'S');
        object.setConfig(this.data.filialId, 'REL', 'MaxVeiInspCheckList', this.data.maxVeiInspCheckList, 'I');
        object.setConfig(this.data.filialId, 'REL', 'MsgTanqueBloq', this.data.msgTanqueBloq, 'S');
        object.setConfig(this.data.filialId, 'REL', 'MsgOsPendente', this.data.msgOsPendente, 'S');
        object.setConfig(this.data.filialId, 'REL', 'MotSuspOsAuto', this.data.motSuspOsAuto, 'S');
        object.setConfig(this.data.filialId, 'REL', 'DiasVenctoDocto', this.data.diasVenctoDocto, 'I');
        object.setConfig(this.data.filialId, 'REL', 'TipoEnvioDocto', this.data.tipoEnvioDocto, 'I');
        object.setConfig(this.data.filialId, 'REL', 'EmailPadraoDocto', this.data.emailPadraoDocto, 'S');
        object.setConfig(this.data.filialId, 'REL', 'EmailCopiaDocto', this.data.emailCopiaDocto, 'S');
        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_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.Smart", "messages.configuracaoDe");
            }
        });
    };
    SmartFormComponent.prototype.carregarConfiguracao = function (valueDoc) {
        this.data.tipoEnvioDocto = valueDoc;
    };
    SmartFormComponent.prototype.selecionarTipo = function (valueDoc) {
        this.data.tipoEnvioDocto = valueDoc;
    };
    SmartFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    SmartFormComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    SmartFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-smart-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./smart-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/configuracoes/smart/smart-form/smart-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], SmartFormComponent);
    return SmartFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/configuracoes/smart/smart.constants.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/configuracoes/smart/smart.constants.ts ***!
  \********************************************************************************/
/*! exports provided: SmartConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmartConstants", function() { return SmartConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SmartConstants = /** @class */ (function () {
    function SmartConstants() {
        this.sisFormularioId = 375198;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.pemissoes" },
        ];
        this.configuracoes = [];
        this.nomeForm = "titles.smart";
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "REL",
                parametros: [
                    "TolerChegadaPatio",
                    "TolerAtrasoPatio",
                    "TempoMinPregate",
                    "TempoMaxPregate",
                    "MaxVeiInspPesagem",
                    "ValPBTAgendVeic",
                    "BloqAgendEstPBT",
                    "ValSaldoFisCheckin",
                    "FlagAberJanAge",
                    "HoraAberJanAge",
                    "InspCheckList",
                    "MaxVeiInspCheckList",
                    "MsgTanqueBloq",
                    "MsgOsPendente",
                    "MotSuspOsAuto",
                    "DiasVenctoDocto",
                    "TipoEnvioDocto",
                    "EmailPadraoDocto",
                    "EmailCopiaDocto"
                ]
            }
        ];
    }
    return SmartConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/configuracoes/smart/smart.model.ts":
/*!****************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/configuracoes/smart/smart.model.ts ***!
  \****************************************************************************/
/*! exports provided: Smart */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/especificos/vopak/configuracoes/smart/smart.module.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/configuracoes/smart/smart.module.ts ***!
  \*****************************************************************************/
/*! exports provided: SmartModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmartModule", function() { return SmartModule; });
/* 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 _smart_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./smart.routing.module */ "./src/app/pages/especificos/vopak/configuracoes/smart/smart.routing.module.ts");
/* harmony import */ var _smart_form_smart_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./smart-form/smart-form.component */ "./src/app/pages/especificos/vopak/configuracoes/smart/smart-form/smart-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 SmartModule = /** @class */ (function () {
    function SmartModule() {
    }
    SmartModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_smart_form_smart_form_component__WEBPACK_IMPORTED_MODULE_4__["SmartFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _smart_routing_module__WEBPACK_IMPORTED_MODULE_3__["SmartRoutingModule"]
            ]
        })
    ], SmartModule);
    return SmartModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/configuracoes/smart/smart.routing.module.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/configuracoes/smart/smart.routing.module.ts ***!
  \*************************************************************************************/
/*! exports provided: SmartRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SmartRoutingModule", function() { return SmartRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _smart_form_smart_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./smart-form/smart-form.component */ "./src/app/pages/especificos/vopak/configuracoes/smart/smart-form/smart-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: _smart_form_smart_form_component__WEBPACK_IMPORTED_MODULE_3__["SmartFormComponent"],
        data: { breadcrumb: "smart", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    }
];
var SmartRoutingModule = /** @class */ (function () {
    function SmartRoutingModule() {
    }
    SmartRoutingModule = __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"]]
        })
    ], SmartRoutingModule);
    return SmartRoutingModule;
}());



/***/ })

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