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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-ce-mercante/lancamento-re-due-ce-mercante.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-ce-mercante/lancamento-re-due-ce-mercante.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.ceMercanteId)\">\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.ceMercanteId)\">\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.ceMercanteId)\">\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-4 col-lg-4 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 style=\"display: none\">{{ 'labels.item' | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.ceMercante\" | 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 style=\"display: none\">{{ c.ceMercanteId }}</td>\r\n                    <td class=\"text\">{{ c.nrCeMercante }}</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.ceMercanteId)\">\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    <div class=\"clearfix\">&nbsp;</div>\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-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"regCEMercante\">{{\r\n                                        \"labels.regCEMercante\" | translate\r\n                                        }}</label>\r\n                                    <select id=\"regCEMercante\" name=\"regCEMercante\" class=\"form-control form-control-sm\"\r\n                                        (focusin)=\"getComboCEMercante()\"\r\n                                        [(ngModel)]=\"data.ceMercanteId\" (change)=\"trataCeMercante(data.ceMercanteId, dataOld.ceMercanteId)\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <option [value]=\"d.chave\" *ngFor=\"let d of ceMercantes\">{{d.valor}}\r\n                                        </option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"clearfix\">&nbsp;</div>\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\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvarNovo\" | 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>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-filter/lancamento-re-due-filter.component.html":
/*!*********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-filter/lancamento-re-due-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=\"lancamento-di-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.lancamentoReDue' | 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-4 col-md-8 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label>{{\"labels.periodoDe\" | translate}}</label>\n                                <div class=\"input-group\">\n                                    <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                        [(ngModel)]=\"service.filtro.de\" [ngStyle]=\"{'width':'100%'}\"></app-data>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-4 col-md-8 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label>{{\"labels.ate\" | translate}}</label>\n                                <div class=\"input-group\">\n                                    <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filtro.ate\"\n                                        [ngStyle]=\"{'width':'100%'}\"></app-data>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"destinatarioIdCliente\" name=\"destinatarioIdCliente\"\n                                    label=\"cliente\" modalTitle=\"pesquisaDeCliente\"\n                                    [(ngModel)]=\"service.filtro.destinatarioIdCliente\" tipoDestinatario=\"C\"\n                                    showCgcCpf=\"false\" showInscricao=\"false\" [disabled]=\"blockFields\"\n                                    [inSelected]=\"service.filtro.cliente\"\n                                    (outModel)=\"!!$event ? service.filtro.cliente = $event : ''\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\"\n                                    [disabled]=\"blockFields\" [inSelected]=\"service.filtro.material\"\n                                    (outModel)=\"!!$event ? service.filtro.material = $event : ''\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"codEmitente\" name=\"codEmitente\" label=\"emitente\"\n                                    modalTitle=\"pesquisaDeEmitente\" [(ngModel)]=\"service.filtro.destinatarioIdEmitente\"\n                                    tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\"\n                                    [disabled]=\"blockFields\" [inSelected]=\"service.filtro.emitente\"\n                                    (outModel)=\"!!$event ? service.filtro.emitente = $event : ''\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"navio\" name=\"navio\" label=\"navio\"\n                                    modalTitle=\"pesquisaDeNavio\" [(ngModel)]=\"service.filtro.destinatarioIdNavio\"\n                                    tipoDestinatario=\"N\" showCgcCpf=\"false\" showInscricao=\"false\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"reDue\">{{'labels.reDue' | translate}}</label>\n                                <input id=\"reDue\"\n                                       name=\"reDue\"\n                                       [(ngModel)]=\"service.filtro.reDue\"\n                                       class=\"form-control form-control-sm\"\n                                       type=\"text\">\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/cadastro/lancamento-re-due/lancamento-re-due-form/lancamento-re-due-form.component.html":
/*!*****************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-form/lancamento-re-due-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\" [dropDownMenu]=\"\" [formAction]=\"actionForm\"\n  [itemData]=\"data.lancamentoReId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n  <div class=\"col-lg-12\">\n    <div class=\"section-comand-bar\">\n      <div class=\"clearfix\">\n        <ul class=\"nav nav-tabs\">\n          <li class=\"nav-item\">\n            <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#tdados\">{{\"labels.dados\" | translate }}</a>\n          </li>\n          <li class=\"nav-item\" *ngIf=\"data.destinatarioIdNavio > 0\">\n            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tcemercante\">{{ 'labels.ceMercante' | translate }}</a>\n          </li>\n        </ul>\n      </div>\n      <div class=\"tab-content top\">\n        <!-- ABA DADOS -->\n        <div class=\"tab-pane active show\" id=\"tdados\">\n          <app-form-legenda></app-form-legenda>\n          <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n            <app-validacoes></app-validacoes>\n            <div class=\"row\">\n              <div class=\"col-lg-4\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"numeroReDue\" class=\"required\">{{\n                    \"labels.numeroReDue\" | translate\n                    }}</label>\n                  <input id=\"numeroReDue\" name=\"numeroReDue\" [(ngModel)]=\"data.numRE\" maxlength=\"15\"\n                    class=\"form-control form-control-sm\" type=\"text\" required=\"true\"\n                    [minlength]=\"data.tipoDoc === 'G' ? 8 : null\"\n                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                </div>\n              </div>\n              <div class=\"col-lg-2 content-radio\">\n                <div class=\"custom-control custom-radio\">\n                  <input id=\"re\" type=\"radio\" name=\"re\" class=\"form-check-input\" value=\"R\" [(ngModel)]=\"data.tipoDoc\"\n                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                  {{ \"labels.re\" | translate }}\n                </div>\n                <div class=\"custom-control custom-radio\">\n                  <input id=\"due\" type=\"radio\" name=\"due\" class=\"form-check-input\" value=\"D\" [(ngModel)]=\"data.tipoDoc\"\n                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                  {{ \"labels.due\" | translate }}\n                </div>\n                <div class=\"custom-control custom-radio\">\n                  <input id=\"ge\" type=\"radio\" name=\"ge\" class=\"form-check-input\" value=\"G\" [(ngModel)]=\"data.tipoDoc\"\n                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                  {{ \"labels.ge\" | translate }}\n                </div>\n              </div>\n              <div class=\"col-lg-3\">\n                <div class=\"form-group form-group-sm\">\n                  <label for=\"dtRegistro\" class=\"required\">{{\n                    \"labels.dtRegistro\" | translate\n                    }}</label>\n                  <app-data id=\"dtRegistro\" name=\"dtRegistro\" [(ngModel)]=\"data.dtRegistro\" required=\"true\"\n                    [disabled]=\"funcoesService.isDetail(actionForm)\"></app-data>\n                </div>\n              </div>\n            </div>\n            <div class=\"row\">\n              <div class=\"col-lg-6\">\n                <div class=\"row\">\n                  <div class=\"col-lg-12\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"pais\" class=\"required\">{{\n                        \"labels.pais\" | translate\n                        }}</label>\n                      <app-combo-padrao id=\"pais\" name=\"pais\" [(ngModel)]=\"data.siglaPais\" tabela=\"Pais\"\n                        chave=\"SiglaPais\" descricao=\"DescrPais\" ativos=\"true\" required=\"true\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-combo-padrao>\n                    </div>\n                  </div>\n                </div>\n                <div class=\"row\">\n                  <div class=\"col-lg-12\">\n                    <div class=\"form-group form-group-sm\">\n                      <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"materialId\"\n                        modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.materialId\" [inSelected]=\"material\"\n                        required=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-pesquisa-material>\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=\"numDDE\">{{\n                        \"labels.numDDE\" | translate\n                        }}</label>\n                      <app-combo-padrao id=\"numDDE\" name=\"numDDE\" [(ngModel)]=\"data.regDDE\" tabela=\"LancamentoDDE\"\n                        chave=\"RegDDE\" descricao=\"NumDDE\" ativos=\"true\" [filialId]=\"filialId\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-combo-padrao>\n                    </div>\n                  </div>\n                </div>\n                <div class=\"row\">\n                  <div class=\"col-lg-12\">\n                    <div class=\"form-group form-group-sm\">\n                      <app-pesquisa-destinatario id=\"destinatarioIdCliente\" name=\"destinatarioIdCliente\"\n                        label=\"destinatarioIdCliente\" modalTitle=\"pesquisaDeCliente\"\n                        [(ngModel)]=\"data.destinatarioIdCliente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                        showInscricao=\"false\" required=\"true\" [inSelected]=\"cliente\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-pesquisa-destinatario>\n                    </div>\n                  </div>\n                </div>\n                <div class=\"row\">\n                  <div class=\"col-lg-12\">\n                    <div class=\"form-group form-group-sm\">\n                      <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" label=\"emitente\" modalTitle=\"emitente\"\n                        [(ngModel)]=\"data.destinatarioIdEmitente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                        showInscricao=\"false\" required=\"true\" [inSelected]=\"emitente\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-pesquisa-destinatario>\n                    </div>\n                  </div>\n                </div>\n                <div class=\"row\">\n                  <div class=\"col-lg-12\">\n                    <div class=\"form-group form-group-sm\">\n                      <app-pesquisa-destinatario id=\"navio\" name=\"navio\" label=\"navio\" modalTitle=\"navio\"\n                        [(ngModel)]=\"data.destinatarioIdNavio\" showCgcCpf=\"false\" showInscricao=\"false\" required=\"false\"\n                        [inSelected]=\"navio\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                      </app-pesquisa-destinatario>\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=\"ruc\">{{\n                        \"labels.ruc\" | translate\n                        }}</label>\n                      <input id=\"ruc\" name=\"ruc\" [(ngModel)]=\"data.ruc\" maxlength=\"35\"\n                        class=\"form-control form-control-sm\" type=\"text\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                    </div>\n                  </div>\n                </div>\n              </div>\n              <div class=\"col-lg-3 card\">\n                <div class=\"row title_card\">\n                  <label>{{ \"labels.dadosBl\" | translate }}</label>\n                </div>\n                <div class=\"row\">\n                  <div class=\"col-lg-12\">\n                    <div class=\"form-group form-group-sm\">\n                      <label for=\"numero\">{{\n                        \"labels.numero\" | translate\n                        }}</label>\n                      <input id=\"numero\" name=\"numero\" [(ngModel)]=\"data.numBl\" maxlength=\"12\"\n                        class=\"form-control form-control-sm\" type=\"text\" [required]=\"false\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\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                      <div class=\"form-group form-group-sm\">\n                        <label for=\"dtBl\">{{\n                          \"labels.dtBl\" | translate\n                          }}</label>\n                        <app-data id=\"dtBl\" name=\"dtBl\" [(ngModel)]=\"data.dtBl\" [required]=\"false\"\n                          [disabled]=\"funcoesService.isDetail(actionForm)\"></app-data>\n                      </div>\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=\"pesoLiqBl\">{{\n                        \"labels.pesoLiqBl\" | translate\n                        }}</label>\n                      <input id=\"pesoLiqBl\" name=\"pesoLiqBl\" [(ngModel)]=\"data.pesoLiqBl\" maxlength=\"12\"\n                        class=\"form-control form-control-sm\" type=\"text\" [required]=\"false\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" />\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=\"pesoBruBl\">{{\n                        \"labels.pesoBruBl\" | translate\n                        }}</label>\n                      <input id=\"pesoBruBl\" name=\"pesoBruBl\" [(ngModel)]=\"data.pesoBruBl\" maxlength=\"12\"\n                        class=\"form-control form-control-sm\" type=\"text\" [required]=\"false\"\n                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" />\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class=\"row\">\n              <div class=\"col-12\">\n                <div class=\"form-group\">\n                  <button class=\"btn btn-success mr-2\" type=\"submit\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                    {{ \"buttons.salvar\" | translate }}\n                  </button>\n                  <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                    {{ \"buttons.salvarNovo\" | translate }}\n                  </button>\n                </div>\n              </div>\n            </div>\n          </form>\n        </div>\n        <!-- ABA CE MERCANTE -->\n        <div class=\"tab-pane\" id=\"tcemercante\">\n          <app-lancamento-re-due-ce-mercante [dados]=\"data.ceMercantes\" (dataResult)=\"refreshCeMercante($event)\"\n            (getCombo)=\"getComboCEMercante(data.destinatarioIdNavio)\" [ceMercantes]=\"ceMercantes\"\n            [disabled]=\"funcoesService.isDetail(actionForm)\">\n          </app-lancamento-re-due-ce-mercante>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

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

/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-ce-mercante/lancamento-re-due-ce-mercante.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-ce-mercante/lancamento-re-due-ce-mercante.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: LancamentoReDueCeMercanteComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoReDueCeMercanteComponent", function() { return LancamentoReDueCeMercanteComponent; });
/* 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 _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../lancamento-re-due.model */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.model.ts");
/* harmony import */ var _ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../ce-mercante/ce-mercante.service */ "./src/app/pages/cadastro/ce-mercante/ce-mercante.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-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 LancamentoReDueCeMercanteComponent = /** @class */ (function () {
    function LancamentoReDueCeMercanteComponent(messageService, funcoesService, serviceCEMercante) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.serviceCEMercante = serviceCEMercante;
        this.dados = [];
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.getCombo = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.dataAux = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_6__["LancamentoReDueCeMercante"]();
        this.data = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_6__["LancamentoReDueCeMercante"]();
        this.dataOld = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_6__["LancamentoReDueCeMercante"]();
        this.dadosOld = [];
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
        this.hasDados = false;
        this.isChange = false;
    }
    LancamentoReDueCeMercanteComponent.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;
            }
        }
    };
    LancamentoReDueCeMercanteComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
        this.data = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_6__["LancamentoReDueCeMercante"]();
    };
    LancamentoReDueCeMercanteComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit;
        this.data = this.dataAux;
        this.dataOld = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ObjectUtilsStaticService"].clone(this.dataAux);
        this.dadosOld = app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ArrayUtilsStaticService"].clone(this.dados);
    };
    LancamentoReDueCeMercanteComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    LancamentoReDueCeMercanteComponent.prototype.back = function () {
        var _this = this;
        if (this.isChange) {
            this.messageService.confirm("titles.lancamentoReDue", "messages.desejaSairSemSalvar", null, function () { _this.limparAlteracao(); }, false, function () { return false; });
        }
        else {
            this.showAdd = false;
            this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
        }
    };
    LancamentoReDueCeMercanteComponent.prototype.limparAlteracao = function () {
        this.dados = this.dadosOld;
        this.data = this.dataOld;
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
        this.isChange = false;
        this.dataResult.emit(this.dados);
    };
    LancamentoReDueCeMercanteComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoesService.isUndefinedOrNull(this.data.ceMercanteId)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.ceMercanteId === _this.data.ceMercanteId; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
                _this.dataAux = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_6__["LancamentoReDueCeMercante"]();
                _this.messageService.removeSuccess();
            });
        }
    };
    LancamentoReDueCeMercanteComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.verifSeJaExisteCeMercante();
        if (this.isExistCeMercante) {
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.data.ceMercanteId) && (!this.isExistCeMercante)) {
            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.isChange = false;
            this.data = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_6__["LancamentoReDueCeMercante"]();
            this.dataResult.emit(this.dados);
            if (create) {
                this.messageService.saveSuccess("titles.lancamentoReDue");
                this.showAdd = true;
            }
            else {
                this.back();
            }
        }
        else {
            this.messageService.warning("titles.lancamentoReDue", "messages.selecioneUmRegistro");
            return;
        }
    };
    LancamentoReDueCeMercanteComponent.prototype.setSequencia = function () {
        var s = this.dados ? this.dados.length : 0;
        this.data.sequencia = s + 1;
    };
    LancamentoReDueCeMercanteComponent.prototype.verifSeJaExisteCeMercante = 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.ceMercanteId === +_this.data.ceMercanteId || t.ceMercanteId === _this.data.ceMercanteId && t.sequencia != _this.data.sequencia && t.sitReg !== "E"; });
        if (test.length > 0) {
            this.messageService.warning("titles.lancamentoReDue", "messages.ceMercanteJaInformada");
            this.isExistCeMercante = true;
        }
        else {
            this.isExistCeMercante = false;
        }
    };
    LancamentoReDueCeMercanteComponent.prototype.trataCeMercante = function (ceMercanteId, ceMercanteIdOld) {
        var _this = this;
        if (!ceMercanteId) {
            return;
        }
        if (this.actionForm === _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit) {
            if (+ceMercanteId !== ceMercanteIdOld) {
                var i = this.dadosOld.findIndex(function (x) { return x.ceMercanteId === ceMercanteIdOld; });
                if (i !== -1) {
                    this.dataOld["sitReg"] = "E";
                    this.dados.push(this.dataOld);
                    this.isChange = true;
                }
            }
        }
        this.serviceCEMercante.getById(ceMercanteId).subscribe(function (resp) {
            _this.data.nrCeMercante = resp.nrCeMercante;
        });
    };
    LancamentoReDueCeMercanteComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    LancamentoReDueCeMercanteComponent.prototype.getComboCEMercante = function () {
        this.getCombo.emit();
    };
    LancamentoReDueCeMercanteComponent.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: _ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_7__["CeMercanteService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Array)
    ], LancamentoReDueCeMercanteComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Array)
    ], LancamentoReDueCeMercanteComponent.prototype, "ceMercantes", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Object)
    ], LancamentoReDueCeMercanteComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], LancamentoReDueCeMercanteComponent.prototype, "dataResult", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], LancamentoReDueCeMercanteComponent.prototype, "getCombo", void 0);
    LancamentoReDueCeMercanteComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-lancamento-re-due-ce-mercante",
            template: __importDefault(__webpack_require__(/*! raw-loader!./lancamento-re-due-ce-mercante.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-ce-mercante/lancamento-re-due-ce-mercante.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"],
            _ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_7__["CeMercanteService"]])
    ], LancamentoReDueCeMercanteComponent);
    return LancamentoReDueCeMercanteComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-filter/lancamento-re-due-filter.component.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-filter/lancamento-re-due-filter.component.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: LancamentoReDueFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoReDueFilterComponent", function() { return LancamentoReDueFilterComponent; });
/* harmony import */ var _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../lancamento-re-due.service */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.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 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_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 _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lancamento-re-due.model */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.model.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __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_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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");
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 LancamentoReDueFilterComponent = /** @class */ (function () {
    function LancamentoReDueFilterComponent(loginService, message, service) {
        this.loginService = loginService;
        this.message = message;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.dataAtual = new Date();
        this.blockFields = false;
    }
    LancamentoReDueFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_4__["LancamentoReDueFilter"]();
        }
    };
    LancamentoReDueFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!this.validaDatas()) {
            return;
        }
        this.filtrar.emit(this.service.filtro);
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].closeModal("lancamento-di-filter-dialog");
    };
    LancamentoReDueFilterComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].menorA(this.service.filtro.ate, this.service.filtro.de)) {
            this.message.warning("titles.lancamentoReDue", "messages.periodoDeMaiorQueAte");
            return false;
        }
        return true;
    };
    LancamentoReDueFilterComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_0__["LancamentoReDueService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], LancamentoReDueFilterComponent.prototype, "filtrar", void 0);
    LancamentoReDueFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-lancamento-re-due-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./lancamento-re-due-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-filter/lancamento-re-due-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_0__["LancamentoReDueService"]])
    ], LancamentoReDueFilterComponent);
    return LancamentoReDueFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-form/lancamento-re-due-form.component.scss":
