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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-filter/nota-fiscal-reemissao-filter.component.html":
/*!************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-filter/nota-fiscal-reemissao-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\" id=\"nota-fiscal-reemissao-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisa' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-4\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filtro.dataI\" autofocus\r\n                                    class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"col-md-4\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataF\" class=\"dataHora\"\r\n                                    [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-8\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                    [(ngModel)]=\"service.filtro.destinatarioIdCliente\" showInscricao=\"false\"\r\n                                    showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"nota\">{{ 'labels.nota' | translate }}</label>\r\n                                <input id=\"nota\" name=\"nota\" [(ngModel)]=\"service.filtro.nota\"\r\n                                    class=\"form-control form-control-sm\" type=\"number\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"serie\">{{ 'labels.serie' | translate}}</label>\r\n                                <app-combo-serie name=\"serie\" id=\"serie\" [(ngModel)]=\"service.filtro.serieNotaId\">\r\n                                </app-combo-serie>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"pedido\">{{ 'labels.pedido' | translate }}</label>\r\n                                <input id=\"pedido\" name=\"pedido\" [(ngModel)]=\"service.filtro.pedido\"\r\n                                    class=\"form-control form-control-sm\" type=\"number\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-6 col-sm-12\">\r\n                            <label>{{ 'labels.tipoPed' | translate }}</label>\r\n                            <div class=\"form-group\">\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input id=\"radioTipoPed\" type=\"radio\" name=\"radioTipoPed\"\r\n                                        class=\"custom-control-input radio-success\" value=\"F\"\r\n                                        [(ngModel)]=\"service.filtro.tipoPed\" />\r\n                                    <label class=\"custom-control-label\" for=\"radioTipoPed\">{{ 'labels.outrasNotas' |\r\n                                        translate }}</label>\r\n                                </div>\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input id=\"radioTipoPedPrimary\" type=\"radio\" name=\"radioTipoPedPrimary\"\r\n                                        class=\"custom-control-input radio-success\" value=\"U\"\r\n                                        [(ngModel)]=\"service.filtro.tipoPed\" />\r\n                                    <label class=\"custom-control-label\" for=\"radioTipoPedPrimary\">{{ 'labels.notaCarga'\r\n                                        | translate }}</label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-6 col-sm-12\">\r\n                            <label>{{ 'labels.tipoMov' | translate }}</label>\r\n                            <div class=\"form-group\">\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input id=\"radioTipoMovDefault\" type=\"radio\" name=\"radioTipoMovDefault\"\r\n                                        class=\"custom-control-input radio-success\" value=\"E\"\r\n                                        [(ngModel)]=\"service.filtro.tipoMov\" />\r\n                                    <label class=\"custom-control-label\" for=\"radioTipoMovDefault\">{{ 'labels.entrada' |\r\n                                        translate }}</label>\r\n                                </div>\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input id=\"radioTipoMovPrimary\" type=\"radio\" name=\"radioTipoMovPrimary\"\r\n                                        class=\"custom-control-input radio-success\" value=\"S\"\r\n                                        [(ngModel)]=\"service.filtro.tipoMov\" />\r\n                                    <label class=\"custom-control-label\" for=\"radioTipoMovPrimary\">{{ 'labels.saida' |\r\n                                        translate }}</label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"notasCanceladas\" name=\"notasCanceladas\"\r\n                                    [ngModel]=\"service.filtro.flagNotasCanceladas === 'S'\"\r\n                                    (ngModelChange)=\"service.filtro.flagNotasCanceladas = $event ? 'S' : 'N'\"\r\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                <label class=\"custom-control-label\" for=\"notasCanceladas\">\r\n                                    {{'labels.apresentaNotasCanceladas' | translate}}\r\n                                </label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.nota\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                    <app-validacoes></app-validacoes>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"notaFiscal\">{{\"labels.notaFiscal\" | translate}}</label>\n                                <input name=\"notaFiscal\" id=\"notaFiscal\" class=\"form-control form-control-sm\"\n                                       [(ngModel)]=\"data.nota\"\n                                       type=\"number\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipo\">{{\"labels.tipo\" | translate}}</label>\n                                <input name=\"tipo\" id=\"tipo\" class=\"form-control form-control-sm\"\n                                       [(ngModel)]=\"data.tipoMov\"\n                                       type=\"text\" disabled>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"serieNF\">{{'labels.serie' | translate}}</label>\n                                <input id=\"serieNF\" name=\"serieNF\" class=\"form-control form-control-sm\"\n                                       [(ngModel)]=\"data.serieNf\"\n                                       type=\"text\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"pedido\">{{\"labels.pedido\" | translate}}</label>\n                                <input name=\"pedido\" id=\"pedido\" class=\"form-control form-control-sm\"\n                                       [(ngModel)]=\"data.pedido\"\n                                       type=\"number\" disabled>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"emissao\">{{'labels.emissao' | translate}}</label>\n                                <input type=\"text\" class=\"form-control form-control-sm\"\n                                       id=\"emissao\"\n                                       name=\"emissao\"\n                                       value=\"{{data?.dtEmissao | date:'dd/MM/yyyy' }}\"\n                                       disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"valorTotal\">{{ 'labels.valorTotal' | translate }}</label>\n                                <input type=\"text\" class=\"form-control-sm form-control\"\n                                       id=\"valorTotal\"\n                                       name=\"valorTotal\"\n                                       value=\"{{ data?.vlNota | formatCurrency: 2 }}\"\n                                       disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                            <div class=\"form-group\">\n                                <label for=\"cliente\">{{ 'labels.cliente' | translate }}</label>\n                                <input type=\"text\" class=\"form-control-sm form-control\"\n                                       id=\"cliente\"\n                                       name=\"cliente\"\n                                       value=\"{{ data?.fantasia }}\"\n                                       disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"enviarNotaParaCliente\"\n                                    name=\"enviarNotaParaCliente\"\n                                    [ngModel]=\"data.enviarNotaCliente === 'S'\"\n                                    (ngModelChange)=\"data.enviarNotaCliente = $event ? 'S' : 'N'\"\n                                    class=\"custom-control-input checkbox-success\"\n                                    type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"enviarNotaParaCliente\">\n                                    {{'labels.enviarNotaParaCliente' | translate}}\n                                </label>\n                            </div>\n                        </div>\n                    </div>\n                    \n                    <div class=\"row mt-4\">\n                        <div class=\"col-4\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                    {{ 'buttons.ok' | translate }}\n                                </button>\n                                <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"back()\">\n                                    {{ 'buttons.cancelar' | translate }}\n                                </button>\n                                <button class=\"btn btn-success\" type=\"button\" (click)=\"onGerarXml()\">\n                                    {{ 'buttons.gerarXml' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n");

/***/ }),

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

