(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-comercial-reemissao-reemissao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/reemissao/reemissao-filter/reemissao-filter.component.html":
/*!**********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/reemissao/reemissao-filter/reemissao-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=\"reemissao-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeReemissao' | translate }}</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\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\"\r\n                                       class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"service.filtro.dataI\"\r\n                                          autofocus\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\"\r\n                                       class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"service.filtro.dataF\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                                           modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                                           [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\r\n                                                           showInscricao=\"false\" showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"rps\">{{ 'labels.rps' | translate }}</label>\r\n                                <input id=\"rps\" name=\"rps\"\r\n                                    [(ngModel)]=\"service.filtro.rps\"\r\n                                    maxlength=\"9\"\r\n                                    mask=\"999999999\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"registro\">{{ 'labels.registro' | translate }}</label>\r\n                                <input id=\"registro\" name=\"registro\"\r\n                                    [(ngModel)]=\"service.filtro.registro\"\r\n                                    maxlength=\"9\"\r\n                                    mask=\"999999999\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"nfs-e\">{{ 'labels.nfs-e' | translate }}</label>\r\n                                <input id=\"nfs-e\" name=\"nfs-e\"\r\n                                    [(ngModel)]=\"service.filtro.nfse\"\r\n                                    maxlength=\"9\"\r\n                                    mask=\"999999999\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"pedido\">{{ 'labels.pedido' | translate }}</label>\r\n                                <input id=\"pedido\" name=\"pedido\"\r\n                                    [(ngModel)]=\"service.filtro.pedido\"\r\n                                    maxlength=\"9\"\r\n                                    mask=\"999999999\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\">\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\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/reemissao/reemissao-index/reemissao-index.component.html":
/*!********************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/reemissao/reemissao-index/reemissao-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.regNota\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtReemissao\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-reemissao-filter (filtrar)=\"executaFiltro()\"></app-reemissao-filter>\r\n");

/***/ }),

/***/ "./src/app/pages/comercial/reemissao/reemissao-filter/reemissao-filter.component.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/comercial/reemissao/reemissao-filter/reemissao-filter.component.ts ***!
  \******************************************************************************************/
/*! exports provided: ReemissaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReemissaoFilterComponent", function() { return ReemissaoFilterComponent; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _reemissao_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../reemissao.service */ "./src/app/pages/comercial/reemissao/reemissao.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 ReemissaoFilterComponent = /** @class */ (function () {
    function ReemissaoFilterComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
    }
    ReemissaoFilterComponent.prototype.ngOnInit = function () {
    };
    ReemissaoFilterComponent.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();
        jQuery("#reemissao-filter-dialog").modal("hide");
    };
    ReemissaoFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _reemissao_service__WEBPACK_IMPORTED_MODULE_5__["ReemissaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ReemissaoFilterComponent.prototype, "filtrar", void 0);
    ReemissaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-reemissao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./reemissao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/reemissao/reemissao-filter/reemissao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _reemissao_service__WEBPACK_IMPORTED_MODULE_5__["ReemissaoService"]])
    ], ReemissaoFilterComponent);
    return ReemissaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/comercial/reemissao/reemissao-index/reemissao-index.component.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/comercial/reemissao/reemissao-index/reemissao-index.component.ts ***!
  \****************************************************************************************/
