(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-obrigacoes-anp-exportacao-simp-anp-exportacao-simp-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp-form/anp-exportacao-simp-form.component.html":
/*!*************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp-form/anp-exportacao-simp-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\n        [sisFormularioId]=\"constantes.sisFormularioId\"\n        [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" autocomplete=\"off\" novalidate>\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row mt-2\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodo\"\n                                                   class=\"required\">{{\"labels.periodo\" | translate }}</label>\n                                            <input id=\"periodo\"\n                                                   name=\"periodo\"\n                                                   [(ngModel)]=\"data.periodo\"\n                                                   class=\"form-control form-control-sm\"\n                                                   type=\"text\"\n                                                   required=\"true\"\n                                                   mask=\"00/0000\">\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"form-group\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                {{ 'buttons.gerar' | translate }}\n                            </button>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp-form/anp-exportacao-simp-form.component.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp-form/anp-exportacao-simp-form.component.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: ANPExportacaoSimpFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANPExportacaoSimpFormComponent", function() { return ANPExportacaoSimpFormComponent; });
/* 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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _anp_exportacao_simp_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../anp-exportacao-simp.constants */ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.constants.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _anp_exportacao_simp_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../anp-exportacao-simp.service */ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.service.ts");
/* harmony import */ var _anp_exportacao_simp_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../anp-exportacao-simp.model */ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.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 ANPExportacaoSimpFormComponent = /** @class */ (function (_super) {
    __extends(ANPExportacaoSimpFormComponent, _super);
    function ANPExportacaoSimpFormComponent(router, loginService, messageService, permissoesUtils, funcoesService, service) {
        var _this = _super.call(this, new _anp_exportacao_simp_constants__WEBPACK_IMPORTED_MODULE_7__["ANPExportacaoSimpConstants"](), funcoesService) || this;
        _this.router = router;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.service = service;
        _this.mensagens = [];
        _this.constantes = new _anp_exportacao_simp_constants__WEBPACK_IMPORTED_MODULE_7__["ANPExportacaoSimpConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.data = new _anp_exportacao_simp_model__WEBPACK_IMPORTED_MODULE_11__["ANPExportacaoSimpFiltro"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_6__["Mascaras"]();
        _this.apolice = "";
        return _this;
    }
    ANPExportacaoSimpFormComponent.prototype.ngOnInit = function () {
    };
    ANPExportacaoSimpFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ANPExportacaoSimpFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (form.invalid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("formError").emit(form);
                return;
            }
            var per = _this.funcoesService.dateTimeUtils.getPeriodo(_this.data.periodo);
            if (per.error) {
                _this.messageService.warning('titles.anpExportacaoSimp', 'messages.periodoInformadoInvalido');
                return;
            }
            _this.data.periodo = per.periodo;
            _this.service.getFileExportacao(_this.data).subscribe(function (resp) {
                if (!resp.validationResult.isValid) {
                    _this.messageService.warning("titles.anpExportacaoSimp", resp.validationResult.erros[0].message);
                    return;
                }
                _this.download(resp.fileText, resp.fileName, 'text/javascript');
                _this.messageService.success("titles.anpExportacaoSimp", "messages.arquivoGerado");
            });
        });
    };
    ANPExportacaoSimpFormComponent.prototype.download = function (content, filename, contentType) {
        if (!contentType) {
            contentType = 'application/octet-stream';
        }
        var a = document.createElement('a');
        var blob = new Blob([content], { 'type': contentType });
        a.href = window.URL.createObjectURL(blob);
        a.download = filename;
        a.click();
    };
    ANPExportacaoSimpFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _anp_exportacao_simp_service__WEBPACK_IMPORTED_MODULE_10__["ANPExportacaoSimpService"] }
    ]; };
    ANPExportacaoSimpFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-anp-exportacao-simp-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./anp-exportacao-simp-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp-form/anp-exportacao-simp-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _anp_exportacao_simp_service__WEBPACK_IMPORTED_MODULE_10__["ANPExportacaoSimpService"]])
    ], ANPExportacaoSimpFormComponent);
    return ANPExportacaoSimpFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.constants.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.constants.ts ***!
  \***************************************************************************************/
