(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-nota-fiscal-nota-fiscal-consulta-nota-fiscal-consulta-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component.html":
/*!************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component.html ***!
  \************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"nota-entrada-altera-dados-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'buttons.alterarDados' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\">\r\n                <app-validacoes class=\"us-validacoes\"></app-validacoes>\r\n                <div class=\"modal-body\" *ngIf=\"!!data\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"modeloNota\" class=\"required\">{{ \"labels.modeloNota\" | translate\r\n                                    }}</label>\r\n                                <select class=\"form-control form-control-sm\" id=\"modeloNota\" name=\"modeloNota\"\r\n                                    [(ngModel)]=\"data.modNota\" (change)=\"selectedModeloNota($event)\" required=\"true\">\r\n                                    <option *ngFor=\"let item of modNotas\" value=\"{{ item.modeloNotaId }}\">{{\r\n                                        item.descrModNota }}</option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"chaveNFe\"\r\n                                    [class.required]=\"isRequiredDadosNfe && service.obrChaveNFeEnt && (data.modNota && data.modNota === '55')\">{{'labels.chaveNFE'\r\n                                    | translate}}</label>\r\n                                <div class=\"input-group\">\r\n                                    <input type=\"text\" id=\"chaveNFe\" name=\"chaveNfe\"\r\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.chaveNFE\"\r\n                                        [disabled]=\"data.modNota && data.modNota !== '55'\"\r\n                                        [required]=\"isRequiredDadosNfe && service.obrChaveNFeEnt && (data.modNota && data.modNota === '55')\"\r\n                                        data-title=\"{{'labels.chaveNFE' | translate}}\"\r\n                                        mask=\"0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000\"\r\n                                        (blur)=\"validaChaveNfe()\">\r\n                                    <span class=\"input-group-btn\">\r\n                                        <button type=\"button\" class=\"btn btn-success btn-sm\"\r\n                                            (click)=\"importarDanfe(data.chaveNFE)\" title=\"Importa DANFE\"> <i\r\n                                                class=\"fa fa-search\"></i>\r\n                                        </button>\r\n                                    </span>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label [class.required]=\"isRequiredDadosNfe && service.obrigaSerieNf\">{{'labels.serie'\r\n                                    | translate}}</label>\r\n                                <app-combo-serie-nota id=\"serie\" name=\"serie\" [(ngModel)]=\"data.serieNF\"\r\n                                    [disabled]=\"isDisabledDanfeImportada\"\r\n                                    [required]=\"isRequiredDadosNfe && service.obrigaSerieNf\">\r\n                                </app-combo-serie-nota>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"nota\" class=\"required\">{{'labels.notaFiscal' |\r\n                                    translate}}</label>\r\n                                <input type=\"text\" id=\"nota\" name=\"nota\" class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"data.nota\" [disabled]=\"isDisabledDanfeImportada\" required\r\n                                    data-title=\"{{'labels.nota' | translate}}\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"emissao\" class=\"required\">{{'labels.emissao' |\r\n                                    translate}}</label>\r\n                                <app-data id=\"emissao\" name=\"emissao\" [(ngModel)]=\"data.dtEmissao\" required\r\n                                    [disabled]=\"isDisabledDanfeImportada\" class=\"dataHora\"\r\n                                    [formatDateTime]=\"mascara.getFormatData\"\r\n                                    (executa)=\"validaDtEmissao({'dtEmissao': $event})\"></app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"codIntegracao\">{{'labels.codIntegracao' | translate}}</label>\r\n                                <input type=\"text\" id=\"codIntegracao\" name=\"codIntegracao\"\r\n                                    [(ngModel)]=\"data.codIntegracao\" maxlength=\"30\"\r\n                                    class=\"form-control form-control-sm\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSubmit(form)\">{{ 'buttons.salvar' |\r\n                        translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-filter/nota-fiscal-consulta-filter.component.html":
/*!*********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-filter/nota-fiscal-consulta-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=\"nf-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeNotaFiscal' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                            }}</label>\n                                        <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filtro.dataI\"\n                                            autofocus class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\n                                            required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataF\"\n                                            class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required=\"true\">\n                                        </app-data>\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=\"tipo\">{{'labels.tipo' | translate}}</label>\n                                        <select id=\"tipo\" name=\"tipo\" [(ngModel)]=\"service.filtro.tipoData\"\n                                            class=\"form-control form-control-sm\">\n                                            <option value=\"1\">{{ 'labels.dtEmis' | translate}}</option>\n                                            <option value=\"2\">{{ 'labels.dtEntrada' | translate}}</option>\n                                        </select>\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 [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\n                                            id=\"cliente\" name=\"cliente\" label=\"cliente\" title=\"cliente\"\n                                            modalTitle=\"pesquisaDeCliente\" showCgcCpf=\"false\" showInscricao=\"false\"\n                                            [inSelected]=\"service.filtro.cliente\">\n                                        </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-3\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"_nota\">{{'labels.nota' | translate}}</label>\n                                        <input type=\"text\" id=\"_nota\" name=\"_nota\" [(ngModel)]=\"service.filtro.nota\"\n                                            class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                                <div class=\"col-3\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"autorizacao\">{{'labels.autorizacao' | translate}}</label>\n                                        <input type=\"text\" id=\"autorizacao\" name=\"autorizacao\"\n                                            [(ngModel)]=\"service.filtro.autorizacao\"\n                                            class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                                <div class=\"col-3\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"loteId\">{{'labels.lote' | translate}}</label>\n                                        <input type=\"text\" id=\"loteId\" name=\"loteId\" [(ngModel)]=\"service.filtro.loteId\"\n                                            class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\n                                <div class=\"col-3\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"tipoMov\">{{ 'labels.tipoNfe' | translate}}</label>\n                                        <select [(ngModel)]=\"service.filtro.tipoMov\"\n                                            class=\"form-control form-control-sm\" id=\"tipoMov\" name=\"tipoMov\">\n                                            <option *ngFor=\"let t of tipoMov.get\" value=\"{{t.id}}\">{{ t.descricao\n                                                }}\n                                            </option>\n                                        </select>\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                                        </app-pesquisa-material>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"modeloNota\">{{ \"labels.modeloNota\" | translate\n                                            }}</label>\n                                        <select class=\"form-control form-control-sm\" id=\"modeloNota\" name=\"modeloNota\"\n                                            [(ngModel)]=\"service.filtro.modNota\">\n                                            <option value=\"\">{{'labels.selecione'|translate}}</option>\n                                            <option *ngFor=\"let item of modNotas\" value=\"{{ item.modeloNotaId }}\">{{\n                                                item.descrModNota }}</option>\n                                        </select>\n                                    </div>\n                                </div>\n                                <div class=\"col-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"codIntegracao\">{{'labels.codIntegracao' | translate}}</label>\n                                        <input type=\"text\" id=\"codIntegracao\" name=\"codIntegracao\"\n                                            [(ngModel)]=\"service.filtro.codIntegracao\"\n                                            class=\"form-control form-control-sm\">\n                                    </div>\n                                </div>\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 }}</button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\n                        }}</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-form/nota-fiscal-consulta-form.component.html":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-form/nota-fiscal-consulta-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [formAction]=\"actionForm\" [itemData]=\"notaFiscal.notaFiscalId\">\n</app-menu-command-bar>\n<div class=\"row\">\n    <div class=\"col-lg-12\">\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=\"#ta\">{{ 'labels.dados' | translate }}</a>\n                </li>\n                <li class=\"nav-item\">\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tb\">{{ 'labels.itens' | translate }}</a>\n                </li>\n                <li class=\"nav-item\">\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tc\">{{ 'labels.dadosItens' | translate }}</a>\n                </li>\n                <li class=\"nav-item\">\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#td\">{{ 'labels.notasOrigemRetorno' | translate }}</a>\n                </li>\n                <li class=\"nav-item\" *ngIf=\"showAbaPedidoEmbarque\">\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#te\">{{ 'labels.pedidoEmbarque' | translate }}</a>\n                </li>\n                <li class=\"nav-item\" *ngIf=\"showAbaXML\">\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tf\">{{ 'labels.xml' | translate }}</a>\n                </li>\n            </ul>\n        </div>\n\n        <div class=\"tab-content top\">\n            <div class=\"tab-pane active show\" id=\"ta\">\n                <div class=\"card\">\n                    <div class=\"card-body widget-body\">\n                        <div class=\"text-right text-secondary ng-star-inserted legend\">\n                            <span>{{ 'titles.notaFiscal' | translate }}&emsp;</span>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"notaFiscalId\">{{'labels.nota' | translate}}</label>\n                                    <input id=\"notaFiscalId\" type=\"text\" class=\"form-control form-control-sm\" id=\"nota\"\n                                        name=\"nota\" value=\"{{data?.nota}}\" disabled>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"dtEmissao\">{{'labels.dtEmissao' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"dtEmissao\"\n                                        name=\"dtEmissao\" value=\"{{data?.dtEmissao | date:'dd/MM/yyyy' }}\" disabled>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"TipoMov\">{{'labels.tipo' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"TipoMov\" name=\"TipoMov\"\n                                        value=\"{{data?.tipoMov}}\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-2\">\n                                <label for=\"idCliente\">{{'labels.cliente' | translate}}</label>\n                                <input id=\"idCliente\" name=\"idCliente\" value=\"{{data?.cliente?.destinatarioId}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    class=\"form-control form-control-sm\" disabled>\n                            </div>\n                            <div class=\"col-lg-7\">\n                                <label for=\"nomeCliente\">&nbsp;</label>\n                                <input id=\"nomeCliente\" name=\"nomeCliente\" value=\"{{data?.cliente?.fantasia}}\"\n                                    class=\"form-control form-control-sm\" type=\"text\"\n                                    class=\"form-control form-control-sm\" disabled>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"vlIcms\">{{'labels.icms' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"vlIcms\" name=\"vlIcms\"\n                                        value=\"{{data?.vlIcms | formatCurrency: 2}}\"\n                                        class=\"form-control form-control-sm\" disabled currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"vlIcmsDest\">{{'labels.icmsDest' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"vlIcmsDest\"\n                                        name=\"vlIcmsDest\" value=\"{{data?.vlIcmsDest | formatCurrency: 2}}\"\n                                        class=\"form-control form-control-sm\" disabled currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"fCP\">{{'labels.valorFcp' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"fCP\" name=\"fCP\"\n                                        value=\"{{data?.vlFCP | formatCurrency: 2}}\" class=\"form-control form-control-sm\"\n                                        disabled currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"vlIpi\">{{'labels.ipi' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"vlIpi\" name=\"vlIpi\"\n                                        value=\"{{data?.vlIpi | formatCurrency: 2}}\" class=\"form-control form-control-sm\"\n                                        disabled currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"vlICMSRemet\">{{'labels.icmsRemetente' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"vlICMSRemet\"\n                                        name=\"vlICMSRemet\" value=\"{{data?.vlICMSRemet | formatCurrency: 2}}\"\n                                        class=\"form-control form-control-sm\" disabled currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"vlNota\">{{'labels.total' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"vlNota\" name=\"vlNota\"\n                                        value=\"{{data?.vlNota | formatCurrency: 2}}\"\n                                        class=\"form-control form-control-sm\" disabled currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoLiq\">{{'labels.pesoLiq' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\"\n                                        class=\"form-control form-control-sm\" id=\"pesoLiq\" name=\"pesoLiq\"\n                                        value=\"{{data?.pesoLiq | formatCurrency: 0}}\" disabled currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-6\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\">\n                                        <label for=\"operInc\">{{'labels.emissao' | translate}}</label>\n                                        <input id=\"operInc\" name=\"operInc\" value=\"{{data?.operInc}}\"\n                                            class=\"form-control form-control-sm\" type=\"text\"\n                                            class=\"form-control form-control-sm\" disabled>\n                                    </div>\n                                    <div class=\"col-lg-8\">\n                                        <label for=\"dtOperInc\">&nbsp;</label>\n                                        <input id=\"dtOperInc\" name=\"dtOperInc\"\n                                            value=\"{{data?.dtOperInc | date:'dd/MM/yyyy HH:mm'}}\"\n                                            class=\"form-control form-control-sm\" type=\"text\"\n                                            class=\"form-control form-control-sm\" disabled>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoBru\">{{'labels.pesoBru' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"pesoBru\" name=\"pesoBru\"\n                                        value=\"{{data?.pesoBru | formatCurrency: 0}}\" disabled currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-6\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\">\n                                        <label for=\"operCan\">{{'labels.cancelamento' | translate}}</label>\n                                        <input id=\"operCan\" name=\"operCan\" value=\"{{data?.operCan}}\"\n                                            class=\"form-control form-control-sm\" type=\"text\"\n                                            class=\"form-control form-control-sm\" disabled>\n                                    </div>\n                                    <div class=\"col-lg-8\">\n                                        <label for=\"dtOperCan\">&nbsp;</label>\n                                        <input id=\"dtOperCan\" name=\"dtOperCan\"\n                                            value=\"{{data?.dtOperCan | date:'dd/MM/yyyy HH:mm' }}\"\n                                            class=\"form-control form-control-sm\" type=\"text\"\n                                            class=\"form-control form-control-sm\" disabled>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <br>\n                <div class=\"card\">\n                    <div class=\"card-body widget-body\">\n                        <div class=\"text-right text-secondary ng-star-inserted legend\">\n                            <span>{{ 'titles.notaFiscalEletronica' | translate }}&emsp;</span>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"nfId\">{{'labels.numero' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"nfId\" name=\"nfId\"\n                                        value=\"{{data?.nota}}\" disabled>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-3\"></div>\n                            <div class=\"col-lg-3\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"lbTipoMov\">{{'labels.tipo' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"lbTipoMov\"\n                                        name=\"lbTipoMov\" value=\"{{data.notaServico?.tipoNfe}}\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-9\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"chaveNFE\">{{'labels.chaveNFE' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"chaveNFE\"\n                                        name=\"chaveNFE\" value=\"{{data?.chaveNFE}}\" disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-9\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\">\n                                        <label for=\"situacaoNFe\">{{'labels.situacao' | translate}}</label>\n                                        <input id=\"situacaoNFe\" name=\"situacaoNFe\"\n                                            value=\"{{data?.situacaoNFe}} - {{data?.descrSituacaoNFe}}\"\n                                            class=\"form-control form-control-sm\" type=\"text\"\n                                            class=\"form-control form-control-sm\" disabled>\n                                    </div>\n                                    <div class=\"col-lg-8\">\n                                        <label for=\"descrSituacaoNFe\">&nbsp;</label>\n                                        <span\n                                            *ngIf=\"data?.logDePedidos?.tipoPed === 'L' || data?.logDePedidos?.tipoPed === 'R'\">\n                                            <input id=\"descrSituacaoNFe\" name=\"descrSituacaoNFe\"\n                                                value=\"{{notaFiscalTipoEventoManifesto?.nfeDesrcEvento}}\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                class=\"form-control form-control-sm\" disabled>\n                                        </span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-9\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"numReciboNfe\">{{'labels.recibo' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"numReciboNfe\"\n                                        name=\"numReciboNfe\"\n                                        value=\"{{data.notaServico?.numReciboNfe}} - {{data.notaServico?.dataReciboNfe | date:'dd/MM/yyyy HH:mm'}}\"\n                                        disabled>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-9\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"numReciboCancNfe\">{{'labels.reciboCanc' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"numReciboCancNfe\"\n                                        name=\"numReciboCancNfe\"\n                                        value=\"{{data.notaFiscalNfeProtocoloCanc?.numReciboNFe}} - {{data.notaFiscalNfeProtocoloCanc?.dataReciboNfe | date:'dd/MM/yyyy HH:mm'}}\"\n                                        disabled>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <br>\n                <div class=\"row\">\n                    <div class=\"col-lg-6\"></div>\n                    <div class=\"col-lg-6 text-center\">\n\n                    </div>\n                </div>\n            </div>\n            <div class=\"tab-pane\" id=\"tb\">\n                <div class=\"card\">\n                    <div class=\"card-body widget-body\">\n                        <div class=\"row\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-3\">\n                                                <label for=\"material\">{{'labels.produto' | translate}}</label>\n                                                <input id=\"material\" name=\"material\" value=\"{{dataItem.material}}\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    class=\"form-control form-control-sm\" disabled>\n                                            </div>\n                                            <div class=\"col-lg-9\">\n                                                <label for=\"descrMaterial\">&nbsp;</label>\n                                                <input id=\"descrMaterial\" name=\"descrMaterial\"\n                                                    value=\"{{dataItem.descrMater}}\" class=\"form-control form-control-sm\"\n                                                    type=\"text\" class=\"form-control form-control-sm\" disabled>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"quantid\">{{'labels.quantidade' | translate}}</label>\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"quantid\"\n                                                name=\"quantid\" value=\"{{dataItem.quantid | formatCurrency: 0}}\" disabled\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-4\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"preco\">{{'labels.preco' | translate}}</label>\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"preco\"\n                                                name=\"preco\" value=\"{{dataItem.preco | formatCurrency: 9}}\" disabled\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 9 }\">\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-4\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqIpi\">{{'labels.ipi' | translate}}</label>\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"aliqIpi\"\n                                                name=\"aliqIpi\" value=\"{{dataItem.aliqIpi | formatCurrency: 2}}\" disabled\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\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=\"natureza\">{{'labels.natureza' | translate}}</label>\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"natureza\"\n                                                name=\"natureza\" value=\"{{dataItem.natureza}}\" disabled>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-3\">\n                                                <label for=\"operacao\">{{'labels.operacao' | translate}}</label>\n                                                <input id=\"operacao\" name=\"operacao\" value=\"{{dataItem?.operacao}}\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    class=\"form-control form-control-sm\" disabled>\n                                            </div>\n                                            <div class=\"col-lg-9\">\n                                                <label for=\"descrOperacao\">&nbsp;</label>\n                                                <input id=\"descrOperacao\" name=\"descrOperacao\"\n                                                    value=\"{{dataItem?.descrOperacao}}\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    class=\"form-control form-control-sm\" disabled>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-6\">\n                                                <label for=\"aliqFCP\">{{'labels.fcp' | translate}}</label> %\n                                                <input id=\"aliqFCP\" name=\"aliqFCP\"\n                                                    value=\"{{dataItem?.aliqFCP | formatCurrency: 2}}\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    class=\"form-control form-control-sm\" disabled currencyMask\n                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                            </div>\n                                            <div class=\"col-lg-6\">\n                                                <label for=\"vlFCP_Item\">&nbsp;</label>\n                                                <input id=\"vlFCP_Item\" name=\"vlFCP_Item\"\n                                                    value=\"{{dataItem.vlFCP_Item | formatCurrency: 2}}\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    class=\"form-control form-control-sm\" disabled currencyMask\n                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\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=\"aliqIcmsInter\">{{'labels.icmsInter' | translate}}</label> %\n                                            <input type=\"text\" class=\"form-control form-control-sm\" id=\"aliqIcmsInter\"\n                                                name=\"aliqIcmsInter\"\n                                                value=\"{{dataItem.aliqIcmsInter | formatCurrency: 2}}\" disabled\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2}\">\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=\"aliqICMSInterPart\">{{'labels.partilhaIcms' |\n                                                translate}}</label> %\n                                            <input type=\"text\" class=\"form-control form-control-sm\"\n                                                id=\"aliqICMSInterPart\" name=\"aliqICMSInterPart\"\n                                                value=\"{{dataItem.aliqICMSInterPart | formatCurrency: 2}}\" disabled\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2}\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"row\">\n                                            <div class=\"col-lg-6\">\n                                                <label for=\"aliqICMSDest\">{{'labels.icmsDestino' | translate}}</label> %\n                                                <input id=\"aliqICMSDest\" name=\"aliqICMSDest\"\n                                                    value=\"{{dataItem.aliqICMSDest | formatCurrency: 2}}\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    class=\"form-control form-control-sm\" disabled currencyMask\n                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                            </div>\n                                            <div class=\"col-lg-6\">\n                                                <label for=\"vlICMSDest_item\">&nbsp;</label>\n                                                <input id=\"vlICMSDest_item\" name=\"vlICMSDest_item\"\n                                                    value=\"{{dataItem?.vlICMSDest_item | formatCurrency: 2}}\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    class=\"form-control form-control-sm\" disabled currencyMask\n                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\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=\"vlICMSRemet_Item\">{{'labels.icmsRemetente' | translate}}</label>\n                                            <input type=\"text\" class=\"form-control form-control-sm\"\n                                                id=\"vlICMSRemet_Item\" name=\"vlICMSRemet_Item\"\n                                                value=\"{{dataItem?.vlICMSRemet_Item | formatCurrency: 2}}\" disabled\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <blockquote class=\"card-bodyquote\">\n                                    <div class=\"table-overflow\">\n                                        <table\n                                            class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\n                                            <thead>\n                                                <tr>\n                                                    <th class=\"text-center\">{{ 'labels.produto' | translate }}</th>\n                                                    <th class=\"text-center\">{{ 'labels.descricao' | translate }}</th>\n                                                    <th class=\"text-center\">{{ 'labels.quantidade' | translate }}</th>\n                                                    <th class=\"text-center\">{{ 'labels.precoUnitario' | translate }}\n                                                    </th>\n                                                </tr>\n                                            </thead>\n\n                                            <tbody>\n                                                <tr *ngFor=\"let c of data.notaFiscalItens \" class=\"clickable\"\n                                                    [ngClass]=\"{ 'info' : c.notaFiscalId == data.notaFiscalId }\"\n                                                    (click)=\"(dataItem = c)\">\n                                                    <td class=\"text-center\">{{ c.material}}</td>\n                                                    <td class=\"text-center\">{{ c.descrMater }}</td>\n                                                    <td class=\"text-center\">{{ getNumber(c.quantid, 0) }}</td>\n                                                    <td class=\"text-center\">{{ getNumber(c.preco, 9) }}</td>\n                                                </tr>\n\n                                            </tbody>\n                                        </table>\n                                    </div>\n                                </blockquote>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"tab-pane\" id=\"tc\">\n                <div class=\"card\">\n                    <div class=\"card-body widget-body\">\n                        <blockquote class=\"card-bodyquote\">\n                            <div class=\"table-overflow\">\n                                <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\n                                    <thead>\n                                        <tr>\n                                            <th class=\"text-center\">{{ 'labels.autorizacao' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.kilos' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.litros' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.quantidade' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.deposito' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.lote' | translate }}</th>\n                                        </tr>\n                                    </thead>\n\n                                    <tbody>\n                                        <tr *ngFor=\"let c of data.notaFiscalDadosItens\" class=\"clickable\"\n                                            [ngClass]=\"{ 'info' : c.notaFiscalId == data.notaFiscalId }\">\n\n                                            <td class=\"text-center\">{{ c.autorizacao}}</td>\n                                            <td class=\"text-center\">{{ getNumber(c.kilos, 0) }}</td>\n                                            <td class=\"text-center\">{{ getNumber(c.litros, 0) }}</td>\n                                            <td class=\"text-center\">{{ getNumber(c.quantid, 0) }}</td>\n                                            <td class=\"text-center\">{{ c.deposito }}</td>\n                                            <td class=\"text-center\">{{ c.lote }}</td>\n                                        </tr>\n                                        <tr *ngIf=\"!data?.notaFiscalDadosItens\">\n                                            <th colspan=\"6\">\n                                                {{'messages.nenhumRegistroEncontrado' | translate }}\n                                            </th>\n                                        </tr>\n                                    </tbody>\n                                </table>\n                            </div>\n                        </blockquote>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"tab-pane\" id=\"td\">\n                <div class=\"card\">\n                    <div class=\"card-body widget-body\">\n                        <blockquote class=\"card-bodyquote\">\n                            <div class=\"table-overflow\">\n                                <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\n                                    <thead>\n                                        <tr>\n                                            <th class=\"text-center\">{{ 'labels.tipo' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.nota' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.emissao' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.kilos' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.litros' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.valor' | translate }}</th>\n                                        </tr>\n                                    </thead>\n                                    <tbody>\n                                        <tr *ngFor=\"let c of data.notaFiscalOrigemRetorno\" class=\"clickable\"\n                                            [ngClass]=\"{ 'info' : c === dataAuxNotaFiscalOrigemRetorno }\"\n                                            (click)=\"(dataAuxNotaFiscalOrigemRetorno = c)\">\n                                            <td class=\"text-center\">{{ c.descrTipoReg}}</td>\n                                            <td class=\"text-center\">{{ c.notaOri }}</td>\n                                            <td class=\"text-center\">{{ c.dtEmissao | date:'dd/MM/yyyy'}}</td>\n                                            <td class=\"text-center\">{{ getNumber(c.kilos, 0) }}</td>\n                                            <td class=\"text-center\">{{ getNumber(c.litros, 0) }}</td>\n                                            <td class=\"text-center\">{{ getNumber(c.vlNota, 2) }}</td>\n                                        </tr>\n                                    </tbody>\n                                </table>\n                            </div>\n                        </blockquote>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"tab-pane\" id=\"te\">\n                <div class=\"card\">\n                    <div class=\"card-body widget-body\">\n                        <blockquote class=\"card-bodyquote\">\n                            <div class=\"table-overflow\">\n                                <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\n                                    <thead>\n                                        <tr>\n                                            <th class=\"text-center\">{{ 'labels.item' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.laudo' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.data' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.navio' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.viagem' | translate }}</th>\n                                        </tr>\n                                    </thead>\n                                    <tbody>\n                                        <tr *ngFor=\"let c of data.consultaPedido\" class=\"clickable\"\n                                            [ngClass]=\"{ 'info' : c.notaFiscalId == data.notaFiscalId }\">\n                                            <td class=\"text-center\">{{ c.item}}</td>\n                                            <td class=\"text-center\">{{ c.numLaudo }}</td>\n                                            <td class=\"text-left\">{{ c.dtEmissao | date:'dd/MM/yyyy' }}</td>\n                                            <td class=\"text-left\">{{ c.descrNavio }}</td>\n                                            <td class=\"text-left\">{{ c.viagem}}</td>\n                                        </tr>\n\n                                    </tbody>\n                                </table>\n                            </div>\n                        </blockquote>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"tab-pane\" id=\"tf\">\n                <div class=\"card\">\n                    <div class=\"card-body widget-body\">\n                        <div class=\"col-12\">\n                            <div class=\"row\">\n                                <div class=\"btn-group\" role=\"group\">\n                                    <div class=\"mr-1\">\n                                        <button class=\"btn btn-success\" (click)=\"carregaContato()\" type=\"button\">{{\n                                            'buttons.emailCadastrado' | translate }}\n                                        </button>\n                                    </div>\n                                    <div class=\"mr-1\">\n                                        <button class=\"btn btn-success\" (click)=\"enviaEmail()\" type=\"button\"\n                                            [disabled]=\"contatos === '' || contatos === null || !contatos ? true: false\">{{\n                                            'buttons.enviarPorEmail' | translate }}\n                                        </button>\n                                    </div>\n                                    <div class=\"mr-1\">\n                                        <button class=\"btn btn-success\" (click)=\"geraXml()\" type=\"button\">{{\n                                            'buttons.gerarNovoXml'\n                                            | translate }}\n                                        </button>\n                                    </div>\n                                    <div class=\"mr-1\">\n                                        <button class=\"btn btn-success\" (click)=\"copyInputMessage(xmlText)\"\n                                            type=\"button\">{{\n                                            'buttons.copiarConteudo' | translate }}\n                                        </button>\n                                    </div>\n                                    <div class=\"mr-1\">\n                                        <button class=\"btn btn-success\" (click)=\"downloadFileXml() \" type=\"button\"\n                                            [disabled]=\"!this.data || !this.data.notaFiscalXml || !this.data.notaFiscalXml.xml || this.data.notaFiscalXml.xml === '' ? true: false\">{{\n                                            'buttons.salvarXml' | translate }}\n                                        </button>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"email\">{{'labels.email' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"email\" name=\"email\"\n                                        [(ngModel)]=\"contatos\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group\">\n                                    <label>{{'labels.xml' | translate}}</label>\n                                    <textarea id=\"xml\" class=\"form-control\" rows=\"20\" #xmlText\n                                        value=\"{{getXml}}\"></textarea>\n\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-nota-fiscal-consulta-filter [data]=\"filtro\"></app-nota-fiscal-consulta-filter>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-index/nota-fiscal-consulta-index.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-index/nota-fiscal-consulta-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [itemData]=\"service.data.notaFiscalId\">\n</app-menu-command-bar>\n\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtNotaFiscal\" 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-nota-fiscal-consulta-filter (filtrar)=\"executaFiltro()\"></app-nota-fiscal-consulta-filter>\n<app-nota-fiscal-consulta-altera-dados (out)=\"refresh()\"></app-nota-fiscal-consulta-altera-dados>");

/***/ }),

