(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-aldc-relatorios-emissao-ticket-emissao-ticket-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-filter/emissao-ticket-filter.component.html":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-filter/emissao-ticket-filter.component.html ***!
  \*******************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"emissao-ticket-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"dataIni\" class=\"required\">{{'labels.periodoDe' | translate}}</label>\r\n                                <app-data id=\"dataIni\" name=\"periodoDe\" [(ngModel)]=\"service.filter.dtIni\" required \r\n                                    [formatDateTime]=\"mascara.getFormatDataHorMin\" autofocus (executa)=\"validaData()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"dataFim\" class=\"required\">{{'labels.ate' | translate}}</label>\r\n                                <app-data id=\"dataFim\" name=\"ate\" [(ngModel)]=\"service.filter.dtFim\" required\r\n                                    [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" (executa)=\"validaData()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"destinatarioClienteId\" name=\"destinatarioClienteId\"\r\n                                    label=\"cliente\" modalTitle=\"pesquisaDeCliente\"\r\n                                    [(ngModel)]=\"service.filter.destinatarioIdCliente\" tipoDestinatario=\"C\"\r\n                                    showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"outDestinatario($event)\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"materialId\" name=\"produto\" label=\"produto\"\r\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filter.materialId\"\r\n                                    (outModel)=\"outMaterial($event)\" [inSelected]=\"service.filter.material\">\r\n                                </app-pesquisa-material>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-index/emissao-ticket-index.component.html":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-index/emissao-ticket-index.component.html ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtEmissaoTicket\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-propriedades></app-propriedades>\n<app-emissao-ticket-filter (filtrar)=\"executaFiltro()\"></app-emissao-ticket-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-filter/emissao-ticket-filter.component.ts":
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-filter/emissao-ticket-filter.component.ts ***!
  \***************************************************************************************************************************/
/*! exports provided: EmissaoTicketFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketFilterComponent", function() { return EmissaoTicketFilterComponent; });
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _emissao_ticket_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../emissao-ticket.service */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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 EmissaoTicketFilterComponent = /** @class */ (function () {
    function EmissaoTicketFilterComponent(service, message, funcoesService) {
        this.service = service;
        this.message = message;
        this.funcoesService = funcoesService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_7__["Mascaras"]();
    }
    EmissaoTicketFilterComponent.prototype.ngOnInit = function () {
    };
    Object.defineProperty(EmissaoTicketFilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.emissaoTicket");
        },
        enumerable: true,
        configurable: true
    });
    EmissaoTicketFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.filtrar.emit(this.service.filter);
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].closeModal("emissao-ticket-filter-dialog");
    };
    EmissaoTicketFilterComponent.prototype.outMaterial = function (material) {
        if (!material)
            return;
        this.service.filter.material = material;
    };
    EmissaoTicketFilterComponent.prototype.outDestinatario = function (event) {
        if (!event || (event && !event.destinatarioId)) {
            this.service.filter.destinatarioIdCliente = 0;
            return;
        }
        this.cliente = event;
        this.service.filter.destinatarioIdCliente = event.destinatarioId;
    };
    EmissaoTicketFilterComponent.prototype.validaData = function (all) {
        if (all === void 0) { all = false; }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["DateTimeUtilsStaticService"].menorA(this.service.filter.dtFim, this.service.filter.dtIni, ['H', 'M', 'S'])) {
            this.message.warning("titles.emissaoTicket", "messages.periodoDeMenorQueAte");
            return false;
        }
        if (all) {
            if (!this.service.filter.dtFim || !this.service.filter.dtIni || (this.service.filter.dtFim.toString() === "Invalid Date") || (this.service.filter.dtIni.toString() === "Invalid Date")) {
                this.message.warning("titles.emissaoTicket", "messages.periodoNaoPreenchidoOuInvalido");
                return false;
            }
        }
        return true;
    };
    EmissaoTicketFilterComponent.ctorParameters = function () { return [
        { type: _emissao_ticket_service__WEBPACK_IMPORTED_MODULE_6__["EmissaoTicketService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], EmissaoTicketFilterComponent.prototype, "filtrar", void 0);
    EmissaoTicketFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-emissao-ticket-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./emissao-ticket-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-filter/emissao-ticket-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_emissao_ticket_service__WEBPACK_IMPORTED_MODULE_6__["EmissaoTicketService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"]])
    ], EmissaoTicketFilterComponent);
    return EmissaoTicketFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-index/emissao-ticket-index.component.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-index/emissao-ticket-index.component.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: EmissaoTicketIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketIndexComponent", function() { return EmissaoTicketIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.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_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _emissao_ticket_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../emissao-ticket.constants */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.constants.ts");
