(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-operacao-plano-operacao1-plano-operacao1-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-dados-item-form/plano-operacao1-dados-item-form.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-dados-item-form/plano-operacao1-dados-item-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"] = ("<div class=\"row mb-3\">\n    <div class=\"col-lg-12\">\n        <div *ngIf=\"!showAdd\">\n            <button\n                    title=\"{{ 'buttons.novo' | translate }}\"\n                    class=\"btn btn-sm uni-btn\"\n                    [disabled]=\"funcoesService.isDetail(data.actionForm)\"\n                    (click)=\"create()\"\n            >\n                <i class=\"icon icon-plus\"></i>\n            </button>\n            <button\n                    title=\"{{ 'buttons.visualizar' | translate }}\"\n                    class=\"btn btn-sm uni-btn\"\n                    [disabled]=\"funcoes.showButtons.detail(data.actionForm, dataAux.item)\"\n                    (click)=\"detail()\"\n            >\n                <i class=\"icon icon-eye\"></i>\n            </button>\n            <button\n                    title=\"{{ 'buttons.editar' | translate }}\"\n                    class=\"btn btn-sm uni-btn\"\n                    [disabled]=\"funcoes.showButtons.edit(data.actionForm, dataAux.item)\"\n                    (click)=\"edit()\"\n            >\n                <i class=\"icon icon-pencil\"></i>\n            </button>\n            <button\n                    title=\"{{ 'buttons.excluir' | translate }}\"\n                    class=\"btn btn-sm uni-btn\"\n                    [disabled]=\"funcoes.showButtons.remove(data.actionForm, dataAux.item)\"\n                    (click)=\"remove()\"\n            >\n                <i class=\"icon icon-trash\"></i>\n            </button>\n        </div>\n        <div *ngIf=\"showAdd\">\n            <button\n                    title=\"{{ 'buttons.editar' | translate }}\"\n                    class=\"btn btn-sm uni-btn\"\n                    (click)=\"edit()\"\n                    [disabled]=\"funcoes.showButtons.edit(data.actionForm, dataAux.item)\"\n            >\n                <i class=\"icon icon-pencil\"></i>\n            </button>\n            <button\n                    title=\"{{ 'buttons.voltar' | translate }}\"\n                    (click)=\"back()\"\n                    type=\"button\"\n                    class=\"btn btn-sm uni-btn\"\n            >\n                <i class=\"icon icon-arrow-left\"></i>\n            </button>\n        </div>\n    </div>\n</div>\n\n<div class=\"row\" *ngIf=\"!showAdd\">\n    <div class=\"col-lg-12\">\n        <table class=\"table table-striped table-hover\">\n            <tr>\n                <th>\n                    {{ \"labels.material\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.produto\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.cliente\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.marca\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.pressao\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.temperatura\" | translate }}\n                </th>\n            </tr>\n            <tbody>\n            <tr\n                    *ngFor=\"let item of dados | removeExcluidos; let i = index\"\n                    (click)=\"selected(item)\"\n                    [ngClass]=\"{ info: item.item === dataAux.item }\"\n            >\n                <td class=\"pct-10-l\">\n                    {{ item.materialId }}\n                </td>\n                <td>\n                    {{ item.fantasiaMaterial }}\n                </td>\n                <td>\n                    {{ item.fantasiaCliente }}\n                </td>\n                <td>\n                    {{ item.marca }}\n                </td>\n                <td class=\"pct-10-r\">\n                    {{ item.pressaoMax | formatCurrency: 2 }}\n                </td>\n                <td class=\"pct-10-r\">\n                    {{ item.temperatura | formatCurrency: 1 }}\n                </td>\n            </tr>\n            <tr *ngIf=\"!dados || dados.length === 0\">\n                <th colspan=\"6\" style=\"text-align: center;\">\n                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                </th>\n            </tr>\n            </tbody>\n        </table>\n    </div>\n</div>\n\n<div class=\"row\" *ngIf=\"showAdd\">\n    <div class=\"col-lg-12\">\n        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n            <app-validacoes></app-validacoes>\n            <div class=\"row\">\n                <div class=\"col-lg-8 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"material\" class=\"required\">{{ \"labels.produto\" | translate }}</label>\n                        <select id=\"material\"\n                                name=\"material\"\n                                [(ngModel)]=\"data.materialId\"\n                                required\n                                [disabled]=\"isDetail() || funcoes.isEdit(data.actionForm)\"\n                                class=\"form-control form-control-sm\"\n                                (change)=\"trataProduto()\"\n                                autofocus>\n                            <option value=\"\" selected=\"selected\">\n                                {{ \"labels.selecione\" | translate }}\n                            </option>\n                            <option [value]=\"d.materialId\" *ngFor=\"let d of produtos\">\n                                {{ d.fantasiaMaterial }}\n                            </option>\n                        </select>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-8 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"cliente\" [class.required]=\"!isDetail() && !funcoes.isEdit(data.actionForm)\">{{ \"labels.cliente\" | translate }}</label>\n                        <select id=\"cliente\"\n                                name=\"cliente\"\n                                [(ngModel)]=\"data.destinatarioId\"\n                                [disabled]=\"isDetail() || funcoes.isEdit(data.actionForm)\"\n                                class=\"form-control form-control-sm\">\n                            <option value=\"\" selected=\"selected\">\n                                {{ \"labels.selecione\" | translate }}\n                            </option>\n                            <option [value]=\"d.chave\" *ngFor=\"let d of clientes\">\n                                {{ d.valor }}\n                            </option>\n                        </select>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-4 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"pressaoMax\">{{ \"labels.pressaoMax\" | translate }}</label>\n                        <input id=\"pressaoMax\"\n                                name=\"pressaoMax\"\n                                autofocus\n                                [(ngModel)]=\"data.pressaoMax\"\n                                maxlength=\"5\"\n                                class=\"form-control form-control-sm\"\n                                type=\"text\"\n                                currencyMask\n                                [disabled]=\"isDetail()\"\n                                [options]=\"{prefix: '', thousands: '.', decimal: ',', precision: 2}\"/>\n                    </div>\n                </div>\n                <div class=\"col-lg-4 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"temperatura\">{{ \"labels.temperatura\" | translate }}</label>\n                        <input id=\"temperatura\"\n                                name=\"temperatura\"\n                                [(ngModel)]=\"data.temperatura\"\n                                maxlength=\"4\"\n                                class=\"form-control form-control-sm\"\n                                type=\"text\"\n                                currencyMask\n                                [disabled]=\"isDetail()\"\n                                [options]=\"{prefix: '', thousands: '.', decimal: ',', precision: 1}\"/>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\" *ngIf=\"showAdd\">\n                <div class=\"col-lg-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <button class=\"btn btn-success mr-1\"\n                                type=\"submit\"\n                                [disabled]=\"isDetail()\">\n                            {{ \"buttons.salvar\" | translate }}\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </form>\n    </div>\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/operacao/plano-operacao1/plano-operacao1-equip-form/plano-operacao1-equip-form.component.html":
/*!***********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-equip-form/plano-operacao1-equip-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"] = ("<div class=\"card border-0 box-shadow pt-2 pl-2 pr-2 mb-4\">\n  <div class=\"row\">\n    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n      <div class=\"form-group form-group-sm\">\n        <label for=\"produto\">{{ \"labels.produto\" | translate }}</label>\n        <input id=\"produto\" name=\"produto\" value=\"{{ planejOperacao?.material?.fantasia }}\"\n          class=\"form-control form-control-sm\" type=\"text\" disabled />\n      </div>\n    </div>\n    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n      <div class=\"form-group form-group-sm\">\n        <label for=\"cliente\">{{ \"labels.cliente\" | translate }}</label>\n        <input id=\"cliente\" name=\"cliente\" value=\"{{ planejOperacao?.cliente?.fantasia }}\" maxlength=\"25\" disabled\n          class=\"form-control form-control-sm\" type=\"text\" />\n      </div>\n    </div>\n  </div>\n</div>\n\n<div class=\"row mb-3\">\n  <div class=\"col-lg-12\">\n    <div *ngIf=\"!showAdd\">\n      <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"create()\">\n        <i class=\"icon icon-plus\"></i>\n      </button>\n      <button title=\"{{ 'buttons.visualizar' | translate }}\" class=\"btn btn-sm uni-btn\"\n        [disabled]=\"funcoes.showButtons.detail(actionForm, equipAux.sequencia)\" (click)=\"detail()\">\n        <i class=\"icon icon-eye\"></i>\n      </button>\n      <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn btn-sm uni-btn\" [disabled]=\"\n          funcoes.showButtons.detail(actionForm, equipAux.sequencia)\n        \" (click)=\"edit()\">\n        <i class=\"icon icon-pencil\"></i>\n      </button>\n      <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn btn-sm uni-btn\" [disabled]=\"\n          funcoes.showButtons.detail(actionForm, equipAux.sequencia)\n        \" (click)=\"remove()\">\n        <i class=\"icon icon-trash\"></i>\n      </button>\n    </div>\n    <div *ngIf=\"showAdd\">\n      <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"edit()\"\n        [disabled]=\"funcoes.showButtons.detail(actionForm, equipAux.sequencia)\">\n        <i class=\"icon icon-pencil\"></i>\n      </button>\n      <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\" class=\"btn btn-sm uni-btn\">\n        <i class=\"icon icon-arrow-left\"></i>\n      </button>\n    </div>\n  </div>\n</div>\n\n<div class=\"row\">\n  <div class=\"col-lg-12\">\n    <table class=\"table table-striped table-hover\" *ngIf=\"!showAdd\">\n      <tr>\n        <th>\n          {{ \"labels.tipo\" | translate }}\n        </th>\n        <th>\n          {{ \"labels.descricao\" | translate }}\n        </th>\n      </tr>\n      <tbody>\n        <tr *ngFor=\"\n            let item of planejOperacao.planejOperacaoEquip | removeExcluidos;\n            let i = index\n          \" (click)=\"selected(item, i)\" [ngClass]=\"{ info: i + 1 === equipAux.sequencia }\">\n          <td>\n            {{ item.equipamento.descrTipoEquipto }}\n          </td>\n          <td>\n            {{ item.equipamento.descrEquipto }}\n          </td>\n        </tr>\n        <tr *ngIf=\"\n            !planejOperacao || planejOperacao.planejOperacaoEquip.length === 0\n          \">\n          <th colspan=\"2\" style=\"text-align: center;\">\n            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n          </th>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</div>\n\n<div class=\"row\" *ngIf=\"showAdd\">\n  <div class=\"col-lg-12\">\n    <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n      <app-validacoes></app-validacoes>\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            <app-pesquisa-tanque id=\"tanque\" name=\"tanque\" label=\"tanque\" modalTitle=\"tanque\" tipoDeposito=\"T\"\n              [(ngModel)]=\"data.tanqueId\" [required]=\"equiptoPorTanque\" [disabled]=\"!equiptoPorTanque || isDetail()\">\n            </app-pesquisa-tanque>\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=\"tipo\">{{ \"labels.tipo\" | translate }}</label>\n            <select class=\"form-control form-control-sm\" id=\"tipo\" name=\"tipo\" [(ngModel)]=\"data.tipoEquipamento\"\n              [disabled]=\"isDetail()\" (ngModelChange)=\"getByTypeEquipamento()\">\n              <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n              <option *ngFor=\"let item of tiposEquipamento\" value=\"{{ item.value }}\">{{ item.name }}</option>\n            </select>\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=\"equipamento\" class=\"required\">{{\n              \"labels.descricao\" | translate\n              }}</label>\n            <select class=\"form-control form-control-sm\" id=\"equipamento\" name=\"equipamento\" required=\"true\"\n              [(ngModel)]=\"data.equipamentoId\" [disabled]=\"isDetail()\" (change)=\"trataEquipamento()\">\n              <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n              <option *ngFor=\"let item of fEquipamentos\" value=\"{{ item.equipamentoId }}\">{{ item.descrEquipto }}\n              </option>\n            </select>\n          </div>\n        </div>\n      </div>\n      <div class=\"row\" *ngIf=\"showAdd\">\n        <div class=\"col-lg-12\">\n          <div class=\"form-group form-group-sm\">\n            <button class=\"btn btn-success mr-1\" type=\"submit\">\n              {{ \"buttons.salvar\" | translate }}\n            </button>\n          </div>\n        </div>\n      </div>\n    </form>\n  </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-filter/plano-operacao1-filter.component.html":
/*!***************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-filter/plano-operacao1-filter.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=\"modal fade\" id=\"plano-operacao1-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.planoOperacao' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"periodoDe\" class=\"required\">{{\n                                    \"labels.periodoDe\" | translate\n                                    }}</label>\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filter.periodoDe\"\n                                    class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required></app-data>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ate\" class=\"required\">{{\n                                    \"labels.ate\" | translate\n                                    }}</label>\n                                <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filter.ate\" class=\"dataHora\"\n                                    [formatDateTime]=\"mascara.getFormatData\" required></app-data>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"navio\" name=\"navio\" tipoDestinatario=\"N\"\n                                    modalTitle=\"pesquisaDeNavio\" label=\"navio\"\n                                    [(ngModel)]=\"service.filter.destinatarioIdNavio\" showInscricao=\"false\"\n                                    showCgcCpf=\"false\" [inSelected]=\"service.filter.navio\"\n                                    (outModel)=\"!!$event ? service.filter.navio = $event : ''\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"situacao\">{{\n                                    \"labels.situacao\" | translate\n                                    }}</label>\n                                <app-combo-padrao name=\"plataforma\" id=\"situacao\" chave=\"CodSitNavio\"\n                                    descricao=\"DescrSitNavio\" ativo=\"true\" tabela=\"SituacaoNavio\"\n                                    [(ngModel)]=\"service.filter.situacao\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-form/plano-operacao1-form.component.html":
/*!***********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-form/plano-operacao1-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\r\n        [botoesComando]=\"constantes.listaForm\"\r\n        [sisFormularioId]=\"constantes.sisFormularioId\"\r\n>\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"tab-content top\">\r\n                <div class=\"tab-pane active show\">\r\n                    <div class=\"clearfix\">\r\n                        <ul class=\"nav nav-tabs\">\r\n                            <li class=\"nav-item\">\r\n                                <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\r\n                                    \"labels.dados\" | translate\r\n                                    }}</a>\r\n                            </li>\r\n                            <li class=\"nav-item\">\r\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#fi\">{{\r\n                                    \"labels.itens\" | translate\r\n                                    }}</a>\r\n                            </li>\r\n                        </ul>\r\n                    </div>\r\n                    <div class=\"tab-content top\">\r\n                        <div class=\"tab-pane active show\" id=\"da\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-lg-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"navio\">{{\r\n                                                    \"labels.navio\" | translate\r\n                                                    }}</label>\r\n                                                <input\r\n                                                        type=\"text\"\r\n                                                        class=\"form-control form-control-sm\"\r\n                                                        name=\"navio\"\r\n                                                        id=\"navio\"\r\n                                                        value=\"{{ data?.programacaoNavio?.fantasia }}\"\r\n                                                        disabled\r\n                                                />\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-lg-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"agencia\">{{\r\n                                                    \"labels.agencia\" | translate\r\n                                                    }}</label>\r\n                                                <input\r\n                                                        type=\"text\"\r\n                                                        class=\"form-control form-control-sm\"\r\n                                                        name=\"agencia\"\r\n                                                        id=\"agencia\"\r\n                                                        value=\"{{ data?.programacaoNavio?.descrAgencia }}\"\r\n                                                        disabled\r\n                                                />\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-lg-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"pier\">{{\r\n                                                    \"labels.pier\" | translate\r\n                                                    }}</label>\r\n                                                <input\r\n                                                        type=\"text\"\r\n                                                        class=\"form-control form-control-sm\"\r\n                                                        name=\"pier\"\r\n                                                        id=\"pier\"\r\n                                                        value=\"{{ data?.programacaoNavio?.descrPier }}\"\r\n                                                        disabled\r\n                                                />\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-lg-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"programacao\">{{\r\n                                                    \"labels.programacao\" | translate\r\n                                                    }}</label>\r\n                                                <input\r\n                                                        type=\"text\"\r\n                                                        class=\"form-control form-control-sm\"\r\n                                                        name=\"programacao\"\r\n                                                        id=\"programacao\"\r\n                                                        value=\"{{\r\n                            data?.programacaoNavio?.programacaoNavioId\r\n                          }}\"\r\n                                                        disabled\r\n                                                />\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"row\">\r\n                                        <div class=\"col-lg-12\">\r\n                                            <div class=\"form-group form-group-sm\">\r\n                                                <label for=\"laudo\">{{\r\n                                                    \"labels.laudo\" | translate\r\n                                                    }}</label>\r\n                                                <input\r\n                                                        type=\"text\"\r\n                                                        class=\"form-control form-control-sm\"\r\n                                                        name=\"laudo\"\r\n                                                        id=\"laudo\"\r\n                                                        value=\"{{ data?.programacaoNavio?.regLaudo }}\"\r\n                                                        disabled\r\n                                                />\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"tab-pane\" id=\"fi\">\r\n                            <app-plano-operacao1-item-form *ngIf=\"showComponent\"\r\n                                                      [programacaoNavio]=\"data.programacaoNavio\"\r\n                                                      [planejOperacaos]=\"data.planejOperacaos\"\r\n                                                      [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                      (isRefresh)=\"refresh()\"\r\n                            ></app-plano-operacao1-item-form>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n\r\n    <app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-index/plano-operacao1-index.component.html":
/*!*************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-index/plano-operacao1-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.programacaoNavioId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-plano-operacao1-filter (filtrar)=\"executaFiltro()\"></app-plano-operacao1-filter>\n    <table id=\"planoOperacao1\" 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<app-plano-operacao1-print-modal (outConfirma)=\"confirmaImpressao($event)\"></app-plano-operacao1-print-modal>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-item-form/plano-operacao1-item-form.component.html":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-item-form/plano-operacao1-item-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"] = ("<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"tab-content top\">\r\n            <div class=\"tab-pane active show\">\r\n                <div class=\"clearfix\">\r\n                    <ul class=\"nav nav-tabs\">\r\n                        <li class=\"nav-item\" [ngClass]=\"{'invisible': !hasNavActive(1)}\">\r\n                            <a\r\n                                    class=\"nav-link active\"\r\n                                    data-toggle=\"tab\"\r\n                                    href=\"#itens_da\"\r\n                                    (click)=\"onNavChange('itens_da')\"\r\n                            >{{ \"labels.dados\" | translate }}</a\r\n                            >\r\n                        </li>\r\n                        <li class=\"nav-item\" [ngClass]=\"{'invisible': !hasNavActive(2)}\">\r\n                            <a\r\n                                    class=\"nav-link\"\r\n                                    href=\"#itens_fi\"\r\n                                    data-toggle=\"tab\"\r\n                                    (click)=\"onNavChange('itens_fi')\"\r\n                                    *ngIf=\"hasSelected()\"\r\n                            >{{ \"labels.tanques\" | translate }}</a\r\n                            >\r\n                        </li>\r\n                        <li class=\"nav-item\" [ngClass]=\"{'invisible': !hasNavActive(3)}\">\r\n                            <a\r\n                                    class=\"nav-link\"\r\n                                    href=\"#itens_equip\"\r\n                                    data-toggle=\"tab\"\r\n                                    (click)=\"onNavChange('itens_equip')\"\r\n                                    *ngIf=\"hasSelected()\"\r\n                            >{{ \"labels.equipamentos\" | translate }}</a\r\n                            >\r\n                        </li>\r\n                    </ul>\r\n                </div>\r\n                <div class=\"tab-content top\">\r\n                    <div class=\"tab-pane active show\" id=\"itens_da\">\r\n                        <app-plano-operacao1-dados-item-form\r\n                                [programacaoNavio]=\"programacaoNavio\"\r\n                                [dados]=\"planejOperacaos\"\r\n                                (outPlanejOperacao)=\"refreshPlanejOperacao($event)\"\r\n                                (navActive)=\"thatNavActive($event)\"\r\n                                (dataResult)=\"resultSave()\"\r\n                        >\r\n                        </app-plano-operacao1-dados-item-form>\r\n                    </div>\r\n                    <div class=\"tab-pane\" id=\"itens_fi\">\r\n                        <app-plano-operacao1-tanque-form\r\n                                [programacaoNavio]=\"programacaoNavio\"\r\n                                [planejOperacao]=\"data\"\r\n                                (outPlanejOperacao)=\"refreshPlanejOperacao($event)\"\r\n                                (getTanqueSel)=\"getTanqueSel($event)\"\r\n                                (navActive)=\"thatNavActive($event)\"\r\n                        >\r\n                        </app-plano-operacao1-tanque-form>\r\n                    </div>\r\n                    <div class=\"tab-pane\" id=\"itens_equip\">\r\n                        <app-plano-operacao1-equip-form\r\n                                [programacaoNavio]=\"programacaoNavio\"\r\n                                [planejOperacao]=\"data\"\r\n                                [tanqueId]=\"tanqueId\"\r\n                                (outPlanejOperacao)=\"refreshPlanejOperacao($event)\"\r\n                                (navActive)=\"thatNavActive($event)\"\r\n                        >\r\n                        </app-plano-operacao1-equip-form>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-print-modal/plano-operacao1-print-modal.component.html":
/*!*************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-print-modal/plano-operacao1-print-modal.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=\"modal fade\"id=\"modalPrint\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n  <div class=\"modal-dialog modal-sm\">\r\n    <div class=\"modal-content\">\r\n      <form class=\"form\" #frmPrint=\"ngForm\" (ngSubmit)=\"onSubmit(frmPrint)\">\r\n        <div class=\"modal-header\">\r\n          <h4 class=\"modal-title\">{{ 'titles.imprimir' | translate }}</h4>\r\n          <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n            <span aria-hidden=\"true\">&times;</span>\r\n          </button>\r\n        </div>\r\n        <div class=\"modal-body\">\r\n          <div class=\"row\">\r\n            <div class=\"col-12\">\r\n              <div class=\"form-group form-group-sm\">\r\n                <label for=\"tipoImpressao\">{{'labels.tipoImpressao' | translate}}</label>\r\n                <select id=\"tipoImpressao\"\r\n                        name=\"tipoImpressao\"\r\n                        class=\"form-control form-control-sm\"\r\n                        [(ngModel)]=\"tipoSelecionado\">\r\n                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\r\n                    <option *ngFor=\"let tipo of tiposImpressao\" [value]=\"tipo.value\">{{ tipo.label | translate}}</option>\r\n                </select>\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div class=\"modal-footer\">\r\n          <button type=\"submit\" class=\"btn btn-small btn-success\" [disabled]=\"tipoSelecionado == ''\">{{ 'buttons.ok' | translate }}</button>\r\n          <button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.cancelar' | translate }}</button>\r\n        </div>\r\n      </form>\r\n    </div>\r\n  </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-tanque-form/plano-operacao1-tanque-form.component.html":
/*!*************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-tanque-form/plano-operacao1-tanque-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"] = ("<div class=\"card border-0 box-shadow pt-2 pl-2 pr-2 mb-4\">\n    <div class=\"row\">\n        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n            <div class=\"form-group form-group-sm\">\n                <label>{{ \"labels.produto\" | translate }}</label>\n                <input name=\"produto\" value=\"{{ planejOperacao?.material?.fantasia }}\"\n                    class=\"form-control form-control-sm\" type=\"text\" disabled />\n            </div>\n        </div>\n        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n            <div class=\"form-group form-group-sm\">\n                <label>{{ \"labels.cliente\" | translate }}</label>\n                <input name=\"cliente\" value=\"{{ planejOperacao?.cliente?.fantasia }}\" maxlength=\"25\" disabled\n                    class=\"form-control form-control-sm\" type=\"text\" />\n            </div>\n        </div>\n    </div>\n</div>\n\n<div class=\"row mb-3\">\n    <div class=\"col-lg-12\">\n        <div *ngIf=\"!showAdd\">\n            <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"create()\">\n                <i class=\"icon icon-plus\"></i>\n            </button>\n            <button title=\"{{ 'buttons.visualizar' | translate }}\" class=\"btn btn-sm uni-btn\"\n                [disabled]=\"funcoes.showButtons.detail(actionForm, tanqueAux.sequencia)\" (click)=\"detail()\">\n                <i class=\"icon icon-eye\"></i>\n            </button>\n            <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn btn-sm uni-btn\" [disabled]=\"\n          funcoes.showButtons.detail(actionForm, tanqueAux.sequencia)\n        \" (click)=\"edit()\">\n                <i class=\"icon icon-pencil\"></i>\n            </button>\n            <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn btn-sm uni-btn\" [disabled]=\"funcoes.showButtons.detail(actionForm, tanqueAux.sequencia)\n        \" (click)=\"remove()\">\n                <i class=\"icon icon-trash\"></i>\n            </button>\n        </div>\n        <div *ngIf=\"showAdd\">\n            <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn btn-sm uni-btn\" (click)=\"edit()\"\n                [disabled]=\"funcoes.showButtons.detail(actionForm, tanqueAux.sequencia)\">\n                <i class=\"icon icon-pencil\"></i>\n            </button>\n            <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\n                class=\"btn btn-sm uni-btn\">\n                <i class=\"icon icon-arrow-left\"></i>\n            </button>\n        </div>\n    </div>\n</div>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <table class=\"table table-striped table-hover\" *ngIf=\"!showAdd\">\n            <tr>\n                <th>\n                    {{ \"labels.deposito\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.inicio\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.final\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.volume\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.vazao\" | translate }}\n                </th>\n                <th>\n                    {{ \"labels.pig\" | translate }}\n                </th>\n            </tr>\n            <tbody>\n                <tr *ngFor=\"\n            let item of planejOperacao.planejOperacaoTanque | removeExcluidos;\n            let i = index\n          \" (click)=\"selected(item, i)\" [ngClass]=\"{ info: i + 1 === tanqueAux.sequencia }\">\n                    <td>\n                        {{ item.tanqueId }}\n                    </td>\n                    <td>\n                        {{ item.dtIniOper | date: 'dd/MM/yyyy'}}\n                    </td>\n                    <td>\n                        {{ item.dtFimOper | date: 'dd/MM/yyyy'}}\n                    </td>\n                    <td>\n                        {{ item.volProgramado | formatCurrency: 0 }}\n                    </td>\n                    <td>\n                        {{ item.vazao | formatCurrency: 3 }}\n                    </td>\n                    <td>\n                        {{ item.pig }}\n                    </td>\n                </tr>\n                <tr *ngIf=\"\n            !planejOperacao || planejOperacao.planejOperacaoTanque.length === 0\n          \">\n                    <th colspan=\"6\" style=\"text-align: center;\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</div>\n\n<div class=\"row\" *ngIf=\"showAdd\">\n    <div class=\"col-lg-12\">\n        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n            <app-validacoes></app-validacoes>\n            <div class=\"row\">\n                <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                    <app-pesquisa-tanque id=\"tanque\" name=\"tanque\" label=\"tanque\" modalTitle=\"tanque\" tipoDeposito=\"T\"\n                        [(ngModel)]=\"data.tanqueId\" [disabled]=\"isDetail()\" [required]=\"true\" autofocus>\n                    </app-pesquisa-tanque>\n                </div>\n                <div class=\"col-lg-9 col-md-6 col-sm-12\">\n                    <div class=\"custom-control custom-checkbox uni-checkbox\">\n                        <input id=\"pig\" name=\"ativo\" [ngModel]=\"data.flagPig === 'S'\"\n                            (ngModelChange)=\"data.flagPig = $event ? 'S' : 'N'\" [disabled]=\"isDetail()\"\n                            class=\"custom-control-input checkbox-success\" type=\"checkbox\" />\n                        <label class=\"custom-control-label\" for=\"pig\">{{\n                            \"labels.pig\" | translate\n                            }}</label>\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=\"inicioOper\">{{ \"labels.inicioOper\" | translate }}</label>\n                        <app-data id=\"inicioOper\" name=\"inicioOper\" [(ngModel)]=\"data.dtIniOper\" class=\"dataHora\"\n                            [disabled]=\"isDetail()\" [formatDateTime]=\"mascara.getFormatDataHorMin\"></app-data>\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=\"fimOper\">{{ \"labels.fimOper\" | translate }}</label>\n                        <app-data id=\"fimOper\" name=\"fimOper\" [(ngModel)]=\"data.dtFimOper\" class=\"dataHora\"\n                            [disabled]=\"isDetail()\" [formatDateTime]=\"mascara.getFormatDataHorMin\"></app-data>\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=\"volProgramado\">{{\n                            \"labels.volProgramado\" | translate\n                            }}</label>\n                        <input id=\"volProgramado\" name=\"volProgramado\" [(ngModel)]=\"data.volProgramado\" maxlength=\"15\"\n                            class=\"form-control form-control-sm\" type=\"text\" currencyMask [disabled]=\"isDetail()\"\n                            [options]=\"{prefix: '', thousands: '.', decimal: ',', precision: 0}\" />\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=\"vazao\">{{ \"labels.vazao\" | translate }}</label>\n                        <input id=\"vazao\" name=\"vazao\" [(ngModel)]=\"data.vazao\" maxlength=\"19\"\n                            class=\"form-control form-control-sm\" type=\"text\" currencyMask [disabled]=\"isDetail()\"\n                            [options]=\"{prefix: '', thousands: '.', decimal: ',', precision: 3}\" />\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\" *ngIf=\"actionForm !== 2\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <button class=\"btn btn-success mr-1\" type=\"submit\">\n                            {{ \"buttons.salvar\" | translate }}\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>");

/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-dados-item-form/plano-operacao1-dados-item-form.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1-dados-item-form/plano-operacao1-dados-item-form.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: PlanoOperacao1DadosItemFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1DadosItemFormComponent", function() { return PlanoOperacao1DadosItemFormComponent; });
/* 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 app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../plano-operacao1.service */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.service.ts");
/* harmony import */ var _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../plano-operacao1.constants */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.constants.ts");
/* harmony import */ var _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../plano-operacao1.model */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.ts");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _programacao_navio_programacao_navio_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../programacao-navio/programacao-navio.service */ "./src/app/pages/operacao/programacao-navio/programacao-navio.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-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 PlanoOperacao1DadosItemFormComponent = /** @class */ (function (_super) {
    __extends(PlanoOperacao1DadosItemFormComponent, _super);
    function PlanoOperacao1DadosItemFormComponent(messageService, materialService, destinatarioService, activatedRoute, service, funcoes, permissoesUtils, programacaoNavioService) {
        var _this = _super.call(this, new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacao1Constants"](), funcoes) || this;
        _this.messageService = messageService;
        _this.materialService = materialService;
        _this.destinatarioService = destinatarioService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.programacaoNavioService = programacaoNavioService;
        _this.programacaoNavio = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__["ProgramacaoNavioDto"]();
        _this.dados = [];
        _this.outPlanejOperacao = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.navActive = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.showAdd = false;
        _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__["PlanejOperacao"]();
        _this.dataAux = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__["PlanejOperacao"]();
        _this.constantes = new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacao1Constants"]();
        _this.hasDados = false;
        return _this;
    }
    PlanoOperacao1DadosItemFormComponent.prototype.ngOnInit = function () {
        if (!this.dados) {
            this.dados = [];
        }
    };
    PlanoOperacao1DadosItemFormComponent.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.programacaoNavio && this.programacaoNavio.programacaoNavioId) {
            this.carregaCombos();
        }
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    PlanoOperacao1DadosItemFormComponent.prototype.carregaCombos = function () {
        var _this = this;
        if (!this.produtos) {
            this.service.getByProdutos(this.programacaoNavio.programacaoNavioId).subscribe(function (resp) {
                _this.produtos = resp;
            });
        }
        if (!this.clientes) {
            this.service.getByClientes(this.programacaoNavio.programacaoNavioId).subscribe(function (resp) {
                _this.clientes = resp;
            });
        }
    };
    PlanoOperacao1DadosItemFormComponent.prototype.selected = function (item) {
        var _this = this;
        if (item) {
            if (item.programacaoNavioId > 0) {
                // Para tratar os produtos da PlanejOperacao
                var object = { programacaoNavioId: item.programacaoNavioId, item: item.item };
                this.service._getById(object).subscribe(function (resp) {
                    if (resp) {
                        resp.planejOperacaoTanque.map(function (res) {
                            if (res.dtIniOper) {
                                res.scheduledBegin = moment__WEBPACK_IMPORTED_MODULE_13__(res.dtIniOper).format('DD/MM/YYYY HH:mm:ss');
                            }
                            if (res.dtFimOper) {
                                res.scheduledEnd = moment__WEBPACK_IMPORTED_MODULE_13__(res.dtFimOper).format('DD/MM/YYYY HH:mm:ss');
                            }
                        });
                        _this.outPlanejOperacao.emit(resp);
                        _this.dataAux = resp;
                        _this.dataAux.sequencia = item.sequencia;
                        _this.dataAux.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
                    }
                });
            }
            else {
                // Para tratar os produtos da ProgramacaoNavioItem
                var material = this.materialService.getById(this.funcoesService.isUndefinedOrNull(item.materialId) ? "" : item.materialId);
                var cliente = this.destinatarioService.getById(this.funcoesService.isUndefinedOrNull(item.destinatarioId) ? 0 : item.destinatarioId);
                Object(rxjs__WEBPACK_IMPORTED_MODULE_14__["forkJoin"])([material, cliente]).subscribe(function (result) {
                    item.material = result[0];
                    item.cliente = result[1];
                    _this.outPlanejOperacao.emit(item);
                    _this.dataAux = item;
                    _this.dataAux.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
                });
            }
        }
    };
    PlanoOperacao1DadosItemFormComponent.prototype.navStatus = function (n, a) {
        this.navActive.emit({ nav: n, active: a });
    };
    PlanoOperacao1DadosItemFormComponent.prototype.back = function () {
        this.showAdd = false;
        this.data.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
        this.navStatus(1, true);
        this.isDoCheck = false;
    };
    PlanoOperacao1DadosItemFormComponent.prototype.create = function () {
        this.showAdd = true;
        this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__["PlanejOperacao"]();
        this.data.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
        this.validarProgramacaoLiberada();
        this.data.programacaoNavioId = this.programacaoNavio.programacaoNavioId;
        this.navStatus(1, true);
        if (this.funcoes.isUndefinedOrNull(this.dados)) {
            this.dados = [];
        }
    };
    PlanoOperacao1DadosItemFormComponent.prototype.detail = function () {
        this.showAdd = true;
        this.data = this.dataAux;
        this.data.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail;
        this.navStatus(1, true);
    };
    PlanoOperacao1DadosItemFormComponent.prototype.edit = function () {
        this.showAdd = true;
        this.data = this.dataAux;
        this.data.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit;
        this.validarProgramacaoLiberada();
        this.navStatus(1, true);
    };
    PlanoOperacao1DadosItemFormComponent.prototype.remove = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.data = this.dataAux;
                        return [4 /*yield*/, this.validaPermiteExcluir(this.programacaoNavio.programacaoNavioId)];
                    case 1:
                        if (_a.sent()) {
                            return [2 /*return*/];
                        }
                        this.messageService.removeConfirm(function () {
                            _this.service.remove(_this.data).subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                                if (!result.validationResult.isValid) {
                                    _this.messageService.warning("titles.planoOperacao1", _this.mensagens[0]);
                                }
                                else {
                                    _this.messageService.removeSuccess();
                                    _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__["PlanejOperacao"]();
                                    _this.dataAux = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__["PlanejOperacao"]();
                                    _this.dataResult.emit(result);
                                }
                            });
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacao1DadosItemFormComponent.prototype.validarProgramacaoLiberada = function () {
        if (this.funcoesService.isPositive(this.programacaoNavio.regLaudo)) {
            this.messageService.warning("titles.planoOperacao1", "messages.programacaoLiberadaAlteracoesNaoAtualizaLaudo");
        }
    };
    PlanoOperacao1DadosItemFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = 'Manut Planej Operação';
        this.service
            .save(this.data, this.funcoes.isEdit(this.data.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoes.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.planoOperacao1");
                _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__["PlanejOperacao"]();
                _this.dataAux = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_12__["PlanejOperacao"]();
                _this.dataResult.emit(result);
                _this.back();
            }
        });
    };
    PlanoOperacao1DadosItemFormComponent.prototype.setSequencia = function () {
        if (this.funcoes.isUndefinedOrNull(this.data.item) || this.data.item === 0) {
            this.data.sequencia = this.dados.length + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    PlanoOperacao1DadosItemFormComponent.prototype.isDetail = function () {
        return this.funcoes.isDetail(this.data.actionForm);
    };
    PlanoOperacao1DadosItemFormComponent.prototype.trataProduto = function () {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(this.data.materialId)) {
            var produto = this.produtos.find(function (p) { return p.materialId === _this.data.materialId; });
            if (produto) {
                this.data.campoMarcado = produto.campoMarcado;
            }
        }
    };
    PlanoOperacao1DadosItemFormComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.dataAux);
        });
    };
    PlanoOperacao1DadosItemFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PlanoOperacao1DadosItemFormComponent.prototype.validaPermiteExcluir = function (programacaoNavioId) {
        return __awaiter(this, void 0, void 0, function () {
            var resp, error_1;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].isNotPositive(this.dataAux.destinatarioId)) {
                            this.messageService.warning("titles.planoOperacao", "messages.exclusaoNaoPermitida");
                            return [2 /*return*/, true];
                        }
                        _a.label = 1;
                    case 1:
                        _a.trys.push([1, 3, , 4]);
                        return [4 /*yield*/, this.programacaoNavioService.getById(programacaoNavioId).toPromise()];
                    case 2:
                        resp = _a.sent();
                        if (resp) {
                            if (resp.sitReg === "E") {
                                this.messageService.warning("titles.planoOperacao", "messages.programacaoExcluida");
                                return [2 /*return*/, true];
                            }
                            if (resp.codSitNavio === 3) {
                                this.messageService.warning("titles.planoOperacao", "messages.programacaoConcluida");
                                return [2 /*return*/, true];
                            }
                            if (resp.codSitNavio === 4) {
                                this.messageService.warning("titles.planoOperacao", "messages.programacaoCancelada");
                                return [2 /*return*/, true];
                            }
                        }
                        return [2 /*return*/, false];
                    case 3:
                        error_1 = _a.sent();
                        console.error("Erro ao obter dados:", error_1);
                        return [2 /*return*/, false];
                    case 4: return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacao1DadosItemFormComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_8__["MaterialService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacao1Service"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _programacao_navio_programacao_navio_service__WEBPACK_IMPORTED_MODULE_15__["ProgramacaoNavioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1DadosItemFormComponent.prototype, "programacaoNavio", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], PlanoOperacao1DadosItemFormComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1DadosItemFormComponent.prototype, "outPlanejOperacao", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1DadosItemFormComponent.prototype, "dataResult", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1DadosItemFormComponent.prototype, "navActive", void 0);
    PlanoOperacao1DadosItemFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-plano-operacao1-dados-item-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao1-dados-item-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-dados-item-form/plano-operacao1-dados-item-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_8__["MaterialService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacao1Service"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _programacao_navio_programacao_navio_service__WEBPACK_IMPORTED_MODULE_15__["ProgramacaoNavioService"]])
    ], PlanoOperacao1DadosItemFormComponent);
    return PlanoOperacao1DadosItemFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-equip-form/plano-operacao1-equip-form.component.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1-equip-form/plano-operacao1-equip-form.component.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: PlanoOperacao1EquipFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1EquipFormComponent", function() { return PlanoOperacao1EquipFormComponent; });
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.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_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/cadastro/equipamento/equipamento.service */ "./src/app/pages/cadastro/equipamento/equipamento.service.ts");
/* harmony import */ var _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../plano-operacao1.service */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.service.ts");
/* harmony import */ var _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../plano-operacao1.model */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.ts");
/* harmony import */ var _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../plano-operacao1.constants */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.constants.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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 PlanoOperacao1EquipFormComponent = /** @class */ (function (_super) {
    __extends(PlanoOperacao1EquipFormComponent, _super);
    function PlanoOperacao1EquipFormComponent(messageService, activatedRoute, service, configuracao, funcoes, equipamentoService, loginService) {
        var _this = _super.call(this, new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacao1Constants"](), funcoes) || this;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.funcoes = funcoes;
        _this.equipamentoService = equipamentoService;
        _this.loginService = loginService;
        _this.programacaoNavio = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_10__["ProgramacaoNavioDto"]();
        _this.planejOperacao = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacao"]();
        _this.outPlanejOperacao = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        _this.navActive = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        _this.constantes = new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacao1Constants"]();
        _this.actionForm = 0;
        _this.showAdd = false;
        _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacaoEquip"]();
        _this.equipAux = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacaoEquip"]();
        _this.planejOperacaoEquipAux = [];
        _this.hasDados = false;
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        _this.tiposEquipamento = [
            { name: "Linha", value: "L" },
            { name: "Trena", value: "T" },
            { name: "Termometro", value: "E" },
            { name: "Mangote", value: "M" },
            { name: "Bomba", value: "B" },
            { name: "Alinhamento", value: "A" }
        ];
        _this.equiptoPorTanque = false;
        _this.loadConfig = function () {
            _this.equiptoPorTanque = _this.funcoes.isBoolean(_this.configuracao.lerConfig("OPE", "EquiptoPorTanque"));
        };
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    PlanoOperacao1EquipFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        if (!this.planejOperacao.planejOperacaoEquip) {
            this.planejOperacao.planejOperacaoEquip = [];
        }
        this.equipamentoService.get().subscribe(function (resp) { return _this.equipamentos = resp; });
        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
    };
    PlanoOperacao1EquipFormComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.planejOperacao.planejOperacaoEquip &&
                this.planejOperacao.planejOperacaoEquip.length > 0 &&
                this.planejOperacao.planejOperacaoEquip.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.planejOperacao.planejOperacaoEquip) {
                for (var i = 1; i <= this.planejOperacao.planejOperacaoEquip.length; i++) {
                    this.planejOperacao.planejOperacaoEquip[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    PlanoOperacao1EquipFormComponent.prototype.selected = function (item, index) {
        this.equipAux = item;
        this.equipAux.sequencia = index + 1;
    };
    PlanoOperacao1EquipFormComponent.prototype.navStatus = function (n, a) {
        this.navActive.emit({ nav: n, active: a });
    };
    PlanoOperacao1EquipFormComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].index;
        this.isDoCheck = false;
    };
    PlanoOperacao1EquipFormComponent.prototype.create = function () {
        this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacaoEquip"]();
        if (this.equiptoPorTanque) {
            if (this.funcoes.isUndefinedOrNull(this.tanqueId)) {
                this.messageService.warning('titles.planoOperacao1', 'messages.informeTanque');
                return;
            }
            this.data.tanqueId = this.tanqueId;
        }
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].create;
        this.validarProgramacaoLiberada();
        if (this.funcoes.isUndefinedOrNull(this.planejOperacao.planejOperacaoEquip)) {
            this.planejOperacao.planejOperacaoEquip = [];
        }
    };
    PlanoOperacao1EquipFormComponent.prototype.detail = function () {
        this.data = this.equipAux;
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].detail;
        if (this.data.equipamento) {
            this.data.tipoEquipamento = this.data.equipamento.tipoEquipto;
            this.getByTypeEquipamento();
            this.trataEquipamento();
        }
    };
    PlanoOperacao1EquipFormComponent.prototype.edit = function () {
        this.data = this.equipAux;
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].edit;
        this.validarProgramacaoLiberada();
        if (this.data.equipamento) {
            this.data.tipoEquipamento = this.data.equipamento.tipoEquipto;
            this.getByTypeEquipamento();
            this.trataEquipamento();
        }
    };
    PlanoOperacao1EquipFormComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.equipAux;
        this.messageService.removeConfirm(function () {
            if (_this.funcoes.isUndefinedOrNull(_this.data.subItem)) {
                var i = _this.planejOperacao.planejOperacaoEquip.findIndex(function (x) { return x.subItem === _this.data.subItem; });
                _this.planejOperacao.planejOperacaoEquip.splice(i, 1);
            }
            else {
                _this.service.removerEquipamento(_this.data).subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result.validationResult);
                    if (!result.validationResult.isValid) {
                        _this.messageService.error("titles.planoOperacao1", _this.mensagens[0]);
                    }
                    else {
                        _this.messageService.removeSuccess();
                        _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacaoEquip"]();
                        _this.outPlanejOperacao.emit(_this.planejOperacao);
                        _this.back();
                    }
                });
            }
        });
    };
    PlanoOperacao1EquipFormComponent.prototype.validarProgramacaoLiberada = function () {
        if (this.funcoes.isPositive(this.programacaoNavio.regLaudo)) {
            this.messageService.warning("titles.planoOperacao1", "messages.programacaoLiberadaAlteracoesNaoAtualizaLaudo");
        }
    };
    PlanoOperacao1EquipFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manut. Rotina";
        this.planejOperacaoEquipAux = this.planejOperacao.planejOperacaoEquip.map(function (e) { return e; });
        if (this.funcoes.isPositive(this.data.subItem)) {
            var i = this.planejOperacao.planejOperacaoEquip.findIndex(function (x) { return x.subItem === _this.data.subItem; });
            this.planejOperacao.planejOperacaoEquip[i] = this.data;
        }
        else {
            this.planejOperacao.planejOperacaoEquip.push(this.data);
        }
        var isProgramacaoNavioItem = !this.funcoes.isPositive(this.planejOperacao.item);
        this.planejOperacao.programacaoNavioId = this.programacaoNavio.programacaoNavioId;
        this.service
            .save(this.planejOperacao, !isProgramacaoNavioItem)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _this.planejOperacao.planejOperacaoEquip = _this.planejOperacaoEquipAux.map(function (e) { return e; });
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoes.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.planoOperacao1");
                _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacaoEquip"]();
                _this.planejOperacao = result;
                _this.outPlanejOperacao.emit(_this.planejOperacao);
                _this.back();
            }
        });
    };
    PlanoOperacao1EquipFormComponent.prototype.setSequencia = function () {
        if (this.funcoes.isUndefinedOrNull(this.data.item) || this.data.item === 0) {
            this.data.sequencia = this.planejOperacao.planejOperacaoEquip.length + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    PlanoOperacao1EquipFormComponent.prototype.isDisabled = function () {
        return this.planejOperacao.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].index;
    };
    PlanoOperacao1EquipFormComponent.prototype.isDetail = function () {
        return this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].detail;
    };
    PlanoOperacao1EquipFormComponent.prototype.getByTypeEquipamento = function () {
        var _this = this;
        this.fEquipamentos = [];
        if (this.data.tipoEquipamento) {
            this.fEquipamentos = this.equipamentos.filter(function (c) { return c.tipoEquipto === _this.data.tipoEquipamento; });
        }
    };
    PlanoOperacao1EquipFormComponent.prototype.trataEquipamento = function () {
        var _this = this;
        if (this.data.equipamentoId) {
            var equipamento = this.equipamentos.find(function (c) { return +c.equipamentoId === +_this.data.equipamentoId; });
            if (equipamento) {
                this.data.equipamento = equipamento;
            }
            var tipo = this.tiposEquipamento.find(function (c) { return c.value === _this.data.tipoEquipamento; });
            if (tipo) {
                this.data.equipamento.descrTipoEquipto = tipo.name;
            }
        }
    };
    PlanoOperacao1EquipFormComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_9__["PlanoOperacao1Service"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: app_pages_cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_8__["EquipamentoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_0__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1EquipFormComponent.prototype, "programacaoNavio", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1EquipFormComponent.prototype, "planejOperacao", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", String)
    ], PlanoOperacao1EquipFormComponent.prototype, "tanqueId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1EquipFormComponent.prototype, "outPlanejOperacao", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1EquipFormComponent.prototype, "navActive", void 0);
    PlanoOperacao1EquipFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-plano-operacao1-equip-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao1-equip-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-equip-form/plano-operacao1-equip-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_9__["PlanoOperacao1Service"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            app_pages_cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_8__["EquipamentoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_0__["LoginService"]])
    ], PlanoOperacao1EquipFormComponent);
    return PlanoOperacao1EquipFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_12__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-filter/plano-operacao1-filter.component.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1-filter/plano-operacao1-filter.component.ts ***!
  \***********************************************************************************************************/
