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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.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-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataDraft?.sequencia\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataDraft?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataDraft?.sequencia || isDetail\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.descricao\" | translate}}\n        </th>\n        <th>\n            {{\"labels.inicio\" | translate}}\n        </th>\n        <th>\n            {{\"labels.fim\" | translate}}\n        </th>\n        <th>\n            {{\"labels.kilos\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of this.service.data.stoLaudoDrafts | removeExcluidos;let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && this.service.dataDraft.sequencia === val.sequencia }\">\n            <td>\n                {{ val?.tipoDraft.descrDraft }}\n            </td>\n            <td>\n                {{ val.dtInicio | date: 'dd/MM/yyyy HH:mm'}}\n            </td>\n            <td>\n                {{ val.dtFim | date: 'dd/MM/yyyy HH:mm'}}\n            </td>\n            <td>\n                {{ val.kilos | formatCurrency: 0 }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!this.service.data.stoLaudoDrafts || this.service.data.stoLaudoDrafts.length === 0\">\n            <th colspan=\"4\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!this.service.dataDraft\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <div class=\"row\">\n            <div class=\"col-lg-4 col-md-12 col-sm-12\">\n                <label for=\"draft\" class=\"required\">{{'labels.draft' | translate}}</label>\n                <div class=\"form-group form-group-sm\">\n                    <app-combo-padrao id=\"draft\" name=\"draft\" [(ngModel)]=\"this.service.dataDraft.tipoDraftId\"\n                        tabela=\"TipoDraft\" chave=\"CodDraft\" descricao=\"DescrDraft\" ativos=\"true\" required\n                        [disabled]=\"isDetail || detail ? true: null\" (outSelected)=\"trataDraft($event)\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n            <div class=\"mt-1\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"btnDraft\">&nbsp;</label>\n                    <div class=\"input-group\">\n                        <button type=\"button\" class=\"input-group-text\" data-toggle=\"modal\" (click)=\"opnCadTipoDraft();\"\n                            [disabled]=\"isDetail || detail ? true: null\">\n                            <i class=\"icon-pencil\" title=\"{{ 'titles.tipoDraft' | translate }}\"></i>\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"dtOcorrenciaOcorrencia\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                    <app-data-h-m id=\"dtOcorrenciaOcorrencia\" name=\"dtOcorrenciaOcorrencia\"\n                        [disabled]=\"isDetail || detail ? true: null\" [(ngModel)]=\"this.service.dataDraft.dtInicio\"\n                        required (executa)=\"validateDtMovimiento()\">\n                    </app-data-h-m>\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"dtOcorrenciaFimHoraOcorrencia\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                    <app-data-h-m id=\"dtOcorrenciaFimHoraOcorrencia\" name=\"dtOcorrenciaFimHoraOcorrencia\"\n                        [(ngModel)]=\"this.service.dataDraft.dtFim\" [disabled]=\"isDetail || detail ? true: null\"\n                        (executa)=\"validateDtMovimientoFim()\" required>\n                    </app-data-h-m>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"kilosDrafts\" class=\"required\">{{'labels.kilos' | translate}}</label>\n                    <input type=\"text\" id=\"kilosDrafts\" name=\"kilosDrafts\" required class=\"form-control form-control-sm\"\n                        [(ngModel)]=\"this.service.dataDraft.kilos\" currencyMask\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                        [disabled]=\"isDetail || detail ? true: null\">\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail ? true: null\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.html":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.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-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataHorOper?.sequencia\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataHorOper?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataHorOper?.sequencia || isDetail\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.data\" | translate}}\n        </th>\n        <th>\n            {{\"labels.descricao\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.stoLaudoHoraOpers | removeExcluidos;let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && service.dataHorOper.sequencia === val.sequencia }\">\n            <td style=\"width: 20%;\">\n                {{ val.dtOcorrencia | date: 'dd/MM/yyyy HH:mm' }}\n            </td>\n            <td>\n                {{ val.ocorrenciaLaudo.descricao }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service.data.stoLaudoHoraOpers || service.data.stoLaudoHoraOpers.length === 0\">\n            <th colspan=\"2\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataHorOper\">\n    <app-validacoes [formErrorId]=\"'dataHorOper'\" class=\"us-validacoes\"></app-validacoes>\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"ocorrencia\" class=\"required\">{{'labels.ocorrencia' | translate}}</label>\n                    <select class=\"form-control form-control-sm\" [disabled]=\"isDetail || detail? true: false\"\n                        required=\"true\" (change)=\"trataOcorr()\" required=\"true\" id=\"ocorrencia\" name=\"ocorrencia\"\n                        [(ngModel)]=\"service.dataHorOper.codOcorLaudo\">\n                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                        <option value=\"{{ item.ocorrenciaLaudoId }}\" *ngFor=\"let item of ocorrenciasLaudoList\">\n                            {{ item.descricao }}\n                        </option>\n                    </select>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label [for]=\"labelPeriodoDe\" class=\"required\">{{('labels.' + labelPeriodoDe) | translate }}</label>\n                    <app-data-h-m [id]=\"labelPeriodoDe\" [name]=\"labelPeriodoDe\" [disabled]=\"isDetail || detail\"\n                        [(ngModel)]=\"service.dataHorOper.dtOcorrencia\" autofocus required\n                        (executa)=\"validateDtMovimiento()\">\n                    </app-data-h-m>\n                </div>\n            </div>\n            <ng-container *ngIf=\"periodoAteRequired\">\n                <div class=\"col-lg-3 col-md-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"ate\" [class.required]=\"periodoAteRequired\">{{\"labels.ate\" |\n                            translate}}</label>\n                        <app-data-h-m id=\"ate\" name=\"ate\" [(ngModel)]=\"service.dataHorOper.dtOcorrenciaFim\"\n                            [disabled]=\"isDetail || detail || !periodoAteRequired\" [required]=\"periodoAteRequired\"\n                            (executa)=\"validateDtMovimientoFim()\">\n                        </app-data-h-m>\n                    </div>\n                </div>\n            </ng-container>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group\">\n                    <label for=\"observacoes\">{{'labels.observacoes' | translate}}</label>\n                    <textarea id=\"observacoes\" name=\"observacoes\" [(ngModel)]=\"service.dataHorOper.observ\"\n                        class=\"form-control\" type=\"text\" [disabled]=\"isDetail || detail\" rows=\"3\"\n                        maxlength=\"70\"></textarea>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.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-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataOcor?.sequencia\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataOcor?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataOcor?.sequencia || isDetail\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.data\" | translate}}\n        </th>\n        <th>\n            {{\"labels.observacao\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.stolaudoOcorrencias | removeExcluidos;let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{ 'info':i === _index && service.dataOcor.sequencia === val.sequencia }\">\n            <td class=\"px-200-l\">\n                {{ val.dtOcorrencia | date: 'dd/MM/yyyy HH:mm' }}\n            </td>\n            <td>\n                {{ val.observacao }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service.data.stolaudoOcorrencias || service.data.stolaudoOcorrencias.length === 0\">\n            <th colspan=\"2\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataOcor\">\n    <form class=\"form\" #formOcor=\"ngForm\" (ngSubmit)=\"onSubmit(formOcor)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                    <app-data-h-m id=\"periodoDe\" name=\"periodoDe\" [disabled]=\"isDetail || detail? true: null\"\n                        [(ngModel)]=\"service.dataOcor.dtOcorrencia\" (executa)=\"validateDtMovimiento()\" autofocus\n                        required>\n                    </app-data-h-m>\n                </div>\n            </div>\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                    <app-data-h-m id=\"ate\" name=\"ate\" [(ngModel)]=\"service.dataOcor.dtOcorrenciaFim\"\n                        [disabled]=\"isDetail || detail? true: null\" (executa)=\"validateDtOcorrenciaFim()\" required>\n                    </app-data-h-m>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group\">\n                    <label for=\"observacoes\" class=\"required\">{{'labels.observacoes' | translate}}</label>\n                    <textarea id=\"observacoes\" name=\"observacoes\" [(ngModel)]=\"service.dataOcor.observacao\"\n                        class=\"form-control\" type=\"text\" [disabled]=\"isDetail || detail? true: null\" rows=\"3\" required\n                        maxlength=\"70\"></textarea>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail? true: null\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.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-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataOper?.sequencia\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataOper?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.operadorTurno' | translate }}\" [icon]=\"'icon-user'\"\n            (click)=\"openOperadorTurno()\" [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataOper?.sequencia || isDetail\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.operador\" | translate}}\n        </th>\n        <th>\n            {{\"labels.inicio\" | translate}}\n        </th>\n        <th>\n            {{\"labels.fim\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.stoLaudoOperadors | removeExcluidos;let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && service.dataOper.sequencia === val.sequencia }\">\n            <td>\n                {{ val.operador?.descrOperador }}\n            </td>\n            <td class=\"px-200-l\">\n                {{ val.dtInicio | date: 'dd/MM/yyyy HH:mm' }}\n            </td>\n            <td class=\"px-200-l\">\n                {{ val.dtInicio | date: 'dd/MM/yyyy HH:mm' }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service.data.stoLaudoOperadors || service.data.stoLaudoOperadors.length === 0\">\n            <th colspan=\"3\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataOper\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"codOperador\" class=\"required\">{{'labels.operador' | translate}}</label>\n                    <app-combo-padrao name=\"codOperador\" id=\"codOperador\" chave=\"CodOperador\" descricao=\"DescrOperador\"\n                        ativo=\"true\" required=\"true\" tabela=\"Operador\" [(ngModel)]=\"service.dataOper.codOperador\"\n                        [disabled]=\"isDetail || detail? true: null\" (outSelected)=\"trataOperador($event)\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"dtInicioOperador\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                    <app-data-h-m id=\"dtInicioOperador\" name=\"dtInicioOperador\"\n                        [disabled]=\"isDetail || detail? true: null\" [(ngModel)]=\"service.dataOper.dtInicio\"\n                        (executa)=\"validateDtMovimiento()\" autofocus required>\n                    </app-data-h-m>\n                </div>\n            </div>\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"dtFimOperador\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                    <app-data-h-m id=\"dtFimOperador\" name=\"dtFimOperador\" [(ngModel)]=\"service.dataOper.dtFim\"\n                        (executa)=\"validateDtMovimientoFim()\" [disabled]=\"isDetail || detail? true: null\" required>\n                    </app-data-h-m>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component.html":
/*!****************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-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"] = ("<app-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n\n<ng-container *ngIf=\"!!service.dataItem\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" autocomplete=\"off\">\n        <div class=\"row\">\n            <div class=\"col-6\">\n                <app-card-container tituloCard=\"inicial\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"volumeAmbiente\">{{'labels.volumeAmbiente' | translate}}</label>\n                                <input type=\"text\" id=\"volumeAmbiente\" name=\"volumeAmbiente\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.volAmbienteI\"\n                                    currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail|| (!service.dataItem || (service.dataItem && !service.dataItem.stoLaudoId)) ? true: null\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"volume20I\">{{'labels.volume20' | translate}}</label>\n                                <input type=\"text\" id=\"volume20I\" name=\"volume20I\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.dataItem.volume20I\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail|| (!service.dataItem || (service.dataItem && !service.dataItem.stoLaudoId)) ? true: null\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"massaI\">{{'labels.massaKg' | translate}}</label>\n                                <input type=\"text\" id=\"massaI\" name=\"massaI\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.dataItem.massaI\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail|| (!service.dataItem || (service.dataItem && !service.dataItem.stoLaudoId)) ? true: null\">\n                            </div>\n                        </div>\n                    </div>\n                </app-card-container>\n            </div>\n            <div class=\"col-6\">\n                <app-card-container tituloCard=\"final\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"volAmbienteF\">{{'labels.volumeAmbiente' | translate}}</label>\n                                <input type=\"text\" id=\"volAmbienteF\" name=\"volAmbienteF\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.volAmbienteF\"\n                                    currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail|| (!service.dataItem || (service.dataItem && !service.dataItem.stoLaudoId)) ? true: null\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"volume20F\">{{'labels.volume20' | translate}}</label>\n                                <input type=\"text\" id=\"volume20F\" name=\"volume20F\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.dataItem.volume20F\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail|| (!service.dataItem || (service.dataItem && !service.dataItem.stoLaudoId)) ? true: null\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"massaF\">{{'labels.massaKg' | translate}}</label>\n                                <input type=\"text\" id=\"massaF\" name=\"massaF\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.dataItem.massaF\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail|| (!service.dataItem || (service.dataItem && !service.dataItem.stoLaudoId)) ? true: null\">\n                            </div>\n                        </div>\n                    </div>\n                </app-card-container>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.html":
/*!********************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.html ***!
  \********************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<operacao-do-navio-produtos-cabecalho></operacao-do-navio-produtos-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"service.dataItemCliente?.sequencia == null\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"service.dataItemCliente?.sequencia == null || isDetail || (!showTable && !detail)\"\n            (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.liberarSobraAduaneira' | translate }}\" [icon]=\"'fa fa-file-archive-o'\"\n            [disabled]=\"disabledLiberarSobraAduaneira\" (action)=\"liberarSobraAduaneira()\" [show]=\"antecipacaoNavio\">\n        </app-menu-button>\n    </div>\n</div>\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{ \"labels.codigo\" | translate }}\n        </th>\n        <th>\n            {{ \"labels.cliente\" | translate }}\n        </th>\n        <th>\n            {{ \"labels.kilos\" | translate }}\n        </th>\n        <th>\n            {{ \"labels.quantidade\" | translate }}\n        </th>\n        <th>\n            {{ \"labels.litros\" | translate }}\n        </th>\n        <th>\n            {{ \"labels.numeroBlReDue\" | translate }}\n        </th>\n        <th>\n            {{ \"labels.codDeIntegracao\" | translate }}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service?.dataItem?.stoLaudoClientes | removeExcluidos; let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{ info: _index === i && service.dataItemCliente?.sequencia === val?.sequencia }\">\n            <td class=\"px-100-l\">\n                <span *ngIf=\"val.cliente && val.cliente.destinatarioId\">{{val.cliente.destinatarioId}}</span>\n            </td>\n            <td class=\"w-100\">\n                <span *ngIf=\"val.cliente && val.cliente.destinatarioId\">{{val.cliente.fantasia}}</span>\n            </td>\n            <td class=\"px-100-r\">\n                {{ val.kilosManif | formatCurrency: 0 }}\n            </td>\n            <td class=\"px-100-r\">\n                {{ val.quantidManif | formatCurrency: 0 }}\n            </td>\n            <td class=\"px-100-r\">\n                {{ val.litrosManif | formatCurrency: 0 }}\n            </td>\n            <td class=\"px-200-l\">\n                {{ val.numBL }}\n            </td>\n            <td class=\"px-200-l\">\n                {{ val.codIntegracao }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service?.dataItem?.stoLaudoClientes || service?.dataItem?.stoLaudoClientes.length === 0\">\n            <th colspan=\"6\">\n                {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataItemCliente\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <div class=\"row\">\n            <div class=\"col-lg-6 col-md-12\" *ngIf=\"!showTable\">\n                <div class=\"form-group form-group-sm\">\n                    <app-input-description label=\"cliente\" [valueID]=\"service.dataItemCliente?.cliente?.destinatarioId\"\n                        [valueDescription]=\"service.dataItemCliente?.cliente?.fantasia\">\n                    </app-input-description>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-12 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <app-pesquisa-osg id=\"osg\" label=\"osg\" name=\"osg\" [(ngModel)]=\"service.dataItemCliente.regOsg\"\n                        [disabled]=\"isDetail || detail === true ? true : null\" [required]=\"obrigaOSG\"\n                        [destinatarioIdCliente]=\"service.dataItemCliente?.cliente?.destinatarioId\"\n                        [materialId]=\"service.dataItem?.materialId\" (outSelected)=\"trataOsg($event)\"\n                        [inpOsg]=\"service.dataItemCliente.osg\">\n                    </app-pesquisa-osg>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group\">\n                    <label for=\"inspetor\">{{ \"labels.inspetor\" | translate }}</label>\n                    <input type=\"text\" id=\"inspetor\" name=\"inspetor\" class=\"form-control form-control-sm\"\n                        [(ngModel)]=\"service.dataItemCliente.inspetor\" [disabled]=\"isDetail || detail ? true : false\"\n                        maxlength=\"30\" />\n                </div>\n            </div>\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group\">\n                    <label for=\"numBL\">{{ \"labels.numeroBlReDue\" | translate }}</label>\n                    <input type=\"text\" id=\"numBL\" name=\"numBL\" class=\"form-control form-control-sm\"\n                        [(ngModel)]=\"service.dataItemCliente.numBL\"\n                        [disabled]=\"(pedidoEmbarque && pedidoEmbarque > 0) || isDetail || detail ? true : null\"\n                        maxlength=\"28\" />\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group\">\n                    <label for=\"controladora\">{{\n                        \"labels.controladora\" | translate\n                        }}</label>\n                    <input type=\"text\" id=\"controladora\" name=\"controladora\" class=\"form-control form-control-sm\"\n                        [(ngModel)]=\"service.dataItemCliente.controladora\" [disabled]=\"isDetail || detail ? true : null\"\n                        maxlength=\"30\" />\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\" modalTitle=\"lote\"\n                    [(ngModel)]=\"service.dataItemCliente.lote\"\n                    [destinatarioIdCliente]=\"service.dataItemCliente.cliente.destinatarioId\"\n                    [materialId]=\"service.dataItem.materialId\" [loteId]=\"service.dataItemCliente.lote\"\n                    destinatarioIdEmitente=\"0\" destinatarioIdNavio=\"0\" [osgId]=\"0\" stoContratoId=\"\"\n                    stoContratoItemId=\"0\"\n                    [disabled]=\"service.dataItem.tipoMov !== 'D' || isDetail || detail ? true : null\"\n                    [required]=\"service.dataItem.tipoMov === 'D' && obrLoteOper === 'S' && obrLoteSomenteLib !== 'S'\">\n                </app-pesquisa-lote>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"kilosManif\" [class.required]=\"!!pedidoEmbarque\">{{\"labels.kilosManifestado\" |\n                        translate}}</label>\n                    <input id=\"kilosManif\" name=\"kilosManif\" [(ngModel)]=\"service.dataItemCliente.kilosManif\"\n                        maxlength=\"15\" class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                        [disabled]=\"(pedidoEmbarque && pedidoEmbarque > 0) || isDetail || detail ? true : null\"\n                        [required]=\"!!pedidoEmbarque\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" />\n                </div>\n            </div>\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"quantidManif\">{{\"labels.quantidManifestada\" | translate}}</label>\n                    <input id=\"quantidManif\" name=\"quantidManif\" [(ngModel)]=\"service.dataItemCliente.quantidManif\"\n                        maxlength=\"15\" class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                        [disabled]=\"(pedidoEmbarque && pedidoEmbarque > 0) || isDetail || detail? true: null\" />\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"litrosManif\">{{\"labels.litrosManifestado\" | translate}}</label>\n                    <input id=\"litrosManif\" name=\"litrosManif\" [(ngModel)]=\"service.dataItemCliente.litrosManif\"\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask maxlength=\"15\"\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                        [disabled]=\"(pedidoEmbarque && pedidoEmbarque > 0) || isDetail || detail? true: null\" />\n                </div>\n            </div>\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"kilosAr\">{{ \"labels.kilosAr\" | translate }}</label>\n                    <input id=\"kilosAr\" name=\"kilosAr\" [(ngModel)]=\"service.dataItemCliente.kilosAr\" maxlength=\"15\"\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                        [disabled]=\"(pedidoEmbarque && pedidoEmbarque > 0) || isDetail || detail? true: null\" />\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"modal\">{{\"labels.modal\" | translate}}</label>\n                    <app-combo-padrao id=\"modal\" name=\"modal\" tabela=\"TiposdeTransporte\" chave=\"TipoTransp\"\n                        descricao=\"DescrMov\" [disabled]=\"isDetail || detail ? true : null\"\n                        [(ngModel)]=\"service.dataItemCliente.tiposDeTransporteId\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n            <div class=\"col-lg-3 col-md-6\">\n                <div class=\"form-group\">\n                    <label for=\"codDeIntegracao\" [class.required]=\"obrigaCodIntegracao\">{{ \"labels.codDeIntegracao\" |\n                        translate }}</label>\n                    <input type=\"text\" id=\"codDeIntegracao\" name=\"codDeIntegracao\" class=\"form-control form-control-sm\"\n                        [(ngModel)]=\"service.dataItemCliente.codIntegracao\"\n                        [disabled]=\"isDetail || detail ? true : false\" [required]=\"obrigaCodIntegracao\"\n                        maxlength=\"30\" />\n                </div>\n            </div>\n            <div class=\"col-lg-3\" *ngIf=\"obrigaTipoNota\">\n                <div class=\"form-group form-group-sm\">\n                    <label [class.required]=\"obrigaTipoNota\" for=\"tipoNota\">\n                        {{'labels.tipoNota' | translate}}\n                    </label>\n                    <select class=\"form-control form-control-sm\" id=\"tipoNota\" name=\"tipoNota\"\n                        [disabled]=\"isDetail || detail ? true : null\" [required]=\"obrigaTipoNota\"\n                        [(ngModel)]=\"service.dataItemCliente.tipoNota\">\n                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                        <option *ngFor=\"let t of raizenTipoNotas\" [value]=\"t.chave\">{{ t.valor }}</option>\n                    </select>\n                </div>\n            </div>\n        </div>\n        <div *ngIf=\"sapRaizen && service.dataItem.tipoMov === 'D' && tipoOperCabotagem\">\n            <div class=\"row\">\n                <div class=\"col-lg-4 col-md-12 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"chaveNFe\">{{'labels.chaveNFE'| translate}}</label>\n                        <input type=\"text\" id=\"chaveNFe\" name=\"chaveNfe\" class=\"form-control form-control-sm\"\n                            [(ngModel)]=\"service.dataItemCliente.chaveNFE\"\n                            [disabled]=\"isDetail || detail ? true : false\" maxlength=\"44\" />\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-2 col-md-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"numNfe\"\n                            [class.required]=\"service.dataItemCliente.chaveNFE !== null && service.dataItemCliente.chaveNFE !== ''\">\n                            {{'labels.numNfe' | translate}}\n                        </label>\n                        <input id=\"numNfe\" name=\"numNfe\" type=\"text\" currencyMask\n                            [disabled]=\"isDetail || detail ? true : false\"\n                            [required]=\"service.dataItemCliente.chaveNFE !== null && service.dataItemCliente.chaveNFE !== ''\"\n                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                            [(ngModel)]=\"service.dataItemCliente.numeroNFE\" class=\"form-control form-control-sm\" />\n                    </div>\n                </div>\n                <div class=\"col-lg-2 col-md-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"dataNfe\"\n                            [class.required]=\"service.dataItemCliente.chaveNFE !== null && service.dataItemCliente.chaveNFE !== ''\">\n                            {{'labels.dataNfe' | translate}}\n                        </label>\n                        <app-data id=\"dataNfe\" name=\"dataNfe\" [(ngModel)]=\"service.dataItemCliente.dataNFE\"\n                            class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\n                            [disabled]=\"isDetail || detail ? true : false\"\n                            [required]=\"service.dataItemCliente.chaveNFE !== null && service.dataItemCliente.chaveNFE !== ''\">\n                        </app-data>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"row mt-2\">\n            <div class=\"col-lg-6\">\n                <app-card-container tituloCard=\"averbacao\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"averbaNome\">{{ \"labels.nome\" | translate }}</label>\n                                <input id=\"averbaNome\" name=\"averbaNome\"\n                                    [(ngModel)]=\"service.dataItemCliente.averbaNome\"\n                                    class=\"form-control form-control-sm\" type=\"text\" [disabled]=\"true\" />\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=\"averbaData\">{{ \"labels.data\" | translate }}</label>\n                                <input id=\"averbaData\" name=\"averbaData\"\n                                    value=\"{{service.dataItemCliente?.averbaData | date: 'dd/MM/yyyy'}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                </app-card-container>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail ? true : null\">\n                        {{ \"buttons.salvar\" | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.html":
/*!****************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.html ***!
  \****************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<operacao-do-navio-produtos-cabecalho></operacao-do-navio-produtos-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [disabled]=\"service.dataItem?.sequencia == null\"\n            (click)=\"show()\" [icon]=\"'icon-eye'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataItem?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.rateio' | translate }}\" [icon]=\"'fa fa-gears'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataItem?.sequencia || !isDetail || !liberaRateio\" (click)=\"rateio()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.tanquesDoItem' | translate }}\" [icon]=\"'fa fa-thermometer-full'\"\n            [show]=\"showTable\" [disabled]=\"!service.dataItem?.sequencia || isDetail\" (click)=\"tanquesDoItem()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.liberaRetencao' | translate }}\" [icon]=\"'fa fa-sign-language'\"\n            [show]=\"showTable\" [disabled]=\"disabledLiberarRetencao\" (click)=\"liberarRetencao()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.antecipacao' | translate }}\" [icon]=\"'fa fa-handshake-o'\"\n            [show]=\"showTable && service.config.antecipacaoNavio\"\n            [disabled]=\"!service.dataItem?.sequencia || !liberaAntecipacao\" (click)=\"antecipacao()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.produto\" | translate}}\n        </th>\n        <th>\n            {{\"labels.descricao\" | translate}}\n        </th>\n        <th>\n            {{\"labels.marca\" | translate}}\n        </th>\n        <th>\n            {{\"labels.tipo\" | translate}}\n        </th>\n        <th>\n            {{\"labels.movimentacao\" | translate}}\n        </th>\n        <th>\n            {{\"labels.clientes\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data?.stoLaudoItems | removeExcluidos; let i = index\" (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info': _index === i && service.dataItem?.sequencia === val?.sequencia }\">\n            <td class=\"px-100-l\">\n                {{ val.materialId }}\n            </td>\n            <td class=\"w-25\">\n                {{ val?.material?.fantasia }}\n            </td>\n            <td class=\"px-100-l\">\n                {{ val.campoMarcado === 'N' ? 'Não' : 'Sim'}}\n            </td>\n            <td class=\"px-100-l\">\n                {{ val.tipoMov }}\n            </td>\n            <td class=\"px-200-l\">\n                {{ val?.tipoMovimentoNavio?.descrMovNavio }}\n            </td>\n            <td class=\"w-100\">\n                {{ val.clientes }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service.data.stoLaudoItems || service.data.stoLaudoItems.length === 0\">\n            <th colspan=\"5\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataItem\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <app-validacoes></app-validacoes>\n        <div class=\"row\">\n            <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                <label for=\"tipoOperacao\">{{'labels.tipoOperacao' | translate}}</label>\n                <div class=\"form-group form-group-sm config_height\">\n                    <app-combo-padrao id=\"tipoOperacao\" name=\"tipoOperacao\" [(ngModel)]=\"service.dataItem.tipoOperacao\"\n                        tabela=\"Tipooperacao\" chave=\"TipoOperacao\" descricao=\"DescrTipoOperacao\" ativos=\"true\"\n                        required=\"true\" [disabled]=\"true\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n\n            <div class=\"col-lg-8 col-md-6\">\n                <div class=\"card_\">\n                    <div class=\"form-group form-group-sm mt-4\" style=\"position: relative\">\n                        <div class=\"mascara\"></div>\n                        <div class=\"form-check-inline\">\n                            <label>&nbsp;</label>\n                            <input id=\"carga_tipo_operacao\" class=\"form-check-input\" type=\"radio\" name=\"tipo_operacao\"\n                                [disabled]=\"true\" value=\"C\" [ngModel]=\"service.dataItem.tipoMov\">\n                            <label class=\"form-check-label\" for=\"carga_tipo_operacao\">\n                                {{'labels.carga' | translate }}\n                            </label>\n                        </div>\n                        <div class=\"form-check-inline\">\n                            <label>&nbsp;</label>\n                            <input id=\"descarga\" class=\"form-check-input\" type=\"radio\" name=\"tipo_operacao\"\n                                [disabled]=\"true\" value=\"D\" [ngModel]=\"service.dataItem.tipoMov\">\n                            <label class=\"form-check-label\" for=\"descarga\">\n                                {{'labels.descarga' | translate }}\n                            </label>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n\n        <div class=\"row\">\n            <div class=\"col-lg-4 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"codPortoOri\">{{ 'labels.origemDoNavio' | translate}}</label>\n                    <app-combo-padrao id=\"codPortoOri\" name=\"codPortoOri\" tabela=\"Porto\" descricao=\"DescrPorto\"\n                        chave=\"CodPorto\" [disabled]=\"isDetail || detail\" [(ngModel)]=\"service.dataItem.codPortoOri\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n            <div class=\"col-lg-6 col-md-6\">\n                <div class=\"custom-control custom-checkbox mt-4\">\n                    <input id=\"flagDegradacao\" name=\"flagDegradacao\" [ngModel]=\"service.dataItem.flagDegradacao === 'S'\"\n                        (ngModelChange)=\"service.dataItem.flagDegradacao = $event ? 'S' : 'N'\"\n                        [disabled]=\"isDetail || detail? true: null\" class=\"custom-control-input checkbox-success\"\n                        type=\"checkbox\">\n                    <label class=\"custom-control-label\" for=\"flagDegradacao\">{{'labels.degradacao' |\n                        translate}}</label>\n                </div>\n            </div>\n        </div>\n\n        <div class=\"row\">\n            <div class=\"col-lg-4 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"grupoDeCliente\">{{'labels.grupoDeCliente' | translate}}</label>\n                    <app-combo-padrao name=\"grupoDeCliente\" id=\"grupoDeCliente\" chave=\"CodGrupo\" descricao=\"DescrGrupo\"\n                        ativo=\"true\" [disabled]=\"isDetail || detail? true: null\" tabela=\"GrupoCliente\"\n                        [(ngModel)]=\"service.dataItem.codGrupo\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-4 col-md-6\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"retencao\">{{'labels.porcentoRetencao' | translate}}</label>\n                    <input id=\"retencao\" name=\"retencao\" maxlength=\"5\" type=\"text\"\n                        [disabled]=\"isDetail || detail? true: null\" currencyMask\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                        [(ngModel)]=\"service.dataItem.ptRetencao\" maxlength=\"5\" class=\"form-control form-control-sm\">\n                </div>\n            </div>\n            <div class=\"col-lg-6 col-md-6\">\n                <div class=\"custom-control custom-checkbox mt-4\">\n                    <input id=\"campoMarcado\" name=\"campoMarcado\" [ngModel]=\"service.dataItem.campoMarcado === 'S'\"\n                        (ngModelChange)=\"service.dataItem.campoMarcado = $event ? 'S' : 'N'\"\n                        [disabled]=\"isDetail|| detail? true: null\" class=\"custom-control-input checkbox-success\"\n                        type=\"checkbox\">\n                    <label class=\"custom-control-label\" for=\"campoMarcado\">{{'labels.tanqueMarcado' |\n                        translate}}</label>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-12 col-md-12\">\n                <div class=\"form-group\">\n                    <label for=\"_observacao\">{{'labels.observacao' | translate}}</label>\n                    <textarea class=\"form-control form-control-sm\" maxlength=\"250\"\n                        [disabled]=\"isDetail|| detail? true: null\" id=\"_observacao\" name=\"_observacao\"\n                        [(ngModel)]=\"service.dataItem.observacao\" rows=\"3\"></textarea>\n                </div>\n            </div>\n        </div>\n\n        <div class=\"row\">\n            <div class=\"col-lg-6 col-md-12\">\n                <app-card-container tituloCard=\"n2\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"consumoN2\">{{'labels.consumoN2M3' | translate}}</label>\n                                <input type=\"text\" id=\"consumoN2\" name=\"consumoN2\" maxlength=\"11\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.quantidN2\"\n                                    currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail || detail? true: null\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"observN2\">{{'labels.observN2' | translate}}</label>\n                                <input type=\"text\" id=\"observN2\" name=\"observN2\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"service.dataItem.observN2\" [disabled]=\"isDetail || detail? true: null\"\n                                    maxlength=\"70\">\n                            </div>\n                        </div>\n                    </div>\n                </app-card-container>\n            </div>\n            <div class=\"col-lg-6 col-md-12\">\n                <app-card-container tituloCard=\"dadosInspetora\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"nomeInspetor\">{{'labels.nomeInspetor' | translate}}</label>\n                                <input type=\"text\" id=\"nomeInspetor\" name=\"nomeInspetor\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.inspetor\"\n                                    [disabled]=\"isDetail || detail? true: null\" maxlength=\"30\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"empresaInspetora\">{{'labels.empresaInspetora' | translate}}</label>\n                                <input type=\"text\" id=\"empresaInspetora\" name=\"empresaInspetora\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.controladora\"\n                                    [disabled]=\"isDetail || detail? true: null\" maxlength=\"30\">\n                            </div>\n                        </div>\n                    </div>\n                </app-card-container>\n            </div>\n\n            <div class=\"col-lg-12 col-md-12\">\n                <app-card-container tituloCard=\"informacoesDeBordo\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"depositosDeBordo\">{{'labels.depositosDeBordo' | translate}}</label>\n                                <input type=\"text\" id=\"depositosDeBordo\" name=\"depositosDeBordo\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.tanqueBordo\"\n                                    [disabled]=\"isDetail|| detail? true: null\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"densidadeDeBordo\">{{'labels.densidadeDeBordo' | translate}}</label>\n                                <input type=\"text\" id=\"densidadeDeBordo\" name=\"densidadeDeBordo\" maxlength=\"7\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.densidadeBordo\"\n                                    currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                    [disabled]=\"funcoes.isDetail(actionForm)|| detail\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"fatorBordoFen\">{{'labels.fatorBordoFen' | translate}}</label>\n                                <input type=\"text\" id=\"fatorBordoFen\" name=\"fatorBordoFen\" maxlength=\"7\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.fatorBordo\"\n                                    currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 5 }\"\n                                    [disabled]=\"funcoes.isDetail(actionForm)|| detail\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"quantidadeDeBordoKg\">{{'labels.quantidadeDeBordoKg' | translate}}</label>\n                                <input type=\"text\" id=\"quantidadeDeBordoKg\" name=\"quantidadeDeBordoKg\"\n                                    class=\"form-control form-control-sm\" maxlength=\"15\"\n                                    [(ngModel)]=\"service.dataItem.kilosBordo\" (blur)=\"calcularLitrosBordo()\"\n                                    currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail? true: null\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"quantidadeDeBordoUn\">{{'labels.quantidadeDeBordoUn' | translate}}</label>\n                                <input type=\"text\" id=\"quantidadeDeBordoUn\" name=\"quantidadeDeBordoUn\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.quantidBordo\"\n                                    maxlength=\"15\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail? true: null\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"quantidadeDeBordoLtAmb\">{{'labels.litrosAmbiente' | translate}}</label>\n                                <input type=\"text\" id=\"quantidadeDeBordoLtAmb\" name=\"quantidadeDeBordoLtAmb\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.litrosBordo\"\n                                    maxlength=\"15\" (blur)=\"calcularKilosBordo()\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail? true: null\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"quantidadeDeBordoLt20\">{{'labels.litros20' | translate}}</label>\n                                <input type=\"text\" id=\"quantidadeDeBordoLt20\" name=\"quantidadeDeBordoLt20\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"service.dataItem.litros20Bordo\"\n                                    maxlength=\"15\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [disabled]=\"isDetail|| detail? true: null\">\n                            </div>\n                        </div>\n                    </div>\n\n                </app-card-container>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail|| detail? true: null\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.html":
/*!**************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.html ***!
  \**************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<operacao-do-navio-produtos-cabecalho></operacao-do-navio-produtos-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataItemHorOper?.sequencia || !showTable\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataItemHorOper?.sequencia || isDetail || (!showTable && !detail)\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataItemHorOper?.sequencia || isDetail\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.data\" | translate}}\n        </th>\n        <th>\n            {{\"labels.descricao\" | translate}}\n        </th>\n        <th>\n            {{\"labels.equipamento\" | translate}}\n        </th>\n        <th>\n            {{\"labels.numero\" | translate}}\n        </th>\n        <th>\n            {{\"labels.observacao\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service?.dataItem?.stoLaudoItemHoraOpers | removeExcluidos;let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && service.dataItemHorOper.stoLaudoId === val.stoLaudoId }\">\n            <td class=\"px-200-l\">\n                {{ val.dtOcorrencia | date: 'dd/MM/yyyy HH:mm' }}\n            </td>\n            <td class=\"text-wrap\">\n                {{ val?.ocorrenciaLaudo?.descricao }}\n            </td>\n            <td class=\"px-200-l\">\n                <span *ngIf=\"val.equipamentoId !== null && val.equipamentoId !== 0\">{{ val?.equipamento?.codEquipto\n                    }}</span>\n            </td>\n            <td class=\"text-wrap\">\n                {{ val?.equipamento?.descrEquipto }}\n            </td>\n            <td>\n                {{ val?.observacao }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service?.dataItem?.stoLaudoItemHoraOpers || service?.dataItem?.stoLaudoItemHoraOpers.length === 0\">\n            <th colspan=\"5\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataItemHorOper\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <div class=\"row\">\n            <div class=\"col-lg-8\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"ocorrencia\" class=\"required\">{{'labels.ocorrencia' | translate}}</label>\n                    <select class=\"form-control form-control-sm\" [disabled]=\"isDetail || detail? true: false\" required\n                        (change)=\"trataOcorr()\" required=\"true\" id=\"ocorrencia\" name=\"ocorrencia\"\n                        [(ngModel)]=\"service.dataItemHorOper.ocorrenciaLaudoId\">\n                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                        <option [value]=\"oco.ocorrenciaLaudoId\" *ngFor=\"let oco of ocorrenciasLaudoList\">{{\n                            oco.descricao }}</option>\n                    </select>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-4\">\n                <div class=\"form-group form-group-sm\">\n                    <label [for]=\"labelPeriodoDe\" class=\"required\">{{ ('labels.' + labelPeriodoDe) | translate}}</label>\n                    <app-data-h-m [id]=\"labelPeriodoDe\" [name]=\"labelPeriodoDe\"\n                        [disabled]=\"isDetail || detail? true: false\" [(ngModel)]=\"service.dataItemHorOper.dtOcorrencia\"\n                        autofocus (executa)=\"validateDtMovimiento()\" required>\n                    </app-data-h-m>\n                </div>\n            </div>\n            <ng-container *ngIf=\"periodoAteRequired\">\n                <div class=\"col-lg-4\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"ate\" [class.required]=\"periodoAteRequired\">{{\"labels.ate\" |\n                            translate}}</label>\n                        <app-data-h-m id=\"ate\" name=\"ate\" [(ngModel)]=\"service.dataItemHorOper.dtOcorrenciaFim\"\n                            [disabled]=\"isDetail || detail? true: false\" [required]=\"periodoAteRequired\"\n                            (executa)=\"validateDtMovimientoFim()\">\n                        </app-data-h-m>\n                    </div>\n                </div>\n            </ng-container>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-4\">\n                <div class=\"form-group \">\n                    <label [class.required]=\"equipRequired\" for=\"regEquipto\">{{'labels.equipamento' |\n                        translate}}</label>\n                    <select class=\"form-control form-control-sm\"\n                        [disabled]=\"!equipRequired || isDetail == true || detail === true? true: null\"\n                        (change)=\"currentEquipamento($event)\" required=\"true\" id=\"regEquipto\" name=\"regEquipto\"\n                        [(ngModel)]=\"service.dataItemHorOper.equipamentoId\">\n                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                        <option value=\"{{ item.equipamentoId }}\" *ngFor=\"let item of equipamentoList\">\n                            {{ item.descrEquipto }}\n                        </option>\n                    </select>\n                </div>\n            </div>\n            <div class=\"col-lg-4\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"numero\">{{'labels.numero' | translate}}</label>\n                    <input id=\"numero\" name=\"numero\" type=\"text\" disabled\n                        value=\"{{service.dataItemHorOper?.equipamento?.codEquipto}}\"\n                        class=\"form-control form-control-sm\">\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-8\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"observacao\">{{'labels.observacao' | translate}}</label>\n                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"observacao\" name=\"observacao\"\n                        maxlength=\"100\" [(ngModel)]=\"service.dataItemHorOper.observacao\" disabled>\n                </div>\n            </div>\n        </div>\n        <!-- Campo Razão -->\n        <div class=\"row\">\n            <div class=\"col-lg-8 col-md-10 col-sm-12\">\n                <div class=\"form-group form-group-sm\">\n                    <div *ngFor=\"let d of service.dataItemHorOper.sisCampoAdds\">\n                        <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\" [(ngModel)]=\"d.valorCampo\"\n                            [disabled]=\"true\"></app-campos-adicionais>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"clearfix\">&nbsp;</div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail? true: false\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.html":
/*!**************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.html ***!
  \**************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<operacao-do-navio-produtos-cabecalho></operacao-do-navio-produtos-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            *ngIf=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataItemOcor?.sequencia\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataItemOcor?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button [show]=\"showTable\" title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\"\n            [disabled]=\"!service.dataItemOcor?.sequencia || isDetail\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.data\" | translate}}\n        </th>\n        <th>\n            {{\"labels.observacao\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service?.dataItem?.stoLaudoItemOcorrencias | removeExcluidos;let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && service.dataItemOcor.sequencia === val.sequencia }\">\n            <td class=\"px-200-l\">\n                {{ val.dtOcorrencia | date: 'dd/MM/yyyy HH:mm' }}\n            </td>\n            <td>\n                {{ val.observacao }}\n            </td>\n        </tr>\n        <tr\n            *ngIf=\"!service?.dataItem?.stoLaudoItemOcorrencias || service?.dataItem?.stoLaudoItemOcorrencias.length === 0\">\n            <th colspan=\"2\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataItemOcor\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <div class=\"row\">\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"dtOcorrenciaAbaOcorrencia\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                    <app-data-h-m id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.dataItemOcor.dtOcorrencia\"\n                        (executa)=\"validateDtMovimiento($event)\" [disabled]=\"isDetail || detail\" required>\n                    </app-data-h-m>\n                </div>\n            </div>\n            <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                    <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                    <app-data-h-m id=\"ate\" name=\"ate\" [(ngModel)]=\"service.dataItemOcor.dtOcorrenciaFim\"\n                        (executa)=\"validateDtOcorrenciaFim($event)\" [disabled]=\"isDetail || detail\" required>\n                    </app-data-h-m>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-12\">\n                <div class=\"form-group\">\n                    <label for=\"observacao\" class=\"required\">{{'labels.observacao' | translate}}</label>\n                    <textarea id=\"observacao\" name=\"observacao\" [(ngModel)]=\"service.dataItemOcor.observacao\"\n                        class=\"form-control\" type=\"text\" [disabled]=\"isDetail || detail\" rows=\"5\" required\n                        maxlength=\"250\"></textarea>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.component.html":
/*!*************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.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=\"operacao-do-navio-antecipacao-ajuste\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog modal-full\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">\n                    {{ 'titles.operacaoDoNavio' | translate }} ( {{ 'titles.ajusteDescarga' | translate }} )\n                </h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\">\n                <app-validacoes class=\"us-validacoes\"></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-12\" style=\"max-height: 240px; overflow-y: auto;\">\n                            <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                <tr>\n                                    <th colspan=\"3\"></th>\n                                    <th colspan=\"2\" class=\"text-center\"> {{\"labels.manifestado\" | translate}} </th>\n                                    <th colspan=\"2\" class=\"text-center\"> {{\"labels.recebido\" | translate}} </th>\n                                    <th colspan=\"2\" class=\"text-center\"> {{\"labels.antecipado\" | translate}} </th>\n                                    <th colspan=\"2\" class=\"text-center\"> {{\"labels.areceber\" | translate}} </th>\n                                </tr>\n                                <tr>\n                                    <th> {{\"labels.cliente\" | translate}} </th>\n                                    <th> {{\"labels.docto\" | translate}} </th>\n                                    <th> {{\"labels.lote\" | translate}} </th>\n                                    <th> {{\"labels.kilos\" | translate}} </th>\n                                    <th> {{\"labels.litros\" | translate}} </th>\n                                    <th> {{\"labels.kilos\" | translate}} </th>\n                                    <th> {{\"labels.litros\" | translate}} </th>\n                                    <th> {{\"labels.kilos\" | translate}} </th>\n                                    <th> {{\"labels.litros\" | translate}} </th>\n                                    <th> {{\"labels.kilos\" | translate}} </th>\n                                    <th> {{\"labels.litros\" | translate}} </th>\n                                </tr>\n                                <tbody>\n                                    <tr *ngFor=\"let val of dados?.clientes; let i = index\"\n                                        (click)=\"onSelectedCliente(val)\"\n                                        [ngClass]=\"{'info': val.subItem === clienteSelected?.subItem}\">\n                                        <td class=\"px-200-l\"> {{ val?.fantasia }} </td>\n                                        <td class=\"px-100-l\"> {{ val?.numBL }} </td>\n                                        <td class=\"px-100-l\"> {{ val?.lote }} </td>\n                                        <td class=\"px-100-r\"> {{ val?.kilosManif | formatCurrency: 0 }} </td>\n                                        <td class=\"px-100-r\"> {{ val?.litrosManif | formatCurrency: 0 }} </td>\n                                        <td class=\"px-100-r\"> {{ val?.kilosRec | formatCurrency: 0 }} </td>\n                                        <td class=\"px-100-r\"> {{ val?.litrosRec | formatCurrency: 0 }} </td>\n                                        <td class=\"px-100-r\"> {{ val?.kilosAnt | formatCurrency: 0 }} </td>\n                                        <td class=\"px-100-r\"> {{ val?.litrosAnt | formatCurrency: 0 }} </td>\n                                        <td class=\"px-100-r\"> {{ val?.kilosARec | formatCurrency: 0\n                                            }} </td>\n                                        <td class=\"px-100-r\"> {{ val?.litrosARec | formatCurrency: 0\n                                            }} </td>\n                                    </tr>\n                                    <tr *ngIf=\"!hasDadosCliente\">\n                                        <ng-container>\n                                            <th colspan=\"11\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n                                        </ng-container>\n                                    </tr>\n                                </tbody>\n                            </table>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-5\" style=\"max-height: 240px; overflow-y: auto;\">\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                        <tr>\n                                            <th colspan=\"1\"></th>\n                                            <th colspan=\"2\" class=\"text-center\"> {{\"labels.recebido\" | translate}} </th>\n                                            <th colspan=\"2\" class=\"text-center\"> {{\"labels.antecipado\" | translate}}\n                                            </th>\n                                        </tr>\n                                        <tr>\n                                            <th> {{\"labels.deposito\" | translate}} </th>\n                                            <th> {{\"labels.kilos\" | translate}} </th>\n                                            <th> {{\"labels.litros\" | translate}} </th>\n                                            <th> {{\"labels.kilos\" | translate}} </th>\n                                            <th> {{\"labels.litros\" | translate}} </th>\n                                        </tr>\n                                        <tbody>\n                                            <tr *ngFor=\"let val of dados?.depBLs; let i = index\">\n                                                <td class=\"px-200-l\"> {{ val?.deposito }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.kilosAnt | formatCurrency: 0 }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.litrosAnt | formatCurrency: 0 }} </td>\n                                            </tr>\n                                            <tr *ngIf=\"!hasDadosDepBL\">\n                                                <ng-container>\n                                                    <th colspan=\"5\">{{'messages.nenhumRegistroEncontrado' | translate }}\n                                                    </th>\n                                                </ng-container>\n                                            </tr>\n                                        </tbody>\n                                    </table>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-2\">\n                            <div class=\"row\">\n                                <div class=\"col-12 d-flex align-items-center\">\n                                    <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"transferir()\"\n                                        [disabled]=\"disabledTransferir\">\n                                        &lt;&lt; {{ 'buttons.transferir' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-5\" style=\"max-height: 240px; overflow-y: auto;\">\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                        <tr>\n                                            <th colspan=\"1\"></th>\n                                            <th colspan=\"2\" class=\"text-center\"> {{\"labels.recebido\" | translate}} </th>\n                                            <th colspan=\"2\" class=\"text-center\"> {{\"labels.antecipado\" | translate}}\n                                            </th>\n                                            <th colspan=\"2\" class=\"text-center\"> {{\"labels.disponivel\" | translate}}\n                                            </th>\n                                        </tr>\n                                        <tr>\n                                            <th> {{\"labels.deposito\" | translate}} </th>\n                                            <th> {{\"labels.kilos\" | translate}} </th>\n                                            <th> {{\"labels.litros\" | translate}} </th>\n                                            <th> {{\"labels.kilos\" | translate}} </th>\n                                            <th> {{\"labels.litros\" | translate}} </th>\n                                            <th> {{\"labels.kilos\" | translate}} </th>\n                                            <th> {{\"labels.litros\" | translate}} </th>\n                                        </tr>\n                                        <tbody>\n                                            <tr *ngFor=\"let val of dados?.tanques; let i = index\"\n                                                (click)=\"tanqueSelected = val\"\n                                                [ngClass]=\"{'info': val.deposito === tanqueSelected?.deposito}\">\n                                                <td class=\"px-200-l\"> {{ val?.deposito }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.kilos | formatCurrency: 0 }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.litros | formatCurrency: 0 }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.kilosAnt | formatCurrency: 0 }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.litrosAnt | formatCurrency: 0 }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.kilosDisp | formatCurrency: 0 }} </td>\n                                                <td class=\"px-100-r\"> {{ val?.litrosDisp | formatCurrency: 0 }} </td>\n                                            </tr>\n                                            <tr *ngIf=\"!hasDadosTanque\">\n                                                <ng-container>\n                                                    <th colspan=\"7\">{{'messages.nenhumRegistroEncontrado' | translate }}\n                                                    </th>\n                                                </ng-container>\n                                            </tr>\n                                        </tbody>\n                                    </table>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n                        OK\n                    </button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.component.html":
/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.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=\"operacao-do-navio-antecipacao-novo\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">\n                    {{ 'titles.operacaoDoNavio' | translate }} ( {{ 'titles.antecipacao' | translate }} )\n                </h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\">\n                <app-validacoes class=\"us-validacoes\"></app-validacoes>\n\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cliente\" class=\"required\">{{ \"labels.cliente\" | translate }}</label>\n                                <select class=\"form-control form-control-sm\" id=\"cliente\" name=\"cliente\"\n                                    [(ngModel)]=\"dataEdit.codDest\" required (change)=\"selectedCliente($event)\"\n                                    [disabled]=\"isEditItem\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option *ngFor=\"let item of dadosEdit.clientes\" [value]=\"item.codDest\"\n                                        (click)=\"dataEdit.oCliente = item\">\n                                        {{ item.fantasia }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"docto\" class=\"required\">{{ \"labels.docto\" | translate }}</label>\n                                <select class=\"form-control form-control-sm\" id=\"docto\" name=\"docto\"\n                                    [(ngModel)]=\"dataEdit.subItem\" required (change)=\"selectedDocto($event)\"\n                                    [disabled]=\"isEditItem\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option *ngFor=\"let item of dataEdit?.oCliente?.doctos\" [value]=\"item.subItem\">{{\n                                        item.numBL }}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"deposito\" class=\"required\">{{ \"labels.deposito\" | translate }}</label>\n                                <select class=\"form-control form-control-sm\" id=\"deposito\" name=\"deposito\"\n                                    [(ngModel)]=\"dataEdit.deposito\" required (change)=\"selectedDeposito($event)\"\n                                    [disabled]=\"isEditItem\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option *ngFor=\"let item of dadosEdit.depositos\" [value]=\"item.deposito\">{{\n                                        item.deposito }}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-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)]=\"dataEdit.kilos\" currencyMask\n                                    [options]=\"funcoes.optionCurrency(0)\" class=\"form-control form-control-sm\"\n                                    type=\"text\" (blur)=\"trataKilos()\" [disabled]=\"disabledKilosLitros\" required>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"litros\">{{ \"labels.litros\" | translate }}</label>\n                                <input id=\"litros\" name=\"litros\" [(ngModel)]=\"dataEdit.litros\" currencyMask\n                                    [options]=\"funcoes.optionCurrency(0)\" class=\"form-control form-control-sm\"\n                                    type=\"text\" (blur)=\"trataLitros()\" [disabled]=\"disabledKilosLitros\">\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSaveItem(form)\">\n                        OK\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.component.html":
/*!********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.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.listaRateio\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\" *ngIf=\"!!data\">\n  <div class=\"row\">\n    <div class=\"col-lg-6 col-sm-12\">\n      <div class=\"form-group form-group-sm\">\n        <app-input-description label=\"produto\" [valueID]=\"data?.material?.materialId\"\n          [valueDescription]=\"data.material?.fantasia\">\n        </app-input-description>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"row\">\n    <div class=\"col-lg-8 col-sm-8\">\n      <div class=\"row\">\n        <div class=\"col-12\">\n          <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n            <thead>\n              <tr>\n                <th></th>\n                <th colspan=\"2\" class=\"text-center\"> {{\"labels.recebido\" | translate}} </th>\n                <th colspan=\"2\" class=\"text-center\"> {{\"labels.antecipado\" | translate}} </th>\n                <th colspan=\"2\" class=\"text-center\"> {{\"labels.diferenca\" | translate}} </th>\n              </tr>\n              <tr>\n                <th> {{\"labels.deposito\" | translate}} </th>\n                <th> {{\"labels.kilos\" | translate}} </th>\n                <th> {{\"labels.litros\" | translate}} </th>\n                <th> {{\"labels.kilos\" | translate}} </th>\n                <th> {{\"labels.litros\" | translate}} </th>\n                <th> {{\"labels.kilos\" | translate}} </th>\n                <th> {{\"labels.litros\" | translate}} </th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr *ngFor=\"let val of dadosDeposito; let i = index\">\n                <td class=\"w-100\"> {{ val?.deposito }} </td>\n                <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.kilosAntecip | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.litrosAntecip | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.kilosDif | formatCurrency: 0 }} </td>\n                <td class=\"px-100-r\"> {{ val?.litrosDif | formatCurrency: 0 }} </td>\n              </tr>\n              <tr *ngIf=\"!hasDadosDeposito\">\n                <ng-container>\n                  <th colspan=\"7\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n                </ng-container>\n              </tr>\n            </tbody>\n          </table>\n        </div>\n      </div>\n\n      <div class=\"row\" *ngIf=\"!!limite && !!dados\" style=\"font-weight: bold;\">\n        <div class=\"col-12 d-flex flex-column align-items-start\">\n          <div>\n            <span>{{lbPtAntecipacao}}</span>\n          </div>\n          <div>\n            <span>\n              {{'labels.disponivel' | translate}} &nbsp; {{lbKilosAntecipacao | formatCurrency:0}}&nbsp;Kilos\n            </span>\n            <span>&nbsp;&nbsp;e&nbsp;&nbsp;</span>\n            <span>{{lbLitrosAntecipacao | formatCurrency: 0}}&nbsp;Litros</span>\n          </div>\n        </div>\n      </div>\n    </div>\n    <div class=\"col-lg-2 col-sm-4\">\n      <div class=\"row\">\n        <div class=\"col-12\">\n          <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"onConfirm()\" [disabled]=\"disabledConfirm\">\n            {{ 'buttons.confirmar' | translate }}\n          </button>\n        </div>\n      </div>\n      <div class=\"row mt-1\">\n        <div class=\"col-lg-12\">\n          <div class=\"form-group form-group-sm\">\n            <form autocomplete=\"off\" class=\"form\" #form=\"ngForm\">\n              <label for=\"ptAntecipacao\">{{'labels.antecipacao' | translate}}</label>\n              <div class=\"input-group\">\n                <input id=\"ptAntecipacao\" name=\"ptAntecipacao\" [(ngModel)]=\"ptAntecipacao\"\n                  class=\"form-control form-control-sm\" type=\"text\" mask=\"99\" maxlength=\"2\">\n                <span class=\"input-group-btn d-flex align-items-center\">\n                  &nbsp;&nbsp;%\n                </span>\n              </div>\n            </form>\n          </div>\n        </div>\n      </div>\n      <div class=\"row mt-1\">\n        <div class=\"col-12\">\n          <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"onCalc()\" [disabled]=\"disabledCalc\">\n            {{ 'buttons.calcular' | translate }}\n          </button>\n        </div>\n      </div>\n      <div class=\"row mt-1\">\n        <div class=\"col-12\">\n          <button class=\"btn btn-danger btn-block\" type=\"button\" (click)=\"onRemove()\" [disabled]=\"disabledRemove\">\n            {{ 'buttons.excluir' | translate }}\n          </button>\n        </div>\n      </div>\n      <!-- <div class=\"row mt-1\">\n        <div class=\"col-12\">\n          <button class=\"btn btn-warning btn-block\" type=\"button\" (click)=\"onAjust()\" [disabled]=\"disabledAjuste\">\n            {{ 'buttons.ajustarRecebido' | translate }}\n          </button>\n        </div>\n      </div> -->\n    </div>\n  </div>\n\n  <div class=\"row mt-2\">\n    <div class=\"col-2 mr-2\">\n      <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"onAddItem()\" [disabled]=\"disabledAddItem\">\n        {{ 'buttons.novo' | translate }}\n      </button>\n    </div>\n    <div class=\"col-2 mr-2\" *ngIf=\"!antecipacaoAutomatica\">\n      <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"onEditItem()\" [disabled]=\"disabledEditItem\">\n        {{ 'buttons.editar' | translate }}\n      </button>\n    </div>\n    <div class=\"col-2 mr-2\" *ngIf=\"!antecipacaoAutomatica\">\n      <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"onRemoveItem()\" [disabled]=\"disabledRemoveItem\">\n        {{ 'buttons.excluir' | translate }}\n      </button>\n    </div>\n  </div>\n\n  <fieldset class=\"mt-3\">\n    <legend>{{\"labels.documentosComAntecipacao\" | translate}}</legend>\n    <div class=\"row\">\n      <div class=\"col-12\">\n        <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n          <thead>\n            <tr>\n              <th *ngIf=\"isDescarga\" colspan=\"5\"></th>\n              <th *ngIf=\"isCarga\" colspan=\"4\"></th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.manifestado\" | translate}} </th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.antecipado\" | translate}} </th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.diferenca\" | translate}} </th>\n            </tr>\n            <tr>\n              <th> {{\"labels.cliente\" | translate}} </th>\n              <th> {{\"labels.docto\" | translate}} </th>\n              <th> {{\"labels.deposito\" | translate}} </th>\n              <th *ngIf=\"isDescarga\"> {{\"labels.lote\" | translate}} </th>\n              <th> {{\"labels.autorizacao\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n            </tr>\n          </thead>\n          <tbody>\n            <tr *ngFor=\"let val of dadosCliente; let i = index\" (click)=\"dataSelected = val\"\n              [ngClass]=\"{'info': val.autorizacao === dataSelected?.autorizacao}\">\n              <td class=\"w-100\"> {{ val?.fantasia }} </td>\n              <td class=\"px-200-l\"> {{ val?.numBL }} </td>\n              <td class=\"px-200-l\"> {{ val?.deposito }} </td>\n              <td *ngIf=\"isDescarga\" class=\"px-200-l\"> {{ val?.lote }} </td>\n              <td class=\"px-100-l\"> {{ val?.autorizacao }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilosManif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litrosManif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilos | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litros | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilosDif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litrosDif | formatCurrency: 0 }} </td>\n            </tr>\n            <tr *ngIf=\"!hasDadosCliente\">\n              <ng-container>\n                <th colspan=\"11\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n              </ng-container>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </fieldset>\n\n\n  <fieldset class=\"mt-3\" *ngIf=\"hasDadosSemAntecipacao\">\n    <legend>{{\"labels.documentosSemAntecipacao\" | translate}}</legend>\n    <div class=\"row\">\n      <div class=\"col-12\">\n        <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n          <thead>\n            <tr>\n              <th *ngIf=\"isDescarga\" colspan=\"3\"></th>\n              <th *ngIf=\"isCarga\" colspan=\"2\"></th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.manifestado\" | translate}} </th>\n              <th colspan=\"2\" class=\"text-center\"> {{\"labels.recebido\" | translate}} </th>\n            </tr>\n            <tr>\n              <th> {{\"labels.cliente\" | translate}} </th>\n              <th> {{\"labels.docto\" | translate}} </th>\n              <th *ngIf=\"isDescarga\"> {{\"labels.lote\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n              <th> {{\"labels.kilos\" | translate}} </th>\n              <th> {{\"labels.litros\" | translate}} </th>\n            </tr>\n          </thead>\n          <tbody>\n            <tr *ngFor=\"let val of dados.clientesSemAntecipacao; let i = index\">\n              <td class=\"w-100\"> {{ val?.fantasia }} </td>\n              <td class=\"px-200-l\"> {{ val?.numBL }} </td>\n              <td *ngIf=\"isDescarga\" class=\"px-200-l\"> {{ val?.lote }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilosManif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litrosManif | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.kilos | formatCurrency: 0 }} </td>\n              <td class=\"px-100-r\"> {{ val?.litros | formatCurrency: 0 }} </td>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    </div>\n  </fieldset>\n</div>\n\n<app-operacao-do-navio-produtos-antecipacao-novo [stoLaudoId]=\"data?.stoLaudoId\" [item]=\"data?.item\" [limite]=\"limite\"\n  (ok)=\"onExecuteEdit($event)\"></app-operacao-do-navio-produtos-antecipacao-novo>\n\n<app-operacao-do-navio-produtos-antecipacao-ajuste [stoLaudoId]=\"data?.stoLaudoId\" [item]=\"data?.item\"\n  (ok)=\"onExecuteAjuste($event)\"></app-operacao-do-navio-produtos-antecipacao-ajuste>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-cabecalho/operacao-do-navio-produtos-cabecalho.component.html":
/*!****************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-cabecalho/operacao-do-navio-produtos-cabecalho.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-card-container tituloCard=\"\">\n    <div class=\"row\">\n        <div class=\"col-lg-6 col-md-12\">\n            <div class=\"form-group form-group-sm\">\n                <app-input-description label=\"produto\" [valueID]=\"service.dataItem?.materialId\"\n                    [valueDescription]=\"service.dataItem?.material?.fantasia\">\n                </app-input-description>\n            </div>\n        </div>\n    </div>\n</app-card-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-equipamento/operacao-do-navio-produtos-item-tanque-equipamento.component.html":
/*!***********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-equipamento/operacao-do-navio-produtos-item-tanque-equipamento.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=\"container-buttons\">\n  <div class=\"btn-group\">\n    <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" (click)=\"new()\" [icon]=\"'icon-plus'\" [show]=\"showTable\">\n    </app-menu-button>\n    <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n      [show]=\"!showTable\">\n    </app-menu-button>\n    <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\" [disabled]=\"!equipamento\"\n      (click)=\"show()\" [icon]=\"'icon-eye'\">\n    </app-menu-button>\n    <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n      [disabled]=\"!equipamento || (!showTable && !isDetail)\" (click)=\"edit()\">\n    </app-menu-button>\n    <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n      [disabled]=\"!equipamento\" (click)=\"delete()\">\n    </app-menu-button>\n  </div>\n</div>\n\n<ng-container *ngIf=\"!!equipamentoAux && !showTable\">\n  <form class=\"form\" #formItemEquip=\"ngForm\" (ngSubmit)=\"ok(formItemEquip)\">\n    <app-validacoes [formErrorId]=\"'formErrorIdEquip'\"></app-validacoes>\n    <div class=\"row\">\n      <div class=\"col-lg-2 col-md-4 col-sm-12\">\n        <label for=\"tipoEquipto\">{{'labels.tipo'|translate}}</label>\n        <select name=\"tipoEquipto\" id=\"tipoEquipto\" class=\"form-control form-control-sm\" required\n          (change)=\"getEquipamentos(equipamentoAux.tipoEquipto)\" [(ngModel)]=\"equipamentoAux.tipoEquipto\">\n          <option [value]=\"\">{{'labels.selecione'|translate}}</option>\n          <option [value]=\"val.id\" *ngFor=\"let val of getTipoEquipamento()\">{{val.descricao}}</option>\n        </select>\n      </div>\n      <div class=\"col-lg-4 col-md-8 col-sm-12\">\n        <label for=\"regEquipto\">{{'labels.equipamento'|translate}}</label>\n        <select name=\"regEquipto\" id=\"regEquipto\" class=\"form-control form-control-sm\"\n          [(ngModel)]=\"equipamentoAux.regEquipto\" required>\n          <option [value]=\"\">{{'labels.selecione'|translate}}</option>\n          <option [value]=\"val.chave\" *ngFor=\"let val of equipamentos\">{{val.valor}}</option>\n        </select>\n      </div>\n    </div>\n    <div class=\"row mt-2\">\n      <div class=\"col-lg-6\">\n        <div class=\"form-group\">\n          <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail\">\n            {{ \"buttons.salvar\" | translate }}\n          </button>\n        </div>\n      </div>\n    </div>\n  </form>\n</ng-container>\n\n<ng-container *ngIf=\"showTable\">\n  <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n    <tr>\n      <th> {{\"labels.tipo\" | translate}}</th>\n      <th> {{\"labels.descricao\" | translate}} </th>\n    </tr>\n    <tbody>\n      <tr *ngFor=\"let val of selectedItem.equipamentos | removeExcluidos; let i = index\" (click)=\"equipamento = val\"\n        [ngClass]=\"{'info': equipamento?.sequencia === val?.sequencia }\">\n        <td>{{ getTipoEquipamento(val?.tipoEquipto) }}</td>\n        <td> {{ val?.descrEquipto }} </td>\n      </tr>\n      <tr *ngIf=\"!hasEquipamentos\">\n        <th colspan=\"2\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n      </tr>\n    </tbody>\n  </table>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-tanque/operacao-do-navio-produtos-item-tanque-tanque.component.html":
/*!*************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-tanque/operacao-do-navio-produtos-item-tanque-tanque.component.html ***!
  \*************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"container-buttons\">\n  <div class=\"btn-group\">\n    <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" (click)=\"new()\" [icon]=\"'icon-plus'\" [show]=\"showTable\">\n    </app-menu-button>\n    <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n      [show]=\"!showTable\">\n    </app-menu-button>\n    <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\" [disabled]=\"!tanque\"\n      (click)=\"show()\" [icon]=\"'icon-eye'\">\n    </app-menu-button>\n    <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n      [disabled]=\"!tanque || (!showTable && !isDetail)\" (click)=\"edit()\">\n    </app-menu-button>\n    <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n      [disabled]=\"!tanque\" (click)=\"delete()\">\n    </app-menu-button>\n  </div>\n</div>\n\n<ng-container *ngIf=\"!!tanqueAux && !showTable\">\n  <form class=\"form\" #formItemTanque=\"ngForm\" (ngSubmit)=\"ok(formItemTanque)\">\n    <app-validacoes [formErrorId]=\"'formErrorIdTanque'\"></app-validacoes>\n    <div class=\"row\">\n      <div class=\"col-lg-6 col-md-12\">\n        <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" required=\"true\"\n            [label]=\"'deposito'\" [modalTitle]=\"'deposito'\"\n            [disabled]=\"isDetail\"\n            [field]=\"'tanqueId'\" \n            [options]=\"saldoDepositoOptions\" \n            [(ngModel)]=\"tanqueAux.deposito\">\n        </app-pesquisa-saldo-lote-deposito>\n      </div>\n    </div>\n    <div class=\"row mt-2\">\n      <div class=\"col-lg-6\">\n        <div class=\"form-group\">\n          <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail\">\n            {{ \"buttons.salvar\" | translate }}\n          </button>\n        </div>\n      </div>\n    </div>\n  </form>\n</ng-container>\n\n<ng-container *ngIf=\"showTable\">\n  <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n    <tr>\n      <th> {{\"labels.deposito\" | translate}} </th>\n    </tr>\n    <tbody>\n      <tr *ngFor=\"let val of service.dataItemTanque.tanques | removeExcluidos; let i = index\" (click)=\"tanque = val\"\n        [ngClass]=\"{'info': tanque?.sequencia === val?.sequencia }\">\n        <td> {{ val?.deposito }} </td>\n      </tr>\n      <tr *ngIf=\"!hasTanques\">\n        <th colspan=\"1\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n      </tr>\n    </tbody>\n  </table>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component.html":
/*!********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component.html ***!
  \********************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaRateio\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\" *ngIf=\"!!service.dataItemTanque\">\n  <app-card-container tituloCard=\"\">\n    <div class=\"row\">\n      <div class=\"col-lg-8 col-md-6\">\n        <div class=\"row\">\n          <div class=\"col-lg-12\">\n            <div class=\"form-group form-group-sm\">\n              <label for=\"navio\">{{'labels.navio' | translate}}</label>\n              <input type=\"text\" name=\"navio\" class=\"form-control form-control-sm\"\n                value=\"{{service.dataItemTanque?.navio}}\" disabled>\n            </div>\n          </div>\n        </div>\n        <div class=\"row\">\n          <div class=\"col-lg-12\">\n            <div class=\"form-group form-group-sm\">\n              <app-input-description label=\"produto\" [valueID]=\"service.dataItemTanque?.material\"\n                [valueDescription]=\"service.dataItemTanque.descrMater\">\n              </app-input-description>\n            </div>\n          </div>\n        </div>\n        <div class=\"row\">\n          <div class=\"col-lg-4\">\n            <div class=\"form-group form-group-sm\">\n              <label for=\"tipoOperacao\">{{'labels.tipoOperacao' | translate}}</label>\n              <input type=\"text\" name=\"tipoOperacao\" class=\"form-control form-control-sm\"\n                value=\"{{service.dataItemTanque?.tipoOperacao}}\" disabled>\n            </div>\n          </div>\n          <div class=\"col-lg-4\">\n            <div class=\"form-group form-group-sm text-center\" style=\"margin-top: 22px;\">\n              <div class=\"custom-control custom-checkbox\">\n                <input id=\"campoMarcado\" name=\"campoMarcado\" value=\"{{service.dataItemTanque.campoMarcado === 'S'}}\"\n                  disabled class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                <label class=\"custom-control-label\" for=\"campoMarcado\">{{'labels.tanqueMarcado' |\n                  translate}}</label>\n              </div>\n            </div>\n          </div>\n          <div class=\"col-lg-4\">\n            <div class=\"form-group form-group-sm\" style=\"margin-top: 8px;\">\n              <div class=\"form-check\">\n                <input id=\"carga\" type=\"radio\" name=\"tipoMov\" class=\"form-check-input\" disabled\n                  [checked]=\"service.dataItemTanque.tipoMov === 'C'\">\n                <label for=\"carga\">Carga</label>\n              </div>\n              <div class=\"form-check\">\n                <input id=\"descarga\" type=\"radio\" name=\"tipoMov\" class=\"form-check-input\" disabled\n                  [checked]=\"service.dataItemTanque.tipoMov === 'D'\">\n                <label for=\"descarga\">Descarga</label>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      <div class=\"col-lg-4 col-md-6\">\n        <div class=\"row\">\n          <div class=\"col-lg-12\">\n            <div class=\"form-group form-group-sm\">\n              <label for=\"numLaudo\">{{'labels.laudo' | translate}}</label>\n              <input type=\"text\" name=\"numLaudo\" class=\"form-control form-control-sm\"\n                value=\"{{service.dataItemTanque?.numLaudo}}\" disabled>\n            </div>\n          </div>\n        </div>\n        <div class=\"row\">\n          <div class=\"col-lg-12\">\n            <div class=\"form-group form-group-sm\">\n              <label for=\"dtMovimento\">{{'labels.data' | translate}}</label>\n              <input type=\"text\" name=\"dtMovimento\" class=\"form-control form-control-sm\"\n                value=\"{{service.dataItemTanque?.dtMovimento | date:'dd/MM/yyyy'}}\" disabled>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </app-card-container>\n  <app-card-container tituloCard=\"\">\n    <div class=\"tab-content top\">\n      <div class=\"tab-pane active show\">\n        <div class=\"clearfix\">\n          <ul class=\"nav nav-tabs\">\n            <li class=\"nav-item\">\n              <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#tanques\">{{\"labels.tanques\" |\n                translate}}</a>\n            </li>\n            <li class=\"nav-item\" *ngIf=\"!!tanque\">\n              <a class=\"nav-link\" data-toggle=\"tab\" href=\"#equipamentos\">{{\"labels.equipamentos\" |\n                translate}}</a>\n            </li>\n          </ul>\n        </div>\n        <div class=\"tab-content top\">\n          <div class=\"tab-pane active show pl-0 pr-0\" id=\"tanques\">\n            <app-operacao-do-navio-produtos-item-tanque-tanque (selected)=\"selectedItem($event)\">\n            </app-operacao-do-navio-produtos-item-tanque-tanque>\n          </div>\n          <div class=\"tab-pane pl-0 pr-0 pl-0\" id=\"equipamentos\" *ngIf=\"!!tanque\">\n            <app-operacao-do-navio-produtos-item-tanque-equipamento [selectedItem]=\"tanque\">\n            </app-operacao-do-navio-produtos-item-tanque-equipamento>\n          </div>\n        </div>\n      </div>\n    </div>\n  </app-card-container>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.component.html":
/*!**********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.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.listaRateio\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\" *ngIf=\"!!data\">\n  <form autocomplete=\"off\" class=\"form\" #form=\"ngForm\" (ngSubmit)=\"ok(form)\">\n    <app-card-container tituloCard=\"\">\n      <div class=\"row\">\n        <div class=\"col-lg-8 col-md-6\">\n          <div class=\"row\">\n            <div class=\"col-lg-12\">\n              <div class=\"form-group form-group-sm\">\n                <app-input-description label=\"produto\" [valueID]=\"data?.material?.materialId\"\n                  [valueDescription]=\"data.material?.fantasia\">\n                </app-input-description>\n              </div>\n            </div>\n          </div>\n          <div class=\"row\">\n            <div class=\"col-lg-8\">\n              <div class=\"row\">\n                <div class=\"col-lg-6\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"deposito\">{{'labels.deposito' | translate}}</label>\n                    <input type=\"text\" name=\"deposito\" class=\"form-control form-control-sm\" value=\"{{rateio?.deposito}}\"\n                      disabled>\n                  </div>\n                </div>\n                <div class=\"col-lg-6\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"totalRecebido\">{{'labels.totalRecebido' | translate}}</label>\n                    <input type=\"text\" name=\"totalRecebido\" class=\"form-control form-control-sm\"\n                      value=\"{{rateio?.totalKilos}}\" disabled>\n                  </div>\n                </div>\n              </div>\n              <div class=\"row\">\n                <div [class]=\"(config.kilosVacuo ? 'col-lg-4' : 'col-lg-6')\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"kilos\">{{(config.kilosVacuo ? \"labels.kilosVacuo\" : \"labels.kilos\") |\n                      translate}}</label>\n                    <input type=\"text\" name=\"kilos\" class=\"form-control form-control-sm\"\n                      [(ngModel)]=\"rateio.kilosRecebe\" currencyMask [options]=\"funcoesService.optionCurrency()\"\n                      [disabled]=\"!isEdit\">\n                  </div>\n                </div>\n                <div class=\"col-lg-4\" *ngIf=\"config.kilosVacuo\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"kilosAr\">{{'labels.kilosAr' | translate}}</label>\n                    <input type=\"text\" name=\"kilosAr\" class=\"form-control form-control-sm\"\n                      [(ngModel)]=\"rateio.kilosArRecebe\" currencyMask [options]=\"funcoesService.optionCurrency()\"\n                      [disabled]=\"!isEdit\">\n                  </div>\n                </div>\n                <div [class]=\"(config.kilosVacuo ? 'col-lg-4' : 'col-lg-6')\">\n                  <div class=\"form-group form-group-sm\">\n                    <label for=\"litros\">{{'labels.litros' | translate}}</label>\n                    <input type=\"text\" name=\"litros\" class=\"form-control form-control-sm\"\n                      [(ngModel)]=\"rateio.litrosRecebe\" currencyMask [options]=\"funcoesService.optionCurrency()\"\n                      [disabled]=\"!isEdit\">\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class=\"col-lg-4\">\n              <div class=\"row\">\n                <div class=\"col-12 mb-2\">\n                  <button class=\"btn btn-success btn-block\" type=\"submit\" [disabled]=\"!isEdit\">\n                    {{ 'buttons.ok' | translate }}\n                  </button>\n                </div>\n                <div class=\"col-12\">\n                  <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"cancelar()\" [disabled]=\"!isEdit\">\n                    {{ 'buttons.cancelar' | translate }}\n                  </button>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div class=\"col-lg-4 col-md-6\">\n          <app-card-container [tituloCard]=\"'drenagemJetLine'\">\n            <div class=\"row\">\n              <div class=\"col-12\">\n                <div class=\"form-group form-group-sm\">\n                  <label>{{(config.kilosVacuo ? 'labels.kilosVacuo' : 'labels.kilos') | translate}}</label>\n                  <input type=\"text\" name=\"kilos\" class=\"form-control form-control-sm\"\n                    value=\"{{drenagemJetLine?.kilosDrenagem | formatCurrency:0}}\" disabled>\n                </div>\n              </div>\n              <div class=\"col-12\" *ngIf=\"config.kilosVacuo\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"totalRecebido\">{{'labels.kilosAr' | translate}}</label>\n                  <input type=\"text\" name=\"totalRecebido\" class=\"form-control form-control-sm\"\n                    value=\"{{drenagemJetLine?.kilosArDrenagem | formatCurrency:0}}\" disabled>\n                </div>\n              </div>\n              <div class=\"col-12\">\n                <div class=\"form-group form-group-sm\">\n                  <label>{{'labels.litros' | translate}}</label>\n                  <input type=\"text\" name=\"litros\" class=\"form-control form-control-sm\"\n                    value=\"{{drenagemJetLine?.litrosDrenagem | formatCurrency:0}}\" disabled>\n                </div>\n              </div>\n              <div class=\"col-12\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"depositoDren\">{{'labels.deposito' | translate}}</label>\n                  <select type=\"text\" name=\"depositoDren\" class=\"form-control form-control-sm\"\n                    [(ngModel)]=\"drenagemJetLine.depositoDren\" [disabled]=\"disabledDepositoDren\">\n                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                    <option [value]=\"item.deposito\" *ngFor=\"let item of tanquesRateio\">{{item}}</option>\n                  </select>\n                </div>\n              </div>\n            </div>\n          </app-card-container>\n        </div>\n      </div>\n    </app-card-container>\n  </form>\n\n  <app-card-container *ngIf=\"!!dadosRateio\">\n    <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n      <thead>\n        <tr>\n          <th></th>\n          <th> {{\"labels.modo\" | translate}} </th>\n          <th> {{\"labels.deposito\" | translate}} </th>\n          <th> {{\"labels.cliente\" | translate}} </th>\n          <th> BL </th>\n          <th> {{ (config.kilosVacuo ? \"labels.kilosVacuo\" : \"labels.kilos\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosAr\" | translate}} </th>\n          <th> {{\"labels.litros\" | translate}} </th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr *ngFor=\"let val of dadosRateio; let i = index\">\n          <td class=\"px-50-c\"> <button class=\"btn btn-sm\"><i class=\"fa fa-edit\" (click)=\"selected(val)\"></i></button>\n          </td>\n          <td class=\"px-100-l\"> {{ val?.sitReg === '1' ? 'Cálculado' : 'Informado' }} </td>\n          <td class=\"px-200-l\"> {{ val?.deposito }} </td>\n          <td class=\"w-100\"> {{ val?.fantasia }} </td>\n          <td class=\"px-200-l\"> {{ val?.numBL }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosArRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n        </tr>\n        <tr *ngIf=\"!hasDados\">\n          <ng-container *ngIf=\"config.kilosVacuo\">\n            <th colspan=\"8\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n          <ng-container *ngIf=\"!config.kilosVacuo\">\n            <th colspan=\"7\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n        </tr>\n      </tbody>\n    </table>\n  </app-card-container>\n  <app-card-container [tituloCard]=\"'resumoPorClienteBL'\" *ngIf=\"!!resumoPorClienteBL\">\n    <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n      <thead>\n        <tr>\n          <th> {{\"labels.cliente\" | translate}} </th>\n          <th> BL/RE </th>\n          <th> {{(config.kilosVacuo ? \"labels.kilosVacuoManif\" : \"labels.kilosManif\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosArManif\" | translate}} </th>\n          <th> {{\"labels.litrosManif\" | translate}} </th>\n          <th> {{(config.kilosVacuo ? \"labels.kilosVacuoRateio\" : \"labels.kilosRateio\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosArRateio\" | translate}} </th>\n          <th> {{\"labels.litrosRateio\" | translate}} </th>\n          <th> {{(config.kilosVacuo ? \"labels.kilosVacuoDif\" : \"labels.kilosDif\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosArDif\" | translate}} </th>\n          <th> {{\"labels.litrosDif\" | translate}} </th>\n          <th> {{(config.kilosVacuo ? \"labels.kilosVacuoAntecip\" : \"labels.kilosAntecip\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosArAntecip\" | translate}} </th>\n          <th> {{\"labels.litrosAntecip\" | translate}} </th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr *ngFor=\"let val of resumoPorClienteBL; let i = index\">\n          <td class=\"w-100\"> {{ val?.fantasia }} </td>\n          <td class=\"px-200-l\"> {{ val?.numBL }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosManif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosArManif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosManif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosArRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosArDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosAntecip | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosArAntecip | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosAntecip | formatCurrency: 0 }} </td>\n        </tr>\n        <tr *ngIf=\"!hasResumoPorClienteBL\">\n          <ng-container *ngIf=\"config.kilosVacuo\">\n            <th colspan=\"14\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n          <ng-container *ngIf=\"!config.kilosVacuo\">\n            <th colspan=\"11\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n        </tr>\n      </tbody>\n    </table>\n  </app-card-container>\n  <app-card-container [tituloCard]=\"'resumoPorDeposito'\">\n    <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n      <thead>\n        <tr>\n          <th> {{\"labels.deposito\" | translate}} </th>\n          <th> {{(config.kilosVacuo ? \"labels.kilosVacuo\" : \"labels.kilos\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosAr\" | translate}} </th>\n          <th> {{\"labels.litros\" | translate}} </th>\n          <th> {{(config.kilosVacuo ? \"labels.kilosVacuoRateio\" : \"labels.kilosRateio\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosArRateio\" | translate}} </th>\n          <th> {{\"labels.litrosRateio\" | translate}} </th>\n          <th> {{(config.kilosVacuo ? \"labels.kilosVacuoDif\" : \"labels.kilosDif\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosArDif\" | translate}} </th>\n          <th> {{\"labels.litrosDif\" | translate}} </th>\n          <th> {{(config.kilosVacuo ? \"labels.kilosVacuoAntecip\" : \"labels.kilosAntecip\") | translate}} </th>\n          <th *ngIf=\"config.kilosVacuo\"> {{\"labels.kilosArAntecip\" | translate}} </th>\n          <th> {{\"labels.litrosAntecip\" | translate}} </th>\n          <th class=\"empty\"></th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr *ngFor=\"let val of resumoPorDeposito; let i = index\"\n          [ngClass]=\"{ 'warining': depositoComDiferenca === val.deposito }\">\n          <td class=\"px-200-l\"> {{ val?.deposito }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilos | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosAr | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litros | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosArRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosRecebe | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosArDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosDif | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.kilosAntecip | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\" *ngIf=\"config.kilosVacuo\"> {{ val?.kilosArAntecip | formatCurrency: 0 }} </td>\n          <td class=\"px-100-r\"> {{ val?.litrosAntecip | formatCurrency: 0 }} </td>\n          <td class=\"empty\"></td>\n        </tr>\n        <tr *ngIf=\"!hasResumoPorDeposito\">\n          <ng-container *ngIf=\"config.kilosVacuo\">\n            <th colspan=\"14\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n          <ng-container *ngIf=\"!config.kilosVacuo\">\n            <th colspan=\"11\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n          </ng-container>\n        </tr>\n      </tbody>\n    </table>\n  </app-card-container>\n\n  <div class=\"row\">\n    <div class=\"col-2 mr-2\">\n      <button class=\"btn btn-warning btn-block\" type=\"button\" (click)=\"refazerRateio()\">\n        {{ 'buttons.rateio' | translate }}\n      </button>\n    </div>\n    <div class=\"col-2\">\n      <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"gravarRateio()\">\n        {{ 'buttons.gravar' | translate }}\n      </button>\n    </div>\n    <div class=\"col-2\">\n      <button class=\"btn btn-success btn-block\" type=\"button\" (click)=\"concluirRateio()\"\n        [disabled]=\"disabledBtnConcluirRateio\">\n        {{ 'buttons.concluir' | translate }}\n      </button>\n    </div>\n  </div>\n\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.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-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!detail\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"isDetail || !detail\" (click)=\"edit()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<ng-container *ngIf=\"!!service.auxTimeLogs\">\n    <div class=\"alert alert-danger alert-dismissible custom-alert fade show\" role=\"alert\"\n        *ngIf=\"mensagens && mensagens.length > 0\">\n        <strong>{{ 'messages.porFavor' | translate }}</strong> {{ 'messages.verifiqueErrosAbaixo' | translate }}\n        <div class=\"us-validacoes\">\n            <ul>\n                <li *ngFor=\"let validacao of mensagens\">{{ validacao | translate }}</li>\n            </ul>\n        </div>\n    </div>\n    <form class=\"form\" #formItem=\"ngForm\" autocomplete=\"off\">\n        <div class=\"row\" *ngFor=\"let val of service.auxTimeLogs; let i = index\">\n            <ng-container *ngIf=\"!!val.ocorrenciaLaudo\">\n                <div class=\"col-lg-6 col-md-8 col-sm-10\">\n                    <div class=\"form-group form-group-sm\">\n                        <input id=\"timelog_descricao_{{i}}\" name=\"timelog_descricao_{{i}}\"\n                            [(ngModel)]=\"val.ocorrenciaLaudo.descricao\" class=\"form-control form-control-sm\"\n                            type=\"text\" [disabled]=\"true\" />\n                    </div>\n                </div>\n                <div class=\"col-lg-3 col-md-4 col-sm-10\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-data-h-m id=\"data_timelog_{{i}}_i\" name=\"data_timelog_{{i}}_i\"\n                            [(ngModel)]=\"service.auxTimeLogs[i].dtOcorrencia\"\n                            (executa)=\"validateDateITimeLog(service.auxTimeLogs[i])\"\n                            [disabled]=\"isDetail || detail ? true: null\">\n                        </app-data-h-m>\n                    </div>\n                </div>\n                <ng-container *ngIf=\"val.ocorrenciaLaudo.flagPeriodo === 'S'\">\n                    <div class=\"col-lg-3 col-md-4 col-sm-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <app-data-h-m id=\"data_timelog_{{i}}_f\" name=\"data_timelog_{{i}}_f\"\n                                [(ngModel)]=\"service.auxTimeLogs[i].dtOcorrenciaFim\"\n                                (executa)=\"validateDateFTimeLog(service.auxTimeLogs[i])\"\n                                [disabled]=\"isDetail || detail ? true: null\">\n                            </app-data-h-m>\n                        </div>\n                    </div>\n                </ng-container>\n            </ng-container>\n        </div>\n        <div class=\"row\" *ngIf=\"!service.auxTimeLogs || (service.auxTimeLogs && service.auxTimeLogs.length === 0)\">\n            <div class=\"col-lg-6\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12 mt-2\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"onSubmit(formItem)\" *ngIf=\"!detail\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-clientes/operacao-do-navio-alterar-estrutura-laudo-clientes.component.html":
/*!*******************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-clientes/operacao-do-navio-alterar-estrutura-laudo-clientes.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 *ngIf=\"!showAdd\">\n    <div class=\"container-buttons\">\n        <div class=\"btn-group\">\n            <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [icon]=\"'icon-plus'\" (click)=\"new()\"\n                [disabled]=\"!funcoesService.isEdit(actionForm)\">\n            </app-menu-button>\n            <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" (click)=\"excluir()\"\n                [disabled]=\"!dataCliItem.destinatarioIdCliente\">\n            </app-menu-button>\n\n        </div>\n    </div>\n    <div class=\"card\">\n        <div class=\"card-body\">\n            <div class=\"row\">\n                <div class=\"col-lg-9\">\n                    <p>\n                        <strong>{{ 'titles.clientesDoItem' | translate }}</strong>\n                    </p>\n                </div>\n                <div class=\"col-lg-3 \">\n                    <button type=\"button\" class=\"btn btn-success\" (click)=\"geraNovoItemParaEsteCliente()\"\n                        [disabled]=\"!dataCliItem.destinatarioIdCliente\">\n                        <i class=\"fa fa-arrow-up mr-2\"></i>\n                        <i class=\"fa fa-minus\"></i>\n                        {{ 'buttons.geraNovoItemParaEsteCliente' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n    <table class=\"table table-striped table-bordered table-hover rownowrap table-sm\">\n        <thead>\n            <tr>\n                <th class=\"text-right\">{{ \"labels.codigo\" | translate }}</th>\n                <th class=\"text-left\">{{ \"labels.cliente\" | translate }}</th>\n                <th class=\"text-left\">{{ \"labels.osg\" | translate }}</th>\n                <th class=\"text-left\">{{ \"labels.bl\" | translate }}</th>\n                <th class=\"text-right\">{{ \"labels.kilosManif\" | translate }}</th>\n                <th class=\"text-right\">{{ \"labels.litrosManif\" | translate }}</th>\n                <th class=\"text-left\">{{ \"labels.codDeIntegracao\" | translate }}</th>\n            </tr>\n        </thead>\n        <tbody>\n            <tr *ngFor=\"let val of clientesDoItem | removeExcluidos; let i = index\" (click)=\"selected(val, i)\"\n                [ngClass]=\"{'info': _index === i && dataCliItem.stoLaudoItemId === val?.stoLaudoItemId }\">\n                <td class=\"text-right\">{{ val.destinatarioIdCliente }}</td>\n                <td class=\"text-left\">{{ val.fantasiaCliente }}</td>\n                <td class=\"text-left\">{{ val.numeroOsg }}</td>\n                <td class=\"text-left\">{{ val.numBL }}</td>\n                <td class=\"text-right\">{{ val.kilosManif | formatCurrency: 0 }}</td>\n                <td class=\"text-right\">{{ val.litrosManif | formatCurrency: 0 }}</td>\n                <td class=\"text-left\">{{ val.codIntegracao }}</td>\n            </tr>\n            <tr *ngIf=\"!clientesDoItem || clientesDoItem.length === 0\">\n                <th colspan=\"7\">\n                    {{'messages.nenhumRegistroEncontrado' | translate }}\n                </th>\n            </tr>\n        </tbody>\n    </table>\n    <div class=\"clearfix\">&nbsp;</div>\n    <div class=\"card\">\n        <div class=\"card-body\">\n            <div class=\"row\">\n                <div class=\"col-lg-9\">\n                    <p>\n                        <strong>{{ 'titles.clientesDeOutrosItens' | translate }}</strong>\n                    </p>\n                </div>\n                <div class=\"col-lg-3 \">\n                    <button type=\"button\" class=\"btn btn-success\" (click)=\"transfereClienteParaItem()\"\n                        [disabled]=\"!dataCliOutrosItens.destinatarioIdCliente\">\n                        <i class=\"fa fa-arrow-down mr-2\"></i>\n                        <i class=\"fa fa-plus\"></i>\n                        {{ 'buttons.transfereClienteParaItem' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n    <table class=\"table table-striped table-bordered table-hover rownowrap table-sm\">\n        <thead>\n            <tr>\n                <th class=\"text-right\">{{ \"labels.item\" | translate }}</th>\n                <th class=\"text-right\">{{ \"labels.codigo\" | translate }}</th>\n                <th class=\"text-left\">{{ \"labels.cliente\" | translate }}</th>\n                <th class=\"text-left\">{{ \"labels.osg\" | translate }}</th>\n                <th class=\"text-left\">{{ \"labels.bl\" | translate }}</th>\n                <th class=\"text-right\">{{ \"labels.kilosManif\" | translate }}</th>\n                <th class=\"text-right\">{{ \"labels.litrosManif\" | translate }}</th>\n                <th class=\"text-left\">{{ \"labels.marca\" | translate }}</th>\n            </tr>\n        </thead>\n        <tbody>\n            <tr *ngFor=\"let val of clientesOutrosItens | removeExcluidos; let i = index\" (click)=\"selectedOut(val, i)\"\n                [ngClass]=\"{'info': _index === i && dataCliOutrosItens.stoLaudoItemId === val?.stoLaudoItemId }\">\n                <td class=\"text-right\">{{ val.stoLaudoItemId }}</td>\n                <td class=\"text-right\">{{ val.destinatarioIdCliente }}</td>\n                <td class=\"text-left\">{{ val.fantasiaCliente }}</td>\n                <td class=\"text-left\">{{ val.numeroOsg }}</td>\n                <td class=\"text-left\">{{ val.numBL }}</td>\n                <td class=\"text-right\">{{ val.kilosManif | formatCurrency: 0 }}</td>\n                <td class=\"text-right\">{{ val.litrosManif | formatCurrency: 0 }}</td>\n                <td class=\"text-left\">{{ val.marca }}</td>\n            </tr>\n            <tr *ngIf=\"!clientesOutrosItens || clientesOutrosItens.length === 0\">\n                <th colspan=\"9\">\n                    {{'messages.nenhumRegistroEncontrado' | translate }}\n                </th>\n            </tr>\n        </tbody>\n    </table>\n</div>\n<div *ngIf=\"showAdd\">\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n        <div class=\"row\">\n            <div class=\"col-12\">\n                <app-validacoes formErrorId=\"msgCliItem\"></app-validacoes>\n                <div class=\"row\">\n                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <app-input-description label=\"produto\" [valueID]=\"item.materialId\"\n                                [valueDescription]=\"item?.material?.fantasia\">\n                            </app-input-description>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                                [(ngModel)]=\"dataCliItem.destinatarioIdCliente\" [inSelected]=\"dataCliItem.cliente\"\n                                tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\" required=\"true\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\" (outModel)=\"trataCliente($event)\">\n                            </app-pesquisa-destinatario>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group\">\n                            <app-pesquisa-osg id=\"osg\" label=\"osg\" name=\"osg\" required=\"true\"\n                                [destinatarioIdCliente]=\"dataCliItem.destinatarioIdCliente\"\n                                [materialId]=\"item.materialId\" [(ngModel)]=\"dataCliItem.numeroOsg\">\n                            </app-pesquisa-osg>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"numBl\" class=\"required\">{{'labels.numBl' | translate}}</label>\n                            <input id=\"numBl\" name=\"numBl\" [(ngModel)]=\"dataCliItem.numBL\"\n                                class=\"form-control form-control-sm\" type=\"text\" required maxlength=\"28\">\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <div class=\"col-lg-3 col-md-6 col-12\">\n                        <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\" modalTitle=\"lote\"\n                            [materialId]=\"item.materialId\" [(ngModel)]=\"dataCliItem.loteId\"\n                            [destinatarioIdCliente]=\"dataCliItem.destinatarioIdCliente\"\n                            (outLote)=\"onSelectedLote($event)\" [loteId]=\"dataCliItem.loteId\">\n                        </app-pesquisa-lote>\n                    </div>\n                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"codIntegracao\" [class.required]=\"obrigaCodIntegracao\">{{'labels.codDeIntegracao'\n                                |\n                                translate}}</label>\n                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"codIntegracao\"\n                                name=\"codDeIntegracao\" maxlength=\"30\" [(ngModel)]=\"dataCliItem.codIntegracao\"\n                                [required]=\"obrigaCodIntegracao\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3 col-md-6 col-sm-12\" *ngIf=\"obrigaTipoNota\">\n                        <div class=\"form-group form-group-sm\">\n                            <label [class.required]=\"obrigaTipoNota\" for=\"tipoNota\">\n                                {{'labels.tipoNota' | translate}}\n                            </label>\n                            <select class=\"form-control form-control-sm\" id=\"tipoNota\" name=\"tipoNota\"\n                                [required]=\"obrigaTipoNota\" [(ngModel)]=\"dataCliItem.tipoNota\">\n                                <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                <option *ngFor=\"let t of raizenTipoNotas\" [value]=\"t.chave\">{{ t.valor }}</option>\n                            </select>\n                        </div>\n                    </div>\n                </div>\n                <div *ngIf=\"sapRaizen && item.tipoMov === 'D' && tipoOperCabotagem\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-4 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"chaveNFe\">{{'labels.chaveNFE'| translate}}</label>\n                                <input type=\"text\" id=\"chaveNFe\" name=\"chaveNfe\" class=\"form-control form-control-sm\"\n                                    [(ngModel)]=\"dataCliItem.chaveNFE\" maxlength=\"44\" />\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-2 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"numNfe\">\n                                    {{'labels.numNfe' | translate}}\n                                </label>\n                                <input id=\"numNfe\" name=\"numNfe\" type=\"text\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [(ngModel)]=\"dataCliItem.numeroNFE\" class=\"form-control form-control-sm\" />\n                            </div>\n                        </div>\n                        <div class=\"col-lg-2 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"dataNfe\">\n                                    {{'labels.dataNfe' | translate}}\n                                </label>\n                                <app-data id=\"dataNfe\" name=\"dataNfe\" [(ngModel)]=\"dataCliItem.dataNFE\" class=\"dataHora\"\n                                    [formatDateTime]=\"mascara.getFormatData\">\n                                </app-data>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"row mt-2\">\n                    <div class=\"col-sm-12\">\n                        <div class=\"form-group\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                {{ 'buttons.salvar' | translate }}\n                            </button>\n                            <button class=\"btn btn-default\" type=\"button\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\" (click)=\"back()\">\n                                {{ 'buttons.cancelar' | translate }}\n                            </button>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </form>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-create-modal/operacao-do-navio-alterar-estrutura-laudo-create-modal.component.html":
/*!***************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-create-modal/operacao-do-navio-alterar-estrutura-laudo-create-modal.component.html ***!
  \***************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"modalCreate\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-sm\">\r\n        <div class=\"modal-content\">\r\n            <form class=\"form\" #frmPrint=\"ngForm\" (ngSubmit)=\"onSubmit(frmPrint)\">\r\n                <div class=\"modal-header\">\r\n                    <h5 class=\"modal-title\">{{ 'titles.operacao' | translate }}</h5>\r\n                    <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n                        <span aria-hidden=\"true\">&times;</span>\r\n                    </button>\r\n                </div>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipoDeOperacao\">{{'labels.tipoDeOperacao' | translate}}</label>\r\n                                <select id=\"tipoDeOperacao\" name=\"tipoDeOperacao\" class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"tipoSelecionado\">\r\n                                    <option value=\"\">{{ 'labels.selecione' | translate}}</option>\r\n                                    <option *ngFor=\"let tipo of tiposOperacao\" [value]=\"tipo.value\">{{ tipo.label |\r\n                                        translate}}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button type=\"submit\" class=\"btn btn-small btn-success\" [disabled]=\"tipoSelecionado == ''\">{{\r\n                        'buttons.ok' | translate }}</button>\r\n                    <button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.cancelar' |\r\n                        translate }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-form.component.html":
/*!***********************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-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.listaAlterarEstruturaLaudoForm\" [formAction]=\"actionForm\"\n    [itemData]=\"data.stoLaudoId\" [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                    <div class=\"clearfix\">\n                        <ul class=\"nav nav-tabs \">\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link active show\" data-toggle=\"tab\" (click)=\"abaClicada('I')\"\n                                    href=\"#itens\">{{\"labels.itens\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\" *ngIf=\"!funcoesService.isCreate(actionForm)\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('C')\"\n                                    href=\"#clientes\">{{\"labels.clientes\" |\n                                    translate}}</a>\n                            </li>\n                        </ul>\n                    </div>\n                    <div class=\"tab-content top\">\n                        <app-validacoes class=\"us-validacoes\"></app-validacoes>\n                        <div class=\"tab-pane active show pl-0 pr-0\" id=\"itens\">\n                            <form class=\"form\" #f=\"ngForm\" autocomplete=\"off\">\n                                <app-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n                                <div class=\" row\">\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                                (outSelected)=\"data.material = $event\" modalTitle=\"pesquisaDeProduto\"\n                                                [inSelected]=\"data.material\" [(ngModel)]=\"data.materialId\"\n                                                [disabled]=\"!funcoesService.isCreate(actionForm)\" required=\"true\">\n                                            </app-pesquisa-material>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <div class=\"form-check-inline\">\n                                                <input id=\"carga\" name=\"carga\" class=\"form-check-input\" value=\"C\"\n                                                    [(ngModel)]=\"data.tipoMov\" type=\"radio\"\n                                                    [disabled]=\"!funcoesService.isCreate(actionForm)\" />\n                                                <label for=\"carga\">{{ 'labels.carga' | translate }}</label>\n                                            </div>\n                                            <div class=\"form-check-inline\">\n                                                <input id=\"descarga\" name=\"descarga\" class=\"form-check-input\" value=\"D\"\n                                                    [(ngModel)]=\"data.tipoMov\" type=\"radio\"\n                                                    [disabled]=\"!funcoesService.isCreate(actionForm)\" />\n                                                <label for=\"descarga\">{{ 'labels.descarga' | translate }}</label>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoMovimentoNavioId\" class=\"required\">{{\n                                                'labels.tipoOperacao' | translate\n                                                }}</label>\n                                            <app-combo-padrao id=\"tipoMovimentoNavioId\" name=\"tipoOperacao\"\n                                                tabela=\"TipoMovimentoNavio\" chave=\"CodMovnavio\"\n                                                descricao=\"DescrMovNavio\" ativos=\"true\" [required]=\"true\"\n                                                [disabled]=\"!funcoesService.isCreate(actionForm)\"\n                                                [(ngModel)]=\"data.tipoMovimentoNavioId\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\n                                        <div class=\"mt-2 custom-control custom-checkbox\">\n                                            <label></label>\n                                            <br />\n                                            <input id=\"campoMarcado\" name=\"tanqueMarcado\"\n                                                (ngModelChange)=\"data.campoMarcado = $event ? 'S' : 'N'\"\n                                                [ngModel]=\"data.campoMarcado ==='S'\"\n                                                [disabled]=\"!funcoesService.isCreate(actionForm)\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                            <label class=\"custom-control-label\"\n                                                for=\"campoMarcado\">{{'labels.tanqueMarcado'\n                                                | translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"observacao\">{{'labels.observacao' | translate}}</label>\n                                            <input type=\"text\" id=\"observacao\" name=\"observacao\" maxlength=\"250\"\n                                                class=\"form-control form-control-sm\" [(ngModel)]=\"data.observacao\"\n                                                [disabled]=\"!funcoesService.isCreate(actionForm)\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </form>\n                            <div class=\"row\" id=\"button\">\n                                <div class=\"col-6 col-12\">\n                                    <div class=\"form-group\">\n                                        <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"onSubmit(f)\"\n                                            [disabled]=\"!funcoesService.isCreate(actionForm)\">\n                                            {{ 'buttons.salvar' | translate }}\n                                        </button>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0 pl-0\" id=\"clientes\">\n                            <app-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n                            <app-operacao-do-navio-alterar-estrutura-laudo-clientes [item]=\"data\"\n                                [clientesDoItem]=\"data.clientesDoItem\" [clientesOutrosItens]=\"data.clientesOutrosItens\"\n                                [actionForm]=\"actionForm\" (showButtom)=\"updateShowButtom($event)\"\n                                (onRefresh)=\"refresh()\">\n                            </app-operacao-do-navio-alterar-estrutura-laudo-clientes>\n                        </div>\n                        <div class=\"row\" *ngIf=\"service.showBtnGravarDesfazerEstruturaLaudo\" id=\"button_\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" [disabled]=\"false\" (click)=\"gravar()\"\n                                        type=\"button\">{{'buttons.gravar'\n                                        |\n                                        translate }}\n                                    </button>\n                                    <button class=\"btn btn-danger mr-2\" (click)=\"desfazer()\" type=\"button\"\n                                        [disabled]=\"false\">{{\n                                        'buttons.desfazer' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.component.html":
/*!*******************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.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.listaAlterarEstruturaLaudo\" [itemData]=\"data.item\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtAlterarEstruturaLaudo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n<div *ngIf=\"service.showBtnGravarDesfazerEstruturaLaudo\">\n    <button class=\"btn btn-success mr-2\" (click)=\"gravar()\" type=\"button\">{{'buttons.gravar'\n        |\n        translate }}\n    </button>\n    <button class=\"btn btn-danger mr-2\" (click)=\"desfazer()\" type=\"button\">{{\n        'buttons.desfazer' | translate }}\n    </button>\n</div>\n<app-operacao-do-navio-alterar-estrutura-laudo-create-modal\n    (outConfirma)=\"confirmaCreate($event)\"></app-operacao-do-navio-alterar-estrutura-laudo-create-modal>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.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-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataAnexarDocto?.sequencia\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataAnexarDocto?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataAnexarDocto?.sequencia || isDetail\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.descricao\" | translate}}\n        </th>\n        <th>\n            {{\"labels.numero\" | translate}}\n        </th>\n        <th>\n            {{\"labels.arquivoOriginal\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.stoLaudoDoctos | removeExcluidos;let i = index\" (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && service.dataAnexarDocto.sequencia === val.sequencia }\">\n            <td class=\"px-200-l\">\n                {{ val.descrDocto }}\n            </td>\n            <td class=\"px-100-l\">\n                {{ val.numDocto }}\n            </td>\n            <td>\n                {{ val.arquivoOriginal }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service.data.stoLaudoDoctos || service.data.stoLaudoDoctos.length === 0\">\n            <th colspan=\"4\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataAnexarDocto\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <app-validacoes></app-validacoes>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                <label for=\"numDocto\" class=\"required\"> {{ 'labels.numero' | translate }}\n                </label>\n                <input id=\"numDocto\" required=\"true\" name=\"numDocto\" maxlength=\"15\"\n                    [(ngModel)]=\"service.dataAnexarDocto.numDocto\" class=\"form-control form-control-sm\" type=\"text\"\n                    [disabled]=\"isDetail || detail\" />\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group\">\n                    <label for=\"template_descrDocto\" class=\"required\">{{'labels.descricao' | translate}}</label>\n                    <textarea id=\"template_descrDocto\" name=\"template_descrDocto\"\n                        [(ngModel)]=\"service.dataAnexarDocto.descrDocto\" class=\"form-control\" maxlength=\"150\"\n                        type=\"text\" [disabled]=\"isDetail || detail\" rows=\"4\" required></textarea>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-6\">\n                <div id=\"main-preview\" class=\"col-md-12\">\n                    <canvas id=\"pdf-canvas\" width=\"400\"></canvas>\n                </div>\n                <a href=\"javascript:;\" id=\"btn-select-image\" class=\"btn btn-default\" (click)=\"selectImage()\"\n                    *ngIf=\"!isDetail && !detail\" style=\"margin-top: 10px;width: 100%;\">\n                    {{ 'labels.gravarArquivoPdf' | translate }}\n                </a>\n                <div style=\"margin-top: 10px;width: 100%;\" *ngIf=\"isDetail || detail\"></div>\n                <input id=\"file\" name=\"arquivo\" accept=\".pdf\" required=\"true\" (change)=\"preview($event)\"\n                    class=\"form-control form-control-sm\" type=\"file\">\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail ? true: null\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-cabecalho/operacao-do-navio-cabecalho.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-cabecalho/operacao-do-navio-cabecalho.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-card-container tituloCard=\"\">\n    <div class=\"row\">\n        <div class=\"col-lg-2\">\n            <div class=\"form-group form-group-sm\">\n                <label>{{'labels.numero' | translate}}</label>\n                <input type=\"text\" name=\"stoLaudoId\" class=\"form-control form-control-sm\"\n                    value=\"{{service.data?.stoLaudoId}}\" disabled>\n            </div>\n        </div>\n        <div class=\"col-lg-6 col-md-12\">\n            <div class=\"row\">\n                <div class=\"col-lg-12 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-input-description label=\"navio\" [valueID]=\"service.data?.destinatarioIdNavio\"\n                            [valueDescription]=\"service.data?.navio?.fantasia\">\n                        </app-input-description>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</app-card-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-conclusao/operacao-do-navio-conclusao.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-conclusao/operacao-do-navio-conclusao.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=\"modal-operacao-do-navio-conclusao\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n  <div class=\"modal-dialog modal-sm\">\n    <div class=\"modal-content\">\n      <div class=\"modal-header\">\n        <h6 class=\"modal-title\">{{ \"titles.operacaoDoNavio\" | 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-12\">\n              <label for=\"dataConclusao\" class=\"required\">{{ 'labels.dataConclusao' | translate }}</label>\n              <app-data-h-m-s id=\"dataConclusao\" name=\"dataConclusao\" [(ngModel)]=\"dataConclusao\" required>\n              </app-data-h-m-s>\n            </div>\n          </div>\n          <ng-container *ngIf=\"kilosVacuo\">\n            <fieldset>\n              <legend>{{ \"labels.considerar\" | translate }}</legend>\n              <div class=\"form-group form-group-sm\">\n                <div class=\"form-check\">\n                  <div class=\"form-check-inline\">\n                    <input id=\"consideraKilosArS\" name=\"consideraKilosAr\" value=\"N\" [(ngModel)]=\"consideraKilosAr\"\n                      class=\"form-check-input\" type=\"radio\" />\n                    <label for=\"consideraKilosArS\">{{'labels.kilosVacuo'|translate}}</label>\n                  </div>\n                </div>\n                <div class=\"form-check\">\n                  <div class=\"form-check-inline\">\n                    <input id=\"consideraKilosArN\" name=\"consideraKilosAr\" value=\"S\" [(ngModel)]=\"consideraKilosAr\"\n                      class=\"form-check-input\" type=\"radio\" />\n                    <label for=\"consideraKilosArN\">{{'labels.kilosAr'|translate}}</label>\n                  </div>\n                </div>\n              </div>\n            </fieldset>\n          </ng-container>\n        </div>\n        <div class=\"modal-footer\">\n          <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.concluir' | translate }}\n          </button>\n          <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n            {{ 'buttons.cancelar' | translate }}\n          </button>\n        </div>\n      </form>\n    </div>\n  </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.component.html":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.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.listaConsultaAntecipacao\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <fieldset class=\"mt-3\">\n                <legend>{{\"labels.produtos\" | translate}}</legend>\n                <div class=\"row\">\n                    <div class=\"col-12\">\n                        <div class=\"table-responsive\" style=\"overflow: auto;\">\n                            <table id=\"dtResumo\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                <thead>\n                                    <tr>\n                                        <th>{{ 'labels.laudo' | translate }}</th>\n                                        <th>{{ 'labels.material' | translate }}</th>\n                                        <th>{{ 'labels.produto' | translate }}</th>\n                                    </tr>\n                                </thead>\n                                <tbody>\n                                    <tr *ngFor=\"let t of dadosProduto; index as i\"\n                                        [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\"\n                                        (click)=\"rowSelect(t,i)\">\n                                        <td>{{ t.laudoId }}</td>\n                                        <td>{{ t.materialId }}</td>\n                                        <td>{{ t.produto }}</td>\n                                    </tr>\n                                    <tr *ngIf=\"!hasDadosProduto\">\n                                        <th colspan=\"3\" style=\"text-align: center\">\n                                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                        </th>\n                                    </tr>\n                                </tbody>\n                            </table>\n                        </div>\n                    </div>\n                </div>\n            </fieldset>\n            <fieldset class=\"mt-3\">\n                <legend>{{\"labels.antecipacoes\" | translate}}</legend>\n                <div class=\"row\">\n                    <div class=\"col-12\">\n                        <div class=\"table-responsive\" style=\"overflow: auto;\">\n                            <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                <thead>\n                                    <tr>\n                                        <th colspan=\"4\" class=\"text-center\"></th>\n                                        <th colspan=\"2\" class=\"text-center\">{{\"labels.antecipado\" | translate}}</th>\n                                    </tr>\n                                    <tr>\n                                        <th>{{\"labels.deposito\" | translate}}</th>\n                                        <th>{{\"labels.cliente\" | translate}}</th>\n                                        <th>{{\"labels.docto\" | translate}}</th>\n                                        <th>{{\"labels.autorizacao\" | translate}}</th>\n                                        <th style=\"text-align: right;\">{{\"labels.kilos\" | translate}}</th>\n                                        <th style=\"text-align: right;\">{{\"labels.litros\" | translate}}</th>\n                                    </tr>\n                                </thead>\n                                <tbody>\n                                    <tr *ngFor=\"let val of dadosCliente; let i = index\" (click)=\"dataSelected = val\"\n                                        [ngClass]=\"{'info': val.autorizacao === dataSelected?.autorizacao}\">\n                                        <td>{{ val.tanqueId }}</td>\n                                        <td>{{ val.cliente }}</td>\n                                        <td>{{ val.numBL }}</td>\n                                        <td>{{ val.autorizacao }}</td>\n                                        <td style=\"text-align: right;\">{{ val.kilos | formatCurrency: 0 }}</td>\n                                        <td style=\"text-align: right;\">{{ val.litros | formatCurrency: 0 }}</td>\n                                    </tr>\n                                    <tr *ngIf=\"!hasDadosCliente\">\n                                        <ng-container>\n                                            <th colspan=\"6\">{{'messages.nenhumRegistroEncontrado' | translate }}</th>\n                                        </ng-container>\n                                    </tr>\n                                </tbody>\n                            </table>\n                        </div>\n                    </div>\n                </div>\n            </fieldset>\n        </div>\n    </div>\n</div>\n\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise-produtos-cabecalho/operacao-do-navio-dados-analise-produtos-cabecalho.component.html":
/*!*********************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise-produtos-cabecalho/operacao-do-navio-dados-analise-produtos-cabecalho.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-card-container tituloCard=\"\">\n    <div class=\"row\">\n        <div class=\"col-lg-2\">\n            <div class=\"form-group form-group-sm\">\n                <label>{{'labels.numero' | translate}}</label>\n                <input type=\"text\" name=\"stoLaudoId\" class=\"form-control form-control-sm\"\n                    value=\"{{service.data?.stoLaudoId}}\" disabled>\n            </div>\n        </div>\n        <div class=\"col-lg-6 col-md-12\">\n            <div class=\"row\">\n                <div class=\"col-lg-12 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-input-description label=\"navio\" [valueID]=\"service.data?.destinatarioIdNavio\"\n                            [valueDescription]=\"service.data?.navio?.fantasia\">\n                        </app-input-description>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class=\"row\">\n        <div class=\"col-lg-6 col-md-12\">\n            <div class=\"form-group form-group-sm\">\n                <app-input-description label=\"produto\" [valueID]=\"service.dataDadosAnalise?.materialId\"\n                    [valueDescription]=\"service.dataDadosAnalise?.descrMater\">\n                </app-input-description>\n            </div>\n        </div>\n    </div>\n</app-card-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.html":
/*!***********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.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-operacao-do-navio-dados-analise-produtos-cabecalho></app-operacao-do-navio-dados-analise-produtos-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataDadosAnalise?.sequencia\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataDadosAnalise?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n    </div>\n</div>\n<table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.produto\" | translate}}\n        </th>\n        <th>\n            {{\"labels.descricao\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.stoLaudoDadosAnalise | removeExcluidos;let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && service.dataDadosAnalise.sequencia === val.sequencia}\">\n            <td>\n                {{ val.materialId }}\n            </td>\n            <td>\n                {{ val.descrMater }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service.data.stoLaudoDadosAnalise || service.data.stoLaudoDadosAnalise.length === 0\">\n            <th colspan=\"4\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n<ng-container *ngIf=\"!!service.dataDadosAnalise\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <app-validacoes></app-validacoes>\n        <div class=\"row\">\n            <div *ngFor=\"let cpd of service.dataDadosAnalise.analises; let i = index\"\n                class=\"col-lg-4 col-md-4 col-sm-12\">\n                <app-analise-campos-dinamicos name=\"cpd{{i}}\" [campoDinamico]=\"cpd\" [(ngModel)]=\"cpd.valor\"\n                    [disabled]=\"isDetail || detail\" [required]=\"true\" [exibeLegenda]=\"true\">\n                </app-analise-campos-dinamicos>\n            </div>\n        </div>\n        <div class=\"row mt-2\">\n            <div class=\"col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\"\n                        [disabled]=\"isDetail || detail || !service.dataDadosAnalise.analises[0] ? true: null\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-error-msg/operacao-do-navio-error-msg.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-error-msg/operacao-do-navio-error-msg.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\" id=\"operacao-do-navio-error-msg-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.divergencias' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\" *ngFor=\"let item of objMsg.msg\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <span>{{ item | translate }}</span>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-filter/operacao-do-navio-filter.component.html":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-filter/operacao-do-navio-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-operacao-do-navio-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.operacaoDoNavio' | 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-4\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"laudo\">{{'labels.laudo' | translate}}</label>\n                                <input id=\"laudo\" name=\"laudo\" [(ngModel)]=\"service.filter.stoLaudoId\"\n                                    class=\"form-control form-control-sm\" mask=\"999999999\" type=\"text\" maxlength=\"9\">\n                            </div>\n                        </div>\n                    </div>\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.periodoDe' |\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.periodoAte' |\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-12 col-md-8\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                                    modalTitle=\"cliente\" [(ngModel)]=\"service.filter.destinatarioIdCliente\"\n                                    tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\"\n                                    [inSelected]=\"service.filter.cliente\"\n                                    (outModel)=\"!!$event ? service.filter.cliente = $event : ''\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filter.materialId\"\n                                [inSelected]=\"service.filter.material\"\n                                (outModel)=\"!!$event ? service.filter.material = $event : ''\">\n                            </app-pesquisa-material>\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=\"situacao\">{{ 'labels.situacao' | translate}}</label>\n                                <select id=\"situacao\" name=\"situacao\" [(ngModel)]=\"service.filter.sitReg\"\n                                    class=\"form-control form-control-sm\">\n                                    <option value=\"T\">{{ 'labels.todos' | translate}}</option>\n                                    <option value=\"A\">{{ 'labels.abertos' | translate}}</option>\n                                    <option value=\"O\">{{ 'labels.liberadoOperacao' | translate}}</option>\n                                    <option value=\"R\">{{ 'labels.liberadoRateio' | translate}}</option>\n                                    <option value=\"F\">{{ 'labels.liberadoFiscal' | translate}}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-form/operacao-do-navio-form.component.html":
/*!*****************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-form/operacao-do-navio-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]=\"service.data.stoLaudoId\" [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                    <div class=\"clearfix\">\n                        <ul class=\"nav nav-tabs \">\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#dados\">{{\"labels.dados\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#produtos\">{{\"labels.produtos\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#horaOperacional\">{{\"labels.horaOperacional\"\n                                    | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#_ocorrencia\">{{\"labels.ocorrencia\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#operador\">{{\"labels.operador\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#timeLog\">{{\"labels.timeLog\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#draft\">{{\"labels.draft\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#anexarDocto\">{{\"labels.anexarDocto\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#manifesto\">{{\"labels.manifesto\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\" *ngIf=\"exibeAbaDadosAnalise\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#dadosAnalise\">{{\"labels.dadosAnalise\" |\n                                    translate}}</a>\n                            </li>\n                        </ul>\n                    </div>\n                    <div class=\"tab-content top\">\n                        <app-validacoes class=\"us-validacoes\"></app-validacoes>\n                        <div class=\"tab-pane active show pl-0 pr-0\" id=\"dados\">\n                            <form class=\"form\" #f=\"ngForm\" autocomplete=\"off\">\n                                <app-card-container tituloCard=\"\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-2\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label>{{'labels.numero' | translate}}</label>\n                                                <input type=\"text\" name=\"stoLaudoId\"\n                                                    class=\"form-control form-control-sm\"\n                                                    value=\"{{service.data?.stoLaudoId}}\" disabled>\n                                            </div>\n                                        </div>\n                                        <div class=\"col-lg-6 col-md-12\">\n                                            <div class=\"row\">\n                                                <div class=\"col-lg-12 col-md-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <app-input-description label=\"navio\"\n                                                            [valueID]=\"service.data?.destinatarioIdNavio\"\n                                                            [valueDescription]=\"service.data?.navio?.fantasia\">\n                                                        </app-input-description>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </app-card-container>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-4\">\n                                        <div class=\"form-group \">\n                                            <label [class.required]=\"requiredViagem\" for=\"regViagem\">{{'labels.viagem' |\n                                                translate}}</label>\n                                            <select class=\"form-control form-control-sm\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                [required]=\"requiredViagem\" id=\"regViagem\" name=\"regViagem\"\n                                                (change)=\"changeRegViagem($event)\"\n                                                [(ngModel)]=\"service.data.viagemNavioId\">\n                                                <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                                <option value=\"{{ item.viagemNavioId }}\"\n                                                    *ngFor=\"let item of regViagemList\">\n                                                    {{ item.dtAtracacao | date: 'dd/MM/yyyy HH:mm' }}\n                                                    - {{ item.numViagem }}</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-8\">\n                                        <div class=\"form-group \">\n                                            <label for=\"carimboCod\">&nbsp;</label>\n                                            <input type=\"text\" id=\"carimboCod\" name=\"carimboCod\"\n                                                class=\"form-control form-control-sm\" maxlength=\"12\"\n                                                [(ngModel)]=\"service.data.carimboCod\" [disabled]=\"true\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-6\">\n                                        <div class=\"form-group \">\n                                            <label for=\"numLaudo\" class=\"required\">{{'labels.nrControle' |\n                                                translate}}</label>\n                                            <input type=\"text\" id=\"numLaudo\" required=\"true\" name=\"numLaudo\"\n                                                class=\"form-control form-control-sm\" [(ngModel)]=\"service.data.numLaudo\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"pier\" class=\"required\">{{ 'labels.pier' | translate}}</label>\n                                            <app-combo-padrao id=\"pier\" name=\"pier\" tabela=\"Pier\" required=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\"\n                                                descricao=\"DescrPier\" chave=\"CodPier\" [(ngModel)]=\"service.data.pierId\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6\">\n                                        <label for=\"dtMovimiento\" class=\"required\"> {{ 'labels.dataAtracao' | translate\n                                            }}\n                                        </label>\n                                        <app-data id=\"dtMovimiento\" name=\"dtMovimiento\" [required]=\"true\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\"\n                                            [(ngModel)]=\"service.data.dtMovimento\" (executa)=\"validateDtMovimiento()\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"row mt-3\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-6\">\n                                        <div class=\"form-group\">\n                                            <label for=\"codPortoOri\" class=\"required\">{{ 'labels.portoOrigem' |\n                                                translate}}</label>\n                                            <app-combo-padrao id=\"codPortoOri\" name=\"codPortoOri\" tabela=\"Porto\"\n                                                [required]=\"true\" descricao=\"DescrPorto\" chave=\"CodPorto\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\"\n                                                [(ngModel)]=\"service.data.portoIdOrigem\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-6\">\n                                        <div class=\"form-group\">\n                                            <label class=\"required\" for=\"codPortoDest\">{{\n                                                'labels.portoDestino' | translate}}</label>\n                                            <app-combo-padrao id=\"codPortoDest\" name=\"codPortoDest\" tabela=\"Porto\"\n                                                descricao=\"DescrPorto\" chave=\"CodPorto\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\"\n                                                [(ngModel)]=\"service.data.portoIdDestino\" [required]=\"true\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <app-input-description [label]=\"'operador'\"\n                                            [valueID]=\"service.data.portIdOpPortuario\"\n                                            [valueDescription]=\"operador?.fantasia\"></app-input-description>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"inspetora\" name=\"inspetora\"\n                                                label=\"inspetora\" [required]=\"service.config.obrigaInspetora\"\n                                                modalTitle=\"pesquisaDeInspetora\"\n                                                [(ngModel)]=\"service.data.destinatarioIdInspetora\"\n                                                tipoDestinatario=\"B\" showCgcCpf=\"false\"\n                                                showInscricao=\"false\"\n                                                (outModel)=\"outputInspetora($event)\"\n                                                [inSelected]=\"service.data.inspetora\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)? true: false\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12\">\n                                        <div class=\"form-group\">\n                                            <label for=\"observacao\">{{'labels.observacao' | translate}}</label>\n                                            <textarea class=\"form-control form-control-sm\" maxlength=\"70\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm) ? true: false\"\n                                                id=\"observacao\" name=\"observacao\" [(ngModel)]=\"service.data.observ\"\n                                                rows=\"3\"></textarea>\n                                        </div>\n                                    </div>\n                                </div>\n                            </form>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0 pl-0\" id=\"produtos\">\n                            <app-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n                            <ul class=\"nav nav-tabs \">\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link active show\" data-toggle=\"tab\"\n                                        href=\"#produtos_dados\">{{\"labels.dados\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#produtos_clientes\">{{\"labels.clientes\"\n                                        | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                        href=\"#produtos_horario_operacional\">{{\"labels.horaOperacional\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\"\n                                        href=\"#produtos_ocorrencias\">{{\"labels.ocorrencias\" | translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#produtos_bordo\">{{\"labels.bordo\" |\n                                        translate}}</a>\n                                </li>\n                            </ul>\n                            <div class=\"tab-content top\">\n                                <div class=\"tab-pane active show pl-0 pr-0\" id=\"produtos_dados\">\n                                    <app-operacao-do-navio-aba-produtos-dados\n                                        [isDetail]=\"funcoesService.isDetail(actionForm)\"\n                                        (response)=\"updateShowButtom($event)\">\n                                    </app-operacao-do-navio-aba-produtos-dados>\n                                </div>\n                                <div class=\"tab-pane pl-0 pr-0\" id=\"produtos_clientes\">\n                                    <app-operacao-do-navio-aba-produtos-cliente-dados [pedidoEmbarque]=\"pedidoEmbarque\"\n                                        [isDetail]=\"funcoesService.isDetail(actionForm)\"\n                                        (response)=\"updateShowButtom($event)\">\n                                    </app-operacao-do-navio-aba-produtos-cliente-dados>\n                                </div>\n                                <div class=\"tab-pane pl-0 pr-0\" id=\"produtos_horario_operacional\">\n                                    <app-operacao-do-navio-aba-produtos-hora-operacional\n                                        (response)=\"updateShowButtom($event)\"\n                                        [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-operacao-do-navio-aba-produtos-hora-operacional>\n                                </div>\n                                <div class=\"tab-pane pl-0 pr-0\" id=\"produtos_ocorrencias\">\n                                    <app-operacao-do-navio-aba-produtos-ocorrencia (response)=\"updateShowButtom($event)\"\n                                        [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-operacao-do-navio-aba-produtos-ocorrencia>\n                                </div>\n                                <div class=\"tab-pane pl-0 pr-0\" id=\"produtos_bordo\">\n                                    <app-operacao-do-navio-aba-produtos-bordo (response)=\"updateShowButtom($event)\"\n                                        [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-operacao-do-navio-aba-produtos-bordo>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"horaOperacional\">\n                            <app-operacao-do-navio-aba-hora-operacional (response)=\"updateShowButtom($event)\"\n                                [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                            </app-operacao-do-navio-aba-hora-operacional>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"_ocorrencia\">\n                            <app-operacao-do-navio-aba-ocorrencia (response)=\"updateShowButtom($event)\"\n                                [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                            </app-operacao-do-navio-aba-ocorrencia>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"operador\">\n                            <app-operacao-do-navio-aba-operador (response)=\"updateShowButtom($event)\"\n                                [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                            </app-operacao-do-navio-aba-operador>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"timeLog\">\n                            <app-operacao-do-navio-aba-time-log (response)=\"updateShowButtom($event)\"\n                                [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                            </app-operacao-do-navio-aba-time-log>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"draft\">\n                            <app-operacao-do-navio-aba-draft (response)=\"updateShowButtom($event)\"\n                                [isDetail]=\"funcoesService.isDetail(actionForm)\"></app-operacao-do-navio-aba-draft>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"anexarDocto\">\n                            <app-operacao-do-navio-anexar-docto (response)=\"updateShowButtom($event)\"\n                                [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                            </app-operacao-do-navio-anexar-docto>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"manifesto\">\n                            <app-operacao-do-navio-manifesto (response)=\"updateShowButtom($event)\"\n                                [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                            </app-operacao-do-navio-manifesto>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"dadosAnalise\">\n                            <app-operacao-do-navio-dados-analise (response)=\"updateShowButtom($event)\"\n                                [isDetail]=\"funcoesService.isDetail(actionForm)\">\n                            </app-operacao-do-navio-dados-analise>\n                        </div>\n                        <div class=\"row\" *ngIf=\"showButton\" id=\"button_\">\n                            <div class=\"col-6 col-12\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"onSubmit(f)\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        {{ 'buttons.gravar' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-formularios/operacao-do-navio-formularios.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-formularios/operacao-do-navio-formularios.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=\"operacao-do-navio-formularios\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n  <div class=\"modal-dialog\">\n    <div class=\"modal-content\">\n      <div class=\"modal-header\">\n        <h6 class=\"modal-title\">{{ \"titles.operacaoDoNavio\" | translate }}</h6>\n      </div>\n      <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n        <div class=\"modal-body\">\n          <div class=\"row\" *ngIf=\"!!cWebMod['cWebModCListInspNav']\">\n            <div class=\"col-lg-12\">\n              <div class=\"form-check mt-1\">\n                <input class=\"form-check-input\" type=\"radio\" id=\"modeloCListInspNav\" name=\"modeloCListInspNav\"\n                  value=\"cWebModCListInspNav\" [(ngModel)]=\"exportOption\" />\n                <label class=\"form-check-label\" for=\"modeloCListInspNav\">{{ \"labels.modeloCListInspNav\" | translate }}\n                </label>\n              </div>\n            </div>\n          </div>\n          <div class=\"row\" *ngIf=\"!!cWebMod['cWebModCListNavio']\">\n            <div class=\"col-lg-12\">\n              <div class=\"form-check mt-1\">\n                <input class=\"form-check-input\" type=\"radio\" id=\"modeloCListNavio\" name=\"modeloCListNavio\"\n                  value=\"cWebModCListNavio\" [(ngModel)]=\"exportOption\" />\n                <label class=\"form-check-label\" for=\"modeloCListNavio\">{{ \"labels.modeloCListNavio\" | translate }}\n                </label>\n              </div>\n            </div>\n          </div>\n          <div class=\"row\" *ngIf=\"!!cWebMod['cWebModCListOperNav']\">\n            <div class=\"col-lg-12\">\n              <div class=\"form-check mt-1\">\n                <input class=\"form-check-input\" type=\"radio\" id=\"modeloCListOperNav\" name=\"modeloCListOperNav\"\n                  value=\"cWebModCListOperNav\" [(ngModel)]=\"exportOption\" />\n                <label class=\"form-check-label\" for=\"modeloCListOperNav\">{{ \"labels.modeloCListOperNav\" | translate }}\n                </label>\n              </div>\n            </div>\n          </div>\n          <div class=\"row\" *ngIf=\"!!cWebMod['cWebModTimeLog']\">\n            <div class=\"col-lg-12\">\n              <div class=\"form-check mt-1\">\n                <input class=\"form-check-input\" type=\"radio\" id=\"modeloTimeLog\" name=\"modeloTimeLog\"\n                  value=\"cWebModTimeLog\" [(ngModel)]=\"exportOption\" />\n                <label class=\"form-check-label\" for=\"modeloTimeLog\">{{ \"labels.modeloTimeLog\" | translate }}\n                </label>\n              </div>\n            </div>\n          </div>\n          <div class=\"row\" *ngIf=\"!!cWebMod['cWebModRelLaudo']\">\n            <div class=\"col-lg-12\">\n              <div class=\"form-check mt-1\">\n                <input class=\"form-check-input\" type=\"radio\" id=\"modeloRelLaudo\" name=\"modeloRelLaudo\"\n                  value=\"cWebModRelLaudo\" [(ngModel)]=\"exportOption\" />\n                <label class=\"form-check-label\" for=\"modeloRelLaudo\">{{ \"labels.laudo\" | translate }}\n                </label>\n              </div>\n            </div>\n          </div>\n          <div class=\"row\">\n            <div class=\"col-lg-12\">\n              <div class=\"form-check mt-1\">\n                <input class=\"form-check-input\" type=\"radio\" id=\"controleTanques\" name=\"modeloRelLaudo\"\n                  value=\"controleTanques\" [(ngModel)]=\"exportOption\" />\n                <label class=\"form-check-label\" for=\"controleTanques\">{{ \"labels.controleTanques\" | translate }}\n                </label>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div class=\"modal-footer\">\n          <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.gerar' | translate }}\n          </button>\n          <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n            Sair\n          </button>\n        </div>\n      </form>\n    </div>\n  </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-index/operacao-do-navio-index.component.html":
/*!*******************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-index/operacao-do-navio-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.stoLaudoId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtOperacaoDoNavio\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-operacao-do-navio-filter (filtrar)=\"executaFiltro()\"></app-operacao-do-navio-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<app-operacao-do-navio-formularios [stoLaudoId]=\"data.stoLaudoId\" [data]=\"data\"></app-operacao-do-navio-formularios>\n<app-operacao-do-navio-conclusao [kilosVacuo]=\"config.kilosVacuo\" (execute)=\"concluiLaudo($event)\">\n</app-operacao-do-navio-conclusao>\n<app-operacao-do-navio-error-msg [objMsg]=\"objMsg\"></app-operacao-do-navio-error-msg>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-manifesto/operacao-do-navio-manifesto.component.html":
/*!***************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-manifesto/operacao-do-navio-manifesto.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-operacao-do-navio-cabecalho></app-operacao-do-navio-cabecalho>\n\n<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            [show]=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" [show]=\"showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\" [show]=\"showTable\"\n            [disabled]=\"!service.dataManifesto?.sequencia\" (click)=\"show()\" [icon]=\"'icon-eye'\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataManifesto?.sequencia || isDetail\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\" [show]=\"showTable\"\n            [disabled]=\"!service.dataManifesto?.sequencia || isDetail\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n\n<table class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\" *ngIf=\"showTable\">\n    <tr>\n        <th>\n            {{\"labels.tipoManifesto\" | translate}}\n        </th>\n        <th>\n            {{\"labels.manifesto\" | translate}}\n        </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.stoLaudoManifestos | removeExcluidos;let i = index\"\n            (click)=\"selected(val, i)\"\n            [ngClass]=\"{'info':i === _index && service.dataManifesto.sequencia === val.sequencia}\">\n            <td class=\"px-200-l\">\n                {{ val.descrTipoManifesto }}\n            </td>\n            <td>\n                {{ val.manifesto }}\n            </td>\n        </tr>\n        <tr *ngIf=\"!service.data.stoLaudoManifestos || service.data.stoLaudoManifestos.length === 0\">\n            <th colspan=\"4\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n\n<ng-container *ngIf=\"!!service.dataManifesto\">\n    <form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n        <app-validacoes></app-validacoes>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-sm-6\">\n                <div class=\"form-group\">\n                    <label for=\"tipoManifesto\" class=\"required\">{{ 'labels.tipoManifesto' | translate}}</label>\n                    <app-combo-padrao id=\"tipoManifesto\" name=\"tipoManifesto\" tabela=\"TipoManifesto\"\n                        descricao=\"DescrTipoManifesto\" chave=\"CodTipoManifesto\" required [disabled]=\"isDetail || detail\"\n                        [(ngModel)]=\"service.dataManifesto.tipoManifestoId\" (outSelected)=\"trataTipoManifesto($event)\">\n                    </app-combo-padrao>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-lg-3 col-sm-6\">\n                <div class=\"form-group\">\n                    <label for=\"manifesto\" class=\"required\">{{'labels.manifesto' | translate }}</label>\n                    <input type=\"text\" id=\"manifesto\" name=\"manifesto\" class=\"form-control form-control-sm\"\n                        maxlength=\"20\" [disabled]=\"isDetail || detail\" required\n                        [(ngModel)]=\"service.dataManifesto.manifesto\">\n                </div>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-6 col-12\">\n                <div class=\"form-group\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"isDetail || detail ? true: null\">\n                        {{ 'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </form>\n</ng-container>");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.scss":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.scss ***!
  \*************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLWRyYWZ0L0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcb3BlcmFjYW9cXG9wZXJhY2FvLWRvLW5hdmlvXFxvcGVyYWNhby1kby1uYXZpby1hYmEtZHJhZnRcXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1kcmFmdC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLWRyYWZ0L29wZXJhY2FvLWRvLW5hdmlvLWFiYS1kcmFmdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQUE7QUNDRjs7QURFQTtFQUNFLFlBQUE7QUNDRjs7QURFQTtFQUNFLHlCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxVQUFBO0FDQ0YiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9vcGVyYWNhby9vcGVyYWNhby1kby1uYXZpby9vcGVyYWNhby1kby1uYXZpby1hYmEtZHJhZnQvb3BlcmFjYW8tZG8tbmF2aW8tYWJhLWRyYWZ0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm9wYWNpdHkge1xyXG4gIG9wYWNpdHk6IDAuNztcclxufVxyXG5cclxuaS5fd2hpdGUge1xyXG4gIGNvbG9yOiB3aGl0ZTtcclxufVxyXG5cclxudGFibGUgdHIuYWN0aXZlIHtcclxuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjVmNWY1O1xyXG59XHJcblxyXG5kaXYuY29udGFpbmVyLWJ1dHRvbnMge1xyXG4gIG1hcmdpbi1ib3R0b206IDVweDtcclxufVxyXG5cclxuZGl2LmZvcm0tY2hlY2staW5saW5lIHtcclxuICBwb3NpdGlvbjogcmVsYXRpdmU7XHJcbn1cclxuXHJcbmRpdi5fX21hc2sge1xyXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICB3aWR0aDogMTAwJTtcclxuICBoZWlnaHQ6IDEwMCU7XHJcbiAgei1pbmRleDogMztcclxufVxyXG4iLCIub3BhY2l0eSB7XG4gIG9wYWNpdHk6IDAuNztcbn1cblxuaS5fd2hpdGUge1xuICBjb2xvcjogd2hpdGU7XG59XG5cbnRhYmxlIHRyLmFjdGl2ZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmNWY1ZjU7XG59XG5cbmRpdi5jb250YWluZXItYnV0dG9ucyB7XG4gIG1hcmdpbi1ib3R0b206IDVweDtcbn1cblxuZGl2LmZvcm0tY2hlY2staW5saW5lIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuXG5kaXYuX19tYXNrIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB6LWluZGV4OiAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaDraftComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaDraftComponent", function() { return OperacaoDoNavioAbaDraftComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __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_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _cadastro_tipo_draft_tipo_draft_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../cadastro/tipo-draft/tipo-draft.model */ "./src/app/pages/cadastro/tipo-draft/tipo-draft.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var OperacaoDoNavioAbaDraftComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaDraftComponent(message, service, funcoes) {
        this.message = message;
        this.service = service;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mensagens = [];
    }
    OperacaoDoNavioAbaDraftComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    OperacaoDoNavioAbaDraftComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataDraft = val;
    };
    OperacaoDoNavioAbaDraftComponent.prototype.new = function () {
        if (this.isDetail)
            return;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaDraftComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataDraft, false, true))
            return;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaDraftComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataDraft, false, true))
            return;
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaDraftComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.service.dataDraft = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaDraft"]();
        this._index = -1;
    };
    OperacaoDoNavioAbaDraftComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validateDtMovimiento())
            return;
        if (!this.validateDtMovimientoFim())
            return;
        var idxItem = this.service.data.stoLaudoDrafts.findIndex(function (c) { return c.sequencia === _this.service.dataDraft.sequencia; });
        if (idxItem >= 0) {
            this.service.data.stoLaudoDrafts[idxItem] = this.service.dataDraft;
        }
        else {
            this.service.dataDraft.sequencia = this.service.data.stoLaudoDrafts.length + 1;
            this.service.data.stoLaudoDrafts.push(this.service.dataDraft);
        }
        this.back();
    };
    OperacaoDoNavioAbaDraftComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataDraft, false, true))
            return;
        this.response.emit(false);
        this.message.removeConfirm(function () {
            _this.service.data.stoLaudoDrafts.forEach(function (val, idx) {
                if (!!val.stoLaudoId && val.stoLaudoId === _this.service.dataDraft.stoLaudoId && val.item === _this.service.dataDraft.item) {
                    _this.service.dataDraft.sitReg = 'E';
                }
                else if (!val.stoLaudoId && val.sequencia === _this.service.dataDraft.sequencia) {
                    _this.service.data.stoLaudoDrafts.splice(idx, 1);
                }
            });
            _this.service.dataDraft = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaDraft"]();
            _this._index = -1;
        });
        this.response.emit(true);
    };
    OperacaoDoNavioAbaDraftComponent.prototype.trataDraft = function (dadosDraft) {
        this.service.dataDraft.tipoDraft = new _cadastro_tipo_draft_tipo_draft_model__WEBPACK_IMPORTED_MODULE_7__["TipoDraft"]();
        if (!this.service.dataDraft.tipoDraftId)
            return;
        this.service.dataDraft.tipoDraft = {
            tipoDraftId: dadosDraft.chave,
            descrDraft: dadosDraft.valor
        };
    };
    OperacaoDoNavioAbaDraftComponent.prototype.validateDtMovimiento = function () {
        if (!this.service.dataDraft.dtInicio)
            return;
        if (this.funcoes.dateTimeUtils.maiorAHoje(this.service.dataDraft.dtInicio, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMenorDataAtual");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaDraftComponent.prototype.validateDtMovimientoFim = function () {
        if (!this.service.dataDraft.dtInicio)
            return;
        if (!this.service.dataDraft.dtFim)
            return;
        if (this.funcoes.dateTimeUtils.maiorA(this.service.dataDraft.dtInicio, this.service.dataDraft.dtFim, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaDraftComponent.prototype.opnCadTipoDraft = function () {
        if (!this.service.dataDraft.tipoDraftId) {
            this.funcoes.openWindow('cadastro/tipoDraft');
        }
        else {
            this.funcoes.openWindow("cadastro/tipoDraft/detail/" + this.service.dataDraft.tipoDraftId);
        }
    };
    OperacaoDoNavioAbaDraftComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaDraftComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaDraftComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaDraftComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-aba-draft',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-draft.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-draft.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], OperacaoDoNavioAbaDraftComponent);
    return OperacaoDoNavioAbaDraftComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.scss":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.scss ***!
  \***********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLWhvcmEtb3BlcmFjaW9uYWwvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxvcGVyYWNhb1xcb3BlcmFjYW8tZG8tbmF2aW9cXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1ob3JhLW9wZXJhY2lvbmFsXFxvcGVyYWNhby1kby1uYXZpby1hYmEtaG9yYS1vcGVyYWNpb25hbC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLWhvcmEtb3BlcmFjaW9uYWwvb3BlcmFjYW8tZG8tbmF2aW8tYWJhLWhvcmEtb3BlcmFjaW9uYWwuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxZQUFBO0FDQ0Y7O0FERUE7RUFDRSxZQUFBO0FDQ0Y7O0FERUE7RUFDRSx5QkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsVUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLWhvcmEtb3BlcmFjaW9uYWwvb3BlcmFjYW8tZG8tbmF2aW8tYWJhLWhvcmEtb3BlcmFjaW9uYWwuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIub3BhY2l0eSB7XHJcbiAgb3BhY2l0eTogMC43O1xyXG59XHJcblxyXG5pLl93aGl0ZSB7XHJcbiAgY29sb3I6IHdoaXRlO1xyXG59XHJcblxyXG50YWJsZSB0ci5hY3RpdmUge1xyXG4gIGJhY2tncm91bmQtY29sb3I6ICNmNWY1ZjU7XHJcbn1cclxuXHJcbmRpdi5jb250YWluZXItYnV0dG9ucyB7XHJcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xyXG59XHJcblxyXG5kaXYuZm9ybS1jaGVjay1pbmxpbmUge1xyXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxufVxyXG5cclxuZGl2Ll9fbWFzayB7XHJcbiAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gIHdpZHRoOiAxMDAlO1xyXG4gIGhlaWdodDogMTAwJTtcclxuICB6LWluZGV4OiAzO1xyXG59XHJcbiIsIi5vcGFjaXR5IHtcbiAgb3BhY2l0eTogMC43O1xufVxuXG5pLl93aGl0ZSB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxudGFibGUgdHIuYWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcbn1cblxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xufVxuXG5kaXYuZm9ybS1jaGVjay1pbmxpbmUge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbmRpdi5fX21hc2sge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDEwMCU7XG4gIHotaW5kZXg6IDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.ts":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.ts ***!
  \*********************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaHoraOperacionalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaHoraOperacionalComponent", function() { return OperacaoDoNavioAbaHoraOperacionalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __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_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../cadastro/ocorrencia-laudo/ocorrencia-laudo.service */ "./src/app/pages/cadastro/ocorrencia-laudo/ocorrencia-laudo.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _cadastro_ocorrencia_laudo_ocorrencia_laudo_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../cadastro/ocorrencia-laudo/ocorrencia-laudo.model */ "./src/app/pages/cadastro/ocorrencia-laudo/ocorrencia-laudo.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};









var OperacaoDoNavioAbaHoraOperacionalComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaHoraOperacionalComponent(serviceOcorrenciaLaudo, message, service, funcoes) {
        this.serviceOcorrenciaLaudo = serviceOcorrenciaLaudo;
        this.message = message;
        this.service = service;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mensagens = [];
        this.ocorrenciasLaudoList = [];
    }
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.ngOnInit = function () {
        this.showTable = true;
        this.getOcorrencias();
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataHorOper = val;
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.new = function () {
        if (this.isDetail)
            return;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataHorOper, false, true))
            return;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataHorOper, false, true))
            return;
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.service.dataHorOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioAbaHorarioOperacional"]();
        this._index = -1;
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("dataHorOper").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validateDtMovimiento())
            return;
        if (this.periodoAteRequired && !this.validateDtMovimientoFim())
            return;
        var idxItem = this.service.data.stoLaudoHoraOpers.findIndex(function (c) { return c.sequencia === _this.service.dataHorOper.sequencia; });
        if (idxItem >= 0) {
            this.service.data.stoLaudoHoraOpers[idxItem] = this.service.dataHorOper;
        }
        else {
            this.service.dataHorOper.sequencia = this.service.data.stoLaudoHoraOpers.length + 1;
            this.service.data.stoLaudoHoraOpers.push(this.service.dataHorOper);
        }
        this.back();
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataHorOper, false, true))
            return;
        this.response.emit(false);
        this.message.removeConfirm(function () {
            _this.service.data.stoLaudoHoraOpers.forEach(function (val, idx) {
                if (!!val.stoLaudoId && val.stoLaudoId === _this.service.dataHorOper.stoLaudoId && val.item === _this.service.dataHorOper.item) {
                    _this.service.dataHorOper.sitReg = 'E';
                }
                else if (!val.stoLaudoId && val.sequencia === _this.service.dataHorOper.sequencia) {
                    _this.service.data.stoLaudoHoraOpers.splice(idx, 1);
                }
            });
            _this.service.dataHorOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioAbaHorarioOperacional"]();
            _this._index = -1;
        });
        this.response.emit(true);
    };
    Object.defineProperty(OperacaoDoNavioAbaHoraOperacionalComponent.prototype, "periodoAteRequired", {
        get: function () {
            if (!this.service.dataHorOper || !this.service.dataHorOper.ocorrenciaLaudo) {
                return false;
            }
            return this.funcoes.isBoolean(this.service.dataHorOper.ocorrenciaLaudo.flagPeriodo);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAbaHoraOperacionalComponent.prototype, "labelPeriodoDe", {
        get: function () {
            return this.periodoAteRequired ? 'periodoDe' : 'data';
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.trataOcorr = function () {
        var _this = this;
        this.service.dataHorOper.ocorrenciaLaudo = new _cadastro_ocorrencia_laudo_ocorrencia_laudo_model__WEBPACK_IMPORTED_MODULE_8__["OcorrenciaLaudo"]();
        if (!this.service.dataHorOper.codOcorLaudo)
            return;
        this.service.dataHorOper.ocorrenciaLaudo = this.ocorrenciasLaudoList.find(function (c) { return c.ocorrenciaLaudoId === +_this.service.dataHorOper.codOcorLaudo; });
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.getOcorrencias = function () {
        var _this = this;
        this.serviceOcorrenciaLaudo.get().subscribe(function (resp) {
            _this.ocorrenciasLaudoList = resp.filter(function (val) {
                if (val.sitReg !== "E" && val.tipoOcorr === "N"
                    && val.flagAtivo === "S" && val.flagObriga !== "S") {
                    return val;
                }
            });
        });
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.validateDtMovimiento = function () {
        if (!this.service.dataHorOper.dtOcorrencia)
            return;
        if (this.funcoes.dateTimeUtils.maiorAHoje(this.service.dataHorOper.dtOcorrencia, ['H', 'M'])) {
            if (this.periodoAteRequired)
                this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMaiorDataAtual");
            else
                this.message.warning("titles.operacaoDoNavio", "messages.dataNaoPodeSerMaiorQueDataAtual");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.prototype.validateDtMovimientoFim = function () {
        if (!this.service.dataHorOper.dtOcorrencia)
            return;
        if (!this.service.dataHorOper.dtOcorrenciaFim)
            return;
        if (this.funcoes.dateTimeUtils.maiorOuIgualA(this.service.dataHorOper.dtOcorrencia, this.service.dataHorOper.dtOcorrenciaFim, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMenorQueAte");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaHoraOperacionalComponent.ctorParameters = function () { return [
        { type: _cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_4__["OcorrenciaLaudoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaHoraOperacionalComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaHoraOperacionalComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaHoraOperacionalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-aba-hora-operacional',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-hora-operacional.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-hora-operacional.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_4__["OcorrenciaLaudoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], OperacaoDoNavioAbaHoraOperacionalComponent);
    return OperacaoDoNavioAbaHoraOperacionalComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.scss":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.scss ***!
  \***********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLW9jb3JyZW5jaWEvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxvcGVyYWNhb1xcb3BlcmFjYW8tZG8tbmF2aW9cXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1vY29ycmVuY2lhXFxvcGVyYWNhby1kby1uYXZpby1hYmEtb2NvcnJlbmNpYS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLW9jb3JyZW5jaWEvb3BlcmFjYW8tZG8tbmF2aW8tYWJhLW9jb3JyZW5jaWEuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxZQUFBO0FDQ0Y7O0FERUE7RUFDRSxZQUFBO0FDQ0Y7O0FERUE7RUFDRSx5QkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsVUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLW9jb3JyZW5jaWEvb3BlcmFjYW8tZG8tbmF2aW8tYWJhLW9jb3JyZW5jaWEuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIub3BhY2l0eSB7XHJcbiAgb3BhY2l0eTogMC43O1xyXG59XHJcblxyXG5pLl93aGl0ZSB7XHJcbiAgY29sb3I6IHdoaXRlO1xyXG59XHJcblxyXG50YWJsZSB0ci5hY3RpdmUge1xyXG4gIGJhY2tncm91bmQtY29sb3I6ICNmNWY1ZjU7XHJcbn1cclxuXHJcbmRpdi5jb250YWluZXItYnV0dG9ucyB7XHJcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xyXG59XHJcblxyXG5kaXYuZm9ybS1jaGVjay1pbmxpbmUge1xyXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxufVxyXG5cclxuZGl2Ll9fbWFzayB7XHJcbiAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gIHdpZHRoOiAxMDAlO1xyXG4gIGhlaWdodDogMTAwJTtcclxuICB6LWluZGV4OiAzO1xyXG59XHJcbiIsIi5vcGFjaXR5IHtcbiAgb3BhY2l0eTogMC43O1xufVxuXG5pLl93aGl0ZSB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxudGFibGUgdHIuYWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcbn1cblxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xufVxuXG5kaXYuZm9ybS1jaGVjay1pbmxpbmUge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbmRpdi5fX21hc2sge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDEwMCU7XG4gIHotaW5kZXg6IDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaOcorrenciaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaOcorrenciaComponent", function() { return OperacaoDoNavioAbaOcorrenciaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.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 OperacaoDoNavioAbaOcorrenciaComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaOcorrenciaComponent(service, message, funcoes) {
        this.service = service;
        this.message = message;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
    }
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataOcor = val;
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.new = function () {
        if (this.isDetail)
            return;
        this.detail = false;
        this.showTable = false;
        this.service.dataOcor = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaOcorrencia"]();
        this.response.emit(false);
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataOcor, false, true))
            return false;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataOcor, false, true))
            return false;
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.back = function () {
        this.showTable = true;
        this.service.dataOcor = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaOcorrencia"]();
        this.response.emit(true);
        this._index = -1;
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validateDtMovimiento())
            return;
        if (!this.validateDtOcorrenciaFim())
            return;
        var idxItem = this.service.data.stolaudoOcorrencias.findIndex(function (c) { return c.sequencia === _this.service.dataOcor.sequencia; });
        if (idxItem >= 0) {
            this.service.data.stolaudoOcorrencias[idxItem] = this.service.dataOcor;
        }
        else {
            this.service.dataOcor.sequencia = this.service.data.stolaudoOcorrencias.length + 1;
            this.service.data.stolaudoOcorrencias.push(this.service.dataOcor);
        }
        this.service.setDataItens();
        this.back();
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataOcor))
            return false;
        this.response.emit(false);
        this.message.removeConfirm(function () {
            _this.service.data.stolaudoOcorrencias.forEach(function (val, idx) {
                if (!!val.stoLaudoId && val.stoLaudoId === _this.service.dataOcor.stoLaudoId && val.item === _this.service.dataOcor.item) {
                    _this.service.dataOcor.sitReg = 'E';
                }
                else if (!val.stoLaudoId && val.sequencia === _this.service.dataOcor.sequencia) {
                    _this.service.data.stolaudoOcorrencias.splice(idx, 1);
                }
            });
            _this.service.dataOcor = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaOcorrencia"]();
            _this._index = -1;
        });
        this.response.emit(true);
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.validateDtMovimiento = function () {
        if (!this.service.dataOcor.dtOcorrencia)
            return;
        if (this.funcoes.dateTimeUtils.maiorAHoje(this.service.dataOcor.dtOcorrencia, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMenorDataAtual");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaOcorrenciaComponent.prototype.validateDtOcorrenciaFim = function () {
        if (!this.service.dataOcor.dtOcorrencia)
            return;
        if (!this.service.dataOcor.dtOcorrenciaFim)
            return;
        if (this.funcoes.dateTimeUtils.maiorOuIgualA(this.service.dataOcor.dtOcorrencia, this.service.dataOcor.dtOcorrenciaFim, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaOcorrenciaComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaOcorrenciaComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaOcorrenciaComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaOcorrenciaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-aba-ocorrencia',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-ocorrencia.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-ocorrencia.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"]])
    ], OperacaoDoNavioAbaOcorrenciaComponent);
    return OperacaoDoNavioAbaOcorrenciaComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.scss":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.scss ***!
  \*******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLW9wZXJhZG9yL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcb3BlcmFjYW9cXG9wZXJhY2FvLWRvLW5hdmlvXFxvcGVyYWNhby1kby1uYXZpby1hYmEtb3BlcmFkb3JcXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1vcGVyYWRvci5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLW9wZXJhZG9yL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1vcGVyYWRvci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQUE7QUNDRjs7QURFQTtFQUNFLFlBQUE7QUNDRjs7QURFQTtFQUNFLHlCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxVQUFBO0FDQ0YiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9vcGVyYWNhby9vcGVyYWNhby1kby1uYXZpby9vcGVyYWNhby1kby1uYXZpby1hYmEtb3BlcmFkb3Ivb3BlcmFjYW8tZG8tbmF2aW8tYWJhLW9wZXJhZG9yLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm9wYWNpdHkge1xyXG4gIG9wYWNpdHk6IDAuNztcclxufVxyXG5cclxuaS5fd2hpdGUge1xyXG4gIGNvbG9yOiB3aGl0ZTtcclxufVxyXG5cclxudGFibGUgdHIuYWN0aXZlIHtcclxuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjVmNWY1O1xyXG59XHJcblxyXG5kaXYuY29udGFpbmVyLWJ1dHRvbnMge1xyXG4gIG1hcmdpbi1ib3R0b206IDVweDtcclxufVxyXG5cclxuZGl2LmZvcm0tY2hlY2staW5saW5lIHtcclxuICBwb3NpdGlvbjogcmVsYXRpdmU7XHJcbn1cclxuXHJcbmRpdi5fX21hc2sge1xyXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICB3aWR0aDogMTAwJTtcclxuICBoZWlnaHQ6IDEwMCU7XHJcbiAgei1pbmRleDogMztcclxufVxyXG4iLCIub3BhY2l0eSB7XG4gIG9wYWNpdHk6IDAuNztcbn1cblxuaS5fd2hpdGUge1xuICBjb2xvcjogd2hpdGU7XG59XG5cbnRhYmxlIHRyLmFjdGl2ZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmNWY1ZjU7XG59XG5cbmRpdi5jb250YWluZXItYnV0dG9ucyB7XG4gIG1hcmdpbi1ib3R0b206IDVweDtcbn1cblxuZGl2LmZvcm0tY2hlY2staW5saW5lIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuXG5kaXYuX19tYXNrIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB6LWluZGV4OiAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaOperadorComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaOperadorComponent", function() { return OperacaoDoNavioAbaOperadorComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _cadastro_operador_operador_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../cadastro/operador/operador.model */ "./src/app/pages/cadastro/operador/operador.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};









var OperacaoDoNavioAbaOperadorComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaOperadorComponent(message, service, funcoes) {
        this.message = message;
        this.service = service;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.mensagens = [];
    }
    OperacaoDoNavioAbaOperadorComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataOper = val;
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.new = function () {
        if (this.isDetail)
            return;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataOper, false, true))
            return;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataOper, false, true))
            return;
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.service.dataOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaOperador"]();
        this._index = -1;
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validateDtMovimiento())
            return;
        if (!this.validateDtMovimientoFim())
            return;
        var idxItem = this.service.data.stoLaudoOperadors.findIndex(function (c) { return c.sequencia === _this.service.dataOper.sequencia; });
        if (idxItem >= 0) {
            this.service.data.stoLaudoOperadors[idxItem] = this.service.dataOper;
        }
        else {
            this.service.dataOper.sequencia = this.service.data.stoLaudoOperadors.length + 1;
            this.service.data.stoLaudoOperadors.push(this.service.dataOper);
        }
        this.back();
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataOper, false, true))
            return;
        this.response.emit(false);
        this.message.removeConfirm(function () {
            _this.service.data.stoLaudoOperadors.forEach(function (val, idx) {
                if (!!val.stoLaudoId && val.stoLaudoId === _this.service.dataOper.stoLaudoId && val.item === _this.service.dataOper.item) {
                    _this.service.dataOper.sitReg = 'E';
                }
                else if (!val.stoLaudoId && val.sequencia === _this.service.dataOper.sequencia) {
                    _this.service.data.stoLaudoOperadors.splice(idx, 1);
                }
            });
            _this.service.dataOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaOperador"]();
            _this._index = -1;
        });
        this.response.emit(true);
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.trataOperador = function (dadosOperador) {
        this.service.dataOper.operador = new _cadastro_operador_operador_model__WEBPACK_IMPORTED_MODULE_8__["Operador"]();
        if (!this.service.dataOper.codOperador)
            return;
        this.service.dataOper.operador = {
            operadorId: dadosOperador.chave,
            descrOperador: dadosOperador.valor
        };
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.validateDtMovimiento = function () {
        if (!this.service.dataOper.dtInicio)
            return;
        if (this.funcoes.dateTimeUtils.maiorAHoje(this.service.dataOper.dtInicio, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.dataNaoPodeSerMaiorQueDataAtual");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.validateDtMovimientoFim = function () {
        if (!this.service.dataOper.dtInicio)
            return;
        if (!this.service.dataOper.dtFim)
            return;
        if (this.funcoes.dateTimeUtils.maiorOuIgualA(this.service.dataOper.dtInicio, this.service.dataOper.dtFim, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMenorQueAte");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaOperadorComponent.prototype.openOperadorTurno = function () {
        this.funcoes.openWindow("cadastro/operador");
    };
    OperacaoDoNavioAbaOperadorComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaOperadorComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaOperadorComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaOperadorComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-aba-operador',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-operador.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-operador.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"]])
    ], OperacaoDoNavioAbaOperadorComponent);
    return OperacaoDoNavioAbaOperadorComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component.scss":
/*!**************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-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"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1ib3Jkby9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXG9wZXJhY2FvXFxvcGVyYWNhby1kby1uYXZpb1xcb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zXFxvcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtYm9yZG9cXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1ib3Jkby5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1ib3Jkby9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtYm9yZG8uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxZQUFBO0FDQ0Y7O0FERUE7RUFDRSxZQUFBO0FDQ0Y7O0FERUE7RUFDRSx5QkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsVUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1ib3Jkby9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtYm9yZG8uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIub3BhY2l0eSB7XHJcbiAgb3BhY2l0eTogMC43O1xyXG59XHJcblxyXG5pLl93aGl0ZSB7XHJcbiAgY29sb3I6IHdoaXRlO1xyXG59XHJcblxyXG50YWJsZSB0ci5hY3RpdmUge1xyXG4gIGJhY2tncm91bmQtY29sb3I6ICNmNWY1ZjU7XHJcbn1cclxuXHJcbmRpdi5jb250YWluZXItYnV0dG9ucyB7XHJcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xyXG59XHJcblxyXG5kaXYuZm9ybS1jaGVjay1pbmxpbmUge1xyXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxufVxyXG5cclxuZGl2Ll9fbWFzayB7XHJcbiAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gIHdpZHRoOiAxMDAlO1xyXG4gIGhlaWdodDogMTAwJTtcclxuICB6LWluZGV4OiAzO1xyXG59XHJcbiIsIi5vcGFjaXR5IHtcbiAgb3BhY2l0eTogMC43O1xufVxuXG5pLl93aGl0ZSB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxudGFibGUgdHIuYWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcbn1cblxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xufVxuXG5kaXYuZm9ybS1jaGVjay1pbmxpbmUge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbmRpdi5fX21hc2sge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDEwMCU7XG4gIHotaW5kZXg6IDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component.ts":
/*!************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component.ts ***!
  \************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaProdutosBordoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosBordoComponent", function() { return OperacaoDoNavioAbaProdutosBordoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.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 _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 OperacaoDoNavioAbaProdutosBordoComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaProdutosBordoComponent(service, message) {
        this.service = service;
        this.message = message;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_3__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mensagens = [];
    }
    OperacaoDoNavioAbaProdutosBordoComponent.prototype.ngOnInit = function () {
    };
    OperacaoDoNavioAbaProdutosBordoComponent.prototype.showButton = function (show) {
        this.response.emit(show);
    };
    OperacaoDoNavioAbaProdutosBordoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        var idxItemBordo = this.service.dataItem.stoLaudoClientes.findIndex(function (c) { return c.sequencia === _this.service.dataItemCliente.sequencia; });
        if (idxItemBordo >= 0) {
            this.service.dataItem.stoLaudoClientes[idxItemBordo] = this.service.dataItemCliente;
        }
        this.service.setDataItens();
    };
    OperacaoDoNavioAbaProdutosBordoComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaProdutosBordoComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaProdutosBordoComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaProdutosBordoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-aba-produtos-bordo',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-produtos-bordo.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-produtos-bordo.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], OperacaoDoNavioAbaProdutosBordoComponent);
    return OperacaoDoNavioAbaProdutosBordoComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.scss":
/*!******************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.scss ***!
  \******************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1jbGllbnRlLWRhZG9zL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcb3BlcmFjYW9cXG9wZXJhY2FvLWRvLW5hdmlvXFxvcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3NcXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1jbGllbnRlLWRhZG9zXFxvcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtY2xpZW50ZS1kYWRvcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1jbGllbnRlLWRhZG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1jbGllbnRlLWRhZG9zLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsWUFBQTtBQ0NGOztBREVBO0VBQ0UsWUFBQTtBQ0NGOztBREVBO0VBQ0UseUJBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLFVBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL29wZXJhY2FvL29wZXJhY2FvLWRvLW5hdmlvL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtY2xpZW50ZS1kYWRvcy9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtY2xpZW50ZS1kYWRvcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vcGFjaXR5IHtcclxuICBvcGFjaXR5OiAwLjc7XHJcbn1cclxuXHJcbmkuX3doaXRlIHtcclxuICBjb2xvcjogd2hpdGU7XHJcbn1cclxuXHJcbnRhYmxlIHRyLmFjdGl2ZSB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcclxufVxyXG5cclxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcclxuICBtYXJnaW4tYm90dG9tOiA1cHg7XHJcbn1cclxuXHJcbmRpdi5mb3JtLWNoZWNrLWlubGluZSB7XHJcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG59XHJcblxyXG5kaXYuX19tYXNrIHtcclxuICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgd2lkdGg6IDEwMCU7XHJcbiAgaGVpZ2h0OiAxMDAlO1xyXG4gIHotaW5kZXg6IDM7XHJcbn1cclxuIiwiLm9wYWNpdHkge1xuICBvcGFjaXR5OiAwLjc7XG59XG5cbmkuX3doaXRlIHtcbiAgY29sb3I6IHdoaXRlO1xufVxuXG50YWJsZSB0ci5hY3RpdmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjVmNWY1O1xufVxuXG5kaXYuY29udGFpbmVyLWJ1dHRvbnMge1xuICBtYXJnaW4tYm90dG9tOiA1cHg7XG59XG5cbmRpdi5mb3JtLWNoZWNrLWlubGluZSB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbn1cblxuZGl2Ll9fbWFzayB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogMTAwJTtcbiAgei1pbmRleDogMztcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.ts":
/*!****************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.ts ***!
  \****************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaProdutosClienteDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosClienteDadosComponent", function() { return OperacaoDoNavioAbaProdutosClienteDadosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/tipo-operacao/tipo-operacao.service */ "./src/app/pages/cadastro/tipo-operacao/tipo-operacao.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.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 _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _controle_osg_osg_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../controle/osg/osg.service */ "./src/app/pages/controle/osg/osg.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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 __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 OperacaoDoNavioAbaProdutosClienteDadosComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaProdutosClienteDadosComponent(funcoesService, service, serviceOsg, serviceTipoOperacao, configuracao, message, loginService, permissoesUtils) {
        var _this = this;
        this.funcoesService = funcoesService;
        this.service = service;
        this.serviceOsg = serviceOsg;
        this.serviceTipoOperacao = serviceTipoOperacao;
        this.configuracao = configuracao;
        this.message = message;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.obrigaTipoNota = false;
        this.raizenTipoNotas = [];
        this.tipoOperCabotagem = false;
        this.antecipacaoNavio = false;
        this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.obrigaOSG = _this.configuracao.boolean("OPE", "ObrigaOSG");
                _this.obrigaCodIntegracao = _this.configuracao.boolean("OPE", "WebSolOperNavCliente");
                _this.obrLoteOper = _this.configuracao.lerConfig("OPE", "ObrLoteOper");
                _this.obrLoteSomenteLib = _this.configuracao.lerConfig("OPE", "ObrLoteSomenteLib");
                _this.coddestBSLZ = _this.configuracao.number("REL", "CoddestBSLZ");
                _this.sapRaizen = _this.configuracao.boolean("REL", "SapRaizen");
                _this.antecipacaoNavio = _this.configuracao.boolean("UNI", "AntecipacaoNavio");
            }
        };
    }
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.ngOnInit = function () {
        this.showTable = true;
        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataItemCliente = val;
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataItemCliente))
            return false;
        this.carregaOsg();
        this.obrigarTipoNota();
        this.verificarTipoOperacaoCabotagem();
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataItemCliente))
            return false;
        this.carregaOsg();
        this.obrigarTipoNota();
        this.verificarTipoOperacaoCabotagem();
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.back = function () {
        this.showTable = true;
        this.service.dataItemCliente = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioAbaProdutosClientesDados"]();
        this.response.emit(true);
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.service.dataItemCliente.destinatarioIdCliente = this.service.dataItemCliente.cliente.destinatarioId;
        var idxItemCliente = this.service.dataItem.stoLaudoClientes.findIndex(function (c) { return c.sequencia === _this.service.dataItemCliente.sequencia; });
        if (idxItemCliente >= 0) {
            this.service.dataItem.stoLaudoClientes[idxItemCliente] = this.service.dataItemCliente;
        }
        this.service.setDataItens();
        this.back();
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.trataOsg = function (osg) {
        this.service.dataItemCliente.osg = osg;
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.carregaOsg = function () {
        var _this = this;
        var osgId = this.service.dataItemCliente.regOsg;
        if (osgId) {
            this.serviceOsg.getById(osgId).subscribe(function (resp) { return _this.service.dataItemCliente.osg = resp; });
        }
    };
    Object.defineProperty(OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype, "disabledLiberarSobraAduaneira", {
        get: function () {
            if (!this.showTable || !this.isDetail)
                return true;
            return !_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["BooleanUtilsStaticService"].toBoolean(this.service.dataItem.libRetencao) ||
                _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].equal(this.service.dataItem.tipoOperacao, 9) ||
                _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["BooleanUtilsStaticService"].toBoolean(this.service.dataItemCliente.libDC) ||
                _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].equal(this.service.dataItemCliente.itemOri, 0);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.liberarSobraAduaneira = function () {
        var _this = this;
        if (this.disabledLiberarSobraAduaneira)
            return;
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 9, function () {
            _this.message.confirm("titles.operacaoDoNavio", "messages.confirmaLiberacaoSobraAduaneiraParaCarregamento", null, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.liberarSobraAduaneira(this.service.dataItemCliente.stoLaudoId, this.service.dataItemCliente.stoLaudoItemId, this.service.dataItemCliente.destinatarioIdCliente).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.message.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.message.warning("titles.operacaoDoNavio", m); });
                                return [2 /*return*/];
                            }
                            this.message.saveSuccess("titles.operacaoDoNavio");
                            return [2 /*return*/];
                    }
                });
            }); });
        }, function () { });
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.obrigarTipoNota = function () {
        this.obrigaTipoNota = this.funcoesService.isPositive(this.coddestBSLZ)
            && this.service.dataItemCliente.cliente.destinatarioId === this.coddestBSLZ;
        if (this.obrigaTipoNota && this.raizenTipoNotas.length === 0) {
            this.getRaizenTipoNotas();
        }
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.getRaizenTipoNotas = function () {
        var _this = this;
        this.service.getComboCliRaizenTipoNota(this.service.dataItem.tipoMov).subscribe(function (resp) {
            _this.raizenTipoNotas = resp;
        });
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype.verificarTipoOperacaoCabotagem = function () {
        var _this = this;
        this.serviceTipoOperacao.getById(this.service.dataItem.tipoOperacao).subscribe(function (resp) {
            _this.tipoOperCabotagem = (resp !== null && resp.descrTipoOperacao.trim().toLowerCase() === 'cabotagem');
        });
    };
    OperacaoDoNavioAbaProdutosClienteDadosComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioService"] },
        { type: _controle_osg_osg_service__WEBPACK_IMPORTED_MODULE_7__["OsgService"] },
        { type: app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_1__["TipoOperacaoService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_14__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype, "pedidoEmbarque", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaProdutosClienteDadosComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaProdutosClienteDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-aba-produtos-cliente-dados',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-produtos-cliente-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-produtos-cliente-dados.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioService"],
            _controle_osg_osg_service__WEBPACK_IMPORTED_MODULE_7__["OsgService"],
            app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_1__["TipoOperacaoService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_14__["PermissoesUtilsService"]])
    ], OperacaoDoNavioAbaProdutosClienteDadosComponent);
    return OperacaoDoNavioAbaProdutosClienteDadosComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.scss":
/*!**************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.scss ***!
  \**************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("div.mascara {\n  width: 100%;\n  position: absolute;\n  height: 40px;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1kYWRvcy9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXG9wZXJhY2FvXFxvcGVyYWNhby1kby1uYXZpb1xcb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zXFxvcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtZGFkb3NcXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1kYWRvcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1kYWRvcy9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtZGFkb3MuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0EsVUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1kYWRvcy9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtZGFkb3MuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJkaXYubWFzY2FyYSB7XHJcbiAgd2lkdGg6IDEwMCU7XHJcbiAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gIGhlaWdodDogNDBweDtcclxuICB6LWluZGV4OiAzO1xyXG59XHJcbiIsImRpdi5tYXNjYXJhIHtcbiAgd2lkdGg6IDEwMCU7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgaGVpZ2h0OiA0MHB4O1xuICB6LWluZGV4OiAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.ts":
/*!************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.ts ***!
  \************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaProdutosDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosDadosComponent", function() { return OperacaoDoNavioAbaProdutosDadosComponent; });
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* 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_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.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 __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 OperacaoDoNavioAbaProdutosDadosComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaProdutosDadosComponent(funcoes, service, message, router, permissoesUtils) {
        this.funcoes = funcoes;
        this.service = service;
        this.message = message;
        this.router = router;
        this.permissoesUtils = permissoesUtils;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
        this.detail = false;
        this.mensagens = [];
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioConstants"]();
        this.title = "titles.operacaoDoNavio";
        this.doCheck = false;
        this.target = this.funcoes.getTargetLocation();
    }
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.ngDoCheck = function () {
        if (!this.doCheck) {
            if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.service.data.stoLaudoItems)) {
                this.service.dataItem = this.service.data.stoLaudoItems[0];
                this._index = 0;
                this.doCheck = true;
            }
        }
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataItem = val;
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataItem, false))
            return false;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataItem, false))
            return false;
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.back = function () {
        this.showTable = true;
        this.response.emit(true);
    };
    Object.defineProperty(OperacaoDoNavioAbaProdutosDadosComponent.prototype, "liberaRateio", {
        get: function () {
            return ['A', 'O', 'R'].includes(this.service.data.sitReg);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAbaProdutosDadosComponent.prototype, "liberaAntecipacao", {
        get: function () {
            return ['A', ''].includes(this.service.data.sitReg) && ((this.service.config.atualizaDI && [1, 6, 9].includes(this.service.dataItem.tipoOperacao)) ||
                (!this.service.config.atualizaDI && [1, 3, 4, 5, 9].includes(this.service.dataItem.tipoOperacao)));
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.rateio = function () {
        if (!this.liberaRateio)
            return;
        var chave = this.funcoes.objToB64({
            stoLaudoId: this.service.data.stoLaudoId,
            item: this.service.dataItem.stoLaudoItemId,
            material: {
                materialId: this.service.dataItem.material.materialId,
                fantasia: this.service.dataItem.material.fantasia,
            }
        });
        if (!!chave) {
            this.router.navigate([this.target + "/operacao/operacaoDoNavio/rateio/" + chave]);
        }
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.antecipacao = function () {
        return __awaiter(this, void 0, void 0, function () {
            var semLote, validation;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.liberaAntecipacao)
                            return [2 /*return*/];
                        if (['D'].includes(this.service.dataItem.tipoMov)) {
                            semLote = this.service.dataItem.stoLaudoClientes.find(function (c) { return !c.lote; });
                            if (semLote) {
                                this.message.warning(this.title, "messages.paraAntecipacaoLotesObrigatorios");
                                return [2 /*return*/];
                            }
                        }
                        if (!this.service.config.atualizaDI) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.service.antecipacaoVerificaDI(this.service.data.stoLaudoId, this.service.dataItem.stoLaudoItemId).toPromise()];
                    case 1:
                        validation = _a.sent();
                        if (!validation.isValid) {
                            this.message.warning(this.title, validation.message);
                            return [2 /*return*/];
                        }
                        _a.label = 2;
                    case 2:
                        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 17, function () {
                            var chave = _this.funcoes.objToB64({
                                stoLaudoId: _this.service.data.stoLaudoId,
                                item: _this.service.dataItem.stoLaudoItemId,
                                tipoMov: _this.service.dataItem.tipoMov,
                                material: {
                                    materialId: _this.service.dataItem.material.materialId,
                                    fantasia: _this.service.dataItem.material.fantasia,
                                }
                            });
                            if (!!chave) {
                                _this.router.navigate([_this.target + "/operacao/operacaoDoNavio/antecipacao/" + chave]);
                            }
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        var idxItem = this.service.data.stoLaudoItems.findIndex(function (c) { return c.sequencia === _this.service.dataItem.sequencia; });
        if (idxItem >= 0) {
            this.service.data.stoLaudoItems[idxItem] = this.service.dataItem;
        }
        else {
            this.service.dataItem.sequencia = this.service.data.stoLaudoItems.length + 1;
            this.service.data.stoLaudoItems.push(this.service.dataItem);
        }
        this.back();
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.calcularLitrosBordo = function () {
        if (this.service.dataItem.kilosBordo !== null && this.service.dataItem.densidadeBordo > 1) {
            this.service.dataItem.litrosBordo = this.service.dataItem.kilosBordo / this.service.dataItem.densidadeBordo;
        }
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.calcularKilosBordo = function () {
        if (this.service.dataItem.kilosBordo !== null && this.service.dataItem.kilosBordo === 0 && this.service.dataItem.densidadeBordo !== 0) {
            this.service.dataItem.kilosBordo = this.service.dataItem.litrosBordo * this.service.dataItem.densidadeBordo;
            this.service.dataItem.kilosBordo.toFixed(0);
        }
    };
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.tanquesDoItem = function () {
        var chave = this.funcoes.objToB64({
            stoLaudoId: this.service.data.stoLaudoId,
            item: this.service.dataItem.stoLaudoItemId,
            regTmp: this.service.data.regTmp,
            materialId: this.service.dataItem.materialId
        });
        if (!!chave) {
            this.router.navigate([this.target + "/operacao/operacaoDoNavio/tanqueDoItem/" + chave]);
        }
    };
    Object.defineProperty(OperacaoDoNavioAbaProdutosDadosComponent.prototype, "disabledLiberarRetencao", {
        get: function () {
            if (!this.showTable || !this.isDetail)
                return true;
            return !app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["BooleanUtilsStaticService"].toBoolean(this.service.dataItem.libRetencao) ||
                app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].equal(this.service.dataItem.tipoOperacao, 9);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAbaProdutosDadosComponent.prototype.liberarRetencao = function () {
        var _this = this;
        if (this.disabledLiberarRetencao)
            return;
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 11, function () {
            _this.message.confirm("titles.operacaoDoNavio", "messages.confirmaALiberacaoDaRetencaoTecnicaParaCarregamento", null, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.liberarRetencao(this.service.dataItem.stoLaudoId, this.service.dataItem.stoLaudoItemId).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.message.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.message.warning(_this.title, m); });
                                return [2 /*return*/];
                            }
                            this.service.dataItem.libRetencao = 'N';
                            this.message.saveSuccess(this.title);
                            return [2 /*return*/];
                    }
                });
            }); });
        }, function () { });
    };
    OperacaoDoNavioAbaProdutosDadosComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_0__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaProdutosDadosComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaProdutosDadosComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaProdutosDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
            selector: 'app-operacao-do-navio-aba-produtos-dados',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-produtos-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-produtos-dados.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_0__["PermissoesUtilsService"]])
    ], OperacaoDoNavioAbaProdutosDadosComponent);
    return OperacaoDoNavioAbaProdutosDadosComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.scss":
/*!************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.scss ***!
  \************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1ob3JhLW9wZXJhY2lvbmFsL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcb3BlcmFjYW9cXG9wZXJhY2FvLWRvLW5hdmlvXFxvcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3NcXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1ob3JhLW9wZXJhY2lvbmFsXFxvcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtaG9yYS1vcGVyYWNpb25hbC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1ob3JhLW9wZXJhY2lvbmFsL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1ob3JhLW9wZXJhY2lvbmFsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsWUFBQTtBQ0NGOztBREVBO0VBQ0UsWUFBQTtBQ0NGOztBREVBO0VBQ0UseUJBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLFVBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL29wZXJhY2FvL29wZXJhY2FvLWRvLW5hdmlvL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtaG9yYS1vcGVyYWNpb25hbC9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3MtaG9yYS1vcGVyYWNpb25hbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vcGFjaXR5IHtcclxuICBvcGFjaXR5OiAwLjc7XHJcbn1cclxuXHJcbmkuX3doaXRlIHtcclxuICBjb2xvcjogd2hpdGU7XHJcbn1cclxuXHJcbnRhYmxlIHRyLmFjdGl2ZSB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcclxufVxyXG5cclxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcclxuICBtYXJnaW4tYm90dG9tOiA1cHg7XHJcbn1cclxuXHJcbmRpdi5mb3JtLWNoZWNrLWlubGluZSB7XHJcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG59XHJcblxyXG5kaXYuX19tYXNrIHtcclxuICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgd2lkdGg6IDEwMCU7XHJcbiAgaGVpZ2h0OiAxMDAlO1xyXG4gIHotaW5kZXg6IDM7XHJcbn1cclxuIiwiLm9wYWNpdHkge1xuICBvcGFjaXR5OiAwLjc7XG59XG5cbmkuX3doaXRlIHtcbiAgY29sb3I6IHdoaXRlO1xufVxuXG50YWJsZSB0ci5hY3RpdmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjVmNWY1O1xufVxuXG5kaXYuY29udGFpbmVyLWJ1dHRvbnMge1xuICBtYXJnaW4tYm90dG9tOiA1cHg7XG59XG5cbmRpdi5mb3JtLWNoZWNrLWlubGluZSB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbn1cblxuZGl2Ll9fbWFzayB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogMTAwJTtcbiAgei1pbmRleDogMztcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.ts":
/*!**********************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.ts ***!
  \**********************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaProdutosHoraOperacionalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosHoraOperacionalComponent", function() { return OperacaoDoNavioAbaProdutosHoraOperacionalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __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_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 _cadastro_equipamento_equipamento_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../cadastro/equipamento/equipamento.model */ "./src/app/pages/cadastro/equipamento/equipamento.model.ts");
/* harmony import */ var _cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../cadastro/equipamento/equipamento.service */ "./src/app/pages/cadastro/equipamento/equipamento.service.ts");
/* harmony import */ var _cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../cadastro/ocorrencia-laudo/ocorrencia-laudo.service */ "./src/app/pages/cadastro/ocorrencia-laudo/ocorrencia-laudo.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _cadastro_ocorrencia_laudo_ocorrencia_laudo_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../../../../cadastro/ocorrencia-laudo/ocorrencia-laudo.model */ "./src/app/pages/cadastro/ocorrencia-laudo/ocorrencia-laudo.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var OperacaoDoNavioAbaProdutosHoraOperacionalComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaProdutosHoraOperacionalComponent(serviceEquipamento, message, serviceOcorrenciaLaudo, service, funcoes) {
        this.serviceEquipamento = serviceEquipamento;
        this.message = message;
        this.serviceOcorrenciaLaudo = serviceOcorrenciaLaudo;
        this.service = service;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_8__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.mensagens = [];
        this.ocorrenciasLaudoList = [];
        this.equipamentoList = [];
    }
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.ngOnInit = function () {
        this.showTable = true;
        this.getEquipamento();
        this.getOcorrencias();
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataItemHorOper = val;
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.new = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataItemHorOper, true, false))
            return false;
        this.detail = false;
        this.showTable = false;
        this.service.dataItemHorOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaProdutosHorarioOperacional"]();
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataItemHorOper))
            return false;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataItemHorOper))
            return false;
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.service.dataItemHorOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaProdutosHorarioOperacional"]();
        this._index = -1;
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validateDtMovimiento())
            return;
        if (this.periodoAteRequired && !this.validateDtMovimientoFim())
            return;
        var idxItem = this.service.dataItem.stoLaudoItemHoraOpers.findIndex(function (c) { return c.sequencia === _this.service.dataItemHorOper.sequencia; });
        if (idxItem >= 0) {
            this.service.dataItem.stoLaudoItemHoraOpers[idxItem] = this.service.dataItemHorOper;
        }
        else {
            this.service.dataItemHorOper.sequencia = this.service.dataItem.stoLaudoItemHoraOpers.length + 1;
            this.service.dataItem.stoLaudoItemHoraOpers.push(this.service.dataItemHorOper);
        }
        this.service.setDataItens();
        this.back();
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataItemHorOper))
            return false;
        this.response.emit(false);
        this.message.removeConfirm(function () {
            _this.service.dataItem.stoLaudoItemHoraOpers.forEach(function (val, idx) {
                if (!!val.stoLaudoId && val.stoLaudoId === _this.service.dataItemHorOper.stoLaudoId && val.stoLaudoItemId === _this.service.dataItemHorOper.stoLaudoItemId && val.stoLaudoItemHoraOperId === _this.service.dataItemHorOper.stoLaudoItemHoraOperId) {
                    _this.service.dataItemHorOper.sitReg = 'E';
                }
                else if (!val.stoLaudoId && val.sequencia === _this.service.dataItemHorOper.sequencia) {
                    _this.service.dataItem.stoLaudoItemHoraOpers.splice(idx, 1);
                }
            });
            _this.service.setDataItens();
            _this.service.dataItemHorOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaProdutosHorarioOperacional"]();
            _this._index = -1;
        });
        this.response.emit(true);
    };
    Object.defineProperty(OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype, "periodoAteRequired", {
        get: function () {
            if (!this.service.dataItemHorOper || !this.service.dataItemHorOper.ocorrenciaLaudo) {
                return false;
            }
            return this.funcoes.isBoolean(this.service.dataItemHorOper.ocorrenciaLaudo.flagPeriodo);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype, "equipRequired", {
        get: function () {
            if (!this.service.dataItemHorOper || !this.service.dataItemHorOper.ocorrenciaLaudo) {
                return false;
            }
            return this.funcoes.isBoolean(this.service.dataItemHorOper.ocorrenciaLaudo.flagEquip);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype, "labelPeriodoDe", {
        get: function () {
            return this.periodoAteRequired ? 'periodoDe' : 'data';
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.trataOcorr = function () {
        var _this = this;
        this.service.dataItemHorOper.ocorrenciaLaudo = new _cadastro_ocorrencia_laudo_ocorrencia_laudo_model__WEBPACK_IMPORTED_MODULE_11__["OcorrenciaLaudo"]();
        if (!this.service.dataItemHorOper.ocorrenciaLaudoId)
            return;
        this.service.dataItemHorOper.ocorrenciaLaudo = this.ocorrenciasLaudoList.find(function (c) { return c.ocorrenciaLaudoId === +_this.service.dataItemHorOper.ocorrenciaLaudoId; });
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.getOcorrencias = function () {
        var _this = this;
        this.serviceOcorrenciaLaudo.get().subscribe(function (resp) {
            _this.ocorrenciasLaudoList = resp.filter(function (val) {
                if (val.tipoOcorr === "P" && val.sitReg !== "E") {
                    return val;
                }
            });
        });
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.getEquipamento = function () {
        var _this = this;
        this.equipamentoList = [];
        this.serviceEquipamento.get().subscribe(function (resp) {
            if (resp) {
                _this.equipamentoList = resp;
            }
        });
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.currentEquipamento = function () {
        var _this = this;
        this.service.dataItemHorOper.equipamento = new _cadastro_equipamento_equipamento_model__WEBPACK_IMPORTED_MODULE_5__["Equipamento"]();
        if (!this.service.dataItemHorOper.equipamentoId)
            return;
        this.service.dataItemHorOper.equipamento = this.equipamentoList.find(function (c) { return c.equipamentoId === +_this.service.dataItemHorOper.equipamentoId; });
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.validateDtMovimiento = function () {
        if (!this.service.dataItemHorOper.dtOcorrencia)
            return;
        if (this.funcoes.dateTimeUtils.maiorAHoje(this.service.dataItemHorOper.dtOcorrencia, ['H', 'M'])) {
            if (this.periodoAteRequired)
                this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMaiorDataAtual");
            else
                this.message.warning("titles.operacaoDoNavio", "messages.dataNaoPodeSerMaiorQueDataAtual");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype.validateDtMovimientoFim = function () {
        if (!this.service.dataItemHorOper.dtOcorrencia)
            return;
        if (!this.service.dataItemHorOper.dtOcorrenciaFim)
            return;
        if (this.funcoes.dateTimeUtils.maiorOuIgualA(this.service.dataItemHorOper.dtOcorrencia, this.service.dataItemHorOper.dtOcorrenciaFim, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMenorQueAte");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent.ctorParameters = function () { return [
        { type: _cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_6__["EquipamentoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_7__["OcorrenciaLaudoService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaProdutosHoraOperacionalComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaProdutosHoraOperacionalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-do-navio-aba-produtos-hora-operacional",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-produtos-hora-operacional.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-produtos-hora-operacional.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_cadastro_equipamento_equipamento_service__WEBPACK_IMPORTED_MODULE_6__["EquipamentoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _cadastro_ocorrencia_laudo_ocorrencia_laudo_service__WEBPACK_IMPORTED_MODULE_7__["OcorrenciaLaudoService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"]])
    ], OperacaoDoNavioAbaProdutosHoraOperacionalComponent);
    return OperacaoDoNavioAbaProdutosHoraOperacionalComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.scss":
/*!************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.scss ***!
  \************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1vY29ycmVuY2lhL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcb3BlcmFjYW9cXG9wZXJhY2FvLWRvLW5hdmlvXFxvcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3NcXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1vY29ycmVuY2lhXFxvcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3Mtb2NvcnJlbmNpYS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXByb2R1dG9zL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1vY29ycmVuY2lhL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy1vY29ycmVuY2lhLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsWUFBQTtBQ0NGOztBREVBO0VBQ0UsWUFBQTtBQ0NGOztBREVBO0VBQ0UseUJBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLFVBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL29wZXJhY2FvL29wZXJhY2FvLWRvLW5hdmlvL29wZXJhY2FvLWRvLW5hdmlvLWFiYS1wcm9kdXRvcy9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3Mtb2NvcnJlbmNpYS9vcGVyYWNhby1kby1uYXZpby1hYmEtcHJvZHV0b3Mtb2NvcnJlbmNpYS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5vcGFjaXR5IHtcclxuICBvcGFjaXR5OiAwLjc7XHJcbn1cclxuXHJcbmkuX3doaXRlIHtcclxuICBjb2xvcjogd2hpdGU7XHJcbn1cclxuXHJcbnRhYmxlIHRyLmFjdGl2ZSB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcclxufVxyXG5cclxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcclxuICBtYXJnaW4tYm90dG9tOiA1cHg7XHJcbn1cclxuXHJcbmRpdi5mb3JtLWNoZWNrLWlubGluZSB7XHJcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG59XHJcblxyXG5kaXYuX19tYXNrIHtcclxuICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgd2lkdGg6IDEwMCU7XHJcbiAgaGVpZ2h0OiAxMDAlO1xyXG4gIHotaW5kZXg6IDM7XHJcbn1cclxuIiwiLm9wYWNpdHkge1xuICBvcGFjaXR5OiAwLjc7XG59XG5cbmkuX3doaXRlIHtcbiAgY29sb3I6IHdoaXRlO1xufVxuXG50YWJsZSB0ci5hY3RpdmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjVmNWY1O1xufVxuXG5kaXYuY29udGFpbmVyLWJ1dHRvbnMge1xuICBtYXJnaW4tYm90dG9tOiA1cHg7XG59XG5cbmRpdi5mb3JtLWNoZWNrLWlubGluZSB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbn1cblxuZGl2Ll9fbWFzayB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogMTAwJTtcbiAgei1pbmRleDogMztcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.ts":
/*!**********************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.ts ***!
  \**********************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaProdutosOcorrenciaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosOcorrenciaComponent", function() { return OperacaoDoNavioAbaProdutosOcorrenciaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.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 _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 _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 OperacaoDoNavioAbaProdutosOcorrenciaComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaProdutosOcorrenciaComponent(message, service, funcoes) {
        this.message = message;
        this.service = service;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.mensagens = [];
    }
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataItemOcor = val;
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.new = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataItemOcor, true, false))
            return false;
        this.detail = false;
        this.showTable = false;
        this.service.dataItemOcor = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioAbaProdutosOcorrencia"]();
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataItemOcor))
            return false;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataItemOcor))
            return false;
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.back = function () {
        this.showTable = true;
        this.service.dataItemOcor = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioAbaProdutosOcorrencia"]();
        this.response.emit(true);
        this._index = -1;
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validateDtMovimiento())
            return;
        if (!this.validateDtOcorrenciaFim())
            return;
        var idxItem = this.service.dataItem.stoLaudoItemOcorrencias.findIndex(function (c) { return c.sequencia === _this.service.dataItemOcor.sequencia; });
        if (idxItem >= 0) {
            this.service.dataItem.stoLaudoItemOcorrencias[idxItem] = this.service.dataItemOcor;
        }
        else {
            this.service.dataItemOcor.sequencia = this.service.dataItem.stoLaudoItemOcorrencias.length + 1;
            this.service.dataItem.stoLaudoItemOcorrencias.push(this.service.dataItemOcor);
        }
        this.service.setDataItens();
        this.back();
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataItemOcor))
            return false;
        this.response.emit(false);
        this.message.removeConfirm(function () {
            _this.service.dataItem.stoLaudoItemOcorrencias.forEach(function (val, idx) {
                if (!!val.stoLaudoId && val.stoLaudoId === _this.service.dataItemOcor.stoLaudoId && val.stoLaudoItemId === _this.service.dataItemOcor.stoLaudoItemId && val.stoLaudoItemOcorrenciaId === _this.service.dataItemOcor.stoLaudoItemOcorrenciaId) {
                    _this.service.dataItemOcor.sitReg = 'E';
                }
                else if (!val.stoLaudoId && val.sequencia === _this.service.dataItemOcor.sequencia) {
                    _this.service.dataItem.stoLaudoItemOcorrencias.splice(idx, 1);
                }
            });
            _this.service.setDataItens();
            _this.service.dataItemOcor = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioAbaProdutosOcorrencia"]();
            _this._index = -1;
        });
        this.response.emit(true);
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.validateDtMovimiento = function () {
        if (!this.service.dataItemOcor.dtOcorrencia)
            return;
        if (this.funcoes.dateTimeUtils.maiorAHoje(this.service.dataItemOcor.dtOcorrencia, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMenorDataAtual");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype.validateDtOcorrenciaFim = function () {
        if (!this.service.dataItemOcor.dtOcorrencia)
            return;
        if (!this.service.dataItemOcor.dtOcorrenciaFim)
            return;
        if (this.funcoes.dateTimeUtils.maiorOuIgualA(this.service.dataItemOcor.dtOcorrencia, this.service.dataItemOcor.dtOcorrenciaFim, ['H', 'M'])) {
            this.message.warning("titles.operacaoDoNavio", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAbaProdutosOcorrenciaComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaProdutosOcorrenciaComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaProdutosOcorrenciaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-aba-produtos-ocorrencia',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-produtos-ocorrencia.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-produtos-ocorrencia.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"]])
    ], OperacaoDoNavioAbaProdutosOcorrenciaComponent);
    return OperacaoDoNavioAbaProdutosOcorrenciaComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.component.ts":
/*!*********************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.component.ts ***!
  \*********************************************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAntecipacaoAjusteComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAntecipacaoAjusteComponent", function() { return OperacaoDoNavioAntecipacaoAjusteComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operacao-do-navio-produtos-antecipacao.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.model.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.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");
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 OperacaoDoNavioAntecipacaoAjusteComponent = /** @class */ (function () {
    function OperacaoDoNavioAntecipacaoAjusteComponent(message, service, funcoes) {
        this.message = message;
        this.service = service;
        this.funcoes = funcoes;
        this.ok = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.clienteSelected = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoAjusteClienteDto"]();
        this.tanqueSelected = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoAjusteTanqueDto"]();
        this.dataSelected = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoClienteDto"]();
        this.title = "titles.operacaoDoNavio";
    }
    OperacaoDoNavioAntecipacaoAjusteComponent.prototype.open = function (dataSelected) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.dataSelected = dataSelected;
                        this.clienteSelected = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoAjusteClienteDto"]();
                        this.tanqueSelected = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoAjusteTanqueDto"]();
                        return [4 /*yield*/, this.openDados(this.dataSelected.subItem)];
                    case 1:
                        _a.sent();
                        if (!!this.dados) {
                            if (this.hasDadosCliente) {
                                this.clienteSelected = this.dados.clientes.find(function (c) { return c.subItem === _this.dataSelected.subItem; });
                            }
                            if (this.hasDadosTanque) {
                                this.tanqueSelected = this.dados.tanques[0];
                            }
                        }
                        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ModalUtilsStaticService"].openModal("operacao-do-navio-antecipacao-ajuste");
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAntecipacaoAjusteComponent.prototype.openDados = function (subItem) {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.antecipacaoDadosAjuste({
                                stoLaudoId: this.stoLaudoId,
                                item: this.item,
                                subItem: subItem,
                                deposito: this.dataSelected.deposito
                            }).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAntecipacaoAjusteComponent.prototype.transferir = function () {
        var _this = this;
        var m = this.message.translate("messages.confirmaTransfSaldoTanqueDocto", { deposito: this.tanqueSelected.deposito, numBL: this.clienteSelected.numBL });
        this.message.confirm(this.title, m, null, function () {
            _this.service.antecipacaoSaveAjuste({
                stoLaudoId: _this.stoLaudoId,
                item: _this.item,
                subItem: _this.clienteSelected.subItem,
                deposito: _this.tanqueSelected.deposito
            }).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.message.warning(_this.title, resp.erros[0].message);
                    return;
                }
                _this.openDados(_this.clienteSelected.subItem);
                _this.message.success(_this.title, "messages.liberacaoParcialNavioGravadaComSucesso");
            });
        });
    };
    OperacaoDoNavioAntecipacaoAjusteComponent.prototype.onSelectedCliente = function (cliente) {
        this.clienteSelected = cliente;
        this.openDados(cliente.subItem);
    };
    Object.defineProperty(OperacaoDoNavioAntecipacaoAjusteComponent.prototype, "disabledTransferir", {
        get: function () {
            return _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["NumberUtilsStaticService"].toNumber(this.clienteSelected.kilosARec) <= 0 || _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["NumberUtilsStaticService"].toNumber(this.tanqueSelected.kilosDisp) <= 0;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoAjusteComponent.prototype, "hasDadosCliente", {
        get: function () {
            if (!this.dados)
                return false;
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dados.clientes);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoAjusteComponent.prototype, "hasDadosDepBL", {
        get: function () {
            if (!this.dados)
                return false;
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dados.depBLs);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoAjusteComponent.prototype, "hasDadosTanque", {
        get: function () {
            if (!this.dados)
                return false;
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.dados.tanques);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAntecipacaoAjusteComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioAntecipacaoAjusteComponent.prototype, "stoLaudoId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioAntecipacaoAjusteComponent.prototype, "item", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAntecipacaoAjusteComponent.prototype, "ok", void 0);
    OperacaoDoNavioAntecipacaoAjusteComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-produtos-antecipacao-ajuste',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-produtos-antecipacao-ajuste.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], OperacaoDoNavioAntecipacaoAjusteComponent);
    return OperacaoDoNavioAntecipacaoAjusteComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.component.ts":
/*!*****************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.component.ts ***!
  \*****************************************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAntecipacaoNovoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAntecipacaoNovoComponent", function() { return OperacaoDoNavioAntecipacaoNovoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operacao-do-navio-produtos-antecipacao.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.model.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 _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.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_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.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 __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 OperacaoDoNavioAntecipacaoNovoComponent = /** @class */ (function () {
    function OperacaoDoNavioAntecipacaoNovoComponent(message, service, funcoes) {
        this.message = message;
        this.service = service;
        this.funcoes = funcoes;
        this.ok = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dadosEdit = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoDadosEditarDto"]();
        this.dataEdit = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoDepositoEditar"]();
        this.isEditItem = false;
        this.dataSelected = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoClienteDto"]();
        this.title = "titles.operacaoDoNavio";
    }
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.onAddItem = function () {
        var _this = this;
        this.service.antecipacaoDadosEdit({
            stoLaudoId: this.stoLaudoId,
            item: this.item,
            isEditItem: false,
            autorizacao: 0
        }).subscribe(function (resp) {
            _this.dataEdit = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoDepositoEditar"]();
            _this.isEditItem = false;
            _this.dadosEdit = resp;
            if (!!resp) {
                if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(resp.clientes)) {
                    _this.dataEdit.codDest = resp.clientes[0].codDest;
                    _this.selectedCliente();
                    if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(_this.dataEdit.oCliente.doctos)) {
                        _this.dataEdit.subItem = _this.dataEdit.oCliente.doctos[0].subItem;
                        _this.selectedDocto();
                    }
                }
                if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(resp.depositos)) {
                    _this.selectedDeposito();
                }
            }
            _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("operacao-do-navio-antecipacao-novo");
        });
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.onEditItem = function (dataSelected) {
        return __awaiter(this, void 0, void 0, function () {
            var verificaLiberacao, m;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.dataSelected = dataSelected;
                        return [4 /*yield*/, this.service.verificaLiberacao(this.dataSelected.autorizacao).toPromise()];
                    case 1:
                        verificaLiberacao = _a.sent();
                        if (!verificaLiberacao.isValid) {
                            m = this.message.translate("messages.autorizacaoComLiberacao");
                            this.message.warning(this.title, "messages.operacaoNaoPermitidaByParam", { param: m });
                            return [2 /*return*/];
                        }
                        this.service.antecipacaoDadosEdit({
                            stoLaudoId: this.stoLaudoId,
                            item: this.item,
                            isEditItem: true,
                            autorizacao: this.dataSelected.autorizacao
                        }).subscribe(function (resp) {
                            _this.dataEdit = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_2__["AntecipacaoDepositoEditar"]();
                            _this.isEditItem = true;
                            _this.dadosEdit = resp;
                            if (!!resp) {
                                if (!!resp.item) {
                                    if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(resp.clientes)) {
                                        _this.dataEdit.codDest = resp.item.codDest;
                                        _this.selectedCliente();
                                        if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(_this.dataEdit.oCliente.doctos)) {
                                            _this.dataEdit.subItem = resp.item.subItem;
                                            _this.selectedDocto();
                                        }
                                    }
                                    if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(resp.depositos)) {
                                        _this.selectedDepositoEdit();
                                    }
                                }
                            }
                            _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("operacao-do-navio-antecipacao-novo");
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.validarKilosLitros = function () {
        var kilos = _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.kilos);
        var kilosManif = _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.dataEdit.kilos);
        if (kilos === 0) {
            this.message.warning(this.title, "messages.naoExisteQuantidadeDisponivelParaAntecipar");
            return false;
        }
        if (kilosManif === 0) {
            this.message.warning(this.title, "messages.porFavorInformarKilos");
            return false;
        }
        return true;
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.onSaveItem = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validarKilosLitros())
            return;
        this.dataEdit.regLaudo = this.stoLaudoId;
        this.dataEdit.item = this.item;
        this.dataEdit.autorizacao = this.isEditItem ? this.dataSelected.autorizacao : 0;
        var m = !this.isEditItem ? "Inclusão" : "Alteração";
        m = this.message.translate("messages.confirmaAntecipacao", { param: m });
        this.message.confirm(this.title, m, null, function () {
            _this.service.antecipacaoSaveEdit(_this.dataEdit).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.message.warning(_this.title, resp.erros[0].message);
                    return;
                }
                _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].closeModal("operacao-do-navio-antecipacao-novo");
                _this.message.success(_this.title, "messages.liberacaoParcialNavioGravadaComSucesso");
                _this.ok.emit(true);
            });
        });
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.selectedCliente = function (t) {
        var _this = this;
        if (t === void 0) { t = undefined; }
        if (!!t)
            this.dataEdit.codDest = +t.target.value;
        if (!this.dataEdit.codDest) {
            this.dataEdit.oCliente = undefined;
            this.dataEdit.subItem = "";
            this.dataEdit.oDocto = undefined;
            this.dataEdit.deposito = "";
            this.dataEdit.oDeposito = undefined;
            this.dataEdit.kilos = undefined;
            this.dataEdit.litros = undefined;
            return;
        }
        this.dataEdit.oCliente = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ObjectUtilsStaticService"].clone(this.dadosEdit.clientes.find(function (c) { return c.codDest === _this.dataEdit.codDest; }));
        this.selectedDocto();
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.selectedDocto = function (t) {
        var _this = this;
        if (t === void 0) { t = undefined; }
        if (!!t)
            this.dataEdit.subItem = +t.target.value;
        if (!this.dataEdit.subItem) {
            this.dataEdit.oDocto = undefined;
            this.dataEdit.deposito = "";
            this.dataEdit.oDeposito = undefined;
            this.dataEdit.kilos = undefined;
            this.dataEdit.litros = undefined;
            return;
        }
        this.dataEdit.oDocto = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ObjectUtilsStaticService"].clone(this.dataEdit.oCliente.doctos.find(function (c) { return c.subItem === _this.dataEdit.subItem; }));
        this.selectedDeposito();
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.selectedDeposito = function (t) {
        var _this = this;
        if (t === void 0) { t = undefined; }
        var kilosReceb = 0;
        var litrosReceb = 0;
        var kilosAnt = 0;
        var litrosAnt = 0;
        var kilosAntDep = 0;
        var litrosAntDep = 0;
        var kilosManif = 0;
        var litrosManif = 0;
        if (!!t)
            this.dataEdit.deposito = t.target.value;
        if (!this.dataEdit.deposito) {
            this.dataEdit.oDeposito = undefined;
            this.dataEdit.kilos = undefined;
            this.dataEdit.litros = undefined;
            return;
        }
        this.dataEdit.oDeposito = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ObjectUtilsStaticService"].clone(this.dadosEdit.depositos.find(function (c) { return c.deposito === _this.dataEdit.deposito; }));
        if (!!this.dataEdit.oDeposito) {
            kilosReceb = this.dataEdit.oDeposito.kilosRecebe;
            litrosReceb = this.dataEdit.oDeposito.litrosRecebe;
            kilosAntDep = this.dataEdit.oDeposito.kilosAntDep;
            litrosAntDep = this.dataEdit.oDeposito.litrosAntDep;
        }
        if (!!this.dataEdit.oDocto) {
            kilosManif = this.dataEdit.oDocto.kilosManif;
            litrosManif = this.dataEdit.oDocto.litrosManif;
            kilosAnt = this.dataEdit.oDocto.kilosAnt;
            litrosAnt = this.dataEdit.oDocto.litrosAnt;
        }
        kilosReceb = kilosReceb - kilosAntDep;
        litrosReceb = litrosReceb - litrosAntDep;
        if (kilosReceb > kilosManif) {
            kilosReceb = kilosManif;
        }
        if (litrosReceb > litrosManif) {
            litrosReceb = litrosManif;
        }
        this.kilos = kilosManif - kilosAnt;
        this.litros = litrosManif - litrosAnt;
        if (this.kilos > kilosReceb) {
            this.kilos = kilosReceb;
        }
        if (this.litros > litrosReceb) {
            this.litros = litrosReceb;
        }
        if (kilosAnt >= kilosManif) {
            this.kilos = 0;
        }
        if (litrosAnt >= litrosManif) {
            this.litros = 0;
        }
        if (this.litros > 0) {
            this.indice = this.kilos / this.litros;
        }
        this.dataEdit.kilos = Math.round(this.kilos);
        if (this.indice > 0) {
            this.dataEdit.litros = Math.round(this.kilos / this.indice);
        }
        else {
            this.dataEdit.litros = Math.round(this.litros);
        }
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.selectedDepositoEdit = function () {
        var kilosAnt = this.dadosEdit.item.kilosAnt;
        var litrosAnt = this.dadosEdit.item.litrosAnt;
        var kilosManif = this.dadosEdit.item.kilosManif;
        var litrosManif = this.dadosEdit.item.litrosManif;
        var kilosReceb = this.dadosEdit.item.kilosReceb;
        var litrosReceb = this.dadosEdit.item.litrosReceb;
        var kilosAntDoc = this.dadosEdit.item.kilosAntDoc;
        var litrosAntDoc = this.dadosEdit.item.litrosAntDoc;
        var kilosAntDep = this.dadosEdit.item.kilosAntDep;
        var litrosAntDep = this.dadosEdit.item.litrosAntDep;
        this.dataEdit.kilos = this.dadosEdit.item.kilosAnt;
        this.dataEdit.litros = this.dadosEdit.item.litrosAnt;
        kilosReceb = kilosReceb - kilosAntDep;
        litrosReceb = litrosReceb - litrosAntDep;
        if (kilosReceb > kilosManif) {
            kilosReceb = kilosManif;
        }
        if (litrosReceb > litrosManif) {
            litrosReceb = litrosManif;
        }
        this.kilos = this.valLimite(kilosManif) - kilosAntDoc;
        this.litros = this.valLimite(litrosManif) - litrosAntDoc;
        if (this.kilos > kilosReceb) {
            this.kilos = kilosReceb;
        }
        if (this.litros > litrosReceb) {
            this.litros = litrosReceb;
        }
        if (kilosAntDoc >= this.valLimite(kilosManif)) {
            this.kilos = 0;
        }
        if (litrosAntDoc >= this.valLimite(litrosManif)) {
            this.litros = 0;
        }
        this.kilos = Math.round(this.kilos + kilosAnt);
        this.litros = Math.round(this.litros + litrosAnt);
        if (this.litros > 0)
            this.indice = this.kilos / this.litros;
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.valLimite = function (value) {
        return (value * this.limite) / 100;
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.trataKilos = function () {
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.dataEdit.kilos) > 0 &&
            _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.indice) > 0) {
            this.dataEdit.litros = Math.round(this.dataEdit.kilos / this.indice);
        }
    };
    OperacaoDoNavioAntecipacaoNovoComponent.prototype.trataLitros = function () {
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.dataEdit.kilos) === 0 &&
            _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.dataEdit.litros) > 0 &&
            _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].toNumber(this.indice) > 0) {
            this.dataEdit.kilos = Math.round(this.dataEdit.litros * this.indice);
        }
    };
    Object.defineProperty(OperacaoDoNavioAntecipacaoNovoComponent.prototype, "disabledKilosLitros", {
        get: function () {
            return !this.dataEdit.codDest || !this.dataEdit.subItem || !this.dataEdit.deposito;
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAntecipacaoNovoComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioAntecipacaoNovoComponent.prototype, "stoLaudoId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioAntecipacaoNovoComponent.prototype, "item", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioAntecipacaoNovoComponent.prototype, "limite", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAntecipacaoNovoComponent.prototype, "ok", void 0);
    OperacaoDoNavioAntecipacaoNovoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-produtos-antecipacao-novo',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-produtos-antecipacao-novo.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], OperacaoDoNavioAntecipacaoNovoComponent);
    return OperacaoDoNavioAntecipacaoNovoComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.component.ts":
/*!****************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.component.ts ***!
  \****************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAntecipacaoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAntecipacaoComponent", function() { return OperacaoDoNavioAntecipacaoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var _operacao_do_navio_produtos_antecipacao_novo_operacao_do_navio_produtos_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.component.ts");
/* harmony import */ var _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./operacao-do-navio-produtos-antecipacao.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.model.ts");
/* harmony import */ var _operacao_do_navio_produtos_antecipacao_ajuste_operacao_do_navio_produtos_antecipacao_ajuste_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.component.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 OperacaoDoNavioAntecipacaoComponent = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioAntecipacaoComponent, _super);
    function OperacaoDoNavioAntecipacaoComponent(activatedRoute, funcoesService, stoLaudoService, messageService, service, configuracao, router) {
        var _this = _super.call(this, new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioConstants"](), funcoesService) || this;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.stoLaudoService = stoLaudoService;
        _this.messageService = messageService;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.router = router;
        _this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioConstants"]();
        _this.config = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_11__["ConfigOperacaoDoNavio"]();
        _this.dadosDeposito = [];
        _this.dadosCliente = [];
        _this.calculado = false;
        _this.title = "titles.operacaoDoNavio";
        _this.dataSelected = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_15__["AntecipacaoClienteDto"]();
        _this.dados = new _operacao_do_navio_produtos_antecipacao_model__WEBPACK_IMPORTED_MODULE_15__["AntecipacaoDadosDto"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.config.libParNavImp = _this.configuracao.number("OPE", "LibParNavImp");
                _this.config.libParNavCab = _this.configuracao.number("OPE", "LibParNavCab");
                _this.config.libAutomaticaAntecip = _this.configuracao.boolean("OPE", "LibAutomaticaAntecip");
                _this.limite = [1, 9].includes(_this.service.dataItem.tipoOperacao) ? _this.config.libParNavImp : _this.config.libParNavCab;
            }
        };
        return _this;
    }
    OperacaoDoNavioAntecipacaoComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var chave;
            return __generator(this, function (_a) {
                this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
                chave = this.activatedRoute.snapshot.paramMap.get("chave");
                if (chave) {
                    this.data = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ObjectUtilsStaticService"].b64ToObj(chave);
                    this.geraDados();
                }
                return [2 /*return*/];
            });
        });
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.geraDados = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.calculado = false;
                        this.ptAntecipacao = 0;
                        this.dataSelected = undefined;
                        _a = this;
                        return [4 /*yield*/, this.service.antecipacaoPreparar(this.data.stoLaudoId, this.data.item).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        this.dadosDeposito = this.dados.depositos;
                        this.dadosCliente = this.dados.clientesNaoCalculados;
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.atualizaDados = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.service.antecipacaoDados(this.data.stoLaudoId, this.data.item).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        this.dadosDeposito = this.dados.depositos;
                        this.dadosCliente = this.calculado ? this.dados.clientesCalculados : this.dados.clientesNaoCalculados;
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.back = function () {
        var chave = this.funcoesService.objToB64({
            stoLaudoId: this.data.stoLaudoId,
            regTmp: this.data.regTmp,
            sisFormularioId: this.constantes.sisFormularioId,
            refreshData: "S"
        });
        this.router.navigate([this.target + "/operacao/operacaoDoNavio/detail/" + chave]);
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onAjust = function () {
        this.ajusteModal.open(this.dataSelected);
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onRemove = function () {
        var _this = this;
        this.messageService.confirm(this.title, "messages.confirmaExclusaoUltimaAntecipacao", null, function () {
            _this.service.antecipacaoExclui(_this.data.stoLaudoId, _this.data.item).subscribe(function (resp) { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    if (!resp.isValid) {
                        this.messageService.warning(this.title, resp.erros[0].message);
                        return [2 /*return*/];
                    }
                    this.geraDados();
                    this.messageService.success(this.title, "messages.registroExcluidoComSucesso");
                    return [2 /*return*/];
                });
            }); });
        });
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onConfirm = function () {
        var _this = this;
        this.messageService.confirm(this.title, "messages.confirmaLiberacaoParcialNavioAntecipacao", null, function () {
            _this.service.antecipacaoGera(_this.data.stoLaudoId, _this.data.item).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.messageService.warning(_this.title, resp.erros[0].message);
                    return;
                }
                _this.messageService.success(_this.title, "messages.liberacaoParcialNavioGravadaComSucesso");
                _this.back();
            });
        });
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onCalc = function () {
        return __awaiter(this, void 0, void 0, function () {
            var ptAntecipacao, validPercentual;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.calculado = false;
                        ptAntecipacao = this.ptAntecipacao;
                        return [4 /*yield*/, this.service.antecipacaoCalcular(this.data.stoLaudoId, this.data.item, ptAntecipacao).toPromise()];
                    case 1:
                        validPercentual = _a.sent();
                        if (!validPercentual.isValid) {
                            this.messageService.warning(this.title, validPercentual.erros[0].message);
                            return [2 /*return*/];
                        }
                        this.calculado = true;
                        this.ptAntecipacao = undefined;
                        this.atualizaDados();
                        this.messageService.success(this.title, "messages.antecipacaoCalculadaComSucesso");
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onAddItem = function () {
        this.novoModal.onAddItem();
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onEditItem = function () {
        this.novoModal.onEditItem(this.dataSelected);
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onExecuteEdit = function (e) {
        if (e) {
            this.geraDados();
        }
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onExecuteAjuste = function (e) {
        if (e) {
            this.geraDados();
        }
    };
    OperacaoDoNavioAntecipacaoComponent.prototype.onRemoveItem = function () {
        var _this = this;
        this.messageService.confirm(this.title, "messages.confirmaExclusaoAntecipacao", null, function () {
            _this.service.antecipacaoExcluirEdit({
                regLaudo: _this.data.stoLaudoId,
                item: _this.data.item,
                subItem: _this.dataSelected.subItem,
                autorizacao: _this.dataSelected.autorizacao,
                sequencia: _this.dataSelected.sequencia,
                deposito: _this.dataSelected.deposito,
            }).subscribe(function (resp) { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    if (!resp.isValid) {
                        this.messageService.warning(this.title, resp.erros[0].message);
                        return [2 /*return*/];
                    }
                    this.geraDados();
                    this.messageService.success(this.title, "messages.registroExcluidoComSucesso");
                    return [2 /*return*/];
                });
            }); });
        });
    };
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "disabledConfirm", {
        get: function () {
            return !(this.calculado && app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.dadosCliente));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "disabledRemove", {
        get: function () {
            return !(!this.calculado && app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.dadosCliente));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "disabledCalc", {
        get: function () {
            return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["NumberUtilsStaticService"].isNotPositive(this.ptAntecipacao);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "disabledAddItem", {
        get: function () {
            return !(!this.calculado || !app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.dadosCliente));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "disabledEditItem", {
        get: function () {
            return !this.dataSelected || !this.dataSelected.sequencia;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "disabledRemoveItem", {
        get: function () {
            return !this.dataSelected || !this.dataSelected.sequencia;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "hasDadosDeposito", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.dadosDeposito);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "hasDadosCliente", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.dadosCliente);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "hasDadosSemAntecipacao", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.dados.clientesSemAntecipacao);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "antecipacaoAutomatica", {
        get: function () {
            return _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["BooleanUtilsStaticService"].toBoolean(this.config.libAutomaticaAntecip);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "disabledAjuste", {
        get: function () {
            return !this.dataSelected || !this.dataSelected.sequencia;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "lbPtAntecipacao", {
        get: function () {
            return "Permitido Antecipa\u00E7\u00E3o de " + this.limite + " %";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "lbKilosAntecipacao", {
        get: function () {
            return Math.round(((this.dados.kilosManif * this.limite) / 100) - this.dados.kilosAnt);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "lbLitrosAntecipacao", {
        get: function () {
            return Math.round(((this.dados.litrosManif * this.limite) / 100) - this.dados.litrosAnt);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "isDescarga", {
        get: function () {
            return !!this.data && this.data.tipoMov === 'D';
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioAntecipacaoComponent.prototype, "isCarga", {
        get: function () {
            return !!this.data && this.data.tipoMov === 'C';
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAntecipacaoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_9__["StoLaudoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_12__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_produtos_antecipacao_novo_operacao_do_navio_produtos_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_14__["OperacaoDoNavioAntecipacaoNovoComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_produtos_antecipacao_novo_operacao_do_navio_produtos_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_14__["OperacaoDoNavioAntecipacaoNovoComponent"])
    ], OperacaoDoNavioAntecipacaoComponent.prototype, "novoModal", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_produtos_antecipacao_ajuste_operacao_do_navio_produtos_antecipacao_ajuste_component__WEBPACK_IMPORTED_MODULE_16__["OperacaoDoNavioAntecipacaoAjusteComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_produtos_antecipacao_ajuste_operacao_do_navio_produtos_antecipacao_ajuste_component__WEBPACK_IMPORTED_MODULE_16__["OperacaoDoNavioAntecipacaoAjusteComponent"])
    ], OperacaoDoNavioAntecipacaoComponent.prototype, "ajusteModal", void 0);
    OperacaoDoNavioAntecipacaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-produtos-antecipacao',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-produtos-antecipacao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_9__["StoLaudoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_12__["OperacaoDoNavioService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]])
    ], OperacaoDoNavioAntecipacaoComponent);
    return OperacaoDoNavioAntecipacaoComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.model.ts":
/*!************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.model.ts ***!
  \************************************************************************************************************************************************************************/
/*! exports provided: AntecipacaoDepositoDto, AntecipacaoClienteDto, AntecipacaoDadosDto, AntecipacaoClienteEditarDto, AntecipacaoDoctoEditarDto, AntecipacaoDepositoEditarDto, AntecipacaoDadosEditarDto, AntecipacaoClienteEditarItemDto, AntecipacaoDepositoEditar, AntecipacaoAjusteClienteDto, AntecipacaoAjusteDepBLDto, AntecipacaoAjusteTanqueDto, AntecipacaoDadosAjusteDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDepositoDto", function() { return AntecipacaoDepositoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoClienteDto", function() { return AntecipacaoClienteDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDadosDto", function() { return AntecipacaoDadosDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoClienteEditarDto", function() { return AntecipacaoClienteEditarDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDoctoEditarDto", function() { return AntecipacaoDoctoEditarDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDepositoEditarDto", function() { return AntecipacaoDepositoEditarDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDadosEditarDto", function() { return AntecipacaoDadosEditarDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoClienteEditarItemDto", function() { return AntecipacaoClienteEditarItemDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDepositoEditar", function() { return AntecipacaoDepositoEditar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoAjusteClienteDto", function() { return AntecipacaoAjusteClienteDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoAjusteDepBLDto", function() { return AntecipacaoAjusteDepBLDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoAjusteTanqueDto", function() { return AntecipacaoAjusteTanqueDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AntecipacaoDadosAjusteDto", function() { return AntecipacaoDadosAjusteDto; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AntecipacaoDepositoDto = /** @class */ (function () {
    function AntecipacaoDepositoDto() {
    }
    return AntecipacaoDepositoDto;
}());

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

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

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

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

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

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

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

var AntecipacaoDepositoEditar = /** @class */ (function () {
    function AntecipacaoDepositoEditar() {
        this.codDest = "";
        this.subItem = "";
        this.deposito = "";
        this.kilos = undefined;
        this.litros = undefined;
    }
    return AntecipacaoDepositoEditar;
}());

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

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

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

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



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-cabecalho/operacao-do-navio-produtos-cabecalho.component.ts":
/*!************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-cabecalho/operacao-do-navio-produtos-cabecalho.component.ts ***!
  \************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioProdutoCabecalhoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioProdutoCabecalhoComponent", function() { return OperacaoDoNavioProdutoCabecalhoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 OperacaoDoNavioProdutoCabecalhoComponent = /** @class */ (function () {
    function OperacaoDoNavioProdutoCabecalhoComponent(service) {
        this.service = service;
    }
    OperacaoDoNavioProdutoCabecalhoComponent.prototype.ngOnInit = function () {
    };
    OperacaoDoNavioProdutoCabecalhoComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"] }
    ]; };
    OperacaoDoNavioProdutoCabecalhoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'operacao-do-navio-produtos-cabecalho',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-produtos-cabecalho.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-cabecalho/operacao-do-navio-produtos-cabecalho.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"]])
    ], OperacaoDoNavioProdutoCabecalhoComponent);
    return OperacaoDoNavioProdutoCabecalhoComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-equipamento/operacao-do-navio-produtos-item-tanque-equipamento.component.ts":
/*!*******************************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-equipamento/operacao-do-navio-produtos-item-tanque-equipamento.component.ts ***!
  \*******************************************************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioItemEquipamentoTanqueComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioItemEquipamentoTanqueComponent", function() { return OperacaoDoNavioItemEquipamentoTanqueComponent; });
/* 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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/combos/combo-padrao/combo-padrao.service */ "./src/app/shared/components/combos/combo-padrao/combo-padrao.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 __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 OperacaoDoNavioItemEquipamentoTanqueComponent = /** @class */ (function () {
    function OperacaoDoNavioItemEquipamentoTanqueComponent(activatedRoute, funcoesService, messageService, service, combo, router, loginService) {
        this.activatedRoute = activatedRoute;
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.combo = combo;
        this.router = router;
        this.loginService = loginService;
        this.showTable = true;
        this.isDetail = true;
        this.now = new Date();
        this.equipamentosT = [];
        this.equipamentos = [];
    }
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.ngOnInit = function () {
        var _this = this;
        var chave = this.activatedRoute.snapshot.paramMap.get("chave");
        if (chave) {
            this.bchave = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ObjectUtilsStaticService"].b64ToObj(chave);
        }
        this.combo.get('Equipamento', 'RegEquipto', 'DescrEquipto', true, 'S', 'TipoEquipto, Fantasia').subscribe(function (data) {
            _this.equipamentosT = data;
        });
    };
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.getEquipamentos = function (tipoEquipto) {
        if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ArrayUtilsStaticService"].any(this.equipamentosT)) {
            this.equipamentos = [];
            return;
        }
        ;
        this.equipamentos = this.equipamentosT.filter(function (c) { return c.tipoEquipto === tipoEquipto; });
    };
    Object.defineProperty(OperacaoDoNavioItemEquipamentoTanqueComponent.prototype, "hasEquipamentos", {
        get: function () {
            return !!this.selectedItem && app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ArrayUtilsStaticService"].any(this.selectedItem.equipamentos);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.ok = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var idx, validation;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formErrorIdEquip").emit(form);
                        if (form.invalid) {
                            return [2 /*return*/];
                        }
                        idx = this.selectedItem.equipamentos.findIndex(function (c) { return c.tipoEquipto === _this.equipamentoAux.tipoEquipto && +c.regEquipto === +_this.equipamentoAux.regEquipto && +c.sequencia !== +_this.equipamentoAux.sequencia; });
                        if (!this.equipamentoAux.created) return [3 /*break*/, 2];
                        if (idx >= 0) {
                            this.messageService.warning("titles.operacaoDoNavio", "messages.equipamentoJaCadastrado");
                            return [2 /*return*/];
                        }
                        this.equipamentoAux.sequencia = this.selectedItem.equipamentos.length + 1;
                        this.equipamentoAux.descrEquipto = (this.equipamentosT.find(function (c) { return +c.chave === +_this.equipamentoAux.regEquipto; })).valor;
                        this.equipamentoAux.subItem = 0;
                        this.selectedItem.equipamentos.push(this.equipamentoAux);
                        return [4 /*yield*/, this.service.equipamentoGrava(this.bchave.regTmp, this.bchave.item, this.equipamentoAux.subItem, this.equipamentoAux.regEquipto).toPromise()];
                    case 1:
                        validation = _a.sent();
                        if (!validation.isValid) {
                            validation.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                            return [2 /*return*/];
                        }
                        return [3 /*break*/, 3];
                    case 2:
                        this.selectedItem.equipamentos[idx] = this.equipamentoAux;
                        _a.label = 3;
                    case 3:
                        this.messageService.saveSuccess("titles.operacaoDoNavio");
                        this.back();
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.back = function () {
        this.showTable = true;
    };
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.new = function () {
        this.equipamentoAux = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_10__["ItemTanqueEquipamento"]();
        this.equipamentoAux.created = true;
        this.isDetail = false;
        this.showTable = false;
    };
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.edit = function () {
        if (!this.equipamento)
            return;
        this.equipamentoAux = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ObjectUtilsStaticService"].clone(this.equipamento);
        this.equipamentoAux.created = false;
        this.getEquipamentos(this.equipamentoAux.tipoEquipto);
        this.isDetail = false;
        this.showTable = false;
    };
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.show = function () {
        this.equipamentoAux = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ObjectUtilsStaticService"].clone(this.equipamento);
        this.equipamentoAux.created = false;
        this.getEquipamentos(this.equipamentoAux.tipoEquipto);
        this.isDetail = true;
        this.showTable = false;
    };
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.delete = function () {
        var _this = this;
        var self = this;
        self.messageService.removeConfirm(function () { return __awaiter(_this, void 0, void 0, function () {
            var idx, val, validation;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        idx = self.selectedItem.equipamentos.findIndex(function (c) { return c.sequencia === self.equipamento.sequencia; });
                        val = self.selectedItem.equipamentos[idx];
                        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].isPositive(val.subItem)) {
                            self.equipamento.sitReg = 'E';
                            self.selectedItem.equipamentos[idx] = self.equipamento;
                        }
                        else {
                            self.selectedItem.equipamentos.splice(idx, 1);
                        }
                        return [4 /*yield*/, this.service.equipamentoExclui(this.bchave.regTmp, this.bchave.item, this.equipamento.subItem, this.equipamento.regEquipto).toPromise()];
                    case 1:
                        validation = _a.sent();
                        if (!validation.isValid) {
                            validation.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                            return [2 /*return*/];
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    OperacaoDoNavioItemEquipamentoTanqueComponent.prototype.getTipoEquipamento = function (id) {
        if (id === void 0) { id = ""; }
        var lista = [
            { id: "L", descricao: "Linha" },
            { id: "T", descricao: "Trena" },
            { id: "E", descricao: "Termometro" },
            { id: "M", descricao: "Mangote" },
            { id: "R", descricao: "Alinhamento" },
            { id: "B", descricao: "Bomba" }
        ];
        if (id !== "") {
            var i = lista.findIndex(function (x) { return x.id === id; });
            return lista[i].descricao;
        }
        else {
            return lista;
        }
    };
    OperacaoDoNavioItemEquipamentoTanqueComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioService"] },
        { type: app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_3__["ComboPadraoService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_10__["ItemTanqueTanque"])
    ], OperacaoDoNavioItemEquipamentoTanqueComponent.prototype, "selectedItem", void 0);
    OperacaoDoNavioItemEquipamentoTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-produtos-item-tanque-equipamento',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-produtos-item-tanque-equipamento.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-equipamento/operacao-do-navio-produtos-item-tanque-equipamento.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioService"],
            app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_3__["ComboPadraoService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"]])
    ], OperacaoDoNavioItemEquipamentoTanqueComponent);
    return OperacaoDoNavioItemEquipamentoTanqueComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-tanque/operacao-do-navio-produtos-item-tanque-tanque.component.ts":
/*!*********************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-tanque/operacao-do-navio-produtos-item-tanque-tanque.component.ts ***!
  \*********************************************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioItemTanqueTanqueComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioItemTanqueTanqueComponent", function() { return OperacaoDoNavioItemTanqueTanqueComponent; });
/* 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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 __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 OperacaoDoNavioItemTanqueTanqueComponent = /** @class */ (function () {
    function OperacaoDoNavioItemTanqueTanqueComponent(activatedRoute, funcoesService, messageService, service, router, loginService) {
        this.activatedRoute = activatedRoute;
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.router = router;
        this.loginService = loginService;
        this.selectedItem = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.showTable = true;
        this.isDetail = true;
        this.now = new Date();
    }
    OperacaoDoNavioItemTanqueTanqueComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var chave;
            return __generator(this, function (_a) {
                chave = this.activatedRoute.snapshot.paramMap.get("chave");
                if (chave) {
                    this.bchave = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ObjectUtilsStaticService"].b64ToObj(chave);
                }
                return [2 /*return*/];
            });
        });
    };
    OperacaoDoNavioItemTanqueTanqueComponent.prototype.selected = function () {
        this.selectedItem.emit(this.tanque);
    };
    Object.defineProperty(OperacaoDoNavioItemTanqueTanqueComponent.prototype, "hasTanques", {
        get: function () {
            return !!this.service.dataItemTanque && app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(this.service.dataItemTanque.tanques);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioItemTanqueTanqueComponent.prototype.ok = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var idx, validation;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formErrorIdTanque").emit(form);
                        if (form.invalid) {
                            return [2 /*return*/];
                        }
                        if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(this.service.dataItemTanque.tanques))
                            this.service.dataItemTanque.tanques = [];
                        idx = this.service.dataItemTanque.tanques.findIndex(function (c) { return c.deposito === _this.tanqueAux.deposito && c.sequencia !== _this.tanqueAux.sequencia; });
                        if (this.tanqueAux.created) {
                            if (idx >= 0) {
                                this.messageService.warning("titles.operacaoDoNavio", "messages.depositoJaExiste");
                                return [2 /*return*/];
                            }
                            this.tanqueAux.sequencia = this.service.dataItemTanque.tanques.length + 1;
                            this.tanqueAux.subItem = 0;
                            this.service.dataItemTanque.tanques.push(this.tanqueAux);
                        }
                        else {
                            this.service.dataItemTanque.tanques[idx] = this.tanqueAux;
                        }
                        return [4 /*yield*/, this.service.tanqueGrava(this.bchave.regTmp, this.bchave.item, this.tanqueAux.subItem, this.tanqueAux.deposito).toPromise()];
                    case 1:
                        validation = _a.sent();
                        if (!validation.isValid) {
                            validation.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                            return [2 /*return*/];
                        }
                        this.messageService.saveSuccess("titles.operacaoDoNavio");
                        this.back();
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioItemTanqueTanqueComponent.prototype.back = function () {
        this.showTable = true;
    };
    OperacaoDoNavioItemTanqueTanqueComponent.prototype.new = function () {
        this.tanqueAux = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_8__["ItemTanqueTanque"]();
        this.tanqueAux.created = true;
        this.isDetail = false;
        this.showTable = false;
    };
    OperacaoDoNavioItemTanqueTanqueComponent.prototype.edit = function () {
        if (!this.tanque)
            return;
        this.tanqueAux = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ObjectUtilsStaticService"].clone(this.tanque);
        this.tanqueAux.created = false;
        this.isDetail = false;
        this.showTable = false;
    };
    OperacaoDoNavioItemTanqueTanqueComponent.prototype.show = function () {
        this.tanqueAux = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ObjectUtilsStaticService"].clone(this.tanque);
        this.tanqueAux.created = false;
        this.isDetail = true;
        this.showTable = false;
    };
    OperacaoDoNavioItemTanqueTanqueComponent.prototype.delete = function () {
        var _this = this;
        this.messageService.removeConfirm(function () { return __awaiter(_this, void 0, void 0, function () {
            var idx, val, validation;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        idx = this.service.dataItemTanque.tanques.findIndex(function (c) { return c.sequencia === _this.tanque.sequencia; });
                        val = this.service.dataItemTanque.tanques[idx];
                        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].isPositive(val.subItem)) {
                            this.tanque.sitReg = 'E';
                            this.service.dataItemTanque.tanques[idx] = this.tanque;
                        }
                        else {
                            this.service.dataItemTanque.tanques.splice(idx, 1);
                        }
                        return [4 /*yield*/, this.service.tanqueExclui(this.bchave.regTmp, this.bchave.item, this.tanque.subItem, this.tanque.deposito).toPromise()];
                    case 1:
                        validation = _a.sent();
                        if (!validation.isValid) {
                            validation.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                            return [2 /*return*/];
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    Object.defineProperty(OperacaoDoNavioItemTanqueTanqueComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                materialId: this.bchave.materialId,
                sitLote: 'A',
                modo: this.service.dataItemTanque.tipoMov === 'D' ? 7 : 8,
                tipoSaldo: this.service.dataItemTanque.tipoMov === 'D' ? 7 : 8,
                dataMovimento: this.now,
                tipoAgrupa: 'D',
                geraArquivo: 'S'
            };
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioItemTanqueTanqueComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioItemTanqueTanqueComponent.prototype, "selectedItem", void 0);
    OperacaoDoNavioItemTanqueTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-produtos-item-tanque-tanque',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-produtos-item-tanque-tanque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-tanque/operacao-do-navio-produtos-item-tanque-tanque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"]])
    ], OperacaoDoNavioItemTanqueTanqueComponent);
    return OperacaoDoNavioItemTanqueTanqueComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component.ts":
/*!****************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component.ts ***!
  \****************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioItemTanqueComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioItemTanqueComponent", function() { return OperacaoDoNavioItemTanqueComponent; });
/* 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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.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_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.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_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.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 _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-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 OperacaoDoNavioItemTanqueComponent = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioItemTanqueComponent, _super);
    function OperacaoDoNavioItemTanqueComponent(activatedRoute, funcoesService, stoLaudoService, messageService, service, router, loginService) {
        var _this = _super.call(this, new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioConstants"](), funcoesService) || this;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.stoLaudoService = stoLaudoService;
        _this.messageService = messageService;
        _this.service = service;
        _this.router = router;
        _this.loginService = loginService;
        _this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioConstants"]();
        _this.now = new Date();
        _this.target = _this.funcoesService.getTargetLocation();
        return _this;
    }
    OperacaoDoNavioItemTanqueComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var chave, _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        chave = this.activatedRoute.snapshot.paramMap.get("chave");
                        if (!chave) return [3 /*break*/, 2];
                        this.bchave = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ObjectUtilsStaticService"].b64ToObj(chave);
                        _a = this.service;
                        return [4 /*yield*/, this.service.itemTanque(this.bchave.regTmp, this.bchave.item).toPromise()];
                    case 1:
                        _a.dataItemTanque = _b.sent();
                        if (!!this.service.dataItemTanque && _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(this.service.dataItemTanque.tanques)) {
                            this.tanque = this.service.dataItemTanque.tanques[0];
                            this.service.dataItemTanque.tanques.forEach(function (t, idx) {
                                t.sequencia = idx + 1;
                                if (!_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ArrayUtilsStaticService"].any(t.equipamentos))
                                    t.equipamentos = [];
                                t.equipamentos.forEach(function (e) {
                                    t.equipamentos.forEach(function (e, idx) {
                                        e.sequencia = idx + 1;
                                    });
                                });
                                return t;
                            });
                        }
                        _b.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioItemTanqueComponent.prototype.back = function () {
        var chave = this.funcoesService.objToB64({
            stoLaudoId: this.bchave.stoLaudoId,
            sisFormularioId: this.constantes.sisFormularioId,
            regTmp: this.bchave.regTmp,
            refreshData: "N"
        });
        this.router.navigate([this.target + "/operacao/operacaoDoNavio/edit/" + chave]);
    };
    OperacaoDoNavioItemTanqueComponent.prototype.selectedItem = function (tanque) {
        this.tanque = tanque;
    };
    OperacaoDoNavioItemTanqueComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_8__["StoLaudoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] }
    ]; };
    OperacaoDoNavioItemTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-produtos-item-tanque',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-produtos-item-tanque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_8__["StoLaudoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"]])
    ], OperacaoDoNavioItemTanqueComponent);
    return OperacaoDoNavioItemTanqueComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.component.ts":
/*!******************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.component.ts ***!
  \******************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioRateioComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioRateioComponent", function() { return OperacaoDoNavioRateioComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
















var OperacaoDoNavioRateioComponent = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioRateioComponent, _super);
    function OperacaoDoNavioRateioComponent(activatedRoute, funcoesService, stoLaudoService, messageService, service, configuracao, router) {
        var _this = _super.call(this, new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioConstants"](), funcoesService) || this;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.stoLaudoService = stoLaudoService;
        _this.messageService = messageService;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.router = router;
        _this.rateio = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_11__["RateioDados"]();
        _this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioConstants"]();
        _this.config = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_11__["ConfigOperacaoDoNavio"]();
        _this.dadosRateio = [];
        _this.resumoPorClienteBL = [];
        _this.resumoPorDeposito = [];
        _this.tanquesRateio = [];
        _this.drenagemJetLine = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_11__["DrenagemJetLine"]();
        _this.isEdit = false;
        _this.disabledBtnConcluirRateio = true;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.config.obrRateioLaudo = _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "ObrRateioLaudo"));
                _this.config.kilosVacuo = _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "KilosVacuo"));
            }
        };
        return _this;
    }
    OperacaoDoNavioRateioComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var chave, validation;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
                        chave = this.activatedRoute.snapshot.paramMap.get("chave");
                        if (!chave) return [3 /*break*/, 2];
                        this.data = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ObjectUtilsStaticService"].b64ToObj(chave);
                        return [4 /*yield*/, this.service.processaRateio(this.data.stoLaudoId, this.data.item, 0, "").toPromise()];
                    case 1:
                        validation = _a.sent();
                        if (!validation.isValid) {
                            validation.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                            this.back();
                            return [2 /*return*/];
                        }
                        this.atualizaDados();
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioRateioComponent.prototype.atualizaDados = function () {
        var _this = this;
        Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["forkJoin"])([
            this.service.getDadosRateio(),
            this.service.getDrenagemJetLine(this.data.stoLaudoId, this.data.item),
            this.service.getResumoPorClienteBL(this.data.stoLaudoId, this.data.item),
            this.service.getResumoPorDeposito(this.data.stoLaudoId, this.data.item),
            this.service.getTanquesRateio(this.data.stoLaudoId, this.data.item),
        ]).subscribe(function (resp) {
            _this.dadosRateio = resp[0];
            _this.drenagemJetLine = resp[1];
            _this.resumoPorClienteBL = resp[2];
            _this.resumoPorDeposito = resp[3];
            _this.tanquesRateio = resp[4];
        });
    };
    OperacaoDoNavioRateioComponent.prototype.ok = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.rateio.kilosRecebe < this.rateio.kilosLib) {
            var message = this.messageService.translate("messages.osKilosNaoPodemSerMenoresQueOAntecipado", { kilos: (this.config.kilosVacuo ? 'Kilos Vácuo' : 'Kilos') });
            this.messageService.warning("titles.operacaoDoNavio", message);
            return;
        }
        else if (this.rateio.litrosRecebe < this.rateio.litrosLib) {
            this.messageService.warning("titles.operacaoDoNavio", "messages.osLitrosNaoPodemSerMenoresQueOAntecipado");
            return;
        }
        this.service.rateioGravaTmp(this.rateio).subscribe(function (result) {
            if (result != null && !result.isValid) {
                result.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                return;
            }
            _this.atualizaDados();
        });
        this.cancelar();
    };
    OperacaoDoNavioRateioComponent.prototype.cancelar = function () {
        this.rateio = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_11__["RateioDados"]();
        this.isEdit = !this.isEdit;
    };
    OperacaoDoNavioRateioComponent.prototype.back = function () {
        var chave = this.funcoesService.objToB64({
            stoLaudoId: this.data.stoLaudoId,
            regTmp: this.data.regTmp,
            sisFormularioId: this.constantes.sisFormularioId,
            refreshData: "S"
        });
        this.router.navigate([this.target + "/operacao/operacaoDoNavio/detail/" + chave]);
    };
    OperacaoDoNavioRateioComponent.prototype.selected = function (rateio) {
        this.isEdit = true;
        this.rateio = rateio;
    };
    OperacaoDoNavioRateioComponent.prototype.refazerRateio = function () {
        var _this = this;
        this.messageService.confirm("messages.desejaReprocesarORateio", "messages.estaRotinaIraEliminarORateioAtual", null, function () { return _this.service.processaRateio(_this.data.stoLaudoId, _this.data.item, 2, _this.drenagemJetLine.depositoDren).subscribe(function (_) { return _this.atualizaDados(); }); });
    };
    OperacaoDoNavioRateioComponent.prototype.gravarRateio = function () {
        var _this = this;
        if (this.temDiferenca()) {
            this.messageService.warning("titles.operacaoDoNavio", "messages.existeDiferencaEmKilosOuLitros");
            return;
        }
        this.service.rateioGrava(this.data.stoLaudoId, this.data.item, this.drenagemJetLine.depositoDren).subscribe(function (resp) {
            if (!resp.isValid) {
                resp.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                return;
            }
            _this.messageService.saveSuccess("titles.operacaoDoNavio");
            _this.disabledBtnConcluirRateio = !_this.config.obrRateioLaudo;
        });
    };
    OperacaoDoNavioRateioComponent.prototype.concluirRateio = function () {
        var _this = this;
        this.service.rateioConfirma(this.data.stoLaudoId, this.data.item).subscribe(function (resp) {
            if (!resp.isValid) {
                resp.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                return;
            }
            _this.messageService.saveSuccess("titles.operacaoDoNavio");
            _this.back();
        });
    };
    OperacaoDoNavioRateioComponent.prototype.temDiferenca = function () {
        var hasDiferenca = false;
        var i = this.resumoPorDeposito.length - 1;
        while (i >= 0 && !hasDiferenca) {
            var e = this.resumoPorDeposito[i];
            if (!hasDiferenca) {
                hasDiferenca = (+e.kilosDif !== 0 && +e.kilosRecebe !== 0) || (+e.litrosDif !== 0 && +e.litrosRecebe !== 0);
                if (hasDiferenca)
                    this.depositoComDiferenca = e.deposito;
            }
            i--;
        }
        return hasDiferenca;
    };
    Object.defineProperty(OperacaoDoNavioRateioComponent.prototype, "hasDados", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.dadosRateio);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioRateioComponent.prototype, "hasResumoPorClienteBL", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.resumoPorClienteBL);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioRateioComponent.prototype, "hasResumoPorDeposito", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.resumoPorDeposito);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioRateioComponent.prototype, "disabledDepositoDren", {
        get: function () {
            return !this.drenagemJetLine || _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["NumberUtilsStaticService"].toNumber(this.drenagemJetLine.kilosDrenagem) === 0;
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioRateioComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_9__["StoLaudoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_12__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioRateioComponent.prototype, "stoLaudoId", void 0);
    OperacaoDoNavioRateioComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-produtos-rateio',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-produtos-rateio.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_9__["StoLaudoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_12__["OperacaoDoNavioService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]])
    ], OperacaoDoNavioRateioComponent);
    return OperacaoDoNavioRateioComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component.scss":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component.scss ***!
  \*******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXRpbWUtbG9nL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcb3BlcmFjYW9cXG9wZXJhY2FvLWRvLW5hdmlvXFxvcGVyYWNhby1kby1uYXZpby1hYmEtdGltZS1sb2dcXG9wZXJhY2FvLWRvLW5hdmlvLWFiYS10aW1lLWxvZy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXRpbWUtbG9nL29wZXJhY2FvLWRvLW5hdmlvLWFiYS10aW1lLWxvZy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQUE7QUNDRjs7QURFQTtFQUNFLFlBQUE7QUNDRjs7QURFQTtFQUNFLHlCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtBQ0NGOztBREVBO0VBQ0Usa0JBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxVQUFBO0FDQ0YiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9vcGVyYWNhby9vcGVyYWNhby1kby1uYXZpby9vcGVyYWNhby1kby1uYXZpby1hYmEtdGltZS1sb2cvb3BlcmFjYW8tZG8tbmF2aW8tYWJhLXRpbWUtbG9nLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm9wYWNpdHkge1xyXG4gIG9wYWNpdHk6IDAuNztcclxufVxyXG5cclxuaS5fd2hpdGUge1xyXG4gIGNvbG9yOiB3aGl0ZTtcclxufVxyXG5cclxudGFibGUgdHIuYWN0aXZlIHtcclxuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjVmNWY1O1xyXG59XHJcblxyXG5kaXYuY29udGFpbmVyLWJ1dHRvbnMge1xyXG4gIG1hcmdpbi1ib3R0b206IDVweDtcclxufVxyXG5cclxuZGl2LmZvcm0tY2hlY2staW5saW5lIHtcclxuICBwb3NpdGlvbjogcmVsYXRpdmU7XHJcbn1cclxuXHJcbmRpdi5fX21hc2sge1xyXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICB3aWR0aDogMTAwJTtcclxuICBoZWlnaHQ6IDEwMCU7XHJcbiAgei1pbmRleDogMztcclxufSIsIi5vcGFjaXR5IHtcbiAgb3BhY2l0eTogMC43O1xufVxuXG5pLl93aGl0ZSB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxudGFibGUgdHIuYWN0aXZlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjVmNTtcbn1cblxuZGl2LmNvbnRhaW5lci1idXR0b25zIHtcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xufVxuXG5kaXYuZm9ybS1jaGVjay1pbmxpbmUge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbmRpdi5fX21hc2sge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDEwMCU7XG4gIHotaW5kZXg6IDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAbaTimeLogComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaTimeLogComponent", function() { return OperacaoDoNavioAbaTimeLogComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
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 OperacaoDoNavioAbaTimeLogComponent = /** @class */ (function () {
    function OperacaoDoNavioAbaTimeLogComponent(service, message, funcoes) {
        this.service = service;
        this.message = message;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.detail = true;
        this.mensagens = [];
    }
    OperacaoDoNavioAbaTimeLogComponent.prototype.ngOnInit = function () {
    };
    OperacaoDoNavioAbaTimeLogComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        this.detail = false;
        this.service.auxTimeLogs = this.funcoes.cloneArray(this.service.data.timeLogs);
        this.response.emit(false);
    };
    OperacaoDoNavioAbaTimeLogComponent.prototype.back = function () {
        this.detail = true;
        this.response.emit(true);
        this.service.auxTimeLogs = this.funcoes.cloneArray(this.service.data.timeLogs);
    };
    OperacaoDoNavioAbaTimeLogComponent.prototype.onSubmit = function (form) {
        this.mensagens = [];
        if (form.invalid) {
            this.mensagens = ["messages.verifiqueOTimeLog"];
            return;
        }
        if (!this.validateTimeLog())
            return;
        this.service.data.timeLogs = this.service.auxTimeLogs;
        this.back();
    };
    OperacaoDoNavioAbaTimeLogComponent.prototype.validateDateITimeLog = function (dataTimeLog) {
        if (dataTimeLog.dtOcorrencia) {
            if (this.funcoes.dateTimeUtils.maiorAHoje(dataTimeLog.dtOcorrencia, ['H', 'M'])) {
                if (this.funcoes.isBoolean(dataTimeLog.ocorrenciaLaudo.flagPeriodo))
                    this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMaiorDataAtual");
                else
                    this.message.warning("titles.operacaoDoNavio", "messages.dataNaoPodeSerMaiorQueDataAtual");
                return false;
            }
        }
        return true;
    };
    OperacaoDoNavioAbaTimeLogComponent.prototype.validateDateFTimeLog = function (dataTimeLog) {
        if (dataTimeLog.dtOcorrencia && dataTimeLog.dtOcorrenciaFim) {
            if (this.funcoes.dateTimeUtils.maiorA(dataTimeLog.dtOcorrencia, dataTimeLog.dtOcorrenciaFim, ['H', 'M'])) {
                this.message.warning("titles.operacaoDoNavio", "messages.periodoDeMenorQueAte");
                return false;
            }
        }
        return true;
    };
    OperacaoDoNavioAbaTimeLogComponent.prototype.validateTimeLog = function () {
        var _this = this;
        var result = true;
        this.service.auxTimeLogs.forEach(function (c) {
            if (result) {
                if (_this.funcoes.isBoolean(c.ocorrenciaLaudo.flagPeriodo)) {
                    if ((c.dtOcorrencia && !c.dtOcorrenciaFim) || (!c.dtOcorrencia && c.dtOcorrenciaFim)) {
                        _this.message.warning("titles.operacaoDoNavio", "messages.periodoTimeLogNaoInformado");
                        result = false;
                    }
                    else if (!_this.validateDateITimeLog(c)) {
                        result = false;
                    }
                    else if (!_this.validateDateFTimeLog(c)) {
                        result = false;
                    }
                }
                else if (!_this.validateDateITimeLog(c)) {
                    result = false;
                }
            }
        });
        return result;
    };
    OperacaoDoNavioAbaTimeLogComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_2__["OperacaoDoNavioService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAbaTimeLogComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAbaTimeLogComponent.prototype, "response", void 0);
    OperacaoDoNavioAbaTimeLogComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-aba-time-log',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-aba-time-log.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-aba-time-log.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_2__["OperacaoDoNavioService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"]])
    ], OperacaoDoNavioAbaTimeLogComponent);
    return OperacaoDoNavioAbaTimeLogComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-clientes/operacao-do-navio-alterar-estrutura-laudo-clientes.component.ts":
/*!***************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-clientes/operacao-do-navio-alterar-estrutura-laudo-clientes.component.ts ***!
  \***************************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAlterarEstruturaLaudoClientesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAlterarEstruturaLaudoClientesComponent", function() { return OperacaoDoNavioAlterarEstruturaLaudoClientesComponent; });
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.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 _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../operacao-do-navio-alterar-estrutura-laudo.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.model.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/cadastro/tipo-operacao/tipo-operacao.service */ "./src/app/pages/cadastro/tipo-operacao/tipo-operacao.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 OperacaoDoNavioAlterarEstruturaLaudoClientesComponent = /** @class */ (function () {
    function OperacaoDoNavioAlterarEstruturaLaudoClientesComponent(funcoesService, service, configuracao, datatablesService, message, loginService, permissoesUtils, serviceTipoOperacao) {
        var _this = this;
        this.funcoesService = funcoesService;
        this.service = service;
        this.configuracao = configuracao;
        this.datatablesService = datatablesService;
        this.message = message;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.serviceTipoOperacao = serviceTipoOperacao;
        this.showButtom = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.onRefresh = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.dataCliItem = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioAlterarEstruturaLaudoClientesItem"]();
        this.dataCliOutrosItens = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioAlterarEstruturaLaudoClientesItem"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_8__["OperacaoDoNavioConstants"]();
        this.mensagens = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.showAdd = false;
        this.raizenTipoNotas = [];
        this.obrigaTipoNota = false;
        this.tipoOperCabotagem = false;
        this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.solPedEmbarque = _this.configuracao.boolean("OPE", "SolPedEmbarque");
                _this.coddestBSLZ = _this.configuracao.number("REL", "CoddestBSLZ");
                _this.obrigaCodIntegracao = _this.configuracao.boolean("OPE", "WebSolOperNavCliente");
                _this.sapRaizen = _this.configuracao.boolean("REL", "SapRaizen");
            }
        };
    }
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.ngOnInit = function () {
        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.limpaLinhaSelecionada = function () {
        this.dataCliItem = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioAlterarEstruturaLaudoClientesItem"]();
        this.dataCliOutrosItens = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioAlterarEstruturaLaudoClientesItem"]();
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("msgCliItem").emit(form);
        if (form.invalid) {
            return;
        }
        this.dataCliItem.stoLaudoId = this.item.regTmp;
        this.dataCliItem.stoLaudoItemId = this.item.stoLaudoItemId;
        this.message.confirm("titles.operacaoDoNavio", "messages.confirmaGravacaoDoItem", null, function () {
            _this.service.altEstruturaLaudoCreateClienteTmp(_this.dataCliItem).subscribe(function (result) {
                if (!result.isValid) {
                    var mensagens = _this.message.validationResult(result);
                    mensagens.forEach(function (m) { return _this.message.danger('titles.operacaoDoNavio', m); });
                }
                else {
                    _this.message.saveSuccess("titles.operacaoDoNavio");
                    _this.back();
                    _this.onRefresh.emit();
                    _this.showButtom.emit(true);
                    _this.limpaLinhaSelecionada();
                }
            });
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.back = function () {
        this.showAdd = false;
        this.showButtom.emit(true);
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.selected = function (val, index) {
        this.dataCliItem = val;
        this._index = index;
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.selectedOut = function (val, index) {
        this.dataCliOutrosItens = val;
        this._index = index;
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.new = function () {
        this.showAdd = true;
        this.showButtom.emit(false);
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit;
        this.dataCliItem = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioAlterarEstruturaLaudoClientesItem"]();
        this.verificarTipoOperacaoCabotagem();
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.geraNovoItemParaEsteCliente = function () {
        var _this = this;
        if (this.solPedEmbarque && _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].toNumber(this.item.tipoMovimentoNavioId) === 2) {
            this.message.warning("titles.operacaoDoNavio", "messages.itemDeExportacaoEPedidoEmbarqueAtivado");
            return;
        }
        if (this.clientesDoItem.length === 1) {
            this.message.warning("titles.operacaoDoNavio", "messages.existeApenasUmClienteParaEsteItem");
            return;
        }
        this.message.confirm("titles.operacaoDoNavio", "messages.confirmaGeraçãoDeNovoItemParaClienteSelecionado", null, function () {
            _this.service.operacaoNavioAgrupaItemGera(_this.dataCliItem).subscribe(function (result) {
                if (!result.isValid) {
                    var mensagens = _this.message.validationResult(result);
                    mensagens.forEach(function (m) { return _this.message.danger('titles.requisicaoDescarga', m); });
                }
                else {
                    _this.onRefresh.emit();
                    _this.showButtom.emit(true);
                    _this.limpaLinhaSelecionada();
                }
            });
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.transfereClienteParaItem = function () {
        var _this = this;
        if (this.solPedEmbarque && _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].toNumber(this.item.tipoMovimentoNavioId) === 2) {
            this.message.warning("titles.operacaoDoNavio", "messages.itemDeExportacaoEPedidoEmbarqueAtivado");
            return;
        }
        this.message.confirm("titles.operacaoDoNavio", "messages.confirmaTransferenciaDoItem", null, function () {
            if (_this.clientesOutrosItens.length === 1) {
                _this.message.confirm("titles.operacaoDoNavio", "messages.estruturaLaudoExisteApenasUmClienteParaEsteItem", null, function () {
                    _this.executetransfereClienteParaItem();
                });
            }
            else {
                _this.executetransfereClienteParaItem();
            }
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.executetransfereClienteParaItem = function () {
        var _this = this;
        var obj = {
            regTmp: this.dataCliOutrosItens.stoLaudoId,
            item: this.dataCliOutrosItens.stoLaudoItemId,
            subItem: this.dataCliOutrosItens.stoLaudoSubItemId,
            itemDest: this.item.stoLaudoItemId,
            todosReg: this.clientesOutrosItens.length === 1 ? "S" : "N"
        };
        this.service.operacaoNavioAgrupaItemTransf(obj).subscribe(function (result) {
            if (!result.isValid) {
                var mensagens = _this.message.validationResult(result);
                mensagens.forEach(function (m) { return _this.message.danger('titles.requisicaoDescarga', m); });
            }
            else {
                _this.onRefresh.emit();
                _this.showButtom.emit(true);
                _this.limpaLinhaSelecionada();
            }
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.excluir = function () {
        var _this = this;
        if (!!this.dataCliItem.destinatarioIdCliente) {
            this.message.confirm("titles.operacaoDoNavio", "messages.confirmaExclusaoDoCliente", null, function () {
                _this.service.tmpStoLaudoClienteExclui(_this.dataCliItem).subscribe(function (result) {
                    if (!result.isValid) {
                        var mensagens = _this.message.validationResult(result);
                        mensagens.forEach(function (m) { return _this.message.danger('titles.requisicaoDescarga', m); });
                    }
                    else {
                        _this.onRefresh.emit();
                        _this.showButtom.emit(true);
                        _this.message.removeSuccess();
                        _this.limpaLinhaSelecionada();
                    }
                });
            });
        }
        else {
            this.message.warning("titles.operacaoDoNavio", "messages.selecioneUmRegistro");
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.onSelectedLote = function (event) {
        if (!event)
            return;
        this.dataCliItem.lote = event.lote;
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.getRaizenTipoNotas = function () {
        var _this = this;
        this.service.getComboCliRaizenTipoNota(this.item.tipoMov).subscribe(function (resp) {
            _this.raizenTipoNotas = resp;
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.obrigarTipoNota = function () {
        this.obrigaTipoNota = this.funcoesService.isPositive(this.coddestBSLZ)
            && this.dataCliItem.destinatarioIdCliente === this.coddestBSLZ;
        if (this.obrigaTipoNota && this.raizenTipoNotas.length === 0) {
            this.getRaizenTipoNotas();
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.trataCliente = function (cliente) {
        if (!cliente)
            return;
        this.dataCliItem.cliente = cliente;
        this.obrigarTipoNota();
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype.verificarTipoOperacaoCabotagem = function () {
        var _this = this;
        this.serviceTipoOperacao.getById(this.item.tipoMovimentoNavioId).subscribe(function (resp) {
            _this.tipoOperCabotagem = (resp !== null && resp.descrTipoOperacao.trim().toLowerCase() === 'cabotagem');
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_13__["TipoOperacaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype, "actionForm", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioAlterarEstruturaLaudo"])
    ], OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype, "item", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Array)
    ], OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype, "clientesDoItem", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Array)
    ], OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype, "clientesOutrosItens", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype, "showButtom", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAlterarEstruturaLaudoClientesComponent.prototype, "onRefresh", void 0);
    OperacaoDoNavioAlterarEstruturaLaudoClientesComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-operacao-do-navio-alterar-estrutura-laudo-clientes',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-alterar-estrutura-laudo-clientes.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-clientes/operacao-do-navio-alterar-estrutura-laudo-clientes.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"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_13__["TipoOperacaoService"]])
    ], OperacaoDoNavioAlterarEstruturaLaudoClientesComponent);
    return OperacaoDoNavioAlterarEstruturaLaudoClientesComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-create-modal/operacao-do-navio-alterar-estrutura-laudo-create-modal.component.ts":
/*!***********************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-create-modal/operacao-do-navio-alterar-estrutura-laudo-create-modal.component.ts ***!
  \***********************************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent", function() { return OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.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 OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent = /** @class */ (function () {
    function OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent() {
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent.prototype.ngOnInit = function () {
        this.tipoSelecionado = "";
        this.initListaTiposOperacao();
    };
    OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent.prototype.initListaTiposOperacao = function () {
        this.tiposOperacao = [
            { value: "itemNoLaudo", label: "labels.inclusaoDeItemNoLaudo" },
            { value: "clienteNoLaudo", label: "labels.inclusaoDeClienteNoLaudo" }
        ];
    };
    OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.outConfirma.emit(this.tipoSelecionado);
        this.tipoSelecionado = "";
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("modalCreate");
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent.prototype, "outConfirma", void 0);
    OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-do-navio-alterar-estrutura-laudo-create-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-alterar-estrutura-laudo-create-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-create-modal/operacao-do-navio-alterar-estrutura-laudo-create-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [])
    ], OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent);
    return OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-form.component.ts":
/*!*******************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-form.component.ts ***!
  \*******************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAlterarEstruturaLaudoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAlterarEstruturaLaudoFormComponent", function() { return OperacaoDoNavioAlterarEstruturaLaudoFormComponent; });
/* 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 _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../operacao-do-navio-alterar-estrutura-laudo.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.model.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var OperacaoDoNavioAlterarEstruturaLaudoFormComponent = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioAlterarEstruturaLaudoFormComponent, _super);
    function OperacaoDoNavioAlterarEstruturaLaudoFormComponent(router, messageService, activatedRoute, service, funcoes, configuracao, loginService, permissoesUtils) {
        var _this = _super.call(this, new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_2__["OperacaoDoNavioConstants"](), funcoes) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_12__["OperacaoDoNavioAlterarEstruturaLaudo"]();
        _this.mensagens = [];
        _this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_2__["OperacaoDoNavioConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/operacao/operacaoDoNavio";
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.solPedEmbarque = _this.configuracao.boolean("OPE", "SolPedEmbarque");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.configuracao.getConfig(this.constantes.configs, this.loadConfig)];
                    case 1:
                        _a.sent();
                        this.chave = this.activatedRoute.snapshot.paramMap.get("chave");
                        if (this.chave) {
                            this.refresh();
                            this.trataBotoesMenu();
                        }
                        else {
                            this.data = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_12__["OperacaoDoNavioAlterarEstruturaLaudo"]();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getDadosAlterarEstruturaLaudo(this.chave).subscribe(function (resp) {
            _this.data = resp;
            _this.trataDados(resp);
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.trataDados = function (dados) {
        this.service.data.stoLaudoId = dados.stoLaudoId;
        this.service.data.destinatarioIdNavio = dados.destinatarioIdNavio;
        this.service.data.navio.fantasia = dados.fantasiaNavio;
        if (this.funcoes.isCreate(this.actionForm)) {
            if (this.solPedEmbarque && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(this.data.tipoMovimentoNavioId) === 2) {
                this.messageService.warning("titles.operacaoDoNavio", "messages.itemDeExportacaoEPedidoEmbarqueAtivado");
                this.back();
            }
            this.data = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_12__["OperacaoDoNavioAlterarEstruturaLaudo"]();
            this.data.regTmp = dados.regTmp;
            this.abaAtual = "I";
        }
        else if (this.funcoes.isEdit(this.actionForm)) {
            jQuery("a.nav-link[href='#clientes']").click();
            this.abaAtual = "C";
        }
        else {
            this.abaAtual = "I";
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.trataBotoesMenu = function () {
        this.buttonDisabled('listaAlterarEstruturaLaudoForm', 'create', !this.funcoes.isDetail(this.actionForm));
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.back = function () {
        this.service.geraDadosAltEstruturaLaudo = false;
        this.router.navigate([this.target + "/operacao/operacaoDoNavio/alterarEstruturaDoLaudo/" + this.service.data.stoLaudoId]);
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.create = function () {
        if (!!this.chave) {
            if (this.abaAtual === "I") {
                this.router.navigate([this.target + "/operacao/operacaoDoNavio/alterarEstruturaDoLaudo/create/" + this.chave]);
            }
            else {
                this.router.navigate([this.target + "/operacao/operacaoDoNavio/alterarEstruturaDoLaudo/edit/" + this.chave]);
            }
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.abaClicada = function (aba) {
        this.abaAtual = aba;
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.messageService.confirm("titles.operacaoDoNavio", "messages.confirmaGravacaoDoItem", null, function () {
            _this.service.altEstruturaLaudoCreateItemTmp(_this.data).subscribe(function (result) {
                if (!result.isValid) {
                    var mensagens = _this.messageService.validationResult(result);
                    mensagens.forEach(function (m) { return _this.messageService.danger('titles.operacaoDoNavio', m); });
                }
                else {
                    _this.messageService.saveSuccess("titles.operacaoDoNavio");
                    _this.back();
                    _this.updateShowButtom(true);
                }
            });
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.updateShowButtom = function (event) {
        this.service.showBtnGravarDesfazerEstruturaLaudo = event;
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.gravar = function () {
        var _this = this;
        var obj = {
            regLaudo: this.service.data.stoLaudoId,
            regTmp: this.data.regTmp
        };
        this.service.gravarAltEstruturaLaudo(obj).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                _this.messageService.warning("titles.operacaoDoNavio", _this.mensagens[0]);
                return;
            }
            else {
                _this.messageService.success("titles.operacaoDoNavio", "messages.operacaoRealizadaComSucesso");
                _this.backToIndex();
                _this.service.showBtnGravarDesfazerEstruturaLaudo = false;
            }
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.desfazer = function () {
        var _this = this;
        this.messageService.confirm("titles.operacaoDoNavio", "messages.desejaRealmenteDesfazerOperacao", null, function () {
            _this.actionDesfazer();
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.actionDesfazer = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isPositive(this.data.regTmp)) {
            this.service.alterarEstruturaLaudoCancelarTmp({ regTmp: this.data.regTmp }).subscribe(function (result) {
                if (!result.isValid) {
                    var mensagens = _this.messageService.validationResult(result);
                    mensagens.forEach(function (m) { return _this.messageService.danger('titles.requisicaoDescarga', m); });
                }
                else {
                    _this.backToIndex();
                    _this.service.showBtnGravarDesfazerEstruturaLaudo = false;
                }
            });
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.prototype.backToIndex = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    OperacaoDoNavioAlterarEstruturaLaudoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-alterar-estrutura-laudo-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-alterar-estrutura-laudo-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], OperacaoDoNavioAlterarEstruturaLaudoFormComponent);
    return OperacaoDoNavioAlterarEstruturaLaudoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.component.ts":
/*!***************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.component.ts ***!
  \***************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAlterarEstruturaLaudoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAlterarEstruturaLaudoComponent", function() { return OperacaoDoNavioAlterarEstruturaLaudoComponent; });
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.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 _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-do-navio-alterar-estrutura-laudo.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.model.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var OperacaoDoNavioAlterarEstruturaLaudoComponent = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioAlterarEstruturaLaudoComponent, _super);
    function OperacaoDoNavioAlterarEstruturaLaudoComponent(router, activatedRoute, configuracao, funcoes, datatablesService, message, service, permissoesUtils, loginService) {
        var _this = _super.call(this, new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioConstants"](), funcoes) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.configuracao = configuracao;
        _this.funcoes = funcoes;
        _this.datatablesService = datatablesService;
        _this.message = message;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _operacao_do_navio_alterar_estrutura_laudo_model__WEBPACK_IMPORTED_MODULE_3__["OperacaoDoNavioAlterarEstruturaLaudoItens"]();
        _this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioConstants"]();
        _this.mensagens = [];
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/operacao/operacaoDoNavio";
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.solPedEmbarque = _this.configuracao.boolean("OPE", "SolPedEmbarque");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
                        this.stoLaudoId = this.funcoesService.getValue(this.activatedRoute.snapshot.paramMap.get("id"), "I");
                        if (this.funcoesService.isUndefinedOrNull(this.stoLaudoId)) {
                            this.message.warning("titles.operacaoDoNavio", "messages.nenhumRegistroEncontrado");
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this._refresh()];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.service.geraDadosAltEstruturaLaudo = false;
                        return [4 /*yield*/, this._refresh()];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype._refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var object;
            var _this = this;
            return __generator(this, function (_a) {
                object = {
                    stoLaudoId: this.stoLaudoId,
                    geraDados: this.service.geraDadosAltEstruturaLaudo
                };
                this.service.getAlterarEstruturaLaudoItens(object).subscribe(function (data) {
                    if (!!data && data.length > 0) {
                        _this.data = data[0];
                        _this.stoLaudoIdTmp = data[0].regLaudo;
                    }
                    var columns = [
                        _this.datatablesService.getDataString("item", "item"),
                        _this.datatablesService.getDataString("material", "produto"),
                        _this.datatablesService.getDataString("nomeMaterial", "descricao"),
                        _this.datatablesService.getDataString("campoMarcado", "marca"),
                        _this.datatablesService.getDataString("tipoMov", "tipo"),
                        _this.datatablesService.getDataString("descrMovNavio", "movimentacao"),
                        _this.datatablesService.getDataString("clientes", "clientes")
                    ];
                    _this.datatablesService.toDataTable({ tableId: "dtAlterarEstruturaLaudo", columns: columns, data: data, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["EOrientationOrder"].ASC }, function (aData) {
                        _this.data = aData;
                    });
                });
                return [2 /*return*/];
            });
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.back = function (limparTmp) {
        if (limparTmp === void 0) { limparTmp = true; }
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
        if (limparTmp) {
            this.cancelaTmp();
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.cancelaTmp = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].isPositive(this.stoLaudoIdTmp)) {
            this.service.alterarEstruturaLaudoCancelarTmp({ regTmp: this.stoLaudoIdTmp }).subscribe(function (result) {
                if (!result.isValid) {
                    var mensagens = _this.message.validationResult(result);
                    mensagens.forEach(function (m) { return _this.message.danger('titles.requisicaoDescarga', m); });
                }
                else {
                    _this.back(false);
                    _this.service.geraDadosAltEstruturaLaudo = true;
                    _this.service.showBtnGravarDesfazerEstruturaLaudo = false;
                }
            });
        }
    };
    Object.defineProperty(OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype, "chave", {
        get: function () {
            return this.funcoes.objToB64({
                regTmp: this.data.regLaudo,
                stoLaudoItemId: this.data.item,
                materialId: this.data.material,
                tipoMov: this.data.tipoMov === "Carga" ? "C" : "D"
            });
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.create = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ModalUtilsStaticService"].openModal("modalCreate");
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.detail = function () {
        if (!!this.chave) {
            this.router.navigate([this.target + "/operacao/operacaoDoNavio/alterarEstruturaDoLaudo/detail/" + this.chave]);
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.remove = function () {
        var _this = this;
        if (!!this.stoLaudoId) {
            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.solPedEmbarque && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].toNumber(this.data.codMovNavio) === 2) {
                        this.message.warning("titles.operacaoDoNavio", "messages.itemDeExportacaoEPedidoEmbarqueAtivado");
                        return [2 /*return*/];
                    }
                    this.message.removeConfirm(function () {
                        _this.service.operacaoNavioAgrupaItemExclui(_this.data).subscribe(function (result) {
                            if (!result.isValid) {
                                var mensagens = _this.message.validationResult(result);
                                mensagens.forEach(function (m) { return _this.message.danger('titles.operacaoDoNavio', m); });
                            }
                            else {
                                _this.datatablesService.remove("dtAlterarEstruturaLaudo");
                                _this.refresh();
                                _this.service.showBtnGravarDesfazerEstruturaLaudo = true;
                            }
                        });
                    });
                    return [2 /*return*/];
                });
            }); });
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.gravar = function () {
        var _this = this;
        var obj = {
            regLaudo: this.stoLaudoId,
            regTmp: this.stoLaudoIdTmp
        };
        this.service.gravarAltEstruturaLaudo(obj).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                _this.message.warning("titles.operacaoDoNavio", _this.mensagens[0]);
                return;
            }
            else {
                _this.message.success("titles.operacaoDoNavio", "messages.operacaoRealizadaComSucesso");
                _this.back(false);
                _this.service.showBtnGravarDesfazerEstruturaLaudo = false;
            }
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.desfazer = function () {
        var _this = this;
        this.message.confirm("titles.operacaoDoNavio", "messages.desejaRealmenteDesfazerOperacao", null, function () {
            _this.back();
        });
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.confirmaCreate = function (tipo) {
        switch (tipo) {
            case "itemNoLaudo":
                this.createItemNoLaudo();
                break;
            case "clienteNoLaudo":
                this.createClienteNoLaudo();
                break;
            default:
                break;
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.createItemNoLaudo = function () {
        if (!!this.chave) {
            this.router.navigate([this.target + "/operacao/operacaoDoNavio/alterarEstruturaDoLaudo/create/" + this.chave]);
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.prototype.createClienteNoLaudo = function () {
        if (!!this.chave) {
            this.router.navigate([this.target + "/operacao/operacaoDoNavio/alterarEstruturaDoLaudo/edit/" + this.chave]);
        }
    };
    OperacaoDoNavioAlterarEstruturaLaudoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] }
    ]; };
    OperacaoDoNavioAlterarEstruturaLaudoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-operacao-do-navio-alterar-estrutura-laudo",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-alterar-estrutura-laudo.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_4__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"]])
    ], OperacaoDoNavioAlterarEstruturaLaudoComponent);
    return OperacaoDoNavioAlterarEstruturaLaudoComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.model.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.model.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAlterarEstruturaLaudoItens, OperacaoDoNavioAlterarEstruturaLaudo, OperacaoDoNavioAlterarEstruturaLaudoClientesItem, OperacaoDoNavioAlterarEstruturaLaudoClientesOutrosItens */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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

var OperacaoDoNavioAlterarEstruturaLaudo = /** @class */ (function () {
    function OperacaoDoNavioAlterarEstruturaLaudo() {
        this.tipoMov = "C";
        this.campoMarcado = "N";
    }
    return OperacaoDoNavioAlterarEstruturaLaudo;
}());

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

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



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.scss":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.scss ***!
  \*******************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n\ndiv#main-preview {\n  margin-top: 0%;\n  outline: 1px solid #edf1f7;\n  background-color: #f7f9fc;\n  min-height: 100px;\n  position: relative;\n  padding: 0px 0px 0px 0px;\n  height: 250px;\n  overflow: hidden;\n  display: flex;\n  justify-content: center;\n}\n\ndiv#main-preview:hover {\n  outline: 1px solid #ccc;\n}\n\ndiv#main-preview img.img-preview {\n  max-width: 100%;\n  height: 225px;\n}\n\na#btn-select-image {\n  line-height: 1.44;\n  border: 1px solid #ccc !important;\n  margin-bottom: 10px;\n  color: #8f9bb3;\n  color: #fff;\n  background-color: #4BAE4F;\n  font-size: 0.875rem;\n  font-weight: 700;\n  font-family: \"Open Sans\", sans-serif;\n}\n\na#btn-select-image:hover {\n  background-color: #f7f9fc;\n  background-color: #54a257;\n}\n\ninput[type=file] {\n  display: none;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioAnexarDoctoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAnexarDoctoComponent", function() { return OperacaoDoNavioAnexarDoctoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __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_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 __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 OperacaoDoNavioAnexarDoctoComponent = /** @class */ (function () {
    function OperacaoDoNavioAnexarDoctoComponent(service, message, funcoes) {
        this.service = service;
        this.message = message;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.mensagens = [];
        this._PAGE_RENDERING_IN_PROGRESS = 0;
        this._CANVAS = document.querySelector('#pdf-canvas');
    }
    OperacaoDoNavioAnexarDoctoComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataAnexarDocto = val;
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.edit = function () {
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataAnexarDocto, false, true))
            return;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
        if (this.service.dataAnexarDocto.arquivoPdf) {
            var byteArray = new Uint8Array(atob(this.service.dataAnexarDocto.arquivoPdf).split('').map(function (char) { return char.charCodeAt(0); }));
            var blob = new Blob([byteArray], { type: 'application/pdf' });
            var url = window.URL.createObjectURL(blob);
            this.showPDF(url);
        }
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.show = function () {
        if (!this.service.hasSelected(this.service.dataAnexarDocto, false, true))
            return;
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
        if (this.service.dataAnexarDocto.arquivoPdf) {
            var byteArray = new Uint8Array(atob(this.service.dataAnexarDocto.arquivoPdf).split('').map(function (char) { return char.charCodeAt(0); }));
            var blob = new Blob([byteArray], { type: 'application/pdf' });
            var url = window.URL.createObjectURL(blob);
            this.showPDF(url);
        }
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.new = function () {
        if (this.isDetail)
            return;
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.service.dataAnexarDocto = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaAnexarDocto"]();
        this._index = -1;
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.service.hasSelected(this.service.dataAnexarDocto, false, true))
            return;
        this.response.emit(false);
        this.message.removeConfirm(function () {
            _this.service.data.stoLaudoDoctos.forEach(function (val, idx) {
                if (!!val.stoLaudoId && val.stoLaudoId === _this.service.dataAnexarDocto.stoLaudoId && val.item === _this.service.dataAnexarDocto.item) {
                    _this.service.dataAnexarDocto.sitReg = 'E';
                }
                else if (!val.stoLaudoId && val.sequencia === _this.service.dataAnexarDocto.sequencia) {
                    _this.service.data.stoLaudoDoctos.splice(idx, 1);
                }
            });
            _this.service.dataAnexarDocto = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaAnexarDocto"]();
            _this._index = -1;
        });
        this.response.emit(true);
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.selectImage = function () {
        jQuery('input[type="file"]').trigger('click');
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.changeFile = function (file) {
        return new Promise(function (resolve, reject) {
            var reader = new FileReader();
            reader.readAsDataURL(file);
            reader.onload = function () { return resolve(reader.result); };
            reader.onerror = function (error) { return reject(error); };
        });
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        var idxItem = this.service.data.stoLaudoDoctos.findIndex(function (c) { return c.sequencia === _this.service.dataAnexarDocto.sequencia; });
        if (idxItem >= 0) {
            this.service.data.stoLaudoDoctos[idxItem] = this.service.dataAnexarDocto;
        }
        else {
            this.service.dataAnexarDocto.sequencia = this.service.data.stoLaudoDoctos.length + 1;
            this.service.data.stoLaudoDoctos.push(this.service.dataAnexarDocto);
        }
        this.back();
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.preview = function (event) {
        var _this = this;
        if (event.target.files && event.target.files[0]) {
            var file_1 = event.target.files[0];
            if (file_1.type.match(/pdf\/*/) == null) {
                this.message.warning("titles.cadastroPlaca", "messages.arquivoInvalido");
                return;
            }
            this.changeFile(file_1).then(function (base64) {
                _this.imgURL = base64;
                _this.service.dataAnexarDocto.arquivoOriginal = file_1.name;
                _this.service.dataAnexarDocto.arquivoPdf = base64.replace(/^data:application\/[a-z]+;base64,/, "");
                var byteArray = new Uint8Array(atob(_this.service.dataAnexarDocto.arquivoPdf).split('').map(function (char) { return char.charCodeAt(0); }));
                var blob = new Blob([byteArray], { type: 'application/pdf' });
                var url = window.URL.createObjectURL(blob);
                _this.showPDF(url);
            });
        }
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.showPDF = function (pdf_url) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
                    var _a, error_1;
                    return __generator(this, function (_b) {
                        switch (_b.label) {
                            case 0:
                                jQuery("#pdf-loader").css('display', 'block');
                                this._CANVAS = document.querySelector('#pdf-canvas');
                                _b.label = 1;
                            case 1:
                                _b.trys.push([1, 3, , 4]);
                                _a = this;
                                return [4 /*yield*/, pdfjsLib.getDocument({ url: pdf_url })];
                            case 2:
                                _a._PDF_DOC = _b.sent();
                                return [3 /*break*/, 4];
                            case 3:
                                error_1 = _b.sent();
                                alert(error_1.message);
                                return [3 /*break*/, 4];
                            case 4:
                                this._TOTAL_PAGES = this._PDF_DOC.numPages;
                                jQuery("#pdf-loader").css('display', 'none');
                                jQuery("#pdf-contents").css('display', 'block');
                                this.showPage(1);
                                return [2 /*return*/];
                        }
                    });
                }); }, 2000);
                return [2 /*return*/];
            });
        });
    };
    OperacaoDoNavioAnexarDoctoComponent.prototype.showPage = function (page_no) {
        return __awaiter(this, void 0, void 0, function () {
            var page, error_2, pdf_original_width, scale_required, viewport, render_context, error_3;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this._PAGE_RENDERING_IN_PROGRESS = 1;
                        this._CURRENT_PAGE = page_no;
                        jQuery("#pdf-next").attr('disabled');
                        jQuery("#pdf-prev").attr('disabled');
                        jQuery("#pdf-canvas").css('display', 'none');
                        jQuery("#page-loader").css('display', 'block');
                        _a.label = 1;
                    case 1:
                        _a.trys.push([1, 3, , 4]);
                        return [4 /*yield*/, this._PDF_DOC.getPage(page_no)];
                    case 2:
                        page = _a.sent();
                        return [3 /*break*/, 4];
                    case 3:
                        error_2 = _a.sent();
                        alert(error_2.message);
                        return [3 /*break*/, 4];
                    case 4:
                        pdf_original_width = page.getViewport(1).width;
                        scale_required = this._CANVAS.width / pdf_original_width;
                        viewport = page.getViewport(scale_required);
                        this._CANVAS.height = viewport.height;
                        render_context = {
                            canvasContext: this._CANVAS.getContext('2d'),
                            viewport: viewport
                        };
                        _a.label = 5;
                    case 5:
                        _a.trys.push([5, 7, , 8]);
                        return [4 /*yield*/, page.render(render_context)];
                    case 6:
                        _a.sent();
                        return [3 /*break*/, 8];
                    case 7:
                        error_3 = _a.sent();
                        alert(error_3.message);
                        return [3 /*break*/, 8];
                    case 8:
                        this._PAGE_RENDERING_IN_PROGRESS = 0;
                        jQuery("#pdf-canvas").css('display', 'block');
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioAnexarDoctoComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioAnexarDoctoComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioAnexarDoctoComponent.prototype, "response", void 0);
    OperacaoDoNavioAnexarDoctoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-anexar-docto',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-anexar-docto.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-anexar-docto.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], OperacaoDoNavioAnexarDoctoComponent);
    return OperacaoDoNavioAnexarDoctoComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-cabecalho/operacao-do-navio-cabecalho.component.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-cabecalho/operacao-do-navio-cabecalho.component.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: OperacaoDoNavioCabecalhoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioCabecalhoComponent", function() { return OperacaoDoNavioCabecalhoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 OperacaoDoNavioCabecalhoComponent = /** @class */ (function () {
    function OperacaoDoNavioCabecalhoComponent(service) {
        this.service = service;
    }
    OperacaoDoNavioCabecalhoComponent.prototype.ngOnInit = function () {
    };
    OperacaoDoNavioCabecalhoComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"] }
    ]; };
    OperacaoDoNavioCabecalhoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-cabecalho',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-cabecalho.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-cabecalho/operacao-do-navio-cabecalho.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"]])
    ], OperacaoDoNavioCabecalhoComponent);
    return OperacaoDoNavioCabecalhoComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("fieldset {\n  border: 1px solid #999;\n  width: 100%;\n}\n\nlegend {\n  display: inline;\n  width: auto;\n  border: 0;\n  padding: 0 10px;\n  font-weight: 600;\n  font-size: 13px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tY29uY2x1c2FvL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcb3BlcmFjYW9cXG9wZXJhY2FvLWRvLW5hdmlvXFxvcGVyYWNhby1kby1uYXZpby1jb25jbHVzYW9cXG9wZXJhY2FvLWRvLW5hdmlvLWNvbmNsdXNhby5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tY29uY2x1c2FvL29wZXJhY2FvLWRvLW5hdmlvLWNvbmNsdXNhby5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHNCQUFBO0VBQ0EsV0FBQTtBQ0NGOztBREVBO0VBQ0UsZUFBQTtFQUNBLFdBQUE7RUFDQSxTQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tY29uY2x1c2FvL29wZXJhY2FvLWRvLW5hdmlvLWNvbmNsdXNhby5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImZpZWxkc2V0IHtcclxuICBib3JkZXI6IDFweCBzb2xpZCAjOTk5O1xyXG4gIHdpZHRoOiAxMDAlOyAgXHJcbn1cclxuXHJcbmxlZ2VuZCB7XHJcbiAgZGlzcGxheTogaW5saW5lO1xyXG4gIHdpZHRoOiBhdXRvO1xyXG4gIGJvcmRlcjogMDtcclxuICBwYWRkaW5nOiAwIDEwcHg7XHJcbiAgZm9udC13ZWlnaHQ6IDYwMDtcclxuICBmb250LXNpemU6IDEzcHg7XHJcbn0iLCJmaWVsZHNldCB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICM5OTk7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG5sZWdlbmQge1xuICBkaXNwbGF5OiBpbmxpbmU7XG4gIHdpZHRoOiBhdXRvO1xuICBib3JkZXI6IDA7XG4gIHBhZGRpbmc6IDAgMTBweDtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgZm9udC1zaXplOiAxM3B4O1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-conclusao/operacao-do-navio-conclusao.component.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-conclusao/operacao-do-navio-conclusao.component.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: OperacaoDoNavioConclusaoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioConclusaoComponent", function() { return OperacaoDoNavioConclusaoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __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_4__ = __webpack_require__(/*! ../../sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.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 OperacaoDoNavioConclusaoComponent = /** @class */ (function () {
    function OperacaoDoNavioConclusaoComponent(funcoesService, stoLaudoService, messageService) {
        this.funcoesService = funcoesService;
        this.stoLaudoService = stoLaudoService;
        this.messageService = messageService;
        this.consideraKilosAr = "N";
        this.kilosVacuo = false;
        this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    OperacaoDoNavioConclusaoComponent.prototype.ngOnInit = function () {
        this.dataConclusao = new Date();
    };
    OperacaoDoNavioConclusaoComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.execute.emit({
            dataConclusao: this.dataConclusao,
            consideraKilosAr: this.consideraKilosAr
        });
        jQuery("#modal-operacao-do-navio-conclusao").modal("hide");
    };
    OperacaoDoNavioConclusaoComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_4__["StoLaudoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioConclusaoComponent.prototype, "kilosVacuo", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioConclusaoComponent.prototype, "execute", void 0);
    OperacaoDoNavioConclusaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-conclusao',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-conclusao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-conclusao/operacao-do-navio-conclusao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-conclusao.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-conclusao/operacao-do-navio-conclusao.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_4__["StoLaudoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], OperacaoDoNavioConclusaoComponent);
    return OperacaoDoNavioConclusaoComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.component.ts":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.component.ts ***!
  \*********************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioConsultaAntecipacaoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioConsultaAntecipacaoComponent", function() { return OperacaoDoNavioConsultaAntecipacaoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _operacao_do_navio_consulta_antecipacao_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./operacao-do-navio-consulta-antecipacao.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.model.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var OperacaoDoNavioConsultaAntecipacaoComponent = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioConsultaAntecipacaoComponent, _super);
    function OperacaoDoNavioConsultaAntecipacaoComponent(router, messageService, activatedRoute, service, funcoes, configuracao, loginService, permissoesUtils) {
        var _this = _super.call(this, new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioConstants"](), funcoes) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _operacao_do_navio_consulta_antecipacao_model__WEBPACK_IMPORTED_MODULE_11__["ConsultaProdutoAntecipacaoDto"]();
        _this.dataSelected = new _operacao_do_navio_consulta_antecipacao_model__WEBPACK_IMPORTED_MODULE_11__["ConsultaClienteAntecipacaoDto"]();
        _this.mensagens = [];
        _this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.pageRoute = "/operacao/operacaoDoNavio";
        _this.refresh = function () {
            _this.service.getProdutoAntecipacao({ stoLaudoId: _this.stoLaudoId }).subscribe(function (resp) {
                _this.dadosProduto = resp;
                if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["ArrayUtilsStaticService"].any(_this.dadosProduto)) {
                    _this.rowSelect(_this.dadosProduto[0], 0);
                }
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoDoNavioConsultaAntecipacaoComponent.prototype.ngOnInit = function () {
        this.stoLaudoId = this.funcoesService.getValue(this.activatedRoute.snapshot.paramMap.get("id"), "I");
        this.refresh();
    };
    Object.defineProperty(OperacaoDoNavioConsultaAntecipacaoComponent.prototype, "hasDadosProduto", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["ArrayUtilsStaticService"].any(this.dadosProduto);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioConsultaAntecipacaoComponent.prototype, "hasDadosCliente", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["ArrayUtilsStaticService"].any(this.dadosCliente);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioConsultaAntecipacaoComponent.prototype.rowSelect = function (item, index) {
        var _this = this;
        this.currentIndex = index;
        this.data = item;
        this.service.getClienteAntecipacao({ stoLaudoId: this.stoLaudoId, item: this.data.item }).subscribe(function (resp) {
            _this.dadosCliente = resp;
        });
    };
    OperacaoDoNavioConsultaAntecipacaoComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/operacaoDoNavio"]);
    };
    OperacaoDoNavioConsultaAntecipacaoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    OperacaoDoNavioConsultaAntecipacaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-consulta-antecipacao',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-consulta-antecipacao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], OperacaoDoNavioConsultaAntecipacaoComponent);
    return OperacaoDoNavioConsultaAntecipacaoComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.model.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.model.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: ConsultaProdutoAntecipacaoDto, ConsultaClienteAntecipacaoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaProdutoAntecipacaoDto", function() { return ConsultaProdutoAntecipacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaClienteAntecipacaoDto", function() { return ConsultaClienteAntecipacaoDto; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaProdutoAntecipacaoDto = /** @class */ (function () {
    function ConsultaProdutoAntecipacaoDto() {
    }
    return ConsultaProdutoAntecipacaoDto;
}());

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



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise-produtos-cabecalho/operacao-do-navio-dados-analise-produtos-cabecalho.component.ts":
/*!*****************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise-produtos-cabecalho/operacao-do-navio-dados-analise-produtos-cabecalho.component.ts ***!
  \*****************************************************************************************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent", function() { return OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent = /** @class */ (function () {
    function OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent(service) {
        this.service = service;
    }
    OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent.prototype.ngOnInit = function () {
    };
    OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"] }
    ]; };
    OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-dados-analise-produtos-cabecalho',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-dados-analise-produtos-cabecalho.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise-produtos-cabecalho/operacao-do-navio-dados-analise-produtos-cabecalho.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_1__["OperacaoDoNavioService"]])
    ], OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent);
    return OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.scss":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.scss ***!
  \*********************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n\ndiv#main-preview {\n  margin-top: 0%;\n  outline: 1px solid #edf1f7;\n  background-color: #f7f9fc;\n  min-height: 100px;\n  position: relative;\n  padding: 0px 0px 0px 0px;\n  height: 250px;\n  overflow: hidden;\n  display: flex;\n  justify-content: center;\n}\n\ndiv#main-preview:hover {\n  outline: 1px solid #ccc;\n}\n\ndiv#main-preview img.img-preview {\n  max-width: 100%;\n  height: 225px;\n}\n\na#btn-select-image {\n  line-height: 1.44;\n  border: 1px solid #ccc !important;\n  margin-bottom: 10px;\n  color: #8f9bb3;\n  color: #fff;\n  background-color: #4BAE4F;\n  font-size: 0.875rem;\n  font-weight: 700;\n  font-family: \"Open Sans\", sans-serif;\n}\n\na#btn-select-image:hover {\n  background-color: #f7f9fc;\n  background-color: #54a257;\n}\n\ninput[type=file] {\n  display: none;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioDadosAnaliseComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioDadosAnaliseComponent", function() { return OperacaoDoNavioDadosAnaliseComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.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 OperacaoDoNavioDadosAnaliseComponent = /** @class */ (function () {
    function OperacaoDoNavioDadosAnaliseComponent(service, message, funcoes) {
        this.service = service;
        this.message = message;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].index;
        this.mensagens = [];
        this.doCheck = false;
    }
    OperacaoDoNavioDadosAnaliseComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    OperacaoDoNavioDadosAnaliseComponent.prototype.ngDoCheck = function () {
        if (!this.doCheck) {
            if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ArrayUtilsStaticService"].any(this.service.data.stoLaudoDadosAnalise)) {
                this.service.dataDadosAnalise = this.service.data.stoLaudoDadosAnalise[0];
                this._index = 0;
                this.doCheck = true;
            }
        }
    };
    OperacaoDoNavioDadosAnaliseComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataDadosAnalise = val;
    };
    OperacaoDoNavioDadosAnaliseComponent.prototype.edit = function () {
        if (this.isDetail || !this.isItemSelecionado())
            return;
        this.detail = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].edit;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioDadosAnaliseComponent.prototype.show = function () {
        if (!this.isItemSelecionado())
            return;
        this.detail = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].detail;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioDadosAnaliseComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].index;
        this.service.dataDadosAnalise = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaDadosAnalise"]();
        this._index = -1;
    };
    OperacaoDoNavioDadosAnaliseComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        var idxItem = this.service.data.stoLaudoDadosAnalise.findIndex(function (c) { return c.sequencia === _this.service.dataDadosAnalise.sequencia; });
        if (idxItem >= 0) {
            this.service.data.stoLaudoDadosAnalise[idxItem] = this.service.dataDadosAnalise;
        }
        else {
            this.service.dataDadosAnalise.sequencia = this.service.data.stoLaudoDadosAnalise.length + 1;
            this.service.data.stoLaudoDadosAnalise.push(this.service.dataDadosAnalise);
        }
        this.back();
    };
    OperacaoDoNavioDadosAnaliseComponent.prototype.isItemSelecionado = function () {
        if (!this.service.dataDadosAnalise) {
            this.message.warning("titles.operacaoDoNavio", "messages.precisaEscolherUmItem");
            return false;
        }
        return true;
    };
    OperacaoDoNavioDadosAnaliseComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioDadosAnaliseComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioDadosAnaliseComponent.prototype, "response", void 0);
    OperacaoDoNavioDadosAnaliseComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-dados-analise',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-dados-analise.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-dados-analise.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], OperacaoDoNavioDadosAnaliseComponent);
    return OperacaoDoNavioDadosAnaliseComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-error-msg/operacao-do-navio-error-msg.component.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-error-msg/operacao-do-navio-error-msg.component.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: OperacaoDoNavioErrorMsgComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioErrorMsgComponent", function() { return OperacaoDoNavioErrorMsgComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.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 OperacaoDoNavioErrorMsgComponent = /** @class */ (function () {
    function OperacaoDoNavioErrorMsgComponent(funcoesService, messageService, service, loginService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this._refresh = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.objMsg = { msg: [] };
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
    }
    OperacaoDoNavioErrorMsgComponent.prototype.ngOnInit = function () {
    };
    OperacaoDoNavioErrorMsgComponent.prototype.onSubmit = function (form) {
        jQuery("#operacao-do-navio-error-msg-dialog").modal("hide");
    };
    OperacaoDoNavioErrorMsgComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioErrorMsgComponent.prototype, "_refresh", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioErrorMsgComponent.prototype, "objMsg", void 0);
    OperacaoDoNavioErrorMsgComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-do-navio-error-msg",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-error-msg.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-error-msg/operacao-do-navio-error-msg.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"]])
    ], OperacaoDoNavioErrorMsgComponent);
    return OperacaoDoNavioErrorMsgComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioFilterComponent", function() { return OperacaoDoNavioFilterComponent; });
/* 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 _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.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");
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 OperacaoDoNavioFilterComponent = /** @class */ (function () {
    function OperacaoDoNavioFilterComponent(loginService, message, service) {
        this.loginService = loginService;
        this.message = message;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    OperacaoDoNavioFilterComponent.prototype.ngOnInit = function () {
    };
    OperacaoDoNavioFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.filtrar.emit();
        }
        else {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        }
    };
    OperacaoDoNavioFilterComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_3__["OperacaoDoNavioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioFilterComponent.prototype, "filtrar", void 0);
    OperacaoDoNavioFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-filter/operacao-do-navio-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"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_3__["OperacaoDoNavioService"]])
    ], OperacaoDoNavioFilterComponent);
    return OperacaoDoNavioFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-form/operacao-do-navio-form.component.scss":
/*!***************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-form/operacao-do-navio-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"] = (".us-validacoes .alert {\n  margin-bottom: -20px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tZm9ybS9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXG9wZXJhY2FvXFxvcGVyYWNhby1kby1uYXZpb1xcb3BlcmFjYW8tZG8tbmF2aW8tZm9ybVxcb3BlcmFjYW8tZG8tbmF2aW8tZm9ybS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvb3BlcmFjYW8vb3BlcmFjYW8tZG8tbmF2aW8vb3BlcmFjYW8tZG8tbmF2aW8tZm9ybS9vcGVyYWNhby1kby1uYXZpby1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNFO0VBQ0Usb0JBQUE7QUNBSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL29wZXJhY2FvL29wZXJhY2FvLWRvLW5hdmlvL29wZXJhY2FvLWRvLW5hdmlvLWZvcm0vb3BlcmFjYW8tZG8tbmF2aW8tZm9ybS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi51cy12YWxpZGFjb2VzIHtcclxuICAuYWxlcnQge1xyXG4gICAgbWFyZ2luLWJvdHRvbTogLTIwcHg7XHJcbiAgfVxyXG59XHJcbiIsIi51cy12YWxpZGFjb2VzIC5hbGVydCB7XG4gIG1hcmdpbi1ib3R0b206IC0yMHB4O1xufSJdfQ== */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioFormComponent", function() { return OperacaoDoNavioFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __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_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __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_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _cadastro_viagem_navio_viagem_navio_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../cadastro/viagem-navio/viagem-navio.service */ "./src/app/pages/cadastro/viagem-navio/viagem-navio.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_bordo_operacao_do_navio_aba_produtos_bordo_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component.ts");
/* harmony import */ var _operacao_do_navio_anexar_docto_operacao_do_navio_anexar_docto_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _operacao_do_navio_aba_draft_operacao_do_navio_aba_draft_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./../operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.ts");
/* harmony import */ var _operacao_do_navio_aba_hora_operacional_operacao_do_navio_aba_hora_operacional_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./../operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.ts");
/* harmony import */ var _operacao_do_navio_aba_ocorrencia_operacao_do_navio_aba_ocorrencia_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./../operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.ts");
/* harmony import */ var _operacao_do_navio_aba_operador_operacao_do_navio_aba_operador_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./../operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_cliente_dados_operacao_do_navio_aba_produtos_cliente_dados_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./../operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_dados_operacao_do_navio_aba_produtos_dados_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./../operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_hora_operacional_operacao_do_navio_aba_produtos_hora_operacional_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./../operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_ocorrencia_operacao_do_navio_aba_produtos_ocorrencia_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./../operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.ts");
/* harmony import */ var _operacao_do_navio_manifesto_operacao_do_navio_manifesto_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../operacao-do-navio-manifesto/operacao-do-navio-manifesto.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-manifesto/operacao-do-navio-manifesto.component.ts");
/* harmony import */ var _operacao_do_navio_dados_analise_operacao_do_navio_dados_analise_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.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 OperacaoDoNavioFormComponent = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioFormComponent, _super);
    function OperacaoDoNavioFormComponent(router, messageService, activatedRoute, service, serviceDestinatario, funcoes, configuracao, serviceViagemNavio, loginService, permissoesUtils) {
        var _this = _super.call(this, new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_16__["OperacaoDoNavioConstants"](), funcoes) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.serviceDestinatario = serviceDestinatario;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.serviceViagemNavio = serviceViagemNavio;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.mensagens = [];
        _this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_16__["OperacaoDoNavioConstants"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        _this.showButton = true;
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.service.config.obrRateioLaudo = _this.configuracao.lerConfig("OPE", "ObrRateioLaudo");
                _this.service.config.kilosVacuo = _this.configuracao.lerConfig("OPE", "KilosVacuo");
                _this.service.config.antecipacaoNavio = _this.configuracao.boolean("UNI", "AntecipacaoNavio");
                _this.service.config.atualizaDI = _this.configuracao.boolean("OPE", "AtualizaDI");
                _this.service.config.obrigaCamposAde = _this.configuracao.boolean("OPE", "ObrigaCamposAde");
                _this.service.config.obrigaInspetora = _this.configuracao.boolean("OPE", "ObrInspetora");
                _this.service.config.qualidadeOperCarga = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "QualidadeOperCarga"));
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoDoNavioFormComponent.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 id;
            var _this = this;
            return __generator(this, function (_a) {
                this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
                id = this.activatedRoute.snapshot.paramMap.get("id");
                if (id) {
                    this.service._getById(id).subscribe(function (resp) { return __awaiter(_this, void 0, void 0, function () {
                        return __generator(this, function (_a) {
                            switch (_a.label) {
                                case 0: return [4 /*yield*/, this.trataDados(resp)];
                                case 1:
                                    _a.sent();
                                    this.service.data.inspetora = resp.inspetora;
                                    if (!this.service.data.inspetora) {
                                        this.service.data.inspetora = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_10__["Destinatario"]();
                                    }
                                    if (this.funcoes.isEdit(this.actionForm)) {
                                        if (this.service.data.sitReg !== 'A') {
                                            this.messageService.warning("titles.operacaoDoNavio", "messages.situacaoNaoEstaAbertaAlteracaoNaoPermitida");
                                            this.back();
                                            return [2 /*return*/];
                                        }
                                    }
                                    this.managerTab();
                                    return [2 /*return*/];
                            }
                        });
                    }); });
                }
                else {
                    this.managerTab();
                }
                return [2 /*return*/];
            });
        }); }, function () { return _this.back(); });
    };
    OperacaoDoNavioFormComponent.prototype.trataDados = function (resp) {
        return __awaiter(this, void 0, void 0, function () {
            var pedidoEmbarque;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.service.data = resp;
                        this.service.auxTimeLogs = this.funcoes.cloneArray(this.service.data.timeLogs);
                        this.service.auxTimeLogs.sort(function (a, b) {
                            var seqA = (a.ocorrenciaLaudo && a.ocorrenciaLaudo.sequencia) || 0;
                            var seqB = (b.ocorrenciaLaudo && b.ocorrenciaLaudo.sequencia) || 0;
                            return seqA - seqB;
                        });
                        this.service.data.stoLaudoHoraOpers.map(function (el, idx) {
                            el.sequencia = idx + 1;
                        });
                        this.service.data.stolaudoOcorrencias.map(function (el, idx) {
                            el.sequencia = idx + 1;
                        });
                        this.service.data.stoLaudoDrafts.map(function (el, idx) {
                            el.sequencia = idx + 1;
                        });
                        this.service.data.stoLaudoOperadors.map(function (el, idx) {
                            el.sequencia = idx + 1;
                        });
                        this.service.data.timeLogs.map(function (el, idx) {
                            el.sequencia = idx + 1;
                        });
                        this.service.data.stoLaudoDoctos.map(function (el, idx) {
                            el.sequencia = idx + 1;
                        });
                        this.service.data.stoLaudoManifestos.map(function (el, idx) {
                            el.sequencia = idx + 1;
                        });
                        this.service.data.stoLaudoDadosAnalise.map(function (el, idx) {
                            el.sequencia = idx + 1;
                        });
                        this.service.data.stoLaudoItems.map(function (el, idx) {
                            el.sequencia = idx + 1;
                            el.stoLaudoClientes.map(function (eli, idxi) {
                                eli.sequencia = idxi + 1;
                            });
                            el.stoLaudoItemHoraOpers.map(function (eli, idxi) {
                                eli.sequencia = idxi + 1;
                            });
                            el.stoLaudoItemOcorrencias.map(function (eli, idxi) {
                                eli.sequencia = idxi + 1;
                            });
                        });
                        if (!this.service.data.viagemNavioId) {
                            this.service.data.viagemNavioId = "";
                        }
                        if (this.service.data.destinatarioIdNavio) {
                            this.getViagemNavio(this.service.data.destinatarioIdNavio);
                        }
                        if (this.service.data.portIdOpPortuario) {
                            this.serviceDestinatario.getById(this.service.data.portIdOpPortuario).subscribe(function (operador) {
                                _this.operador = operador;
                            });
                        }
                        if (this.service.data.stoLaudoItems && this.service.data.stoLaudoItems.length > 0) {
                            this.service.dataItem = this.service.data.stoLaudoItems[0];
                        }
                        if (this.service.data.stoLaudoDadosAnalise && this.service.data.stoLaudoDadosAnalise.length > 0) {
                            this.service.dataDadosAnalise = this.service.data.stoLaudoDadosAnalise[0];
                        }
                        return [4 /*yield*/, this.obterPedidoEmbarque(this.service.data.stoLaudoId)];
                    case 1:
                        pedidoEmbarque = _a.sent();
                        this.pedidoEmbarque = parseInt(pedidoEmbarque, 10);
                        return [2 /*return*/];
                }
            });
        });
    };
    Object.defineProperty(OperacaoDoNavioFormComponent.prototype, "chave", {
        get: function () {
            return this.funcoes.objToB64({
                stoLaudoId: this.service.data.stoLaudoId,
                sisFormularioId: this.constantes.sisFormularioId,
                regTmp: 0,
                refreshData: "S"
            });
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioFormComponent.prototype.managerTab = function () {
        var _this = this;
        jQuery('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
            _this.childOperacaoDoNavioAbaProdutosDadosComponent.back();
            _this.childOperacaoDoNavioAbaProdutosClienteDadosComponent.back();
            _this.childOperacaoDoNavioAbaProdutosHoraOperacionalComponent.back();
            _this.childOperacaoDoNavioAbaProdutosOcorrenciaComponent.back();
            _this.childOperacaoDoNavioAbaHoraOperacionalComponent.back();
            _this.childOperacaoDoNavioAbaOcorrenciaComponent.back();
            _this.childOperacaoDoNavioAbaOperadorComponent.back();
            _this.childOperacaoDoNavioAbaDraftComponent.back();
            _this.childOperacaoDoNavioAnexarDoctoComponent.back();
            _this.childOperacaoDoNavioManifestoComponent.back();
            _this.childOperacaoDoNavioDadosAnaliseComponent.back();
            _this.currentAba = jQuery(e.target).attr('href');
            if (jQuery(e.target).attr('href') === "#produtos_bordo") {
                jQuery("#button_").css('visibility', 'hidden');
            }
            else {
                jQuery("#button_").css('visibility', 'visible');
            }
        });
    };
    OperacaoDoNavioFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/operacaoDoNavio"]);
    };
    OperacaoDoNavioFormComponent.prototype.edit = function () {
        if (!!(this.chave)) {
            this.router.navigate([this.target + "/operacao/operacaoDoNavio/edit/" + this.chave]);
        }
    };
    OperacaoDoNavioFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        if (!this.validateDtMovimiento())
            return;
        this.service.data.logRotina = "Operação do Navio";
        this.service
            .update(this.service.data)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (result != null && !result.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.service.data.regTmp = result.regTmp;
                _this.service.data.stoLaudoId = result.stoLaudoId;
                _this.messageService.saveSuccess("titles.operacaoDoNavio");
                _this.back();
            }
        });
        return;
    };
    OperacaoDoNavioFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form);
    };
    OperacaoDoNavioFormComponent.prototype.outNavio = function (event) {
        if (!event || (event && !event.destinatarioId)) {
            return;
        }
        this.service.data.navio = event;
        this.getViagemNavio(this.service.data.navio.destinatarioId);
    };
    OperacaoDoNavioFormComponent.prototype.getViagemNavio = function (id) {
        var _this = this;
        if (!id) {
            return;
        }
        this.serviceViagemNavio.getViagemNavioByNavio(id).subscribe(function (resp) {
            _this.regViagemList = resp;
        });
    };
    OperacaoDoNavioFormComponent.prototype.changeRegViagem = function (e) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!e || (e && (e.target.value === "0" || e.target.value === ""))) {
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.getRegViagem(e.target.value)];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioFormComponent.prototype.getRegViagem = function (id) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.serviceViagemNavio.getById(id).subscribe(function (resp) {
                _this.service.data.carimboCod = resp.numViagem;
                resolve(resp);
            });
        });
        return promise;
    };
    OperacaoDoNavioFormComponent.prototype.validateDtMovimiento = function () {
        this.service.data.dtMovimento = new Date(this.service.data.dtMovimento.getFullYear(), this.service.data.dtMovimento.getMonth(), this.service.data.dtMovimento.getDate(), 0, 0, 0, 0);
        if (this.funcoes.dateTimeUtils.maiorA(this.service.data.dtMovimento, new Date())) {
            this.messageService.warning("titles.operacaoDoNavio", "messages.dataAtracacaoMaiorDataAtual");
            this.service.data.dtMovimento = null;
            return false;
        }
        return true;
    };
    OperacaoDoNavioFormComponent.prototype.outOperador = function (event) {
        if (!event || (event && !event.destinatarioId)) {
            return;
        }
        this.operador = event;
    };
    OperacaoDoNavioFormComponent.prototype.updateShowButtom = function (event) {
        this.showButton = event;
    };
    OperacaoDoNavioFormComponent.prototype.obterPedidoEmbarque = function (stoLaudoId) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.service.pedidoEmbarque({ stoLaudoId: stoLaudoId }).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    OperacaoDoNavioFormComponent.prototype.actionDesfazer = function (data) {
        var _this = this;
        this.service.desfazer(data).subscribe(function (resp) {
            _this.messageService.success("titles.operacaoDoNavio", "messages.desfazerCompletado");
            _this.back();
        });
    };
    OperacaoDoNavioFormComponent.prototype.executaPrint = function (event) {
        this.constantes.reportId = "CTV0007";
        this.constantes.reportTitulo = { "titulo": "Operação do Navio", "subTitulo": "" };
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            colaboradorId: this.loginService.getLogin().colaboradorId,
        };
        this.print();
    };
    Object.defineProperty(OperacaoDoNavioFormComponent.prototype, "requiredViagem", {
        get: function () {
            if (this.funcoes.isEdit(this.actionForm)) {
                if (this.funcoes.isNotUndefinedOrNull(this.service.data.carimboCod) && this.service.data.carimboCod !== "") {
                    return false;
                }
                else {
                    return true;
                }
            }
            else {
                return true;
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioFormComponent.prototype, "obrigaManifesto", {
        get: function () {
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(this.service.config.obrigaCamposAde);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(OperacaoDoNavioFormComponent.prototype, "exibeAbaDadosAnalise", {
        get: function () {
            return app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(this.service.config.qualidadeOperCarga);
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioFormComponent.prototype.outputInspetora = function (inspetora) {
        if (!inspetora || (inspetora && !inspetora.destinatarioId)) {
            return;
        }
        this.service.data.inspetora = inspetora;
    };
    OperacaoDoNavioFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_17__["OperacaoDoNavioService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__["DestinatarioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__["ConfiguracaoFacade"] },
        { type: _cadastro_viagem_navio_viagem_navio_service__WEBPACK_IMPORTED_MODULE_12__["ViagemNavioService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_dados_operacao_do_navio_aba_produtos_dados_component__WEBPACK_IMPORTED_MODULE_23__["OperacaoDoNavioAbaProdutosDadosComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_dados_operacao_do_navio_aba_produtos_dados_component__WEBPACK_IMPORTED_MODULE_23__["OperacaoDoNavioAbaProdutosDadosComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaProdutosDadosComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_cliente_dados_operacao_do_navio_aba_produtos_cliente_dados_component__WEBPACK_IMPORTED_MODULE_22__["OperacaoDoNavioAbaProdutosClienteDadosComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_cliente_dados_operacao_do_navio_aba_produtos_cliente_dados_component__WEBPACK_IMPORTED_MODULE_22__["OperacaoDoNavioAbaProdutosClienteDadosComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaProdutosClienteDadosComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_hora_operacional_operacao_do_navio_aba_produtos_hora_operacional_component__WEBPACK_IMPORTED_MODULE_24__["OperacaoDoNavioAbaProdutosHoraOperacionalComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_hora_operacional_operacao_do_navio_aba_produtos_hora_operacional_component__WEBPACK_IMPORTED_MODULE_24__["OperacaoDoNavioAbaProdutosHoraOperacionalComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaProdutosHoraOperacionalComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_ocorrencia_operacao_do_navio_aba_produtos_ocorrencia_component__WEBPACK_IMPORTED_MODULE_25__["OperacaoDoNavioAbaProdutosOcorrenciaComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_ocorrencia_operacao_do_navio_aba_produtos_ocorrencia_component__WEBPACK_IMPORTED_MODULE_25__["OperacaoDoNavioAbaProdutosOcorrenciaComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaProdutosOcorrenciaComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_hora_operacional_operacao_do_navio_aba_hora_operacional_component__WEBPACK_IMPORTED_MODULE_19__["OperacaoDoNavioAbaHoraOperacionalComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_hora_operacional_operacao_do_navio_aba_hora_operacional_component__WEBPACK_IMPORTED_MODULE_19__["OperacaoDoNavioAbaHoraOperacionalComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaHoraOperacionalComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_ocorrencia_operacao_do_navio_aba_ocorrencia_component__WEBPACK_IMPORTED_MODULE_20__["OperacaoDoNavioAbaOcorrenciaComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_ocorrencia_operacao_do_navio_aba_ocorrencia_component__WEBPACK_IMPORTED_MODULE_20__["OperacaoDoNavioAbaOcorrenciaComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaOcorrenciaComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_operador_operacao_do_navio_aba_operador_component__WEBPACK_IMPORTED_MODULE_21__["OperacaoDoNavioAbaOperadorComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_operador_operacao_do_navio_aba_operador_component__WEBPACK_IMPORTED_MODULE_21__["OperacaoDoNavioAbaOperadorComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaOperadorComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_draft_operacao_do_navio_aba_draft_component__WEBPACK_IMPORTED_MODULE_18__["OperacaoDoNavioAbaDraftComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_draft_operacao_do_navio_aba_draft_component__WEBPACK_IMPORTED_MODULE_18__["OperacaoDoNavioAbaDraftComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaDraftComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_anexar_docto_operacao_do_navio_anexar_docto_component__WEBPACK_IMPORTED_MODULE_15__["OperacaoDoNavioAnexarDoctoComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_anexar_docto_operacao_do_navio_anexar_docto_component__WEBPACK_IMPORTED_MODULE_15__["OperacaoDoNavioAnexarDoctoComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAnexarDoctoComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_manifesto_operacao_do_navio_manifesto_component__WEBPACK_IMPORTED_MODULE_26__["OperacaoDoNavioManifestoComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_manifesto_operacao_do_navio_manifesto_component__WEBPACK_IMPORTED_MODULE_26__["OperacaoDoNavioManifestoComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioManifestoComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_bordo_operacao_do_navio_aba_produtos_bordo_component__WEBPACK_IMPORTED_MODULE_14__["OperacaoDoNavioAbaProdutosBordoComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_bordo_operacao_do_navio_aba_produtos_bordo_component__WEBPACK_IMPORTED_MODULE_14__["OperacaoDoNavioAbaProdutosBordoComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioAbaProdutosBordoComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_operacao_do_navio_dados_analise_operacao_do_navio_dados_analise_component__WEBPACK_IMPORTED_MODULE_27__["OperacaoDoNavioDadosAnaliseComponent"], { static: false }),
        __metadata("design:type", _operacao_do_navio_dados_analise_operacao_do_navio_dados_analise_component__WEBPACK_IMPORTED_MODULE_27__["OperacaoDoNavioDadosAnaliseComponent"])
    ], OperacaoDoNavioFormComponent.prototype, "childOperacaoDoNavioDadosAnaliseComponent", void 0);
    OperacaoDoNavioFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-form/operacao-do-navio-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-form.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-form/operacao-do-navio-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_17__["OperacaoDoNavioService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__["DestinatarioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__["ConfiguracaoFacade"],
            _cadastro_viagem_navio_viagem_navio_service__WEBPACK_IMPORTED_MODULE_12__["ViagemNavioService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"]])
    ], OperacaoDoNavioFormComponent);
    return OperacaoDoNavioFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-formularios/operacao-do-navio-formularios.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-formularios/operacao-do-navio-formularios.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: OperacaoDoNavioFormulariosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioFormulariosComponent", function() { return OperacaoDoNavioFormulariosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.service.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __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 OperacaoDoNavioFormulariosComponent = /** @class */ (function () {
    function OperacaoDoNavioFormulariosComponent(funcoesService, loginService, configuracao, stoLaudoService, messageService, service) {
        var _this = this;
        this.funcoesService = funcoesService;
        this.loginService = loginService;
        this.configuracao = configuracao;
        this.stoLaudoService = stoLaudoService;
        this.messageService = messageService;
        this.service = service;
        this.exportOption = "cWebModCListInspNav";
        this.prefixoRelEspecifico = "";
        this.cWebMod = [];
        this.pConfig = [
            {
                sistema: "WEB", parametros: [
                    "CWebModCListNavio",
                    "CWebModCListInspNav",
                    "CWebModTimeLog",
                    "CWebModCListOperNav",
                    "CWebModRelLaudo",
                    "PrefixoRelEspecifico"
                ]
            },
        ];
        this.callPosCarregamento = function () {
            if (!_this.configuracao.isLoadConfig()) {
                return;
            }
            _this.cWebMod['cWebModCListInspNav'] = _this.configuracao.lerConfig("WEB", "cWebModCListInspNav");
            _this.cWebMod['cWebModCListNavio'] = _this.configuracao.lerConfig("WEB", "cWebModCListNavio");
            _this.cWebMod['cWebModCListOperNav'] = _this.configuracao.lerConfig("WEB", "cWebModCListOperNav");
            _this.cWebMod['cWebModTimeLog'] = _this.configuracao.lerConfig("WEB", "cWebModTimeLog");
            _this.cWebMod['cWebModRelLaudo'] = _this.configuracao.lerConfig("WEB", "cWebModRelLaudo");
            _this.prefixoRelEspecifico = _this.configuracao.lerConfig("WEB", "PrefixoRelEspecifico");
        };
    }
    OperacaoDoNavioFormulariosComponent.prototype.ngOnInit = function () {
        this.configuracao.getConfig(this.pConfig, this.callPosCarregamento);
    };
    OperacaoDoNavioFormulariosComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            return this.print(this.cWebMod[this.exportOption], this.exportOption);
        }
    };
    OperacaoDoNavioFormulariosComponent.prototype.print = function (cWebMod, type) {
        if (type === void 0) { type = undefined; }
        if (!!cWebMod) {
            if (type === "cWebModRelLaudo") {
                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ModalUtilsStaticService"].openWindow("relatorios/laudoNavio/" + this.data.stoLaudoId);
            }
            else {
                this.printDefault(cWebMod, { stoLaudoId: this.data.stoLaudoId });
            }
        }
        else if (type === 'controleTanques') {
            this.printControleTanque();
        }
        else {
            this.messageService.error("titles.operacaoNavio", "messages.modRelNaoConfigurado");
        }
    };
    OperacaoDoNavioFormulariosComponent.prototype.printDefault = function (reportId, params) {
        // Valida se a chamada é para um report especifico
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].isNotEmpty(this.prefixoRelEspecifico) && reportId.indexOf(this.prefixoRelEspecifico) == 0) {
            this.funcoesService.reportInvoc.invocaRelatorioEspecificos(reportId, { title: "", subTitle: "" }, params);
        }
        else {
            this.funcoesService.reportInvoc.invocaRelatorio(reportId, { title: "", subTitle: "" }, params);
        }
    };
    OperacaoDoNavioFormulariosComponent.prototype.printControleTanque = function () {
        var _this = this;
        this.service.temMedicao(this.data.stoLaudoId).subscribe(function (resp) {
            if (!resp.isValid) {
                resp.erros.forEach(function (m) { return _this.messageService.info("titles.operacaoNavio", m.message); });
                return;
            }
            _this.printDefault('OPE0009', {
                stoLaudoId: _this.data.stoLaudoId,
                operacao: 'MOVIMENTAÇÃO MARÍTIMA',
                banda: 1
            });
        });
    };
    OperacaoDoNavioFormulariosComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__["ConfiguracaoFacade"] },
        { type: _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_5__["StoLaudoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], OperacaoDoNavioFormulariosComponent.prototype, "stoLaudoId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioDto"])
    ], OperacaoDoNavioFormulariosComponent.prototype, "data", void 0);
    OperacaoDoNavioFormulariosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-formularios',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-formularios.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-formularios/operacao-do-navio-formularios.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_1__["ConfiguracaoFacade"],
            _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_5__["StoLaudoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioService"]])
    ], OperacaoDoNavioFormulariosComponent);
    return OperacaoDoNavioFormulariosComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioIndexComponent", function() { return OperacaoDoNavioIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __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_9__ = __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_10__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _drenagem_drenagem_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../drenagem/drenagem.constants */ "./src/app/pages/operacao/drenagem/drenagem.constants.ts");
/* harmony import */ var _drenagem_drenagem_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../drenagem/drenagem.service */ "./src/app/pages/operacao/drenagem/drenagem.service.ts");
/* harmony import */ var _operacao_navio_medicao_operacao_navio_medicao_constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../operacao-navio-medicao/operacao-navio-medicao.constants */ "./src/app/pages/operacao/operacao-navio-medicao/operacao-navio-medicao.constants.ts");
/* harmony import */ var _operacao_navio_medicao_operacao_navio_medicao_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../operacao-navio-medicao/operacao-navio-medicao.model */ "./src/app/pages/operacao/operacao-navio-medicao/operacao-navio-medicao.model.ts");
/* harmony import */ var _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../sto-laudo/sto-laudo.service */ "./src/app/pages/operacao/sto-laudo/sto-laudo.service.ts");
/* harmony import */ var _veiculo_operado_veiculo_operado_constants__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../veiculo-operado/veiculo-operado.constants */ "./src/app/pages/operacao/veiculo-operado/veiculo-operado.constants.ts");
/* harmony import */ var _veiculo_operado_veiculo_operado_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../veiculo-operado/veiculo-operado.service */ "./src/app/pages/operacao/veiculo-operado/veiculo-operado.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./../../../login/login.service */ "./src/app/pages/login/login.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 OperacaoDoNavioIndexComponent = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioIndexComponent, _super);
    function OperacaoDoNavioIndexComponent(funcoes, router, configuracao, service, datatablesService, messageService, funcoesService, drenagemService, veiculoOperadoService, stoLaudoService, loginService, permissoesUtils) {
        var _this = _super.call(this, new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_18__["OperacaoDoNavioConstants"](), funcoesService) || this;
        _this.funcoes = funcoes;
        _this.router = router;
        _this.configuracao = configuracao;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.drenagemService = drenagemService;
        _this.veiculoOperadoService = veiculoOperadoService;
        _this.stoLaudoService = stoLaudoService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_19__["OperacaoDoNavioDto"]();
        _this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_18__["OperacaoDoNavioConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mensagens = [];
        _this.config = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_19__["ConfigOperacaoDoNavio"]();
        _this.arrayValidations = [];
        _this.objMsg = { msg: [] };
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.config.obrigaOSG = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "ObrigaOSG"));
                _this.config.obrLoteOper = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "ObrLoteOper"));
                _this.config.obrLoteSomenteLib = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "ObrLoteSomenteLib"));
                _this.config.transilagem = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "Transilagem"));
                _this.config.blPesaFluxo = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("BAL", "BlPesaFluxo"));
                _this.config.kilosVacuo = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "KilosVacuo"));
                _this.config.obrigaCamposAde = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "ObrigaCamposAde"));
                _this.config.bloqLaudoLibOper = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(_this.configuracao.lerConfig("OPE", "BloqLaudoLibOper"));
            }
        };
        _this._print = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () { return jQuery("#operacao-do-navio-formularios").modal("show"); });
        };
        _this.drenagem = function () {
            var self = _this;
            var constantes = new _drenagem_drenagem_constants__WEBPACK_IMPORTED_MODULE_11__["DrenagemConstants"]();
            self.permissoesUtils.verificaRotina(constantes.sisFormularioId, 4, function () {
                _this.drenagemService.seleciona({ stoLaudoId: self.data.stoLaudoId }).subscribe(function (resp) {
                    if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_21__["ArrayUtilsStaticService"].any(resp)) {
                        self.funcoesService.openWindow("operacao/drenagem/edit/" + self.data.stoLaudoId);
                    }
                    else {
                        self.messageService.warning("titles.operacaoDoNavio", "messages.naoExistemDados");
                    }
                });
            }, function () { return self.semAutorizacoes(); });
        };
        _this.medicoes = function () {
            var constantes = new _operacao_navio_medicao_operacao_navio_medicao_constants__WEBPACK_IMPORTED_MODULE_13__["OperacaoNavioMedicaoConstants"]();
            _this.permissoesUtils.verificaRotina(constantes.sisFormularioId, 4, function () {
                var filtro = new _operacao_navio_medicao_operacao_navio_medicao_model__WEBPACK_IMPORTED_MODULE_14__["OperacaoNavioMedicaoFilter"]();
                filtro.laudoId = _this.data.stoLaudoId;
                filtro.ordem = "RegLaudo";
                filtro.sitReg = "T";
                filtro.dataI = _this.data.dtMovimento;
                filtro.dataF = _this.data.dtMovimento;
                _this.funcoesService.openWindow("operacao/operacaoNavioMedicao/" + _this.funcoesService.objToB64(filtro));
            }, function () { return _this.semAutorizacoes(); });
        };
        _this.veiculoOperado = function () {
            var self = _this;
            var constantes = new _veiculo_operado_veiculo_operado_constants__WEBPACK_IMPORTED_MODULE_16__["VeiculoOperadoConstants"]();
            self.permissoesUtils.verificaRotina(constantes.sisFormularioId, 4, function () {
                _this.veiculoOperadoService.getVeiculoOperado({ stoLaudoId: self.data.stoLaudoId }).subscribe(function (resp) {
                    if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_21__["ArrayUtilsStaticService"].any(resp)) {
                        self.funcoesService.openWindow("operacao/veiculoOperado/edit/" + self.data.stoLaudoId);
                    }
                    else {
                        self.messageService.warning("titles.operacaoDoNavio", "messages.naoExistemDados");
                    }
                });
            }, function () { return self.semAutorizacoes(); });
        };
        _this.liberarOperacao = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 7, function () { return __awaiter(_this, void 0, void 0, function () {
                var data, validations, translate_1, message;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service._getById(this.chave).toPromise()];
                        case 1:
                            data = _a.sent();
                            this.arrayValidations = [];
                            if (this.temCamposRequiredVazios(data) === true) {
                                this.arrayValidations = this.arrayValidations.filter(function (v) { return v["isValid"] === false; });
                                validations = this.arrayValidations;
                                if (validations && validations.length > 0) {
                                    this.mensagens = this.messageService.validationsForm(validations);
                                    this.mensagens = this.mensagens.map(function (item) {
                                        if (item) {
                                            translate_1 = item.split(".");
                                            if (translate_1.length === 2) {
                                                item = _this.messageService.getTranslates(translate_1[0], translate_1[1]);
                                            }
                                        }
                                        return item;
                                    });
                                    this.objMsg.msg = this.mensagens;
                                    jQuery("#operacao-do-navio-error-msg-dialog").modal("show");
                                    return [2 /*return*/];
                                }
                            }
                            if (!["A", "O", "R"].includes(this.data.sitReg)) {
                                this.messageService.warning("titles.operacaoDoNavio", "messages.situacaoDoLaudoInvalida");
                                return [2 /*return*/];
                            }
                            message = "";
                            if (this.data.sitReg === "A") {
                                message = "messages.confirmaLiberacaoPelaOperacao";
                            }
                            else if (["O", "R"].includes(this.data.sitReg)) {
                                message = "messages.desejaCancelarLiberacaoDaOperacao";
                            }
                            this.messageService.confirm("titles.operacaoDoNavio", message, null, function () {
                                var data = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_19__["OperacaoDoNavioLiberaOperacao"]();
                                data.sitReg = _this.data.sitReg;
                                data.regLaudo = _this.data.stoLaudoId;
                                _this.service.validaLiberacaoPelaOperacao(data).subscribe(function (resp) {
                                    if (!resp.isValid) {
                                        var mensagens = _this.messageService.validationResult(resp);
                                        mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.replace('messages.', '')); });
                                        return;
                                    }
                                    _this.refresh();
                                });
                            }, false, null, this.messageService.getTranslates("labels", "sim"), this.messageService.getTranslates("labels", "nao"));
                            return [2 /*return*/];
                    }
                });
            }); }, function () { return _this.semAutorizacoes(); }, true);
        };
        _this.liberacaoFiscal = function () {
            if (['F'].includes(_this.data.sitReg)) {
                _this.messageService.warning("titles.operacaoDoNavio", "messages.laudoJaLiberadoPeloFiscal");
                return;
            }
            var self = _this;
            self.permissoesUtils.verificaRotina(self.constantes.sisFormularioId, 8, function () { return __awaiter(_this, void 0, void 0, function () {
                var data, validations, translate_2, podeConcluir, rateioLaudoExecutado;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service._getById(this.chave).toPromise()];
                        case 1:
                            data = _a.sent();
                            this.arrayValidations = [];
                            if (this.manifestoIsRequired(data) === true) {
                                this.arrayValidations = this.arrayValidations.filter(function (v) { return v["isValid"] === false; });
                                validations = this.arrayValidations;
                                if (validations && validations.length > 0) {
                                    this.mensagens = this.messageService.validationsForm(validations);
                                    this.mensagens = this.mensagens.map(function (item) {
                                        if (item) {
                                            translate_2 = item.split(".");
                                            if (translate_2.length === 2) {
                                                item = _this.messageService.getTranslates(translate_2[0], translate_2[1]);
                                            }
                                        }
                                        return item;
                                    });
                                    this.objMsg.msg = this.mensagens;
                                    jQuery("#operacao-do-navio-error-msg-dialog").modal("show");
                                    return [2 /*return*/];
                                }
                            }
                            return [4 /*yield*/, self.service.podeConcluirLaudo(data).toPromise()];
                        case 2:
                            podeConcluir = _a.sent();
                            if (!podeConcluir.isValid) {
                                podeConcluir.erros.forEach(function (m) {
                                    if (m.message.includes("chave")) {
                                        var mesLabel = JSON.parse(m.message).campo;
                                        var message = _this.messageService.translate(mesLabel);
                                        _this.messageService.warning("titles.operacaoDoNavio", JSON.parse(m.message).chave, { name: message });
                                    }
                                    else {
                                        podeConcluir.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                                    }
                                });
                                return [2 /*return*/];
                            }
                            else if (!!podeConcluir.message) {
                                this.messageService.warning("titles.operacaoDoNavio", podeConcluir.message);
                                return [2 /*return*/];
                            }
                            if (!self.config.obrRateioLaudo) return [3 /*break*/, 4];
                            return [4 /*yield*/, self.service.rateioLaudoExecutado(self.data.stoLaudoId).toPromise()];
                        case 3:
                            rateioLaudoExecutado = _a.sent();
                            if (!rateioLaudoExecutado.isValid) {
                                rateioLaudoExecutado.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                                return [2 /*return*/];
                            }
                            else if (!app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(rateioLaudoExecutado.message)) {
                                this.messageService.warning("titles.operacaoDoNavio", "messages.rateioDoLaudoNaoRealizado");
                                return [2 /*return*/];
                            }
                            _a.label = 4;
                        case 4:
                            jQuery("#modal-operacao-do-navio-conclusao").modal("show");
                            return [2 /*return*/];
                    }
                });
            }); }, function () { return self.semAutorizacoes(); });
        };
        _this.cancelarBaixaFiscal = function () {
            if (!['F'].includes(_this.data.sitReg)) {
                _this.messageService.warning("titles.operacaoDoNavio", "messages.situacaoDoLaudoInvalida");
                return;
            }
            var self = _this;
            self.permissoesUtils.verificaRotina(self.constantes.sisFormularioId, 10, function () { return __awaiter(_this, void 0, void 0, function () {
                var _this = this;
                return __generator(this, function (_a) {
                    this.messageService.confirm("titles.operacaoDoNavio", "messages.estaRotinaIraCancelarABaixaFiscalConfirmaCancelamento", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.cancelarBaixaFiscal(this.data.stoLaudoId).subscribe(function (resp) {
                                if (!resp.isValid) {
                                    resp.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                                    return;
                                }
                                _this.messageService.saveSuccess("titles.operacaoDoNavio");
                                _this.refresh();
                            });
                            return [2 /*return*/];
                        });
                    }); });
                    return [2 /*return*/];
                });
            }); }, function () { return self.semAutorizacoes(); });
        };
        _this.cancelarLiberacaoRateio = function () {
            if (!['R'].includes(_this.data.sitReg)) {
                _this.messageService.warning("titles.operacaoDoNavio", "messages.situacaoDoLaudoInvalida");
                return;
            }
            _this.messageService.confirm("titles.operacaoDoNavio", "messages.confirmaCancelamentoCancelamentoLiberacaoRateio", null, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.cancelarLiberacaoRateio(this.data.stoLaudoId).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m); });
                                return [2 /*return*/];
                            }
                            this.messageService.saveSuccess("titles.operacaoDoNavio");
                            this.refresh();
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        _this.alterarEstruturaDoLaudo = function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 18, function () { return __awaiter(_this, void 0, void 0, function () {
                    var pedidoEmbarque;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                if (this.data.sitReg !== "A") {
                                    this.messageService.warning("titles.operacaoDoNavio", "messages.laudoNaoEstaComStatusAberto");
                                    return [2 /*return*/];
                                }
                                return [4 /*yield*/, this.service.getPedidoEmbarque({ stoLaudoId: this.data.stoLaudoId }).toPromise()];
                            case 1:
                                pedidoEmbarque = _a.sent();
                                if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["NumberUtilsStaticService"].toNumber(pedidoEmbarque)) {
                                    this.messageService.warning("titles.operacaoDoNavio", "messages.laudoGeradoPeloPedidoDeEmbarque", { 'pedidoEmbarque': pedidoEmbarque });
                                    return [2 /*return*/];
                                }
                                this.service.geraDadosAltEstruturaLaudo = true;
                                this.router.navigate([this.target + "/operacao/operacaoDoNavio/alterarEstruturaDoLaudo/" + this.data.stoLaudoId]);
                                return [2 /*return*/];
                        }
                    });
                }); });
                return [2 /*return*/];
            });
        }); };
        _this.consultaAntecipacao = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 19, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.existeAntecipacao({ stoLaudoId: this.data.stoLaudoId }).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.router.navigate([this.target + "/operacao/operacaoDoNavio/consultaAntecipacao/" + this.data.stoLaudoId]);
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoDoNavioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.configs, this.loadConfig);
        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 _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_19__["OperacaoDoNavioFilter"]();
                        this.funcoes.openModal("app-operacao-do-navio-filter");
                    }
                    else {
                        this.refresh();
                    }
                }
                return [2 /*return*/];
            });
        }); }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: "_print", func: function () { return _this._print; } },
            { action: "medicoes", func: function () { return _this.medicoes; } },
            { action: "drenagem", func: function () { return _this.drenagem; } },
            { action: "veiculoOperado", func: function () { return _this.veiculoOperado; } },
            { action: "liberarOperacao", func: function () { return _this.liberarOperacao; } },
            { action: "liberacaoFiscal", func: function () { return _this.liberacaoFiscal; } },
            { action: "cancelarBaixaFiscal", func: function () { return _this.cancelarBaixaFiscal; } },
            { action: "cancelarLiberacaoRateio", func: function () { return _this.cancelarLiberacaoRateio; } },
            { action: "alterarEstruturaDoLaudo", func: function () { return _this.alterarEstruturaDoLaudo; } },
            { action: "consultaAntecipacao", func: function () { return _this.consultaAntecipacao; } }
        ]);
    };
    OperacaoDoNavioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 16, function () { return _super.prototype.permissoes.call(_this, _this.constantes); });
    };
    OperacaoDoNavioIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () { return _super.prototype.properties.call(_this, _this.data); });
    };
    Object.defineProperty(OperacaoDoNavioIndexComponent.prototype, "chave", {
        get: function () {
            return this.funcoes.objToB64({
                stoLaudoId: this.data.stoLaudoId,
                sisFormularioId: this.constantes.sisFormularioId,
                regTmp: 0,
                refreshData: "S"
            });
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!!this.data.stoLaudoId) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
                if (_this.data.sitReg !== "A") {
                    _this.messageService.warning("titles.operacaoDoNavio", "messages.situacaoNaoEstaAbertaAlteracaoNaoPermitida");
                    return;
                }
                _this.router.navigate([_this.target + "/operacao/operacaoDoNavio/edit/" + _this.chave]);
            }, function () { }, true);
        }
    };
    OperacaoDoNavioIndexComponent.prototype.detail = function () {
        if (!!this.chave) {
            this.router.navigate([this.target + "/operacao/operacaoDoNavio/detail/" + this.chave]);
        }
    };
    OperacaoDoNavioIndexComponent.prototype.filtrar = function () {
        jQuery("#app-operacao-do-navio-filter").modal("show");
    };
    OperacaoDoNavioIndexComponent.prototype.executaFiltro = function () {
        jQuery("#app-operacao-do-navio-filter").modal("hide");
        this.refresh();
    };
    OperacaoDoNavioIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.getByFilter(this.service.filter).subscribe(function (data) {
                            var columns = [
                                _this.datatablesService.getDataString("stoLaudoId", "numero"),
                                _this.datatablesService.getDataString("numLaudo", "noControle"),
                                _this.datatablesService.getDataString("destinatarioIdNavio", "codigo"),
                                _this.datatablesService.getDataString("navio", "navio"),
                                _this.datatablesService.getDataDateTime("dtMovimento", "data", "DD/MM/YYYY"),
                                _this.datatablesService.getDataString("situacao", "situacao"),
                                _this.datatablesService.getDataString("descrPier", "pier"),
                            ];
                            _this.datatablesService.toDataTable({ tableId: "dtOperacaoDoNavio", columns: columns, data: data, columnOrder: 0, orientationOrder: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["EOrientationOrder"].DESC }, function (aData) {
                                _this.data = aData;
                                _this.trataBotoesMenu();
                            });
                        })];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioIndexComponent.prototype.trataBotoesMenu = function () {
        this.buttonVisible('listaIndex', 'alterarEstruturaDoLaudo', this.visibleBtnAlterarEstruturaDoLaudo);
    };
    Object.defineProperty(OperacaoDoNavioIndexComponent.prototype, "visibleBtnAlterarEstruturaDoLaudo", {
        get: function () {
            if (this.data.sitReg === "F")
                return false;
            if (this.data.sitReg === "O" && this.config.bloqLaudoLibOper)
                return false;
            return true;
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!this.data.stoLaudoId) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
                var ret, data;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (this.data.sitReg !== "A") {
                                this.messageService.warning("titles.operacaoDoNavio", "messages.situacaoNaoEstaAbertaExclusaoNaoPermitida");
                                return [2 /*return*/];
                            }
                            return [4 /*yield*/, this.service.verificaAntecipacao(this.data).toPromise()];
                        case 1:
                            ret = _a.sent();
                            if (this.funcoesService.isNotUndefinedOrNull(ret.validationResult)) {
                                if (ret && !ret.validationResult.isValid) {
                                    this.mensagens = this.messageService.validationResult(ret.validationResult);
                                    this.messageService.warning("titles.checkList", this.mensagens[0]);
                                    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.operacaoDoNavio", _this.mensagens[0]);
                                    }
                                    else {
                                        _this.datatablesService.remove("dtOperacaoDoNavio");
                                    }
                                });
                            });
                            return [2 /*return*/];
                    }
                });
            }); });
        }
    };
    OperacaoDoNavioIndexComponent.prototype.temCamposRequiredVazios = function (data) {
        var valuesAbaDados = ["viagemNavioId", "numLaudo", "pierId", "portoIdOrigem"];
        var valuesAbaProdutosClientes = ["regOsg"];
        var valuesAbaProdutosHoraOperacional = ["ocorrenciaLaudoId", "dtOcorrencia"];
        var valuesAbaProdutosOcorrencias = ["dtOcorrencia", "dtOcorrenciaFim", "observacao"];
        var valuesAbaHoraOperacional = ["codOcorLaudo", "dtOcorrencia"];
        var valuesAbaOcorrencia = ["dtOcorrencia", "dtOcorrenciaFim"];
        var valuesAbaOperador = ["codOperador", "dtInicio", "dtFim"];
        var valuesAbaTimeLog = ["codOperador", "dtInicio", "dtFim"];
        var valuesAbaDrafts = ["tipoDraftId", "dtInicio", "dtFim"];
        var valuesAbaDocto = ["numDocto", "descrDocto"];
        // aba dados
        for (var _i = 0, valuesAbaDados_1 = valuesAbaDados; _i < valuesAbaDados_1.length; _i++) {
            var val = valuesAbaDados_1[_i];
            if ((!data[val] || data[val] === "") && (val === "viagemNavioId")) {
                this.arrayValidations.push({ "isValid": false, "message": "messages.viagemNaoInformado" });
                return true;
            }
            if ((!data[val] || data[val] === "") && (val === "nrControle")) {
                this.arrayValidations.push({ "isValid": false, "message": "messages.nrControleNaoInformado" });
                return true;
            }
            if ((!data[val] || data[val] === "") && (val === "pierId")) {
                this.arrayValidations.push({ "isValid": false, "message": "messages.pierNaoInformado" });
                return true;
            }
            if ((!data[val] || data[val] === "") && (val === "portoIdOrigem")) {
                this.arrayValidations.push({ "isValid": false, "message": "messages.portoOrigemNaoInformado" });
                return true;
            }
        }
        // aba produtos - dados
        for (var _a = 0, _b = data.stoLaudoItems; _a < _b.length; _a++) {
            var item = _b[_a];
            for (var _c = 0, valuesAbaProdutosClientes_1 = valuesAbaProdutosClientes; _c < valuesAbaProdutosClientes_1.length; _c++) {
                var val = valuesAbaProdutosClientes_1[_c];
                for (var _d = 0, _e = item.stoLaudoClientes; _d < _e.length; _d++) {
                    var client = _e[_d];
                    if (this.config.obrigaOSG && val === "regOsg" && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["NumberUtilsStaticService"].isNotPositive(client[val])) {
                        this.arrayValidations.push({ "isValid": false, "message": "messages.ordemDeServicoNaoInformado" });
                        return true;
                    }
                }
            }
        }
        // aba produtos - hora operacional
        for (var _f = 0, _g = data.stoLaudoItems; _f < _g.length; _f++) {
            var item = _g[_f];
            for (var _h = 0, valuesAbaProdutosHoraOperacional_1 = valuesAbaProdutosHoraOperacional; _h < valuesAbaProdutosHoraOperacional_1.length; _h++) {
                var val = valuesAbaProdutosHoraOperacional_1[_h];
                for (var _j = 0, _k = item.stoLaudoItemHoraOpers; _j < _k.length; _j++) {
                    var itemOp = _k[_j];
                    if (!itemOp[val] || itemOp[val] === "" && val === "ocorrenciaLaudoId") {
                        this.arrayValidations.push({ "isValid": false, "message": "messages.ocorrenciaNaoInformadoAbaProdHoraOperacional" });
                        return true;
                    }
                    if (!itemOp[val] || itemOp[val] === "" && val === "dtOcorrencia") {
                        this.arrayValidations.push({ "isValid": false, "message": "messages.periodoDeOuDataOcorrenciaNaoInformado" });
                        return true;
                    }
                }
            }
        }
        // aba produtos - ocorrencias
        for (var _l = 0, _m = data.stoLaudoItems; _l < _m.length; _l++) {
            var item = _m[_l];
            for (var _o = 0, valuesAbaProdutosOcorrencias_1 = valuesAbaProdutosOcorrencias; _o < valuesAbaProdutosOcorrencias_1.length; _o++) {
                var val = valuesAbaProdutosOcorrencias_1[_o];
                for (var _p = 0, _q = item.stoLaudoItemOcorrencias; _p < _q.length; _p++) {
                    var itemOcorrencia = _q[_p];
                    if (!itemOcorrencia[val] || itemOcorrencia[val] === "" && val === "dtOcorrencia") {
                        this.arrayValidations.push({ "isValid": false, "message": "messages.periodoDeOcorrenciaNaoInformado" });
                        return true;
                    }
                    if (!itemOcorrencia[val] || itemOcorrencia[val] === "" && val === "dtOcorrenciaFim") {
                        this.arrayValidations.push({ "isValid": false, "message": "messages.ateOcorrenciaNaoInformado" });
                        return true;
                    }
                    if (!itemOcorrencia[val] || itemOcorrencia[val] === "" && val === "observacao") {
                        this.arrayValidations.push({ "isValid": false, "message": "messages.observacaoNaoInformado" });
                        return true;
                    }
                }
            }
        }
        // aba hora operacional
        for (var _r = 0, valuesAbaHoraOperacional_1 = valuesAbaHoraOperacional; _r < valuesAbaHoraOperacional_1.length; _r++) {
            var val = valuesAbaHoraOperacional_1[_r];
            for (var _s = 0, _t = data.stoLaudoHoraOpers; _s < _t.length; _s++) {
                var horaOp = _t[_s];
                if (!horaOp[val] || horaOp[val] === "" && val === "codOcorLaudo") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.ocorrenciaNaoInformado" });
                    return true;
                }
                if (!horaOp[val] || horaOp[val] === "" && val === "dtOcorrencia") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.dataOcorrenciaNaoInformadoAbaHoraOperacional" });
                    return true;
                }
            }
        }
        // aba ocorrencia
        for (var _u = 0, valuesAbaOcorrencia_1 = valuesAbaOcorrencia; _u < valuesAbaOcorrencia_1.length; _u++) {
            var val = valuesAbaOcorrencia_1[_u];
            for (var _v = 0, _w = data.stolaudoOcorrencias; _v < _w.length; _v++) {
                var ocorrencia = _w[_v];
                if (!ocorrencia[val] || ocorrencia[val] === "" && val === "dtOcorrencia") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.dataOcorrenciaNaoInformadoAbaOcorrencia" });
                    return true;
                }
                if (!ocorrencia[val] || ocorrencia[val] === "" && val === "dtOcorrenciaFim") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.ateOcorrenciaNaoInformadoAbaOcorrencia" });
                    return true;
                }
            }
        }
        // aba operador
        for (var _x = 0, valuesAbaOperador_1 = valuesAbaOperador; _x < valuesAbaOperador_1.length; _x++) {
            var val = valuesAbaOperador_1[_x];
            for (var _y = 0, _z = data.stoLaudoOperadors; _y < _z.length; _y++) {
                var op = _z[_y];
                if (!op[val] || op[val] === "" && val === "codOperador") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.operadorNaoInformado" });
                    return true;
                }
                if (!op[val] || op[val] === "" && val === "dtInicio") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.periodoDeNaoInformadoAbaOperador" });
                    return true;
                }
                if (!op[val] || op[val] === "" && val === "dtFim") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.ateNaoInformadoAbaOperador" });
                    return true;
                }
            }
        }
        // aba drafts
        for (var _0 = 0, valuesAbaDrafts_1 = valuesAbaDrafts; _0 < valuesAbaDrafts_1.length; _0++) {
            var val = valuesAbaDrafts_1[_0];
            for (var _1 = 0, _2 = data.stoLaudoDrafts; _1 < _2.length; _1++) {
                var draft = _2[_1];
                if (!draft[val] || draft[val] === "" && val === "tipoDraftId") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.draftNaoInformado" });
                    return true;
                }
                if (!draft[val] || draft[val] === "" && val === "dtInicio") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.periodoDeNaoInformadoAbaDraft" });
                    return true;
                }
                if (!draft[val] || draft[val] === "" && val === "dtFim") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.ateNaoInformadoAbaDraft" });
                    return true;
                }
            }
        }
        // aba docto
        for (var _3 = 0, valuesAbaDocto_1 = valuesAbaDocto; _3 < valuesAbaDocto_1.length; _3++) {
            var val = valuesAbaDocto_1[_3];
            for (var _4 = 0, _5 = data.stoLaudoDoctos; _4 < _5.length; _4++) {
                var docto = _5[_4];
                if (!docto[val] || docto[val] === "" && val === "numDocto") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.numeroDoctoNaoInformado" });
                    return true;
                }
                if (!docto[val] || docto[val] === "" && val === "descrDocto") {
                    this.arrayValidations.push({ "isValid": false, "message": "messages.descricaoDoctoNaoInformado" });
                    return true;
                }
            }
        }
    };
    OperacaoDoNavioIndexComponent.prototype.semAutorizacoes = function () {
        return this.messageService.warning("titles.operacaoDoNavio", "messages.usuarioNaoTemPermissao");
    };
    OperacaoDoNavioIndexComponent.prototype.concluiLaudo = function (data) {
        return __awaiter(this, void 0, void 0, function () {
            var hasError, dataSaldo;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        hasError = false;
                        if (!data)
                            return [2 /*return*/];
                        if (!this.data.dtMovimento)
                            return [2 /*return*/];
                        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].maiorAHoje(data.dataConclusao)) {
                            this.messageService.warning("titles.operacaoDoNavio", "messages.datConclusaoNaoPodeSerMaiorQueDataAtual");
                            hasError = true;
                        }
                        if (!hasError && app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].menorA(data.dataConclusao, this.data.dtMovimento)) {
                            this.messageService.warning("titles.operacaoDoNavio", "messages.dataInferiorADataDeAtracacao");
                            hasError = true;
                        }
                        if (!!hasError) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.service.getDataSaldo(this.data.stoLaudoId).toPromise()];
                    case 1:
                        dataSaldo = _a.sent();
                        if (dataSaldo instanceof Date) {
                            if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].menorA(data.dataConclusao, dataSaldo)) {
                                this.messageService.warning("titles.operacaoDoNavio", "messages.dataInferiorADataDeSaldoPedidoEmbarque");
                                hasError = true;
                            }
                        }
                        _a.label = 2;
                    case 2:
                        if (hasError) {
                            setTimeout(function (_) { return jQuery("#modal-operacao-do-navio-conclusao").modal("show"); }, 500);
                        }
                        else {
                            this.messageService.confirm("titles.operacaoDoNavio", "messages.confirmaConclusaoDoLaudo", null, function () { return __awaiter(_this, void 0, void 0, function () {
                                var transilagem, pTransilagem, hasTransilagem;
                                var _this = this;
                                return __generator(this, function (_a) {
                                    switch (_a.label) {
                                        case 0: return [4 /*yield*/, this.service.laudoTemTransilagem(this.data.stoLaudoId).toPromise()];
                                        case 1:
                                            transilagem = _a.sent();
                                            pTransilagem = transilagem.isValid ? transilagem.message : "N";
                                            hasTransilagem = app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["BooleanUtilsStaticService"].toBoolean(pTransilagem) &&
                                                this.config.blPesaFluxo && this.config.transilagem;
                                            this.stoLaudoService.atualizaSituacaoNavio({
                                                regLaudo: this.data.stoLaudoId,
                                                codMov: '06',
                                                sitReg: 'F',
                                                dtOperacao: data.dataConclusao,
                                                transilagem: hasTransilagem ? "S" : "N",
                                                consideraKilosAr: data.consideraKilosAr
                                            }).subscribe(function (resp) {
                                                if (!resp.isValid) {
                                                    resp.erros.forEach(function (m) { return _this.messageService.warning("titles.operacaoDoNavio", m.message); });
                                                    return;
                                                }
                                                _this.refresh();
                                            });
                                            return [2 /*return*/];
                                    }
                                });
                            }); });
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    OperacaoDoNavioIndexComponent.prototype.manifestoIsRequired = function (data) {
        var values = ["manifesto", "tipoManifestoId", "portoIdDestino"];
        for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
            var val = values_1[_i];
            if ((data.stoLaudoManifestos.length === 0 || data.stoLaudoManifestos.findIndex(function (m) { return m.manifesto.length === 0; }) > -1)
                && (val === "manifesto") && this.config.obrigaCamposAde) {
                this.arrayValidations.push({ "isValid": false, "message": "messages.manifestoNaoInformado" });
                return true;
            }
            if ((data.stoLaudoManifestos.findIndex(function (m) { return m.tipoManifestoId.length === 0; }) > -1)
                && (val === "tipoManifestoId") && this.config.obrigaCamposAde) {
                this.arrayValidations.push({ "isValid": false, "message": "messages.tipoManifestoNaoInformado" });
                return true;
            }
            if ((!data[val] || data[val] === "") && (val === "portoIdDestino") && this.config.obrigaCamposAde) {
                this.arrayValidations.push({ "isValid": false, "message": "messages.portoDestinoNaoInformado" });
                return true;
            }
        }
    };
    OperacaoDoNavioIndexComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_20__["OperacaoDoNavioService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: _drenagem_drenagem_service__WEBPACK_IMPORTED_MODULE_12__["DrenagemService"] },
        { type: _veiculo_operado_veiculo_operado_service__WEBPACK_IMPORTED_MODULE_17__["VeiculoOperadoService"] },
        { type: _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_15__["StoLaudoService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_22__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    OperacaoDoNavioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-do-navio-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-index/operacao-do-navio-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_20__["OperacaoDoNavioService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            _drenagem_drenagem_service__WEBPACK_IMPORTED_MODULE_12__["DrenagemService"],
            _veiculo_operado_veiculo_operado_service__WEBPACK_IMPORTED_MODULE_17__["VeiculoOperadoService"],
            _sto_laudo_sto_laudo_service__WEBPACK_IMPORTED_MODULE_15__["StoLaudoService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_22__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], OperacaoDoNavioIndexComponent);
    return OperacaoDoNavioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".opacity {\n  opacity: 0.7;\n}\n\ni._white {\n  color: white;\n}\n\ntable tr.active {\n  background-color: #f5f5f5;\n}\n\ndiv.container-buttons {\n  margin-bottom: 5px;\n}\n\ndiv.form-check-inline {\n  position: relative;\n}\n\ndiv.__mask {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  z-index: 3;\n}\n\ndiv#main-preview {\n  margin-top: 0%;\n  outline: 1px solid #edf1f7;\n  background-color: #f7f9fc;\n  min-height: 100px;\n  position: relative;\n  padding: 0px 0px 0px 0px;\n  height: 250px;\n  overflow: hidden;\n  display: flex;\n  justify-content: center;\n}\n\ndiv#main-preview:hover {\n  outline: 1px solid #ccc;\n}\n\ndiv#main-preview img.img-preview {\n  max-width: 100%;\n  height: 225px;\n}\n\na#btn-select-image {\n  line-height: 1.44;\n  border: 1px solid #ccc !important;\n  margin-bottom: 10px;\n  color: #8f9bb3;\n  color: #fff;\n  background-color: #4BAE4F;\n  font-size: 0.875rem;\n  font-weight: 700;\n  font-family: \"Open Sans\", sans-serif;\n}\n\na#btn-select-image:hover {\n  background-color: #f7f9fc;\n  background-color: #54a257;\n}\n\ninput[type=file] {\n  display: none;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-manifesto/operacao-do-navio-manifesto.component.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-manifesto/operacao-do-navio-manifesto.component.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: OperacaoDoNavioManifestoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioManifestoComponent", function() { return OperacaoDoNavioManifestoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operacao-do-navio.constants */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.constants.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
/* harmony import */ var _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-do-navio.service */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __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 OperacaoDoNavioManifestoComponent = /** @class */ (function () {
    function OperacaoDoNavioManifestoComponent(service, message, funcoes) {
        this.service = service;
        this.message = message;
        this.funcoes = funcoes;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _operacao_do_navio_constants__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioConstants"]();
        this.detail = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].index;
        this.mensagens = [];
    }
    OperacaoDoNavioManifestoComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    OperacaoDoNavioManifestoComponent.prototype.selected = function (val, index) {
        this._index = index;
        this.service.dataManifesto = val;
    };
    OperacaoDoNavioManifestoComponent.prototype.edit = function () {
        if (this.isDetail || !this.isItemSelecionado())
            return;
        this.detail = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].edit;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioManifestoComponent.prototype.show = function () {
        if (!this.isItemSelecionado())
            return;
        this.detail = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].detail;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioManifestoComponent.prototype.new = function () {
        if (this.isDetail)
            return;
        this.service.dataManifesto = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaManifesto"]();
        this.detail = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].create;
        this.showTable = false;
        this.response.emit(false);
    };
    OperacaoDoNavioManifestoComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].index;
        this.service.dataManifesto = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaManifesto"]();
        this._index = -1;
    };
    OperacaoDoNavioManifestoComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail || !this.isItemSelecionado())
            return;
        this.response.emit(false);
        this.message.removeConfirm(function () {
            _this.service.data.stoLaudoManifestos.forEach(function (val, idx) {
                if (!!val.stoLaudoId && val.stoLaudoId === _this.service.dataManifesto.stoLaudoId && val.item === _this.service.dataManifesto.item) {
                    _this.service.dataManifesto.sitReg = 'E';
                }
                else if (!val.stoLaudoId && val.sequencia === _this.service.dataManifesto.sequencia) {
                    _this.service.data.stoLaudoManifestos.splice(idx, 1);
                }
            });
            _this.service.dataManifesto = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaManifesto"]();
            _this._index = -1;
        });
        this.response.emit(true);
    };
    OperacaoDoNavioManifestoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        if (!this.validarDuplicidadeManifesto())
            return;
        var idxItem = this.service.data.stoLaudoManifestos.findIndex(function (c) { return c.sequencia === _this.service.dataManifesto.sequencia; });
        if (idxItem >= 0) {
            this.service.data.stoLaudoManifestos[idxItem] = this.service.dataManifesto;
        }
        else {
            this.service.dataManifesto.sequencia = this.service.data.stoLaudoManifestos.length + 1;
            this.service.data.stoLaudoManifestos.push(this.service.dataManifesto);
        }
        this.back();
    };
    OperacaoDoNavioManifestoComponent.prototype.isItemSelecionado = function () {
        if (!this.service.dataManifesto) {
            this.message.warning("titles.operacaoDoNavio", "messages.precisaEscolherUmItem");
            return false;
        }
        return true;
    };
    OperacaoDoNavioManifestoComponent.prototype.validarDuplicidadeManifesto = function () {
        var _this = this;
        var existentes = this.service.data.stoLaudoManifestos
            .filter(function (m) { return m.tipoManifestoId === _this.service.dataManifesto.tipoManifestoId
            && m.manifesto.trim() === _this.service.dataManifesto.manifesto.trim()
            && m.sequencia !== _this.service.dataManifesto.sequencia
            && m.sitReg !== "E"; });
        if (existentes.length > 0 && (this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].create || this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["ActionForm"].edit)) {
            this.message.warning("titles.operacaoDoNavio", "messages.manifestoJaInformado");
            return false;
        }
        return true;
    };
    OperacaoDoNavioManifestoComponent.prototype.trataTipoManifesto = function (tipoManifesto) {
        if (!this.service.dataManifesto.tipoManifestoId)
            return;
        this.service.dataManifesto.descrTipoManifesto = tipoManifesto.valor;
    };
    OperacaoDoNavioManifestoComponent.ctorParameters = function () { return [
        { type: _operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], OperacaoDoNavioManifestoComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoDoNavioManifestoComponent.prototype, "response", void 0);
    OperacaoDoNavioManifestoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-operacao-do-navio-manifesto',
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-do-navio-manifesto.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-manifesto/operacao-do-navio-manifesto.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./operacao-do-navio-manifesto.component.scss */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-manifesto/operacao-do-navio-manifesto.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_operacao_do_navio_service__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], OperacaoDoNavioManifestoComponent);
    return OperacaoDoNavioManifestoComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioConstants", function() { return OperacaoDoNavioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var OperacaoDoNavioConstants = /** @class */ (function () {
    function OperacaoDoNavioConstants() {
        this.sisFormularioId = 250009;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.liberacaoOperacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.liberacaoFiscal" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.gravaAverbacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 10, acao: "labels.cancelarLibFiscal" },
            { sisFormularioId: this.sisFormularioId, libRotina: 11, acao: "labels.liberaRetencao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 12, acao: "labels.liberaSobraAduaneira" },
            { sisFormularioId: this.sisFormularioId, libRotina: 13, acao: "labels.excluiClienteSemBL" },
            { sisFormularioId: this.sisFormularioId, libRotina: 14, acao: "labels.antecipacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 15, acao: "labels.alteraTimeLogFechado" },
            { sisFormularioId: this.sisFormularioId, libRotina: 16, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 17, acao: "labels.antecipacao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 18, acao: "labels.alterarEstruturaDoLaudo" },
            { sisFormularioId: this.sisFormularioId, libRotina: 19, acao: "labels.consultaAntecipacao" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.operacaoDoNavio";
        this.reportId = "CAD0249";
        this.reportTitulo = { "titulo": "Operação do Navio", "subTitulo": "" };
        this.tabela = "StoLaudo";
        this.configs = [];
        this.listaIndex = [
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: '_print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'drenagem', action: 'drenagem', icon: "fa fa-square", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: "medicoes", action: "medicoes", icon: "icon-ruler-alt", exibeButton: true, eximeMenu: true, menuName: "Movimento" },
            { title: 'veiculoOperado', action: 'veiculoOperado', icon: "fa fa-lemon-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: "liberacaoPelaOperacao", action: "liberarOperacao", icon: "fa fa-unlock", exibeButton: true, eximeMenu: true, menuName: "Movimento" },
            { title: "liberacaoPeloFiscal", action: "liberacaoFiscal", icon: "fa fa-check", exibeButton: true, eximeMenu: true, menuName: "Movimento" },
            { title: 'CancelarLiberacaoRateio', action: 'cancelarLiberacaoRateio', exibeButton: false, eximeMenu: true, menuName: 'Movimento' },
            { title: 'CancelarBaixaFiscal', action: 'cancelarBaixaFiscal', exibeButton: false, eximeMenu: true, menuName: 'Movimento' },
            { title: 'alterarEstruturaDoLaudo', action: 'alterarEstruturaDoLaudo', icon: "fa fa-th-list", exibeButton: false, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: "consultaAntecipacao", action: "consultaAntecipacao", icon: "fa fa-handshake-o", exibeButton: true, eximeMenu: true, menuName: "Movimento" },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaRateio = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaAlterarEstruturaLaudo = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: false },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
        this.listaAlterarEstruturaLaudoForm = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: true },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
        this.listaConsultaAntecipacao = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.configs = [
            {
                sistema: "OPE",
                parametros: [
                    "ObrigaOSG",
                    "ObrLoteOper",
                    "ObrLoteSomenteLib",
                    "KilosVacuo",
                    "ObrRateioLaudo",
                    "Transilagem",
                    "WebSolOperNavCliente",
                    "ObrigaCamposAde",
                    "AtualizaDI",
                    "LibAutomaticaAntecip",
                    "LibParNavImp",
                    "LibParNavCab",
                    "QualidadeOperCarga",
                    "BloqLaudoLibOper",
                    "SolPedEmbarque",
                    "ObrInspetora"
                ],
            },
            { sistema: "UNI", parametros: ["AntecipacaoNavio"] },
            { sistema: "BAL", parametros: ["BlPesaFluxo"] },
            { sistema: "REL", parametros: ["CoddestBSLZ", "SapRaizen"] }
        ];
    }
    return OperacaoDoNavioConstants;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts ***!
  \*****************************************************************************/
/*! exports provided: OperacaoDoNavioDto, OperacaoDoNavioFilter, ConfigOperacaoDoNavio, OperacaoDoNavio, OperacaoDoNavioAbaProdutosDados, OperacaoDoNavioAbaProdutosClientesDados, OperacaoDoNavioAbaProdutosHorarioOperacional, OperacaoDoNavioAbaProdutosOcorrencia, OperacaoDoNavioAbaHorarioOperacional, OperacaoDoNavioAbaOcorrencia, OperacaoDoNavioAbaOperador, OperacaoDoNavioAbaTimeLog, OperacaoDoNavioAbaDraft, OperacaoDoNavioAbaAnexarDocto, OperacaoDoNavioAbaManifesto, OperacaoDoNavioAbaDadosAnalise, OperacaoDoNavioAnalises, OperacaoDoNavioLiberaOperacao, RateioDados, DrenagemJetLine, ItemTanque, ItemTanqueTanque, ItemTanqueEquipamento */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioDto", function() { return OperacaoDoNavioDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioFilter", function() { return OperacaoDoNavioFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigOperacaoDoNavio", function() { return ConfigOperacaoDoNavio; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavio", function() { return OperacaoDoNavio; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosDados", function() { return OperacaoDoNavioAbaProdutosDados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosClientesDados", function() { return OperacaoDoNavioAbaProdutosClientesDados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosHorarioOperacional", function() { return OperacaoDoNavioAbaProdutosHorarioOperacional; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaProdutosOcorrencia", function() { return OperacaoDoNavioAbaProdutosOcorrencia; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaHorarioOperacional", function() { return OperacaoDoNavioAbaHorarioOperacional; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaOcorrencia", function() { return OperacaoDoNavioAbaOcorrencia; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaOperador", function() { return OperacaoDoNavioAbaOperador; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaTimeLog", function() { return OperacaoDoNavioAbaTimeLog; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaDraft", function() { return OperacaoDoNavioAbaDraft; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaAnexarDocto", function() { return OperacaoDoNavioAbaAnexarDocto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaManifesto", function() { return OperacaoDoNavioAbaManifesto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAbaDadosAnalise", function() { return OperacaoDoNavioAbaDadosAnalise; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioAnalises", function() { return OperacaoDoNavioAnalises; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioLiberaOperacao", function() { return OperacaoDoNavioLiberaOperacao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RateioDados", function() { return RateioDados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DrenagemJetLine", function() { return DrenagemJetLine; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItemTanque", function() { return ItemTanque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItemTanqueTanque", function() { return ItemTanqueTanque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItemTanqueEquipamento", function() { return ItemTanqueEquipamento; });
/* 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");
/* harmony import */ var _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.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 OperacaoDoNavioDto = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioDto, _super);
    function OperacaoDoNavioDto() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return OperacaoDoNavioDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var OperacaoDoNavioFilter = /** @class */ (function () {
    function OperacaoDoNavioFilter() {
        var date = new Date();
        date.setDate(date.getDate() - 15);
        this.dataF = new Date();
        this.dataI = date;
        this.sitReg = "T";
        this.destinatarioIdCliente = 0;
        this.destinatarioIdNavio = 0;
        this.materialId = "";
        this.cliente = undefined;
        this.navio = undefined;
        this.material = undefined;
    }
    return OperacaoDoNavioFilter;
}());

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

var OperacaoDoNavio = /** @class */ (function (_super) {
    __extends(OperacaoDoNavio, _super);
    function OperacaoDoNavio() {
        var _this = _super.call(this) || this;
        _this.viagemNavioId = "";
        _this.navio = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["Destinatario"]();
        _this.inspetora = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["Destinatario"]();
        _this.stoLaudoItems = [];
        _this.stoLaudoHoraOpers = [];
        _this.stolaudoOcorrencias = [];
        _this.stoLaudoOperadors = [];
        /* revisar timeLog no esta en el backend */
        _this.timeLogs = [];
        _this.stoLaudoDrafts = [];
        _this.stoLaudoDoctos = [];
        _this.stoLaudoManifestos = [];
        _this.stoLaudoDadosAnalise = [];
        return _this;
    }
    return OperacaoDoNavio;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var OperacaoDoNavioAbaProdutosDados = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioAbaProdutosDados, _super);
    function OperacaoDoNavioAbaProdutosDados() {
        var _this = _super.call(this) || this;
        _this.sequencia = undefined;
        _this.stoLaudoClientes = [];
        _this.stoLaudoItemHoraOpers = [];
        _this.stoLaudoItemOcorrencias = [];
        return _this;
    }
    return OperacaoDoNavioAbaProdutosDados;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

var ItemTanqueEquipamento = /** @class */ (function () {
    function ItemTanqueEquipamento() {
        this.regEquipto = "";
        this.tipoEquipto = "";
    }
    return ItemTanqueEquipamento;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.module.ts":
/*!******************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.module.ts ***!
  \******************************************************************************/
/*! exports provided: OperacaoDoNavioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioModule", function() { return OperacaoDoNavioModule; });
/* 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 _operacao_do_navio_aba_draft_operacao_do_navio_aba_draft_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-draft/operacao-do-navio-aba-draft.component.ts");
/* harmony import */ var _operacao_do_navio_aba_hora_operacional_operacao_do_navio_aba_hora_operacional_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-hora-operacional/operacao-do-navio-aba-hora-operacional.component.ts");
/* harmony import */ var _operacao_do_navio_aba_ocorrencia_operacao_do_navio_aba_ocorrencia_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-ocorrencia/operacao-do-navio-aba-ocorrencia.component.ts");
/* harmony import */ var _operacao_do_navio_aba_operador_operacao_do_navio_aba_operador_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-operador/operacao-do-navio-aba-operador.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_bordo_operacao_do_navio_aba_produtos_bordo_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-bordo/operacao-do-navio-aba-produtos-bordo.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_cliente_dados_operacao_do_navio_aba_produtos_cliente_dados_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-cliente-dados/operacao-do-navio-aba-produtos-cliente-dados.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_dados_operacao_do_navio_aba_produtos_dados_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-dados/operacao-do-navio-aba-produtos-dados.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_hora_operacional_operacao_do_navio_aba_produtos_hora_operacional_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-hora-operacional/operacao-do-navio-aba-produtos-hora-operacional.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_ocorrencia_operacao_do_navio_aba_produtos_ocorrencia_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-aba-produtos-ocorrencia/operacao-do-navio-aba-produtos-ocorrencia.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_antecipacao_operacao_do_navio_produtos_antecipacao_novo_operacao_do_navio_produtos_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-novo/operacao-do-navio-produtos-antecipacao-novo.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_antecipacao_operacao_do_navio_produtos_antecipacao_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_cabecalho_operacao_do_navio_produtos_cabecalho_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-cabecalho/operacao-do-navio-produtos-cabecalho.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-cabecalho/operacao-do-navio-produtos-cabecalho.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_item_tanque_operacao_do_navio_produtos_item_tanque_equipamento_operacao_do_navio_produtos_item_tanque_equipamento_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-equipamento/operacao-do-navio-produtos-item-tanque-equipamento.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-equipamento/operacao-do-navio-produtos-item-tanque-equipamento.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_item_tanque_operacao_do_navio_produtos_item_tanque_tanque_operacao_do_navio_produtos_item_tanque_tanque_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-tanque/operacao-do-navio-produtos-item-tanque-tanque.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque-tanque/operacao-do-navio-produtos-item-tanque-tanque.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_item_tanque_operacao_do_navio_produtos_item_tanque_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_rateio_operacao_do_navio_produtos_rateio_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.component.ts");
/* harmony import */ var _operacao_do_navio_aba_time_log_operacao_do_navio_aba_time_log_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-time-log/operacao-do-navio-aba-time-log.component.ts");
/* harmony import */ var _operacao_do_navio_anexar_docto_operacao_do_navio_anexar_docto_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-anexar-docto/operacao-do-navio-anexar-docto.component.ts");
/* harmony import */ var _operacao_do_navio_cabecalho_operacao_do_navio_cabecalho_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./operacao-do-navio-cabecalho/operacao-do-navio-cabecalho.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-cabecalho/operacao-do-navio-cabecalho.component.ts");
/* harmony import */ var _operacao_do_navio_conclusao_operacao_do_navio_conclusao_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./operacao-do-navio-conclusao/operacao-do-navio-conclusao.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-conclusao/operacao-do-navio-conclusao.component.ts");
/* harmony import */ var _operacao_do_navio_error_msg_operacao_do_navio_error_msg_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./operacao-do-navio-error-msg/operacao-do-navio-error-msg.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-error-msg/operacao-do-navio-error-msg.component.ts");
/* harmony import */ var _operacao_do_navio_filter_operacao_do_navio_filter_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./operacao-do-navio-filter/operacao-do-navio-filter.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-filter/operacao-do-navio-filter.component.ts");
/* harmony import */ var _operacao_do_navio_form_operacao_do_navio_form_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./operacao-do-navio-form/operacao-do-navio-form.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-form/operacao-do-navio-form.component.ts");
/* harmony import */ var _operacao_do_navio_formularios_operacao_do_navio_formularios_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./operacao-do-navio-formularios/operacao-do-navio-formularios.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-formularios/operacao-do-navio-formularios.component.ts");
/* harmony import */ var _operacao_do_navio_index_operacao_do_navio_index_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./operacao-do-navio-index/operacao-do-navio-index.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-index/operacao-do-navio-index.component.ts");
/* harmony import */ var _operacao_do_navio_routing_module__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./operacao-do-navio.routing.module */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.routing.module.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_antecipacao_operacao_do_navio_produtos_antecipacao_ajuste_operacao_do_navio_produtos_antecipacao_ajuste_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao-ajuste/operacao-do-navio-produtos-antecipacao-ajuste.component.ts");
/* harmony import */ var _operacao_do_navio_manifesto_operacao_do_navio_manifesto_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./operacao-do-navio-manifesto/operacao-do-navio-manifesto.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-manifesto/operacao-do-navio-manifesto.component.ts");
/* harmony import */ var _operacao_do_navio_dados_analise_operacao_do_navio_dados_analise_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise.component.ts");
/* harmony import */ var _operacao_do_navio_dados_analise_operacao_do_navio_dados_analise_produtos_cabecalho_operacao_do_navio_dados_analise_produtos_cabecalho_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./operacao-do-navio-dados-analise/operacao-do-navio-dados-analise-produtos-cabecalho/operacao-do-navio-dados-analise-produtos-cabecalho.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-dados-analise/operacao-do-navio-dados-analise-produtos-cabecalho/operacao-do-navio-dados-analise-produtos-cabecalho.component.ts");
/* harmony import */ var _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.component.ts");
/* harmony import */ var _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_form_operacao_do_navio_alterar_estrutura_laudo_form_component__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-form.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-form.component.ts");
/* harmony import */ var _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_clientes_operacao_do_navio_alterar_estrutura_laudo_clientes_component__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-clientes/operacao-do-navio-alterar-estrutura-laudo-clientes.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-clientes/operacao-do-navio-alterar-estrutura-laudo-clientes.component.ts");
/* harmony import */ var _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_create_modal_operacao_do_navio_alterar_estrutura_laudo_create_modal_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-create-modal/operacao-do-navio-alterar-estrutura-laudo-create-modal.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-create-modal/operacao-do-navio-alterar-estrutura-laudo-create-modal.component.ts");
/* harmony import */ var _operacao_do_navio_consulta_antecipacao_operacao_do_navio_consulta_antecipacao_component__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.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 OperacaoDoNavioModule = /** @class */ (function () {
    function OperacaoDoNavioModule() {
    }
    OperacaoDoNavioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            declarations: [
                _operacao_do_navio_formularios_operacao_do_navio_formularios_component__WEBPACK_IMPORTED_MODULE_26__["OperacaoDoNavioFormulariosComponent"],
                _operacao_do_navio_index_operacao_do_navio_index_component__WEBPACK_IMPORTED_MODULE_27__["OperacaoDoNavioIndexComponent"],
                _operacao_do_navio_form_operacao_do_navio_form_component__WEBPACK_IMPORTED_MODULE_25__["OperacaoDoNavioFormComponent"],
                _operacao_do_navio_filter_operacao_do_navio_filter_component__WEBPACK_IMPORTED_MODULE_24__["OperacaoDoNavioFilterComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_dados_operacao_do_navio_aba_produtos_dados_component__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaProdutosDadosComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_hora_operacional_operacao_do_navio_aba_produtos_hora_operacional_component__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioAbaProdutosHoraOperacionalComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_cliente_dados_operacao_do_navio_aba_produtos_cliente_dados_component__WEBPACK_IMPORTED_MODULE_8__["OperacaoDoNavioAbaProdutosClienteDadosComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_ocorrencia_operacao_do_navio_aba_produtos_ocorrencia_component__WEBPACK_IMPORTED_MODULE_11__["OperacaoDoNavioAbaProdutosOcorrenciaComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_aba_produtos_bordo_operacao_do_navio_aba_produtos_bordo_component__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioAbaProdutosBordoComponent"],
                _operacao_do_navio_aba_hora_operacional_operacao_do_navio_aba_hora_operacional_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioAbaHoraOperacionalComponent"],
                _operacao_do_navio_aba_ocorrencia_operacao_do_navio_aba_ocorrencia_component__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioAbaOcorrenciaComponent"],
                _operacao_do_navio_aba_operador_operacao_do_navio_aba_operador_component__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioAbaOperadorComponent"],
                _operacao_do_navio_aba_draft_operacao_do_navio_aba_draft_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoDoNavioAbaDraftComponent"],
                _operacao_do_navio_anexar_docto_operacao_do_navio_anexar_docto_component__WEBPACK_IMPORTED_MODULE_20__["OperacaoDoNavioAnexarDoctoComponent"],
                _operacao_do_navio_manifesto_operacao_do_navio_manifesto_component__WEBPACK_IMPORTED_MODULE_30__["OperacaoDoNavioManifestoComponent"],
                _operacao_do_navio_aba_time_log_operacao_do_navio_aba_time_log_component__WEBPACK_IMPORTED_MODULE_19__["OperacaoDoNavioAbaTimeLogComponent"],
                _operacao_do_navio_cabecalho_operacao_do_navio_cabecalho_component__WEBPACK_IMPORTED_MODULE_21__["OperacaoDoNavioCabecalhoComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_cabecalho_operacao_do_navio_produtos_cabecalho_component__WEBPACK_IMPORTED_MODULE_14__["OperacaoDoNavioProdutoCabecalhoComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_rateio_operacao_do_navio_produtos_rateio_component__WEBPACK_IMPORTED_MODULE_18__["OperacaoDoNavioRateioComponent"],
                _operacao_do_navio_conclusao_operacao_do_navio_conclusao_component__WEBPACK_IMPORTED_MODULE_22__["OperacaoDoNavioConclusaoComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_item_tanque_operacao_do_navio_produtos_item_tanque_component__WEBPACK_IMPORTED_MODULE_17__["OperacaoDoNavioItemTanqueComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_item_tanque_operacao_do_navio_produtos_item_tanque_tanque_operacao_do_navio_produtos_item_tanque_tanque_component__WEBPACK_IMPORTED_MODULE_16__["OperacaoDoNavioItemTanqueTanqueComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_item_tanque_operacao_do_navio_produtos_item_tanque_equipamento_operacao_do_navio_produtos_item_tanque_equipamento_component__WEBPACK_IMPORTED_MODULE_15__["OperacaoDoNavioItemEquipamentoTanqueComponent"],
                _operacao_do_navio_error_msg_operacao_do_navio_error_msg_component__WEBPACK_IMPORTED_MODULE_23__["OperacaoDoNavioErrorMsgComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_antecipacao_operacao_do_navio_produtos_antecipacao_component__WEBPACK_IMPORTED_MODULE_13__["OperacaoDoNavioAntecipacaoComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_antecipacao_operacao_do_navio_produtos_antecipacao_novo_operacao_do_navio_produtos_antecipacao_novo_component__WEBPACK_IMPORTED_MODULE_12__["OperacaoDoNavioAntecipacaoNovoComponent"],
                _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_antecipacao_operacao_do_navio_produtos_antecipacao_ajuste_operacao_do_navio_produtos_antecipacao_ajuste_component__WEBPACK_IMPORTED_MODULE_29__["OperacaoDoNavioAntecipacaoAjusteComponent"],
                _operacao_do_navio_dados_analise_operacao_do_navio_dados_analise_component__WEBPACK_IMPORTED_MODULE_31__["OperacaoDoNavioDadosAnaliseComponent"],
                _operacao_do_navio_dados_analise_operacao_do_navio_dados_analise_produtos_cabecalho_operacao_do_navio_dados_analise_produtos_cabecalho_component__WEBPACK_IMPORTED_MODULE_32__["OperacaoDoNavioDadosAnaliseProdutoCabecalhoComponent"],
                _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_component__WEBPACK_IMPORTED_MODULE_33__["OperacaoDoNavioAlterarEstruturaLaudoComponent"],
                _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_form_operacao_do_navio_alterar_estrutura_laudo_form_component__WEBPACK_IMPORTED_MODULE_34__["OperacaoDoNavioAlterarEstruturaLaudoFormComponent"],
                _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_clientes_operacao_do_navio_alterar_estrutura_laudo_clientes_component__WEBPACK_IMPORTED_MODULE_35__["OperacaoDoNavioAlterarEstruturaLaudoClientesComponent"],
                _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_create_modal_operacao_do_navio_alterar_estrutura_laudo_create_modal_component__WEBPACK_IMPORTED_MODULE_36__["OperacaoDoNavioAlterarEstruturaLaudoCreateModalComponent"],
                _operacao_do_navio_consulta_antecipacao_operacao_do_navio_consulta_antecipacao_component__WEBPACK_IMPORTED_MODULE_37__["OperacaoDoNavioConsultaAntecipacaoComponent"]
            ],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _operacao_do_navio_routing_module__WEBPACK_IMPORTED_MODULE_28__["OperacaoDoNavioRoutingModule"]
            ]
        })
    ], OperacaoDoNavioModule);
    return OperacaoDoNavioModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioRoutingModule", function() { return OperacaoDoNavioRoutingModule; });
/* 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 _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_rateio_operacao_do_navio_produtos_rateio_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-rateio/operacao-do-navio-produtos-rateio.component.ts");
/* harmony import */ var _operacao_do_navio_form_operacao_do_navio_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operacao-do-navio-form/operacao-do-navio-form.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-form/operacao-do-navio-form.component.ts");
/* harmony import */ var _operacao_do_navio_index_operacao_do_navio_index_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-do-navio-index/operacao-do-navio-index.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-index/operacao-do-navio-index.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_item_tanque_operacao_do_navio_produtos_item_tanque_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-item-tanque/operacao-do-navio-produtos-item-tanque.component.ts");
/* harmony import */ var _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_antecipacao_operacao_do_navio_produtos_antecipacao_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-aba-produtos/operacao-do-navio-produtos-antecipacao/operacao-do-navio-produtos-antecipacao.component.ts");
/* harmony import */ var _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo.component.ts");
/* harmony import */ var _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_form_operacao_do_navio_alterar_estrutura_laudo_form_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-form.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-alterar-estrutura-laudo/operacao-do-navio-alterar-estrutura-laudo-form/operacao-do-navio-alterar-estrutura-laudo-form.component.ts");
/* harmony import */ var _operacao_do_navio_consulta_antecipacao_operacao_do_navio_consulta_antecipacao_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.component */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio-consulta-antecipacao/operacao-do-navio-consulta-antecipacao.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: _operacao_do_navio_index_operacao_do_navio_index_component__WEBPACK_IMPORTED_MODULE_5__["OperacaoDoNavioIndexComponent"],
        data: { breadcrumb: "operacaoDoNavio", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _operacao_do_navio_form_operacao_do_navio_form_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioFormComponent"],
        data: { breadcrumb: "operacaoDoNavio", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    },
    {
        path: "edit/:id",
        component: _operacao_do_navio_form_operacao_do_navio_form_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioFormComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _operacao_do_navio_form_operacao_do_navio_form_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioFormComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "edit/:chave/continuar",
        component: _operacao_do_navio_form_operacao_do_navio_form_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoDoNavioFormComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "rateio/:chave",
        component: _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_rateio_operacao_do_navio_produtos_rateio_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoDoNavioRateioComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            breadcrumbSub: "rateio"
        }
    },
    {
        path: "antecipacao/:chave",
        component: _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_antecipacao_operacao_do_navio_produtos_antecipacao_component__WEBPACK_IMPORTED_MODULE_7__["OperacaoDoNavioAntecipacaoComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            breadcrumbSub: "antecipacao"
        }
    },
    {
        path: "tanqueDoItem/:chave",
        component: _operacao_do_navio_aba_produtos_operacao_do_navio_produtos_item_tanque_operacao_do_navio_produtos_item_tanque_component__WEBPACK_IMPORTED_MODULE_6__["OperacaoDoNavioItemTanqueComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            breadcrumbSub: "tanquesDoItem"
        }
    },
    {
        path: "alterarEstruturaDoLaudo/:id",
        component: _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_component__WEBPACK_IMPORTED_MODULE_8__["OperacaoDoNavioAlterarEstruturaLaudoComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            breadcrumbSub: "alterarEstruturaDoLaudo",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "alterarEstruturaDoLaudo/create/:chave",
        component: _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_form_operacao_do_navio_alterar_estrutura_laudo_form_component__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAlterarEstruturaLaudoFormComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "alterarEstruturaDoLaudo/edit/:chave",
        component: _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_form_operacao_do_navio_alterar_estrutura_laudo_form_component__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAlterarEstruturaLaudoFormComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "alterarEstruturaDoLaudo/detail/:chave",
        component: _operacao_do_navio_alterar_estrutura_laudo_operacao_do_navio_alterar_estrutura_laudo_form_operacao_do_navio_alterar_estrutura_laudo_form_component__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAlterarEstruturaLaudoFormComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "consultaAntecipacao/:id",
        component: _operacao_do_navio_consulta_antecipacao_operacao_do_navio_consulta_antecipacao_component__WEBPACK_IMPORTED_MODULE_10__["OperacaoDoNavioConsultaAntecipacaoComponent"],
        data: {
            breadcrumb: "operacaoDoNavio",
            breadcrumbSub: "consultaAntecipacao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var OperacaoDoNavioRoutingModule = /** @class */ (function () {
    function OperacaoDoNavioRoutingModule() {
    }
    OperacaoDoNavioRoutingModule = __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"]]
        })
    ], OperacaoDoNavioRoutingModule);
    return OperacaoDoNavioRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoDoNavioService", function() { return OperacaoDoNavioService; });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __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_8__ = __webpack_require__(/*! ./../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./operacao-do-navio.model */ "./src/app/pages/operacao/operacao-do-navio/operacao-do-navio.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var OperacaoDoNavioService = /** @class */ (function (_super) {
    __extends(OperacaoDoNavioService, _super);
    function OperacaoDoNavioService(http, message, funcoes, router) {
        var _this = _super.call(this, http, "operacao/operacaoNavio") || this;
        _this.http = http;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.router = router;
        _this.filter = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioFilter"]();
        _this.data = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavio"]();
        _this.dataItem = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaProdutosDados"]();
        _this.dataItemCliente = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaProdutosClientesDados"]();
        _this.dataItemHorOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaProdutosHorarioOperacional"]();
        _this.dataItemOcor = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaProdutosOcorrencia"]();
        _this.dataHorOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaHorarioOperacional"]();
        _this.dataOcor = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaOcorrencia"]();
        _this.dataOper = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaOperador"]();
        _this.dataDraft = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaDraft"]();
        _this.dataAnexarDocto = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaAnexarDocto"]();
        _this.dataManifesto = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaManifesto"]();
        _this.dataDadosAnalise = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoDoNavioAbaDadosAnalise"]();
        _this.dataItemTanque = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["ItemTanque"]();
        _this.config = new _operacao_do_navio_model__WEBPACK_IMPORTED_MODULE_9__["ConfigOperacaoDoNavio"]();
        _this.auxTimeLogs = [];
        _this.geraDadosAltEstruturaLaudo = true;
        _this.showBtnGravarDesfazerEstruturaLaudo = false;
        _this.target = _this.funcoes.getTargetLocation();
        return _this;
    }
    OperacaoDoNavioService.prototype.setDataItens = function () {
        var _this = this;
        if (!this.dataItem)
            return;
        var idxItem = this.data.stoLaudoItems.findIndex(function (c) { return c.sequencia === _this.dataItem.sequencia; });
        if (idxItem >= 0) {
            this.data.stoLaudoItems[idxItem] = this.dataItem;
        }
    };
    Object.defineProperty(OperacaoDoNavioService.prototype, "hasSelectedItem", {
        get: function () {
            if (!this.dataItem) {
                this.message.warning("titles.operacaoDoNavio", "messages.precisaEscolherumItemDaAbaDados");
                return false;
            }
            return true;
        },
        enumerable: true,
        configurable: true
    });
    OperacaoDoNavioService.prototype.hasSelected = function (item, verificaItemDados, verificaItem) {
        if (verificaItemDados === void 0) { verificaItemDados = true; }
        if (verificaItem === void 0) { verificaItem = true; }
        if (verificaItemDados) {
            if (!this.hasSelectedItem)
                return;
        }
        if (verificaItem) {
            if (!item || !item.sequencia) {
                this.message.warning("titles.operacaoDoNavio", "messages.precisaEscolherUmItem");
                return false;
            }
        }
        return true;
    };
    OperacaoDoNavioService.prototype.getByFilter = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.pedidoEmbarque = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/verificaPedidoEmbarque", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.desfazer = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/corpWebOpeOperacaoNavioTmpCancela", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype._getById = function (id) {
        var _this = this;
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (operacaoDoNavio) {
            if (!!operacaoDoNavio) {
                return operacaoDoNavio;
            }
            else {
                _this.back();
                _this.message.warning("titles.operacaoDoNavio", "messages.operacaoNaoPermitida");
                return;
            }
        }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (operacaoDoNavio) { return _this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/destinatario/" + operacaoDoNavio.destinatarioIdNavio).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (destinatarioNavio) {
            operacaoDoNavio.navio = destinatarioNavio;
            if (!operacaoDoNavio.stoLaudoHoraOpers) {
                operacaoDoNavio.stoLaudoHoraOpers = [];
            }
            if (!operacaoDoNavio.stolaudoOcorrencias) {
                operacaoDoNavio.stolaudoOcorrencias = [];
            }
            if (!operacaoDoNavio.stoLaudoOperadors) {
                operacaoDoNavio.stoLaudoOperadors = [];
            }
            if (!operacaoDoNavio.timeLogs) {
                operacaoDoNavio.timeLogs = [];
            }
            if (!operacaoDoNavio.stoLaudoDrafts) {
                operacaoDoNavio.stoLaudoDrafts = [];
            }
            if (!operacaoDoNavio.stoLaudoDoctos) {
                operacaoDoNavio.stoLaudoDoctos = [];
            }
            return operacaoDoNavio;
        })); }));
    };
    OperacaoDoNavioService.prototype.verificaAntecipacao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/verificaAntecipacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.validaLiberacaoPelaOperacao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/validaLiberacaoPelaOperacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.temMedicao = function (stoLaudoId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/temMedicao/" + stoLaudoId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.processaRateio = function (stoLaudoId, item, modo, depositoDren) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/processaRateio", { stoLaudoId: stoLaudoId, item: item, modo: modo, depositoDren: depositoDren })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getDrenagemJetLine = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/getDrenagemJetLine", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (resp) {
            resp.depositoDren = "";
            return resp;
        }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getDadosRateio = function () {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/getDadosRateio")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getResumoPorClienteBL = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/getResumoPorClienteBL", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getResumoPorDeposito = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/getResumoPorDeposito", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getTanquesRateio = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/getTanques", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.rateioGravaTmp = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/gravaTmp", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.rateioGrava = function (stoLaudoId, item, depositoDren) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/grava", { stoLaudoId: stoLaudoId, item: item, depositoDren: depositoDren })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.rateioConfirma = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/rateio/confirma", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.podeConcluirLaudo = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/conclusao/podeConcluirLaudo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.rateioLaudoExecutado = function (stoLaudoId) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/conclusao/rateioLaudoExecutado", { stoLaudoId: stoLaudoId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getDataSaldo = function (stoLaudoId) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/getDataSaldo", { stoLaudoId: stoLaudoId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (resp) { return resp.result; }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.laudoTemTransilagem = function (stoLaudoId) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/laudoTemTransilagem", { stoLaudoId: stoLaudoId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.itemTanque = function (regTmp, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/get", { regTmp: regTmp, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.tanqueGrava = function (regTmp, item, subItem, deposito) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/tanqueGrava", { regTmp: regTmp, item: item, subItem: subItem, deposito: deposito })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.tanqueExclui = function (regTmp, item, subItem, deposito) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/tanqueExclui", { regTmp: regTmp, item: item, subItem: subItem, deposito: deposito })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.equipamentoGrava = function (regTmp, item, subItem, regEquipto) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/equipamentoGrava", { regTmp: regTmp, item: item, subItem: subItem, regEquipto: regEquipto })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.equipamentoExclui = function (regTmp, item, subItem, regEquipto) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/equipamentoExclui", { regTmp: regTmp, item: item, subItem: subItem, regEquipto: regEquipto })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.cancelarLiberacaoRateio = function (stoLaudoId) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/cancelarLiberacaoRateio", { stoLaudoId: stoLaudoId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.cancelarBaixaFiscal = function (stoLaudoId) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/cancelarBaixaFiscal", { stoLaudoId: stoLaudoId })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.liberarRetencao = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/liberarRetencao", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.liberarSobraAduaneira = function (stoLaudoId, item, subItem) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/itemTanque/liberarSobraAduaneira", { stoLaudoId: stoLaudoId, item: item, subItem: subItem })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getComboCliRaizenTipoNota = function (tipoMov) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoDutoviario/getComboCliRaizenTipoNota/" + tipoMov)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.back = function () {
        this.funcoes.desabilitarFiltro();
        this.router.navigate([this.target + "/operacao/operacaoDoNavio"]);
    };
    OperacaoDoNavioService.prototype.antecipacaoVerificaDI = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/verificaDI", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoPreparar = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/preparar", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoDados = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/dados", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoGera = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/gera", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoCalcular = function (stoLaudoId, item, ptAntecipacao) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/calcular", { stoLaudoId: stoLaudoId, item: item, ptAntecipacao: ptAntecipacao })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoExclui = function (stoLaudoId, item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/excluir", { stoLaudoId: stoLaudoId, item: item })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoDadosEdit = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/dadosEdit", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoSaveEdit = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/saveEdit", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoExcluirEdit = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/excluirEdit", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.verificaLiberacao = function (autorizacao) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/verificaLiberacao/" + autorizacao)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoSaveAjuste = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/saveAjuste", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.antecipacaoDadosAjuste = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/antecipacao/dadosAjuste", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getPedidoEmbarque = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/getPedidoEmbarque", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getAlterarEstruturaLaudoItens = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/getAlterarEstruturaLaudo/itens", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.alterarEstruturaLaudoCancelarTmp = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/alterarEstruturaLaudo/cancelarTmp", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getDadosAlterarEstruturaLaudo = function (chave) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/getAlterarEstruturaLaudo/" + chave)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.operacaoNavioAgrupaItemExclui = function (item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/alterarEstruturaLaudo/operacaoNavioAgrupaItemExclui", item)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.tmpStoLaudoClienteExclui = function (item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/alterarEstruturaLaudo/tmpStoLaudoClienteExclui", item)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.operacaoNavioAgrupaItemGera = function (item) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/alterarEstruturaLaudo/operacaoNavioAgrupaItemGera", item)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.operacaoNavioAgrupaItemTransf = function (obj) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/alterarEstruturaLaudo/operacaoNavioAgrupaItemTransf", obj)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.altEstruturaLaudoCreateItemTmp = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/alterarEstruturaLaudo/createItemTmp", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.altEstruturaLaudoCreateClienteTmp = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/alterarEstruturaLaudo/createClienteTmp", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.gravarAltEstruturaLaudo = function (obj) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/alterarEstruturaLaudo/gravarAltEstruturaLaudo", obj)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.existeAntecipacao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/consultaAntecipacao/existeAntecipacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getProdutoAntecipacao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/consultaAntecipacao/getProdutoAntecipacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.prototype.getClienteAntecipacao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/operacao/operacaoNavio/consultaAntecipacao/getClienteAntecipacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    OperacaoDoNavioService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"] }
    ]; };
    OperacaoDoNavioService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_0__["Router"]])
    ], OperacaoDoNavioService);
    return OperacaoDoNavioService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_6__["BaseService"]));



/***/ })

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