/* harmony import */ var _emissao_ticket_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../emissao-ticket.service */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.service.ts");
/* harmony import */ var _emissao_ticket_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../emissao-ticket.model */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.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 __assign = (undefined && undefined.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
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 EmissaoTicketIndexComponent = /** @class */ (function (_super) {
    __extends(EmissaoTicketIndexComponent, _super);
    function EmissaoTicketIndexComponent(messageService, service, funcoesService, loginService, permissoesUtils, excelService, router, datatablesService) {
        var _this = _super.call(this, new _emissao_ticket_constants__WEBPACK_IMPORTED_MODULE_12__["EmissaoTicketConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.excelService = excelService;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.constantes = new _emissao_ticket_constants__WEBPACK_IMPORTED_MODULE_12__["EmissaoTicketConstants"]();
        _this.mensagens = [];
        _this.title = "titles.emissaoTicket";
        _this.dadosGrid = [];
        _this.dadosSelecionados = [];
        _this.historicoSelecoes = [];
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.selecionarTodos = function () {
            _this.dadosGrid.forEach(function (dado) {
                dado.flagImp = "S";
            });
            _this.dadosSelecionados = _this.dadosGrid.slice();
            _this.redesenharTabela();
        };
        _this.desmarcarTodos = function () {
            _this.dadosGrid.forEach(function (dado) {
                dado.flagImp = "N";
            });
            _this.dadosSelecionados = [];
            _this.redesenharTabela();
        };
        _this.export = function () {
            var colunas = {};
            _this.data.colunas.forEach(function (item) {
                colunas[app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["StringUtilsStaticService"].firstLetterLower(item.campo)] = item.titulo;
            });
            var options = {
                headerObject: colunas
            };
            _this.excelService.exportAsExcelFile(_this.data.data, _this.messageService.getTranslates("titles", "emissaoTicket"), options);
        };
        return _this;
    }
    EmissaoTicketIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.loginService.isTokenExpired()) {
                    this.service.filter = new _emissao_ticket_model__WEBPACK_IMPORTED_MODULE_14__["EmissaoTicketFiltroVo"]();
                    this.filtrar();
                }
                return [2 /*return*/];
            });
        }); }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: "selecionarTodos", func: function () { return _this.selecionarTodos; } },
            { action: "desmarcarTodos", func: function () { return _this.desmarcarTodos; } }
        ]);
    };
    EmissaoTicketIndexComponent.prototype.refresh = function () {
        this.getByFiltro();
    };
    EmissaoTicketIndexComponent.prototype.getByFiltro = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filter).subscribe(function (res) {
            _this.data = res;
            _this.dadosGrid = _this.data;
            _this.dadosSelecionados = _this.dadosGrid.filter(function (d) { return d.flagImp === "S"; });
            _this.buttonDisabled('listaIndex', 'selecionarTodos', _this.dadosGrid.length == 0);
            _this.buttonDisabled('listaIndex', 'desmarcarTodos', _this.dadosSelecionados.length === 0);
            var columns = [
                _this.datatablesService.getBolinha("flagImp", "Imp", "S"),
                _this.datatablesService.getDataString("regRequisicao", "Ticket"),
                _this.datatablesService.getDataDateTime("dtEntrada", "Data"),
                _this.datatablesService.getDataString("placaCavalo", "Placa Cavalo"),
                _this.datatablesService.getDataString("nomeMat", "Material")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtEmissaoTicket", columns: columns, data: _this.data, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["EOrientationOrder"].ASC }, function (aData) {
                _this.toggleSelecao(aData);
            });
        });
    };
    EmissaoTicketIndexComponent.prototype.toggleSelecao = function (aData) {
        aData.flagImp = (aData.flagImp === "S" ? "N" : "S");
        if (aData.flagImp === "S") {
            var jaExiste = this.dadosSelecionados.includes(aData.regRequisicao);
            if (!jaExiste) {
                this.dadosSelecionados.push(aData.regRequisicao);
            }
        }
        else {
            this.dadosSelecionados = this.dadosSelecionados.filter(function (reg) { return reg !== aData.regRequisicao; });
        }
    };
    EmissaoTicketIndexComponent.prototype.redesenharTabela = function () {
        var _this = this;
        this.dadosSelecionados = this.dadosGrid.filter(function (d) { return d.flagImp === "S"; });
        this.buttonDisabled('listaIndex', 'selecionarTodos', this.dadosGrid.length == 0);
        this.buttonDisabled('listaIndex', 'desmarcarTodos', this.dadosSelecionados.length === 0);
        var columns = [
            this.datatablesService.getBolinha("flagImp", "Imp", "S"),
            this.datatablesService.getDataString("regRequisicao", "Ticket"),
            this.datatablesService.getDataDateTime("dtEntrada", "Data"),
            this.datatablesService.getDataString("placaCavalo", "Placa Cavalo"),
            this.datatablesService.getDataString("nomeMat", "Material")
        ];
        this.datatablesService.toDataTable({ tableId: "dtEmissaoTicket", columns: columns, data: this.dadosGrid, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["EOrientationOrder"].ASC }, function (aData) {
            _this.toggleSelecao(aData);
        });
    };
    EmissaoTicketIndexComponent.prototype.print = function (result) {
        return __awaiter(this, void 0, void 0, function () {
            var _i, _a, dado, reg;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!(this.dadosSelecionados.length >= 1)) return [3 /*break*/, 5];
                        _i = 0, _a = this.dadosSelecionados;
                        _b.label = 1;
                    case 1:
                        if (!(_i < _a.length)) return [3 /*break*/, 5];
                        dado = _a[_i];
                        reg = typeof dado === 'number' ? dado : dado.regRequisicao;
                        return [4 /*yield*/, this._print(__assign({}, result, { regRequisicao: reg }))];
                    case 2:
                        _b.sent();
                        return [4 /*yield*/, this.delay(500)];
                    case 3:
                        _b.sent();
                        _b.label = 4;
                    case 4:
                        _i++;
                        return [3 /*break*/, 1];
                    case 5:
                        this.desmarcarTodos();
                        return [2 /*return*/];
                }
            });
        });
    };
    EmissaoTicketIndexComponent.prototype._print = function (result) {
        return __awaiter(this, void 0, void 0, function () {
            var error_1;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        _a.trys.push([0, 2, , 3]);
                        return [4 /*yield*/, this.printCheckList(result)];
                    case 1:
                        _a.sent();
                        return [3 /*break*/, 3];
                    case 2:
                        error_1 = _a.sent();
                        console.error('Erro ao processar reports:', error_1);
                        return [3 /*break*/, 3];
                    case 3: return [2 /*return*/];
                }
            });
        });
    };
    EmissaoTicketIndexComponent.prototype.printCheckList = function (result) {
        return __awaiter(this, void 0, void 0, function () {
            var reportService, dadosReportObservable, resultPdf, error_2;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        _a.trys.push([0, 3, , 4]);
                        reportService = this.funcoesService.reportInvoc;
                        return [4 /*yield*/, reportService['createPdfFile'](true, this.constantes.reportId, this.constantes.reportTitulo, {
                                filialId: this.loginService.getLogin().filialId,
                                autorizacao: result.regRequisicao,
                                tipoOCD: 'R'
                            })];
                    case 1:
                        dadosReportObservable = _a.sent();
                        return [4 /*yield*/, dadosReportObservable.toPromise()];
                    case 2:
                        resultPdf = _a.sent();
                        if (!resultPdf.validationResult.isValid) {
                            reportService['download'](resultPdf);
                            this.messageService.warning(this.title, "messages.falhaAoEnviarParaFilaPdfFoiBaixado");
                        }
                        else {
                            this.messageService.success(this.title, "messages.pdfEnviadoAFilaDeImpressaoComSucesso");
                        }
                        return [3 /*break*/, 4];
                    case 3:
                        error_2 = _a.sent();
                        this.messageService.warning(this.title, "messages.erroAoGerarOPdf");
                        this.funcoesService.reportInvoc['download'](error_2);
                        return [3 /*break*/, 4];
                    case 4: return [2 /*return*/];
                }
            });
        });
    };
    EmissaoTicketIndexComponent.prototype.delay = function (ms) {
        return new Promise(function (resolve) { return setTimeout(resolve, ms); });
    };
    EmissaoTicketIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ModalUtilsStaticService"].openModal("emissao-ticket-filter-dialog");
    };
    EmissaoTicketIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    EmissaoTicketIndexComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _emissao_ticket_service__WEBPACK_IMPORTED_MODULE_13__["EmissaoTicketService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_6__["ExcelService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_11__["TableComponent"], { static: false }),
        __metadata("design:type", _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_11__["TableComponent"])
    ], EmissaoTicketIndexComponent.prototype, "table", void 0);
    EmissaoTicketIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-emissao-ticket-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./emissao-ticket-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-index/emissao-ticket-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _emissao_ticket_service__WEBPACK_IMPORTED_MODULE_13__["EmissaoTicketService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_6__["ExcelService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"]])
    ], EmissaoTicketIndexComponent);
    return EmissaoTicketIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.constants.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.constants.ts ***!
  \**********************************************************************************************/