/*! exports provided: PlanoOperacao1FilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1FilterComponent", function() { return PlanoOperacao1FilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../plano-operacao1.service */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.service.ts");
/* harmony import */ var _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../plano-operacao1.model */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.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 PlanoOperacao1FilterComponent = /** @class */ (function () {
    function PlanoOperacao1FilterComponent(loginService, message, service) {
        this.loginService = loginService;
        this.message = message;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.blockFields = false;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.filialId = loginService.getLogin().filialId;
    }
    PlanoOperacao1FilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filter)
            this.service.filter = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_5__["PlanejOperacaoFilterVo"]();
    };
    PlanoOperacao1FilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            if (this.service.filter.periodoDe > this.service.filter.ate) {
                this.message.warning("titles.planoOperacao1", "messages.dataDeMaiordataAte");
                return;
            }
            this.filtrar.emit();
        }
    };
    PlanoOperacao1FilterComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacao1Service"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1FilterComponent.prototype, "filtrar", void 0);
    PlanoOperacao1FilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-plano-operacao1-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao1-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-filter/plano-operacao1-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacao1Service"]])
    ], PlanoOperacao1FilterComponent);
    return PlanoOperacao1FilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-form/plano-operacao1-form.component.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1-form/plano-operacao1-form.component.ts ***!
  \*******************************************************************************************************/
