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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/relatorios/contratos/contratos-form/contratos-form.component.html":
/*!*************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/relatorios/contratos/contratos-form/contratos-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 class=\"row\">\n                                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioIdCliente\"\n                                                name=\"destinatarioIdCliente\" label=\"cliente\" modalTitle=\"cliente\"\n                                                [(ngModel)]=\"data.destinatarioIdCliente\" tipoDestinatario=\"C\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"trataDest($event)\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\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=\"situacao\">{{ \"labels.situacao\" | translate}}</label>\n                                            <select id=\"situacao\"\n                                                    [(ngModel)]=\"data.sitReg\"\n                                                    class=\"form-control form-control-sm\" name=\"situacao\"\n                                                    data-title=\"{{ 'labels.situacao' | translate }}\">\n                                                <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\n                                                <option *ngFor=\"let t of situacao.get\"\n                                                        value=\"{{ t.id }}\">\n                                                    {{ t.descricao }}\n                                                </option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"clearfix\">&nbsp;</div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                        <div class=\"card card-cr-progress\">\n                                            <progressbar class=\"vertical\" [value]=\"data.percentual\"\n                                                         [striped]=\"false\" title=\"{{data.percentual}} %\"><span\n                                                    class=\"vertical-label\">{{data.percentual}} %</span>\n                                            </progressbar>\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\" (click)=\"export()\" type=\"button\">{{\n                                'buttons.exportarExcel' | translate }}\n                            </button>\n                            <button class=\"btn btn-default\" type=\"button\" (click)=\"onCancelar()\">\n                                {{ 'buttons.cancelar' | translate }}\n                            </button> &nbsp;\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<app-email [reportId]=\"constantes.reportId\" [titulo]=\"constantes.reportTitulo.titulo\"\n    [subTitulo]=\"constantes.reportTitulo.subTitulo\" [data]=\"constantes.paramRelatorio\"></app-email>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContratosFormComponent", function() { return ContratosFormComponent; });
/* 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_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! ../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _contratos_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../contratos.model */ "./src/app/pages/especificos/vopak/relatorios/contratos/contratos.model.ts");
/* harmony import */ var _contratos_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../contratos.constants */ "./src/app/pages/especificos/vopak/relatorios/contratos/contratos.constants.ts");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _contratos_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../contratos.service */ "./src/app/pages/especificos/vopak/relatorios/contratos/contratos.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.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 ContratosFormComponent = /** @class */ (function (_super) {
    __extends(ContratosFormComponent, _super);
    function ContratosFormComponent(loginService, router, messageService, contratosService, permissoesUtils, funcoesService) {
        var _this = _super.call(this, new _contratos_constants__WEBPACK_IMPORTED_MODULE_9__["ContratosConstants"](), funcoesService) || this;
        _this.loginService = loginService;
        _this.router = router;
        _this.messageService = messageService;
        _this.contratosService = contratosService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.data = new _contratos_model__WEBPACK_IMPORTED_MODULE_8__["ContratosFilter"]();
        _this.dataAux = new _contratos_model__WEBPACK_IMPORTED_MODULE_8__["ContratosFilter"]();
        _this.mensagens = [];
        _this.constantes = new _contratos_constants__WEBPACK_IMPORTED_MODULE_9__["ContratosConstants"]();
        _this.situacao = new _contratos_model__WEBPACK_IMPORTED_MODULE_8__["Situacao"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_5__["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;
    }
    ContratosFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    ContratosFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ContratosFormComponent.prototype.trataDest = function (destinatario) {
        this.data.cliente = destinatario;
    };
    ContratosFormComponent.prototype.export = function () {
        var _this = this;
        var dtArquivo = moment__WEBPACK_IMPORTED_MODULE_10__().format('DDMMYYYYHHMMSS').toString();
        this.data.filialId = this.filialId;
        this.data.nomeArquivo = "Contratos" + dtArquivo + ".xls";
        this.messageService.confirm("messages.confirmaOperacao", "messages.processarExportacaoXLS", "messages.operacaoRealizadaComSucesso", function () { return __awaiter(_this, void 0, void 0, function () {
            var erros, ret2;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.mensagens = [];
                        erros = 0;
                        this.data.percentual = 50;
                        // verificando se data inicial selecionada
                        if (this.data.dataI === undefined || this.data.dataI == null || this.data.dataI === "") {
                            erros++;
                            this.mensagens.push("messages.selecioneDataInicial");
                        }
                        if (this.data.dataF === undefined || this.data.dataF == null || this.data.dataF === "-1") {
                            erros++;
                            this.mensagens.push("messages.selecioneDataFinal");
                        }
                        this.data.percentual = 90;
                        if (!(erros <= 0)) return [3 /*break*/, 2];
                        this.dataAux = this.data;
                        return [4 /*yield*/, this.gerarXls(this.data)];
                    case 1:
                        ret2 = _a.sent();
                        if (ret2 && !ret2.validationResult.isValid) {
                            this.data.percentual = 0;
                            this.mensagens = this.messageService.validationResult(ret2.validationResult);
                            if (ret2 && !ret2.validationResult.isValid) {
                                this.messageService.warning("titles.exportarXML", this.mensagens[0]);
                                return [2 /*return*/];
                            }
                        }
                        else {
                            this.dataAux.nomeArquivo = ret2.nomeArquivo;
                            this.dataAux.arquivoXls = ret2.arquivoXls;
                            this.dataAux.tipoArquivo = ret2.tipoArquivo;
                            this.data.percentual = 100;
                            this.download();
                            this.messageService.success("Sucesso", "messages.exportacaoXlsRealizada");
                            this.onCancelar();
                            setTimeout(function () { _this.data.percentual = 0; }, 5000);
                        }
                        return [3 /*break*/, 3];
                    case 2:
                        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(this.mensagens);
                        return [2 /*return*/];
                    case 3: return [2 /*return*/];
                }
            });
        }); }, false);
    };
    ContratosFormComponent.prototype.onSubmit = function (form) {
        this.print(null, true);
    };
    ContratosFormComponent.prototype.gerarXls = function (data) {
        var request = this.contratosService;
        var promise = new Promise(function (resolve, reject) {
            request.gerarXls(data).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    ContratosFormComponent.prototype.download = function () {
        if (this.funcoesService.isUndefinedOrNull(this.dataAux)) {
            return;
        }
        var b64 = this.dataAux.arquivoXls;
        var byteCharacters = atob(b64);
        var byteArrays = [];
        for (var offset = 0; offset < byteCharacters.length; offset += 512) {
            var slice = byteCharacters.slice(offset, offset + 512);
            var byteNumbers = new Array(slice.length);
            for (var i = 0; i < slice.length; i++) {
                byteNumbers[i] = slice.charCodeAt(i);
            }
            var byteArray = new Uint8Array(byteNumbers);
            byteArrays.push(byteArray);
        }
        var tipo = this.dataAux.tipoArquivo.replace(',', '');
        var blobData = new Blob(byteArrays, { type: tipo });
        var win = window;
        if (win.navigator && win.navigator.msSaveOrOpenBlob) { // IE
            win.navigator.msSaveOrOpenBlob(blobData, this.dataAux.nomeArquivo);
        }
        else { // chrome
            var blob = new Blob([blobData], { type: tipo });
            var url = window.URL.createObjectURL(blob);
            var link = document.createElement('a');
            link.href = url;
            link.download = this.dataAux.nomeArquivo;
            link.click();
        }
    };
    ContratosFormComponent.prototype.onCancelar = function () {
        this.data = new _contratos_model__WEBPACK_IMPORTED_MODULE_8__["ContratosFilter"]();
        this.data.cliente = new _pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_7__["Destinatario"]();
    };
    ContratosFormComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_12__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] },
        { type: _contratos_service__WEBPACK_IMPORTED_MODULE_11__["ContratosService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] }
    ]; };
    ContratosFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-contratos-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./contratos-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/relatorios/contratos/contratos-form/contratos-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_12__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            _contratos_service__WEBPACK_IMPORTED_MODULE_11__["ContratosService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"]])
    ], ContratosFormComponent);
    return ContratosFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/relatorios/contratos/contratos.model.ts":