/*! exports provided: EmissaoTicketConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketConstants", function() { return EmissaoTicketConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var EmissaoTicketConstants = /** @class */ (function () {
    function EmissaoTicketConstants() {
        this.sisFormularioId = 375481;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
        ];
        this.nomeForm = "titles.emissaoTicket";
        this.reportTitulo = { "titulo": "Emissão Ticket", "subTitulo": "" };
        this.reportId = "ALD0012";
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'SelecionarTodos', action: 'selecionarTodos', icon: "icon-check", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'DesmarcarTodos', action: 'desmarcarTodos', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return EmissaoTicketConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.model.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.model.ts ***!
  \******************************************************************************************/
/*! exports provided: EmissaoTicketFiltroVo, EmissaoTicketIndexDto, EmissaoTicketFiltroRelVo, PrintQueueData */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketFiltroVo", function() { return EmissaoTicketFiltroVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketIndexDto", function() { return EmissaoTicketIndexDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketFiltroRelVo", function() { return EmissaoTicketFiltroRelVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PrintQueueData", function() { return PrintQueueData; });
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var EmissaoTicketFiltroVo = /** @class */ (function () {
    function EmissaoTicketFiltroVo() {
        this.filial = 0;
        this.regLog = 0;
        this.dtIni = new Date(new Date(_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].getFinalDay().setDate(_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].getFinalDay().getDate() - 1)).setHours(0, 0, 0, 0));
        this.dtFim = _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].getFinalDay();
        this.destinatarioIdCliente = 0;
        this.materialId = "";
        this.material = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__["Material"]();
    }
    return EmissaoTicketFiltroVo;
}());

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