/***/ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: NotaFiscalConsultaAlteraDadosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalConsultaAlteraDadosComponent", function() { return NotaFiscalConsultaAlteraDadosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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 _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/modelo-nota/modelo-nota.service */ "./src/app/pages/cadastro/modelo-nota/modelo-nota.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../nota-fiscal.service */ "./src/app/pages/nota-fiscal/nota-fiscal.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var NotaFiscalConsultaAlteraDadosComponent = /** @class */ (function () {
    function NotaFiscalConsultaAlteraDadosComponent(service, messageService, funcoesService, modeloNotaService) {
        this.service = service;
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.modeloNotaService = modeloNotaService;
        this.out = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.modNotas = [];
        this.mensagens = [];
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_8__["Mascaras"]();
    }
    NotaFiscalConsultaAlteraDadosComponent.prototype.open = function (regNota, tipo) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(undefined);
        this.tipo = tipo;
        this.modNotas = [];
        this.modeloNotaService.get().subscribe(function (resp) {
            if (resp) {
                _this.modNotas = resp.filter(function (val) {
                    if (val.flagAtivo === "S" && val.sitReg !== 'E') {
                        return val;
                    }
                });
            }
        });
        this.service.getById(regNota).subscribe(function (r) { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.data = r;
                this.nota = r.nota;
                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["ModalUtilsStaticService"].openModal("nota-entrada-altera-dados-dialog");
                return [2 /*return*/];
            });
        }); });
    };
    NotaFiscalConsultaAlteraDadosComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.tipo === "E" && this.data.modNota === "55" && !this.validaChaveNfe()) {
            return;
        }
        this.service.alteraDados({
            regNota: this.data.notaFiscalId,
            modNota: this.data.modNota,
            chaveNFE: this.data.chaveNFE,
            dtEmissao: this.data.dtEmissao,
            nota: this.data.nota,
            serieNF: this.data.serieNF,
            codIntegrcao: this.data.codIntegrcao,
        }).subscribe(function (resp) {
            if (!resp.isValid) {
                _this.mensagens = _this.messageService.validationResult(resp);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(_this.mensagens);
                return;
            }
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["ModalUtilsStaticService"].closeModal("nota-entrada-altera-dados-dialog", function (_) { return _this.out.emit(); });
        });
    };
    NotaFiscalConsultaAlteraDadosComponent.prototype.validaDtEmissao = function (params) {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].maiorAHoje(params.dtEmissao)) {
            this.messageService.warning("titles.notaEntrada", "messages.dataNaoPodeSerMaiorQueAtual");
            return;
        }
    };
    NotaFiscalConsultaAlteraDadosComponent.prototype.selectedModeloNota = function (e) {
        if (!e || (e && (e.target.value === "0" || e.target.value === ""))) {
            return;
        }
        this.data.chaveNFE = null;
    };
    NotaFiscalConsultaAlteraDadosComponent.prototype.validaChaveNfe = function () {
        if (this.tipo === "E" && this.funcoesService.isNotUndefinedOrNull(this.data) && this.funcoesService.isNotUndefinedOrNull(this.data.chaveNFE)) {
            if (this.funcoesService.stringUtils.isEmpty(this.data.nota)) {
                this.data.nota = +this.funcoesService.getNumeroNota(this.data.chaveNFE);
            }
            if (this.funcoesService.stringUtils.isEmpty(this.data.serieNF)) {
                this.data.serieNF = this.funcoesService.getSerieNota(this.data.chaveNFE);
            }
            var result = this.funcoesService.validaChaveNFe(this.data.chaveNFE, this.data.cliente, this.data.nota, this.data.serieNF);
            if (!result) {
                this.messageService.warning("titles.validacao", "messages.chaveNfeInvalida");
                return false;
            }
            return true;
        }
        return false;
    };
    NotaFiscalConsultaAlteraDadosComponent.prototype.importarDanfe = function (chave) {
        var _this = this;
        if (this.funcoesService.isUndefinedOrNull(chave) || (!this.funcoesService.isUndefinedOrNull(chave) && chave.trim() === '')) {
            this.messageService.info('labels.chaveNFE', 'messages.chaveNfeDeveSerInformada');
            return;
        }
        if (!this.validaChaveNfe())
            return;
        this.funcoesService.nfeHelper.importaDanfe({
            "chave": chave,
            "destinatarioIdCliente": this.data.destinatarioIdCliente
        })
            .subscribe(function (result) {
            if (!result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(_this.mensagens);
                return;
            }
            _this.data.nfeAuto = "S";
            _this.data.serieNF = result.serie;
            _this.data.nota = result.numero;
            _this.data.dtEmissao = result.dtEmissao;
        });
    };
    Object.defineProperty(NotaFiscalConsultaAlteraDadosComponent.prototype, "isRequiredDadosNfe", {
        get: function () {
            if (!this.data)
                return false;
            return this.data.modNota === "55";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(NotaFiscalConsultaAlteraDadosComponent.prototype, "isDisabledDanfeImportada", {
        get: function () {
            if (!this.data)
                return true;
            if (app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["BooleanUtilsStaticService"].toBoolean(this.data.nfeAuto))
                return true;
            if (this.isRequiredDadosNfe && app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["BooleanUtilsStaticService"].toBoolean(this.importaDanfeTmp))
                return true;
            return false;
        },
        enumerable: true,
        configurable: true
    });
    NotaFiscalConsultaAlteraDadosComponent.ctorParameters = function () { return [
        { type: _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_9__["NotaFiscalService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_pages_cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_6__["ModeloNotaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], NotaFiscalConsultaAlteraDadosComponent.prototype, "out", void 0);
    NotaFiscalConsultaAlteraDadosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-nota-fiscal-consulta-altera-dados",
            template: __importDefault(__webpack_require__(/*! raw-loader!./nota-fiscal-consulta-altera-dados.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_nota_fiscal_service__WEBPACK_IMPORTED_MODULE_9__["NotaFiscalService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_pages_cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_6__["ModeloNotaService"]])
    ], NotaFiscalConsultaAlteraDadosComponent);
    return NotaFiscalConsultaAlteraDadosComponent;
}());



/***/ }),

/***/ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-filter/nota-fiscal-consulta-filter.component.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-filter/nota-fiscal-consulta-filter.component.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: NotaFiscalConsultaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalConsultaFilterComponent", function() { return NotaFiscalConsultaFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../cadastro/modelo-nota/modelo-nota.service */ "./src/app/pages/cadastro/modelo-nota/modelo-nota.service.ts");
/* harmony import */ var _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../nota-fiscal.model */ "./src/app/pages/nota-fiscal/nota-fiscal.model.ts");
/* harmony import */ var _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../nota-fiscal.service */ "./src/app/pages/nota-fiscal/nota-fiscal.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 NotaFiscalConsultaFilterComponent = /** @class */ (function () {
    function NotaFiscalConsultaFilterComponent(service, destinatarioService, modeloNotaService) {
        this.service = service;
        this.destinatarioService = destinatarioService;
        this.modeloNotaService = modeloNotaService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.statusNfe = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["StatusNfe"]();
        this.tipoMov = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["TipoMov"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.modNotas = [];
    }
    NotaFiscalConsultaFilterComponent.prototype.ngOnInit = function () {
        var _this = this;
        if (this.service.filtro) {
            if (this.service.filtro.destinatarioIdCliente > 0) {
                this.destinatarioService.getById(this.service.filtro.destinatarioIdCliente).subscribe(function (resp) {
                    if (resp) {
                        _this.service.filtro.cliente = resp;
                    }
                });
            }
        }
        this.modeloNotaService.get().subscribe(function (resp) {
            if (resp) {
                _this.modNotas = resp.filter(function (val) {
                    if (val.flagAtivo === "S" && val.sitReg !== 'E') {
                        return val;
                    }
                });
            }
        });
    };
    NotaFiscalConsultaFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.filtrar.emit();
            jQuery("#nf-filter-dialog").modal("hide");
        }
    };
    NotaFiscalConsultaFilterComponent.ctorParameters = function () { return [
        { type: _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_5__["NotaFiscalService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_2__["DestinatarioService"] },
        { type: _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_3__["ModeloNotaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalFilter"])
    ], NotaFiscalConsultaFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], NotaFiscalConsultaFilterComponent.prototype, "filtrar", void 0);
    NotaFiscalConsultaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-nota-fiscal-consulta-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./nota-fiscal-consulta-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-filter/nota-fiscal-consulta-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_nota_fiscal_service__WEBPACK_IMPORTED_MODULE_5__["NotaFiscalService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_2__["DestinatarioService"],
            _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_3__["ModeloNotaService"]])
    ], NotaFiscalConsultaFilterComponent);
    return NotaFiscalConsultaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-form/nota-fiscal-consulta-form.component.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-form/nota-fiscal-consulta-form.component.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: NotaFiscalConsultaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalConsultaFormComponent", function() { return NotaFiscalConsultaFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_email_email_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/email/email.module */ "./src/app/shared/services/funcoes/email/email.module.ts");
/* harmony import */ var _shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/email/email.service */ "./src/app/shared/services/funcoes/email/email.service.ts");
/* harmony import */ var _cadastro_contatos_contatos_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../cadastro/contatos/contatos.service */ "./src/app/pages/cadastro/contatos/contatos.service.ts");
/* harmony import */ var _cadastro_operacao_operacao_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../cadastro/operacao/operacao.model */ "./src/app/pages/cadastro/operacao/operacao.model.ts");
/* harmony import */ var _comercial_pedido_de_embarque_pedido_de_embarque_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../comercial/pedido-de-embarque/pedido-de-embarque.model */ "./src/app/pages/comercial/pedido-de-embarque/pedido-de-embarque.model.ts");
/* harmony import */ var _comercial_pedido_de_embarque_pedido_de_embarque_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../comercial/pedido-de-embarque/pedido-de-embarque.service */ "./src/app/pages/comercial/pedido-de-embarque/pedido-de-embarque.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../nota-fiscal.model */ "./src/app/pages/nota-fiscal/nota-fiscal.model.ts");
/* harmony import */ var _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../nota-fiscal.service */ "./src/app/pages/nota-fiscal/nota-fiscal.service.ts");
/* harmony import */ var _nota_fiscal_consulta_constants__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../nota-fiscal-consulta.constants */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta.constants.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

















