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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-form/navio-form.component.html":
/*!*****************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-form/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\" [itemData]=\"data.destinatarioId\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"clearfix\">\r\n                <ul class=\"nav nav-tabs\">\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\"labels.dados\" | translate}}</a>\r\n                    </li>\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tp\">{{\"labels.tanquePorao\" | translate}}</a>\r\n                    </li>\r\n                </ul>\r\n            </div>\r\n            <div class=\"tab-content top\">\r\n                <div class=\"tab-pane active show\" id=\"da\">\r\n                    <app-form-legenda></app-form-legenda>\r\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"codigo\">{{'labels.codigo' | translate}}</label>\r\n                                    <input id=\"codigo\" name=\"codigo\" [(ngModel)]=\"data.destinatarioId\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" disabled>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-check mt-4\">\r\n                                    <div class=\"form-group\">\r\n                                        <input class=\"form-check-input\" type=\"checkbox\" id=\"ativo\" name=\"ativo\"\r\n                                            (ngModelChange)=\"data.flagAtivo = $event ? 'S' : 'N'\"\r\n                                            [ngModel]=\"data.flagAtivo ==='S'\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <label class=\"form-check-label\" for=\"ativo\">{{'labels.ativo' | translate}}\r\n                                        </label>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm uppercase\">\r\n                                    <label for=\"nome\" [ngClass]=\"{'required': obrigaNavioEmbar}\">{{'labels.nome' | translate}}</label>\r\n                                    <input id=\"nome\" name=\"nome\" [(ngModel)]=\"data.fantasia\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"obrigaNavioEmbar\" maxlength=\"25\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"prefixoImo\" [ngClass]=\"{'required': obrigaNavioEmbar}\">{{'labels.prefixoImo' | translate}}</label>\r\n                                    <input id=\"prefixoImo\" name=\"prefixoImo\" [(ngModel)]=\"data.codNavio\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"obrigaNavioEmbar\"\r\n                                        maxlength=\"10\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"inscricaoCapitania\"\r\n                                        [class.required]=\"camposObrigatorios\">{{'labels.inscricaoCapitania' |\r\n                                        translate}}</label>\r\n                                    <input id=\"inscricaoCapitania\" name=\"inscricaoCapitania\"\r\n                                        [(ngModel)]=\"data.destinatarioNavio.codCapitania\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"camposObrigatorios\"\r\n                                        maxlength=\"2\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-8\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"armador\" name=\"armador\" label=\"armador\"\r\n                                        modalTitle=\"pesquisaDeArmador\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"data.destinatarioIdArmador\" showCgcCpf=\"false\"\r\n                                        showInscricao=\"false\" [inSelected]=\"data.armador\" tipoDestinatario=\"A\"\r\n                                        required=\"true\">\r\n                                    </app-pesquisa-destinatario>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"carregadorAnp\"\r\n                                        [class.required]=\"camposObrigatorios\">{{'labels.carregadorAnp' |\r\n                                        translate}}</label>\r\n                                    <input id=\"carregadorAnp\" name=\"carregadorAnp\" [(ngModel)]=\"data.carregadorAnp17\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"camposObrigatorios\"\r\n                                        maxlength=\"7\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"integracao\">{{'labels.integracao' | translate}}</label>\r\n                                    <input id=\"integracao\" name=\"integracao\" [(ngModel)]=\"data.emsCodDest\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-8\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"agencia\" name=\"agencia\" label=\"agencia\"\r\n                                        modalTitle=\"pesquisaDeAgencia\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"data.destinatarioNavio.destinatarioIdAgencia\" showCgcCpf=\"false\"\r\n                                        showInscricao=\"false\" [inSelected]=\"data.destinatarioNavio.agencia\"\r\n                                        [required]=\"true\">\r\n                                    </app-pesquisa-destinatario>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"contato\" [class.required]=\"camposObrigatorios\">{{'labels.contato' |\r\n                                        translate}}</label>\r\n                                    <input id=\"contato\" name=\"contato\" [(ngModel)]=\"data.destinatarioNavio.contato\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"camposObrigatorios\"\r\n                                        maxlength=\"30\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"comprimentoMetros\"\r\n                                        [class.required]=\"camposObrigatorios\">{{'labels.comprimentoMetros' |\r\n                                        translate}}</label>\r\n                                    <input id=\"comprimentoMetros\" name=\"comprimentoMetros\"\r\n                                        [(ngModel)]=\"data.destinatarioNavio.comprimento\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\r\n                                        maxlength=\"19\" [required]=\"camposObrigatorios\" (blur)=\"calculoComprimento()\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"pes\">{{'labels.pes' | translate}}</label>\r\n                                    <input id=\"pes\" name=\"pes\" [(ngModel)]=\"data.destinatarioNavio.calcComprimento\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm) || !camposObrigatorios\"\r\n                                        currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\r\n                                        maxlength=\"19\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"idIspsCode\" [class.required]=\"camposObrigatorios\">{{'labels.idIspsCode'\r\n                                        | translate}}</label>\r\n                                    <input id=\"idIspsCode\" name=\"idIspsCode\" [(ngModel)]=\"data.idIsps\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                        [required]=\"camposObrigatorios\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"larguraMetros\"\r\n                                        [class.required]=\"camposObrigatorios\">{{'labels.larguraMetros' |\r\n                                        translate}}</label>\r\n                                    <input id=\"larguraMetros\" name=\"larguraMetros\"\r\n                                        [(ngModel)]=\"data.destinatarioNavio.largura\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\r\n                                        maxlength=\"19\" [required]=\"camposObrigatorios\" (blur)=\"calculoLargura()\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"calcLargura\">{{'labels.pes' | translate}}</label>\r\n                                    <input id=\"calcLargura\" name=\"calcLargura\"\r\n                                        [(ngModel)]=\"data.destinatarioNavio.calcLargura\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm) || !camposObrigatorios\"\r\n                                        currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"ano\" [class.required]=\"camposObrigatorios\">{{'labels.ano' |\r\n                                        translate}}</label>\r\n                                    <input id=\"ano\" name=\"ano\" [(ngModel)]=\"data.destinatarioNavio.ano\"\r\n                                        class=\"form-control form-control-sm text-right\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [required]=\"camposObrigatorios\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"caladoMetros\"\r\n                                        [class.required]=\"camposObrigatorios\">{{'labels.caladoMetros' |\r\n                                        translate}}</label>\r\n                                    <input id=\"caladoMetros\" name=\"caladoMetros\"\r\n                                        [(ngModel)]=\"data.destinatarioNavio.calado\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\r\n                                        maxlength=\"19\" [required]=\"camposObrigatorios\" (blur)=\"calculoCalado()\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"calcCalado\">{{'labels.pes' | translate}}</label>\r\n                                    <input id=\"calcCalado\" name=\"calcCalado\"\r\n                                        [(ngModel)]=\"data.destinatarioNavio.calcCalado\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm) || !camposObrigatorios\"\r\n                                        currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"pesoT\">{{'labels.pesoT' | translate}}</label>\r\n                                    <input id=\"pesoT\" name=\"pesoT\" [(ngModel)]=\"data.destinatarioNavio.peso\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\r\n                                        maxlength=\"19\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"bandeira\" [class.required]=\"camposObrigatorios\">{{'labels.bandeira' |\r\n                                        translate}}</label>\r\n                                    <input id=\"bandeira\" name=\"bandeira\" [(ngModel)]=\"data.destinatarioNavio.bandeira\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"camposObrigatorios\"\r\n                                        maxlength=\"30\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\" *ngIf=\"!disableQtTanquesPoroes\">\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"quantidadeDeTanquesPoroes\">{{'labels.quantidadeDeTanquesPoroes' |\r\n                                        translate}}</label>\r\n                                    <input id=\"quantidadeDeTanquesPoroes\" name=\"quantidadeDeTanquesPoroes\"\r\n                                        (change)=\"tanquePoroes($event.target.value)\"\r\n                                        [(ngModel)]=\"data.quantDeTanquesPoroes\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-12\">\r\n                                <div class=\"form-group\">\r\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        {{ 'buttons.salvar' | translate }}\r\n                                    </button>\r\n                                    <button class=\"btn btn-success mr-2\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' |\r\n                                        translate }}</button>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </form>\r\n                </div>\r\n                <!-- ABA TANQUE/PORÃO-->\r\n                <div class=\"tab-pane\" id=\"tp\">\r\n                    <app-navio-tanque [dadosNavio]=\"data\" [dados]=\"data.tanques\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" (dataResult)=\"refreshTanques($event)\"\r\n                        [camposObrigatorios]=\"camposObrigatorios\">\r\n                    </app-navio-tanque>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-index/navio-index.component.html":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-index/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"] = ("\r\n<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.destinatarioId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtNavio\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-navio-print (print)=\"executePrint($event)\"></app-navio-print>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-print/navio-print.component.html":
/*!*******************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-print/navio-print.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=\"navio-print\" 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.navioEmbarcacao' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-8\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"navio\"\n                                                            name=\"navio\"\n                                                            label=\"navio\"\n                                                            modalTitle=\"pesquisaDeNavio\"\n                                                            [(ngModel)]=\"data.destinatarioIdNavio\"\n                                                            showCgcCpf=\"false\" showInscricao=\"false\"\n                                                            tipoDestinatario=\"N\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-8\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"armador\"\n                                                            name=\"armador\"\n                                                            label=\"armador\"\n                                                            modalTitle=\"pesquisaDeArmador\"\n                                                            [(ngModel)]=\"data.destinatarioIdArmador\"\n                                                            showCgcCpf=\"false\" showInscricao=\"false\"\n                                                            tipoDestinatario=\"A\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ordem\">{{'labels.ordem' | translate}}</label>\n                                <app-ordem id=\"ordem\" name=\"ordem\" [list]=\"constantes.orderBy\"\n                                            (outOrdem)=\"data.ordem = $event\"></app-ordem>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">\n                        {{ 'buttons.imprimir' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n                        {{ 'buttons.sair' | translate }}\n                    </button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n                <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                    [disabled]=\" funcoesService.showButtons.detail(actionForm, dataAux.destinatarioNavioTanqueId)\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.destinatarioNavioTanqueId)\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled ||funcoesService.showButtons.remove(actionForm, dataAux.destinatarioNavioTanqueId)\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"col-md-2 col-lg-2 mt-4\">\r\n        <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th class=\"text-center\">{{ \"labels.tanquePorao\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.revestimento\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.materialConstrucao\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.volumeM3\" | translate }}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let c of (dados | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td class=\"text\">{{ c.tanque }}</td>\r\n                    <td class=\"text\">{{ c.revestimento?.descrRevestimento }}</td>\r\n                    <td class=\"text\">{{ c.materialConstrucao?.descrMaterConstr }}</td>\r\n                    <td class=\"text\">{{ c.volume | formatCurrency:3 }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"4\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.destinatarioNavioTanqueId)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                    class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2 col-md-2 col-sm-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"tanquePorao\" class=\"required\">{{'labels.tanquePorao' |\r\n                                        translate}}</label>\r\n                                    <input id=\"tanquePorao\" name=\"tanquePorao\" [(ngModel)]=\"data.tanque\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\" maxlength=\"10\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"revestimento\" class=\"required\">{{'labels.revestimento' |\r\n                                        translate}}</label>\r\n                                    <app-combo-padrao id=\"revestimento\" name=\"revestimento\" tabela=\"Revestimento\"\r\n                                        descricao=\"DescrRevestimento\" chave=\"CodRevestimento\"\r\n                                        [(ngModel)]=\"data.revestimentoId\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\"\r\n                                        (outSelected)=\"trataRevestimento($event)\">\r\n                                    </app-combo-padrao>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"materialConstrucao\" class=\"required\">{{'labels.materialConstrucao' |\r\n                                        translate}}</label>\r\n                                    <app-combo-padrao id=\"materialConstrucao\" name=\"materialConstrucao\"\r\n                                        tabela=\"MaterialConstrucao\" descricao=\"DescrMaterConstr\" chave=\"CodMaterConstr\"\r\n                                        [(ngModel)]=\"data.materialConstrucaoId\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\"\r\n                                        (outSelected)=\"trataMaterialConstrucao($event)\">\r\n                                    </app-combo-padrao>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2 col-md-2 col-sm-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"volumeM3\" [class.required]=\"camposObrigatorios\">{{'labels.volumeM3' |\r\n                                        translate}}</label>\r\n                                    <input id=\"volumeM3\" name=\"volumeM3\" [(ngModel)]=\"data.volume\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [required]=\"camposObrigatorios\"\r\n                                        currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\"\r\n                                        maxlength=\"19\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavioFormComponent", function() { return NavioFormComponent; });
/* 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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _navio_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../navio.constants */ "./src/app/pages/cadastro/navio/navio.constants.ts");
/* harmony import */ var _navio_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../navio.model */ "./src/app/pages/cadastro/navio/navio.model.ts");
/* harmony import */ var _navio_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../navio.service */ "./src/app/pages/cadastro/navio/navio.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var NavioFormComponent = /** @class */ (function (_super) {
    __extends(NavioFormComponent, _super);
    function NavioFormComponent(router, messageService, activatedRoute, configuracao, navioService, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _navio_constants__WEBPACK_IMPORTED_MODULE_11__["NavioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.configuracao = configuracao;
        _this.navioService = navioService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _navio_model__WEBPACK_IMPORTED_MODULE_12__["Navio"]();
        _this.mensagens = [];
        _this.constantes = new _navio_constants__WEBPACK_IMPORTED_MODULE_11__["NavioConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            _this.camposObrigatorios = _this.configuracao.lerConfig("OPE", "CamposObrigatorios") === "S" ? true : false;
            _this.obrigaNavioEmbar = _this.configuracao.lerConfig("OPE", "ObrigaNavioEmbar") === "S" ? true : false;
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    NavioFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.showButton = true;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.navioService.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    _this.calculoComprimento();
                    _this.calculoLargura();
                    _this.calculoCalado();
                });
            }
            else {
                _this.data = new _navio_model__WEBPACK_IMPORTED_MODULE_12__["Navio"]();
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    NavioFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.estadoId = this.loginService.getLogin().estadoIdFilial;
        this.data.logRotina = "Manutenção Navio";
        this.data.destinatarioNavio.logRotina = this.data.logRotina;
        this.data.fantasia = this.data.fantasia.toUpperCase();
        this.quantididadeTanquesPoroes();
        this.navioService
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            if (!result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.navio");
                if (create) {
                    _this.data = new _navio_model__WEBPACK_IMPORTED_MODULE_12__["Navio"]();
                    _this.router.navigate([_this.target + "/cadastro/navio/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    NavioFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/navio/edit/" + this.data.destinatarioId]);
    };
    NavioFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    NavioFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/navio"]);
    };
    NavioFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    NavioFormComponent.prototype.refreshTanques = function (event) {
        this.data.tanques = event;
    };
    NavioFormComponent.prototype.calculoComprimento = function () {
        this.data.destinatarioNavio.calcComprimento = (this.data.destinatarioNavio.comprimento / 0.3054);
    };
    NavioFormComponent.prototype.calculoLargura = function () {
        this.data.destinatarioNavio.calcLargura = (this.data.destinatarioNavio.largura / 0.3054);
    };
    NavioFormComponent.prototype.calculoCalado = function () {
        this.data.destinatarioNavio.calcCalado = (this.data.destinatarioNavio.calado / 0.3054);
    };
    NavioFormComponent.prototype.tanquePoroes = function (value) {
        this.data.quantDeTanquesPoroes = value;
    };
    NavioFormComponent.prototype.quantididadeTanquesPoroes = function () {
        if (!this.disableQtTanquesPoroes && +this.data.quantDeTanquesPoroes > 0) {
            this.data.tanques = [];
            for (var index = 0; index < +this.data.quantDeTanquesPoroes; index++) {
                var tanque = new _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_10__["DestinatarioNavioTanque"]();
                tanque.sequencia = (index + 1);
                tanque.tanque = (index + 1).toString();
                this.data.tanques.push(tanque);
            }
        }
    };
    Object.defineProperty(NavioFormComponent.prototype, "disableQtTanquesPoroes", {
        get: function () {
            return +this.data.quantDeTanquesPoroes === 0 || app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.data.tanques);
        },
        enumerable: true,
        configurable: true
    });
    NavioFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"] },
        { type: _navio_service__WEBPACK_IMPORTED_MODULE_13__["NavioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] }
    ]; };
    NavioFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-navio-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./navio-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-form/navio-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_5__["ConfiguracaoFacade"],
            _navio_service__WEBPACK_IMPORTED_MODULE_13__["NavioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"]])
    ], NavioFormComponent);
    return NavioFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavioIndexComponent", function() { return NavioIndexComponent; });