/*! exports provided: PlanoOperacao1FormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1FormComponent", function() { return PlanoOperacao1FormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.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 _login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../plano-operacao1.service */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.service.ts");
/* harmony import */ var _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../plano-operacao1.model */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../plano-operacao1.constants */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.constants.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var PlanoOperacao1FormComponent = /** @class */ (function (_super) {
    __extends(PlanoOperacao1FormComponent, _super);
    function PlanoOperacao1FormComponent(router, messageService, activatedRoute, service, funcoesService, loginService, permissoesUtils) {
        var _this = _super.call(this, new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_9__["PlanoOperacao1Constants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__["PlanoOperacaoDto"]();
        _this.constantes = new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_9__["PlanoOperacao1Constants"]();
        _this.showComponent = false;
        _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;
    }
    PlanoOperacao1FormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    PlanoOperacao1FormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/planoOperacao1"]);
    };
    PlanoOperacao1FormComponent.prototype.refresh = function () {
        var _this = this;
        var programacaoNavioId = this.activatedRoute.snapshot.paramMap.get("programacaoNavioId");
        if (programacaoNavioId) {
            this.service.getProgramacao(programacaoNavioId).subscribe(function (resp) {
                _this.data = resp;
                _this.showComponent = true;
            });
        }
        this.showButton = true;
    };
    PlanoOperacao1FormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_6__["PlanoOperacao1Service"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] }
    ]; };
    PlanoOperacao1FormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-plano-operacao1-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao1-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-form/plano-operacao1-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_6__["PlanoOperacao1Service"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"]])
    ], PlanoOperacao1FormComponent);
    return PlanoOperacao1FormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-index/plano-operacao1-index.component.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1-index/plano-operacao1-index.component.ts ***!
  \*********************************************************************************************************/
