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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"box-shadow\">\n    <div style=\"background-color: #fff; padding: 15px;\">\n        <app-validacoes></app-validacoes>\n        <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n            <div class=\"row\">\n                <div class=\"col-lg-3\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"serie\" class=\"required\">{{'labels.serie' | translate}}</label>\n                        <app-combo-serie id=\"serie\" name=\"serie\" [(ngModel)]=\"nfeXmlFilter.serieNF\" required=\"true\">\n                        </app-combo-serie>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-3\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-field-container>\n                            <label for=\"notaFiscalIdI\" class=\"required\">{{'labels.notaInicial' | translate}}</label>\n                            <input id=\"notaFiscalIdI\" name=\"notaFiscalIdI\" maxlength=\"9\" mask=\"999999999\"\n                                [(ngModel)]=\"nfeXmlFilter.notaFiscalIdI\" class=\"form-control form-control-sm\"\n                                type=\"text\" data-title=\"{{'labels.notaInicial' | translate}}\" required=\"true\">\n                        </app-field-container>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-3\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-field-container>\n                            <label for=\"notaFiscalIdF\" class=\"required\">{{'labels.notaFinal' | translate}}</label>\n                            <input id=\"notaFiscalIdF\" name=\"notaFiscalIdF\" maxlength=\"9\" mask=\"999999999\"\n                                [(ngModel)]=\"nfeXmlFilter.notaFiscalIdF\" class=\"form-control form-control-sm\"\n                                type=\"text\" data-title=\"{{'labels.notaFinal' | translate}}\" required=\"true\">\n                        </app-field-container>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-12 text-left\">\n                    <button class=\"btn btn-success\" type=\"submit\">{{ 'buttons.ok' | translate }}</button>&nbsp;\n                    <button class=\"btn btn-default\" type=\"button\" (click)=\"onCancelar()\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button> &nbsp;\n                </div>\n            </div>\n            <div class=\"row mt-2\">\n                <div class=\"col-12\">\n                    <ng-container *ngIf=\"hasLogs\">\n                        <fieldset>\n                            <div class=\"legend-container\">\n                                <div class=\"row\">\n                                    <div class=\"col-12\">\n                                        <ul class=\"ml-5 mt-3\">\n                                            <li *ngFor=\"let msg of logs\">{{msg}}</li>\n                                        </ul>\n                                    </div>\n                                </div>\n                            </div>\n                        </fieldset>\n                    </ng-container>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("div.log {\n  border: 3px double #ccc;\n  padding: 2%;\n  margin-top: 2%;\n  min-height: 180px;\n}\n\ndiv.log p {\n  font-weight: 600;\n  color: #000000;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvbmZlL2FqdXN0YXItcmVjaWJvL2FqdXN0YXItcmVjaWJvLWZvcm0vQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxuZmVcXGFqdXN0YXItcmVjaWJvXFxhanVzdGFyLXJlY2liby1mb3JtXFxhanVzdGFyLXJlY2liby1mb3JtLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9uZmUvYWp1c3Rhci1yZWNpYm8vYWp1c3Rhci1yZWNpYm8tZm9ybS9hanVzdGFyLXJlY2liby1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsdUJBQUE7RUFDQSxXQUFBO0VBQ0EsY0FBQTtFQUNBLGlCQUFBO0FDQ0Y7O0FERUE7RUFDRSxnQkFBQTtFQUNBLGNBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL25mZS9hanVzdGFyLXJlY2liby9hanVzdGFyLXJlY2liby1mb3JtL2FqdXN0YXItcmVjaWJvLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJkaXYubG9nIHtcclxuICBib3JkZXI6IDNweCBkb3VibGUgI2NjYztcclxuICBwYWRkaW5nOiAyJTtcclxuICBtYXJnaW4tdG9wOiAyJTtcclxuICBtaW4taGVpZ2h0OiAxODBweDtcclxufVxyXG5cclxuZGl2LmxvZyBwIHtcclxuICBmb250LXdlaWdodDogNjAwO1xyXG4gIGNvbG9yOiAjMDAwMDAwO1xyXG59XHJcbiIsImRpdi5sb2cge1xuICBib3JkZXI6IDNweCBkb3VibGUgI2NjYztcbiAgcGFkZGluZzogMiU7XG4gIG1hcmdpbi10b3A6IDIlO1xuICBtaW4taGVpZ2h0OiAxODBweDtcbn1cblxuZGl2LmxvZyBwIHtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgY29sb3I6ICMwMDAwMDA7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/nfe/ajustar-recibo/ajustar-recibo-form/ajustar-recibo-form.component.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/nfe/ajustar-recibo/ajustar-recibo-form/ajustar-recibo-form.component.ts ***!
  \***********************************************************************************************/
/*! exports provided: AjustarReciboFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AjustarReciboFormComponent", function() { return AjustarReciboFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_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 _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _ajustar_recibo_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../ajustar-recibo.constants */ "./src/app/pages/nfe/ajustar-recibo/ajustar-recibo.constants.ts");
/* harmony import */ var _nfe_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../../nfe.model */ "./src/app/pages/nfe/nfe.model.ts");
/* harmony import */ var _nfe_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../nfe.service */ "./src/app/pages/nfe/nfe.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var AjustarReciboFormComponent = /** @class */ (function (_super) {
    __extends(AjustarReciboFormComponent, _super);
    function AjustarReciboFormComponent(loginService, permissoesUtils, router, funcoesService, nfeService, messageService) {
        var _this = _super.call(this, new _ajustar_recibo_constants__WEBPACK_IMPORTED_MODULE_10__["AjustarReciboConstants"](), funcoesService) || this;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.router = router;
        _this.funcoesService = funcoesService;
        _this.nfeService = nfeService;
        _this.messageService = messageService;
        _this.nfeXmlFilter = new _nfe_model__WEBPACK_IMPORTED_MODULE_11__["NfeXmlFilter"]();
        _this.constantes = new _ajustar_recibo_constants__WEBPACK_IMPORTED_MODULE_10__["AjustarReciboConstants"]();
        _this.mensagens = [];
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_6__["Mascaras"]();
        _this.logs = [];
        _this.cleanLog = function () {
            _this.logs = [];
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        _super.prototype.addFuncoes.call(_this, [
            { action: '_cleanLog', func: function () { return _this.cleanLog; } }
        ]);
        return _this;
    }
    AjustarReciboFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    AjustarReciboFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.nfeXmlFilter.notaFiscalIdI > this.nfeXmlFilter.notaFiscalIdF) {
            this.messageService.warning("titles.ajustarRecibo", "messages.notaInicialNaoPodeSerMaiorQuenotaFinal");
            return;
        }
        this.nfeService.ajustarRecibos({
            serieNF: this.nfeXmlFilter.serieNF,
            notaFiscalIdI: this.nfeXmlFilter.notaFiscalIdI,
            notaFiscalIdF: this.nfeXmlFilter.notaFiscalIdF
        }).subscribe(function (resp) {
            if (resp.has) {
                _this.logs = resp.messages;
                if (_this.logs.length > 0) {
                    _this.constantes.listaForm[0].disabled = false;
                }
            }
        });
    };
    AjustarReciboFormComponent.prototype.onCancelar = function () {
        this.nfeXmlFilter = new _nfe_model__WEBPACK_IMPORTED_MODULE_11__["NfeXmlFilter"]();
    };
    AjustarReciboFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    Object.defineProperty(AjustarReciboFormComponent.prototype, "hasLogs", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ArrayUtilsStaticService"].any(this.logs);
        },
        enumerable: true,
        configurable: true
    });
    AjustarReciboFormComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _nfe_service__WEBPACK_IMPORTED_MODULE_12__["NfeService"] },
        { type: _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] }
    ]; };
    AjustarReciboFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-ajustar-recibo-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./ajustar-recibo-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/nfe/ajustar-recibo/ajustar-recibo-form/ajustar-recibo-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./ajustar-recibo-form.component.scss */ "./src/app/pages/nfe/ajustar-recibo/ajustar-recibo-form/ajustar-recibo-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _nfe_service__WEBPACK_IMPORTED_MODULE_12__["NfeService"],
            _app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"]])
    ], AjustarReciboFormComponent);
    return AjustarReciboFormComponent;
}(_app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AjustarReciboConstants", function() { return AjustarReciboConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AjustarReciboConstants = /** @class */ (function () {
    function AjustarReciboConstants() {
        this.sisFormularioId = 5215;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "FAT";
        this.nomeForm = "titles.ajustarRecibo";
        this.configs = [];
        this.listaForm = [
            { title: 'Limpar', action: '_cleanLog', icon: "fa fa-eraser", exibeButton: false, eximeMenu: false, menuName: 'Movimento', disabled: true },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return AjustarReciboConstants;
}());



/***/ }),