/* 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 _navio_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../navio.service */ "./src/app/pages/cadastro/navio/navio.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _navio_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../navio.model */ "./src/app/pages/cadastro/navio/navio.model.ts");
/* harmony import */ var _navio_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../navio.constants */ "./src/app/pages/cadastro/navio/navio.constants.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var NavioIndexComponent = /** @class */ (function (_super) {
    __extends(NavioIndexComponent, _super);
    function NavioIndexComponent(router, service, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _navio_constants__WEBPACK_IMPORTED_MODULE_8__["NavioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _navio_model__WEBPACK_IMPORTED_MODULE_7__["Navio"]();
        _this.constantes = new _navio_constants__WEBPACK_IMPORTED_MODULE_8__["NavioConstants"]();
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    NavioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.refresh();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    NavioIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/navio/create"]);
    };
    NavioIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.get().subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString("destinatarioId", "codigo", "10%"),
                _this.datatablesService.getDataString("fantasia", "navio"),
                _this.datatablesService.getDataString("armador", "armador")
            ];
            _this.datatablesService.datatable("dtNavio", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    NavioIndexComponent.prototype.edit = function () {
        if (!!(this.data.destinatarioId)) {
            this.router.navigate([this.target + "/cadastro/navio/edit/" + this.data.destinatarioId]);
        }
    };
    NavioIndexComponent.prototype.detail = function () {
        if (!!(this.data.destinatarioId)) {
            this.router.navigate([this.target + "/cadastro/navio/detail/" + this.data.destinatarioId]);
        }
    };
    NavioIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    NavioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    NavioIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.destinatarioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function (result) {
                        if (!result.validationResult.isValid) {
                            _this.mensagens = _this.messageService.validationResult(result.validationResult);
                            _this.messageService.warning("titles.navioEmbarcacao", _this.mensagens[0]);
                            return;
                        }
                        else {
                            _this.datatablesService.remove("dtNavio");
                        }
                    });
                });
            });
        }
    };
    NavioIndexComponent.prototype.print = function () {
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            jQuery("#navio-print").modal("show");
        });
    };
    NavioIndexComponent.prototype.executePrint = function (event) {
        this.constantes.paramRelatorio = {
            destinatarioIdNavio: this.funcoesService.getValue(event.destinatarioIdNavio, "I"),
            destinatarioIdArmador: this.funcoesService.getValue(event.destinatarioIdArmador, "I"),
            ordem: event.ordem.length === 0 ? "Fantasia  asc" : event.ordem
        };
        _super.prototype.print.call(this);
    };
    NavioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _navio_service__WEBPACK_IMPORTED_MODULE_2__["NavioService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] }
    ]; };
    NavioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-navio-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./navio-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-index/navio-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _navio_service__WEBPACK_IMPORTED_MODULE_2__["NavioService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"]])
    ], NavioIndexComponent);
    return NavioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/navio/navio-print/navio-print.component.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/cadastro/navio/navio-print/navio-print.component.ts ***!
  \***************************************************************************/
