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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/plataforma/plataforma-form/plataforma-form.component.html":
/*!********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/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\"\n                      [formAction]=\"actionForm\"\n                      [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\"\n                                   href=\"#da\">{{\"labels.dados\" | 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\"\n                                                   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                                        </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=\"descrPlataforma\"\n                                                   class=\"required\">{{'labels.descricao' | 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                                        </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\n                                                    for=\"cadLocalizacaoPlataformaId\">{{\"labels.localizacao\" | translate}}</label>\n                                            <app-combo-padrao\n                                                    id=\"cadLocalizacaoPlataformaId\"\n                                                    name=\"cadLocalizacaoPlataformaId\"\n                                                    tabela=\"CadLocalizacaoPlataforma\"\n                                                    chave=\"Registro\"\n                                                    descricao=\"Descricao\"\n                                                    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-3 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\"\n                                                    class=\"form-control form-control-sm\"\n                                                    type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                    maxlength=\"1\" data-title=\"{{'labels.tipoAutomacao' | translate}}\">\n                                                <option value=\"0\">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\">\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\" | 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\" | 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\"\n                                                                type=\"text\"\n                                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                maxlength=\"1\"\n                                                                data-title=\"{{'labels.tipoOperacaoB1' | translate}}\">\n                                                            <option value=\"\">{{ 'labels.selecione' | translate}}</option>\n                                                            <option value=\"0\">{{ 'labels.manual' | translate}}</option>\n                                                            <option value=\"1\">{{ 'labels.automatico' | translate}}</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\" | 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\" | 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\"\n                                                                type=\"text\"\n                                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                maxlength=\"1\"\n                                                                data-title=\"{{'labels.tipoOperacao' | translate}}\">\n                                                            <option value=\"\">{{ 'labels.selecione' | translate}}</option>\n                                                            <option value=\"0\">{{ 'labels.manual' | translate}}</option>\n                                                            <option value=\"1\">{{ 'labels.automatico' | translate}}</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-lg-4 col-md-6 col-sm-12\">\n                                      <span *ngIf=\"data.sisCampoAdds\">\n                                        <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                          <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\n                                                                 [(ngModel)]=\"d.valorCampo\"\n                                                                 [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                 [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\n                                        </div>\n                                      </span>\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' | 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\" [dados]=\"data.plataformaTanques\"\n                                                   [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                   (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>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/plataforma/plataforma-index/plataforma-index.component.html":
/*!**********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/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\"\n                      [formAction]=\"actionForm\"\n                      [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>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/plataforma/plataforma-tanque/plataforma-tanque.component.html":
/*!************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/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-md-2 col-lg-2 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.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\">{{ 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-2\">\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\" required=\"true\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" (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\r\n                                    class=\"btn btn-success\"\r\n                                    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>\r\n");

/***/ }),

