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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento-form/agendamento-form.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento-form/agendamento-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\n                    <!-- Capacidade Operacional -->\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"capacOper\">{{'labels.capacidadeOperacionalDoTerminal' | translate}}</label>\n                                <div class=\"input-group input-group-sm\">\n                                    <input id=\"capacOper\" name=\"capacOper\" [(ngModel)]=\"data.capacOper\" type=\"text\"\n                                        class=\"form-control form-control-sm\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: '.', precision: 3 }\"\n                                        maxlength=\"15\">\n                                    <div class=\"input-group-append\">\n                                        <span class=\"input-group-text\">Litros / Hora</span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"capacBraco\">{{'labels.capacidadePorBracoDeCarregamento' |\n                                    translate}}</label>\n                                <div class=\"input-group input-group-sm\">\n                                    <input id=\"capacBraco\" name=\"capacBraco\" [(ngModel)]=\"data.capacBraco\" type=\"text\"\n                                        class=\"form-control form-control-sm\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: '.', precision: 3 }\"\n                                        maxlength=\"9\">\n                                    <div class=\"input-group-append\">\n                                        <span class=\"input-group-text\">Litros / Hora</span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n\n                    <!-- Janelas -->\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"qtdeJanela\">{{'labels.quantidadeDeJanelas' | translate}}</label>\n                                <input id=\"qtdeJanela\" name=\"qtdeJanela\" [(ngModel)]=\"data.qtdeJanela\" type=\"text\"\n                                    class=\"form-control form-control-sm\" currencyMask\n                                    [options]=\"funcoes.optionCurrency(0)\" maxlength=\"15\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"horasJanela\">{{'labels.horasPorJanela' | translate}}</label>\n                                <div class=\"input-group input-group-sm\">\n                                    <input id=\"horasJanela\" name=\"horasJanela\" [(ngModel)]=\"data.horasJanela\"\n                                        type=\"text\" currencyMask [options]=\"funcoes.optionCurrency(0)\" maxlength=\"9\"\n                                        class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n\n                    <!-- Dias Úteis / Capacidade Maior Veículo -->\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"diasUteis\">{{'labels.diasUteisPorMes' | translate}}</label>\n                                <div class=\"input-group input-group-sm\">\n                                    <input id=\"diasUteis\" name=\"diasUteis\" [(ngModel)]=\"data.diasUteis\" type=\"text\"\n                                        currencyMask [options]=\"funcoes.optionCurrency(0)\" maxlength=\"9\"\n                                        class=\"form-control form-control-sm\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"capacMaiorVeic\">{{'labels.capacidadeMaiorVeiculo' | translate}}</label>\n                                <div class=\"input-group input-group-sm\">\n                                    <input id=\"capacMaiorVeic\" name=\"capacMaiorVeic\" [(ngModel)]=\"data.capacMaiorVeic\"\n                                        type=\"text\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: '.', precision: 3 }\"\n                                        maxlength=\"15\" class=\"form-control form-control-sm\">\n                                    <div class=\"input-group-append\">\n                                        <span class=\"input-group-text\">Litros</span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n\n                    <!-- Volume e Intervalos -->\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"volMinCarregado\">{{'labels.volumeMinimoDeCarregamento' | translate}}</label>\n                                <div class=\"input-group input-group-sm\">\n                                    <input id=\"volMinCarregado\" name=\"volMinCarregado\"\n                                        [(ngModel)]=\"data.volMinCarregado\" type=\"text\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: '.', precision: 3 }\"\n                                        maxlength=\"15\" class=\"form-control form-control-sm\">\n                                    <div class=\"input-group-append\">\n                                        <span class=\"input-group-text\">Litros</span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"qtdeHoraPerdaReserv\">{{'labels.quantidadeDeHorasParaPerdaDaReserva' |\n                                    translate}}</label>\n                                <div class=\"input-group input-group-sm\">\n                                    <input id=\"qtdeHoraPerdaReserv\" name=\"qtdeHoraPerdaReserv\"\n                                        [(ngModel)]=\"data.qtdeHoraPerdaReserv\" type=\"text\" currencyMask\n                                        [options]=\"funcoes.optionCurrency(0)\" maxlength=\"9\"\n                                        class=\"form-control form-control-sm\">\n                                    <div class=\"input-group-append\">\n                                        <span class=\"input-group-text\">Horas</span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n\n                    <!-- Intervalo Minutos -->\n                    <div class=\"row mb-3\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"qtdeMinutosIntAgend\">{{'labels.quantidadeDeIntervaloDeMinutosAgendamento' |\n                                    translate}}</label>\n                                <div class=\"input-group input-group-sm\">\n                                    <input id=\"qtdeMinutosIntAgend\" name=\"qtdeMinutosIntAgend\"\n                                        [(ngModel)]=\"data.qtdeMinutosIntAgend\" type=\"text\" currencyMask\n                                        [options]=\"funcoes.optionCurrency(0)\" maxlength=\"9\"\n                                        class=\"form-control form-control-sm\">\n                                    <div class=\"input-group-append\">\n                                        <span class=\"input-group-text\">Minutos</span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n\n                    <!-- === CARD: BAIA DEDICADA === -->\n                    <app-card-container tituloCard=\"baiaDedicada\">\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"capacMax\">{{'labels.capacidadeMaxima' | translate}}</label>\n                                    <div class=\"input-group input-group-sm\">\n                                        <input id=\"capacMax\" name=\"capacMax\" [(ngModel)]=\"data.capacMax\" type=\"text\"\n                                            currencyMask\n                                            [options]=\"{ prefix: '', thousands: '.', decimal: '.', precision: 3 }\"\n                                            maxlength=\"15\" class=\"form-control form-control-sm\">\n                                        <div class=\"input-group-append\">\n                                            <span class=\"input-group-text\">L / H</span>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                        <!-- Produtos -->\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"produto1\" name=\"produto1\" label=\"produto1\"\n                                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.produto1\"\n                                        [inSelected]=\"data.material1\" (outModel)=\"trataMaterial1($event)\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"volProduto1\">{{'labels.volumeProduto1' | translate}}</label>\n                                    <div class=\"input-group input-group-sm\">\n                                        <input id=\"volProduto1\" name=\"volProduto1\" [(ngModel)]=\"data.volProduto1\"\n                                            type=\"text\" currencyMask\n                                            [options]=\"{ prefix: '', thousands: '.', decimal: '.', precision: 3 }\"\n                                            maxlength=\"15\" class=\"form-control form-control-sm\">\n                                        <div class=\"input-group-append\">\n                                            <span class=\"input-group-text\">L / H</span>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"produto2\" name=\"produto2\" label=\"produto2\"\n                                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.produto2\"\n                                        [inSelected]=\"data.material2\" (outModel)=\"trataMaterial2($event)\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"volProduto2\">{{'labels.volumeProduto2' | translate}}</label>\n                                    <div class=\"input-group input-group-sm\">\n                                        <input id=\"volProduto2\" name=\"volProduto2\" [(ngModel)]=\"data.volProduto2\"\n                                            type=\"text\" currencyMask\n                                            [options]=\"{ prefix: '', thousands: '.', decimal: '.', precision: 3 }\"\n                                            maxlength=\"15\" class=\"form-control form-control-sm\">\n                                        <div class=\"input-group-append\">\n                                            <span class=\"input-group-text\">L / H</span>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </app-card-container>\n\n                    <!-- Mensagem -->\n                    <div class=\"row mb-3\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label\n                                    for=\"msgAgendDomeFer\">{{'labels.mensagemParaAgendamentoDomingosEFeriadosNacionais' |\n                                    translate}}</label>\n                                <textarea id=\"msgAgendDomeFer\" name=\"msgAgendDomeFer\" rows=\"2\" maxlength=\"250\"\n                                    [(ngModel)]=\"data.msgAgendDomeFer\" class=\"form-control form-control-sm\"></textarea>\n                            </div>\n                        </div>\n                    </div>\n\n                    <!-- Descarga -->\n                    <app-card-container tituloCard=\"descarga\">\n                        <div class=\"row mb-1\">\n                            <div class=\"col-lg-4\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tmpMedioOperMin\">{{'labels.tempoMedioDeOperacaoMin' |\n                                        translate}}</label>\n                                    <div class=\"input-group input-group-sm\">\n                                        <input id=\"tmpMedioOperMin\" name=\"tmpMedioOperMin\"\n                                            [(ngModel)]=\"data.tmpMedioOperMin\" type=\"text\" currencyMask\n                                            [options]=\"funcoes.optionCurrency(0)\" maxlength=\"9\"\n                                            class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"qtdeHrPerdaReserDesc\">{{'labels.quantidadeHorasPerdaReserva' |\n                                        translate}}</label>\n                                    <div class=\"input-group input-group-sm\">\n                                        <input id=\"qtdeHrPerdaReserDesc\" name=\"qtdeHrPerdaReserDesc\"\n                                            [(ngModel)]=\"data.qtdeHrPerdaReserDesc\" type=\"text\" currencyMask\n                                            [options]=\"funcoes.optionCurrency(0)\" maxlength=\"9\"\n                                            class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"qtdeHrPerdaAgendDesc\">{{'labels.quantidadeHorasPerdaAgenda' |\n                                        translate}}</label>\n                                    <div class=\"input-group input-group-sm\">\n                                        <input id=\"qtdeHrPerdaAgendDesc\" name=\"qtdeHrPerdaAgendDesc\"\n                                            [(ngModel)]=\"data.qtdeHrPerdaAgendDesc\" type=\"text\" currencyMask\n                                            [options]=\"funcoes.optionCurrency(0)\" maxlength=\"9\"\n                                            class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                        <!-- Checkboxes -->\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"obrValTreinamentoC\" name=\"obrValTreinamentoC\"\n                                        [ngModel]=\"data.obrValTreinamentoC === 'S'\"\n                                        (ngModelChange)=\"data.obrValTreinamentoC = $event ? 'S' : 'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                    <label class=\"custom-control-label\" for=\"obrValTreinamentoC\">\n                                        {{'labels.obrigaValidadeTreinamentoCarga' | translate}}\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"custom-control custom-checkbox\">\n                                    <input id=\"obrValTreinamentoD\" name=\"obrValTreinamentoD\"\n                                        [ngModel]=\"data.obrValTreinamentoD === 'S'\"\n                                        (ngModelChange)=\"data.obrValTreinamentoD = $event ? 'S' : 'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                    <label class=\"custom-control-label\" for=\"obrValTreinamentoD\">\n                                        {{'labels.obrigaValidadeTreinamentoDescarga' | translate}}\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                    </app-card-container>\n\n\n                    <!-- Botão salvar -->\n                    <div class=\"row mt-3\">\n                        <div class=\"col-12\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                {{ 'buttons.salvar' | translate }}\n                            </button>\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/especificos/oiltanking/configuracoes/agendamento/agendamento-form/agendamento-form.component.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento-form/agendamento-form.component.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: AgendamentoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoFormComponent", function() { return AgendamentoFormComponent; });
/* 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_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__ = __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_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __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_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.model */ "./src/app/shared/services/funcoes/configuracao/configuracao.model.ts");
/* harmony import */ var _agendamento_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../agendamento.model */ "./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento.model.ts");
/* harmony import */ var _agendamento_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../agendamento.constants */ "./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento.constants.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
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 AgendamentoFormComponent = /** @class */ (function (_super) {
    __extends(AgendamentoFormComponent, _super);
    function AgendamentoFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, funcoes, materialService) {
        var _this = _super.call(this, new _agendamento_constants__WEBPACK_IMPORTED_MODULE_10__["AgendamentoConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.materialService = materialService;
        _this.data = new _agendamento_model__WEBPACK_IMPORTED_MODULE_9__["Agendamento"]();
        _this.mensagens = [];
        _this.constantes = new _agendamento_constants__WEBPACK_IMPORTED_MODULE_10__["AgendamentoConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.capacOper = _this.configuracao.number("REL", "CapacOper");
                _this.data.capacBraco = _this.configuracao.number("REL", "CapacBraco");
                _this.data.qtdeJanela = _this.configuracao.number("REL", "QtdeJanela");
                _this.data.horasJanela = _this.configuracao.number("REL", "HorasJanela");
                _this.data.diasUteis = _this.configuracao.number("REL", "DiasUteis");
                _this.data.capacMaiorVeic = _this.configuracao.number("REL", "CapacMaiorVeic");
                _this.data.volMinCarregado = _this.configuracao.number("REL", "VolMinCarregado");
                _this.data.qtdeHoraPerdaReserv = _this.configuracao.number("REL", "QtdeHoraPerdaReserv");
                _this.data.qtdeMinutosIntAgend = _this.configuracao.number("REL", "QtdeMinutosIntAgend");
                _this.data.capacMax = _this.configuracao.number("REL", "CapacMax");
                _this.data.produto1 = _this.configuracao.string("REL", "Produto1");
                _this.data.volProduto1 = _this.configuracao.number("REL", "VolProduto1");
                _this.data.produto2 = _this.configuracao.string("REL", "Produto2");
                _this.data.volProduto2 = _this.configuracao.number("REL", "VolProduto2");
                _this.data.msgAgendDomeFer = _this.configuracao.string("REL", "MsgAgendDomeFer");
                _this.data.tmpMedioOperMin = _this.configuracao.number("REL", "TmpMedioOperMin");
                _this.data.qtdeHrPerdaReserDesc = _this.configuracao.number("REL", "QtdeHrPerdaReserDesc");
                _this.data.qtdeHrPerdaAgendDesc = _this.configuracao.number("REL", "QtdeHrPerdaAgendDesc");
                _this.data.obrValTreinamentoC = _this.configuracao.string("REL", "ObrValTreinamentoC");
                _this.data.obrValTreinamentoD = _this.configuracao.string("REL", "ObrValTreinamentoD");
                Object(rxjs__WEBPACK_IMPORTED_MODULE_12__["forkJoin"])([
                    _this.materialService.getById(_this.data.produto1),
                    _this.materialService.getById(_this.data.produto2)
                ]).subscribe(function (r) {
                    _this.data.material1 = r[0];
                    _this.data.material2 = r[1];
                });
            }
        };
        return _this;
    }
    AgendamentoFormComponent.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);
    };
    AgendamentoFormComponent.prototype._onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.messageService.confirm('titles.agendamento', 'messages.updateConfigConfirm', null, function () { return _this.onSubmit(); });
        });
    };
    AgendamentoFormComponent.prototype.executaOnSubmit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.messageService.confirm('titles.agendamento', 'messages.updateConfigConfirm', null, function () { return _this.onSubmit(); });
        });
    };
    AgendamentoFormComponent.prototype.onSubmit = function () {
        var _this = this;
        var object = new app_shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_8__["Config"](this.constantes.sisFormularioId);
        object.setConfig(this.data.filialId, "REL", "CapacOper", this.data.capacOper, 'I');
        object.setConfig(this.data.filialId, "REL", "CapacBraco", this.data.capacBraco, 'I');
        object.setConfig(this.data.filialId, "REL", "QtdeJanela", this.data.qtdeJanela, 'I');
        object.setConfig(this.data.filialId, "REL", "HorasJanela", this.data.horasJanela, 'I');
        object.setConfig(this.data.filialId, "REL", "DiasUteis", this.data.diasUteis, 'I');
        object.setConfig(this.data.filialId, "REL", "CapacMaiorVeic", this.data.capacMaiorVeic, 'I');
        object.setConfig(this.data.filialId, "REL", "VolMinCarregado", this.data.volMinCarregado, 'I');
        object.setConfig(this.data.filialId, "REL", "QtdeHoraPerdaReserv", this.data.qtdeHoraPerdaReserv, 'I');
        object.setConfig(this.data.filialId, "REL", "QtdeMinutosIntAgend", this.data.qtdeMinutosIntAgend, 'I');
        object.setConfig(this.data.filialId, "REL", "CapacMax", this.data.capacMax, 'I');
        object.setConfig(this.data.filialId, "REL", "Produto1", this.data.produto1, 'S');
        object.setConfig(this.data.filialId, "REL", "VolProduto1", this.data.volProduto1, 'I');
        object.setConfig(this.data.filialId, "REL", "Produto2", this.data.produto2, 'S');
        object.setConfig(this.data.filialId, "REL", "VolProduto2", this.data.volProduto2, 'I');
        object.setConfig(this.data.filialId, "REL", "MsgAgendDomeFer", this.data.msgAgendDomeFer, 'S');
        object.setConfig(this.data.filialId, "REL", "TmpMedioOperMin", this.data.tmpMedioOperMin, 'I');
        object.setConfig(this.data.filialId, "REL", "QtdeHrPerdaReserDesc", this.data.qtdeHrPerdaReserDesc, 'I');
        object.setConfig(this.data.filialId, "REL", "QtdeHrPerdaAgendDesc", this.data.qtdeHrPerdaAgendDesc, 'I');
        object.setConfig(this.data.filialId, "REL", "ObrValTreinamentoC", this.data.obrValTreinamentoC, 'S');
        object.setConfig(this.data.filialId, "REL", "ObrValTreinamentoD", this.data.obrValTreinamentoD, 'S');
        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_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.agendamento", "messages.configuracaoDe");
            }
        });
    };
    AgendamentoFormComponent.prototype.trataMaterial1 = function (material) {
        this.data.material1 = material;
    };
    AgendamentoFormComponent.prototype.trataMaterial2 = function (material) {
        this.data.material2 = material;
    };
    AgendamentoFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    AgendamentoFormComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_11__["MaterialService"] }
    ]; };
    AgendamentoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-agendamento-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./agendamento-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento-form/agendamento-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_2__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_11__["MaterialService"]])
    ], AgendamentoFormComponent);
    return AgendamentoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoConstants", function() { return AgendamentoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AgendamentoConstants = /** @class */ (function () {
    function AgendamentoConstants() {
        this.sisFormularioId = 375437;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.pemissoes" },
        ];
        this.configuracoes = [];
        this.nomeForm = "titles.agendamento";
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "REL",
                parametros: [
                    "CapacOper",
                    "CapacBraco",
                    "QtdeJanela",
                    "HorasJanela",
                    "DiasUteis",
                    "CapacMaiorVeic",
                    "VolMinCarregado",
                    "QtdeHoraPerdaReserv",
                    "QtdeMinutosIntAgend",
                    "CapacMax",
                    "Produto1",
                    "VolProduto1",
                    "Produto2",
                    "VolProduto2",
                    "MsgAgendDomeFer",
                    "TmpMedioOperMin",
                    "QtdeHrPerdaReserDesc",
                    "QtdeHrPerdaAgendDesc",
                    "ObrValTreinamentoC",
                    "ObrValTreinamentoD"
                ]
            }
        ];
    }
    return AgendamentoConstants;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Agendamento", function() { return Agendamento; });
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var Agendamento = /** @class */ (function () {
    function Agendamento() {
        this.capacOper = 0;
        this.capacBraco = 0;
        this.qtdeJanela = 0;
        this.horasJanela = 0;
        this.diasUteis = 0;
        this.capacMaiorVeic = 0;
        this.volMinCarregado = 0;
        this.qtdeHoraPerdaReserv = 0;
        this.qtdeMinutosIntAgend = 0;
        this.capacMax = 0;
        this.produto1 = '';
        this.volProduto1 = 0;
        this.produto2 = '';
        this.volProduto2 = 0;
        this.msgAgendDomeFer = '';
        this.tmpMedioOperMin = 0;
        this.qtdeHrPerdaReserDesc = 0;
        this.qtdeHrPerdaAgendDesc = 0;
        this.obrValTreinamentoC = 'N';
        this.obrValTreinamentoD = 'N';
        this.material1 = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__["Material"]();
        this.material2 = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__["Material"]();
    }
    return Agendamento;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento.module.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento.module.ts ***!
  \**********************************************************************************************/
/*! exports provided: AgendamentoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoModule", function() { return AgendamentoModule; });
/* 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 app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _agendamento_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./agendamento.routing.module */ "./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento.routing.module.ts");
/* harmony import */ var _agendamento_form_agendamento_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./agendamento-form/agendamento-form.component */ "./src/app/pages/especificos/oiltanking/configuracoes/agendamento/agendamento-form/agendamento-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 AgendamentoModule = /** @class */ (function () {
    function AgendamentoModule() {
    }
    AgendamentoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_agendamento_form_agendamento_form_component__WEBPACK_IMPORTED_MODULE_4__["AgendamentoFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _agendamento_routing_module__WEBPACK_IMPORTED_MODULE_3__["AgendamentoRoutingModule"]
            ]
        })
    ], AgendamentoModule);
    return AgendamentoModule;
}());



/***/ }),

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

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



/***/ })

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