/*!*********************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/relatorios/contratos/contratos.model.ts ***!
  \*********************************************************************************/
/*! exports provided: ContratosFilter, Situacao */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContratosFilter", function() { return ContratosFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Situacao", function() { return Situacao; });
/* 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 ContratosFilter = /** @class */ (function () {
    function ContratosFilter() {
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_0__().startOf('month').toDate();
        this.dataF = new Date();
        this.filialId = 0;
        this.colaboradorId = 0;
        this.destinatarioIdCliente = 0;
        this.sitReg = "T";
        this.tipoArquivo = "";
        this.percentual = 0;
        this.nomeArquivo = "";
        this.arquivoXls = "";
    }
    return ContratosFilter;
}());

var Situacao = /** @class */ (function () {
    function Situacao() {
        this.get = [
            { id: "A", descricao: "Em Aberto" },
            { id: "E", descricao: "Encerrado" },
            { id: "T", descricao: "Todos" }
        ];
    }
    return Situacao;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContratosModule", function() { return ContratosModule; });
/* 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 _contratos_form_contratos_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./contratos-form/contratos-form.component */ "./src/app/pages/especificos/vopak/relatorios/contratos/contratos-form/contratos-form.component.ts");
/* harmony import */ var _contratos_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./contratos.routing.module */ "./src/app/pages/especificos/vopak/relatorios/contratos/contratos.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 ContratosModule = /** @class */ (function () {
    function ContratosModule() {
    }
    ContratosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _contratos_routing_module__WEBPACK_IMPORTED_MODULE_3__["ContratosRoutingModule"]],
            declarations: [_contratos_form_contratos_form_component__WEBPACK_IMPORTED_MODULE_2__["ContratosFormComponent"]]
        })
    ], ContratosModule);
    return ContratosModule;
}());



/***/ }),

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

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



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContratosService", function() { return ContratosService; });
/* 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 ContratosService = /** @class */ (function (_super) {
    __extends(ContratosService, _super);
    function ContratosService(http) {
        var _this = _super.call(this, http, "vopak/contratos") || this;
        _this.http = http;
        return _this;
    }
    ContratosService.prototype.gerarXls = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/vopak/relContratos/gerarXls", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    ContratosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ContratosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ContratosService);
    return ContratosService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

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