/*!***************************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-form/lancamento-re-due-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"] = ("div.content-radio {\n  display: inline-flex;\n  align-items: center;\n  justify-content: space-between;\n}\n\ndiv.title_card {\n  padding-left: 5%;\n}\n\n@media screen and (max-width: 600px) {\n  div.title_card {\n    padding-left: 3%;\n  }\n\n  div.content-radio {\n    display: inline-flex;\n    justify-content: flex-start;\n  }\n\n  div.content-radio div.custom-radio {\n    margin-right: 2%;\n    margin-bottom: 2%;\n  }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY2FkYXN0cm8vbGFuY2FtZW50by1yZS1kdWUvbGFuY2FtZW50by1yZS1kdWUtZm9ybS9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGNhZGFzdHJvXFxsYW5jYW1lbnRvLXJlLWR1ZVxcbGFuY2FtZW50by1yZS1kdWUtZm9ybVxcbGFuY2FtZW50by1yZS1kdWUtZm9ybS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvY2FkYXN0cm8vbGFuY2FtZW50by1yZS1kdWUvbGFuY2FtZW50by1yZS1kdWUtZm9ybS9sYW5jYW1lbnRvLXJlLWR1ZS1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usb0JBQUE7RUFDQSxtQkFBQTtFQUNBLDhCQUFBO0FDQ0Y7O0FERUE7RUFDRSxnQkFBQTtBQ0NGOztBREVBO0VBRUU7SUFDRSxnQkFBQTtFQ0FGOztFREdBO0lBQ0Usb0JBQUE7SUFDQSwyQkFBQTtFQ0FGOztFREdBO0lBQ0UsZ0JBQUE7SUFDQSxpQkFBQTtFQ0FGO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9jYWRhc3Ryby9sYW5jYW1lbnRvLXJlLWR1ZS9sYW5jYW1lbnRvLXJlLWR1ZS1mb3JtL2xhbmNhbWVudG8tcmUtZHVlLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJkaXYuY29udGVudC1yYWRpbyB7XHJcbiAgZGlzcGxheTogaW5saW5lLWZsZXg7XHJcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XHJcbn1cclxuXHJcbmRpdi50aXRsZV9jYXJkIHtcclxuICBwYWRkaW5nLWxlZnQ6IDUlO1xyXG59XHJcblxyXG5AbWVkaWEgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiA2MDBweCkge1xyXG5cclxuICBkaXYudGl0bGVfY2FyZCB7XHJcbiAgICBwYWRkaW5nLWxlZnQ6IDMlO1xyXG4gIH1cclxuXHJcbiAgZGl2LmNvbnRlbnQtcmFkaW8ge1xyXG4gICAgZGlzcGxheTogaW5saW5lLWZsZXg7XHJcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XHJcbiAgfVxyXG5cclxuICBkaXYuY29udGVudC1yYWRpbyBkaXYuY3VzdG9tLXJhZGlvIHtcclxuICAgIG1hcmdpbi1yaWdodDogMiU7XHJcbiAgICBtYXJnaW4tYm90dG9tOiAyJTtcclxuICB9XHJcbn1cclxuIiwiZGl2LmNvbnRlbnQtcmFkaW8ge1xuICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG5kaXYudGl0bGVfY2FyZCB7XG4gIHBhZGRpbmctbGVmdDogNSU7XG59XG5cbkBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDYwMHB4KSB7XG4gIGRpdi50aXRsZV9jYXJkIHtcbiAgICBwYWRkaW5nLWxlZnQ6IDMlO1xuICB9XG5cbiAgZGl2LmNvbnRlbnQtcmFkaW8ge1xuICAgIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDtcbiAgfVxuXG4gIGRpdi5jb250ZW50LXJhZGlvIGRpdi5jdXN0b20tcmFkaW8ge1xuICAgIG1hcmdpbi1yaWdodDogMiU7XG4gICAgbWFyZ2luLWJvdHRvbTogMiU7XG4gIH1cbn0iXX0= */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoReDueFormComponent", function() { return LancamentoReDueFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _lancamento_di_lancamento_di_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../lancamento-di/lancamento-di.constants */ "./src/app/pages/cadastro/lancamento-di/lancamento-di.constants.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _lote_lote_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../lote/lote.service */ "./src/app/pages/cadastro/lote/lote.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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __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_9__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../lancamento-re-due.model */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.model.ts");
/* harmony import */ var _lancamento_re_due_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../lancamento-re-due.constants */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.constants.ts");
/* harmony import */ var _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../lancamento-re-due.service */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.service.ts");
/* harmony import */ var app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_13__ = __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_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __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 app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __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 _ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../ce-mercante/ce-mercante.service */ "./src/app/pages/cadastro/ce-mercante/ce-mercante.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 LancamentoReDueFormComponent = /** @class */ (function (_super) {
    __extends(LancamentoReDueFormComponent, _super);
    function LancamentoReDueFormComponent(router, messageService, activatedRoute, service, funcoesService, loginService, loteService, permissoesUtils, comboPadraoService, serviceCEMercante) {
        var _this = _super.call(this, new _lancamento_di_lancamento_di_constants__WEBPACK_IMPORTED_MODULE_1__["LancamentoDiConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.loteService = loteService;
        _this.permissoesUtils = permissoesUtils;
        _this.comboPadraoService = comboPadraoService;
        _this.serviceCEMercante = serviceCEMercante;
        _this.data = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_10__["LancamentoReDue"]();
        _this.filtro = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_10__["LancamentoReDueFilter"]();
        _this.mensagens = [];
        _this.constantes = new _lancamento_re_due_constants__WEBPACK_IMPORTED_MODULE_11__["LancamentoReDueConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.dataAtual = new Date();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    LancamentoReDueFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var lancamentoReDue = _this.activatedRoute.snapshot.paramMap.get("id");
            if (lancamentoReDue) {
                _this.service.getById(lancamentoReDue).subscribe(function (resp) {
                    _this.data = resp;
                    if (resp) {
                        _this.material = resp.material;
                        _this.cliente = resp.cliente;
                        _this.emitente = resp.emitente;
                        _this.navio = resp.navio;
                        _this.getComboCEMercante(_this.data.destinatarioIdNavio);
                        _this.trataCeMercantes(resp.ceMercantes);
                    }
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    LancamentoReDueFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("formError").emit(form);
        if (this.data.tipoDoc === 'G' && (!this.data.numRE || this.data.numRE.length < 8)) {
            this.messageService.warning('titles.atencao', 'messages.numeroMinimoOitoCaracteres');
            return;
        }
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Manutenção Lanc Re/Due";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.lancamentoReDue");
                _this.back();
            }
        });
    };
    LancamentoReDueFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/cadastro/lancamentoReDue"]);
    };
    LancamentoReDueFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form);
    };
    LancamentoReDueFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate([_this.target + "/cadastro/lancamentoReDue/edit/" + _this.data.lancamentoReId]);
        });
    };
    LancamentoReDueFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    LancamentoReDueFormComponent.prototype.getComboCEMercante = function (destinatarioIdNavio) {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].isPositive(destinatarioIdNavio)) {
            var condicionaisOptions = [
                {
                    operadorLogico: "AND",
                    campo: "Navio",
                    operador: "=",
                    valor: destinatarioIdNavio
                }
            ];
            this.comboPadraoService.get('CEMercante', 'RegCEMercante', 'CEMercante', true, null, '', this.filialId, condicionaisOptions).subscribe(function (data) {
                _this.ceMercantes = data;
                _this.ceMercantes.unshift({ chave: '', valor: 'Selecione' });
            });
        }
        else {
            this.ceMercantes = [];
            this.ceMercantes.unshift({ chave: '', valor: 'Selecione' });
        }
    };
    LancamentoReDueFormComponent.prototype.refreshCeMercante = function (event) {
        this.data.ceMercantes = event;
    };
    LancamentoReDueFormComponent.prototype.trataCeMercantes = function (dados) {
        var _this = this;
        if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ArrayUtilsStaticService"].any(dados))
            return;
        dados.forEach(function (item) {
            _this.serviceCEMercante.getById(item.ceMercanteId).subscribe(function (resp) {
                item.nrCeMercante = resp.nrCeMercante;
            });
        });
    };
    LancamentoReDueFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_12__["LancamentoReDueService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _lote_lote_service__WEBPACK_IMPORTED_MODULE_6__["LoteService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_13__["ComboPadraoService"] },
        { type: _ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_16__["CeMercanteService"] }
    ]; };
    LancamentoReDueFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-lancamento-re-due-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./lancamento-re-due-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-form/lancamento-re-due-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./lancamento-re-due-form.component.scss */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-form/lancamento-re-due-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_12__["LancamentoReDueService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _lote_lote_service__WEBPACK_IMPORTED_MODULE_6__["LoteService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_13__["ComboPadraoService"],
            _ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_16__["CeMercanteService"]])
    ], LancamentoReDueFormComponent);
    return LancamentoReDueFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoReDueIndexComponent", function() { return LancamentoReDueIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_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_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 _login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.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 _lancamento_re_due_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../lancamento-re-due.constants */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.constants.ts");