/*! exports provided: PlanoOperacao1IndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1IndexComponent", function() { return PlanoOperacao1IndexComponent; });
/* harmony import */ var _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../plano-operacao1.model */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../plano-operacao1.constants */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.constants.ts");
/* harmony import */ var _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../plano-operacao1.service */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.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 PlanoOperacao1IndexComponent = /** @class */ (function (_super) {
    __extends(PlanoOperacao1IndexComponent, _super);
    function PlanoOperacao1IndexComponent(router, message, service, datatables, configuracao, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacao1Constants"](), funcoes) || this;
        _this.router = router;
        _this.message = message;
        _this.service = service;
        _this.datatables = datatables;
        _this.configuracao = configuracao;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_0__["ProgramacaoNavioDto"]();
        _this.constantes = new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacao1Constants"]();
        _this.mensagens = [];
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () {
            _this.cWebModRelPlanejOper = _this.funcoes.getValue(_this.configuracao.lerConfig("WEB", "CWebModRelPlanejOper"), "S");
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PlanoOperacao1IndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    _this.service.filter = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_0__["PlanejOperacaoFilterVo"]();
                    _this.funcoes.openModal("plano-operacao1-filter");
                }
                _this.refresh();
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    PlanoOperacao1IndexComponent.prototype.filtrar = function () {
        jQuery("#plano-operacao1-filter").modal("show");
    };
    PlanoOperacao1IndexComponent.prototype.executaFiltro = function () {
        jQuery("#plano-operacao1-filter").modal("hide");
        this.refresh();
    };
    PlanoOperacao1IndexComponent.prototype.refresh = function () {
        var _this = this;
        if (!this.service.filter.periodoDe || !this.service.filter.ate) {
            return;
        }
        this.service.getByFilter(this.service.filter).subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataString("programacaoNavioId", "programacao", "10%"),
                _this.datatables.getDataString("regLaudo", "laudo", "10%"),
                _this.datatables.getDataString("fantasia", "navio"),
                _this.datatables.getDataDateTime("dtPrograma", "data", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("descrAgencia", "agencia"),
                _this.datatables.getDataString("descrSitNavio", "situacao", "20%")
            ];
            _this.datatables.datatable("planoOperacao1", columns, resp, function (aData) {
                _this.data = aData;
            }, 0, 'desc');
        });
    };
    PlanoOperacao1IndexComponent.prototype.edit = function () {
        if (!!(this.data.programacaoNavioId)) {
            this.router.navigate([this.target + "/operacao/planoOperacao1/edit/" + this.data.programacaoNavioId]);
        }
    };
    PlanoOperacao1IndexComponent.prototype.detail = function () {
        if (!!(this.data.programacaoNavioId)) {
            this.router.navigate([this.target + "/operacao/planoOperacao1/detail/" + this.data.programacaoNavioId]);
        }
    };
    PlanoOperacao1IndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    PlanoOperacao1IndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PlanoOperacao1IndexComponent.prototype.print = function () {
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            jQuery("#modalPrint").modal("show");
        });
    };
    PlanoOperacao1IndexComponent.prototype.confirmaImpressao = function (tipoImpressao) {
        switch (tipoImpressao) {
            case "relatorio":
                this.printList();
                break;
            case "planoCarga":
                this.printPlanoCarga();
                break;
            default:
                break;
        }
    };
    PlanoOperacao1IndexComponent.prototype.printList = function () {
        if (!this.service.filter.periodoDe || !this.service.filter.ate) {
            return;
        }
        this.constantes.paramRelatorio = {
            periodoDe: this.service.filter.periodoDe,
            ate: this.service.filter.ate,
            destinatarioIdNavio: this.funcoes.isNotUndefinedOrNull(this.service.filter.destinatarioIdNavio) ? this.service.filter.destinatarioIdNavio : 0,
            situacao: this.funcoes.isNotUndefinedOrNull(this.service.filter.situacao) ? this.service.filter.situacao : ""
        };
        _super.prototype.print.call(this);
    };
    PlanoOperacao1IndexComponent.prototype.printPlanoCarga = function () {
        if (!this.funcoes.isPositive(this.data.programacaoNavioId)) {
            this.message.warning("titles.planoOperacao1", "messages.selecioneUmRegistro");
            return;
        }
        if (this.funcoes.isUndefinedOrNull(this.cWebModRelPlanejOper)) {
            this.message.warning("titles.planoOperacao1", "messages.modRelNaoConfigurado");
            return;
        }
        this.funcoes.reportInvoc.invocaRelatorio(this.cWebModRelPlanejOper.trim(), this.constantes.reportTitulo, {
            programacaoNavioId: this.data.programacaoNavioId
        });
    };
    PlanoOperacao1IndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacao1Service"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    PlanoOperacao1IndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-plano-operacao1-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao1-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-index/plano-operacao1-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacao1Service"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], PlanoOperacao1IndexComponent);
    return PlanoOperacao1IndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-item-form/plano-operacao1-item-form.component.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1-item-form/plano-operacao1-item-form.component.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: PlanoOperacao1ItemFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1ItemFormComponent", function() { return PlanoOperacao1ItemFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../plano-operacao1.model */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.ts");