/***/ }),

/***/ "./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/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-filter/nota-fiscal-reemissao-filter.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-filter/nota-fiscal-reemissao-filter.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: NotaFiscalReemissaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalReemissaoFilterComponent", function() { return NotaFiscalReemissaoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../nota-fiscal-reemissao.model */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _nota_fiscal_reemissao_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../nota-fiscal-reemissao.service */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.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 NotaFiscalReemissaoFilterComponent = /** @class */ (function () {
    function NotaFiscalReemissaoFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
    }
    NotaFiscalReemissaoFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_1__["NotaFiscalReemissaoFilter"]();
        }
    };
    NotaFiscalReemissaoFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.service.filtro);
        jQuery("#nota-fiscal-reemissao-filter-dialog").modal("hide");
    };
    NotaFiscalReemissaoFilterComponent.ctorParameters = function () { return [
        { type: _nota_fiscal_reemissao_service__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalReemissaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], NotaFiscalReemissaoFilterComponent.prototype, "filtrar", void 0);
    NotaFiscalReemissaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-nota-fiscal-reemissao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./nota-fiscal-reemissao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-filter/nota-fiscal-reemissao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_nota_fiscal_reemissao_service__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalReemissaoService"]])
    ], NotaFiscalReemissaoFilterComponent);
    return NotaFiscalReemissaoFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalReemissaoFormComponent", function() { return NotaFiscalReemissaoFormComponent; });