/*! exports provided: ReemissaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReemissaoIndexComponent", function() { return ReemissaoIndexComponent; });
/* 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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/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 _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _reemissao_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../reemissao.model */ "./src/app/pages/comercial/reemissao/reemissao.model.ts");
/* harmony import */ var _reemissao_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../reemissao.constants */ "./src/app/pages/comercial/reemissao/reemissao.constants.ts");
/* harmony import */ var _reemissao_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../reemissao.service */ "./src/app/pages/comercial/reemissao/reemissao.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var ReemissaoIndexComponent = /** @class */ (function (_super) {
    __extends(ReemissaoIndexComponent, _super);
    function ReemissaoIndexComponent(router, datatablesService, messageService, configuracao, datatables, message, funcoes, loginService, activatedRoute, service, permissoesUtils) {
        var _this = _super.call(this, new _reemissao_constants__WEBPACK_IMPORTED_MODULE_10__["ReemissaoConstants"](), funcoes) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _reemissao_model__WEBPACK_IMPORTED_MODULE_9__["ReemissaoDto"]();
        _this.mensagens = [];
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (this.configuracao.isLoadConfig()) {
                    this.service.configs.cWebModAvisoLcto = this.configuracao.string("WEB", "CWebModAvisoLcto");
                }
                return [2 /*return*/];
            });
        }); };
        _this._print = function () {
            _this.print();
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        if (!_this.service.filtro) {
            _this.service.filtro = new _reemissao_model__WEBPACK_IMPORTED_MODULE_9__["ReemissaoFilter"]();
        }
        _super.prototype.addFuncoes.call(_this, [
            { action: '_print', func: function () { return _this._print; } }
        ]);
        return _this;
    }
    ReemissaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.configuracao.getConfig({ codRotina: _this.constantes.sisFormularioId, configs: _this.constantes.listaParam }, _this.loadConfig);
                jQuery("#reemissao-filter-dialog").modal("show");
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ReemissaoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataString("nota", "rps"),
                _this.datatables.getDataString("numeroNFE", "nfs-e"),
                _this.datatables.getDataString("regNota", "registro"),
                _this.datatables.getDataString("pedido", "pedido"),
                _this.datatables.getDataString("serieNF", "serie"),
                _this.datatables.getDataString("tipoMov", "tipo"),
                _this.datatables.getDataDateTime("dtEmissao", "emissao", "DD/MM/YYYY", "15%"),
                _this.datatables.getDataString("fantasia", "cliente"),
                _this.datatables.getDataDouble("vlNota", "valorTotal", 2),
                _this.datatables.getDataString("tipoNota", "tipoNota"),
            ];
            _this.datatables.datatable("dtReemissao", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    ReemissaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ReemissaoIndexComponent.prototype.filtrar = function () {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(null);
        jQuery("#reemissao-filter-dialog").modal("show");
    };
    ReemissaoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    ReemissaoIndexComponent.prototype.print = function () {
        var _this = this;
        this.tipoNota = this.funcoes.isUndefinedOrNull(this.data.tipoNota) ? "N" : this.data.tipoNota;
        if (this.tipoNota === "A") {
            if (this.funcoesService.isPositive(this.data.regNota)) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                    var modRel = _this.service.configs.cWebModAvisoLcto;
                    if (!modRel)
                        _this.messageService.warning("titles.reemissao", "messages.modAvisoLctoNaoConfigurado");
                    else {
                        var reportTitulo = { titulo: '', subTitulo: '' };
                        _this.funcoesService.reportInvoc.invocaRelatorio(modRel, reportTitulo, {
                            filialId: _this.loginService.getLogin().filialId,
                            regNota: _this.data.regNota
                        });
                    }
                });
            }
            else {
                this.message.warning("titles.reemissao", "messages.selecioneUmRegistro");
                return;
            }
        }
        if (this.tipoNota === "I") {
            if (this.funcoesService.isPositive(this.data.regNota)) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                    var reportTitulo = {
                        titulo: 'COMMERCIAL INVOICE',
                        subTitulo: ''
                    };
                    _this.constantes.reportId = "COM0002";
                    _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, reportTitulo, {
                        filialId: _this.loginService.getLogin().filialId,
                        regNota: _this.data.regNota
                    });
                });
            }
            else {
                this.message.warning("titles.reemissao", "messages.selecioneUmRegistro");
                return;
            }
        }
        if (this.tipoNota === "N") {
            if (this.funcoesService.isPositive(this.data.regNota)) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                    var reportTitulo = {
                        titulo: 'Recibo Provisório de Serviços',
                        subTitulo: ''
                    };
                    _this.constantes.reportId = "COM0003";
                    _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, reportTitulo, {
                        filialId: _this.loginService.getLogin().filialId,
                        regNota: _this.data.regNota,
                        nota: _this.data.nota,
                        regSerie: _this.data.regSerie,
                        reemissao: "S",
                        colaboradorId: _this.loginService.getLogin().colaboradorId
                    });
                });
            }
            else {
                this.message.warning("titles.reemissao", "messages.selecioneUmRegistro");
                return;
            }
        }
    };
    ReemissaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _reemissao_service__WEBPACK_IMPORTED_MODULE_11__["ReemissaoService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    ReemissaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-reemissao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./reemissao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/comercial/reemissao/reemissao-index/reemissao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _reemissao_service__WEBPACK_IMPORTED_MODULE_11__["ReemissaoService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], ReemissaoIndexComponent);
    return ReemissaoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/comercial/reemissao/reemissao.constants.ts":
/*!******************************************************************!*\
  !*** ./src/app/pages/comercial/reemissao/reemissao.constants.ts ***!
  \******************************************************************/