/*! exports provided: ANPExportacaoSimpConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANPExportacaoSimpConstants", function() { return ANPExportacaoSimpConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ANPExportacaoSimpConstants = /** @class */ (function () {
    function ANPExportacaoSimpConstants() {
        this.sisFormularioId = 255033;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.gerar" }
        ];
        this.nomeForm = "titles.anpExportacaoSimp";
        this.configs = [];
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return ANPExportacaoSimpConstants;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.model.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.model.ts ***!
  \***********************************************************************************/
/*! exports provided: ANPExportacaoSimpFiltro */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANPExportacaoSimpFiltro", function() { return ANPExportacaoSimpFiltro; });
/* 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 ANPExportacaoSimpFiltro = /** @class */ (function () {
    function ANPExportacaoSimpFiltro() {
        this.periodo = moment__WEBPACK_IMPORTED_MODULE_0__().format('MM/YYYY');
    }
    return ANPExportacaoSimpFiltro;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.module.ts":
/*!************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.module.ts ***!
  \************************************************************************************/
/*! exports provided: ANPExportacaoSimpModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANPExportacaoSimpModule", function() { return ANPExportacaoSimpModule; });
/* 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 _anp_exportacao_simp_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./anp-exportacao-simp.routing.module */ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.routing.module.ts");
/* harmony import */ var _anp_exportacao_simp_form_anp_exportacao_simp_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./anp-exportacao-simp-form/anp-exportacao-simp-form.component */ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp-form/anp-exportacao-simp-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 ANPExportacaoSimpModule = /** @class */ (function () {
    function ANPExportacaoSimpModule() {
    }
    ANPExportacaoSimpModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _anp_exportacao_simp_routing_module__WEBPACK_IMPORTED_MODULE_2__["ANPExportacaoSimpRoutingModule"]],
            declarations: [_anp_exportacao_simp_form_anp_exportacao_simp_form_component__WEBPACK_IMPORTED_MODULE_3__["ANPExportacaoSimpFormComponent"]],
            providers: []
        })
    ], ANPExportacaoSimpModule);
    return ANPExportacaoSimpModule;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.routing.module.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.routing.module.ts ***!
  \********************************************************************************************/
/*! exports provided: ANPExportacaoSimpRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANPExportacaoSimpRoutingModule", function() { return ANPExportacaoSimpRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _anp_exportacao_simp_form_anp_exportacao_simp_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./anp-exportacao-simp-form/anp-exportacao-simp-form.component */ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp-form/anp-exportacao-simp-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: _anp_exportacao_simp_form_anp_exportacao_simp_form_component__WEBPACK_IMPORTED_MODULE_3__["ANPExportacaoSimpFormComponent"],
        data: { breadcrumb: "anpExportacaoSimp", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var ANPExportacaoSimpRoutingModule = /** @class */ (function () {
    function ANPExportacaoSimpRoutingModule() {
    }
    ANPExportacaoSimpRoutingModule = __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"]],
        })
    ], ANPExportacaoSimpRoutingModule);
    return ANPExportacaoSimpRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.service.ts":
/*!*************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/anp-exportacao-simp/anp-exportacao-simp.service.ts ***!
  \*************************************************************************************/
/*! exports provided: ANPExportacaoSimpService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANPExportacaoSimpService", function() { return ANPExportacaoSimpService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.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 ANPExportacaoSimpService = /** @class */ (function () {
    function ANPExportacaoSimpService(http) {
        this.http = http;
    }
    ANPExportacaoSimpService.prototype.getFileExportacao = function (param) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].service_url + "/api/v1/obrigacoes/anpSimp/getFileExportacao", param)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ANPExportacaoSimpService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"] }
    ]; };
    ANPExportacaoSimpService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"]])
    ], ANPExportacaoSimpService);
    return ANPExportacaoSimpService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-obrigacoes-anp-exportacao-simp-anp-exportacao-simp-module.js.map