(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-rocha-movimentos-geracao-ticket-por-lote-geracao-ticket-por-lote-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-filter/geracao-ticket-por-lote-filter.component.html":
/*!***********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-filter/geracao-ticket-por-lote-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=\"geracao-ticket-por-lote-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-30\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.geracaoTicketPorLote' | translate }}</h6>\n            </div>\n            <div class=\"modal-body\">\n                <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                            <app-validacoes></app-validacoes>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6\">\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\" required=\"true\"\n                                            [(ngModel)]=\"service.filtro.dataInicio\"\n                                            [formatDateTime]=\"mascara.getFormatDataHorMin\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{ 'labels.final' | translate }}</label>\n                                        <app-data-h-m-s id=\"ate\" name=\"ate\" required=\"true\"\n                                            [(ngModel)]=\"service.filtro.dataFinal\">\n                                        </app-data-h-m-s>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-destinatario id=\"destinatarioIdCliente\" name=\"cliente\"\n                                            label=\"cliente\" modalTitle=\"pesquisaDeCliente\"\n                                            [(ngModel)]=\"service.filtro.destinatarioIdCliente\" tipoDestinatario=\"C\"\n                                            showCgcCpf=\"false\" showInscricao=\"false\" required=\"true\" (outModel)=\"trataDest($event)\">\n                                        </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\" required=\"true\"\n                                            modalTitle=\"pesquisaDeProduto\" \n                                            [(ngModel)]=\"service.filtro.materialId\" [inSelected]=\"service.filtro.produto\"\n                                            (outModel)=\"trataMaterial($event)\">\n                                        </app-pesquisa-material>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"modal-footer\">\n                                <button class=\"btn btn-success\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\n                                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote-index.component.html":
/*!*********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote-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\" \n                      [formAction]=\"actionForm\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n<div class=\"section-comand-bar\">\n    <div class=\"table-responsive mt-1\" style=\"overflow: auto; max-height: 300px;\">\n        <table id=\"dtClienteParaPortal\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th>{{ 'labels.sel' | translate }}</th>\n                    <th>{{ 'labels.lote' | translate }}</th>\n                    <th>{{ 'labels.cliente' | translate }}</th>\n                    <th>{{ 'labels.fantasia' | translate }}</th>\n                    <th>{{ 'labels.material' | translate }}</th>\n                    <th>{{ 'labels.produto' | translate }}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"selecionado\" name=\"selecionado\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"white-space: nowrap;\">{{ t.lote }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.cliente }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.nomeCliente }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.material }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.produto }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDados\">\n                    <th colspan=\"6\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n    <div class=\"clearfix\">&nbsp;</div>\n    <div class=\"row\">\n        <div class=\"col-4\">\n            <div class=\"form-group\">\n                <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\" [disabled]=\"dados.length === 0 \">\n                    {{ 'buttons.selecionarTodos' | translate }}\n                </button>\n                <button class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\" type=\"button\" [disabled]=\"dados.length === 0 \">\n                    {{ 'buttons.desmarcarTodos' | translate }}\n                </button> \n            </div>\n        </div>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-geracao-ticket-por-lote-filter (filtrar)=\"executaFiltro()\"></app-geracao-ticket-por-lote-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-filter/geracao-ticket-por-lote-filter.component.ts":
/*!*******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-filter/geracao-ticket-por-lote-filter.component.ts ***!
  \*******************************************************************************************************************************************************/
/*! exports provided: GeracaoTicketPorLoteFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLoteFilterComponent", function() { return GeracaoTicketPorLoteFilterComponent; });
/* 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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __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_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _geracao_ticket_por_lote_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../geracao-ticket-por-lote.service */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.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 GeracaoTicketPorLoteFilterComponent = /** @class */ (function () {
    function GeracaoTicketPorLoteFilterComponent(service, funcoesService, messageService) {
        this.service = service;
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_5__["Mascaras"]();
    }
    GeracaoTicketPorLoteFilterComponent.prototype.ngOnInit = function () {
    };
    GeracaoTicketPorLoteFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal('geracao-ticket-por-lote-filter-dialog');
    };
    GeracaoTicketPorLoteFilterComponent.prototype.trataMaterial = function (material) {
        this.service.filtro.produto = material;
    };
    GeracaoTicketPorLoteFilterComponent.prototype.trataDest = function (cliente) {
        this.service.filtro.cliente = cliente;
    };
    GeracaoTicketPorLoteFilterComponent.prototype.validatePeriodoAte = function () {
        if (!this.service.filtro.dataInicio)
            return;
        if (!this.service.filtro.dataFinal)
            return;
        if (this.funcoesService.dateTimeUtils.maiorOuIgualA(this.service.filtro.dataInicio, this.service.filtro.dataFinal, ['H', 'M'])) {
            this.messageService.warning("titles.liberacaoEspeciais", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    GeracaoTicketPorLoteFilterComponent.ctorParameters = function () { return [
        { type: _geracao_ticket_por_lote_service__WEBPACK_IMPORTED_MODULE_4__["GeracaoTicketPorLoteService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], GeracaoTicketPorLoteFilterComponent.prototype, "filtrar", void 0);
    GeracaoTicketPorLoteFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-geracao-ticket-por-lote-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./geracao-ticket-por-lote-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-filter/geracao-ticket-por-lote-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_geracao_ticket_por_lote_service__WEBPACK_IMPORTED_MODULE_4__["GeracaoTicketPorLoteService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], GeracaoTicketPorLoteFilterComponent);
    return GeracaoTicketPorLoteFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote-index.component.ts":
/*!*****************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote-index.component.ts ***!
  \*****************************************************************************************************************************************************/
/*! exports provided: GeracaoTicketPorLoteIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLoteIndexComponent", function() { return GeracaoTicketPorLoteIndexComponent; });
/* 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 _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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 _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _geracao_ticket_por_lote_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../geracao-ticket-por-lote.constants */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.constants.ts");
/* harmony import */ var _geracao_ticket_por_lote_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../geracao-ticket-por-lote.service */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.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 GeracaoTicketPorLoteIndexComponent = /** @class */ (function (_super) {
    __extends(GeracaoTicketPorLoteIndexComponent, _super);
    function GeracaoTicketPorLoteIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService, cliente) {
        var _this = _super.call(this, new _geracao_ticket_por_lote_constants__WEBPACK_IMPORTED_MODULE_10__["GeracaoTicketPorLoteConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.cliente = cliente;
        _this.constantes = new _geracao_ticket_por_lote_constants__WEBPACK_IMPORTED_MODULE_10__["GeracaoTicketPorLoteConstants"]();
        _this.hasDados = false;
        _this.dados = [];
        _this.dadosSelecionados = [];
        _this.clientePortalSelecionado = [];
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.geraTicket = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                var algumSelecionado = _this.dados.some(function (x) { return x.selecionado === "S"; });
                if (!algumSelecionado) {
                    _this.messageService.warning(_this.service.titles, "messages.selecioneUmLote");
                    return;
                }
                _this.messageService.confirm(_this.service.titles, "messages.confirmaDoGeracaoTicketPorLote", null, function () {
                    var selecionadosMap = new Map();
                    _this.dados
                        .filter(function (d) { return d.selecionado === 'S'; })
                        .forEach(function (d) {
                        d.dataInicio = _this.service.filtro.dataInicio;
                        d.dataFinal = _this.service.filtro.dataFinal;
                        selecionadosMap.set(d.lote, d);
                    });
                    var selecionados = Array.from(selecionadosMap.values());
                    _this.service.geraTicket(selecionados).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result.validationResult.message);
                        if (!result.validationResult.isValid) {
                            _this.messageService.warning(_this.service.titles, result.validationResult.message);
                        }
                        else {
                            _this.messageService.success(_this.service.titles, "messages.arquivoGeradoComSucesso");
                            _this.download(result.texto, result.tipoArquivo, result.fileNome);
                            _this.dadosSelecionados = [];
                            _this.refresh();
                        }
                    });
                }, false);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    GeracaoTicketPorLoteIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.filtrar();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'geraTicket', func: function () { return _this.geraTicket; } }
        ]);
    };
    GeracaoTicketPorLoteIndexComponent.prototype._dbClick = function (obj) {
        this.onMarcarDesmarcar(obj);
    };
    GeracaoTicketPorLoteIndexComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.dados.forEach(function (d) {
            if (d.lote === obj.lote) {
                d.selecionado = obj.selecionado;
                d.cliente = obj.cliente;
            }
        });
    };
    GeracaoTicketPorLoteIndexComponent.prototype.marcarTodos = function () {
        var _this = this;
        this.dados.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    GeracaoTicketPorLoteIndexComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        this.dados.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    GeracaoTicketPorLoteIndexComponent.prototype.onMarcarTodos = function (obj) {
        this.dados.forEach(function (d) {
            if (d.lote === obj.lote) {
                d.selecionado = 'S';
                d.lote = obj.lote;
            }
        });
    };
    GeracaoTicketPorLoteIndexComponent.prototype.onDesmarcarTodos = function (obj) {
        this.dados.forEach(function (d) {
            if (d.lote === obj.lote) {
                d.selecionado = 'N';
                d.lote = obj.lote;
            }
        });
    };
    GeracaoTicketPorLoteIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            _this.hasDados = data && data.length > 0;
            _this.dados = data;
        });
    };
    GeracaoTicketPorLoteIndexComponent.prototype.download = function (arquivoGerado, tipoArquivo, nomeArquivo) {
        var b64 = arquivoGerado;
        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 = tipoArquivo.replace(',', '');
        var blobData = new Blob(byteArrays, { type: tipo });
        var win = window;
        if (win.navigator && win.navigator.msSaveOrOpenBlob) {
            win.navigator.msSaveOrOpenBlob(blobData, nomeArquivo);
        }
        else {
            var blob = new Blob([blobData], { type: tipo });
            var url = window.URL.createObjectURL(blob);
            var link = document.createElement('a');
            link.href = url;
            link.download = nomeArquivo;
            link.click();
        }
    };
    GeracaoTicketPorLoteIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    GeracaoTicketPorLoteIndexComponent.prototype.executaFiltro = function () {
        this.geraDados = true;
        this.refresh();
    };
    GeracaoTicketPorLoteIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].openModal("geracao-ticket-por-lote-filter-dialog");
    };
    GeracaoTicketPorLoteIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _geracao_ticket_por_lote_service__WEBPACK_IMPORTED_MODULE_11__["GeracaoTicketPorLoteService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"] }
    ]; };
    GeracaoTicketPorLoteIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-geracao-ticket-por-lote-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./geracao-ticket-por-lote-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./geracao-ticket-por-lote.component.scss */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _geracao_ticket_por_lote_service__WEBPACK_IMPORTED_MODULE_11__["GeracaoTicketPorLoteService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["DestinatarioService"]])
    ], GeracaoTicketPorLoteIndexComponent);
    return GeracaoTicketPorLoteIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote.component.scss":
