(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["default~app-pages-balanca-emissao-nota-fiscal-lote-emissao-nota-fiscal-lote-module~app-pages-balanca~74cb6499"],{

/***/ "./src/app/pages/balanca/nota-complementar/nota-complementar.model.ts":
/*!****************************************************************************!*\
  !*** ./src/app/pages/balanca/nota-complementar/nota-complementar.model.ts ***!
  \****************************************************************************/
/*! exports provided: NotaComplementarPesquisaAutorizacaoDto, NotaComplementarNotaOrigem, NotaComplementarItemNotaCarga, NotaComplementarPesquisaAutorizacaoFilterVo, NotaComplementar, NotaComplementarProximaNota */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaComplementarPesquisaAutorizacaoDto", function() { return NotaComplementarPesquisaAutorizacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaComplementarNotaOrigem", function() { return NotaComplementarNotaOrigem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaComplementarItemNotaCarga", function() { return NotaComplementarItemNotaCarga; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaComplementarPesquisaAutorizacaoFilterVo", function() { return NotaComplementarPesquisaAutorizacaoFilterVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaComplementar", function() { return NotaComplementar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaComplementarProximaNota", function() { return NotaComplementarProximaNota; });
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/lote/lote.model */ "./src/app/pages/cadastro/lote/lote.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



var NotaComplementarPesquisaAutorizacaoDto = /** @class */ (function () {
    function NotaComplementarPesquisaAutorizacaoDto() {
        this.especie = "GRANEL";
        this.quantidade = 1;
        this.notaFiscalId = 0;
        this.operacaoId = 0;
        this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
    }
    return NotaComplementarPesquisaAutorizacaoDto;
}());

var NotaComplementarNotaOrigem = /** @class */ (function () {
    function NotaComplementarNotaOrigem() {
        this.notaFiscalId = 0;
        this.nota = 0;
        this.operacaoItemId = 0;
    }
    return NotaComplementarNotaOrigem;
}());

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

var NotaComplementarPesquisaAutorizacaoFilterVo = /** @class */ (function () {
    function NotaComplementarPesquisaAutorizacaoFilterVo() {
        this.autorizacao = 0;
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["DateTimeUtilsStaticService"].addDays(new Date(), -1);
        this.dataF = new Date();
        this.destinatarioIdCliente = 0;
        this.placa = "";
        this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
    }
    return NotaComplementarPesquisaAutorizacaoFilterVo;
}());

var NotaComplementar = /** @class */ (function () {
    function NotaComplementar() {
        this.operacaoId = "";
        this.calculado = false;
        this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        this.lote = new app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_1__["Lote"]();
        this.dtEmissao = new Date();
    }
    return NotaComplementar;
}());

var NotaComplementarProximaNota = /** @class */ (function () {
    function NotaComplementarProximaNota() {
        this.numNfAuto = "N";
        this.serieId = "";
    }
    return NotaComplementarProximaNota;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotaComplementarService", function() { return NotaComplementarService; });
/* 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 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _nota_complementar_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./nota-complementar.model */ "./src/app/pages/balanca/nota-complementar/nota-complementar.model.ts");
/* harmony import */ var app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/lote/lote.model */ "./src/app/pages/cadastro/lote/lote.model.ts");
/* harmony import */ var app_pages_nota_fiscal_nota_fiscal_emissao_nota_fiscal_emissao_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/nota-fiscal/nota-fiscal-emissao/nota-fiscal-emissao.model */ "./src/app/pages/nota-fiscal/nota-fiscal-emissao/nota-fiscal-emissao.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 NotaComplementarService = /** @class */ (function (_super) {
    __extends(NotaComplementarService, _super);
    function NotaComplementarService(http) {
        var _this = _super.call(this, http, "balanca/notaComplementar") || this;
        _this.http = http;
        _this.filter = new _nota_complementar_model__WEBPACK_IMPORTED_MODULE_6__["NotaComplementarPesquisaAutorizacaoFilterVo"]();
        _this.data = new _nota_complementar_model__WEBPACK_IMPORTED_MODULE_6__["NotaComplementarPesquisaAutorizacaoDto"]();
        _this.lote = new app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_7__["Lote"]();
        _this.notaComplementar = new _nota_complementar_model__WEBPACK_IMPORTED_MODULE_6__["NotaComplementar"]();
        _this.configs = {
            filNoLote: false,
            serieTerm: false,
            rSerTra: '',
            rSerArm: '',
            rSerRetorno: 0,
            chkDataServ: false,
            flagObsCarga: false,
            rSeriePadrao: 0,
            nfeContingencia: false,
            impNfeLote: false,
            rpsConfirmacao: false,
            ida1Certificate: ""
        };
        return _this;
    }
    NotaComplementarService.prototype.clear = function () {
        this.filter = new _nota_complementar_model__WEBPACK_IMPORTED_MODULE_6__["NotaComplementarPesquisaAutorizacaoFilterVo"]();
        this.data = new _nota_complementar_model__WEBPACK_IMPORTED_MODULE_6__["NotaComplementarPesquisaAutorizacaoDto"]();
        this.lote = new app_pages_cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_7__["Lote"]();
        this.notaComplementar = new _nota_complementar_model__WEBPACK_IMPORTED_MODULE_6__["NotaComplementar"]();
        this.operacao = {};
        sessionStorage.removeItem('us.auxdata');
    };
    NotaComplementarService.prototype.getDadosPesquisaAutorizacao = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/getDadosPesquisaAutorizacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.getComboNotaOrigem = function (autorizacao) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/getComboNotaOrigem/" + autorizacao)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.getItemNotaCarga = function (autorizacao) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/getItemNotaCarga/" + autorizacao)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.getVerificaNotaEmitida = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/getVerificaNotaEmitida", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.setFlagFormCont = function () {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/setFlagFormCont", { regNota: this.notaComplementar.retRegNota, flag: "S" })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.confirmacaoContingencia = function () {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/confirmacaoContingencia", { regNota: this.notaComplementar.retRegNota })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.gravaNotaComplementar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/gravaNotaComplementar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.cancelaNotaComplementar = function () {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/cancelaNotaComplementar", { regNota: this.notaComplementar.regNota })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.validaConfirmacao = function () {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/validaConfirmacao", { regNota: this.notaComplementar.regNota })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.prototype.confirmaNotaComplementar = function () {
        var _this = this;
        var data = new app_pages_nota_fiscal_nota_fiscal_emissao_nota_fiscal_emissao_model__WEBPACK_IMPORTED_MODULE_8__["ConfirmacaoNotaCargaFilterVo"]();
        data.regNota = this.notaComplementar.regNota;
        data.dtEmissao = new Date(this.notaComplementar.dtEmissao);
        data.codDest = this.notaComplementar.destinatarioIdCliente;
        data.nota = this.notaComplementar.nota;
        data.regSerie = this.notaComplementar.regSerie;
        data.observDig = this.notaComplementar.observacao;
        data.regNotaOri = this.notaComplementar.regNotaOri;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaComplementar/confirmaNotaComplementar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["tap"])(function (resp) {
            _this.notaComplementar.retRegNota = resp.retRegNota,
                _this.notaComplementar.retNumReg = resp.retNumReg;
        }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    NotaComplementarService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    NotaComplementarService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], NotaComplementarService);
    return NotaComplementarService;
}(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"]));



/***/ })

}]);
//# sourceMappingURL=default~app-pages-balanca-emissao-nota-fiscal-lote-emissao-nota-fiscal-lote-module~app-pages-balanca~74cb6499.js.map