var NotaFiscalConsultaFormComponent = /** @class */ (function (_super) {
    __extends(NotaFiscalConsultaFormComponent, _super);
    function NotaFiscalConsultaFormComponent(router, funcoesService, notaFiscalService, contatosService, loginService, pedidoDeEmbarqueService, emailService, activatedRoute, permissoesUtils, messageService) {
        var _this = _super.call(this, new _nota_fiscal_consulta_constants__WEBPACK_IMPORTED_MODULE_16__["NotaFiscalConsultaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.funcoesService = funcoesService;
        _this.notaFiscalService = notaFiscalService;
        _this.contatosService = contatosService;
        _this.loginService = loginService;
        _this.pedidoDeEmbarqueService = pedidoDeEmbarqueService;
        _this.emailService = emailService;
        _this.activatedRoute = activatedRoute;
        _this.permissoesUtils = permissoesUtils;
        _this.messageService = messageService;
        _this.acoesNota = [];
        _this.notaFiscal = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscal"]();
        _this.notaFiscalItens = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalItem"]();
        _this.notaFiscalDadosItens = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalDadosItem"]();
        _this.notaFiscalTipoEventoManifesto = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalTipoEventoManifesto"]();
        _this.notaFiscalNfeProtocoloAut = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalNfeProtocoloAut"]();
        _this.notaFiscalNfeProtocoloCanc = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalNfeProtocoloCanc"]();
        _this.consultaPedido = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["ConsultaNotaPedidoEmbarque"]();
        _this.notaEntrada = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalEntradaSaida"]();
        _this.notaSaida = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalEntradaSaida"]();
        _this.notaMovimentacao = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalMovimentacao"]();
        _this.pedidoDeEmbarque = new _comercial_pedido_de_embarque_pedido_de_embarque_model__WEBPACK_IMPORTED_MODULE_11__["PedidoDeEmbarque"]();
        _this.operacao = new _cadastro_operacao_operacao_model__WEBPACK_IMPORTED_MODULE_10__["Operacao"]();
        _this.data = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscal"]();
        _this.dataItem = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalItem"]();
        _this.dadosEmbarque = [];
        _this.dataAuxEmbarque = new _comercial_pedido_de_embarque_pedido_de_embarque_model__WEBPACK_IMPORTED_MODULE_11__["PedidoDeEmbarque"]();
        _this.filtro = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalFilter"]();
        _this.constantes = new _nota_fiscal_consulta_constants__WEBPACK_IMPORTED_MODULE_16__["NotaFiscalConsultaConstants"]();
        _this.conNotaFiscalOrigem = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["ConNotaDtoOrigemRetorno"]();
        _this.email = new _shared_services_funcoes_email_email_module__WEBPACK_IMPORTED_MODULE_7__["Email"]();
        _this.notaFiscalXml = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalXml"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    NotaFiscalConsultaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.getXmlById(id);
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    NotaFiscalConsultaFormComponent.prototype.getXmlById = function (id) {
        var _this = this;
        this.notaFiscalService.getById(id).subscribe(function (resp) {
            _this.data = resp;
            _this.data.vlIcms = resp.conNotaDtoOrigemRetorno[0].vlIcms;
            _this.data.vlIpi = resp.conNotaDtoOrigemRetorno[0].vlIpi;
            _this.data.vlIcmsDest = resp.conNotaDtoOrigemRetorno[0].vlIcmsDest;
            _this.data.vlICMSRemet = resp.conNotaDtoOrigemRetorno[0].vlIcmsRemet;
            _this.data.vlFCP = resp.conNotaDtoOrigemRetorno[0].vlFCP;
            if (resp.notaFiscalItens) {
                _this.dataItem = resp.notaFiscalItens[0];
            }
            if (_this.data.notaServico && _this.data.notaServico.dataReciboNfe && _this.data.notaServico.dataReciboNfe !== "") {
                _this.data.notaServico.dataReciboNfe = new Date(_this.data.notaServico.dataReciboNfe);
            }
        });
    };
    NotaFiscalConsultaFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/notaFiscal/consulta"]);
    };
    NotaFiscalConsultaFormComponent.prototype.carregaContato = function () {
        if (this.data.notaFiscalId > 0) {
            this.contatos = this.data.emailContatos.join(";");
            if (!this.contatos || (this.contatos && this.contatos.trim() === "")) {
                this.messageService.warning("titles.notaFiscal", "messages.naoTemEmailsCadastrados");
                return;
            }
        }
    };
    NotaFiscalConsultaFormComponent.prototype.enviaEmail = function () {
        var _this = this;
        if (!this.contatos || (this.contatos && this.contatos.trim() === "")) {
            this.messageService.success("titles.notaFiscal", "messages.naoTemDados");
            return;
        }
        var data = { notaFiscalId: this.data.notaFiscalId, contatos: this.contatos };
        this.notaFiscalService.enviarXml(data).subscribe(function (resp) {
            _this.data = resp;
            var mensagens = _this.messageService.validationResult(resp.validationResult);
            if (!resp.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(mensagens);
                _this.funcoesService.backToTop();
                return;
            }
            else {
                _this.messageService.info("titles.notaFiscal", "messages.emailEnviadoSucesso");
            }
        });
    };
    NotaFiscalConsultaFormComponent.prototype.geraXml = function () {
        var _this = this;
        this.filtro.notaFiscalId = this.data.notaFiscalId;
        this.filtro.destinatarioIdCliente = this.data.codDest;
        this.filtro.filialId = this.loginService.getLogin().filialId;
        this.filtro.serieNF = this.data.serieNF;
        var date = new Date();
        date.setFullYear(2010);
        var filter = {
            serieNF: this.data.serieNF,
            filialId: this.loginService.getLogin().filialId,
            notaFiscalIdI: this.data.nota,
            destinatarioIdCliente: this.data.codDest,
            notaFiscalIdF: this.data.nota,
            dataI: date,
            dataF: new Date()
        };
        this.notaFiscalService.geraXml(filter).subscribe(function (resp) {
            if (resp) {
                if (resp && !resp.isValid) {
                    var mensagens = _this.messageService.validationResult(resp.message);
                    _this.messageService.error("titles.notaFiscal", resp.message);
                    return;
                }
                else {
                    _this.messageService.success("titles.notaFiscal", "messages.xmlGerado");
                    var id = _this.activatedRoute.snapshot.paramMap.get("id");
                    if (id) {
                        _this.getXmlById(id);
                    }
                }
            }
        });
    };
    Object.defineProperty(NotaFiscalConsultaFormComponent.prototype, "getXml", {
        get: function () {
            if (!this.data || !this.data.notaFiscalXml || !this.data.notaFiscalXml.xml || this.data.notaFiscalXml.xml.trim() === "") {
                return "";
            }
            return this.funcoesService.stringUtils.formatacaoXml(atob(this.data.notaFiscalXml.xml));
        },
        enumerable: true,
        configurable: true
    });
    NotaFiscalConsultaFormComponent.prototype.copyInputMessage = function (textarea) {
        if (!this.data || !this.data.notaFiscalXml || !this.data.notaFiscalXml.xml || this.data.notaFiscalXml.xml === "") {
            return "";
        }
        textarea.select();
        document.execCommand('copy');
        textarea.setSelectionRange(0, 0);
        this.messageService.success("titles.notaFiscal", "messages.copiado");
    };
    NotaFiscalConsultaFormComponent.prototype.downloadFileXml = function () {
        if (!this.data || !this.data.notaFiscalXml || !this.data.notaFiscalXml.xml || this.data.notaFiscalXml.xml.trim() === "") {
            this.messageService.warning("titles.notaFiscal", "messages.naoTemXml");
            return;
        }
        this.download(this.getXml, this.data.chaveNFE + '-nfe.xml', null);
    };
    NotaFiscalConsultaFormComponent.prototype.download = function (content, filename, contentType) {
        if (!contentType) {
            contentType = 'application/octet-stream';
        }
        var a = document.createElement('a');
        var blob = new Blob([content], { 'type': contentType });
        a.href = window.URL.createObjectURL(blob);
        a.download = filename;
        a.click();
    };
    NotaFiscalConsultaFormComponent.prototype.atualizaRecibo = function () {
    };
    NotaFiscalConsultaFormComponent.prototype.reciboDeCancelamento = function () {
    };
    NotaFiscalConsultaFormComponent.prototype.getNumber = function (val, decimais) {
        var result = 0;
        if (this.funcoesService.isNotUndefinedOrNull(val)) {
            val = parseFloat(val);
            result = val > 0 ? val.toFixed(decimais) : 0;
        }
        return this.funcoesService.numberUtils.getCurrency(parseFloat(result.toString()), decimais);
    };
    Object.defineProperty(NotaFiscalConsultaFormComponent.prototype, "showAbaPedidoEmbarque", {
        get: function () {
            return this.data.tipoMov === "E";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(NotaFiscalConsultaFormComponent.prototype, "showAbaXML", {
        get: function () {
            return this.data.tipoMov === "S";
        },
        enumerable: true,
        configurable: true
    });
    NotaFiscalConsultaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_15__["NotaFiscalService"] },
        { type: _cadastro_contatos_contatos_service__WEBPACK_IMPORTED_MODULE_9__["ContatosService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"] },
        { type: _comercial_pedido_de_embarque_pedido_de_embarque_service__WEBPACK_IMPORTED_MODULE_12__["PedidoDeEmbarqueService"] },
        { type: _shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_8__["EmailService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] },
        { type: _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] }
    ]; };
    NotaFiscalConsultaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-nota-fiscal-consulta-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./nota-fiscal-consulta-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-form/nota-fiscal-consulta-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_15__["NotaFiscalService"],
            _cadastro_contatos_contatos_service__WEBPACK_IMPORTED_MODULE_9__["ContatosService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"],
            _comercial_pedido_de_embarque_pedido_de_embarque_service__WEBPACK_IMPORTED_MODULE_12__["PedidoDeEmbarqueService"],
            _shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_8__["EmailService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"],
            _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"]])
    ], NotaFiscalConsultaFormComponent);
    return NotaFiscalConsultaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-index/nota-fiscal-consulta-index.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-index/nota-fiscal-consulta-index.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: NotaFiscalConsultaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalConsultaIndexComponent", function() { return NotaFiscalConsultaIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../nota-fiscal.model */ "./src/app/pages/nota-fiscal/nota-fiscal.model.ts");
/* harmony import */ var _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../nota-fiscal.service */ "./src/app/pages/nota-fiscal/nota-fiscal.service.ts");
/* harmony import */ var _nota_fiscal_altera_dados_nota_fiscal_consulta_altera_dados_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component.ts");
/* harmony import */ var _nota_fiscal_consulta_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../nota-fiscal-consulta.constants */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta.constants.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var NotaFiscalConsultaIndexComponent = /** @class */ (function (_super) {
    __extends(NotaFiscalConsultaIndexComponent, _super);
    function NotaFiscalConsultaIndexComponent(router, funcoesService, notaFiscalService, permissoesUtils, datatablesService, messageService, loginService, configuracao, service) {
        var _this = _super.call(this, new _nota_fiscal_consulta_constants__WEBPACK_IMPORTED_MODULE_12__["NotaFiscalConsultaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.funcoesService = funcoesService;
        _this.notaFiscalService = notaFiscalService;
        _this.permissoesUtils = permissoesUtils;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.service = service;
        _this.notaFiscal = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_9__["NotaFiscal"]();
        _this.dados = [];
        _this.constantes = new _nota_fiscal_consulta_constants__WEBPACK_IMPORTED_MODULE_12__["NotaFiscalConsultaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.filtrar = function () {
            if (_this.service.filtro.mostrarFiltro) {
                jQuery("#nf-filter-dialog").modal("show");
            }
            else {
                _this.refresh();
                _this.service.filtro.mostrarFiltro = true;
            }
        };
        _this.alterarDados = function () {
            _this.permissoesUtils.validRotina(_this.constantes.sisFormularioId, 8, function () { return _this.alteraDados.open(_this.service.data.notaFiscalId, _this.service.data.tipoMov); }, function () { });
        };
        _this._print = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () { return _this.print(); }, function () { }, true);
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    NotaFiscalConsultaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, function () { return _this.loadConfig(); });
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.filtrar();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: '_print', func: function () { return _this._print; } },
            { action: 'alterarDados', func: function () { return _this.alterarDados; } },
        ]);
    };
    NotaFiscalConsultaIndexComponent.prototype.loadConfig = function () {
        this.service.obrChaveNFeEnt = this.configuracao.boolean("UNI", "ObrChaveNFeEnt");
        this.service.obrigaSerieNf = this.configuracao.boolean("STO", "ObrigaSerieNf");
        var alteraDadosNota = this.configuracao.boolean("BAL", "AlteraDadosNota");
        this.buttonVisible('listaIndex', 'alterarDados', alteraDadosNota);
    };
    NotaFiscalConsultaIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.notaFiscalService.getByFiltro(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataString("notaFiscalId", "ID", "10%"),
                _this.datatablesService.getDataString("tipoMov", "tipo", "10%"),
                _this.datatablesService.getDataString("nota", "nota", "10%"),
                _this.datatablesService.getDataString("serieNF", "serie", "10%"),
                _this.datatablesService.getDataDateTime("dtEmissao", "emissao", "DD/MM/YYYY"),
                _this.datatablesService.getDataDateTime("dtEntrada", "entrada", "DD/MM/YYYY"),
                _this.datatablesService.getDataString("fantasia", "cliente", "10%"),
                _this.datatablesService.getDataDouble("vlNota", "valorTotal", 2, false, "10%"),
                _this.datatablesService.getDataString("sitNota", "situacao")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtNotaFiscal", columns: columns, data: data, columnOrder: 2 }, function (aData) {
                _this.service.data = aData;
                _this.service.filtroAux = aData;
                _this.constantes.listaIndex[3].disabled = false;
            });
        });
    };
    NotaFiscalConsultaIndexComponent.prototype.detail = function () {
        if (!!(this.service.data.notaFiscalId)) {
            this.router.navigate([this.target + "/notaFiscal/consulta/detail/" + this.service.data.notaFiscalId]);
            this.service.filtro.mostrarFiltro = false;
        }
    };
    NotaFiscalConsultaIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    NotaFiscalConsultaIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.properties.call(_this, _this.service.data);
        });
    };
    NotaFiscalConsultaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    NotaFiscalConsultaIndexComponent.prototype.print = function () {
        this.constantes.paramRelatorio = {
            notaFiscalId: (!!this.service.data.notaFiscalId) ? this.service.data.notaFiscalId : 0,
            colaboradorId: this.loginService.getLogin().colaboradorId
        };
        _super.prototype.print.call(this);
    };
    NotaFiscalConsultaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_10__["NotaFiscalService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"] },
        { type: _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__["ConfiguracaoFacade"] },
        { type: _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_10__["NotaFiscalService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_nota_fiscal_altera_dados_nota_fiscal_consulta_altera_dados_component__WEBPACK_IMPORTED_MODULE_11__["NotaFiscalConsultaAlteraDadosComponent"], { static: true }),
        __metadata("design:type", _nota_fiscal_altera_dados_nota_fiscal_consulta_altera_dados_component__WEBPACK_IMPORTED_MODULE_11__["NotaFiscalConsultaAlteraDadosComponent"])
    ], NotaFiscalConsultaIndexComponent.prototype, "alteraDados", void 0);
    NotaFiscalConsultaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-nota-fiscal-consulta-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./nota-fiscal-consulta-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-index/nota-fiscal-consulta-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_10__["NotaFiscalService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"],
            _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__["ConfiguracaoFacade"],
            _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_10__["NotaFiscalService"]])
    ], NotaFiscalConsultaIndexComponent);
    return NotaFiscalConsultaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta.module.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta.module.ts ***!
  \***************************************************************************************/
