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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-bordo/plano-operacao-solido-bordo.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-bordo/plano-operacao-solido-bordo.component.html ***!
  \*******************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<ng-container *ngIf=\"!showAdd\">\n\n    <div class=\"row\">\n        <div class=\"col-12\">\n            <div class=\"row d-flex justify-content-end mb-2\">\n                <div class=\"col-lg-5 lg-md-6 col-sm-12\">\n                    <div class=\"card\">\n                        <div class=\"row d-flex justify-content-center\">\n                            <div class=\"linha label-inline-top\">\n                                <label for=\"totalNomeado\">{{'labels.totalNomeado' | translate}}</label>\n                            </div>\n                            <div class=\"label-inline-top\">\n                                <input id=\"totalNomeado\" name=\"totalNomeado\"\n                                    value=\"{{service?.data?.totalNomeado | formatCurrency}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                        <div class=\"row d-flex justify-content-center\">\n                            <div class=\"linha label-inline-bottom\">\n                                <label for=\"totalProgramado\">{{'labels.totalProgramado' | translate}}</label>\n                            </div>\n                            <div class=\"label-inline-bottom\">\n                                <input id=\"totalProgramado\" name=\"totalProgramado\"\n                                    value=\"{{service?.data?.totalProgramado | formatCurrency}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"row\">\n                <div class=\"col-6\">\n                    <div class=\"container-buttons\">\n                        <div class=\"btn-group\">\n                            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\"\n                                (click)=\"create()\">\n                            </app-menu-button>\n                            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [icon]=\"'icon-eye'\"\n                                (click)=\"detail()\">\n                            </app-menu-button>\n                            <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n                                (click)=\"edit()\">\n                            </app-menu-button>\n                            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\"\n                                (click)=\"remove()\">\n                            </app-menu-button>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"col-6\">\n                    <div class=\"row\">\n                        <div class=\"col-12 d-flex justify-content-end mb-2\">\n                            <button class=\"btn btn-default\" (click)=\"onArrowUp()\">\n                                <i class=\"fa fa-arrow-up fa_custom\" aria-hidden=\"true\"></i> {{ 'buttons.sobe' |\n                                translate }}\n                            </button>\n                            <button class=\"btn btn-default button-inline-right\" (click)=\"onArrowDown()\">\n                                <i class=\"fa fa-arrow-down fa_custom\" aria-hidden=\"true\"></i> {{ 'buttons.desce' |\n                                translate\n                                }}\n                            </button>\n                        </div>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"row\" *ngIf=\"!showAdd\">\n                <div class=\"col-md-12 col-lg-12\">\n                    <div class=\"table-responsive\" style=\"max-height: 300px; overflow: auto;\" tabindex=\"0\">\n                        <table class=\"table table-striped table-bordered table-hover rownowrap table-sm table-fixed\">\n                            <thead>\n                                <tr>\n                                    <th class=\"text-left\">{{ 'labels.tanquePorao' | translate }}</th>\n                                    <th class=\"text-left\">{{ 'labels.kilos' | translate }}</th>\n                                    <th class=\"text-left\">{{ 'labels.ordem' | translate }}</th>\n                                </tr>\n                            </thead>\n                            <tbody>\n                                <tr *ngFor=\"let c of dados | removeExcluidos;let i = index\" (click)=\"selected(c, i)\"\n                                    [ngClass]=\"{'info':i === _index && dadosAux.planejOperacaoBordoId === c.planejOperacaoBordoId }\">\n                                    <td class=\"text-left\">{{c.tanqueId}}</td>\n                                    <td class=\"text-right\">{{c.kilos | formatCurrency }}</td>\n                                    <td class=\"text-right\">{{c.seqEmbarque}}</td>\n                                </tr>\n                                <tr *ngIf=\"!dados || dados.length === 0\">\n                                    <th colspan=\"3\">\n                                        {{'messages.nenhumRegistroEncontrado' | translate }}\n                                    </th>\n                                </tr>\n                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</ng-container>\n\n<ng-container *ngIf=\"showAdd\">\n\n    <div class=\"row\">\n        <div class=\"col-lg-6\">\n            <div class=\"container-buttons\">\n                <div class=\"btn-group\">\n                    <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\"\n                        (click)=\"_back()\">\n                    </app-menu-button>\n                    <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" (click)=\"edit()\">\n                    </app-menu-button>\n                </div>\n            </div>\n        </div>\n        <div class=\"col-lg-6\">\n            <app-form-legenda></app-form-legenda>\n        </div>\n    </div>\n\n    <form class=\"form\" #f=\"ngForm\">\n        <div class=\"row\">\n            <div class=\"col-12\">\n                <div class=\"card\">\n                    <div class=\"card-body widget-body\">\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                                    <label for=\"tanqueId\" class=\"required\">{{'labels.tanquePorao' |\n                                        translate}}</label>\n                                    <select id=\"tanqueId\" name=\"tanqueId\" [(ngModel)]=\"dadosAux.tanqueId\"\n                                        class=\"form-control form-control-sm\" type=\"text\" required=\"true\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                        <option [value]=\"i.tanque\" *ngFor=\"let i of poroes\">{{ i.tanque }}</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=\"kilos\" class=\"required\">{{'labels.kilos' | translate}}</label>\n                                    <input id=\"kilos\" name=\"kilos\" [(ngModel)]=\"dadosAux.kilos\"\n                                        class=\"form-control form-control-sm\" type=\"text\" required=\"true\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask maxlength=\"19\"\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"form-group\">\n                            <button class=\"btn btn-success\" type=\"button\" (click)=\"onSubmit(f)\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                {{ \"buttons.salvar\" | translate }}\n                            </button>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-filter/plano-operacao-solido-filter.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-filter/plano-operacao-solido-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=\"app-plano-operacao-solido-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.filtroPlanoOperacaoSolido' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"de\" class=\"required\">{{'labels.emissaoDe' |\n                                    translate}}</label>\n                                <app-data id=\"de\" name=\"de\" required=\"true\" [(ngModel)]=\"service.filter.dataI\"\n                                    [ngStyle]=\"{'width':'100%'}\"></app-data>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ate\" class=\"required\">{{'labels.emissaoAte' |\n                                    translate}}</label>\n                                <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filter.dataF\"\n                                    [ngStyle]=\"{'width':'100%'}\"></app-data>\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                                <app-pesquisa-destinatario id=\"navio\" name=\"navio\" label=\"navio\" modalTitle=\"navio\"\n                                    [(ngModel)]=\"service.filter.destinatarioIdNavio\" tipoDestinatario=\"N\"\n                                    showCgcCpf=\"false\" showInscricao=\"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-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"situacaoNavio\">{{'labels.situacao' | translate}}</label>\n                                <app-combo-padrao\n                                        id=\"situacaoNavio\"\n                                        name=\"situacaoNavio\"\n                                        [(ngModel)]=\"service.filter.sitReg\"\n                                        tabela=\"SituacaoNavio\"\n                                        chave=\"CodSitNavio\"\n                                        descricao=\"DescrSitNavio\"\n                                        ativos=\"true\">\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>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-form/plano-operacao-solido-form.component.html":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-form/plano-operacao-solido-form.component.html ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\"\n    [itemData]=\"dadosAux.operacaoEmbarqueId\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"tab-content top\">\n                <!-- ABAS -->\n                <div class=\"tab-pane active show\">\n\n                    <div class=\"row mb-2\">\n                        <div class=\"col-12\">\n                            <div class=\"card p-4\">\n                                <div class=\"row\">\n                                    <div class=\"col-8\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"row\">\n                                                    <div class=\"col-lg-3 col-md-3 col-sm-3 linha input-inline-cut-top\">\n                                                        <label for=\"navio\">{{'labels.navio' | translate}}</label>\n                                                    </div>\n                                                    <div class=\"col-lg-9 col-md-9 col-sm-9 input-inline-cut-top\">\n                                                        <input id=\"navio\" name=\"navio\" value=\"{{service.data.fantasia}}\"\n                                                            class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                                    </div>\n                                                </div>\n                                                <div class=\"row\">\n                                                    <div\n                                                        class=\"col-lg-3 col-md-3 col-sm-3 linha input-inline-cut-middle\">\n                                                        <label for=\"agencia\">{{'labels.agencia' | translate}}</label>\n                                                    </div>\n                                                    <div class=\"col-lg-9 col-md-9 col-sm-9 input-inline-cut-middle\">\n                                                        <input id=\"agencia\" name=\"agencia\"\n                                                            value=\"{{service.data.descrAgencia}}\"\n                                                            class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                                    </div>\n                                                </div>\n                                                <div class=\"row\">\n                                                    <div\n                                                        class=\"col-lg-3 col-md-3 col-sm-3 linha input-inline-cut-bottom\">\n                                                        <label for=\"pier\">{{'labels.pier' | translate}}</label>\n                                                    </div>\n                                                    <div class=\"col-lg-9 col-md-9 col-sm-9 input-inline-cut-bottom\">\n                                                        <input id=\"pier\" name=\"pier\" value=\"{{service.data.descrPier}}\"\n                                                            class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-4\">\n                                        <div class=\"card\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-4 col-md-4 col-sm-4 linha label-inline-top\">\n                                                    <label for=\"programacao\">{{'labels.programacao' |\n                                                        translate}}</label>\n                                                </div>\n                                                <div class=\"col-lg-6 col-md-8 col-sm-10 label-inline-top\">\n                                                    <input id=\"programacao\" name=\"programacao\"\n                                                        value=\"{{service.data.regPrograma}}\"\n                                                        class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-4 col-md-4 col-sm-4 linha label-inline-bottom\">\n                                                    <label for=\"laudo\">{{'labels.laudo' | translate}}</label>\n                                                </div>\n                                                <div class=\"col-lg-6 col-md-8 col-sm-10 label-inline-bottom\">\n                                                    <input id=\"laudo\" name=\"laudo\" value=\"{{service.data.regLaudo}}\"\n                                                        class=\"form-control form-control-sm\" type=\"text\" disabled>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"clearfix\">\n                        <ul class=\"nav nav-tabs\" id=\"tab\">\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link active show\" data-toggle=\"tab\"\n                                    href=\"#cliProduto\">{{\"labels.clienteProduto\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#bordo\">{{\"labels.bordo\" | translate}}</a>\n                            </li>\n                        </ul>\n                    </div>\n                    <div class=\"tab-content top\">\n                        <div class=\"tab-pane active show\" id=\"cliProduto\">\n                            <div class=\"row\">\n                                <div class=\"col-12 d-flex justify-content-end mb-2\">\n                                    <button class=\"btn btn-default\" (click)=\"onArrowUp()\">\n                                        <i class=\"fa fa-arrow-up fa_custom\" aria-hidden=\"true\"></i> {{\n                                        'buttons.sobe' | translate }}\n                                    </button>\n                                    <button class=\"btn btn-default button-inline-right\" (click)=\"onArrowDown()\">\n                                        <i class=\"fa fa-arrow-down fa_custom\" aria-hidden=\"true\"></i> {{\n                                        'buttons.desce' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                            <div class=\"row\" *ngIf=\"!showAdd\">\n                                <div class=\"col-md-12 col-lg-12\">\n                                    <div class=\"table-responsive\" style=\"max-height: 300px; overflow: auto;\"\n                                        tabindex=\"0\">\n                                        <table\n                                            class=\"table table-striped table-bordered table-hover rownowrap table-sm table-fixed\">\n                                            <thead>\n                                                <tr>\n                                                    <th class=\"text-left\">{{ 'labels.trading' | translate }}</th>\n                                                    <th class=\"text-left\">{{ 'labels.cliente' | translate }}</th>\n                                                    <th class=\"text-left\">{{ 'labels.produto' | translate }}</th>\n                                                    <th class=\"text-left\">{{ 'labels.numeroRE' | translate }}</th>\n                                                    <th class=\"text-center\">{{ 'labels.ordem' | translate }}</th>\n                                                    <th class=\"text-left\">{{ 'labels.kilos' | translate }}</th>\n                                                </tr>\n                                            </thead>\n                                            <tbody>\n                                                <tr *ngFor=\"let c of dados | removeExcluidos;let i = index\"\n                                                    (click)=\"selected(c, i)\"\n                                                    [ngClass]=\"{'info':i === _index && dadosAux.operacaoEmbarqueId === c.operacaoEmbarqueId }\">\n                                                    <td class=\"text-left\">{{c.trading}}</td>\n                                                    <td class=\"text-left\">{{c.cliente}}</td>\n                                                    <td class=\"text-left\">{{c.produto}}</td>\n                                                    <td class=\"text-left\">{{c.numRE}}</td>\n                                                    <td class=\"text-right\">{{c.seqEmbarque}}</td>\n                                                    <td class=\"text-right\">{{c.kilos | formatCurrency}}</td>\n                                                </tr>\n                                                <tr *ngIf=\"!dados || dados.length === 0\">\n                                                    <th colspan=\"5\">\n                                                        {{'messages.nenhumRegistroEncontrado' | translate }}\n                                                    </th>\n                                                </tr>\n                                            </tbody>\n                                        </table>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"tab-pane\" id=\"bordo\">\n                            <app-plano-operacao-solido-bordo [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                            </app-plano-operacao-solido-bordo>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-index/plano-operacao-solido-index.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-index/plano-operacao-solido-index.component.html ***!
  \*******************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\" [itemData]=\"data.regPrograma\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtPlanoOperacaoSolido\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-plano-operacao-solido-filter (filtrar)=\"executaFiltro()\"></app-plano-operacao-solido-filter>\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-bordo/plano-operacao-solido-bordo.component.scss":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-bordo/plano-operacao-solido-bordo.component.scss ***!
  \*****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".linha {\n  position: relative;\n  display: flex;\n  width: 30%;\n  top: 5px;\n}\n\n.input-inline-cut-top {\n  margin-top: -10px;\n  margin-left: -5px;\n  margin-bottom: 5px;\n}\n\n.input-inline-cut-middle {\n  margin-top: 10px;\n  margin-bottom: 10px;\n  margin-left: -5px;\n}\n\n.input-inline-cut-bottom {\n  margin-bottom: -10px;\n  margin-left: -5px;\n}\n\n.label-inline-top {\n  margin-top: 15px;\n  margin-left: 15px;\n}\n\n.label-inline-bottom {\n  margin-top: 5px;\n  margin-left: 15px;\n  margin-bottom: 15px;\n}\n\n.button-inline-left {\n  margin-left: 500px;\n}\n\n.button-inline-right {\n  margin-left: 15px;\n}\n\n.fa_custom {\n  color: #eb0511;\n}\n\n.scrolling-box {\n  display: block;\n  height: 300px;\n  overflow-y: scroll;\n  scroll-behavior: smooth;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vcGxhbm8tb3BlcmFjYW8tc29saWRvL3BsYW5vLW9wZXJhY2FvLXNvbGlkby1ib3Jkby9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXG9wZXJhY2FvXFxwbGFuby1vcGVyYWNhby1zb2xpZ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bC1iZWhhdmlvcjogc21vb3RoO1xufSJdfQ== */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoBordoComponent", function() { return PlanoOperacaoSolidoBordoComponent; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* 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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.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 _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.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_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../plano-operacao-solido.model */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.model.ts");
/* harmony import */ var _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../plano-operacao-solido.constants */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.constants.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../plano-operacao-solido.service */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.service.ts");
/* harmony import */ var app_pages_cadastro_navio_navio_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/navio/navio.service */ "./src/app/pages/cadastro/navio/navio.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 PlanoOperacaoSolidoBordoComponent = /** @class */ (function (_super) {
    __extends(PlanoOperacaoSolidoBordoComponent, _super);
    function PlanoOperacaoSolidoBordoComponent(router, datatablesService, messageService, activatedRoute, service, serviceDestinatario, funcoesService, loginService, permissoesUtils, navioService) {
        var _this = _super.call(this, new _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacaoSolidoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.serviceDestinatario = serviceDestinatario;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.navioService = navioService;
        _this.data = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacaoSolidoDto"]();
        _this.dadosAux = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacaoBordoSolidoDto"]();
        _this.dadosNomeado = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["TotaisOperacaoDto"]();
        _this.dadosProgramado = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["TotaisOperacaoDto"]();
        _this.mensagens = [];
        _this.constantes = new _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacaoSolidoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.showAdd = false;
        _this.hasDados = false;
        _this._index = 0;
        _this.poroes = [];
        _this._back = function () {
            _this.showAdd = false;
        };
        _this.porao = function () {
            if (!!_this.service.data.destinatarioIdNavio) {
                var newWindow = window.open("popup/cadastro/navio/edit/" + _this.service.data.destinatarioIdNavio, "_blank");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PlanoOperacaoSolidoBordoComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
            var odata;
            return __generator(this, function (_a) {
                odata = this.activatedRoute.snapshot.paramMap.get("data");
                if (odata) {
                    this.preVisualizar(odata);
                }
                else {
                    this.dados = [];
                    this.service.data = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacaoSolidoDto"]();
                }
                return [2 /*return*/];
            });
        }); }, function () {
            _this.permissoesUtils.back();
        });
        _super.prototype.addFuncoes.call(this, [
            { action: '_back', func: function () { return _this._back; } },
            { action: 'porao', func: function () { return _this.porao; } }
        ]);
    };
    PlanoOperacaoSolidoBordoComponent.prototype.preVisualizar = function (data) {
        return __awaiter(this, void 0, void 0, function () {
            var params, _a;
            var _this = this;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!data)
                            return [2 /*return*/];
                        params = this.funcoesService.b64ToObj(data);
                        this.service.data = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacaoSolidoDto"]();
                        this.service.data.regPrograma = params.regPrograma;
                        this.service.data.regLaudo = params.regLaudo;
                        this.service.data.fantasia = params.fantasia;
                        this.service.data.descrAgencia = params.descrAgencia;
                        this.service.data.descrPier = params.descrPier;
                        this.service.data.totalNomeado = 0;
                        this.service.data.totalProgramado = 0;
                        this.service.data.destinatarioIdNavio = params.destinatarioIdNavio;
                        this.navioService.getTanques(params.destinatarioIdNavio).subscribe(function (resp) { return _this.poroes = resp; });
                        _a = this;
                        return [4 /*yield*/, this.service.getBordo(+params.regPrograma).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        return [4 /*yield*/, this.calcularTotais()];
                    case 2:
                        _b.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoBordoComponent.prototype.selected = function (val, index) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this._index = index;
                        this.dadosAux = val;
                        return [4 /*yield*/, this.calcularTotais()];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoBordoComponent.prototype.back = function () {
        this.showAdd = false;
        this.dadosAux = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacaoBordoSolidoDto"]();
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/planoOperacaoSolido"]);
    };
    PlanoOperacaoSolidoBordoComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail;
    };
    PlanoOperacaoSolidoBordoComponent.prototype.edit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
                    return __generator(this, function (_a) {
                        this.showAdd = true;
                        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit;
                        return [2 /*return*/];
                    });
                }); });
                return [2 /*return*/];
            });
        });
    };
    PlanoOperacaoSolidoBordoComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.dadosAux = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanejOperacaoBordoSolidoDto"]();
                this.dadosAux.planejOperacaoId = this.service.data.regPrograma;
                this.showAdd = true;
                this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
                return [2 /*return*/];
            });
        }); });
    };
    PlanoOperacaoSolidoBordoComponent.prototype.remove = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (!this.funcoesService.isUndefinedOrNull(this.dadosAux.planejOperacaoBordoId)) {
                    this.messageService.removeConfirm(function () {
                        _this.dadosAux.sitReg = "E";
                        _this.service.remove(_this.dadosAux)
                            .subscribe(function (result) { return __awaiter(_this, void 0, void 0, function () {
                            return __generator(this, function (_a) {
                                switch (_a.label) {
                                    case 0:
                                        this.mensagens = this.messageService.validationResult(result.validationResult);
                                        if (!(result.validationResult != null && !result.validationResult.isValid)) return [3 /*break*/, 1];
                                        this.dadosAux.sitReg = "A";
                                        this.messageService.warning("titles.planoOperacaoSolidoBordo", this.mensagens[0]);
                                        return [3 /*break*/, 3];
                                    case 1:
                                        this.messageService.saveSuccess("titles.planoOperacaoSolido");
                                        return [4 /*yield*/, this.calcularTotais()];
                                    case 2:
                                        _a.sent();
                                        this._back();
                                        return [2 /*return*/];
                                    case 3: return [2 /*return*/];
                                }
                            });
                        }); });
                    });
                }
                return [2 /*return*/];
            });
        }); });
    };
    PlanoOperacaoSolidoBordoComponent.prototype.calcularTotais = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a, _b;
            return __generator(this, function (_c) {
                switch (_c.label) {
                    case 0:
                        if (!this.dadosAux.planejOperacaoId)
                            return [2 /*return*/];
                        _a = this;
                        return [4 /*yield*/, this.service.calculoTotalNomeado(+this.dadosAux.planejOperacaoId).toPromise()];
                    case 1:
                        _a.dadosNomeado = _c.sent();
                        _b = this;
                        return [4 /*yield*/, this.service.calculoTotalProgramado(+this.dadosAux.planejOperacaoId).toPromise()];
                    case 2:
                        _b.dadosProgramado = _c.sent();
                        if (!!this.dadosNomeado)
                            this.service.data.totalNomeado = this.dadosNomeado.kilos;
                        if (!!this.dadosProgramado)
                            this.service.data.totalProgramado = this.dadosProgramado.kilos;
                        return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoBordoComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
                if (form.invalid) {
                    return [2 /*return*/];
                }
                this.dadosAux.logRotina = "Plano de Operação Sólido";
                this.service
                    .save(this.dadosAux, this.funcoesService.isEdit(this.actionForm))
                    .subscribe(function (result) { return __awaiter(_this, void 0, void 0, function () {
                    var _a;
                    return __generator(this, function (_b) {
                        switch (_b.label) {
                            case 0:
                                this.mensagens = this.messageService.validationResult(result.validationResult);
                                if (!(result.validationResult != null && !result.validationResult.isValid)) return [3 /*break*/, 1];
                                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(this.mensagens);
                                return [3 /*break*/, 4];
                            case 1:
                                this.messageService.saveSuccess("titles.planoOperacaoSolido");
                                _a = this;
                                return [4 /*yield*/, this.service.getBordo(+this.dadosAux.planejOperacaoId).toPromise()];
                            case 2:
                                _a.dados = _b.sent();
                                return [4 /*yield*/, this.calcularTotais()];
                            case 3:
                                _b.sent();
                                this._back();
                                return [2 /*return*/];
                            case 4: return [2 /*return*/];
                        }
                    });
                }); });
                return [2 /*return*/];
            });
        });
    };
    PlanoOperacaoSolidoBordoComponent.prototype.saveAndCreate = function (form) {
        this.showAdd = true;
        this.onSubmit(form);
    };
    PlanoOperacaoSolidoBordoComponent.prototype.onArrowUp = function () {
        return __awaiter(this, void 0, void 0, function () {
            var aux, idx, obj, ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        aux = this.dados[this._index];
                        idx = this.dados[this._index].seqEmbarque;
                        if (!(((this._index - 1) > 0) || ((this._index - 1) === 0))) return [3 /*break*/, 2];
                        obj = {
                            "idOld": aux.planejOperacaoBordoId,
                            "iDNew": this.dados[this._index - 1].planejOperacaoBordoId,
                            "itemOld": aux.planejOperacaoId,
                            "itemNew": this.dados[this._index - 1].planejOperacaoId,
                            "seqOld": idx,
                            "seqNew": this.dados[this._index - 1].seqEmbarque,
                            "tab": "N"
                        };
                        this.dados[this._index].seqEmbarque = this.dados[this._index - 1].seqEmbarque;
                        this.dados[this._index - 1].seqEmbarque = idx;
                        this.dados[this._index] = this.dados[this._index - 1];
                        this.dados[this._index - 1] = aux;
                        this.selected(this.dados[this._index - 1], this._index - 1);
                        return [4 /*yield*/, this.service.AtualizaSeqEmbarque(obj).toPromise()];
                    case 1:
                        ret = _a.sent();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoBordoComponent.prototype.onArrowDown = function () {
        return __awaiter(this, void 0, void 0, function () {
            var aux, idx, obj, ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        aux = this.dados[this._index];
                        idx = this.dados[this._index].seqEmbarque;
                        if (!(((this._index + 1) < this.dados.length) || ((this._index + 1) === this.dados.length))) return [3 /*break*/, 2];
                        obj = {
                            "idOld": aux.planejOperacaoBordoId,
                            "iDNew": this.dados[this._index + 1].planejOperacaoBordoId,
                            "itemOld": aux.planejOperacaoId,
                            "itemNew": this.dados[this._index + 1].planejOperacaoId,
                            "seqOld": idx,
                            "seqNew": this.dados[this._index + 1].seqEmbarque,
                            "tab": "N"
                        };
                        this.dados[this._index].seqEmbarque = this.dados[this._index + 1].seqEmbarque;
                        this.dados[this._index + 1].seqEmbarque = idx;
                        this.dados[this._index] = this.dados[this._index + 1];
                        this.dados[this._index + 1] = aux;
                        this.selected(this.dados[this._index + 1], this._index + 1);
                        return [4 /*yield*/, this.service.AtualizaSeqEmbarque(obj).toPromise()];
                    case 1:
                        ret = _a.sent();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoBordoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_13__["PlanoOperacaoSolidoService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_navio_navio_service__WEBPACK_IMPORTED_MODULE_14__["NavioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], PlanoOperacaoSolidoBordoComponent.prototype, "isDetail", void 0);
    PlanoOperacaoSolidoBordoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-plano-operacao-solido-bordo',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao-solido-bordo.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-bordo/plano-operacao-solido-bordo.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./plano-operacao-solido-bordo.component.scss */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-bordo/plano-operacao-solido-bordo.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_13__["PlanoOperacaoSolidoService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_pages_cadastro_navio_navio_service__WEBPACK_IMPORTED_MODULE_14__["NavioService"]])
    ], PlanoOperacaoSolidoBordoComponent);
    return PlanoOperacaoSolidoBordoComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoFilterComponent", function() { return PlanoOperacaoSolidoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.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 _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 _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../plano-operacao-solido.service */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.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 PlanoOperacaoSolidoFilterComponent = /** @class */ (function () {
    function PlanoOperacaoSolidoFilterComponent(loginService, message, service) {
        this.loginService = loginService;
        this.message = message;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    PlanoOperacaoSolidoFilterComponent.prototype.ngOnInit = function () {
    };
    PlanoOperacaoSolidoFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.filtrar.emit();
        }
        else {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        }
    };
    PlanoOperacaoSolidoFilterComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacaoSolidoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PlanoOperacaoSolidoFilterComponent.prototype, "filtrar", void 0);
    PlanoOperacaoSolidoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-plano-operacao-solido-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao-solido-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-filter/plano-operacao-solido-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacaoSolidoService"]])
    ], PlanoOperacaoSolidoFilterComponent);
    return PlanoOperacaoSolidoFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".linha {\n  position: relative;\n  display: flex;\n  width: 30%;\n  top: 5px;\n}\n\n.input-inline-cut-top {\n  margin-top: -10px;\n  margin-left: -5px;\n  margin-bottom: 5px;\n}\n\n.input-inline-cut-middle {\n  margin-top: 10px;\n  margin-bottom: 10px;\n  margin-left: -5px;\n}\n\n.input-inline-cut-bottom {\n  margin-bottom: -10px;\n  margin-left: -5px;\n}\n\n.label-inline-top {\n  margin-top: 15px;\n  margin-left: 15px;\n}\n\n.label-inline-bottom {\n  margin-top: 5px;\n  margin-left: 15px;\n  margin-bottom: 15px;\n}\n\n.button-inline-left {\n  margin-left: 500px;\n}\n\n.button-inline-right {\n  margin-left: 15px;\n}\n\n.fa_custom {\n  color: #eb0511;\n}\n\n.scrolling-box {\n  display: block;\n  height: 300px;\n  overflow-y: scroll;\n  scroll-behavior: smooth;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vcGxhbm8tb3BlcmFjYW8tc29saWRvL3BsYW5vLW9wZXJhY2FvLXNvbGlkby1mb3JtL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcb3BlcmFjYW9cXHBsYW5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aGF2aW9yOiBzbW9vdGg7XG59Il19 */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoFormComponent", function() { return PlanoOperacaoSolidoFormComponent; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* 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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.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 _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.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_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../plano-operacao-solido.model */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.model.ts");
/* harmony import */ var _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../plano-operacao-solido.constants */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.constants.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../plano-operacao-solido.service */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.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 PlanoOperacaoSolidoFormComponent = /** @class */ (function (_super) {
    __extends(PlanoOperacaoSolidoFormComponent, _super);
    function PlanoOperacaoSolidoFormComponent(router, datatablesService, messageService, activatedRoute, service, serviceDestinatario, funcoesService, loginService, permissoesUtils) {
        var _this = _super.call(this, new _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacaoSolidoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.serviceDestinatario = serviceDestinatario;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacaoSolidoDto"]();
        _this.dadosAux = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoEmbarqueCliProdutoDto"]();
        _this.mensagens = [];
        _this.constantes = new _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacaoSolidoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.showAdd = false;
        _this.hasDados = false;
        _this._index = 0;
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PlanoOperacaoSolidoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
            var odata;
            return __generator(this, function (_a) {
                odata = this.activatedRoute.snapshot.paramMap.get("data");
                if (odata) {
                    this.preVisualizar(odata);
                }
                else {
                    this.dados = [];
                    this.service.data = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacaoSolidoDto"]();
                }
                return [2 /*return*/];
            });
        }); }, function () {
            _this.permissoesUtils.back();
        });
    };
    PlanoOperacaoSolidoFormComponent.prototype.preVisualizar = function (data) {
        return __awaiter(this, void 0, void 0, function () {
            var params, _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!data)
                            return [2 /*return*/];
                        params = this.funcoesService.b64ToObj(data);
                        this.service.data = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacaoSolidoDto"]();
                        this.service.data.regPrograma = params.regPrograma;
                        this.service.data.regLaudo = params.regLaudo;
                        this.service.data.fantasia = params.fantasia;
                        this.service.data.descrAgencia = params.descrAgencia;
                        this.service.data.descrPier = params.descrPier;
                        this.service.data.destinatarioIdNavio = params.destinatarioIdNavio;
                        _a = this;
                        return [4 /*yield*/, this.service.getCliProdutoEmbarcacao(+params.regPrograma).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoFormComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.dadosAux = val;
    };
    PlanoOperacaoSolidoFormComponent.prototype.back = function () {
        this.showAdd = false;
        this.dadosAux = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoEmbarqueCliProdutoDto"]();
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/planoOperacaoSolido"]);
    };
    PlanoOperacaoSolidoFormComponent.prototype.detail = function () {
        this.showAdd = true;
    };
    PlanoOperacaoSolidoFormComponent.prototype.edit = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.showAdd = true;
                return [2 /*return*/];
            });
        });
    };
    PlanoOperacaoSolidoFormComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
                if (form.invalid) {
                    return [2 /*return*/];
                }
                return [2 /*return*/];
            });
        });
    };
    PlanoOperacaoSolidoFormComponent.prototype.saveAndCreate = function (form) {
        this.showAdd = true;
        this.onSubmit(form);
    };
    PlanoOperacaoSolidoFormComponent.prototype.onArrowUp = function () {
        return __awaiter(this, void 0, void 0, function () {
            var aux, idx, obj, ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        aux = this.dados[this._index];
                        idx = this.dados[this._index].seqEmbarque;
                        if (!(((this._index - 1) > 0) || ((this._index - 1) === 0))) return [3 /*break*/, 2];
                        obj = {
                            "idOld": aux.operacaoEmbarqueId,
                            "iDNew": this.dados[this._index - 1].operacaoEmbarqueId,
                            "itemOld": aux.itemPrograma,
                            "itemNew": this.dados[this._index - 1].itemPrograma,
                            "seqOld": idx,
                            "seqNew": this.dados[this._index - 1].seqEmbarque,
                            "tab": "S"
                        };
                        this.dados[this._index].seqEmbarque = this.dados[this._index - 1].seqEmbarque;
                        this.dados[this._index - 1].seqEmbarque = idx;
                        this.dados[this._index] = this.dados[this._index - 1];
                        this.dados[this._index - 1] = aux;
                        this.selected(this.dados[this._index - 1], this._index - 1);
                        return [4 /*yield*/, this.service.AtualizaSeqEmbarque(obj).toPromise()];
                    case 1:
                        ret = _a.sent();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoFormComponent.prototype.onArrowDown = function () {
        return __awaiter(this, void 0, void 0, function () {
            var aux, idx, obj, ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        aux = this.dados[this._index];
                        idx = this.dados[this._index].seqEmbarque;
                        if (!(((this._index + 1) < this.dados.length) || ((this._index + 1) === this.dados.length))) return [3 /*break*/, 2];
                        obj = {
                            "idOld": aux.operacaoEmbarqueId,
                            "iDNew": this.dados[this._index + 1].operacaoEmbarqueId,
                            "itemOld": aux.itemPrograma,
                            "itemNew": this.dados[this._index + 1].itemPrograma,
                            "seqOld": idx,
                            "seqNew": this.dados[this._index + 1].seqEmbarque,
                            "tab": "S"
                        };
                        this.dados[this._index].seqEmbarque = this.dados[this._index + 1].seqEmbarque;
                        this.dados[this._index + 1].seqEmbarque = idx;
                        this.dados[this._index] = this.dados[this._index + 1];
                        this.dados[this._index + 1] = aux;
                        this.selected(this.dados[this._index + 1], this._index + 1);
                        return [4 /*yield*/, this.service.AtualizaSeqEmbarque(obj).toPromise()];
                    case 1:
                        ret = _a.sent();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_13__["PlanoOperacaoSolidoService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    PlanoOperacaoSolidoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-plano-operacao-solido-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao-solido-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-form/plano-operacao-solido-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./plano-operacao-solido-form.component.scss */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-form/plano-operacao-solido-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_13__["PlanoOperacaoSolidoService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_8__["DestinatarioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], PlanoOperacaoSolidoFormComponent);
    return PlanoOperacaoSolidoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoIndexComponent", function() { return PlanoOperacaoSolidoIndexComponent; });
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../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 _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_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __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_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.service.ts");
/* harmony import */ var _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../plano-operacao-solido.constants */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.constants.ts");
/* harmony import */ var _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../plano-operacao-solido.model */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.model.ts");
/* harmony import */ var _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../plano-operacao-solido.service */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.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 PlanoOperacaoSolidoIndexComponent = /** @class */ (function (_super) {
    __extends(PlanoOperacaoSolidoIndexComponent, _super);
    function PlanoOperacaoSolidoIndexComponent(funcoes, router, service, datatablesService, messageService, funcoesService, stoLaudoService, loginService, permissoesUtils) {
        var _this = _super.call(this, new _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_9__["PlanoOperacaoSolidoConstants"](), funcoesService) || this;
        _this.funcoes = funcoes;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.stoLaudoService = stoLaudoService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacaoSolidoDto"]();
        _this.constantes = new _plano_operacao_solido_constants__WEBPACK_IMPORTED_MODULE_9__["PlanoOperacaoSolidoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mensagens = [];
        _this._print = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 6, function () { return jQuery("#operacao-do-navio-formularios").modal("show"); });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PlanoOperacaoSolidoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.loginService.isTokenExpired()) {
                    if (this.funcoes.abrirFiltro) {
                        this.service.filter = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_10__["PlanoOperacaoSolidoFilter"]();
                        this.funcoes.openModal("app-plano-operacao-solido-filter");
                    }
                    this.refresh();
                }
                return [2 /*return*/];
            });
        }); }, function () { return _this.permissoesUtils.back(); }, true);
    };
    PlanoOperacaoSolidoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 16, function () { return _super.prototype.permissoes.call(_this, _this.constantes); });
    };
    PlanoOperacaoSolidoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () { return _super.prototype.properties.call(_this, _this.data); });
    };
    Object.defineProperty(PlanoOperacaoSolidoIndexComponent.prototype, "chave", {
        get: function () {
            return this.funcoes.objToB64({
                fantasia: this.data.fantasia,
                descrAgencia: this.data.descrAgencia,
                descrPier: this.data.descrPier,
                regPrograma: this.data.regPrograma,
                regLaudo: this.data.regLaudo,
                destinatarioIdNavio: this.data.destinatarioIdNavio
            });
        },
        enumerable: true,
        configurable: true
    });
    PlanoOperacaoSolidoIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!!this.data.regPrograma) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
                if (_this.data.sitReg !== "A") {
                    _this.messageService.warning("titles.planoOperacaoSolido", "messages.situacaoNaoEstaAbertaAlteracaoNaoPermitida");
                    return;
                }
                _this.router.navigate([_this.target + "/operacao/planoOperacaoSolido/edit/" + _this.chave]);
            }, function () { }, true);
        }
    };
    PlanoOperacaoSolidoIndexComponent.prototype.detail = function () {
        if (!!this.chave) {
            this.router.navigate([this.target + "/operacao/planoOperacaoSolido/detail/" + this.chave]);
        }
    };
    PlanoOperacaoSolidoIndexComponent.prototype.filtrar = function () {
        jQuery("#app-plano-operacao-solido-filter").modal("show");
    };
    PlanoOperacaoSolidoIndexComponent.prototype.executaFiltro = function () {
        jQuery("#app-plano-operacao-solido-filter").modal("hide");
        this.refresh();
    };
    PlanoOperacaoSolidoIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a, columns;
            var _this = this;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.getByFilter(this.service.filter).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        columns = [
                            this.datatablesService.getDataString("fantasia", "navio"),
                            this.datatablesService.getDataDateTime("dtPrograma", "data", "DD/MM/YYYY hh:mm"),
                            this.datatablesService.getDataString("descrAgencia", "agencia"),
                            this.datatablesService.getDataString("descrPier", "pier"),
                            this.datatablesService.getDataString("regPrograma", "programacao"),
                            this.datatablesService.getDataString("regLaudo", "laudo"),
                            this.datatablesService.getDataString("descrSitNavio", "situacao"),
                        ];
                        this.datatablesService.datatable("dtPlanoOperacaoSolido", columns, this.dados, function (aData) { return _this.data = aData; }, 1, "asc");
                        return [2 /*return*/];
                }
            });
        });
    };
    PlanoOperacaoSolidoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!this.data.regPrograma) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
                var data;
                var _this = this;
                return __generator(this, function (_a) {
                    if (this.data.sitReg !== "A") {
                        this.messageService.warning("titles.planoOperacaoSolido", "messages.situacaoNaoEstaAbertaExclusaoNaoPermitida");
                        return [2 /*return*/];
                    }
                    data = this.data;
                    this.messageService.removeConfirm(function () {
                        _this.service.remove(data).subscribe(function (result) {
                            _this.mensagens = _this.messageService.validationResult(result.validationResult);
                            if (!result.validationResult.isValid) {
                                _this.messageService.warning("titles.planoOperacaoSolido", _this.mensagens[0]);
                            }
                            else {
                                _this.datatablesService.remove("dtPlanoOperacaoSolido");
                            }
                        });
                    });
                    return [2 /*return*/];
                });
            }); });
        }
    };
    PlanoOperacaoSolidoIndexComponent.prototype.print = function () {
        var _this = this;
        if (!!(this.data.regPrograma)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
                _this.constantes.paramRelatorio = {
                    regPrograma: _this.data.regPrograma,
                    banda: "0"
                };
                _super.prototype.print.call(_this);
            });
        }
        else {
            this.messageService.warning("titles.planoOperacaoSolido", "messages.nenhumItemSelecionado");
        }
    };
    PlanoOperacaoSolidoIndexComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacaoSolidoService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_8__["StoLaudoService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_0__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    PlanoOperacaoSolidoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-plano-operacao-solido-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./plano-operacao-solido-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-index/plano-operacao-solido-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _plano_operacao_solido_service__WEBPACK_IMPORTED_MODULE_11__["PlanoOperacaoSolidoService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_8__["StoLaudoService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_0__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], PlanoOperacaoSolidoIndexComponent);
    return PlanoOperacaoSolidoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoConstants", function() { return PlanoOperacaoSolidoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PlanoOperacaoSolidoConstants = /** @class */ (function () {
    function PlanoOperacaoSolidoConstants() {
        this.sisFormularioId = 250090;
        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.permissoes" }
        ];
        this.sisSistemaId = "OPE";
        this.nomeForm = "titles.planoOperacaoSolido";
        this.reportId = "OPE0014";
        this.reportTitulo = { "titulo": "Planejamento de Operação", "subTitulo": "" };
        this.tabela = "PlanejOperacaoBordo";
        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.listaBordo = [
            { title: "Novo", action: "create", icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: "Arquivo", },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: "poraoTanques", action: "porao", icon: "fa fa-ship", exibeButton: true, eximeMenu: true, menuName: "Movimento", disabled: false, },
        ];
    }
    return PlanoOperacaoSolidoConstants;
}());



