(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-nfe-verificar-status-verificar-status-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-filter.component.html":
/*!*************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-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=\"verfica-status-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.verificaStatus' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"downloadAutomaticoDanfe\" name=\"downloadAutomaticoDanfe\"\n                                    [(ngModel)]=\"service.filter.downloadAutomaticoDanfe\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"downloadAutomaticoDanfe\">{{'labels.downloadAutomaticoDanfe' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"rejeitado\" name=\"rejeitado\" [ngModel]=\"service.filter.rejeitado === 'S'\"\n                                    (ngModelChange)=\"service.filter.rejeitado=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"rejeitado\">{{'labels.rejeitado' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row mt-2\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"dataI\" class=\"required\">{{'labels.data' | translate}}</label>\n                                <app-data id=\"dataI\" name=\"dataI\" [(ngModel)]=\"service.filter.dtEmissao\" required\n                                    class=\"dataI\" [formatDateTime]=\"mascara.getFormatData\"></app-data>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row mt-2\">\n                        <div class=\"col-12\">\n                            <label for=\"timer\"> {{ 'labels.intervaloDeVerificacao' | translate }}: <strong> {{ value }}\n                                    {{ 'labels.minutos' | translate }}</strong>\n                            </label>\n                            <div class=\"custom-slider\">\n                                <ng5-slider id=\"timer\" [(value)]=\"value\" [options]=\"options\"></ng5-slider>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSubmit(form)\">\n                        {{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\" [itemData]=\"data.regNota\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <div class=\"row overflowTable\">\n        <div class=\"col-lg-12\">\n            <app-table>\n                <div class=\"table-responsive\">\n                    <table id=\"dtVerificaStatus\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                        <thead>\n                            <tr>\n                                <th>\n                                    <span class=\"colTodos\" *ngIf=\"dados && dados.length > 0\">\n                                        <input type=\"checkbox\" name=\"todos\" id=\"todos\" [ngModel]=\"btnTodos\"\n                                            (ngModelChange)=\"toSelectedAll($event)\"\n                                            title=\"{{ 'buttons.selecionarTodos' | translate }}\">\n                                    </span>\n                                </th>\n                                <th> {{\"labels.nota\" | translate }} </th>\n                                <th> {{\"labels.emissao\" | translate}} </th>\n                                <th> {{\"labels.codigo\" | translate}} </th>\n                                <th> {{\"labels.destinatario\" | translate}} </th>\n                                <th class=\"text-right\"> {{\"labels.valorNota\" | translate}} </th>\n                                <th> {{\"labels.chaveNFE\" | translate}} </th>\n                                <th> {{\"labels.situacao\" | translate}} </th>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            <tr *ngFor=\"let val of dados; let i = index\" (click)=\"selectedRow(val, i)\"\n                                [ngClass]=\"{'info': i === _index && data.regNota === val.regNota }\"\n                                (dblclick)=\"selectedDblClick(val)\">\n                                <td>\n                                    <label class=\"chk\">\n                                        <input type=\"checkbox\" id=\"flagGera\" name=\"flagGera\" value=\"checked\"\n                                            [(ngModel)]=\"val.actived\" disabled>\n                                        <span [ngClass]=\"{'red': val?.actived}\">\n                                        </span>\n                                    </label>\n                                </td>\n                                <td> {{ val?.nota }} </td>\n                                <td> {{ val?.dtEmissao | date:'dd/MM/yyyy' }} </td>\n                                <td> {{ val?.codDest }} </td>\n                                <td> {{ val?.fantasia }} </td>\n                                <td class=\"text-right\"> {{ val.vlNota | formatCurrency: 2 }} </td>\n                                <td> {{ val?.chaveNFe }} </td>\n                                <td> {{ val?.descrStatusNFe }} </td>\n                            </tr>\n                            <tr *ngIf=\"!hasDados\">\n                                <td colspan=\"9\">\n                                    {{'messages.nenhumRegistroEncontrado' | translate }}\n                                </td>\n                            </tr>\n                        </tbody>\n                    </table>\n                </div>\n            </app-table>\n        </div>\n    </div>\n    <ng-container *ngIf=\"hasLogs\">\n        <fieldset>\n            <div class=\"legend-container\">\n                <div class=\"row\">\n                    <div class=\"col-12\">\n                        <ul>\n                            <li *ngFor=\"let msg of logs\">{{msg}}</li>\n                        </ul>\n                    </div>\n                </div>\n                <div class=\"row\">\n                    <button class=\"btn btn-link mr-2\" (click)=\"salvarMensagens()\">{{ 'buttons.salvarMensagens' |\n                        translate\n                        }}</button>\n                    <button class=\"btn btn-link\" (click)=\"limparMensagens()\">{{ 'buttons.limparMensagens' |\n                        translate\n                        }}</button>\n                </div>\n            </div>\n        </fieldset>\n    </ng-container>\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-verificar-status-filter (filtrar)=\"executaFiltro()\"></app-verificar-status-filter>\n<app-verificar-status-nota-fiscal-consulta [data]=\"dataFilter\" [dataItem]=\"dataItemFilter\" [isTabXml]=\"isTabXml\"\n    [isTabPed]=\"isTabPed\"></app-verificar-status-nota-fiscal-consulta>\n\n<div class=\"modal fade\" id=\"verfica-status-print\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.verificaStatus' | translate }} ( {{ 'buttons.imprimir' | translate }}\n                    )</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipoPrintSelecionado\">{{'labels.tipoImpressao' | translate}}</label>\n                                <select id=\"tipoPrintSelecionado\" name=\"tipoPrintSelecionado\"\n                                    class=\"form-control form-control-sm\" [(ngModel)]=\"tipoPrintSelecionado\">\n                                    <option value=\"L\">{{ 'labels.listagem' | translate}}</option>\n                                    <option value=\"D\" [disabled]=\"!hasNFSelected\">{{ 'buttons.imprimirDanfe' |\n                                        translate}}\n                                    </option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onPrint()\">{{\n                        'buttons.imprimir' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"consulta-nota-fiscal-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-lg\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.consultaNotaFiscal' | translate }}</h6>\r\n                <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n                    <span aria-hidden=\"true\">&times;</span>\r\n                </button>\r\n            </div>\r\n            <form class=\"form\" #d=\"ngForm\">\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"clearfix\">\r\n                                <ul class=\"nav nav-tabs\">\r\n                                    <li class=\"nav-item\">\r\n                                        <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#ta\">{{ 'labels.dados' |\r\n                                            translate }}</a>\r\n                                    </li>\r\n                                    <li class=\"nav-item\">\r\n                                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tb\">{{ 'labels.itens' | translate\r\n                                            }}</a>\r\n                                    </li>\r\n                                    <li class=\"nav-item\">\r\n                                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tc\">{{ 'labels.dadosItens' |\r\n                                            translate }}</a>\r\n                                    </li>\r\n                                    <li class=\"nav-item\">\r\n                                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#td\">{{ 'labels.notasOrigemRetorno'\r\n                                            | translate }}</a>\r\n                                    </li>\r\n                                    <li class=\"nav-item\" *ngIf=\"isTabPed\">\r\n                                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#te\">{{ 'labels.pedidoEmbarque' |\r\n                                            translate }}</a>\r\n                                    </li>\r\n                                    <li class=\"nav-item\" *ngIf=\"isTabXml\">\r\n                                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tf\">{{ 'labels.xml' | translate\r\n                                            }}</a>\r\n                                    </li>\r\n\r\n                                </ul>\r\n                            </div>\r\n\r\n                            <div class=\"tab-content top\">\r\n                                <div class=\"tab-pane active show\" id=\"ta\">\r\n                                    <div class=\"card\">\r\n                                        <div class=\"card-body widget-body\">\r\n                                            <div class=\"text-right text-secondary ng-star-inserted legend\">\r\n                                                <span>{{ 'titles.notaFiscal' | translate }}&emsp;</span>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"notaFiscalId\">{{'labels.nota' | translate}}</label>\r\n                                                        <input id=\"notaFiscalId\" type=\"text\"\r\n                                                            class=\"form-control form-control-sm\" id=\"nota\" name=\"nota\"\r\n                                                            value=\"{{data?.nota}}\" disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"dtEmissao\">{{'labels.dtEmissao' |\r\n                                                            translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"dtEmissao\" name=\"dtEmissao\"\r\n                                                            value=\"{{data?.dtEmissao | date:'dd/MM/yyyy' }}\" disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"TipoMov\">{{'labels.tipo' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"TipoMov\" name=\"TipoMov\" value=\"{{data?.tipoMov}}\"\r\n                                                            disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12\">\r\n                                                    <app-input-description id=\"idCliente\" name=\"idCliente\"\r\n                                                        label=\"cliente\" valueID=\"{{data?.cliente?.destinatarioId}}\"\r\n                                                        valueDescription=\"{{data?.cliente?.fantasia}}\"></app-input-description>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"vlIcms\">{{'labels.icms' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"vlIcms\" name=\"vlIcms\"\r\n                                                            value=\"{{data?.vlIcms | formatCurrency: 2}}\"\r\n                                                            class=\"form-control form-control-sm\" disabled currencyMask\r\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"vlIcmsDest\">{{'labels.icmsDest' |\r\n                                                            translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"vlIcmsDest\" name=\"vlIcmsDest\"\r\n                                                            value=\"{{data?.vlIcmsDest | formatCurrency: 2}}\"\r\n                                                            class=\"form-control form-control-sm\" disabled currencyMask\r\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"fCP\">{{'labels.valorFcp' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\" id=\"fCP\"\r\n                                                            name=\"fCP\" value=\"{{data?.vlFCP | formatCurrency: 2}}\"\r\n                                                            class=\"form-control form-control-sm\" disabled currencyMask\r\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"vlIpi\">{{'labels.ipi' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"vlIpi\" name=\"vlIpi\"\r\n                                                            value=\"{{data?.vlIpi | formatCurrency: 2}}\"\r\n                                                            class=\"form-control form-control-sm\" disabled currencyMask\r\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"vlICMSRemet\">{{'labels.icmsRemetente' |\r\n                                                            translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"vlICMSRemet\" name=\"vlICMSRemet\"\r\n                                                            value=\"{{data?.vlICMSRemet | formatCurrency: 2}}\"\r\n                                                            class=\"form-control form-control-sm\" disabled currencyMask\r\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"vlNota\">{{'labels.total' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"vlNota\" name=\"vlNota\"\r\n                                                            value=\"{{data?.vlNota | formatCurrency: 2}}\"\r\n                                                            class=\"form-control form-control-sm\" disabled currencyMask\r\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"pesoLiq\">{{'labels.pesoLiq' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            class=\"form-control form-control-sm\" id=\"pesoLiq\"\r\n                                                            name=\"pesoLiq\" value=\"{{data?.pesoLiq | formatCurrency: 0}}\"\r\n                                                            disabled currencyMask\r\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-3\">\r\n                                                    <label for=\"operInc\">{{'labels.emissao' |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"operInc\" name=\"operInc\" value=\"{{data?.operInc}}\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                </div>\r\n                                                <div class=\"col-lg-5\">\r\n                                                    <label for=\"dtOperInc\">&nbsp;</label>\r\n                                                    <input id=\"dtOperInc\" name=\"dtOperInc\"\r\n                                                        value=\"{{data?.dtOperInc | date:'dd/MM/yyyy HH:mm'}}\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"pesoBru\">{{'labels.pesoBru' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"pesoBru\" name=\"pesoBru\"\r\n                                                            value=\"{{data?.pesoBru | formatCurrency: 0}}\" disabled\r\n                                                            currencyMask\r\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-3\">\r\n                                                    <label for=\"operCan\">{{'labels.cancelamento' |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"operCan\" name=\"operCan\" value=\"{{data?.operCan}}\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                </div>\r\n                                                <div class=\"col-lg-5\">\r\n                                                    <label for=\"dtOperCan\">&nbsp;</label>\r\n                                                    <input id=\"dtOperCan\" name=\"dtOperCan\"\r\n                                                        value=\"{{data?.dtOperCan | date:'dd/MM/yyyy HH:mm' }}\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <br>\r\n                                    <div class=\"card\">\r\n                                        <div class=\"card-body widget-body\">\r\n                                            <div class=\"text-right text-secondary ng-star-inserted legend\">\r\n                                                <span>{{ 'titles.notaFiscalEletronica' | translate }}&emsp;</span>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"nfId\">{{'labels.numero' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"nfId\" name=\"nfId\" value=\"{{data?.nota}}\" disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"lbTipoMov\">{{'labels.tipo' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"lbTipoMov\" name=\"lbTipoMov\"\r\n                                                            value=\"{{data.notaServico?.tipoNfe}}\" disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"chaveNFE\">{{'labels.chaveNFE' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"chaveNFE\" name=\"chaveNFE\" value=\"{{data?.chaveNFE}}\"\r\n                                                            disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-6\">\r\n                                                    <label for=\"situacaoNFe\">{{'labels.situacao' |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"situacaoNFe\" name=\"situacaoNFe\"\r\n                                                        value=\"{{data?.situacaoNFe}} - {{data?.descrSituacaoNFe}}\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                </div>\r\n                                                <div class=\"col-lg-6\">\r\n                                                    <label for=\"descrSituacaoNFe\">&nbsp;</label>\r\n                                                    <span\r\n                                                        *ngIf=\"data?.logDePedidos?.tipoPed === 'L' || data?.logDePedidos?.tipoPed === 'R'\">\r\n                                                        <input id=\"descrSituacaoNFe\" name=\"descrSituacaoNFe\"\r\n                                                            value=\"{{notaFiscalTipoEventoManifesto?.nfeDesrcEvento}}\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            class=\"form-control form-control-sm\" disabled>\r\n                                                    </span>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-6\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"numReciboNfe\">{{'labels.recibo' |\r\n                                                            translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"numReciboNfe\" name=\"numReciboNfe\"\r\n                                                            value=\"{{data.notaServico?.numReciboNfe}} - {{data.notaServico?.dataReciboNfe | date:'dd/MM/yyyy HH:mm'}}\"\r\n                                                            disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-6\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"numReciboCancNfe\">{{'labels.reciboCanc' |\r\n                                                            translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"numReciboCancNfe\" name=\"numReciboCancNfe\"\r\n                                                            value=\"{{data.notaFiscalNfeProtocoloCanc?.numReciboNFe}} - {{data.notaFiscalNfeProtocoloCanc?.dataReciboNfe | date:'dd/MM/yyyy'}}\"\r\n                                                            disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"tab-pane\" id=\"tb\">\r\n                                    <div class=\"card\">\r\n                                        <div class=\"card-body widget-body\">\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-8\">\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-12\">\r\n                                                            <div class=\"row\">\r\n                                                                <div class=\"col-lg-3\">\r\n                                                                    <label for=\"material\">{{'labels.produto' |\r\n                                                                        translate}}</label>\r\n                                                                    <input id=\"material\" name=\"material\"\r\n                                                                        value=\"{{dataItem.material}}\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                                </div>\r\n                                                                <div class=\"col-lg-9\">\r\n                                                                    <label for=\"descrMaterial\">&nbsp;</label>\r\n                                                                    <input id=\"descrMaterial\" name=\"descrMaterial\"\r\n                                                                        value=\"{{dataItem.descrMater}}\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-4\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"quantid\">{{'labels.quantidade' |\r\n                                                                    translate}}</label>\r\n                                                                <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                                    id=\"quantid\" name=\"quantid\"\r\n                                                                    value=\"{{dataItem.quantid | formatCurrency: 0}}\"\r\n                                                                    disabled currencyMask\r\n                                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                                            </div>\r\n                                                        </div>\r\n                                                        <div class=\"col-lg-4\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"preco\">{{'labels.preco' |\r\n                                                                    translate}}</label>\r\n                                                                <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                                    id=\"preco\" name=\"preco\"\r\n                                                                    value=\"{{dataItem.preco | formatCurrency: 9}}\"\r\n                                                                    disabled currencyMask\r\n                                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 9 }\">\r\n                                                            </div>\r\n                                                        </div>\r\n                                                        <div class=\"col-lg-4\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"aliqIpi\">{{'labels.ipi' |\r\n                                                                    translate}}</label>\r\n                                                                <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                                    id=\"aliqIpi\" name=\"aliqIpi\"\r\n                                                                    value=\"{{dataItem.aliqIpi | formatCurrency: 2}}\"\r\n                                                                    disabled currencyMask\r\n                                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"natureza\">{{'labels.natureza' |\r\n                                                                    translate}}</label>\r\n                                                                <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                                    id=\"natureza\" name=\"natureza\"\r\n                                                                    value=\"{{dataItem.natureza}}\" disabled>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-12\">\r\n                                                            <div class=\"row\">\r\n                                                                <div class=\"col-lg-3\">\r\n                                                                    <label for=\"operacao\">{{'labels.operacao' |\r\n                                                                        translate}}</label>\r\n                                                                    <input id=\"operacao\" name=\"operacao\"\r\n                                                                        value=\"{{dataItem?.operacao}}\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                                </div>\r\n                                                                <div class=\"col-lg-9\">\r\n                                                                    <label for=\"descrOperacao\">&nbsp;</label>\r\n                                                                    <input id=\"descrOperacao\" name=\"descrOperacao\"\r\n                                                                        value=\"{{dataItem?.descrOperacao}}\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        class=\"form-control form-control-sm\" disabled>\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-12\">\r\n                                                            <div class=\"row\">\r\n                                                                <div class=\"col-lg-6\">\r\n                                                                    <label for=\"aliqFCP\">{{'labels.fcp' |\r\n                                                                        translate}}</label> %\r\n                                                                    <input id=\"aliqFCP\" name=\"aliqFCP\"\r\n                                                                        value=\"{{dataItem?.aliqFCP | formatCurrency: 2}}\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        class=\"form-control form-control-sm\" disabled\r\n                                                                        currencyMask\r\n                                                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                                </div>\r\n                                                                <div class=\"col-lg-6\">\r\n                                                                    <label for=\"vlFCP_Item\">&nbsp;</label>\r\n                                                                    <input id=\"vlFCP_Item\" name=\"vlFCP_Item\"\r\n                                                                        value=\"{{dataItem.vlFCP_Item | formatCurrency: 2}}\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        class=\"form-control form-control-sm\" disabled\r\n                                                                        currencyMask\r\n                                                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"aliqIcmsInter\">{{'labels.icmsInter' |\r\n                                                                    translate}}</label> %\r\n                                                                <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                                    id=\"aliqIcmsInter\" name=\"aliqIcmsInter\"\r\n                                                                    value=\"{{dataItem.aliqIcmsInter | formatCurrency: 2}}\"\r\n                                                                    disabled currencyMask\r\n                                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2}\">\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"aliqICMSInterPart\">{{'labels.partilhaIcms' |\r\n                                                                    translate}}</label> %\r\n                                                                <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                                    id=\"aliqICMSInterPart\" name=\"aliqICMSInterPart\"\r\n                                                                    value=\"{{dataItem.aliqICMSInterPart | formatCurrency: 2}}\"\r\n                                                                    disabled currencyMask\r\n                                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2}\">\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-12\">\r\n                                                            <div class=\"row\">\r\n                                                                <div class=\"col-lg-6\">\r\n                                                                    <label for=\"aliqICMSDest\">{{'labels.icmsDestino' |\r\n                                                                        translate}}</label> %\r\n                                                                    <input id=\"aliqICMSDest\" name=\"aliqICMSDest\"\r\n                                                                        value=\"{{dataItem.aliqICMSDest | formatCurrency: 2}}\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        class=\"form-control form-control-sm\" disabled\r\n                                                                        currencyMask\r\n                                                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                                </div>\r\n                                                                <div class=\"col-lg-6\">\r\n                                                                    <label for=\"vlICMSDest_item\">&nbsp;</label>\r\n                                                                    <input id=\"vlICMSDest_item\" name=\"vlICMSDest_item\"\r\n                                                                        value=\"{{dataItem?.vlICMSDest_item | formatCurrency: 2}}\"\r\n                                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                                        class=\"form-control form-control-sm\" disabled\r\n                                                                        currencyMask\r\n                                                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                                </div>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                    <div class=\"row\">\r\n                                                        <div class=\"col-lg-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"vlICMSRemet_Item\">{{'labels.icmsRemetente' |\r\n                                                                    translate}}</label>\r\n                                                                <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                                    id=\"vlICMSRemet_Item\" name=\"vlICMSRemet_Item\"\r\n                                                                    value=\"{{dataItem?.vlICMSRemet_Item | formatCurrency: 2}}\"\r\n                                                                    disabled currencyMask\r\n                                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12\">\r\n                                                    <blockquote class=\"card-bodyquote\">\r\n                                                        <div class=\"table-overflow\">\r\n                                                            <table\r\n                                                                class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                                                                <thead>\r\n                                                                    <tr>\r\n                                                                        <th class=\"text-center\">{{ 'labels.produto' |\r\n                                                                            translate }}</th>\r\n                                                                        <th class=\"text-center\">{{ 'labels.descricao' |\r\n                                                                            translate }}</th>\r\n                                                                        <th class=\"text-center\">{{ 'labels.quantidade' |\r\n                                                                            translate }}</th>\r\n                                                                        <th class=\"text-center\">{{\r\n                                                                            'labels.precoUnitario' | translate }}</th>\r\n                                                                    </tr>\r\n                                                                </thead>\r\n\r\n                                                                <tbody>\r\n                                                                    <tr *ngFor=\"let c of data.notaFiscalItens \"\r\n                                                                        class=\"clickable\"\r\n                                                                        [ngClass]=\"{ 'info' : c.notaFiscalId == data.notaFiscalId }\"\r\n                                                                        (click)=\"(dataItem = c)\">\r\n                                                                        <td class=\"text-center\">{{ c.material}}</td>\r\n                                                                        <td class=\"text-center\">{{ c.descrMater }}</td>\r\n                                                                        <td class=\"text-center\">{{ getNumber(c.quantid,\r\n                                                                            0) }}</td>\r\n                                                                        <td class=\"text-center\">{{ getNumber(c.preco, 9)\r\n                                                                            }}</td>\r\n                                                                    </tr>\r\n\r\n                                                                </tbody>\r\n                                                            </table>\r\n                                                        </div>\r\n                                                    </blockquote>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"tab-pane\" id=\"tc\">\r\n                                    <div class=\"card\">\r\n                                        <div class=\"card-body widget-body\">\r\n                                            <blockquote class=\"card-bodyquote\">\r\n                                                <div class=\"table-overflow\">\r\n                                                    <table\r\n                                                        class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                                                        <thead>\r\n                                                            <tr>\r\n                                                                <th class=\"text-center\">{{ 'labels.autorizacao' |\r\n                                                                    translate }}</th>\r\n                                                                <th class=\"text-center\">{{ 'labels.kilos' | translate }}\r\n                                                                </th>\r\n                                                                <th class=\"text-center\">{{ 'labels.litros' | translate\r\n                                                                    }}</th>\r\n                                                                <th class=\"text-center\">{{ 'labels.quantidade' |\r\n                                                                    translate }}</th>\r\n                                                                <th class=\"text-center\">{{ 'labels.deposito' | translate\r\n                                                                    }}</th>\r\n                                                                <th class=\"text-center\">{{ 'labels.lote' | translate }}\r\n                                                                </th>\r\n                                                            </tr>\r\n                                                        </thead>\r\n\r\n                                                        <tbody>\r\n                                                            <tr *ngFor=\"let c of data.notaFiscalDadosItens\"\r\n                                                                class=\"clickable\"\r\n                                                                [ngClass]=\"{ 'info' : c.notaFiscalId == data.notaFiscalId }\">\r\n\r\n                                                                <td class=\"text-center\">{{ c.autorizacao}}</td>\r\n                                                                <td class=\"text-center\">{{ getNumber(c.kilos, 0) }}</td>\r\n                                                                <td class=\"text-center\">{{ getNumber(c.litros, 0) }}\r\n                                                                </td>\r\n                                                                <td class=\"text-center\">{{ getNumber(c.quantid, 0) }}\r\n                                                                </td>\r\n                                                                <td class=\"text-center\">{{ c.deposito }}</td>\r\n                                                                <td class=\"text-center\">{{ c.lote }}</td>\r\n                                                            </tr>\r\n                                                            <tr *ngIf=\"!data?.notaFiscalDadosItens\">\r\n                                                                <th colspan=\"6\">\r\n                                                                    {{'messages.nenhumRegistroEncontrado' | translate }}\r\n                                                                </th>\r\n                                                            </tr>\r\n                                                        </tbody>\r\n                                                    </table>\r\n                                                </div>\r\n                                            </blockquote>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n\r\n                                <div class=\"tab-pane\" id=\"td\">\r\n                                    <div class=\"card\">\r\n                                        <div class=\"card-body widget-body\">\r\n                                            <blockquote class=\"card-bodyquote\">\r\n                                                <div class=\"table-overflow\">\r\n                                                    <table\r\n                                                        class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                                                        <thead>\r\n                                                            <tr>\r\n                                                                <th class=\"text-center\">{{ 'labels.tipo' | translate }}\r\n                                                                </th>\r\n                                                                <th class=\"text-center\">{{ 'labels.nota' | translate }}\r\n                                                                </th>\r\n                                                                <th class=\"text-center\">{{ 'labels.emissao' | translate\r\n                                                                    }}</th>\r\n                                                                <th class=\"text-center\">{{ 'labels.kilos' | translate }}\r\n                                                                </th>\r\n                                                                <th class=\"text-center\">{{ 'labels.litros' | translate\r\n                                                                    }}</th>\r\n                                                                <th class=\"text-center\">{{ 'labels.valor' | translate }}\r\n                                                                </th>\r\n                                                            </tr>\r\n                                                        </thead>\r\n                                                        <tbody>\r\n                                                            <tr *ngFor=\"let c of data.notaFiscalOrigemRetorno\"\r\n                                                                class=\"clickable\"\r\n                                                                [ngClass]=\"{ 'info' : c.notaFiscalId == data.notaFiscalId }\">\r\n                                                                <td class=\"text-center\">{{ c.descrTipoReg}}</td>\r\n                                                                <td class=\"text-center\">{{ c.notaOri }}</td>\r\n                                                                <td class=\"text-center\">{{ c.dtEmissao |\r\n                                                                    date:'dd/MM/yyyy'}}</td>\r\n                                                                <td class=\"text-center\">{{ getNumber(c.kilos, 0) }}</td>\r\n                                                                <td class=\"text-center\">{{ getNumber(c.litros, 0) }}\r\n                                                                </td>\r\n                                                                <td class=\"text-center\">{{ getNumber(c.vlNota, 2) }}\r\n                                                                </td>\r\n                                                            </tr>\r\n                                                        </tbody>\r\n                                                    </table>\r\n                                                </div>\r\n                                            </blockquote>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n\r\n                                <div class=\"tab-pane\" id=\"te\">\r\n                                    <div class=\"card\">\r\n                                        <div class=\"card-body widget-body\">\r\n                                            <blockquote class=\"card-bodyquote\">\r\n                                                <div class=\"table-overflow\">\r\n                                                    <table\r\n                                                        class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                                                        <thead>\r\n                                                            <tr>\r\n                                                                <th class=\"text-center\">{{ 'labels.item' | translate }}\r\n                                                                </th>\r\n                                                                <th class=\"text-center\">{{ 'labels.laudo' | translate }}\r\n                                                                </th>\r\n                                                                <th class=\"text-center\">{{ 'labels.data' | translate }}\r\n                                                                </th>\r\n                                                                <th class=\"text-center\">{{ 'labels.navio' | translate }}\r\n                                                                </th>\r\n                                                                <th class=\"text-center\">{{ 'labels.viagem' | translate\r\n                                                                    }}</th>\r\n                                                            </tr>\r\n                                                        </thead>\r\n                                                        <tbody>\r\n                                                            <tr *ngFor=\"let c of data.consultaPedido\" class=\"clickable\"\r\n                                                                [ngClass]=\"{ 'info' : c.notaFiscalId == data.notaFiscalId }\">\r\n                                                                <td class=\"text-center\">{{ c.item}}</td>\r\n                                                                <td class=\"text-center\">{{ c.numLaudo }}</td>\r\n                                                                <td class=\"text-left\">{{ c.dtEmissao | date:'dd/MM/yyyy'\r\n                                                                    }}</td>\r\n                                                                <td class=\"text-left\">{{ c.descrNavio }}</td>\r\n                                                                <td class=\"text-left\">{{ c.viagem}}</td>\r\n                                                            </tr>\r\n\r\n                                                        </tbody>\r\n                                                    </table>\r\n                                                </div>\r\n                                            </blockquote>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n\r\n                                <div class=\"tab-pane\" id=\"tf\">\r\n                                    <div class=\"card\">\r\n                                        <div class=\"card-body widget-body\">\r\n                                            <div class=\"col-12\">\r\n                                                <div class=\"row\">\r\n                                                    <div class=\"btn-group\" role=\"group\">\r\n                                                        <div class=\"mr-1\">\r\n                                                            <button class=\"btn btn-success\" (click)=\"carregaContato()\"\r\n                                                                type=\"button\">{{\r\n                                                                'buttons.emailCadastrado' | translate }}\r\n                                                            </button>\r\n                                                        </div>\r\n                                                        <div class=\"mr-1\">\r\n                                                            <button class=\"btn btn-success\" (click)=\"enviaEmail()\"\r\n                                                                type=\"button\"\r\n                                                                [disabled]=\"contatos === '' || contatos === null || !contatos ? true: false\">{{\r\n                                                                'buttons.enviarPorEmail' | translate }}\r\n                                                            </button>\r\n                                                        </div>\r\n                                                        <div class=\"mr-1\">\r\n                                                            <button class=\"btn btn-success\" (click)=\"geraXml()\"\r\n                                                                type=\"button\">{{\r\n                                                                'buttons.gerarNovoXml'\r\n                                                                | translate }}\r\n                                                            </button>\r\n                                                        </div>\r\n                                                        <div class=\"mr-1\">\r\n                                                            <button class=\"btn btn-success\"\r\n                                                                (click)=\"copyInputMessage(xmlText)\" type=\"button\">{{\r\n                                                                'buttons.copiarConteudo' | translate }}\r\n                                                            </button>\r\n                                                        </div>\r\n                                                        <div class=\"mr-1\">\r\n                                                            <button class=\"btn btn-success\" (click)=\"downloadFileXml() \"\r\n                                                                type=\"button\"\r\n                                                                [disabled]=\"!this.data || !this.data.notaFiscalXml || !this.data.notaFiscalXml.xml || this.data.notaFiscalXml.xml === '' ? true: false\">{{\r\n                                                                'buttons.salvarXml' | translate }}\r\n                                                            </button>\r\n                                                        </div>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"clearfix\">&nbsp;</div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"email\">{{'labels.email' | translate}}</label>\r\n                                                        <input type=\"text\" class=\"form-control form-control-sm\"\r\n                                                            id=\"email\" name=\"email\" [(ngModel)]=\"contatos\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12\">\r\n                                                    <div class=\"form-group\">\r\n                                                        <label>{{'labels.xml' | translate}}</label>\r\n                                                        <textarea id=\"xml\" class=\"form-control\" rows=\"20\" #xmlText\r\n                                                            value=\"{{getXml}}\">\r\n                                                        </textarea>\r\n\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button type=\"button\" class=\"btn btn-outline-dark\" data-dismiss=\"modal\">{{ 'buttons.ok' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/nfe/nfe.model.ts":
/*!****************************************!*\
  !*** ./src/app/pages/nfe/nfe.model.ts ***!
  \****************************************/
/*! exports provided: ConNotaDtoOrigemRetorno, NfeOrigemRetorno, NfeFilter, NfeIndexDto, ConsultaNotaPedidoEmbarque, Nfe, LogDePedidos, NfeItem, NfeDadosItem, NfeXmlFilter, NfeXml, Contatos, NfeProtocoloAut, NfeProtocoloCanc */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConNotaDtoOrigemRetorno", function() { return ConNotaDtoOrigemRetorno; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeOrigemRetorno", function() { return NfeOrigemRetorno; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeFilter", function() { return NfeFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeIndexDto", function() { return NfeIndexDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaNotaPedidoEmbarque", function() { return ConsultaNotaPedidoEmbarque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nfe", function() { return Nfe; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogDePedidos", function() { return LogDePedidos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeItem", function() { return NfeItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeDadosItem", function() { return NfeDadosItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeXmlFilter", function() { return NfeXmlFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeXml", function() { return NfeXml; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Contatos", function() { return Contatos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeProtocoloAut", function() { return NfeProtocoloAut; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeProtocoloCanc", function() { return NfeProtocoloCanc; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

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

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

var NfeFilter = /** @class */ (function () {
    function NfeFilter() {
        this.tipoData = 1;
        this.tipoMov = "T";
        this.tipoNfe = "";
        var firstDay = new Date();
        firstDay.setDate(1);
        this.dataI = firstDay;
        this.dataF = new Date();
        this.destinatarioIdCliente = 0;
        this.loteId = "";
        this.materialId = "";
        this.nota = 0;
        this.notaFiscalId = 0;
        this.autorizacao = 0;
        this.regNota = 0;
    }
    return NfeFilter;
}());

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

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

var Nfe = /** @class */ (function () {
    function Nfe() {
        this.serieNF = "";
        this.inutilizarMensagem = "";
    }
    return Nfe;
}());

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

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

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

var NfeXmlFilter = /** @class */ (function () {
    function NfeXmlFilter() {
        var firstDay = new Date();
        firstDay.setDate(1);
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_0__().startOf('month').toDate();
        this.dataF = new Date();
        this.gerarComCertificado = "S";
        this.serieNF = "";
        this.notaFiscalIdI = 0;
        this.notaFiscalIdF = 0;
        this.destinatarioIdCliente = 0;
        this.pastaExpXml = "";
        this.criarZip = "N";
        this.tipoArquivo = "";
        this.arquivoZip = "";
        this.nomeArquivo = "";
    }
    return NfeXmlFilter;
}());

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

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

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

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



/***/ }),

/***/ "./src/app/pages/nfe/nfe.service.ts":
/*!******************************************!*\
  !*** ./src/app/pages/nfe/nfe.service.ts ***!
  \******************************************/
/*! exports provided: NfeService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NfeService", function() { return NfeService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _nfe_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nfe.model */ "./src/app/pages/nfe/nfe.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var NfeService = /** @class */ (function (_super) {
    __extends(NfeService, _super);
    function NfeService(http) {
        var _this = _super.call(this, http, "nfe") || this;
        _this.http = http;
        _this.filtro = new _nfe_model__WEBPACK_IMPORTED_MODULE_6__["NfeFilter"]();
        _this.data = new _nfe_model__WEBPACK_IMPORTED_MODULE_6__["NfeIndexDto"]();
        return _this;
    }
    NfeService.prototype.statusServico = function () {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/statusServico")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.emissao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/emissao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.inutilizarNumero = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/inutilizarNumero", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.cancelar = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/cancelar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.ajustarRecibos = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/ajustarRecibos", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.exportarPdf = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/exportarPdf", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.exportarXml = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/exportarXml", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.getById = function (notaFiscalId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/" + notaFiscalId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.getByFiltro = function (filtro) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/GetByFiltro", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.gravarXml = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscalXml/gravarXml", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.listarXml = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscalXml/listarXml", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.atualizaProtocolo = function (regNota) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/atualizaProtocolo", { regNota: regNota })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.gravaDanfe = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/emissao/gravaDanfe", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.prototype.enviaEmailDanfe = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/emissao/enviaEmailDanfe", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NfeService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    NfeService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], NfeService);
    return NfeService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-filter.component.scss":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-filter.component.scss ***!
  \***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".custom-slider .ng5-slider .ng5-slider-bar {\n  background: #7874af;\n  height: 2px;\n}\n\n.custom-slider .ng5-slider .ng5-slider-selection {\n  background: #bd7d05;\n}\n\n.custom-slider .ng5-slider .ng5-slider-pointer {\n  width: 8px;\n  height: 16px;\n  top: auto;\n  /* to remove the default positioning */\n  bottom: 0;\n  background-color: #333;\n  border-top-left-radius: 3px;\n  border-top-right-radius: 3px;\n}\n\n.custom-slider .ng5-slider .ng5-slider-pointer:after {\n  display: none;\n}\n\n.custom-slider .ng5-slider .ng5-slider-bubble {\n  bottom: 14px;\n}\n\n.custom-slider .ng5-slider .ng5-slider-limit {\n  font-weight: bold;\n  color: #827eb5;\n}\n\n.custom-slider .ng5-slider .ng5-slider-tick {\n  width: 1px;\n  height: 10px;\n  margin-left: 4px;\n  border-radius: 0;\n  background: #827eb5;\n  top: -1px;\n}\n\n.custom-slider .ng5-slider .ng5-slider-tick.ng5-slider-selected {\n  background: #e49607;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvbmZlL3ZlcmlmaWNhci1zdGF0dXMvdmVyaWZpY2FyLXN0YXR1cy1maWx0ZXIvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxuZmVcXHZlcmlmaWNhci1zdGF0dXNcXHZlcmlmaWNhci1zdGF0dXMtZmlsdGVyXFx2ZXJpZmljYXItc3RhdHVzLWZpbHRlci5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvbmZlL3ZlcmlmaWNhci1zdGF0dXMvdmVyaWZpY2FyLXN0YXR1cy1maWx0ZXIvdmVyaWZpY2FyLXN0YXR1cy1maWx0ZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxtQkFBQTtFQUNBLFdBQUE7QUNDRjs7QURDQTtFQUNFLG1CQUFBO0FDRUY7O0FEQ0E7RUFDRSxVQUFBO0VBQ0EsWUFBQTtFQUNBLFNBQUE7RUFBVyxzQ0FBQTtFQUNYLFNBQUE7RUFDQSxzQkFBQTtFQUNBLDJCQUFBO0VBQ0EsNEJBQUE7QUNHRjs7QURBQTtFQUNFLGFBQUE7QUNHRjs7QURBQTtFQUNFLFlBQUE7QUNHRjs7QURBQTtFQUNFLGlCQUFBO0VBQ0EsY0FBQTtBQ0dGOztBREFBO0VBQ0UsVUFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxTQUFBO0FDR0Y7O0FEQUE7RUFDRSxtQkFBQTtBQ0dGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvbmZlL3ZlcmlmaWNhci1zdGF0dXMvdmVyaWZpY2FyLXN0YXR1cy1maWx0ZXIvdmVyaWZpY2FyLXN0YXR1cy1maWx0ZXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci1iYXIgIHtcclxuICBiYWNrZ3JvdW5kOiAjNzg3NGFmO1xyXG4gIGhlaWdodDogMnB4O1xyXG59XHJcbi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLXNlbGVjdGlvbiB7XHJcbiAgYmFja2dyb3VuZDogI2JkN2QwNTtcclxufVxyXG5cclxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItcG9pbnRlciB7XHJcbiAgd2lkdGg6IDhweDtcclxuICBoZWlnaHQ6IDE2cHg7XHJcbiAgdG9wOiBhdXRvOyAvKiB0byByZW1vdmUgdGhlIGRlZmF1bHQgcG9zaXRpb25pbmcgKi9cclxuICBib3R0b206IDA7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogIzMzMztcclxuICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiAzcHg7XHJcbiAgYm9yZGVyLXRvcC1yaWdodC1yYWRpdXM6IDNweDtcclxufVxyXG5cclxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItcG9pbnRlcjphZnRlciB7XHJcbiAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItYnViYmxlIHtcclxuICBib3R0b206IDE0cHg7XHJcbn1cclxuXHJcbi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLWxpbWl0IHtcclxuICBmb250LXdlaWdodDogYm9sZDtcclxuICBjb2xvcjogIzgyN2ViNTtcclxufVxyXG5cclxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItdGljayB7XHJcbiAgd2lkdGg6IDFweDtcclxuICBoZWlnaHQ6IDEwcHg7XHJcbiAgbWFyZ2luLWxlZnQ6IDRweDtcclxuICBib3JkZXItcmFkaXVzOiAwO1xyXG4gIGJhY2tncm91bmQ6ICM4MjdlYjU7XHJcbiAgdG9wOiAtMXB4O1xyXG59XHJcblxyXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci10aWNrLm5nNS1zbGlkZXItc2VsZWN0ZWQge1xyXG4gIGJhY2tncm91bmQ6ICNlNDk2MDc7XHJcbn1cclxuIiwiLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItYmFyIHtcbiAgYmFja2dyb3VuZDogIzc4NzRhZjtcbiAgaGVpZ2h0OiAycHg7XG59XG5cbi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLXNlbGVjdGlvbiB7XG4gIGJhY2tncm91bmQ6ICNiZDdkMDU7XG59XG5cbi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLXBvaW50ZXIge1xuICB3aWR0aDogOHB4O1xuICBoZWlnaHQ6IDE2cHg7XG4gIHRvcDogYXV0bztcbiAgLyogdG8gcmVtb3ZlIHRoZSBkZWZhdWx0IHBvc2l0aW9uaW5nICovXG4gIGJvdHRvbTogMDtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzMzMztcbiAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogM3B4O1xuICBib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogM3B4O1xufVxuXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci1wb2ludGVyOmFmdGVyIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItYnViYmxlIHtcbiAgYm90dG9tOiAxNHB4O1xufVxuXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci1saW1pdCB7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBjb2xvcjogIzgyN2ViNTtcbn1cblxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItdGljayB7XG4gIHdpZHRoOiAxcHg7XG4gIGhlaWdodDogMTBweDtcbiAgbWFyZ2luLWxlZnQ6IDRweDtcbiAgYm9yZGVyLXJhZGl1czogMDtcbiAgYmFja2dyb3VuZDogIzgyN2ViNTtcbiAgdG9wOiAtMXB4O1xufVxuXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci10aWNrLm5nNS1zbGlkZXItc2VsZWN0ZWQge1xuICBiYWNrZ3JvdW5kOiAjZTQ5NjA3O1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-filter.component.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-filter.component.ts ***!
  \*********************************************************************************************************/
/*! exports provided: VerificarStatusFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusFilterComponent", function() { return VerificarStatusFilterComponent; });
/* 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 _verificar_status_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../verificar-status.service */ "./src/app/pages/nfe/verificar-status/verificar-status.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 VerificarStatusFilterComponent = /** @class */ (function () {
    function VerificarStatusFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.options = {
            floor: 0,
            ceil: 30,
            showTicks: true,
            step: 5
        };
        this.valPagMax = 1;
    }
    VerificarStatusFilterComponent.prototype.ngOnInit = function () {
        this.value = 0;
        this.minValue = 6;
        this.maxValue = 30;
    };
    VerificarStatusFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.service.filter.intervaloVerificacao = this.value;
            this.filtrar.emit(this.service.filter);
            jQuery("#carta-correcao-filter").modal("hide");
        }
    };
    VerificarStatusFilterComponent.ctorParameters = function () { return [
        { type: _verificar_status_service__WEBPACK_IMPORTED_MODULE_2__["VerificarStatusService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], VerificarStatusFilterComponent.prototype, "filtrar", void 0);
    VerificarStatusFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-verificar-status-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./verificar-status-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./verificar-status-filter.component.scss */ "./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-filter.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_verificar_status_service__WEBPACK_IMPORTED_MODULE_2__["VerificarStatusService"]])
    ], VerificarStatusFilterComponent);
    return VerificarStatusFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar-status-index/verificar-status-index.component.scss":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar-status-index/verificar-status-index.component.scss ***!
  \*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("span.red {\n  background-color: #c03;\n}\n\n.colTodos {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: -16px;\n}\n\n.colTodos input[type=checkbox] {\n  cursor: pointer;\n}\n\n.legend-container {\n  margin-left: 20px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvbmZlL3ZlcmlmaWNhci1zdGF0dXMvdmVyaWZpY2FyLXN0YXR1cy1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXG5mZVxcdmVyaWZpY2FyLXN0YXR1c1xcdmVyaWZpY2FyLXN0YXR1cy1pbmRleFxcdmVyaWZpY2FyLXN0YXR1cy1pbmRleC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvbmZlL3ZlcmlmaWNhci1zdGF0dXMvdmVyaWZpY2FyLXN0YXR1cy1pbmRleC92ZXJpZmljYXItc3RhdHVzLWluZGV4LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usc0JBQUE7QUNDRjs7QURFQTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0EsaUJBQUE7QUNDRjs7QURDRTtFQUNFLGVBQUE7QUNDSjs7QURHQTtFQUNFLGlCQUFBO0FDQUYiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9uZmUvdmVyaWZpY2FyLXN0YXR1cy92ZXJpZmljYXItc3RhdHVzLWluZGV4L3ZlcmlmaWNhci1zdGF0dXMtaW5kZXguY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJzcGFuLnJlZCB7XHJcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuLmNvbFRvZG9zIHtcclxuICBkaXNwbGF5OiBmbGV4O1xyXG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgbWFyZ2luLXRvcDogLTE2cHg7XHJcblxyXG4gIGlucHV0W3R5cGU9Y2hlY2tib3hdIHtcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICB9XHJcbn1cclxuXHJcbi5sZWdlbmQtY29udGFpbmVyIHtcclxuICBtYXJnaW4tbGVmdDogMjBweDtcclxufSIsInNwYW4ucmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcbn1cblxuLmNvbFRvZG9zIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIG1hcmdpbi10b3A6IC0xNnB4O1xufVxuLmNvbFRvZG9zIGlucHV0W3R5cGU9Y2hlY2tib3hdIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4ubGVnZW5kLWNvbnRhaW5lciB7XG4gIG1hcmdpbi1sZWZ0OiAyMHB4O1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar-status-index/verificar-status-index.component.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar-status-index/verificar-status-index.component.ts ***!
  \*******************************************************************************************************/
/*! exports provided: VerificarStatusIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusIndexComponent", function() { return VerificarStatusIndexComponent; });
/* 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_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../nota-fiscal/nota-fiscal.model */ "./src/app/pages/nota-fiscal/nota-fiscal.model.ts");
/* harmony import */ var _nota_fiscal_nota_fiscal_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../nota-fiscal/nota-fiscal.service */ "./src/app/pages/nota-fiscal/nota-fiscal.service.ts");
/* harmony import */ var _nfe_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../nfe.model */ "./src/app/pages/nfe/nfe.model.ts");
/* harmony import */ var _nfe_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../nfe.service */ "./src/app/pages/nfe/nfe.service.ts");
/* harmony import */ var _verificar_status_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../verificar-status.constants */ "./src/app/pages/nfe/verificar-status/verificar-status.constants.ts");
/* harmony import */ var _verificar_status_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../verificar-status.model */ "./src/app/pages/nfe/verificar-status/verificar-status.model.ts");
/* harmony import */ var _verificar_status_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../verificar-status.service */ "./src/app/pages/nfe/verificar-status/verificar-status.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




