/*! exports provided: ReemissaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReemissaoConstants", function() { return ReemissaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ReemissaoConstants = /** @class */ (function () {
    function ReemissaoConstants() {
        this.sisFormularioId = 130032;
        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.reemissao" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.reemissao";
        this.tabela = "NotaFiscal";
        this.reportId = "COM0001";
        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: 'Reemissao', action: '_print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaParam = [
            { sistema: 'WEB', parametros: ['CWebModAvisoLcto'] }
        ];
    }
    return ReemissaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/comercial/reemissao/reemissao.model.ts":
/*!**************************************************************!*\
  !*** ./src/app/pages/comercial/reemissao/reemissao.model.ts ***!
  \**************************************************************/
/*! exports provided: ReemissaoDto, ReemissaoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReemissaoDto", function() { return ReemissaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReemissaoFilter", function() { return ReemissaoFilter; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __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 ReemissaoDto = /** @class */ (function (_super) {
    __extends(ReemissaoDto, _super);
    function ReemissaoDto() {
        var _this = _super.call(this) || this;
        _this.trocaNum = "S";
        return _this;
    }
    return ReemissaoDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ReemissaoFilter = /** @class */ (function () {
    function ReemissaoFilter() {
        var currentDate = new Date();
        currentDate.setDate(1);
        this.dataI = currentDate;
        this.dataF = new Date();
        this.destinatarioIdCliente = 0;
        this.rps = 0;
        this.nfse = 0;
        this.registro = 0;
        this.pedido = 0;
        this.regNota = 0;
    }
    return ReemissaoFilter;
}());



/***/ }),

/***/ "./src/app/pages/comercial/reemissao/reemissao.module.ts":
/*!***************************************************************!*\
  !*** ./src/app/pages/comercial/reemissao/reemissao.module.ts ***!
  \***************************************************************/
/*! exports provided: ReemissaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReemissaoModule", function() { return ReemissaoModule; });
/* 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 app_pages_comercial_reemissao_reemissao_index_reemissao_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/comercial/reemissao/reemissao-index/reemissao-index.component */ "./src/app/pages/comercial/reemissao/reemissao-index/reemissao-index.component.ts");
/* harmony import */ var app_pages_comercial_reemissao_reemissao_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/comercial/reemissao/reemissao.routing.module */ "./src/app/pages/comercial/reemissao/reemissao.routing.module.ts");
/* harmony import */ var app_pages_comercial_reemissao_reemissao_filter_reemissao_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/comercial/reemissao/reemissao-filter/reemissao-filter.component */ "./src/app/pages/comercial/reemissao/reemissao-filter/reemissao-filter.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 ReemissaoModule = /** @class */ (function () {
    function ReemissaoModule() {
    }
    ReemissaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], app_pages_comercial_reemissao_reemissao_routing_module__WEBPACK_IMPORTED_MODULE_3__["ReemissaoRoutingModule"]],
            declarations: [app_pages_comercial_reemissao_reemissao_index_reemissao_index_component__WEBPACK_IMPORTED_MODULE_2__["ReemissaoIndexComponent"], app_pages_comercial_reemissao_reemissao_filter_reemissao_filter_component__WEBPACK_IMPORTED_MODULE_4__["ReemissaoFilterComponent"]]
        })
    ], ReemissaoModule);
    return ReemissaoModule;
}());



/***/ }),

/***/ "./src/app/pages/comercial/reemissao/reemissao.routing.module.ts":
/*!***********************************************************************!*\
  !*** ./src/app/pages/comercial/reemissao/reemissao.routing.module.ts ***!
  \***********************************************************************/
/*! exports provided: ReemissaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReemissaoRoutingModule", function() { return ReemissaoRoutingModule; });
/* 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 _reemissao_index_reemissao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reemissao-index/reemissao-index.component */ "./src/app/pages/comercial/reemissao/reemissao-index/reemissao-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: _reemissao_index_reemissao_index_component__WEBPACK_IMPORTED_MODULE_3__["ReemissaoIndexComponent"],
        data: { breadcrumb: "reemissao", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var ReemissaoRoutingModule = /** @class */ (function () {
    function ReemissaoRoutingModule() {
    }
    ReemissaoRoutingModule = __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"]]
        })
    ], ReemissaoRoutingModule);
    return ReemissaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/comercial/reemissao/reemissao.service.ts":
/*!****************************************************************!*\
  !*** ./src/app/pages/comercial/reemissao/reemissao.service.ts ***!
  \****************************************************************/
/*! exports provided: ReemissaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReemissaoService", function() { return ReemissaoService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 ReemissaoService = /** @class */ (function (_super) {
    __extends(ReemissaoService, _super);
    function ReemissaoService(http) {
        var _this = _super.call(this, http, "comercial/reemissao") || this;
        _this.http = http;
        _this.configs = {
            cWebModAvisoLcto: ""
        };
        return _this;
    }
    ReemissaoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/balanca/notaFiscal/reemissao/getByFiltroReemissao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReemissaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ReemissaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ReemissaoService);
    return ReemissaoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-comercial-reemissao-reemissao-module.js.map