/***/ }),

/***/ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.model.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.model.ts ***!
  \*************************************************************************************/
/*! exports provided: PlanoOperacaoSolidoDto, PlanoOperacaoSolidoFilter, PlanoOperacaoSolido, OperacaoEmbarqueCliProdutoDto, TotaisOperacaoDto, PlanejOperacaoBordoSolidoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoDto", function() { return PlanoOperacaoSolidoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoFilter", function() { return PlanoOperacaoSolidoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolido", function() { return PlanoOperacaoSolido; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoEmbarqueCliProdutoDto", function() { return OperacaoEmbarqueCliProdutoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TotaisOperacaoDto", function() { return TotaisOperacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanejOperacaoBordoSolidoDto", function() { return PlanejOperacaoBordoSolidoDto; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var PlanoOperacaoSolidoDto = /** @class */ (function (_super) {
    __extends(PlanoOperacaoSolidoDto, _super);
    function PlanoOperacaoSolidoDto() {
        var _this = _super.call(this) || this;
        _this.fantasia = "";
        return _this;
    }
    return PlanoOperacaoSolidoDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var PlanoOperacaoSolidoFilter = /** @class */ (function () {
    function PlanoOperacaoSolidoFilter() {
        var dateIni = new Date();
        dateIni.setDate(dateIni.getDate() - 30);
        var dateFim = new Date();
        dateFim.setDate(dateFim.getDate() + 60);
        this.dataF = dateFim;
        this.dataI = dateIni;
        this.sitReg = "";
        this.destinatarioIdNavio = 0;
    }
    return PlanoOperacaoSolidoFilter;
}());

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

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

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

var PlanejOperacaoBordoSolidoDto = /** @class */ (function (_super) {
    __extends(PlanejOperacaoBordoSolidoDto, _super);
    function PlanejOperacaoBordoSolidoDto() {
        var _this = _super.call(this) || this;
        _this.tanqueId = "";
        return _this;
    }
    return PlanejOperacaoBordoSolidoDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoModule", function() { return PlanoOperacaoSolidoModule; });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _plano_operacao_solido_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plano-operacao-solido.routing.module */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.routing.module.ts");
/* harmony import */ var _plano_operacao_solido_filter_plano_operacao_solido_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./plano-operacao-solido-filter/plano-operacao-solido-filter.component */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-filter/plano-operacao-solido-filter.component.ts");
/* harmony import */ var _plano_operacao_solido_index_plano_operacao_solido_index_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plano-operacao-solido-index/plano-operacao-solido-index.component */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-index/plano-operacao-solido-index.component.ts");
/* harmony import */ var _plano_operacao_solido_form_plano_operacao_solido_form_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plano-operacao-solido-form/plano-operacao-solido-form.component */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-form/plano-operacao-solido-form.component.ts");
/* harmony import */ var _plano_operacao_solido_bordo_plano_operacao_solido_bordo_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./plano-operacao-solido-bordo/plano-operacao-solido-bordo.component */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-bordo/plano-operacao-solido-bordo.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 PlanoOperacaoSolidoModule = /** @class */ (function () {
    function PlanoOperacaoSolidoModule() {
    }
    PlanoOperacaoSolidoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            declarations: [
                _plano_operacao_solido_filter_plano_operacao_solido_filter_component__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacaoSolidoFilterComponent"],
                _plano_operacao_solido_index_plano_operacao_solido_index_component__WEBPACK_IMPORTED_MODULE_5__["PlanoOperacaoSolidoIndexComponent"],
                _plano_operacao_solido_form_plano_operacao_solido_form_component__WEBPACK_IMPORTED_MODULE_6__["PlanoOperacaoSolidoFormComponent"],
                _plano_operacao_solido_bordo_plano_operacao_solido_bordo_component__WEBPACK_IMPORTED_MODULE_7__["PlanoOperacaoSolidoBordoComponent"]
            ],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _plano_operacao_solido_routing_module__WEBPACK_IMPORTED_MODULE_3__["PlanoOperacaoSolidoRoutingModule"]
            ]
        })
    ], PlanoOperacaoSolidoModule);
    return PlanoOperacaoSolidoModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoRoutingModule", function() { return PlanoOperacaoSolidoRoutingModule; });