var VerificarStatusIndexComponent = /** @class */ (function (_super) {
    __extends(VerificarStatusIndexComponent, _super);
    function VerificarStatusIndexComponent(router, service, loginService, datatablesService, messageService, funcoesService, permissoesUtils, nfeService, notaFiscalService, login) {
        var _this = _super.call(this, new _verificar_status_constants__WEBPACK_IMPORTED_MODULE_14__["VerificarStatusConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.loginService = loginService;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.nfeService = nfeService;
        _this.notaFiscalService = notaFiscalService;
        _this.login = login;
        _this.dataFilter = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_10__["NotaFiscal"]();
        _this.dataItemFilter = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_10__["NotaFiscalItem"]();
        _this.isTabXml = false;
        _this.isTabPed = false;
        _this.data = new _verificar_status_model__WEBPACK_IMPORTED_MODULE_15__["VerificarStatus"]();
        _this.dadosAll = [];
        _this.sendDados = [];
        _this.constantes = new _verificar_status_constants__WEBPACK_IMPORTED_MODULE_14__["VerificarStatusConstants"]();
        _this.notasAProcessar = new _verificar_status_model__WEBPACK_IMPORTED_MODULE_15__["VerificarStatusProcessarNotas"]();
        _this.nfeDanfeFilter = new _verificar_status_model__WEBPACK_IMPORTED_MODULE_15__["ImprimirDanfeFiltroVo"]();
        _this.nfeDanfeFilterAux = new _nfe_model__WEBPACK_IMPORTED_MODULE_12__["NfeXmlFilter"]();
        _this.mensagens = [];
        _this.notas = new _verificar_status_model__WEBPACK_IMPORTED_MODULE_15__["ListaDeNotaFiscalIds"]();
        _this.tipoPrintSelecionado = 'L';
        _this.target = _this.funcoesService.getTargetLocation();
        _this.imprimirDanfe = function () {
            if (!_this.hasNFSelected) {
                return;
            }
            _this.funcoesService.reportInvoc.invocaRelatorio('COM0007', {
                titulo: _this.messageService.getTranslates('titles', 'emissaoNotaFiscal'),
                subTitulo: ''
            }, {
                regNota: _this.sendDados[0].regNota,
                filialId: _this.login.getLogin().filialId,
                colaboradorId: _this.login.getLogin().colaboradorId
            }, function () { return _this.refresh(); });
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_19__["ModalUtilsStaticService"].closeModal('verfica-status-print');
        };
        _this.processarNotas = function () {
            if (!_this.hasNFSelecteds) {
                _this.messageService.warning("titles.processarNotas", "messages.nenhumaNotaSelecionada");
                return;
            }
            _this.messageService.confirm("titles.verificaStatus", "messages.confirmaProcessamento", null, function () { return __awaiter(_this, void 0, void 0, function () {
                var dtArquivo;
                var _this = this;
                return __generator(this, function (_a) {
                    this.intervalOff();
                    this.notasAProcessar.notaFiscalIds = [];
                    this.sendDados.forEach(function (s) { _this.notasAProcessar.notaFiscalIds.push(s.regNota); });
                    this.notasAProcessar.downloadAutomaticoDanfe = this.service.filter.downloadAutomaticoDanfe;
                    dtArquivo = moment__WEBPACK_IMPORTED_MODULE_3__().format('DDMMYYYYHHMMSS').toString();
                    this.notasAProcessar.fileName = "Danfe" + dtArquivo + ".zip";
                    this.service.processarNotas(this.notasAProcessar).subscribe(function (resp) {
                        if (resp.message.has) {
                            _this.logs = resp.message.messages;
                        }
                        else {
                            var ret2 = resp.arquivoExportar;
                            if (_this.funcoesService.isNotUndefinedOrNull(ret2.validationResult)) {
                                if (ret2 && !ret2.validationResult.isValid) {
                                    _this.mensagens = _this.messageService.validationResult(ret2.validationResult);
                                    _this.messageService.warning("titles.exportarXML", _this.mensagens[0]);
                                }
                            }
                            else {
                                _this.nfeDanfeFilterAux = ret2;
                                if ((!_this.funcoesService.isNotUndefinedOrNull(_this.nfeDanfeFilterAux.arquivoZip)) || (_this.nfeDanfeFilterAux.arquivoZip === "")) {
                                    _this.messageService.warning("titles.exportarDanfe", "messages.nenhumPdfEnontrado");
                                }
                                else {
                                    _this.downloadDanfe();
                                    _this.messageService.success("Sucesso", "messages.exportacaoPdfRealizada");
                                }
                            }
                        }
                        _this.refresh();
                    });
                    return [2 /*return*/];
                });
            }); });
        };
        _this.reProcessarNotas = function () {
            if (!_this.hasNFSelecteds) {
                _this.messageService.warning("titles.reprocessarNotas", "messages.nenhumaNotaSelecionada");
                return;
            }
            _this.messageService.confirm("titles.verificaStatus", "messages.confirmaReprocessamento", null, function () {
                _this.notasAProcessar.notaFiscalIds = [];
                _this.sendDados.forEach(function (i) { return _this.notasAProcessar.notaFiscalIds.push(i.regNota); });
                _this.service.reProcessarNotas(_this.notasAProcessar).subscribe(function (resp) {
                    if (resp.has) {
                        _this.logs = resp.messages;
                    }
                    _this.refresh();
                });
            });
        };
        _this.toSelectedAll = function (checked) {
            if (_this.hasDados) {
                _this.dados.forEach(function (obj) { return obj.actived = checked; });
            }
            _this.setNFSelected();
        };
        _this.lerRetorno = function () {
            if (!_this.hasNFSelecteds) {
                _this.messageService.warning("titles.reprocessarNotas", "messages.nenhumaNotaSelecionada");
                return;
            }
            _this.messageService.confirm("titles.verificaStatus", "messages.confirmaLeituraDeRetorno", null, function () {
                _this.intervalOff();
                _this.notas.notaFiscalIds = [];
                _this.sendDados.forEach(function (s) { _this.notas.notaFiscalIds.push(s.regNota); });
                _this.service.lerRetorno(_this.notas).subscribe(function (resp) {
                    if (resp.has) {
                        _this.logs = resp.messages;
                    }
                    _this.refresh();
                });
            });
        };
        _this.atualizaRecibo = function () {
            if (!_this.hasNFSelecteds) {
                _this.messageService.warning("titles.reprocessarNotas", "messages.nenhumaNotaSelecionada");
                return;
            }
            _this.messageService.confirm("titles.verificaStatus", "messages.confirmaAtualizacaoRecibo", null, function () {
                _this.intervalOff();
                _this.notas.notaFiscalIds = [];
                _this.sendDados.forEach(function (s) { _this.notas.notaFiscalIds.push(s.regNota); });
                _this.service.atualizaRecibo(_this.notas).subscribe(function (resp) {
                    if (resp.has) {
                        _this.logs = resp.messages;
                    }
                    _this.refresh();
                });
            });
        };
        _this.toConsultarNota = function () {
            // this.router.navigate(['pages/notaFiscal/consulta'])
            if (!_this.sendDados || _this.sendDados.length === 0) {
                _this.messageService.warning("titles.verificaStatus", "messages.nenhumaNotaSelecionada");
                return;
            }
            if (!_this.sendDados || _this.sendDados.length > 1) {
                _this.messageService.warning("titles.verificaStatus", "messages.selecionarApenasUmaNota");
                return;
            }
            _this.sendDados.forEach(function (i) {
                _this.notaFiscalService.getById(i.regNota).subscribe(function (resp) {
                    _this.dataFilter = resp;
                    _this.dataFilter.vlIcms = resp.conNotaDtoOrigemRetorno[0].vlIcms;
                    _this.dataFilter.vlIpi = resp.conNotaDtoOrigemRetorno[0].vlIpi;
                    _this.dataFilter.vlIcmsDest = resp.conNotaDtoOrigemRetorno[0].vlIcmsDest;
                    _this.dataFilter.vlICMSRemet = resp.conNotaDtoOrigemRetorno[0].vlIcmsRemet;
                    _this.dataFilter.vlFCP = resp.conNotaDtoOrigemRetorno[0].vlFCP;
                    if (resp.notaFiscalItens) {
                        _this.dataItemFilter = resp.notaFiscalItens[0];
                    }
                    if (resp.conNotaDtoOrigemRetorno) {
                        _this.dataFilter.notaFiscalOrigemRetorno = resp.notaFiscalOrigemRetorno;
                    }
                    if (resp.tipoMov === "S") {
                        _this.isTabXml = true;
                    }
                    if (_this.funcoesService.isNotUndefinedOrNull(_this.dataFilter.consultaPedido)) {
                        if (_this.dataFilter.consultaPedido.length > 0) {
                            _this.isTabPed = true;
                        }
                    }
                    if (_this.dataFilter.notaServico && _this.dataFilter.notaServico.dataReciboNfe && _this.dataFilter.notaServico.dataReciboNfe !== "") {
                        _this.dataFilter.notaServico.dataReciboNfe = new Date(_this.dataFilter.notaServico.dataReciboNfe);
                    }
                });
                jQuery("#consulta-nota-fiscal-dialog").modal("show");
            });
            /*
                    this.sendDados.forEach(i => {
                        this.router.navigate([`${this.target}/notaFiscal/consulta/detail/${i.regNota}`]);
                    })
             */
        };
        _this.salvarMensagens = function () {
            _this.messageService.confirm("titles.verificaStatus", "messages.confirmaSalvarMensagens", null, function () {
                _this.service.salvarMensagens(new _verificar_status_model__WEBPACK_IMPORTED_MODULE_15__["SalvarMensagensFiltroVo"](_this.logs)).subscribe(function (resp) {
                    if (!resp.validationResult.isValid) {
                        _this.messageService.warning("titles.verificarStatus", resp.validationResult.erros[0].message);
                        return;
                    }
                    _this.downloadTxt(resp.fileText, resp.fileName, 'text/javascript');
                    _this.messageService.success("titles.verificarStatus", "messages.arquivoTxtGerado");
                });
            });
        };
        _this.limparMensagens = function () { return _this.logs = []; };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    VerificarStatusIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return _this.filtrar(); }, function () { return _this.permissoesUtils.back(); });
        _super.prototype.addFuncoes.call(this, [
            { action: '_processarNotas', func: function () { return _this.processarNotas; } },
            { action: '_toSelectedAll', func: function () { return _this.toSelectedAll; } },
            { action: '_reProcessarNotas', func: function () { return _this.reProcessarNotas; } },
            { action: '_toConsultarNota', func: function () { return _this.toConsultarNota; } },
            { action: '_lerRetorno', func: function () { return _this.lerRetorno; } },
            { action: '_atualizaRecibo', func: function () { return _this.atualizaRecibo; } },
            { action: '_salvarMensagens', func: function () { return _this.salvarMensagens; } },
            { action: '_limparMensagens', func: function () { return _this.limparMensagens; } }
        ]);
    };
    VerificarStatusIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    VerificarStatusIndexComponent.prototype.filtrar = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_19__["ModalUtilsStaticService"].openModal("verfica-status-filter");
    };
    VerificarStatusIndexComponent.prototype.executaFiltro = function () {
        var _this = this;
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_19__["ModalUtilsStaticService"].closeModal("verfica-status-filter", function (_) { return _this.refresh(); });
    };
    VerificarStatusIndexComponent.prototype.refresh = function () {
        this._refresh();
        this.intervalOn();
    };
    VerificarStatusIndexComponent.prototype.selectedRow = function (val, index) {
        this._index = index;
        this.data = val;
    };
    VerificarStatusIndexComponent.prototype.selectedDblClick = function (val) {
        val.actived = !val.actived;
        this.setNFSelected();
    };
    VerificarStatusIndexComponent.prototype.print = function () {
        if (this.hasDados) {
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_19__["ModalUtilsStaticService"].openModal('verfica-status-print');
        }
    };
    VerificarStatusIndexComponent.prototype.onPrint = function () {
        switch (this.tipoPrintSelecionado) {
            case 'D':
                this.imprimirDanfe();
                break;
            default:
                this.constantes.paramRelatorio = {
                    rejeitado: this.service.filter.rejeitado,
                    dtEmissao: this.service.filter.dtEmissao
                };
                _super.prototype.print.call(this);
                break;
        }
    };
    Object.defineProperty(VerificarStatusIndexComponent.prototype, "dados", {
        get: function () {
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.dadosAll);
            }
            return this.table.getPage(this.dadosFilter);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(VerificarStatusIndexComponent.prototype, "dadosFilter", {
        get: function () {
            var _this = this;
            return this.dadosAll.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["StringUtilsStaticService"].exist(app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["StringUtilsStaticService"].toString(v.nota), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["StringUtilsStaticService"].exist(app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["StringUtilsStaticService"].toString(v.codDest), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["StringUtilsStaticService"].exist(v.fantasia, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["StringUtilsStaticService"].exist(v.chaveNFe, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["StringUtilsStaticService"].exist(v.statusNFe, _this.table.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(VerificarStatusIndexComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ArrayUtilsStaticService"].any(this.dadosAll);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(VerificarStatusIndexComponent.prototype, "hasNFSelecteds", {
        get: function () {
            return this.hasDados && app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ArrayUtilsStaticService"].any(this.sendDados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(VerificarStatusIndexComponent.prototype, "hasNFSelected", {
        get: function () {
            return this.hasDados && app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ArrayUtilsStaticService"].any(this.sendDados) && this.sendDados.length === 1;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(VerificarStatusIndexComponent.prototype, "hasLogs", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ArrayUtilsStaticService"].any(this.logs);
        },
        enumerable: true,
        configurable: true
    });
    VerificarStatusIndexComponent.prototype.intervalOn = function () {
        var _this = this;
        if (this.service.filter.intervaloVerificacao === 0) {
            this.intervalOff();
        }
        else {
            var interval = this.service.filter.intervaloVerificacao * 60000;
            this._updateList = setInterval(function () { return _this._refresh(); }, interval);
        }
    };
    VerificarStatusIndexComponent.prototype.intervalOff = function () {
        clearInterval(this._updateList);
    };
    VerificarStatusIndexComponent.prototype._refresh = function () {
        var _this = this;
        this.service.filter.filialId = this.loginService.getLogin().filialId;
        this.service.verificaStatus(this.service.filter).subscribe(function (resp) {
            _this.dadosAll = resp;
            _this.btnTodos = false;
            _this.setNFSelected();
        });
    };
    VerificarStatusIndexComponent.prototype.downloadTxt = 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();
    };
    VerificarStatusIndexComponent.prototype.downloadDanfe = function () {
        if (this.funcoesService.isUndefinedOrNull(this.nfeDanfeFilterAux)) {
            return;
        }
        var b64 = this.nfeDanfeFilterAux.arquivoZip;
        var byteCharacters = atob(b64);
        var byteArrays = [];
        for (var offset = 0; offset < byteCharacters.length; offset += 512) {
            var slice = byteCharacters.slice(offset, offset + 512);
            var byteNumbers = new Array(slice.length);
            for (var i = 0; i < slice.length; i++) {
                byteNumbers[i] = slice.charCodeAt(i);
            }
            var byteArray = new Uint8Array(byteNumbers);
            byteArrays.push(byteArray);
        }
        var tipo = this.nfeDanfeFilterAux.tipoArquivo.replace(',', '');
        var blobData = new Blob(byteArrays, { type: tipo });
        var blob = new Blob([blobData], { type: tipo });
        var url = window.URL.createObjectURL(blob);
        var link = document.createElement('a');
        link.href = url;
        link.download = this.nfeDanfeFilterAux.nomeArquivo;
        link.click();
    };
    VerificarStatusIndexComponent.prototype.setNFSelected = function () {
        this.sendDados = this.dados.filter(function (c) { return !!c.actived; });
        this.btnTodos = this.dados.length === this.sendDados.length;
        this.buttonDisabled('listaIndex', '_processarNotas', !this.hasNFSelecteds);
        this.buttonDisabled('listaIndex', '_reProcessarNotas', !this.hasNFSelecteds);
        this.buttonDisabled('listaIndex', '_lerRetorno', !this.hasNFSelecteds);
        this.buttonDisabled('listaIndex', '_atualizaRecibo', !this.hasNFSelecteds);
        this.buttonDisabled('listaIndex', '_toConsultarNota', !this.hasNFSelecteds);
    };
    VerificarStatusIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _verificar_status_service__WEBPACK_IMPORTED_MODULE_16__["VerificarStatusService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _nfe_service__WEBPACK_IMPORTED_MODULE_13__["NfeService"] },
        { type: _nota_fiscal_nota_fiscal_service__WEBPACK_IMPORTED_MODULE_11__["NotaFiscalService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"])
    ], VerificarStatusIndexComponent.prototype, "table", void 0);
    VerificarStatusIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-verificar-status-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./verificar-status-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nfe/verificar-status/verificar-status-index/verificar-status-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./verificar-status-index.component.scss */ "./src/app/pages/nfe/verificar-status/verificar-status-index/verificar-status-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _verificar_status_service__WEBPACK_IMPORTED_MODULE_16__["VerificarStatusService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _nfe_service__WEBPACK_IMPORTED_MODULE_13__["NfeService"],
            _nota_fiscal_nota_fiscal_service__WEBPACK_IMPORTED_MODULE_11__["NotaFiscalService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"]])
    ], VerificarStatusIndexComponent);
    return VerificarStatusIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusNotaFiscalConsultaComponent", function() { return VerificarStatusNotaFiscalConsultaComponent; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* 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_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_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../nota-fiscal/nota-fiscal.model */ "./src/app/pages/nota-fiscal/nota-fiscal.model.ts");
/* harmony import */ var _nota_fiscal_nota_fiscal_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../nota-fiscal/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 VerificarStatusNotaFiscalConsultaComponent = /** @class */ (function () {
    function VerificarStatusNotaFiscalConsultaComponent(router, funcoesService, notaFiscalService, contatosService, loginService, pedidoDeEmbarqueService, emailService, activatedRoute, http, permissoesUtils, messageService) {
        var _this = 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.http = http;
        this.permissoesUtils = permissoesUtils;
        this.messageService = messageService;
        this.acoesNota = [];
        this.notaFiscal = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscal"]();
        this.notaFiscalItens = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalItem"]();
        this.notaFiscalDadosItens = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalDadosItem"]();
        this.notaFiscalTipoEventoManifesto = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalTipoEventoManifesto"]();
        this.notaFiscalNfeProtocoloAut = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalNfeProtocoloAut"]();
        this.notaFiscalNfeProtocoloCanc = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalNfeProtocoloCanc"]();
        this.consultaPedido = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["ConsultaNotaPedidoEmbarque"]();
        this.notaEntrada = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalEntradaSaida"]();
        this.notaSaida = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalEntradaSaida"]();
        this.notaMovimentacao = new _nota_fiscal_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.dadosEmbarque = [];
        this.dataAuxEmbarque = new _comercial_pedido_de_embarque_pedido_de_embarque_model__WEBPACK_IMPORTED_MODULE_11__["PedidoDeEmbarque"]();
        this.filtro = new _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalFilter"]();
        this.conNotaFiscalOrigem = new _nota_fiscal_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_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalXml"]();
        this.isEnabledBotoes = false;
        this.target = this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
    }
    VerificarStatusNotaFiscalConsultaComponent.prototype.ngOnInit = function () {
        var id = this.data.notaFiscalId;
        if (id) {
            this.getXmlById(id);
        }
    };
    VerificarStatusNotaFiscalConsultaComponent.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 (resp.conNotaDtoOrigemRetorno) {
                _this.data.notaFiscalOrigemRetorno = resp.notaFiscalOrigemRetorno;
            }
            if (_this.data.tipoMov === "Saída") {
                _this.isTabXml = true;
            }
            if (_this.funcoesService.isNotUndefinedOrNull(_this.data.consultaPedido)) {
                if (_this.data.consultaPedido.length > 0) {
                    _this.isTabPed = true;
                }
            }
            if (_this.data.notaServico && _this.data.notaServico.dataReciboNfe && _this.data.notaServico.dataReciboNfe !== "") {
                _this.data.notaServico.dataReciboNfe = new Date(_this.data.notaServico.dataReciboNfe);
            }
        });
    };
    VerificarStatusNotaFiscalConsultaComponent.prototype.back = function () {
        this.router.navigate([this.target + "/notaFiscal/consulta"]);
    };
    VerificarStatusNotaFiscalConsultaComponent.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;
            }
        }
    };
    VerificarStatusNotaFiscalConsultaComponent.prototype.enviaEmail = function () {
        var _this = this;
        if (!this.contatos || (this.contatos && this.contatos.trim() === "")) {
            this.messageService.success("titles.notaFiscal", "messages.naoTemEmailsCadastrados");
            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");
            }
        });
    };
    VerificarStatusNotaFiscalConsultaComponent.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(VerificarStatusNotaFiscalConsultaComponent.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
    });
    VerificarStatusNotaFiscalConsultaComponent.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.conteudoCopiado");
    };
    VerificarStatusNotaFiscalConsultaComponent.prototype.downloadFileXml = function () {
        if (!this.data || !this.data.notaFiscalXml || !this.data.notaFiscalXml.xml || this.data.notaFiscalXml.xml.trim() === "") {
            this.messageService.warning("titles.notaFiscal", "messages.nenhumXmlEnontrado");
            return;
        }
        this.download(this.getXml, this.data.chaveNFE + '-nfe.xml', null);
    };
    VerificarStatusNotaFiscalConsultaComponent.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();
    };
    VerificarStatusNotaFiscalConsultaComponent.prototype.atualizaRecibo = function () {
    };
    VerificarStatusNotaFiscalConsultaComponent.prototype.reciboDeCancelamento = function () {
    };
    VerificarStatusNotaFiscalConsultaComponent.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);
    };
    VerificarStatusNotaFiscalConsultaComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _nota_fiscal_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_2__["ActivatedRoute"] },
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"] },
        { type: _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscal"])
    ], VerificarStatusNotaFiscalConsultaComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", _nota_fiscal_nota_fiscal_model__WEBPACK_IMPORTED_MODULE_14__["NotaFiscalItem"])
    ], VerificarStatusNotaFiscalConsultaComponent.prototype, "dataItem", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Boolean)
    ], VerificarStatusNotaFiscalConsultaComponent.prototype, "isTabPed", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
        __metadata("design:type", Boolean)
    ], VerificarStatusNotaFiscalConsultaComponent.prototype, "isTabXml", void 0);
    VerificarStatusNotaFiscalConsultaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-verificar-status-nota-fiscal-consulta",
            template: __importDefault(__webpack_require__(/*! raw-loader!./verificar-status-nota-fiscal-consulta.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nfe/verificar-status/verificar-status-nota-fiscal-consulta/verificar-status-nota-fiscal-consulta.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _nota_fiscal_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_2__["ActivatedRoute"],
            _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"]])
    ], VerificarStatusNotaFiscalConsultaComponent);
    return VerificarStatusNotaFiscalConsultaComponent;
}());



/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar-status.constants.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar-status.constants.ts ***!
  \**************************************************************************/
/*! exports provided: VerificarStatusConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusConstants", function() { return VerificarStatusConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var VerificarStatusConstants = /** @class */ (function () {
    function VerificarStatusConstants() {
        this.sisFormularioId = 5203;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "FAT";
        this.configs = [];
        this.nomeForm = "titles.verificaStatus";
        this.reportId = "CAD0264";
        this.reportTitulo = { "titulo": "Verificar Status", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Processar', action: '_processarNotas', icon: "fa fa-check", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'ReProcessar', action: '_reProcessarNotas', icon: "fa fa-check-square", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'LerRetorno', action: '_lerRetorno', icon: "icon-arrow-right", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'AtualizaRecibo', action: '_atualizaRecibo', icon: "fa fa-rss", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'ConsultarNota', action: '_toConsultarNota', icon: "fa fa-clipboard", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configs = [
            { sistema: "UNI", parametros: ["FechamentoCtb"] },
            { sistema: "LIV", parametros: ["FechamentoFis"] },
        ];
    }
    return VerificarStatusConstants;
}());



/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar-status.model.ts":
/*!**********************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar-status.model.ts ***!
  \**********************************************************************/
/*! exports provided: VerificarStatus, VerificarStatusFilter, ListaDeNotaFiscalIds, VerificarStatusProcessarNotas, ImprimirDanfeFiltroVo, SalvarMensagensFiltroVo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatus", function() { return VerificarStatus; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusFilter", function() { return VerificarStatusFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListaDeNotaFiscalIds", function() { return ListaDeNotaFiscalIds; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusProcessarNotas", function() { return VerificarStatusProcessarNotas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ImprimirDanfeFiltroVo", function() { return ImprimirDanfeFiltroVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SalvarMensagensFiltroVo", function() { return SalvarMensagensFiltroVo; });
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var VerificarStatus = /** @class */ (function () {
    function VerificarStatus() {
    }
    return VerificarStatus;
}());

var VerificarStatusFilter = /** @class */ (function () {
    function VerificarStatusFilter() {
        this.downloadAutomaticoDanfe = false;
        this.rejeitado = "S";
        var date = new Date();
        date.setDate(date.getDate() - 60);
        this.dtEmissao = date;
    }
    return VerificarStatusFilter;
}());

var ListaDeNotaFiscalIds = /** @class */ (function () {
    function ListaDeNotaFiscalIds() {
        this.notaFiscalIds = [];
    }
    return ListaDeNotaFiscalIds;
}());

var VerificarStatusProcessarNotas = /** @class */ (function (_super) {
    __extends(VerificarStatusProcessarNotas, _super);
    function VerificarStatusProcessarNotas() {
        return _super.call(this) || this;
    }
    return VerificarStatusProcessarNotas;
}(ListaDeNotaFiscalIds));

var ImprimirDanfeFiltroVo = /** @class */ (function (_super) {
    __extends(ImprimirDanfeFiltroVo, _super);
    function ImprimirDanfeFiltroVo() {
        var _this = _super.call(this) || this;
        _this.notaFiscalIds = [];
        _this.fileName = "";
        _this.arquivoZip = "";
        _this.reportId = "COM0009";
        _this.titulo = "Danfe";
        _this.logotipo = "";
        _this.filialId = 0;
        _this.colaboradorId = 0;
        return _this;
    }
    return ImprimirDanfeFiltroVo;
}(ListaDeNotaFiscalIds));

var SalvarMensagensFiltroVo = /** @class */ (function () {
    function SalvarMensagensFiltroVo(mensagens) {
        this.mensagens = mensagens;
    }
    return SalvarMensagensFiltroVo;
}());



/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar-status.module.ts":
/*!***********************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar-status.module.ts ***!
  \***********************************************************************/
/*! exports provided: VerificarStatusModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusModule", function() { return VerificarStatusModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _verificar_status_index_verificar_status_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./verificar-status-index/verificar-status-index.component */ "./src/app/pages/nfe/verificar-status/verificar-status-index/verificar-status-index.component.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _verificar_status_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./verificar.status.routing.module */ "./src/app/pages/nfe/verificar-status/verificar.status.routing.module.ts");
/* harmony import */ var _verificar_status_filter_verificar_status_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./verificar-status-filter/verificar-status-filter.component */ "./src/app/pages/nfe/verificar-status/verificar-status-filter/verificar-status-filter.component.ts");
/* harmony import */ var _verificar_status_nota_fiscal_consulta_verificar_status_nota_fiscal_consulta_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./verificar-status-nota-fiscal-consulta/verificar-status-nota-fiscal-consulta.component */ "./src/app/pages/nfe/verificar-status/verificar-status-nota-fiscal-consulta/verificar-status-nota-fiscal-consulta.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 VerificarStatusModule = /** @class */ (function () {
    function VerificarStatusModule() {
    }
    VerificarStatusModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_verificar_status_filter_verificar_status_filter_component__WEBPACK_IMPORTED_MODULE_5__["VerificarStatusFilterComponent"],
                _verificar_status_index_verificar_status_index_component__WEBPACK_IMPORTED_MODULE_2__["VerificarStatusIndexComponent"],
                _verificar_status_nota_fiscal_consulta_verificar_status_nota_fiscal_consulta_component__WEBPACK_IMPORTED_MODULE_6__["VerificarStatusNotaFiscalConsultaComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_3__["SharedModule"],
                _verificar_status_routing_module__WEBPACK_IMPORTED_MODULE_4__["VerificarStatusRoutingModule"]
            ]
        })
    ], VerificarStatusModule);
    return VerificarStatusModule;
}());