/* 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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _nfe_nfe_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../nfe/nfe.service */ "./src/app/pages/nfe/nfe.service.ts");
/* harmony import */ var _cadastro_serie_serie_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../cadastro/serie/serie.service */ "./src/app/pages/cadastro/serie/serie.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_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../nota-fiscal.service */ "./src/app/pages/nota-fiscal/nota-fiscal.service.ts");
/* harmony import */ var _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../nota-fiscal-reemissao.model */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.model.ts");
/* harmony import */ var _nota_fiscal_reemissao_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../nota-fiscal-reemissao.constants */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.constants.ts");
/* harmony import */ var app_pages_nfe_nfe_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/nfe/nfe.model */ "./src/app/pages/nfe/nfe.model.ts");
/* harmony import */ var app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/login/login.model */ "./src/app/pages/login/login.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 __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 NotaFiscalReemissaoFormComponent = /** @class */ (function (_super) {
    __extends(NotaFiscalReemissaoFormComponent, _super);
    function NotaFiscalReemissaoFormComponent(router, messageService, activatedRoute, funcoesService, permissoesUtils, serieService, loginService, nfeService, notaFiscalService) {
        var _this = _super.call(this, new _nota_fiscal_reemissao_constants__WEBPACK_IMPORTED_MODULE_12__["NotaFiscalReemissaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.serieService = serieService;
        _this.loginService = loginService;
        _this.nfeService = nfeService;
        _this.notaFiscalService = notaFiscalService;
        _this.data = new _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_11__["NotaFiscalReemissao"]();
        _this.mensagens = [];
        _this.constantes = new _nota_fiscal_reemissao_constants__WEBPACK_IMPORTED_MODULE_12__["NotaFiscalReemissaoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.dadosLogin = new app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_14__["Login"]();
        _this.filtroXml = new app_pages_nfe_nfe_model__WEBPACK_IMPORTED_MODULE_13__["NfeXmlFilter"]();
        _this.nfeXmlFilterAux = new app_pages_nfe_nfe_model__WEBPACK_IMPORTED_MODULE_13__["NfeXmlFilter"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.dadosLogin = loginService.getLogin();
        return _this;
    }
    NotaFiscalReemissaoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var obj = _this.activatedRoute.snapshot.paramMap.get("object");
            if (obj) {
                var object = JSON.parse(atob(obj));
                _this.data.regNota = object.regNota;
                _this.data.nota = object.nota;
                _this.data.tipoMov = object.tipoMov === "E" ? "Entrada" : "Saída";
                _this.data.serieNf = object.serieNf;
                _this.data.pedido = object.pedido;
                _this.data.dtEmissao = new Date(object.dtEmissao);
                _this.data.vlNota = object.vlNota;
                _this.data.fantasia = object.fantasia;
                _this.data.filialId = object.filialId;
                _this.data.destinatarioIdCliente = object.destinatarioIdCliente;
            }
            else {
                _this.data = new _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_11__["NotaFiscalReemissao"]();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    NotaFiscalReemissaoFormComponent.prototype.onSubmit = function (form, create) {
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Reemissão Nota Fiscal";
        var reportTitulo = {
            titulo: this.messageService.getTranslates('titles', 'reemissaoNotaFiscal'),
            subTitulo: ''
        };
        this.funcoesService.reportInvoc.invocaRelatorio(this.constantes.reportDanfeId, reportTitulo, {
            regNota: this.data.regNota,
            filialId: this.dadosLogin.filialId,
            colaboradorId: this.dadosLogin.colaboradorId
        });
        if (this.data.enviarNotaCliente === "S") {
            this.enviarEmailNotaXmlCliente();
        }
        else {
            this.back();
        }
    };
    NotaFiscalReemissaoFormComponent.prototype.enviarEmailNotaXmlCliente = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.nfeService.enviaEmailDanfe({ regNota: this.data.regNota }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult || !validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.reemissaoNotaFiscal", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.info("titles.reemissaoNotaFiscal", "messages.emailEnviadoSucesso");
                            this.back();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    NotaFiscalReemissaoFormComponent.prototype.onGerarXml = function () {
        var _this = this;
        this.filtroXml.filialId = this.data.filialId;
        this.filtroXml.serieNF = this.data.serieNf;
        this.filtroXml.notaFiscalIdI = this.data.nota;
        this.filtroXml.notaFiscalIdF = this.data.nota;
        this.filtroXml.dataI = this.data.dtEmissao;
        this.filtroXml.dataF = this.data.dtEmissao;
        this.filtroXml.destinatarioIdCliente = this.data.destinatarioIdCliente;
        this.nfeService.exportarXml(this.filtroXml).subscribe(function (resp) {
            if (!resp.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(resp.validationResult);
                _this.messageService.warning("titles.exportarXML", _this.mensagens[0]);
                return;
            }
            _this.nfeXmlFilterAux = resp;
            if ((!_this.funcoesService.isNotUndefinedOrNull(_this.nfeXmlFilterAux.arquivoZip)) || (_this.nfeXmlFilterAux.arquivoZip === "")) {
                _this.messageService.warning("titles.exportarXML", "messages.nenhumXmlEnontrado");
                return;
            }
            _this.download();
            _this.messageService.success("Sucesso", "messages.exportacaoXmlRealizada");
            _this.back();
        });
    };
    NotaFiscalReemissaoFormComponent.prototype.download = function () {
        if (this.funcoesService.isUndefinedOrNull(this.nfeXmlFilterAux)) {
            return;
        }
        var b64 = this.nfeXmlFilterAux.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.nfeXmlFilterAux.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.nfeXmlFilterAux.nomeArquivo;
        link.click();
    };
    NotaFiscalReemissaoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/notaFiscal/reemissaoNotaFiscal"]);
    };
    NotaFiscalReemissaoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _cadastro_serie_serie_service__WEBPACK_IMPORTED_MODULE_8__["SerieService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _nfe_nfe_service__WEBPACK_IMPORTED_MODULE_7__["NfeService"] },
        { type: _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_10__["NotaFiscalService"] }
    ]; };
    NotaFiscalReemissaoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-nota-fiscal-reemissao-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./nota-fiscal-reemissao-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-form/nota-fiscal-reemissao-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _cadastro_serie_serie_service__WEBPACK_IMPORTED_MODULE_8__["SerieService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _nfe_nfe_service__WEBPACK_IMPORTED_MODULE_7__["NfeService"],
            _nota_fiscal_service__WEBPACK_IMPORTED_MODULE_10__["NotaFiscalService"]])
    ], NotaFiscalReemissaoFormComponent);
    return NotaFiscalReemissaoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalReemissaoIndexComponent", function() { return NotaFiscalReemissaoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _nota_fiscal_reemissao_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../nota-fiscal-reemissao.constants */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.constants.ts");