/* harmony import */ var _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../lancamento-re-due.model */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.model.ts");
/* harmony import */ var _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../lancamento-re-due.service */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var LancamentoReDueIndexComponent = /** @class */ (function (_super) {
    __extends(LancamentoReDueIndexComponent, _super);
    function LancamentoReDueIndexComponent(router, service, datatables, funcoes, loginService, messageService, permissoesUtils) {
        var _this = _super.call(this, new _lancamento_re_due_constants__WEBPACK_IMPORTED_MODULE_8__["LancamentoReDueConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _lancamento_re_due_model__WEBPACK_IMPORTED_MODULE_9__["LancamentoReDue"]();
        _this.constantes = new _lancamento_re_due_constants__WEBPACK_IMPORTED_MODULE_8__["LancamentoReDueConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.mensagens = [];
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    LancamentoReDueIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
            else {
                _this.refresh();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    LancamentoReDueIndexComponent.prototype.filtrar = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("lancamento-di-filter-dialog");
    };
    LancamentoReDueIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    LancamentoReDueIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.filtro.filialId = this.loginService.getLogin().filialId;
        this.service.getByFilter(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("lancamentoReId", "id", "10%"),
                _this.datatables.getDataString("numRE", "numeroReDue", "10%"),
                _this.datatables.getDataString("produto", "produto"),
                _this.datatables.getDataDateTime("dtRegistro", "dtRegistro", "DD/MM/YYYY", "10%"),
                _this.datatables.getDataString("numDDE", "numDDE", "10%"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataString("navio", "navio"),
            ];
            _this.datatables.toDataTable({ tableId: "lancamentoReDue", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    LancamentoReDueIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate([_this.target + "/cadastro/lancamentoReDue/create"]);
        });
    };
    LancamentoReDueIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!!(this.data.lancamentoReId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
                _this.router.navigate([_this.target + "/cadastro/lancamentoReDue/edit/" + _this.data.lancamentoReId]);
            });
        }
    };
    LancamentoReDueIndexComponent.prototype.detail = function () {
        var _this = this;
        if (!!(this.data.lancamentoReId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
                _this.router.navigate([_this.target + "/cadastro/lancamentoReDue/detail/" + _this.data.lancamentoReId]);
            });
        }
    };
    LancamentoReDueIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.lancamentoReId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.messageService.warning("titles.lancamentoReDue", _this.mensagens[0]);
                        }
                        else {
                            _this.datatables.remove("lancamentoReDue");
                        }
                    });
                });
            });
        }
    };
    LancamentoReDueIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    LancamentoReDueIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    LancamentoReDueIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                ate: _this.service.filtro.ate,
                de: _this.service.filtro.de,
                destinatarioIdEmitente: _this.funcoes.isNotUndefinedOrNull(_this.service.filtro.destinatarioIdEmitente) ? _this.service.filtro.destinatarioIdEmitente : 0,
                destinatarioIdCliente: _this.funcoes.isNotUndefinedOrNull(_this.service.filtro.destinatarioIdCliente) ? _this.service.filtro.destinatarioIdCliente : 0,
                destinatarioIdNavio: _this.funcoes.isNotUndefinedOrNull(_this.service.filtro.destinatarioIdNavio) ? _this.service.filtro.destinatarioIdNavio : 0,
                materialId: _this.funcoes.isNotUndefinedOrNull(_this.service.filtro.materialId) ? _this.service.filtro.materialId : "",
                filialId: _this.loginService.getLogin().filialId,
                reDue: _this.service.filtro.reDue
            };
            _super.prototype.print.call(_this);
        });
    };
    LancamentoReDueIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_10__["LancamentoReDueService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    LancamentoReDueIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-lancamento-re-due-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./lancamento-re-due-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-index/lancamento-re-due-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _lancamento_re_due_service__WEBPACK_IMPORTED_MODULE_10__["LancamentoReDueService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], LancamentoReDueIndexComponent);
    return LancamentoReDueIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.constants.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.constants.ts ***!
  \*********************************************************************************/