/***/ "./src/app/pages/cadastro/plataforma/plataforma-form/plataforma-form.component.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/cadastro/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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _plataforma_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../plataforma.service */ "./src/app/pages/cadastro/plataforma/plataforma.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _plataforma_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../plataforma.constants */ "./src/app/pages/cadastro/plataforma/plataforma.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _plataforma_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../plataforma.model */ "./src/app/pages/cadastro/plataforma/plataforma.model.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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 PlataformaFormComponent = /** @class */ (function (_super) {
    __extends(PlataformaFormComponent, _super);
    function PlataformaFormComponent(router, messageService, activatedRoute, plataformaService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _plataforma_constants__WEBPACK_IMPORTED_MODULE_6__["PlataformaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.plataformaService = plataformaService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_8__["Plataforma"]();
        _this.mensagens = [];
        _this.constantes = new _plataforma_constants__WEBPACK_IMPORTED_MODULE_6__["PlataformaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        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.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.plataformaService._getById(atob(id)).subscribe(function (resp) {
                    _this.data = resp;
                });
            }
            else {
                _this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_8__["Plataforma"]();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    PlataformaFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Manutenção Plataforma";
        this.plataformaService
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.plataforma");
                if (create) {
                    _this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_8__["Plataforma"]();
                    _this.router.navigate([_this.target + "/cadastro/plataforma/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    PlataformaFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/plataforma/edit/" + btoa(this.data.plataformaId)]);
    };
    PlataformaFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    PlataformaFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/plataforma"]);
    };
    PlataformaFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    PlataformaFormComponent.prototype.refreshItens = function (event) {
        this.data.plataformaTanques = event;
    };
    PlataformaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _plataforma_service__WEBPACK_IMPORTED_MODULE_3__["PlataformaService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    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/cadastro/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"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _plataforma_service__WEBPACK_IMPORTED_MODULE_3__["PlataformaService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], PlataformaFormComponent);
    return PlataformaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/plataforma/plataforma-index/plataforma-index.component.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/cadastro/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 _plataforma_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../plataforma.service */ "./src/app/pages/cadastro/plataforma/plataforma.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _plataforma_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../plataforma.model */ "./src/app/pages/cadastro/plataforma/plataforma.model.ts");
/* harmony import */ var _plataforma_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../plataforma.constants */ "./src/app/pages/cadastro/plataforma/plataforma.constants.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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, plataformaService, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _plataforma_constants__WEBPACK_IMPORTED_MODULE_8__["PlataformaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.plataformaService = plataformaService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _plataforma_model__WEBPACK_IMPORTED_MODULE_7__["Plataforma"]();
        _this.constantes = new _plataforma_constants__WEBPACK_IMPORTED_MODULE_8__["PlataformaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        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 () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    PlataformaIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.plataformaService.get().subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("plataformaId", "codigo", "10%"),
                _this.datatablesService.getDataString("descrPlataforma", "descricao"),
                _this.datatablesService.getDataObject("localizacaoPlataforma", "descricao", "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.getDataString("baia1TipoOperacao", "baia1TipoOperacao", "10%"),
                _this.datatablesService.getDataString("baia2TipoOperacao", "baia2TipoOperacao", "10%"),
            ];
            _this.datatablesService.datatable("dtPlataforma", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    PlataformaIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/plataforma/create"]);
    };
    PlataformaIndexComponent.prototype.edit = function () {
        if (!!(this.data.plataformaId)) {
            this.router.navigate([this.target + "/cadastro/plataforma/edit/" + btoa(this.data.plataformaId)]);
        }
    };
    PlataformaIndexComponent.prototype.detail = function () {
        if (!!(this.data.plataformaId)) {
            this.router.navigate([this.target + "/cadastro/plataforma/detail/" + btoa(this.data.plataformaId)]);
        }
    };
    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.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.plataformaId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.plataformaService.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtPlataforma");
                    });
                });
            });
        }
    };
    PlataformaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _plataforma_service__WEBPACK_IMPORTED_MODULE_2__["PlataformaService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    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/cadastro/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_2__["PlataformaService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], PlataformaIndexComponent);
    return PlataformaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/plataforma/plataforma-tanque/plataforma-tanque.component.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/cadastro/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/cadastro/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/cadastro/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", 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/cadastro/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/cadastro/plataforma/plataforma.constants.ts":
/*!*******************************************************************!*\
  !*** ./src/app/pages/cadastro/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 = 25079;
        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 = "CAD0017";
        this.tabela = "Plataforma";
        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' },
        ];
    }
    return PlataformaConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/plataforma/plataforma.model.ts":
/*!***************************************************************!*\
  !*** ./src/app/pages/cadastro/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 _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var Plataforma = /** @class */ (function (_super) {
    __extends(Plataforma, _super);
    function Plataforma() {
        var _this = _super.call(this) || this;
        _this.tipoAutomacao = 0;
        _this.baia1Codigo = "";
        _this.baia2Codigo = "";
        _this.baia1TipoOperacao = 0;
        _this.baia2TipoOperacao = 0;
        _this.baia1Carga = 0;
        _this.baia2Carga = 0;
        _this.baia1Descarga = 0;
        _this.baia2Descarga = 0;
        return _this;
    }
    return Plataforma;
}(_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;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/cadastro/plataforma/plataforma.module.ts":
/*!****************************************************************!*\
  !*** ./src/app/pages/cadastro/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 _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../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/cadastro/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/cadastro/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/cadastro/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/cadastro/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"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _plataforma_routing_module__WEBPACK_IMPORTED_MODULE_4__["PlataformaRoutingModule"]],
            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"]]
        })
    ], PlataformaModule);
    return PlataformaModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/plataforma/plataforma.routing.module.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/cadastro/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 _plataforma_index_plataforma_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plataforma-index/plataforma-index.component */ "./src/app/pages/cadastro/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/cadastro/plataforma/plataforma-form/plataforma-form.component.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _plataforma_index_plataforma_index_component__WEBPACK_IMPORTED_MODULE_2__["PlataformaIndexComponent"],
        data: { breadcrumb: "Plataforma", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_3__["PlataformaFormComponent"],
        data: {
            breadcrumb: "Plataforma",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_3__["PlataformaFormComponent"],
        data: {
            breadcrumb: "Plataforma",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _plataforma_form_plataforma_form_component__WEBPACK_IMPORTED_MODULE_3__["PlataformaFormComponent"],
        data: {
            breadcrumb: "Plataforma",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["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(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], PlataformaRoutingModule);
    return PlataformaRoutingModule;
}());



/***/ })

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