/*! exports provided: NotaFiscalConsultaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalConsultaModule", function() { return NotaFiscalConsultaModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _nota_fiscal_altera_dados_nota_fiscal_consulta_altera_dados_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-altera-dados/nota-fiscal-consulta-altera-dados.component.ts");
/* harmony import */ var _nota_fiscal_consulta_filter_nota_fiscal_consulta_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nota-fiscal-consulta-filter/nota-fiscal-consulta-filter.component */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-filter/nota-fiscal-consulta-filter.component.ts");
/* harmony import */ var _nota_fiscal_consulta_form_nota_fiscal_consulta_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nota-fiscal-consulta-form/nota-fiscal-consulta-form.component */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-form/nota-fiscal-consulta-form.component.ts");
/* harmony import */ var _nota_fiscal_consulta_index_nota_fiscal_consulta_index_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nota-fiscal-consulta-index/nota-fiscal-consulta-index.component */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-index/nota-fiscal-consulta-index.component.ts");
/* harmony import */ var _nota_fiscal_consulta_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nota-fiscal-consulta.routing.module */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta.routing.module.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 NotaFiscalConsultaModule = /** @class */ (function () {
    function NotaFiscalConsultaModule() {
    }
    NotaFiscalConsultaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _nota_fiscal_consulta_routing_module__WEBPACK_IMPORTED_MODULE_6__["NotaFiscalConsultaRoutingModule"]],
            declarations: [
                _nota_fiscal_consulta_index_nota_fiscal_consulta_index_component__WEBPACK_IMPORTED_MODULE_5__["NotaFiscalConsultaIndexComponent"],
                _nota_fiscal_consulta_filter_nota_fiscal_consulta_filter_component__WEBPACK_IMPORTED_MODULE_3__["NotaFiscalConsultaFilterComponent"],
                _nota_fiscal_consulta_form_nota_fiscal_consulta_form_component__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalConsultaFormComponent"],
                _nota_fiscal_altera_dados_nota_fiscal_consulta_altera_dados_component__WEBPACK_IMPORTED_MODULE_2__["NotaFiscalConsultaAlteraDadosComponent"]
            ]
        })
    ], NotaFiscalConsultaModule);
    return NotaFiscalConsultaModule;
}());



