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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-form/plataforma-form.component.html":
/*!********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-form/plataforma-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.plataformaId\"\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            <div class=\"clearfix\">\n                <ul class=\"nav nav-tabs \">\n                </ul>\n            </div>\n            <div class=\"tab-content top\">\n                <div class=\"tab-pane active show\" id=\"ge\">\n                    <div class=\"clearfix\">\n                        <ul class=\"nav nav-tabs \">\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\"labels.dados\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#de\">{{\"labels.deposito\" | translate}}</a>\n                            </li>\n                        </ul>\n                    </div>\n                    <div class=\"tab-content top\">\n                        <div class=\"tab-pane active show\" id=\"da\">\n                            <!-- ABA DADOS -->\n                            <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                                <app-validacoes></app-validacoes>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-2 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codigo\" class=\"required\">{{'labels.codigo' | translate}}</label>\n                                            <input id=\"codigo\" name=\"codigo\" [(ngModel)]=\"data.plataformaId\"\n                                                class=\"form-control form-control-sm\" type=\"text\" maxlength=\"5\"\n                                                [disabled]=\"!funcoesService.isCreate(actionForm)\" required autofocus\n                                                (blur)=\"validarCampo('plataformaId', data.plataformaId)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descrPlataforma\" class=\"required\">{{'labels.descricao' |\n                                                translate}}</label>\n                                            <input id=\"descrPlataforma\" name=\"descrPlataforma\"\n                                                [(ngModel)]=\"data.descrPlataforma\" maxlength=\"30\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                data-title=\"{{'labels.descricao' | translate}}\" required\n                                                (blur)=\"validarCampo('descrPlataforma', data.descrPlataforma)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"cadLocalizacaoPlataformaId\">{{\"labels.localizacao\" |\n                                                translate}}</label>\n                                            <app-combo-padrao id=\"cadLocalizacaoPlataformaId\"\n                                                name=\"cadLocalizacaoPlataformaId\" tabela=\"CadLocalizacaoPlataforma\"\n                                                chave=\"Registro\" descricao=\"Descricao\" ativo=\"true\"\n                                                [(ngModel)]=\"data.cadLocalizacaoPlataformaId\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoAutomacao\">{{'labels.tipoAutomacao' |\n                                                translate}}</label>\n                                            <select id=\"tipoAutomacao\" name=\"tipoAutomacao\"\n                                                [(ngModel)]=\"data.tipoAutomacao\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                maxlength=\"1\" data-title=\"{{'labels.tipoAutomacao' | translate}}\">\n                                                <option value=\"\">Selecione</option>\n                                                <option value=\"1\">Medidor Massico</option>\n                                                <option value=\"2\">Medidor Volumétrico</option>\n                                                <option value=\"3\">Manual</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row mt-4\">\n                                    <div class=\"col-sm-12\">\n                                        <app-card-container tituloCard=\"bicosOperacao\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"baia1Carga\">{{\"labels.baia1Carga\" |\n                                                            translate}}</label>\n                                                        <input id=\"baia1Carga\" name=\"baia1Carga\"\n                                                            [(ngModel)]=\"data.baia1Carga\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"4\" />\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"baia1Descarga\">{{\"labels.baia1Descarga\" |\n                                                            translate}}</label>\n                                                        <input id=\"baia1Descarga\" name=\"baia1Descarga\"\n                                                            [(ngModel)]=\"data.baia1Descarga\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"4\" />\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"codigoB1\">{{\"labels.codigo\" | translate}}</label>\n                                                        <input id=\"codigoB1\" name=\"codigoB1\"\n                                                            [(ngModel)]=\"data.baia1Codigo\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"15\" />\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"tipoOperacaoB1\">{{'labels.tipoOperacao' |\n                                                            translate}}</label>\n                                                        <select id=\"tipoOperacaoB1\" name=\"tipoOperacaoB1\"\n                                                            [(ngModel)]=\"data.baia1TipoOperacao\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"1\"\n                                                            data-title=\"{{'labels.tipoOperacaoB1' | translate}}\">\n                                                            <option value=\"\">{{ 'labels.selecione' | translate}}\n                                                            </option>\n                                                            <option value=\"0\">{{ 'labels.manual' | translate}}</option>\n                                                            <option value=\"1\">{{ 'labels.automatico' | translate}}\n                                                            </option>\n                                                        </select>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"baia2Carga\">{{\"labels.baia2Carga\" |\n                                                            translate}}</label>\n                                                        <input id=\"baia2Carga\" name=\"baia2Carga\"\n                                                            [(ngModel)]=\"data.baia2Carga\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"4\" />\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"baia2Descarga\">{{\"labels.baia2Descarga\" |\n                                                            translate}}</label>\n                                                        <input id=\"baia2Descarga\" name=\"baia2Descarga\"\n                                                            [(ngModel)]=\"data.baia2Descarga\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"4\" />\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"codigoB2\">{{\"labels.codigo\" | translate}}</label>\n                                                        <input id=\"codigoB2\" name=\"codigoB2\"\n                                                            [(ngModel)]=\"data.baia2Codigo\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"15\" />\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"tipoOperacaoB2\">{{'labels.tipoOperacao' |\n                                                            translate}}</label>\n                                                        <select id=\"tipoOperacaoB2\" name=\"tipoOperacaoB2\"\n                                                            [(ngModel)]=\"data.baia2TipoOperacao\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"1\"\n                                                            data-title=\"{{'labels.tipoOperacao' | translate}}\">\n                                                            <option value=\"\">{{ 'labels.selecione' | translate}}\n                                                            </option>\n                                                            <option value=\"0\">{{ 'labels.manual' | translate}}</option>\n                                                            <option value=\"1\">{{ 'labels.automatico' | translate}}\n                                                            </option>\n                                                        </select>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-12\">\n                                        <div class=\"form-group\">\n                                            <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                {{ 'buttons.salvar' | translate }}\n                                            </button>\n                                            <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo'\n                                                | translate }}</button>\n                                        </div>\n                                    </div>\n                                </div>\n                            </form>\n                        </div>\n                        <!-- ABA DEPOSITOS -->\n                        <div class=\"tab-pane\" id=\"de\">\n                            <app-plataforma-tanque [plataformaId]=\"data.plataformaId\"\n                                [descrPlataforma]=\"data.descrPlataforma\" [dados]=\"data.plataformaTanques\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\" (dataResult)=\"refreshItens($event)\">\n                            </app-plataforma-tanque>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-index/plataforma-index.component.html":
/*!**********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-index/plataforma-index.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.listaIndex\" [formAction]=\"actionForm\" [itemData]=\"data.plataformaId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtPlataforma\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-tanque/plataforma-tanque.component.html":
/*!************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-tanque/plataforma-tanque.component.html ***!
  \************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n                <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                    [disabled]=\" funcoesService.showButtons.detail(actionForm, dataAux.plataformaTanqueId)\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.plataformaTanqueId)\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled ||funcoesService.showButtons.remove(actionForm, dataAux.plataformaTanqueId)\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"col-lg-6 col-md-6 col-12 mt-4\">\r\n        <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th class=\"text-center\">{{ \"labels.plataforma\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.deposito\" | translate }}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let c of (dados | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td class=\"text\">{{ descrPlataforma }}</td>\r\n                    <td class=\"text\">{{ c.tanqueId }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.plataformaTanqueId)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                    class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4 col-md-6 col-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"tanqueId\" class=\"required\">{{\"labels.deposito\" | translate}}</label>\r\n                                    <app-combo-tanque id=\"tanqueId\" name=\"tanqueId\" [(ngModel)]=\"data.tanqueId\"\r\n                                        required=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        (outSelected)=\"verificaTanque()\">\r\n                                    </app-combo-tanque>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlataformaFormComponent", function() { return PlataformaFormComponent; });
/* 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 app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _plataforma_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../plataforma.model */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.model.ts");
/* harmony import */ var _plataforma_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../plataforma.constants */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.constants.ts");
/* harmony import */ var _plataforma_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../plataforma.service */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
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 __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var PlataformaFormComponent = /** @class */ (function (_super) {
    __extends(PlataformaFormComponent, _super);
    function PlataformaFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, materialService, configuracao, destinatarioService) {
        var _this = _super.call(this, new _plataforma_constants__WEBPACK_IMPORTED_MODULE_11__["PlataformaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.materialService = materialService;
        _this.configuracao = configuracao;
        _this.destinatarioService = destinatarioService;
        _this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_10__["Plataforma"]();
        _this.mensagens = [];
        _this.horas = [];
        _this.constantes = new _plataforma_constants__WEBPACK_IMPORTED_MODULE_11__["PlataformaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/oiltanking/cadastros/plataforma";
        _this.loadConfig = function () {
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PlataformaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.parametrosConfig, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_10__["Plataforma"]();
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    _this.data.tipoAutomacao = resp.tipoAutomacao ? resp.tipoAutomacao : "";
                    _this.data.baia1TipoOperacao = resp.baia1TipoOperacao != null ? app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(resp.baia1TipoOperacao) : "";
                    _this.data.baia2TipoOperacao = resp.baia2TipoOperacao != null ? app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(resp.baia2TipoOperacao) : "";
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    PlataformaFormComponent.prototype.onSubmit = function (form, create) {
        if (create === void 0) { create = false; }
        return __awaiter(this, void 0, void 0, function () {
            var isCodigoValido, isDescricaoValida;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.validarCampo('plataformaId', this.data.plataformaId)];
                    case 1:
                        isCodigoValido = _a.sent();
                        if (!isCodigoValido) {
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.validarCampo('descrPlataforma', this.data.descrPlataforma)];
                    case 2:
                        isDescricaoValida = _a.sent();
                        if (!isDescricaoValida) {
                            return [2 /*return*/];
                        }
                        this.data.logRotina = "Manut. Plataforma";
                        this.service
                            ._save(this.data)
                            .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.plataforma");
                                _this.back();
                            }
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    PlataformaFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    PlataformaFormComponent.prototype.edit = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.plataformaId]);
    };
    PlataformaFormComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    PlataformaFormComponent.prototype.refreshItens = function (event) {
        this.data.plataformaTanques = event;
    };
    PlataformaFormComponent.prototype.validarCampo = function (campo, valor) {
        return __awaiter(this, void 0, void 0, function () {
            var dadosValidacao, result, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (valor === null || valor.trim() === '') {
                            return [2 /*return*/, true];
                        }
                        dadosValidacao = {
                            plataformaId: this.data.plataformaId,
                            campo: campo,
                            valor: valor
                        };
                        return [4 /*yield*/, this.service.validarDuplicidade(dadosValidacao).toPromise()];
                    case 1:
                        result = _a.sent();
                        if (!result.isValid) {
                            mensagens = this.messageService.validationResult(result);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.plataforma", m); });
                            return [2 /*return*/, false];
                        }
                        return [2 /*return*/, true];
                }
            });
        });
    };
    PlataformaFormComponent.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: _plataforma_service__WEBPACK_IMPORTED_MODULE_12__["PlataformaService"] },
        { 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_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_8__["MaterialService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__["DestinatarioService"] }
    ]; };
    PlataformaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-plataforma-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./plataforma-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-form/plataforma-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"],
            _plataforma_service__WEBPACK_IMPORTED_MODULE_12__["PlataformaService"],
            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_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_8__["MaterialService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__["DestinatarioService"]])
    ], PlataformaFormComponent);
    return PlataformaFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-index/plataforma-index.component.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-index/plataforma-index.component.ts ***!
  \******************************************************************************************************************/