/* harmony import */ var _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../plano-operacao1.constants */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.constants.ts");
/* harmony import */ var _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../plano-operacao1.service */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.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 PlanoOperacao1ItemFormComponent = /** @class */ (function (_super) {
    __extends(PlanoOperacao1ItemFormComponent, _super);
    function PlanoOperacao1ItemFormComponent(router, activatedRoute, funcoesService, permissoesUtils, service) {
        var _this = _super.call(this, new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_6__["PlanoOperacao1Constants"](), funcoesService) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.programacaoNavio = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_5__["ProgramacaoNavioDto"]();
        _this.planejOperacaos = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_5__["PlanejOperacao"]();
        _this.disabled = false;
        _this.isRefresh = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_5__["PlanejOperacao"]();
        _this.navStatus = { nav: 0, active: true };
        _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;
    }
    PlanoOperacao1ItemFormComponent.prototype.ngOnInit = function () {
    };
    PlanoOperacao1ItemFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/operacao/planoOperacao1"]);
    };
    PlanoOperacao1ItemFormComponent.prototype.onNavChange = function (aba) {
    };
    PlanoOperacao1ItemFormComponent.prototype.refreshPlanejOperacao = function (planejOperacao) {
        var _this = this;
        this.isRefresh.emit(true);
        this.data = planejOperacao;
        if (this.data) {
            if (this.data.programacaoNavioId > 0) {
                var object = { programacaoNavioId: this.data.programacaoNavioId, item: this.data.item };
                this.service._getById(object).subscribe(function (resp) {
                    resp.planejOperacaoTanque.map(function (res) {
                        if (res.flagPig === "S") {
                            res.pig = "Sim";
                        }
                        else {
                            res.pig = "Não";
                        }
                    });
                    _this.data.planejOperacaoEquip = resp.planejOperacaoEquip;
                    _this.data.planejOperacaoTanque = resp.planejOperacaoTanque;
                });
            }
            else {
                this.data.planejOperacaoEquip = this.funcoesService.isNotUndefinedOrNull(this.data.planejOperacaoEquip) ? this.data.planejOperacaoEquip : [];
                this.data.planejOperacaoTanque = this.funcoesService.isNotUndefinedOrNull(this.data.planejOperacaoTanque) ? this.data.planejOperacaoTanque : [];
            }
        }
    };
    PlanoOperacao1ItemFormComponent.prototype.hasSelected = function () {
        return this.funcoesService.isNotUndefinedOrNull(this.data) &&
            this.funcoesService.isNotUndefinedOrNull(this.data.item);
    };
    PlanoOperacao1ItemFormComponent.prototype.hasNavActive = function (nav) {
        if (this.navStatus.active) {
            return true;
        }
        return this.navStatus.nav === 0 ||
            this.navStatus.nav === 1 ||
            (nav === this.navStatus.nav && (this.navStatus.nav === 2 || this.navStatus.nav === 3));
    };
    PlanoOperacao1ItemFormComponent.prototype.thatNavActive = function (navStatus) {
        this.navStatus = navStatus;
    };
    PlanoOperacao1ItemFormComponent.prototype.getTanqueSel = function (tanqueId) {
        this.tanqueId = tanqueId;
    };
    PlanoOperacao1ItemFormComponent.prototype.resultSave = function () {
        this.isRefresh.emit(true);
    };
    PlanoOperacao1ItemFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"] },
        { type: _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_7__["PlanoOperacao1Service"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1ItemFormComponent.prototype, "programacaoNavio", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1ItemFormComponent.prototype, "planejOperacaos", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1ItemFormComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1ItemFormComponent.prototype, "isRefresh", void 0);
    PlanoOperacao1ItemFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-plano-operacao1-item-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao1-item-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-item-form/plano-operacao1-item-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_7__["PlanoOperacao1Service"]])
    ], PlanoOperacao1ItemFormComponent);
    return PlanoOperacao1ItemFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-print-modal/plano-operacao1-print-modal.component.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1-print-modal/plano-operacao1-print-modal.component.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: PlanoOperacao1PrintModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1PrintModalComponent", function() { return PlanoOperacao1PrintModalComponent; });