/***/ "./src/app/pages/nfe/ajustar-recibo/ajustar-recibo.module.ts":
/*!*******************************************************************!*\
  !*** ./src/app/pages/nfe/ajustar-recibo/ajustar-recibo.module.ts ***!
  \*******************************************************************/
/*! exports provided: AjustarReciboModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AjustarReciboModule", function() { return AjustarReciboModule; });
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _ajustar_recibo_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ajustar-recibo.routing.module */ "./src/app/pages/nfe/ajustar-recibo/ajustar-recibo.routing.module.ts");
/* harmony import */ var _ajustar_recibo_form_ajustar_recibo_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ajustar-recibo-form/ajustar-recibo-form.component */ "./src/app/pages/nfe/ajustar-recibo/ajustar-recibo-form/ajustar-recibo-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var AjustarReciboModule = /** @class */ (function () {
    function AjustarReciboModule() {
    }
    AjustarReciboModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_0__["SharedModule"], _ajustar_recibo_routing_module__WEBPACK_IMPORTED_MODULE_2__["AjustarReciboRoutingModule"]],
            declarations: [_ajustar_recibo_form_ajustar_recibo_form_component__WEBPACK_IMPORTED_MODULE_3__["AjustarReciboFormComponent"]]
        })
    ], AjustarReciboModule);
    return AjustarReciboModule;
}());



/***/ }),

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

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




var MRoutes = [
    {
        path: "",
        component: _ajustar_recibo_form_ajustar_recibo_form_component__WEBPACK_IMPORTED_MODULE_3__["AjustarReciboFormComponent"],
        data: {
            breadcrumb: "ajustarRecibo",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var AjustarReciboRoutingModule = /** @class */ (function () {
    function AjustarReciboRoutingModule() {
    }
    AjustarReciboRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], AjustarReciboRoutingModule);
    return AjustarReciboRoutingModule;
}());



/***/ }),

/***/ "./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"]));



/***/ })

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