/* 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_operacao_solido_form_plano_operacao_solido_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./plano-operacao-solido-form/plano-operacao-solido-form.component */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-form/plano-operacao-solido-form.component.ts");
/* harmony import */ var _plano_operacao_solido_index_plano_operacao_solido_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./plano-operacao-solido-index/plano-operacao-solido-index.component */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido-index/plano-operacao-solido-index.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_operacao_solido_index_plano_operacao_solido_index_component__WEBPACK_IMPORTED_MODULE_4__["PlanoOperacaoSolidoIndexComponent"],
        data: { breadcrumb: "planoOperacaoSolido", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    } /*,
    {
        path: "create",
        component: PlanoOperacaoSolidoFormComponent,
        data: { breadcrumb: "planoOperacaoSolido", formParams: { action: ActionForm.create } }
    },
    {
        path: "edit/:id",
        component: PlanoOperacaoSolidoFormComponent,
        data: {
            breadcrumb: "planoOperacaoSolido",
            formParams: { action: ActionForm.edit }
        }
    }*/,
    {
        path: "detail/:data",
        component: _plano_operacao_solido_form_plano_operacao_solido_form_component__WEBPACK_IMPORTED_MODULE_3__["PlanoOperacaoSolidoFormComponent"],
        data: {
            breadcrumb: "planoOperacaoSolido",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    } /*,
    {
        path: "edit/:chave/continuar",
        component: PlanoOperacaoSolidoFormComponent,
        data: {
            breadcrumb: "planoOperacaoSolido",
            formParams: { action: ActionForm.detail }
        }
    },
    {
        path: "rateio/:chave",
        component: planoOperacaoSolidoRateioComponent,
        data: {
            breadcrumb: "planoOperacaoSolido",
            breadcrumbSub: "rateio"
        }
    },
    {
        path: "tanqueDoItem/:chave",
        component: planoOperacaoSolidoItemTanqueComponent,
        data: {
            breadcrumb: "planoOperacaoSolido",
            breadcrumbSub: "tanquesDoItem"
        }
    }*/
];
var PlanoOperacaoSolidoRoutingModule = /** @class */ (function () {
    function PlanoOperacaoSolidoRoutingModule() {
    }
    PlanoOperacaoSolidoRoutingModule = __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"]]
        })
    ], PlanoOperacaoSolidoRoutingModule);
    return PlanoOperacaoSolidoRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanoOperacaoSolidoService", function() { return PlanoOperacaoSolidoService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _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 _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_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plano-operacao-solido.model */ "./src/app/pages/operacao/plano-operacao-solido/plano-operacao-solido.model.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.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 PlanoOperacaoSolidoService = /** @class */ (function (_super) {
    __extends(PlanoOperacaoSolidoService, _super);
    function PlanoOperacaoSolidoService(http, message, funcoes) {
        var _this = _super.call(this, http, "operacao/planoOperacaoSolido") || this;
        _this.http = http;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.filter = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_5__["PlanoOperacaoSolidoFilter"]();
        _this.data = new _plano_operacao_solido_model__WEBPACK_IMPORTED_MODULE_5__["PlanoOperacaoSolidoDto"]();
        return _this;
    }
    PlanoOperacaoSolidoService.prototype.getByFilter = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/operacao/planoOperacaoSolido/getByFilter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_8__["ErrorHandler"].handleError));
    };
    PlanoOperacaoSolidoService.prototype.getCliProdutoEmbarcacao = function (programacaoNavioId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/operacao/planoOperacaoSolido/getCliProdutoEmbarcacao/" + programacaoNavioId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_8__["ErrorHandler"].handleError));
    };
    PlanoOperacaoSolidoService.prototype.getBordo = function (programacaoNavioId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/operacao/planoOperacaoSolido/getBordo/" + programacaoNavioId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_8__["ErrorHandler"].handleError));
    };
    PlanoOperacaoSolidoService.prototype.calculoTotalNomeado = function (programacaoNavioId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/operacao/planoOperacaoSolido/calculoTotalNomeado/" + programacaoNavioId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_8__["ErrorHandler"].handleError));
    };
    PlanoOperacaoSolidoService.prototype.calculoTotalProgramado = function (programacaoNavioId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/operacao/planoOperacaoSolido/calculoTotalProgramado/" + programacaoNavioId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_8__["ErrorHandler"].handleError));
    };
    PlanoOperacaoSolidoService.prototype.AtualizaSeqEmbarque = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].service_url + "/api/v1/operacao/planoOperacaoSolido/atualizaSeqEmbarque", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_8__["ErrorHandler"].handleError));
    };
    PlanoOperacaoSolidoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] }
    ]; };
    PlanoOperacaoSolidoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"]])
    ], PlanoOperacaoSolidoService);
    return PlanoOperacaoSolidoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

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