/* 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_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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 PlanoOperacao1PrintModalComponent = /** @class */ (function () {
    function PlanoOperacao1PrintModalComponent() {
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    PlanoOperacao1PrintModalComponent.prototype.ngOnInit = function () {
        this.tipoSelecionado = "";
        this.initListaTiposImpressao();
    };
    PlanoOperacao1PrintModalComponent.prototype.initListaTiposImpressao = function () {
        this.tiposImpressao = [
            { value: "relatorio", label: "labels.relatorio" },
            { value: "planoCarga", label: "labels.planoDeOperacao" }
        ];
    };
    PlanoOperacao1PrintModalComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.outConfirma.emit(this.tipoSelecionado);
        this.tipoSelecionado = "";
        jQuery("#modalPrint").modal("hide");
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1PrintModalComponent.prototype, "outConfirma", void 0);
    PlanoOperacao1PrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-plano-operacao1-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao1-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-print-modal/plano-operacao1-print-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [])
    ], PlanoOperacao1PrintModalComponent);
    return PlanoOperacao1PrintModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-tanque-form/plano-operacao1-tanque-form.component.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1-tanque-form/plano-operacao1-tanque-form.component.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: PlanoOperacao1TanqueFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1TanqueFormComponent", function() { return PlanoOperacao1TanqueFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../plano-operacao1.service */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.service.ts");