/*! exports provided: PlataformaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlataformaIndexComponent", function() { return PlataformaIndexComponent; });
/* 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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _plataforma_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../plataforma.model */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.model.ts");
/* harmony import */ var _plataforma_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../plataforma.constants */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.constants.ts");
/* harmony import */ var _plataforma_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../plataforma.service */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var PlataformaIndexComponent = /** @class */ (function (_super) {
    __extends(PlataformaIndexComponent, _super);
    function PlataformaIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _plataforma_constants__WEBPACK_IMPORTED_MODULE_9__["PlataformaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_8__["Plataforma"]();
        _this.constantes = new _plataforma_constants__WEBPACK_IMPORTED_MODULE_9__["PlataformaConstants"]();
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/oiltanking/cadastros/plataforma";
        _this.login = loginService.getLogin();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PlataformaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    PlataformaIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
    };
    PlataformaIndexComponent.prototype.edit = function () {
        if (!!(this.data.plataformaId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.plataformaId]);
        }
    };
    PlataformaIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.get().subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("plataformaId", "codigo", "10%"),
                _this.datatablesService.getDataString("descrPlataforma", "descricao"),
                _this.datatablesService.getDataString("locPlataforma", "localizacao"),
                _this.datatablesService.getDataString("baia1Carga", "baia1Carga", "10%"),
                _this.datatablesService.getDataString("baia2Carga", "baia2Carga", "10%"),
                _this.datatablesService.getDataString("baia1Descarga", "baia1Descarga", "10%"),
                _this.datatablesService.getDataString("baia2Descarga", "baia2Descarga", "10%"),
                _this.datatablesService.getDataString("baia1Codigo", "baia1Codigo", "10%"),
                _this.datatablesService.getDataString("baia2Codigo", "baia2Codigo", "10%"),
            ];
            _this.datatablesService.toDataTable({ tableId: 'dtPlataforma', columns: columns, data: resp }, function (aData) {
                _this.data = aData;
            });
        });
    };
    PlataformaIndexComponent.prototype.detail = function () {
        if (!!(this.data.plataformaId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.plataformaId]);
        }
    };
    PlataformaIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.plataformaId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service._remove({ plataformaId: _this.data.plataformaId }).subscribe(function (validationResult) {
                        if (!validationResult.isValid) {
                            var mensagens = _this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.plataforma", m); });
                            return;
                        }
                        _this.datatablesService.remove("dtPlataforma");
                        _this.refresh();
                    });
                });
            });
        }
    };
    PlataformaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.print.call(_this, null, true);
        });
    };
    PlataformaIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    PlataformaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PlataformaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _plataforma_service__WEBPACK_IMPORTED_MODULE_10__["PlataformaService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] }
    ]; };
    PlataformaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-plataforma-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./plataforma-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-index/plataforma-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _plataforma_service__WEBPACK_IMPORTED_MODULE_10__["PlataformaService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"]])
    ], PlataformaIndexComponent);
    return PlataformaIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlataformaTanqueComponent", function() { return PlataformaTanqueComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _plataforma_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../plataforma.model */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.model.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _plataforma_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../plataforma.service */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.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");
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 PlataformaTanqueComponent = /** @class */ (function () {
    function PlataformaTanqueComponent(messageService, funcoesService, plataformaService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.plataformaService = plataformaService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _plataforma_model__WEBPACK_IMPORTED_MODULE_1__["PlataformaTanque"]();
        this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_1__["PlataformaTanque"]();
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
        this.hasDados = false;
    }
    PlataformaTanqueComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    PlataformaTanqueComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
        this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_1__["PlataformaTanque"](this.plataformaId);
    };
    PlataformaTanqueComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit;
        this.data = this.dataAux;
    };
    PlataformaTanqueComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    PlataformaTanqueComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
    };
    PlataformaTanqueComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    PlataformaTanqueComponent.prototype.onSubmit = function (form) {
        var _this = this;
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = 'Manutenção de Plataforma Tanque';
        if (this.data.sequencia && this.data.sequencia > 0) {
            if (this.dados.length > 0) {
                var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                this.dados[i] = this.data;
            }
            else {
                this.dados = [];
                this.dados.push(this.data);
            }
        }
        else {
            this.setSequencia();
            if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                this.dados = [];
            }
            this.dados.push(this.data);
        }
        this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_1__["PlataformaTanque"](this.plataformaId);
        this.dataResult.emit(this.dados);
        this.back();
    };
    PlataformaTanqueComponent.prototype.setSequencia = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data.plataformaTanqueId)) {
            var s = this.dados ? this.dados.length : 0;
            this.data.sequencia = s + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    PlataformaTanqueComponent.prototype.verificaTanque = function () {
        var _this = this;
        var test = this.dados.filter(function (t) { return t.tanqueId === _this.data.tanqueId && t.sequencia !== _this.data.sequencia && t.sitReg !== "E"; });
        if (test.length > 0) {
            this.messageService.warning("titles.plataforma", "messages.tanqueJaInformado");
            this.data.tanqueId = "";
        }
    };
    PlataformaTanqueComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _plataforma_service__WEBPACK_IMPORTED_MODULE_5__["PlataformaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], PlataformaTanqueComponent.prototype, "plataformaId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], PlataformaTanqueComponent.prototype, "descrPlataforma", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], PlataformaTanqueComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], PlataformaTanqueComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlataformaTanqueComponent.prototype, "dataResult", void 0);
    PlataformaTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-plataforma-tanque",
            template: __importDefault(__webpack_require__(/*! raw-loader!./plataforma-tanque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-tanque/plataforma-tanque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _plataforma_service__WEBPACK_IMPORTED_MODULE_5__["PlataformaService"]])
    ], PlataformaTanqueComponent);
    return PlataformaTanqueComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlataformaConstants", function() { return PlataformaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PlataformaConstants = /** @class */ (function () {
    function PlataformaConstants() {
        this.sisFormularioId = 375452;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.plataforma";
        this.reportId = "OIL0015";
        this.reportTitulo = { "titulo": "Plataforma", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", 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: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.parametrosConfig = [
            {
                sistema: 'REL', parametros: ['QtdeJanela', 'DiasUteis']
            }
        ];
    }
    return PlataformaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.model.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.model.ts ***!
  \***************************************************************************************/
/*! exports provided: Plataforma, PlataformaTanque */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Plataforma", function() { return Plataforma; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlataformaTanque", function() { return PlataformaTanque; });
/* 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 Plataforma = /** @class */ (function (_super) {
    __extends(Plataforma, _super);
    function Plataforma() {
        var _this = _super.call(this) || this;
        _this.tipoAutomacao = "";
        _this.baia1Codigo = "";
        _this.baia2Codigo = "";
        _this.baia1TipoOperacao = "";
        _this.baia2TipoOperacao = "";
        return _this;
    }
    return Plataforma;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var PlataformaTanque = /** @class */ (function (_super) {
    __extends(PlataformaTanque, _super);
    function PlataformaTanque(plataformaId) {
        if (plataformaId === void 0) { plataformaId = ''; }
        var _this = _super.call(this) || this;
        _this.plataformaId = plataformaId;
        return _this;
    }
    return PlataformaTanque;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.module.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.module.ts ***!
  \****************************************************************************************/
/*! exports provided: PlataformaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlataformaModule", function() { return PlataformaModule; });
/* 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 _plataforma_index_plataforma_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plataforma-index/plataforma-index.component */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-index/plataforma-index.component.ts");
/* harmony import */ var _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plataforma-form/plataforma-form.component */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-form/plataforma-form.component.ts");
/* harmony import */ var _plataforma_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./plataforma.routing.module */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.routing.module.ts");
/* harmony import */ var _plataforma_tanque_plataforma_tanque_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plataforma-tanque/plataforma-tanque.component */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-tanque/plataforma-tanque.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 PlataformaModule = /** @class */ (function () {
    function PlataformaModule() {
    }
    PlataformaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _plataforma_index_plataforma_index_component__WEBPACK_IMPORTED_MODULE_2__["PlataformaIndexComponent"],
                _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_3__["PlataformaFormComponent"],
                _plataforma_tanque_plataforma_tanque_component__WEBPACK_IMPORTED_MODULE_5__["PlataformaTanqueComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _plataforma_routing_module__WEBPACK_IMPORTED_MODULE_4__["PlataformaRoutingModule"]
            ]
        })
    ], PlataformaModule);
    return PlataformaModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlataformaRoutingModule", function() { return PlataformaRoutingModule; });
/* 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 _plataforma_index_plataforma_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plataforma-index/plataforma-index.component */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-index/plataforma-index.component.ts");
/* harmony import */ var _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./plataforma-form/plataforma-form.component */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma-form/plataforma-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 PlataformaRoutes = [
    {
        path: "",
        component: _plataforma_index_plataforma_index_component__WEBPACK_IMPORTED_MODULE_3__["PlataformaIndexComponent"],
        data: {
            breadcrumb: "plataforma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "create",
        component: _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_4__["PlataformaFormComponent"],
        data: {
            breadcrumb: "plataforma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_4__["PlataformaFormComponent"],
        data: {
            breadcrumb: "plataforma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_4__["PlataformaFormComponent"],
        data: {
            breadcrumb: "plataforma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var PlataformaRoutingModule = /** @class */ (function () {
    function PlataformaRoutingModule() {
    }
    PlataformaRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(PlataformaRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], PlataformaRoutingModule);
    return PlataformaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.service.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.service.ts ***!
  \*****************************************************************************************/
/*! exports provided: PlataformaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlataformaService", function() { return PlataformaService; });
/* 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 _plataforma_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plataforma.constants */ "./src/app/pages/especificos/oiltanking/cadastros/plataforma/plataforma.constants.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/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 PlataformaService = /** @class */ (function (_super) {
    __extends(PlataformaService, _super);
    function PlataformaService(http) {
        var _this = _super.call(this, http, "oiltanking/plataforma") || this;
        _this.http = http;
        _this.constantes = new _plataforma_constants__WEBPACK_IMPORTED_MODULE_3__["PlataformaConstants"]();
        return _this;
    }
    PlataformaService.prototype.validarDuplicidade = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/oiltanking/plataforma/validarDuplicidade", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlataformaService.prototype._save = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/oiltanking/plataforma/grava", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlataformaService.prototype._remove = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/oiltanking/plataforma/plataformaExclui", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlataformaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    PlataformaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], PlataformaService);
    return PlataformaService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

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