(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-relatorios-validacao-fiscal-validacao-fiscal-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal-form/validacao-fiscal-form.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal-form/validacao-fiscal-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 [sisFormularioId]=\"constantes.sisFormularioId\" [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)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-8 col-md-10 col-sm-12\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                                }}</label>\n                                            <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"data.dataI\" autofocus\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\n                                                required=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                            <app-data id=\"ate\" name=\"ate\" maxlength=\"1\" [(ngModel)]=\"data.dataF\"\n                                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"form-group\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                {{ 'buttons.gerar' | translate }}\n                            </button>\n                            <button class=\"btn btn-default\" type=\"button\" (click)=\"onCancelar()\">\n                                {{ 'buttons.cancelar' | 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>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal-form/validacao-fiscal-form.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal-form/validacao-fiscal-form.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: ValidacaoFiscalFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoFiscalFormComponent", function() { return ValidacaoFiscalFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __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_3__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _validacao_fiscal_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../validacao-fiscal.model */ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.model.ts");
/* harmony import */ var _validacao_fiscal_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../validacao-fiscal.constants */ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.constants.ts");
/* harmony import */ var _validacao_fiscal_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../validacao-fiscal.service */ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.service.ts");
/* harmony import */ var _contratos_contratos_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../contratos/contratos.constants */ "./src/app/pages/especificos/vopak/relatorios/contratos/contratos.constants.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var ValidacaoFiscalFormComponent = /** @class */ (function (_super) {
    __extends(ValidacaoFiscalFormComponent, _super);
    function ValidacaoFiscalFormComponent(loginService, router, messageService, service, permissoesUtils, funcoesService) {
        var _this = _super.call(this, new _contratos_contratos_constants__WEBPACK_IMPORTED_MODULE_11__["ContratosConstants"](), funcoesService) || this;
        _this.loginService = loginService;
        _this.router = router;
        _this.messageService = messageService;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.data = new _validacao_fiscal_model__WEBPACK_IMPORTED_MODULE_8__["ValidacaoFiscalFilter"]();
        _this.dataAux = new _validacao_fiscal_model__WEBPACK_IMPORTED_MODULE_8__["ValidacaoFiscalFilter"]();
        _this.mensagens = [];
        _this.constantes = new _validacao_fiscal_constants__WEBPACK_IMPORTED_MODULE_9__["ValidacaoFiscalConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    ValidacaoFiscalFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    ValidacaoFiscalFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ValidacaoFiscalFormComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_12__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.processData();
    };
    ValidacaoFiscalFormComponent.prototype.processData = function () {
        return __awaiter(this, void 0, void 0, function () {
            var ret, mensagens, err_1;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        _a.trys.push([0, 2, , 3]);
                        return [4 /*yield*/, this.service.getFileValidacaoFiscal(this.data).toPromise()];
                    case 1:
                        ret = _a.sent();
                        if (!ret.validationResult.isValid) {
                            mensagens = this.messageService.validationResult(ret.validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.validacaoFiscal", m); });
                            return [2 /*return*/];
                        }
                        this.download(ret.fileText, ret.fileName, 'text/javascript');
                        this.messageService.success("titles.validacaoFiscal", "messages.arquivoTxtGerado");
                        return [3 /*break*/, 3];
                    case 2:
                        err_1 = _a.sent();
                        return [2 /*return*/, console.log(err_1.message)];
                    case 3: return [2 /*return*/];
                }
            });
        });
    };
    ValidacaoFiscalFormComponent.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();
    };
    ValidacaoFiscalFormComponent.prototype.onCancelar = function () {
        this.data = new _validacao_fiscal_model__WEBPACK_IMPORTED_MODULE_8__["ValidacaoFiscalFilter"]();
    };
    ValidacaoFiscalFormComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_6__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] },
        { type: _validacao_fiscal_service__WEBPACK_IMPORTED_MODULE_10__["ValidacaoFiscalService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    ValidacaoFiscalFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-validacao-fiscal-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./validacao-fiscal-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal-form/validacao-fiscal-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_6__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            _validacao_fiscal_service__WEBPACK_IMPORTED_MODULE_10__["ValidacaoFiscalService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], ValidacaoFiscalFormComponent);
    return ValidacaoFiscalFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.constants.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.constants.ts ***!
  \***************************************************************************************************/
/*! exports provided: ValidacaoFiscalConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.model.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.model.ts ***!
  \***********************************************************************************************/
/*! exports provided: ValidacaoFiscalFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoFiscalFilter", function() { return ValidacaoFiscalFilter; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ValidacaoFiscalFilter = /** @class */ (function () {
    function ValidacaoFiscalFilter() {
        this.dataI = new Date();
        this.dataF = new Date();
    }
    return ValidacaoFiscalFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.module.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.module.ts ***!
  \************************************************************************************************/
/*! exports provided: ValidacaoFiscalModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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




var ValidacaoFiscalModule = /** @class */ (function () {
    function ValidacaoFiscalModule() {
    }
    ValidacaoFiscalModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _validacao_fiscal_routing_module__WEBPACK_IMPORTED_MODULE_3__["ValidacaoFiscalRoutingModule"]],
            declarations: [_validacao_fiscal_form_validacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_2__["ValidacaoFiscalFormComponent"]]
        })
    ], ValidacaoFiscalModule);
    return ValidacaoFiscalModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.routing.module.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.routing.module.ts ***!
  \********************************************************************************************************/
/*! exports provided: ValidacaoFiscalRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoFiscalRoutingModule", function() { return ValidacaoFiscalRoutingModule; });
/* 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 _validacao_fiscal_form_validacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./validacao-fiscal-form/validacao-fiscal-form.component */ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal-form/validacao-fiscal-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: _validacao_fiscal_form_validacao_fiscal_form_component__WEBPACK_IMPORTED_MODULE_3__["ValidacaoFiscalFormComponent"],
        data: { breadcrumb: "validacaoFiscal", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var ValidacaoFiscalRoutingModule = /** @class */ (function () {
    function ValidacaoFiscalRoutingModule() {
    }
    ValidacaoFiscalRoutingModule = __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"]],
        })
    ], ValidacaoFiscalRoutingModule);
    return ValidacaoFiscalRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.service.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/relatorios/validacao-fiscal/validacao-fiscal.service.ts ***!
  \*************************************************************************************************/
/*! exports provided: ValidacaoFiscalService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidacaoFiscalService", function() { return ValidacaoFiscalService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.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 ValidacaoFiscalService = /** @class */ (function (_super) {
    __extends(ValidacaoFiscalService, _super);
    function ValidacaoFiscalService(http) {
        var _this = _super.call(this, http, "vopak/contratos") || this;
        _this.http = http;
        return _this;
    }
    ValidacaoFiscalService.prototype.getFileValidacaoFiscal = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/vopak/relValidacaoFiscal/getFileValidacaoFiscal", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ValidacaoFiscalService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ValidacaoFiscalService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ValidacaoFiscalService);
    return ValidacaoFiscalService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-relatorios-validacao-fiscal-validacao-fiscal-module.js.map