/*!*************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote.component.scss ***!
  \*************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvcm9jaGEvbW92aW1lbnRvcy9nZXJhY2FvLXRpY2tldC1wb3ItbG90ZS9nZXJhY2FvLXRpY2tldC1wb3ItbG90ZS1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxyb2NoYVxcbW92aW1lbnRvc1xcZ2VyYWNhby10aWNrZXQtcG9yLWxvdGVcXGdlcmFjYW8tdGlja2V0LXBvci1sb3RlLWluZGV4XFxnZXJhY2FvLXRpY2tldC1wb3ItbG90ZS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvcm9jaGEvbW92aW1lbnRvcy9nZXJhY2FvLXRpY2tldC1wb3ItbG90ZS9nZXJhY2FvLXRpY2tldC1wb3ItbG90ZS1pbmRleC9nZXJhY2FvLXRpY2tldC1wb3ItbG90ZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGFBQUE7QUNDSjs7QURFQTtFQUNJLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtBQ0NKOztBREVBO0VBQ0ksc0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3JvY2hhL21vdmltZW50b3MvZ2VyYWNhby10aWNrZXQtcG9yLWxvdGUvZ2VyYWNhby10aWNrZXQtcG9yLWxvdGUtaW5kZXgvZ2VyYWNhby10aWNrZXQtcG9yLWxvdGUuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgICB3aWR0aDogMTJweDtcclxuICAgIGhlaWdodDogMTJweDtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxMDAlO1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59IiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxMnB4O1xuICBoZWlnaHQ6IDEycHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxMDAlO1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.constants.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.constants.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: GeracaoTicketPorLoteConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLoteConstants", function() { return GeracaoTicketPorLoteConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var GeracaoTicketPorLoteConstants = /** @class */ (function () {
    function GeracaoTicketPorLoteConstants() {
        this.sisFormularioId = 140081;
        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.geraTicket" }
        ];
        this.sisSistemaId = "CON";
        this.nomeForm = "titles.geracaoTicketPorLote";
        this.reportId = "";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'GeraTicket', action: 'geraTicket', icon: "fa fa-cogs", exibeButton: true, eximeMenu: false, menuName: 'Movimento', depitem: false },
        ];
    }
    return GeracaoTicketPorLoteConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.model.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.model.ts ***!
  \*************************************************************************************************************/