/***/ }),

/***/ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta.routing.module.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta.routing.module.ts ***!
  \***********************************************************************************************/
/*! exports provided: NotaFiscalConsultaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalConsultaRoutingModule", function() { return NotaFiscalConsultaRoutingModule; });
/* 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 _nota_fiscal_consulta_index_nota_fiscal_consulta_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nota-fiscal-consulta-index/nota-fiscal-consulta-index.component */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-index/nota-fiscal-consulta-index.component.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _nota_fiscal_consulta_form_nota_fiscal_consulta_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nota-fiscal-consulta-form/nota-fiscal-consulta-form.component */ "./src/app/pages/nota-fiscal/nota-fiscal-consulta/nota-fiscal-consulta-form/nota-fiscal-consulta-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: _nota_fiscal_consulta_index_nota_fiscal_consulta_index_component__WEBPACK_IMPORTED_MODULE_2__["NotaFiscalConsultaIndexComponent"],
        data: {
            breadcrumb: "consultaSituacaoNotas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].index }
        }
    },
    {
        path: "detail/:id",
        component: _nota_fiscal_consulta_form_nota_fiscal_consulta_form_component__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalConsultaFormComponent"],
        data: {
            breadcrumb: "consultaSituacaoNotas",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["ActionForm"].detail }
        }
    },
];
var NotaFiscalConsultaRoutingModule = /** @class */ (function () {
    function NotaFiscalConsultaRoutingModule() {
    }
    NotaFiscalConsultaRoutingModule = __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"]],
        })
    ], NotaFiscalConsultaRoutingModule);
    return NotaFiscalConsultaRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-nota-fiscal-nota-fiscal-consulta-nota-fiscal-consulta-module.js.map