/*! exports provided: NavioPrintComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavioPrintComponent", function() { return NavioPrintComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _navio_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../navio.constants */ "./src/app/pages/cadastro/navio/navio.constants.ts");
/* harmony import */ var _navio_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../navio.model */ "./src/app/pages/cadastro/navio/navio.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 NavioPrintComponent = /** @class */ (function () {
    function NavioPrintComponent() {
        this.print = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.data = new _navio_model__WEBPACK_IMPORTED_MODULE_2__["NavioPrint"]();
        this.constantes = new _navio_constants__WEBPACK_IMPORTED_MODULE_1__["NavioConstants"]();
    }
    NavioPrintComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            jQuery("#navio-print").modal("hide");
            this.print.emit(this.data);
        }
    };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], NavioPrintComponent.prototype, "print", void 0);
    NavioPrintComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-navio-print',
            template: __importDefault(__webpack_require__(/*! raw-loader!./navio-print.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-print/navio-print.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [])
    ], NavioPrintComponent);
    return NavioPrintComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/navio/navio-tanque/navio-tanque.component.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/cadastro/navio/navio-tanque/navio-tanque.component.ts ***!
  \*****************************************************************************/
/*! exports provided: NavioTanqueComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavioTanqueComponent", function() { return NavioTanqueComponent; });
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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_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 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 _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 _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 _navio_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../navio.model */ "./src/app/pages/cadastro/navio/navio.model.ts");
/* harmony import */ var _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _material_construcao_material_construcao_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../material-construcao/material-construcao.service */ "./src/app/pages/cadastro/material-construcao/material-construcao.service.ts");
/* harmony import */ var _revestimento_revestimento_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../revestimento/revestimento.service */ "./src/app/pages/cadastro/revestimento/revestimento.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 NavioTanqueComponent = /** @class */ (function () {
    function NavioTanqueComponent(messageService, funcoesService, materialConstrucaoService, revestimentoService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.materialConstrucaoService = materialConstrucaoService;
        this.revestimentoService = revestimentoService;
        this.dados = [];
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.dataAux = new _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__["DestinatarioNavioTanque"]();
        this.data = new _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__["DestinatarioNavioTanque"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
        this.hasDados = false;
    }
    NavioTanqueComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    NavioTanqueComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
        this.data = new _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__["DestinatarioNavioTanque"]();
    };
    NavioTanqueComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit;
        this.data = this.dataAux;
    };
    NavioTanqueComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    NavioTanqueComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
    };
    NavioTanqueComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    NavioTanqueComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.verificaTanque();
        if (this.isExists) {
            return;
        }
        this.data.logRotina = "Manutenção Tanque Porão";
        if (this.funcoesService.isNotUndefinedOrNull(this.data.tanque) && (!this.isExists)) {
            if (this.data.sequencia && this.data.sequencia > 0) {
                if (this.dados.length > 0) {
                    var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                    this.dados[i] = this.data;
                }
                else {
                    this.dados = [];
                    this.dados.push(this.data);
                }
            }
            else {
                this.setSequencia();
                if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                    this.dados = [];
                }
                this.dados.push(this.data);
            }
            this.data = new _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__["DestinatarioNavioTanque"]();
            this.dataResult.emit(this.dados);
        }
        this.back();
    };
    NavioTanqueComponent.prototype.setSequencia = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data.destinatarioNavioTanqueId)) {
            var s = this.dados ? this.dados.length : 0;
            this.data.sequencia = s + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    NavioTanqueComponent.prototype.verificaTanque = function () {
        var _this = this;
        if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ArrayUtilsStaticService"].any(this.dados))
            this.dados = [];
        var test = this.dados.filter(function (t) { return t.tanque === _this.data.tanque && t.sequencia !== _this.data.sequencia && t.sitReg !== "E"; });
        if (test.length > 0) {
            this.messageService.warning("titles.navio", "messages.tanquePoraoJaInformado");
            this.data.tanque = "";
            this.isExists = true;
        }
    };
    NavioTanqueComponent.prototype.trataRevestimento = function (revestimento) {
        var _this = this;
        this.revestimentoService.getById(revestimento.chave).subscribe(function (resp) {
            _this.data.revestimento = resp;
        });
    };
    NavioTanqueComponent.prototype.trataMaterialConstrucao = function (materialConstrucao) {
        var _this = this;
        this.materialConstrucaoService.getById(materialConstrucao.chave).subscribe(function (resp) {
            _this.data.materialConstrucao = resp;
        });
    };
    NavioTanqueComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _material_construcao_material_construcao_service__WEBPACK_IMPORTED_MODULE_8__["MaterialConstrucaoService"] },
        { type: _revestimento_revestimento_service__WEBPACK_IMPORTED_MODULE_9__["RevestimentoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _navio_model__WEBPACK_IMPORTED_MODULE_6__["Navio"])
    ], NavioTanqueComponent.prototype, "dadosNavio", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Array)
    ], NavioTanqueComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Object)
    ], NavioTanqueComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Object)
    ], NavioTanqueComponent.prototype, "camposObrigatorios", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], NavioTanqueComponent.prototype, "dataResult", void 0);
    NavioTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-navio-tanque",
            template: __importDefault(__webpack_require__(/*! raw-loader!./navio-tanque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/navio/navio-tanque/navio-tanque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _material_construcao_material_construcao_service__WEBPACK_IMPORTED_MODULE_8__["MaterialConstrucaoService"],
            _revestimento_revestimento_service__WEBPACK_IMPORTED_MODULE_9__["RevestimentoService"]])
    ], NavioTanqueComponent);
    return NavioTanqueComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/navio/navio.constants.ts":
/*!*********************************************************!*\
  !*** ./src/app/pages/cadastro/navio/navio.constants.ts ***!
  \*********************************************************/
/*! exports provided: NavioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavioConstants", function() { return NavioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var NavioConstants = /** @class */ (function () {
    function NavioConstants() {
        this.sisFormularioId = 1092;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.navioEmbarcacao";
        this.reportId = "CAD0109";
        this.tabela = "Destinatario";
        this.reportTitulo = { "titulo": "Navio/Embarcação", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            { 'sistema': 'OPE', 'parametros': ["CamposObrigatorios", "ObrigaNavioEmbar"] }
        ];
        this.orderBy = [
            { field: "Fantasia", description: "Fantasia", direction: "asc", default: true, sequence: 1 },
            { field: "DescrTipoDest", description: "Armador", direction: "asc", default: false, sequence: 2 },
            { field: "DestinatarioId", description: "Codigo", direction: "asc", default: false, sequence: 3 }
        ];
    }
    return NavioConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/navio/navio.model.ts":
/*!*****************************************************!*\
  !*** ./src/app/pages/cadastro/navio/navio.model.ts ***!
  \*****************************************************/
/*! exports provided: Navio, NavioPrint */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Navio", function() { return Navio; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavioPrint", function() { return NavioPrint; });
/* 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 _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../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 Navio = /** @class */ (function (_super) {
    __extends(Navio, _super);
    function Navio() {
        var _this = _super.call(this) || this;
        _this.destinatarioNavio = new _destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_1__["DestinatarioNavio"]();
        _this.tipoPessoa = "J";
        _this.flagAtivo = "S";
        return _this;
    }
    return Navio;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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



/***/ }),

/***/ "./src/app/pages/cadastro/navio/navio.module.ts":
/*!******************************************************!*\
  !*** ./src/app/pages/cadastro/navio/navio.module.ts ***!
  \******************************************************/
/*! exports provided: NavioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavioModule", function() { return NavioModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var app_pages_cadastro_navio_navio_form_navio_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/navio/navio-form/navio-form.component */ "./src/app/pages/cadastro/navio/navio-form/navio-form.component.ts");
/* harmony import */ var app_pages_cadastro_navio_navio_index_navio_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/navio/navio-index/navio-index.component */ "./src/app/pages/cadastro/navio/navio-index/navio-index.component.ts");
/* harmony import */ var app_pages_cadastro_navio_navio_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/navio/navio.routing.module */ "./src/app/pages/cadastro/navio/navio.routing.module.ts");
/* harmony import */ var _navio_tanque_navio_tanque_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./navio-tanque/navio-tanque.component */ "./src/app/pages/cadastro/navio/navio-tanque/navio-tanque.component.ts");
/* harmony import */ var _navio_print_navio_print_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./navio-print/navio-print.component */ "./src/app/pages/cadastro/navio/navio-print/navio-print.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 NavioModule = /** @class */ (function () {
    function NavioModule() {
    }
    NavioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], app_pages_cadastro_navio_navio_routing_module__WEBPACK_IMPORTED_MODULE_4__["NavioRoutingModule"]],
            declarations: [app_pages_cadastro_navio_navio_form_navio_form_component__WEBPACK_IMPORTED_MODULE_2__["NavioFormComponent"],
                app_pages_cadastro_navio_navio_index_navio_index_component__WEBPACK_IMPORTED_MODULE_3__["NavioIndexComponent"],
                _navio_tanque_navio_tanque_component__WEBPACK_IMPORTED_MODULE_5__["NavioTanqueComponent"],
                _navio_print_navio_print_component__WEBPACK_IMPORTED_MODULE_6__["NavioPrintComponent"]
            ]
        })
    ], NavioModule);
    return NavioModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/navio/navio.routing.module.ts":
/*!**************************************************************!*\
  !*** ./src/app/pages/cadastro/navio/navio.routing.module.ts ***!
  \**************************************************************/
/*! exports provided: NavioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MRoutes = [
    {
        path: "",
        component: _navio_index_navio_index_component__WEBPACK_IMPORTED_MODULE_2__["NavioIndexComponent"],
        data: { breadcrumb: "navioEmbarcacao", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _navio_form_navio_form_component__WEBPACK_IMPORTED_MODULE_3__["NavioFormComponent"],
        data: {
            breadcrumb: "navioEmbarcacao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _navio_form_navio_form_component__WEBPACK_IMPORTED_MODULE_3__["NavioFormComponent"],
        data: {
            breadcrumb: "navioEmbarcacao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _navio_form_navio_form_component__WEBPACK_IMPORTED_MODULE_3__["NavioFormComponent"],
        data: {
            breadcrumb: "navioEmbarcacao",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail }
        }
    }
];
var NavioRoutingModule = /** @class */ (function () {
    function NavioRoutingModule() {
    }
    NavioRoutingModule = __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"]],
        })
    ], NavioRoutingModule);
    return NavioRoutingModule;
}());



/***/ })

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