/* harmony import */ var _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../plano-operacao1.model */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.ts");
/* harmony import */ var _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../plano-operacao1.constants */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.constants.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.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 PlanoOperacao1TanqueFormComponent = /** @class */ (function () {
    function PlanoOperacao1TanqueFormComponent(messageService, activatedRoute, service, funcoes, loginService, router) {
        this.messageService = messageService;
        this.activatedRoute = activatedRoute;
        this.service = service;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.router = router;
        this.programacaoNavio = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__["ProgramacaoNavioDto"]();
        this.planejOperacao = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__["PlanejOperacao"]();
        this.outPlanejOperacao = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.navActive = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.getTanqueSel = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.actionForm = 0;
        this.showAdd = false;
        this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__["PlanejOperacaoTanque"]();
        this.tanqueAux = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__["PlanejOperacaoTanque"]();
        this.planejOperacaoTanqueAux = [];
        this.hasDados = false;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        this.constantes = new _plano_operacao1_constants__WEBPACK_IMPORTED_MODULE_8__["PlanoOperacao1Constants"]();
        this.target = this.funcoes.getTargetLocation();
    }
    PlanoOperacao1TanqueFormComponent.prototype.ngOnInit = function () {
        if (!this.planejOperacao.planejOperacaoTanque) {
            this.planejOperacao.planejOperacaoTanque = [];
        }
        this.filialId = this.loginService.getLogin().filialId;
    };
    PlanoOperacao1TanqueFormComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.planejOperacao.planejOperacaoTanque &&
                this.planejOperacao.planejOperacaoTanque.length > 0 &&
                this.planejOperacao.planejOperacaoTanque.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.planejOperacao.planejOperacaoTanque) {
                for (var i = 1; i <= this.planejOperacao.planejOperacaoTanque.length; i++) {
                    this.planejOperacao.planejOperacaoTanque[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    PlanoOperacao1TanqueFormComponent.prototype.selected = function (item, index) {
        this.tanqueAux = item;
        this.tanqueAux.sequencia = index + 1;
        if (this.tanqueAux) {
            this.getTanqueSel.emit(this.tanqueAux.tanqueId);
        }
    };
    PlanoOperacao1TanqueFormComponent.prototype.navStatus = function (n, a) {
        this.navActive.emit({ nav: n, active: a });
    };
    PlanoOperacao1TanqueFormComponent.prototype.back = function (mostrarFiltro) {
        if (mostrarFiltro === void 0) { mostrarFiltro = false; }
        this.showAdd = false;
        if (this.data) {
            this.getTanqueSel.emit(this.data.tanqueId);
        }
        this.router.navigate([this.target + "/operacao/planoOperacao1"]);
        this.isDoCheck = false;
    };
    PlanoOperacao1TanqueFormComponent.prototype.create = function () {
        this.showAdd = true;
        this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__["PlanejOperacaoTanque"]();
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create;
        this.validarProgramacaoLiberada();
        if (this.funcoes.isUndefinedOrNull(this.planejOperacao.planejOperacaoTanque)) {
            this.planejOperacao.planejOperacaoTanque = [];
        }
    };
    PlanoOperacao1TanqueFormComponent.prototype.detail = function () {
        this.showAdd = true;
        this.data = this.tanqueAux;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail;
    };
    PlanoOperacao1TanqueFormComponent.prototype.edit = function () {
        this.showAdd = true;
        this.data = this.tanqueAux;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit;
        this.validarProgramacaoLiberada();
    };
    PlanoOperacao1TanqueFormComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.tanqueAux;
        this.messageService.removeConfirm(function () {
            if (_this.funcoes.isUndefinedOrNull(_this.data.subItem)) {
                var i = _this.planejOperacao.planejOperacaoTanque.findIndex(function (x) { return x.subItem === _this.data.subItem; });
                _this.planejOperacao.planejOperacaoTanque.splice(i, 1);
            }
            else {
                _this.service.removerTanque(_this.data).subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result.validationResult);
                    if (!result.validationResult.isValid) {
                        _this.messageService.error("titles.planoOperacao1", _this.mensagens[0]);
                    }
                    else {
                        _this.messageService.removeSuccess();
                        _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__["PlanejOperacaoTanque"]();
                        _this.outPlanejOperacao.emit(_this.planejOperacao);
                        _this.back(false);
                    }
                });
            }
        });
    };
    PlanoOperacao1TanqueFormComponent.prototype.validarProgramacaoLiberada = function () {
        if (this.funcoes.isPositive(this.programacaoNavio.regLaudo)) {
            this.messageService.warning("titles.planoOperacao1", "messages.programacaoLiberadaAlteracoesNaoAtualizaLaudo");
        }
    };
    PlanoOperacao1TanqueFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manut. Rotina";
        this.planejOperacaoTanqueAux = this.planejOperacao.planejOperacaoTanque.map(function (t) { return t; });
        if (this.funcoes.isPositive(this.data.subItem)) {
            var i = this.planejOperacao.planejOperacaoTanque.findIndex(function (x) { return x.subItem === _this.data.subItem; });
            this.planejOperacao.planejOperacaoTanque[i] = this.data;
        }
        else {
            this.planejOperacao.planejOperacaoTanque.push(this.data);
        }
        var isProgramacaoNavioItem = !this.funcoes.isPositive(this.planejOperacao.item);
        this.planejOperacao.programacaoNavioId = this.programacaoNavio.programacaoNavioId;
        this.service
            .save(this.planejOperacao, !isProgramacaoNavioItem)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _this.planejOperacao.planejOperacaoTanque = _this.planejOperacaoTanqueAux.map(function (t) { return t; });
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoes.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.planoOperacao1");
                _this.data = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_7__["PlanejOperacaoTanque"]();
                _this.planejOperacao = result;
                _this.outPlanejOperacao.emit(_this.planejOperacao);
                _this.back(false);
            }
        });
    };
    PlanoOperacao1TanqueFormComponent.prototype.setSequencia = function () {
        if (this.funcoes.isUndefinedOrNull(this.data.item) || this.data.item === 0) {
            this.data.sequencia = this.planejOperacao.planejOperacaoTanque.length + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    PlanoOperacao1TanqueFormComponent.prototype.isDisabled = function () {
        return this.planejOperacao.actionForm === _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index;
    };
    PlanoOperacao1TanqueFormComponent.prototype.isDetail = function () {
        return this.actionForm === _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail;
    };
    PlanoOperacao1TanqueFormComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_6__["PlanoOperacao1Service"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1TanqueFormComponent.prototype, "programacaoNavio", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1TanqueFormComponent.prototype, "planejOperacao", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1TanqueFormComponent.prototype, "outPlanejOperacao", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1TanqueFormComponent.prototype, "navActive", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacao1TanqueFormComponent.prototype, "getTanqueSel", void 0);
    PlanoOperacao1TanqueFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-plano-operacao1-tanque-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao1-tanque-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao1/plano-operacao1-tanque-form/plano-operacao1-tanque-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _plano_operacao1_service__WEBPACK_IMPORTED_MODULE_6__["PlanoOperacao1Service"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])
    ], PlanoOperacao1TanqueFormComponent);
    return PlanoOperacao1TanqueFormComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.constants.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1.constants.ts ***!
  \*****************************************************************************/