/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar-status.service.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar-status.service.ts ***!
  \************************************************************************/
/*! exports provided: VerificarStatusService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusService", function() { return VerificarStatusService; });
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _verificar_status_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./verificar-status.model */ "./src/app/pages/nfe/verificar-status/verificar-status.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var VerificarStatusService = /** @class */ (function (_super) {
    __extends(VerificarStatusService, _super);
    function VerificarStatusService(http) {
        var _this = _super.call(this, http, "") || this;
        _this.filter = new _verificar_status_model__WEBPACK_IMPORTED_MODULE_6__["VerificarStatusFilter"]();
        return _this;
    }
    VerificarStatusService.prototype.verificaStatus = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/verificaStatusNfe/verificarStatus", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    VerificarStatusService.prototype.processarNotas = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/verificaStatusNfe/processarNotas", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    VerificarStatusService.prototype.reProcessarNotas = function (filter) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/verificaStatusNfe/reProcessarNotas", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    VerificarStatusService.prototype.lerRetorno = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/verificaStatusNfe/lerRetorno", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    VerificarStatusService.prototype.atualizaRecibo = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/verificaStatusNfe/atualizaRecibo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    VerificarStatusService.prototype.salvarMensagens = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/verificaStatusNfe/salvarMensagens", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    VerificarStatusService.prototype.imprimirDanfePdf = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/imprimirDanfe", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    VerificarStatusService.prototype.gerarPDFDanfe = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/nfe/gerarPDFDanfe", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    VerificarStatusService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    VerificarStatusService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], VerificarStatusService);
    return VerificarStatusService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/nfe/verificar-status/verificar.status.routing.module.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/nfe/verificar-status/verificar.status.routing.module.ts ***!
  \*******************************************************************************/
/*! exports provided: VerificarStatusRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerificarStatusRoutingModule", function() { return VerificarStatusRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _verificar_status_index_verificar_status_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./verificar-status-index/verificar-status-index.component */ "./src/app/pages/nfe/verificar-status/verificar-status-index/verificar-status-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: "",
        component: _verificar_status_index_verificar_status_index_component__WEBPACK_IMPORTED_MODULE_3__["VerificarStatusIndexComponent"],
        data: {
            breadcrumb: "verificarStatus",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var VerificarStatusRoutingModule = /** @class */ (function () {
    function VerificarStatusRoutingModule() {
    }
    VerificarStatusRoutingModule = __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"]]
        })
    ], VerificarStatusRoutingModule);
    return VerificarStatusRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-nfe-verificar-status-verificar-status-module.js.map