/* harmony import */ var _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../nota-fiscal-reemissao.model */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.model.ts");
/* harmony import */ var _nota_fiscal_reemissao_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../nota-fiscal-reemissao.service */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/email/email.service */ "./src/app/shared/services/funcoes/email/email.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/login/login.model */ "./src/app/pages/login/login.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 NotaFiscalReemissaoIndexComponent = /** @class */ (function (_super) {
    __extends(NotaFiscalReemissaoIndexComponent, _super);
    function NotaFiscalReemissaoIndexComponent(router, notaFiscalReemissaoService, activatedRoute, datatablesService, messageService, emailService, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _nota_fiscal_reemissao_constants__WEBPACK_IMPORTED_MODULE_2__["NotaFiscalReemissaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.notaFiscalReemissaoService = notaFiscalReemissaoService;
        _this.activatedRoute = activatedRoute;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.emailService = emailService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_3__["NotaFiscalReemissao"]();
        _this.constantes = new _nota_fiscal_reemissao_constants__WEBPACK_IMPORTED_MODULE_2__["NotaFiscalReemissaoConstants"]();
        _this.mensagens = [];
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_10__["Mascaras"]();
        _this.dadosLogin = new app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_13__["Login"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.reemissao = function () {
            if (_this.funcoesService.isNotUndefinedOrNull(_this.data.nota)) {
                var object = btoa(JSON.stringify({
                    regNota: _this.data.regNota,
                    nota: _this.data.nota,
                    tipoMov: _this.data.tipoMov,
                    serieNf: _this.data.serieNf,
                    pedido: _this.data.pedido,
                    dtEmissao: _this.data.dtEmissao,
                    vlNota: _this.data.vlNota,
                    fantasia: _this.data.fantasia,
                    filialId: _this.data.filialId,
                    destinatarioIdCliente: _this.data.destinatarioIdCliente
                }));
                _this.router.navigate([
                    "pages/notaFiscal/reemissaoNotaFiscal/edit/" + object
                ]);
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.dadosLogin = loginService.getLogin();
        return _this;
    }
    NotaFiscalReemissaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils
            .verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.notaFiscalReemissaoService.filtro = new _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_3__["NotaFiscalReemissaoFilter"]();
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'reemissao', func: function () { return _this.reemissao; } }
        ]);
    };
    NotaFiscalReemissaoIndexComponent.prototype.executaFiltro = function (event) {
        this.notaFiscalReemissaoService.filtro = event;
        this.refresh();
    };
    NotaFiscalReemissaoIndexComponent.prototype.filtrar = function () {
        jQuery("#nota-fiscal-reemissao-filter-dialog").modal("show");
    };
    NotaFiscalReemissaoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.notaFiscalReemissaoService.filtro.filialId = this.dadosLogin.filialId;
        this.notaFiscalReemissaoService.getByFiltro(this.notaFiscalReemissaoService.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataStringAlignRight("nota", "nota"),
                _this.datatablesService.getDataStringAlignRight("numeroNfe", "nfe"),
                _this.datatablesService.getDataStringAlignRight("pedido", "pedido"),
                _this.datatablesService.getDataString("serieNf", "serie"),
                _this.datatablesService.getDataString("tipoMov", "tipo"),
                _this.datatablesService.getDataDateTime("dtEmissao", "emissao"),
                _this.datatablesService.getDataString("fantasia", "destinatario"),
                _this.datatablesService.getDataDouble("vlNota", "valorTotal"),
                _this.datatablesService.getDataString("nomeFilial", "empresa"),
                _this.datatablesService.getDataString("descrSituacaoNfe", "situacao")
            ];
            _this.datatablesService.datatable("dtReemissao", columns, resp, function (aData) {
                _this.data = aData;
            }, 0, "asc");
        });
    };
    NotaFiscalReemissaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    NotaFiscalReemissaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _nota_fiscal_reemissao_service__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalReemissaoService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: app_shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_11__["EmailService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_12__["LoginService"] }
    ]; };
    NotaFiscalReemissaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            template: __importDefault(__webpack_require__(/*! raw-loader!./nota-fiscal-reemissao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-index/nota-fiscal-reemissao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _nota_fiscal_reemissao_service__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalReemissaoService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            app_shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_11__["EmailService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_12__["LoginService"]])
    ], NotaFiscalReemissaoIndexComponent);
    return NotaFiscalReemissaoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalReemissaoConstants", function() { return NotaFiscalReemissaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var NotaFiscalReemissaoConstants = /** @class */ (function () {
    function NotaFiscalReemissaoConstants() {
        this.sisFormularioId = 5056;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" }
        ];
        this.sisSistemaId = "FAT";
        this.nomeForm = "titles.reemissaoNotaFiscal";
        this.reportDanfeId = "COM0007";
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'reemissao', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaParam = [
            { 'sistema': 'FAT', 'parametros': ["DiasCanc, ObsEspecialDanfe"] }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return NotaFiscalReemissaoConstants;
}());



/***/ }),

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

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


var NotaFiscalReemissao = /** @class */ (function (_super) {
    __extends(NotaFiscalReemissao, _super);
    function NotaFiscalReemissao() {
        var _this = _super.call(this) || this;
        _this.enviarNotaCliente = "N";
        return _this;
    }
    return NotaFiscalReemissao;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var NotaFiscalReemissaoFilter = /** @class */ (function () {
    function NotaFiscalReemissaoFilter() {
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_0__().add(-1, "days").hour(0).minute(0).second(0).toDate();
        this.dataF = moment__WEBPACK_IMPORTED_MODULE_0__().hour(23).minute(59).second(59).toDate();
        this.tipoPed = "F";
        this.tipoMov = "T";
        this.flagNotasCanceladas = "N";
    }
    return NotaFiscalReemissaoFilter;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalReemissaoModule", function() { return NotaFiscalReemissaoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _nota_fiscal_reemissao_filter_nota_fiscal_reemissao_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nota-fiscal-reemissao-filter/nota-fiscal-reemissao-filter.component */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-filter/nota-fiscal-reemissao-filter.component.ts");
/* harmony import */ var _nota_fiscal_reemissao_index_nota_fiscal_reemissao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nota-fiscal-reemissao-index/nota-fiscal-reemissao-index.component */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-index/nota-fiscal-reemissao-index.component.ts");
/* harmony import */ var _nota_fiscal_reemissao_form_nota_fiscal_reemissao_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nota-fiscal-reemissao-form/nota-fiscal-reemissao-form.component */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-form/nota-fiscal-reemissao-form.component.ts");
/* harmony import */ var _nota_fiscal_reemissao_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nota-fiscal-reemissao.routing.module */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.routing.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var NotaFiscalReemissaoModule = /** @class */ (function () {
    function NotaFiscalReemissaoModule() {
    }
    NotaFiscalReemissaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _nota_fiscal_reemissao_index_nota_fiscal_reemissao_index_component__WEBPACK_IMPORTED_MODULE_3__["NotaFiscalReemissaoIndexComponent"],
                _nota_fiscal_reemissao_form_nota_fiscal_reemissao_form_component__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalReemissaoFormComponent"],
                _nota_fiscal_reemissao_filter_nota_fiscal_reemissao_filter_component__WEBPACK_IMPORTED_MODULE_2__["NotaFiscalReemissaoFilterComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _nota_fiscal_reemissao_routing_module__WEBPACK_IMPORTED_MODULE_5__["NotaFiscalReemissaoRoutingModule"]
            ]
        })
    ], NotaFiscalReemissaoModule);
    return NotaFiscalReemissaoModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalReemissaoRoutingModule", function() { return NotaFiscalReemissaoRoutingModule; });
/* 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 _nota_fiscal_reemissao_form_nota_fiscal_reemissao_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nota-fiscal-reemissao-form/nota-fiscal-reemissao-form.component */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-form/nota-fiscal-reemissao-form.component.ts");
/* harmony import */ var _nota_fiscal_reemissao_index_nota_fiscal_reemissao_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nota-fiscal-reemissao-index/nota-fiscal-reemissao-index.component */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao-index/nota-fiscal-reemissao-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 NotaFiscalReemissaoRoutes = [
    {
        path: "",
        component: _nota_fiscal_reemissao_index_nota_fiscal_reemissao_index_component__WEBPACK_IMPORTED_MODULE_4__["NotaFiscalReemissaoIndexComponent"],
        data: {
            breadcrumb: "reemissaoNotaFiscal",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "edit/:object",
        component: _nota_fiscal_reemissao_form_nota_fiscal_reemissao_form_component__WEBPACK_IMPORTED_MODULE_3__["NotaFiscalReemissaoFormComponent"],
        data: {
            breadcrumb: "reemissaoNotaFiscal",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    }
];
var NotaFiscalReemissaoRoutingModule = /** @class */ (function () {
    function NotaFiscalReemissaoRoutingModule() {
    }
    NotaFiscalReemissaoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(NotaFiscalReemissaoRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], NotaFiscalReemissaoRoutingModule);
    return NotaFiscalReemissaoRoutingModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalReemissaoService", function() { return NotaFiscalReemissaoService; });
/* 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_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nota-fiscal-reemissao.model */ "./src/app/pages/nota-fiscal/nota-fiscal-reemissao/nota-fiscal-reemissao.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 NotaFiscalReemissaoService = /** @class */ (function (_super) {
    __extends(NotaFiscalReemissaoService, _super);
    function NotaFiscalReemissaoService(http) {
        var _this = _super.call(this, http, "notaFiscal/reemissaoNotaFiscal") || this;
        _this.http = http;
        _this.filtro = new _nota_fiscal_reemissao_model__WEBPACK_IMPORTED_MODULE_6__["NotaFiscalReemissaoFilter"]();
        return _this;
    }
    NotaFiscalReemissaoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/getReemissaoNotaFiscalByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalReemissaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    NotaFiscalReemissaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], NotaFiscalReemissaoService);
    return NotaFiscalReemissaoService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/nota-fiscal/nota-fiscal.model.ts":
/*!********************************************************!*\
  !*** ./src/app/pages/nota-fiscal/nota-fiscal.model.ts ***!
  \********************************************************/
/*! exports provided: ConNotaDtoOrigemRetorno, NotaFiscalOrigemRetorno, NotaFiscalFilter, NotaFiscalIndexDto, ConsultaNotaPedidoEmbarque, NotaFiscal, LogDePedidos, NotaFiscalDadosItem, NotaFiscalItem, NotaFiscalXml, Contatos, NotaFiscalNfeProtocoloAut, NotaServico, NotaFiscalNfeProtocoloCanc, NotaFiscalTipoEventoManifesto, NotaFiscalEntradaSaida, NotaFiscalMovimentacao */
/***/ (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__, "NotaFiscalOrigemRetorno", function() { return NotaFiscalOrigemRetorno; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalFilter", function() { return NotaFiscalFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalIndexDto", function() { return NotaFiscalIndexDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaNotaPedidoEmbarque", function() { return ConsultaNotaPedidoEmbarque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscal", function() { return NotaFiscal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogDePedidos", function() { return LogDePedidos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalDadosItem", function() { return NotaFiscalDadosItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalItem", function() { return NotaFiscalItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalXml", function() { return NotaFiscalXml; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Contatos", function() { return Contatos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalNfeProtocoloAut", function() { return NotaFiscalNfeProtocoloAut; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaServico", function() { return NotaServico; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalNfeProtocoloCanc", function() { return NotaFiscalNfeProtocoloCanc; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalTipoEventoManifesto", function() { return NotaFiscalTipoEventoManifesto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalEntradaSaida", function() { return NotaFiscalEntradaSaida; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalMovimentacao", function() { return NotaFiscalMovimentacao; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConNotaDtoOrigemRetorno = /** @class */ (function () {
    function ConNotaDtoOrigemRetorno() {
    }
    return ConNotaDtoOrigemRetorno;
}());

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

var NotaFiscalFilter = /** @class */ (function () {
    function NotaFiscalFilter() {
        this.tipoData = 1;
        this.tipoMov = "T";
        this.tipoNfe = "";
        this.dataI = new Date();
        this.dataI.setHours(0, 0, 0);
        this.dataF = new Date();
        this.destinatarioIdCliente = 0;
        this.loteId = "";
        this.materialId = "";
        this.modNota = "";
        this.codIntegracao = "";
        this.nota = 0;
        this.notaFiscalId = 0;
        this.autorizacao = 0;
        this.regNota = 0;
        this.mostrarFiltro = true;
    }
    return NotaFiscalFilter;
}());

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

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

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

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

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

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

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

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

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

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

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

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

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaFiscalService", function() { return NotaFiscalService; });
/* 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 _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nota-fiscal.model */ "./src/app/pages/nota-fiscal/nota-fiscal.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 NotaFiscalService = /** @class */ (function (_super) {
    __extends(NotaFiscalService, _super);
    function NotaFiscalService(http) {
        var _this = _super.call(this, http, "balanca/notaFiscal") || this;
        _this.http = http;
        _this.filtro = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_6__["NotaFiscalFilter"]();
        _this.filtroAux = [];
        _this.data = new _nota_fiscal_model__WEBPACK_IMPORTED_MODULE_6__["NotaFiscalIndexDto"]();
        return _this;
    }
    NotaFiscalService.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));
    };
    NotaFiscalService.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));
    };
    NotaFiscalService.prototype.cancelarNotaSistema = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/cancelarNotaSistema", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.consultarSituacaoNfe = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/consultarSituacaoNfe", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.ConsultaStatusServico = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/consultarStatusServico", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.inutilizarNota = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/inutilizarNota", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.ConsultaOrigemNota = function (notaFiscalId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/getConsulta/" + notaFiscalId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.enviarXml = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/enviarXml", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.geraXml = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscalXml/geraXmlBanco", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.enviarEmailNotaXmlCliente = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/enviarEmailNotaXmlCliente", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.alteraDados = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/alteraDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.enviarEmailXmlPdfCliente = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/enviarEmailXmlPdfCliente", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.prototype.setDtFimFormCont = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/setDtFimFormCont", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    NotaFiscalService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    NotaFiscalService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], NotaFiscalService);
    return NotaFiscalService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ }),

/***/ "./src/app/shared/services/funcoes/email/email.service.ts":
/*!****************************************************************!*\
  !*** ./src/app/shared/services/funcoes/email/email.service.ts ***!
  \****************************************************************/
/*! exports provided: EmailService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailService", function() { return EmailService; });
/* harmony import */ var _base_base_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../environments/environment */ "./src/environments/environment.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 EmailService = /** @class */ (function (_super) {
    __extends(EmailService, _super);
    function EmailService(http) {
        var _this = _super.call(this, http, "controlle/enviarEmail") || this;
        _this.http = http;
        return _this;
    }
    EmailService.prototype.enviarEmail = function (data) {
        return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controlle/enviarEmail/", data);
    };
    EmailService.prototype.IsValidEmailAddress = function (email) {
        var exclude = email.search("/[^@.-w]|^[_@.-]|[._-]{2}|[@.]{2}|(@)[^@]*1/");
        var check = email.search("/@[w-]+./");
        var checkend = email.search("/.[a-zA-Z]{2,3}$/");
        if ((exclude !== -1)
            || (check === -1)
            || (checkend === -1)) {
            return false;
        }
        else {
            return true;
        }
    };
    EmailService.prototype.IsValidEmailAddressed = function (emails) {
        var regex = /^((?!\.)[\w-_.]*[^.])(@\w+)(\.\w+(\.\w+)?[^.\W])$/gm;
        var emailList = emails.split(";");
        var isAllValid = true;
        emailList.forEach(function (e) {
            if (!regex.test(e) && isAllValid) {
                isAllValid = false;
            }
        });
        return isAllValid;
    };
    EmailService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    EmailService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], EmailService);
    return EmailService;
}(_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ })

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