/*! exports provided: LancamentoReDueConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoReDueConstants", function() { return LancamentoReDueConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var LancamentoReDueConstants = /** @class */ (function () {
    function LancamentoReDueConstants() {
        this.sisFormularioId = 90211;
        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.lancamentoReDue";
        this.reportId = "CAD0203";
        this.tabela = "LancamentoRe";
        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: '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: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return LancamentoReDueConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.module.ts":
/*!******************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.module.ts ***!
  \******************************************************************************/
/*! exports provided: LancamentoReDueModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoReDueModule", function() { return LancamentoReDueModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _lancamento_re_due_index_lancamento_re_due_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lancamento-re-due-index/lancamento-re-due-index.component */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-index/lancamento-re-due-index.component.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _lancamento_re_due_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lancamento-re-due.routing.module */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.routing.module.ts");
/* harmony import */ var _lancamento_re_due_filter_lancamento_re_due_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lancamento-re-due-filter/lancamento-re-due-filter.component */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-filter/lancamento-re-due-filter.component.ts");
/* harmony import */ var _lancamento_re_due_form_lancamento_re_due_form_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lancamento-re-due-form/lancamento-re-due-form.component */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-form/lancamento-re-due-form.component.ts");
/* harmony import */ var _lancamento_re_due_ce_mercante_lancamento_re_due_ce_mercante_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./lancamento-re-due-ce-mercante/lancamento-re-due-ce-mercante.component */ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due-ce-mercante/lancamento-re-due-ce-mercante.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 LancamentoReDueModule = /** @class */ (function () {
    function LancamentoReDueModule() {
    }
    LancamentoReDueModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_lancamento_re_due_index_lancamento_re_due_index_component__WEBPACK_IMPORTED_MODULE_2__["LancamentoReDueIndexComponent"], _lancamento_re_due_filter_lancamento_re_due_filter_component__WEBPACK_IMPORTED_MODULE_5__["LancamentoReDueFilterComponent"], _lancamento_re_due_form_lancamento_re_due_form_component__WEBPACK_IMPORTED_MODULE_6__["LancamentoReDueFormComponent"], _lancamento_re_due_ce_mercante_lancamento_re_due_ce_mercante_component__WEBPACK_IMPORTED_MODULE_7__["LancamentoReDueCeMercanteComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__["SharedModule"],
                _lancamento_re_due_routing_module__WEBPACK_IMPORTED_MODULE_4__["LancamentoReDueRoutingModule"]
            ]
        })
    ], LancamentoReDueModule);
    return LancamentoReDueModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.routing.module.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-re-due/lancamento-re-due.routing.module.ts ***!
  \**************************************************************************************/
/*! exports provided: LancamentoReDueRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MRoutes = [
    {
        path: "",
        component: _lancamento_re_due_index_lancamento_re_due_index_component__WEBPACK_IMPORTED_MODULE_3__["LancamentoReDueIndexComponent"],
        data: { breadcrumb: "lancamentoReDue", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _lancamento_re_due_form_lancamento_re_due_form_component__WEBPACK_IMPORTED_MODULE_4__["LancamentoReDueFormComponent"],
        data: {
            breadcrumb: "lancamentoReDue",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _lancamento_re_due_form_lancamento_re_due_form_component__WEBPACK_IMPORTED_MODULE_4__["LancamentoReDueFormComponent"],
        data: {
            breadcrumb: "lancamentoReDue",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _lancamento_re_due_form_lancamento_re_due_form_component__WEBPACK_IMPORTED_MODULE_4__["LancamentoReDueFormComponent"],
        data: {
            breadcrumb: "lancamentoReDue",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var LancamentoReDueRoutingModule = /** @class */ (function () {
    function LancamentoReDueRoutingModule() {
    }
    LancamentoReDueRoutingModule = __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"]]
        })
    ], LancamentoReDueRoutingModule);
    return LancamentoReDueRoutingModule;
}());



/***/ })

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