/*! exports provided: PlanoOperacao1Constants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1Constants", function() { return PlanoOperacao1Constants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PlanoOperacao1Constants = /** @class */ (function () {
    function PlanoOperacao1Constants() {
        this.sisFormularioId = 250140;
        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.planoOperacao";
        this.reportId = "CAD0241";
        this.reportTitulo = { "titulo": "Plano de Operação", "subTitulo": "" };
        this.tabela = "PlataformaAlinha";
        this.configs = [];
        this.listaIndex = [
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", 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: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
        this.configs = [
            { sistema: "OPE", parametros: ["EquiptoPorTanque", "ModRelPlanejOperacao"] },
            { sistema: "WEB", parametros: ["CWebModRelPlanejOper"] }
        ];
    }
    return PlanoOperacao1Constants;
}());



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1.model.ts ***!
  \*************************************************************************/
/*! exports provided: PlanoOperacaoDto, PlanejOperacaoDto, ProgramacaoNavioDto, PlanejOperacaoFilterVo, PlanejOperacao, PlanejOperacaoTanque, PlanejOperacaoEquip */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoDto", function() { return PlanoOperacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejOperacaoDto", function() { return PlanejOperacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgramacaoNavioDto", function() { return ProgramacaoNavioDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejOperacaoFilterVo", function() { return PlanejOperacaoFilterVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejOperacao", function() { return PlanejOperacao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejOperacaoTanque", function() { return PlanejOperacaoTanque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejOperacaoEquip", function() { return PlanejOperacaoEquip; });
/* 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");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
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 PlanoOperacaoDto = /** @class */ (function (_super) {
    __extends(PlanoOperacaoDto, _super);
    function PlanoOperacaoDto() {
        var _this = _super.call(this) || this;
        _this.programacaoNavio = new ProgramacaoNavioDto();
        return _this;
    }
    return PlanoOperacaoDto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

var ProgramacaoNavioDto = /** @class */ (function (_super) {
    __extends(ProgramacaoNavioDto, _super);
    function ProgramacaoNavioDto() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ProgramacaoNavioDto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var PlanejOperacaoFilterVo = /** @class */ (function () {
    function PlanejOperacaoFilterVo() {
        this.destinatarioIdNavio = 0;
        this.periodoDe = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('month').toDate();
        this.ate = new Date();
        this.navio = undefined;
    }
    return PlanejOperacaoFilterVo;
}());

var PlanejOperacao = /** @class */ (function (_super) {
    __extends(PlanejOperacao, _super);
    function PlanejOperacao() {
        var _this = _super.call(this) || this;
        _this.actionForm = 0;
        _this.materialId = "";
        _this.destinatarioId = null;
        _this.pressaoMax = 0;
        _this.temperatura = 0;
        _this.planejOperacaoTanque = [];
        _this.planejOperacaoEquip = [];
        _this.campoMarcado = "";
        return _this;
    }
    return PlanejOperacao;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var PlanejOperacaoTanque = /** @class */ (function (_super) {
    __extends(PlanejOperacaoTanque, _super);
    function PlanejOperacaoTanque() {
        var _this = _super.call(this) || this;
        _this.volProgramado = 0;
        _this.vazao = 0;
        _this.flagPig = 'N';
        return _this;
    }
    return PlanejOperacaoTanque;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var PlanejOperacaoEquip = /** @class */ (function (_super) {
    __extends(PlanejOperacaoEquip, _super);
    function PlanejOperacaoEquip() {
        var _this = _super.call(this) || this;
        _this.tipoEquipamento = '';
        return _this;
    }
    return PlanejOperacaoEquip;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.module.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1.module.ts ***!
  \**************************************************************************/
/*! exports provided: PlanoOperacao1Module */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1Module", function() { return PlanoOperacao1Module; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _plano_operacao1_form_plano_operacao1_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plano-operacao1-form/plano-operacao1-form.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-form/plano-operacao1-form.component.ts");
/* harmony import */ var _plano_operacao1_index_plano_operacao1_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plano-operacao1-index/plano-operacao1-index.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-index/plano-operacao1-index.component.ts");
/* harmony import */ var _plano_operacao1_item_form_plano_operacao1_item_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./plano-operacao1-item-form/plano-operacao1-item-form.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-item-form/plano-operacao1-item-form.component.ts");
/* harmony import */ var _plano_operacao1_filter_plano_operacao1_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plano-operacao1-filter/plano-operacao1-filter.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-filter/plano-operacao1-filter.component.ts");
/* harmony import */ var _plano_operacao1_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plano-operacao1.routing.module */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.routing.module.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _plano_operacao1_dados_item_form_plano_operacao1_dados_item_form_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./plano-operacao1-dados-item-form/plano-operacao1-dados-item-form.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-dados-item-form/plano-operacao1-dados-item-form.component.ts");
/* harmony import */ var _plano_operacao1_tanque_form_plano_operacao1_tanque_form_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./plano-operacao1-tanque-form/plano-operacao1-tanque-form.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-tanque-form/plano-operacao1-tanque-form.component.ts");
/* harmony import */ var _plano_operacao1_equip_form_plano_operacao1_equip_form_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./plano-operacao1-equip-form/plano-operacao1-equip-form.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-equip-form/plano-operacao1-equip-form.component.ts");
/* harmony import */ var _plano_operacao1_print_modal_plano_operacao1_print_modal_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./plano-operacao1-print-modal/plano-operacao1-print-modal.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-print-modal/plano-operacao1-print-modal.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 PlanoOperacao1Module = /** @class */ (function () {
    function PlanoOperacao1Module() {
    }
    PlanoOperacao1Module = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _plano_operacao1_index_plano_operacao1_index_component__WEBPACK_IMPORTED_MODULE_3__["PlanoOperacao1IndexComponent"],
                _plano_operacao1_filter_plano_operacao1_filter_component__WEBPACK_IMPORTED_MODULE_5__["PlanoOperacao1FilterComponent"],
                _plano_operacao1_form_plano_operacao1_form_component__WEBPACK_IMPORTED_MODULE_2__["PlanoOperacao1FormComponent"],
                _plano_operacao1_item_form_plano_operacao1_item_form_component__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacao1ItemFormComponent"],
                _plano_operacao1_dados_item_form_plano_operacao1_dados_item_form_component__WEBPACK_IMPORTED_MODULE_8__["PlanoOperacao1DadosItemFormComponent"],
                _plano_operacao1_tanque_form_plano_operacao1_tanque_form_component__WEBPACK_IMPORTED_MODULE_9__["PlanoOperacao1TanqueFormComponent"],
                _plano_operacao1_equip_form_plano_operacao1_equip_form_component__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacao1EquipFormComponent"],
                _plano_operacao1_print_modal_plano_operacao1_print_modal_component__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacao1PrintModalComponent"]
            ],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _plano_operacao1_routing_module__WEBPACK_IMPORTED_MODULE_6__["PlanoOperacao1RoutingModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_7__["SharedModule"]
            ],
            exports: [
                _plano_operacao1_index_plano_operacao1_index_component__WEBPACK_IMPORTED_MODULE_3__["PlanoOperacao1IndexComponent"],
                _plano_operacao1_filter_plano_operacao1_filter_component__WEBPACK_IMPORTED_MODULE_5__["PlanoOperacao1FilterComponent"],
                _plano_operacao1_form_plano_operacao1_form_component__WEBPACK_IMPORTED_MODULE_2__["PlanoOperacao1FormComponent"],
                _plano_operacao1_item_form_plano_operacao1_item_form_component__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacao1ItemFormComponent"],
                _plano_operacao1_dados_item_form_plano_operacao1_dados_item_form_component__WEBPACK_IMPORTED_MODULE_8__["PlanoOperacao1DadosItemFormComponent"],
                _plano_operacao1_tanque_form_plano_operacao1_tanque_form_component__WEBPACK_IMPORTED_MODULE_9__["PlanoOperacao1TanqueFormComponent"],
                _plano_operacao1_equip_form_plano_operacao1_equip_form_component__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacao1EquipFormComponent"],
                _plano_operacao1_print_modal_plano_operacao1_print_modal_component__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacao1PrintModalComponent"]
            ]
        })
    ], PlanoOperacao1Module);
    return PlanoOperacao1Module;
}());



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.routing.module.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1.routing.module.ts ***!
  \**********************************************************************************/
/*! exports provided: PlanoOperacao1RoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1RoutingModule", function() { return PlanoOperacao1RoutingModule; });
/* 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 _plano_operacao1_index_plano_operacao1_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plano-operacao1-index/plano-operacao1-index.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-index/plano-operacao1-index.component.ts");
/* harmony import */ var _plano_operacao1_form_plano_operacao1_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./plano-operacao1-form/plano-operacao1-form.component */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1-form/plano-operacao1-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _plano_operacao1_index_plano_operacao1_index_component__WEBPACK_IMPORTED_MODULE_3__["PlanoOperacao1IndexComponent"],
        data: { breadcrumb: "planoOperacao", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create/:programacaoNavioId",
        component: _plano_operacao1_form_plano_operacao1_form_component__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacao1FormComponent"],
        data: {
            breadcrumb: "planoOperacao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:programacaoNavioId",
        component: _plano_operacao1_form_plano_operacao1_form_component__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacao1FormComponent"],
        data: {
            breadcrumb: "planoOperacao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:programacaoNavioId",
        component: _plano_operacao1_form_plano_operacao1_form_component__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacao1FormComponent"],
        data: {
            breadcrumb: "planoOperacao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var PlanoOperacao1RoutingModule = /** @class */ (function () {
    function PlanoOperacao1RoutingModule() {
    }
    PlanoOperacao1RoutingModule = __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"]]
        })
    ], PlanoOperacao1RoutingModule);
    return PlanoOperacao1RoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.service.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao1/plano-operacao1.service.ts ***!
  \***************************************************************************/
/*! exports provided: PlanoOperacao1Service */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacao1Service", function() { return PlanoOperacao1Service; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plano-operacao1.model */ "./src/app/pages/operacao/plano-operacao1/plano-operacao1.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 __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 PlanoOperacao1Service = /** @class */ (function (_super) {
    __extends(PlanoOperacao1Service, _super);
    function PlanoOperacao1Service(http) {
        var _this = _super.call(this, http, "operacao/planoOperacao") || this;
        _this.http = http;
        _this.filter = new _plano_operacao1_model__WEBPACK_IMPORTED_MODULE_6__["PlanejOperacaoFilterVo"]();
        return _this;
    }
    PlanoOperacao1Service.prototype.getByFilter = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/planoOperacao/getByFilter", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlanoOperacao1Service.prototype.getProgramacao = function (programacaoNavioId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/planoOperacao/programacaoNavio/" + programacaoNavioId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlanoOperacao1Service.prototype._getById = function (object) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/planoOperacao/" + object.programacaoNavioId + "/" + object.item)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlanoOperacao1Service.prototype.getByProdutos = function (programacaoNavioId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/planoOperacao/produtos/" + programacaoNavioId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlanoOperacao1Service.prototype.getByClientes = function (programacaoNavioId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/planoOperacao/clientes/" + programacaoNavioId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlanoOperacao1Service.prototype.removerTanque = function (tanque) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/planoOperacao/removerTanque", tanque)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlanoOperacao1Service.prototype.removerEquipamento = function (equipamento) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/planoOperacao/removerEquipamento", equipamento)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    PlanoOperacao1Service.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    PlanoOperacao1Service = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], PlanoOperacao1Service);
    return PlanoOperacao1Service;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-operacao-plano-operacao1-plano-operacao1-module.js.map