/*! exports provided: GeracaoTicketPorLoteFiltro, GeracaoTicketPorLote, GeracaoTicketPorLoteDtoZip */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLoteFiltro", function() { return GeracaoTicketPorLoteFiltro; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLote", function() { return GeracaoTicketPorLote; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLoteDtoZip", function() { return GeracaoTicketPorLoteDtoZip; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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 _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var GeracaoTicketPorLoteFiltro = /** @class */ (function (_super) {
    __extends(GeracaoTicketPorLoteFiltro, _super);
    function GeracaoTicketPorLoteFiltro() {
        var _this = _super.call(this) || this;
        var a = new Date();
        a.setHours(23);
        a.setMinutes(59);
        a.setSeconds(59);
        var dataInicial = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -1);
        dataInicial.setHours(0);
        dataInicial.setMinutes(0);
        dataInicial.setSeconds(0);
        _this.dataInicio = dataInicial;
        _this.dataFinal = a;
        return _this;
    }
    return GeracaoTicketPorLoteFiltro;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var GeracaoTicketPorLote = /** @class */ (function (_super) {
    __extends(GeracaoTicketPorLote, _super);
    function GeracaoTicketPorLote() {
        return _super.call(this) || this;
    }
    return GeracaoTicketPorLote;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));

var GeracaoTicketPorLoteDtoZip = /** @class */ (function (_super) {
    __extends(GeracaoTicketPorLoteDtoZip, _super);
    function GeracaoTicketPorLoteDtoZip() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return GeracaoTicketPorLoteDtoZip;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_1__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.module.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.module.ts ***!
  \**************************************************************************************************************/
/*! exports provided: GeracaoTicketPorLoteModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLoteModule", function() { return GeracaoTicketPorLoteModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _geracao_ticket_por_lote_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./geracao-ticket-por-lote.routing.module */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.routing.module.ts");
/* harmony import */ var _geracao_ticket_por_lote_filter_geracao_ticket_por_lote_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./geracao-ticket-por-lote-filter/geracao-ticket-por-lote-filter.component */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-filter/geracao-ticket-por-lote-filter.component.ts");
/* harmony import */ var _geracao_ticket_por_lote_index_geracao_ticket_por_lote_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./geracao-ticket-por-lote-index/geracao-ticket-por-lote-index.component */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote-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 GeracaoTicketPorLoteModule = /** @class */ (function () {
    function GeracaoTicketPorLoteModule() {
    }
    GeracaoTicketPorLoteModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _geracao_ticket_por_lote_index_geracao_ticket_por_lote_index_component__WEBPACK_IMPORTED_MODULE_4__["GeracaoTicketPorLoteIndexComponent"],
                _geracao_ticket_por_lote_filter_geracao_ticket_por_lote_filter_component__WEBPACK_IMPORTED_MODULE_3__["GeracaoTicketPorLoteFilterComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _geracao_ticket_por_lote_routing_module__WEBPACK_IMPORTED_MODULE_2__["GeracaoTicketPorLoteRoutingModule"]
            ]
        })
    ], GeracaoTicketPorLoteModule);
    return GeracaoTicketPorLoteModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.routing.module.ts":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.routing.module.ts ***!
  \**********************************************************************************************************************/
/*! exports provided: GeracaoTicketPorLoteRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLoteRoutingModule", function() { return GeracaoTicketPorLoteRoutingModule; });
/* 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 _geracao_ticket_por_lote_index_geracao_ticket_por_lote_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./geracao-ticket-por-lote-index/geracao-ticket-por-lote-index.component */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote-index/geracao-ticket-por-lote-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 GeracaoTicketPorLoteRoutes = [
    {
        path: "",
        component: _geracao_ticket_por_lote_index_geracao_ticket_por_lote_index_component__WEBPACK_IMPORTED_MODULE_3__["GeracaoTicketPorLoteIndexComponent"],
        data: {
            breadcrumb: "geracaoTicketPorLote",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var GeracaoTicketPorLoteRoutingModule = /** @class */ (function () {
    function GeracaoTicketPorLoteRoutingModule() {
    }
    GeracaoTicketPorLoteRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(GeracaoTicketPorLoteRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], GeracaoTicketPorLoteRoutingModule);
    return GeracaoTicketPorLoteRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.service.ts":
/*!***************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.service.ts ***!
  \***************************************************************************************************************/
/*! exports provided: GeracaoTicketPorLoteService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeracaoTicketPorLoteService", function() { return GeracaoTicketPorLoteService; });
/* 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 environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/internal/operators/catchError */ "./node_modules/rxjs/internal/operators/catchError.js");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _geracao_ticket_por_lote_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./geracao-ticket-por-lote.model */ "./src/app/pages/especificos/rocha/movimentos/geracao-ticket-por-lote/geracao-ticket-por-lote.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 GeracaoTicketPorLoteService = /** @class */ (function () {
    function GeracaoTicketPorLoteService(http) {
        this.http = http;
        this.filtro = new _geracao_ticket_por_lote_model__WEBPACK_IMPORTED_MODULE_5__["GeracaoTicketPorLoteFiltro"]();
        this.titles = "titles.geracaoTicketPorLote";
    }
    GeracaoTicketPorLoteService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/geracaoTicketPorLote/getByFiltro", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    GeracaoTicketPorLoteService.prototype.geraTicket = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/rocha/movimentos/geracaoTicketPorLote/geraTicket", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    GeracaoTicketPorLoteService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    GeracaoTicketPorLoteService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], GeracaoTicketPorLoteService);
    return GeracaoTicketPorLoteService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-rocha-movimentos-geracao-ticket-por-lote-geracao-ticket-por-lote-module.js.map