(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-oiltanking-cadastros-tanque-planeja-descarga-tanque-planeja-descarga-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga-form/tanque-planeja-descarga-form.component.html":
/*!***********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga-form/tanque-planeja-descarga-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\" [formAction]=\"actionForm\" [itemData]=\"data.itens\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-form-legenda></app-form-legenda>\n    <div class=\"card-body widget-body\">\n        <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n            <app-validacoes></app-validacoes>\n            <div class=\"row\">\n                <div class=\"col-12 mt-4\">\n                    <div class=\"row\">\n                        <div class=\"col-8\">\n                            <label> {{'labels.produto' | translate}} </label>\n                        </div>\n                        <div class=\"col-4\">\n                            <label> {{'labels.tanque' | translate}} </label>\n                        </div>\n                    </div>\n                    <div class=\"row\" *ngFor=\"let item of produtosTanques; let i = index\">\n                        <div class=\"col-8 form-group\">\n                            <input class=\"form-control\" type=\"text\" [value]=\"item.produto\" readonly disabled\n                                [name]=\"'produto-' + i\">\n                        </div>\n                        <div class=\"col-4 form-group\">\n                            <select class=\"form-control\" [(ngModel)]=\"item.tanque\" [name]=\"'tanque-' + i\"\n                                [disabled]=\"!camposHabilitados\">\n                                <option *ngFor=\"let tanqueOpcao of opcoesTanques\" [value]=\"tanqueOpcao\">\n                                    {{ tanqueOpcao }}\n                                </option>\n                            </select>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row mt-4\">\n                <div class=\"col-12\">\n                    <div class=\"form-group\">\n                        <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"!camposHabilitados\">\n                            {{ 'buttons.salvar' | translate }}\n                        </button>\n                        <button type=\"button\" class=\"btn btn-default\" (click)=\"onCancelar()\"\n                            [disabled]=\"!camposHabilitados\">\n                            {{ 'buttons.cancelar' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga-form/tanque-planeja-descarga-form.component.ts":
/*!*******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga-form/tanque-planeja-descarga-form.component.ts ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: TanquePlanejaDescargaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TanquePlanejaDescargaFormComponent", function() { return TanquePlanejaDescargaFormComponent; });
/* 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_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_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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _tanque_planeja_descarga_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tanque-planeja-descarga.model */ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.model.ts");
/* harmony import */ var _tanque_planeja_descarga_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tanque-planeja-descarga.constants */ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.constants.ts");
/* harmony import */ var _tanque_planeja_descarga_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tanque-planeja-descarga.service */ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __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 TanquePlanejaDescargaFormComponent = /** @class */ (function (_super) {
    __extends(TanquePlanejaDescargaFormComponent, _super);
    function TanquePlanejaDescargaFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _tanque_planeja_descarga_constants__WEBPACK_IMPORTED_MODULE_8__["TanquePlanejaDescargaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _tanque_planeja_descarga_model__WEBPACK_IMPORTED_MODULE_7__["TanquePlanejaDescarga"]();
        _this.listaDeItens = [];
        _this.produtosTanques = [];
        _this.opcoesTanques = [];
        _this.mensagens = [];
        _this.camposHabilitados = false;
        _this.constantes = new _tanque_planeja_descarga_constants__WEBPACK_IMPORTED_MODULE_8__["TanquePlanejaDescargaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/oiltanking/cadastros/tanquePlanejaDescarga";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TanquePlanejaDescargaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.camposHabilitados = false;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotinaIdx([1, 2], this.actionForm), function () {
            _this.carregarDados();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    TanquePlanejaDescargaFormComponent.prototype.carregarDados = function () {
        var _this = this;
        this.produtosTanques = [];
        if (!this.loginService.isTokenExpired()) {
            Object(rxjs__WEBPACK_IMPORTED_MODULE_11__["forkJoin"])({
                comboTanques: this.service.getComboTanques(),
                itens: this.service._get()
            }).subscribe(function (results) {
                _this.opcoesTanques = results.comboTanques;
                var itensRecebidos = results.itens;
                var listaDeItensFormatada = [];
                for (var i = 1; i <= 8; i++) {
                    var materialKey = "material0" + i;
                    var tanqueKey = "tqProd0" + i;
                    var codigoKey = "materialId0" + i;
                    var novoItem = {
                        materialId: itensRecebidos[codigoKey] || null,
                        produto: itensRecebidos[materialKey] || '',
                        tanque: itensRecebidos[tanqueKey] || null
                    };
                    listaDeItensFormatada.push(novoItem);
                }
                _this.produtosTanques = listaDeItensFormatada;
            });
        }
    };
    TanquePlanejaDescargaFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.service
            ._save(this.produtosTanques)
            .subscribe(function (validation) {
            _this.mensagens = _this.messageService.validationResult(validation);
            if (!validation.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.tanquePlanejaDescarga");
                _this.camposHabilitados = false;
                _this.refresh();
            }
        });
    };
    TanquePlanejaDescargaFormComponent.prototype.refresh = function () {
        this.carregarDados();
    };
    TanquePlanejaDescargaFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.camposHabilitados = true;
        });
    };
    TanquePlanejaDescargaFormComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.print.call(_this, null, true);
        });
    };
    TanquePlanejaDescargaFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TanquePlanejaDescargaFormComponent.prototype.onCancelar = function () {
        this.camposHabilitados = false;
        this.refresh();
    };
    TanquePlanejaDescargaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _tanque_planeja_descarga_service__WEBPACK_IMPORTED_MODULE_9__["TanquePlanejaDescargaService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] }
    ]; };
    TanquePlanejaDescargaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-tanque-planeja-descarga-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tanque-planeja-descarga-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga-form/tanque-planeja-descarga-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _tanque_planeja_descarga_service__WEBPACK_IMPORTED_MODULE_9__["TanquePlanejaDescargaService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"]])
    ], TanquePlanejaDescargaFormComponent);
    return TanquePlanejaDescargaFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.constants.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.constants.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: TanquePlanejaDescargaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TanquePlanejaDescargaConstants", function() { return TanquePlanejaDescargaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TanquePlanejaDescargaConstants = /** @class */ (function () {
    function TanquePlanejaDescargaConstants() {
        this.sisFormularioId = 140152;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.tanquePlanejaDescarga";
        this.reportId = "OIL0006";
        this.reportTitulo = { "titulo": "Planejamento de Tanques - Descarga", "subTitulo": "" };
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return TanquePlanejaDescargaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.model.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.model.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: TanquePlanejaDescarga, ProdutoTanque */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TanquePlanejaDescarga", function() { return TanquePlanejaDescarga; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProdutoTanque", function() { return ProdutoTanque; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/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 TanquePlanejaDescarga = /** @class */ (function (_super) {
    __extends(TanquePlanejaDescarga, _super);
    function TanquePlanejaDescarga() {
        var _this = _super.call(this) || this;
        _this.itens = [];
        return _this;
    }
    return TanquePlanejaDescarga;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.module.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.module.ts ***!
  \******************************************************************************************************************/
/*! exports provided: TanquePlanejaDescargaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TanquePlanejaDescargaModule", function() { return TanquePlanejaDescargaModule; });
/* 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_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _tanque_planeja_descarga_form_tanque_planeja_descarga_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tanque-planeja-descarga-form/tanque-planeja-descarga-form.component */ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga-form/tanque-planeja-descarga-form.component.ts");
/* harmony import */ var _tanque_planeja_descarga_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tanque-planeja-descarga.routing.module */ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.routing.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var TanquePlanejaDescargaModule = /** @class */ (function () {
    function TanquePlanejaDescargaModule() {
    }
    TanquePlanejaDescargaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _tanque_planeja_descarga_form_tanque_planeja_descarga_form_component__WEBPACK_IMPORTED_MODULE_2__["TanquePlanejaDescargaFormComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _tanque_planeja_descarga_routing_module__WEBPACK_IMPORTED_MODULE_3__["TanquePlanejaDescargaRoutingModule"]
            ]
        })
    ], TanquePlanejaDescargaModule);
    return TanquePlanejaDescargaModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.routing.module.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.routing.module.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: TanquePlanejaDescargaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TanquePlanejaDescargaRoutingModule", function() { return TanquePlanejaDescargaRoutingModule; });
/* 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 _tanque_planeja_descarga_form_tanque_planeja_descarga_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tanque-planeja-descarga-form/tanque-planeja-descarga-form.component */ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga-form/tanque-planeja-descarga-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 TanquePlanejaDescargaRoutes = [
    {
        path: "",
        component: _tanque_planeja_descarga_form_tanque_planeja_descarga_form_component__WEBPACK_IMPORTED_MODULE_3__["TanquePlanejaDescargaFormComponent"],
        data: {
            breadcrumb: "tanquePlanejaDescarga",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var TanquePlanejaDescargaRoutingModule = /** @class */ (function () {
    function TanquePlanejaDescargaRoutingModule() {
    }
    TanquePlanejaDescargaRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(TanquePlanejaDescargaRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], TanquePlanejaDescargaRoutingModule);
    return TanquePlanejaDescargaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.service.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.service.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: TanquePlanejaDescargaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TanquePlanejaDescargaService", function() { return TanquePlanejaDescargaService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _tanque_planeja_descarga_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tanque-planeja-descarga.constants */ "./src/app/pages/especificos/oiltanking/cadastros/tanque-planeja-descarga/tanque-planeja-descarga.constants.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 TanquePlanejaDescargaService = /** @class */ (function (_super) {
    __extends(TanquePlanejaDescargaService, _super);
    function TanquePlanejaDescargaService(http) {
        var _this = _super.call(this, http, "oiltanking/cliOilTanquePlanejaDescarga") || this;
        _this.http = http;
        _this.constantes = new _tanque_planeja_descarga_constants__WEBPACK_IMPORTED_MODULE_6__["TanquePlanejaDescargaConstants"]();
        return _this;
    }
    TanquePlanejaDescargaService.prototype._get = function () {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/oiltanking/cliOilTanquePlanejaDescarga")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    TanquePlanejaDescargaService.prototype.getComboTanques = function () {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/oiltanking/cliOilTanquePlanejaDescarga/getOpcoesTanques")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    TanquePlanejaDescargaService.prototype._save = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/oiltanking/cliOilTanquePlanejaDescarga", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    TanquePlanejaDescargaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    TanquePlanejaDescargaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], TanquePlanejaDescargaService);
    return TanquePlanejaDescargaService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-oiltanking-cadastros-tanque-planeja-descarga-tanque-planeja-descarga-module.js.map