var EmissaoTicketFiltroRelVo = /** @class */ (function () {
    function EmissaoTicketFiltroRelVo() {
        this.filial = 0;
        this.regRequisicao = 0;
    }
    return EmissaoTicketFiltroRelVo;
}());

var PrintQueueData = /** @class */ (function () {
    function PrintQueueData() {
        this.fileName = "";
        this.path = "";
        this.mediaType = "";
        this.content = "";
        this.type = "";
    }
    return PrintQueueData;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.module.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.module.ts ***!
  \*******************************************************************************************/
/*! exports provided: EmissaoTicketModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketModule", function() { return EmissaoTicketModule; });
/* 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 _emissao_ticket_index_emissao_ticket_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./emissao-ticket-index/emissao-ticket-index.component */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-index/emissao-ticket-index.component.ts");
/* harmony import */ var _emissao_ticket_filter_emissao_ticket_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./emissao-ticket-filter/emissao-ticket-filter.component */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-filter/emissao-ticket-filter.component.ts");
/* harmony import */ var _emissao_ticket_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./emissao-ticket.routing.module */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.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 EmissaoTicketModule = /** @class */ (function () {
    function EmissaoTicketModule() {
    }
    EmissaoTicketModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _emissao_ticket_routing_module__WEBPACK_IMPORTED_MODULE_4__["EmissaoTicketRoutingModule"]],
            declarations: [
                _emissao_ticket_index_emissao_ticket_index_component__WEBPACK_IMPORTED_MODULE_2__["EmissaoTicketIndexComponent"],
                _emissao_ticket_filter_emissao_ticket_filter_component__WEBPACK_IMPORTED_MODULE_3__["EmissaoTicketFilterComponent"]
            ]
        })
    ], EmissaoTicketModule);
    return EmissaoTicketModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.routing.module.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.routing.module.ts ***!
  \***************************************************************************************************/
/*! exports provided: EmissaoTicketRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketRoutingModule", function() { return EmissaoTicketRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _emissao_ticket_index_emissao_ticket_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./emissao-ticket-index/emissao-ticket-index.component */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket-index/emissao-ticket-index.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: _emissao_ticket_index_emissao_ticket_index_component__WEBPACK_IMPORTED_MODULE_3__["EmissaoTicketIndexComponent"],
        data: { breadcrumb: "emissaoTicket", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var EmissaoTicketRoutingModule = /** @class */ (function () {
    function EmissaoTicketRoutingModule() {
    }
    EmissaoTicketRoutingModule = __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"]]
        })
    ], EmissaoTicketRoutingModule);
    return EmissaoTicketRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.service.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.service.ts ***!
  \********************************************************************************************/
/*! exports provided: EmissaoTicketService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmissaoTicketService", function() { return EmissaoTicketService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _emissao_ticket_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./emissao-ticket.model */ "./src/app/pages/especificos/aldc/relatorios/emissao-ticket/emissao-ticket.model.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 EmissaoTicketService = /** @class */ (function () {
    function EmissaoTicketService(http) {
        this.http = http;
        this.filter = new _emissao_ticket_model__WEBPACK_IMPORTED_MODULE_5__["EmissaoTicketFiltroVo"]();
    }
    EmissaoTicketService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/aldc/relatorios/emissaoTicket/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__["ErrorHandler"].handleError));
    };
    EmissaoTicketService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    EmissaoTicketService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], EmissaoTicketService);
    return EmissaoTicketService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-aldc-relatorios-emissao-ticket-emissao-ticket-module.js.map