(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-rotinas-de-apoio-trocar-nota-trocar-nota-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-filter/trocar-nota-filter.component.html":
/*!***********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-filter/trocar-nota-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 fade\" id=\"trocar-nota-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.trocarNota' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\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=\"destinatarioIdCliente\"\r\n                                                           name=\"destinatarioIdCliente\"\r\n                                                           label=\"cliente\"\r\n                                                           modalTitle=\"pesquisaDeCliente\"\r\n                                                           [(ngModel)]=\"filtro.destinatarioIdCliente\"\r\n                                                           tipoDestinatario=\"C\"\r\n                                                           showCgcCpf=\"false\"\r\n                                                           showInscricao=\"false\"\r\n                                                           [disabled]=\"blockFields\"\r\n                                                           [inSelected]=\"cliente\">\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-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"materialId\"\r\n                                                       name=\"materialId\"\r\n                                                       label=\"produto\"\r\n                                                       modalTitle=\"pesquisaDeProduto\"\r\n                                                       [(ngModel)]=\"filtro.materialId\"\r\n                                                       [disabled]=\"blockFields\"\r\n                                                       [inSelected]=\"material\">\r\n                                </app-pesquisa-material>\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-lote id=\"lote\"\r\n                                                   label=\"lote\"\r\n                                                   name=\"lote\"\r\n                                                   modalTitle=\"lote\"\r\n                                                   [(ngModel)]=\"filtro.loteId\"\r\n                                                   [destinatarioIdCliente]=\"filtro.destinatarioIdCliente\"\r\n                                                   [materialId]=\"filtro.materialId\"\r\n                                                   [loteId]=\"filtro.loteId\"\r\n                                                   (outLote)=\"onSelectedLote($event)\"\r\n                                                   destinatarioIdEmitente=\"0\"\r\n                                                   destinatarioIdNavio=\"0\"\r\n                                                   osgId=\"0\"\r\n                                                   stoContratoId=\"\"\r\n                                                   stoContratoItemId=\"0\">\r\n                                </app-pesquisa-lote>\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/rotinas-de-apoio/trocar-nota/trocar-nota-index/trocar-nota-index.component.html":
/*!*********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-index/trocar-nota-index.component.html ***!
  \*********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [sisFormularioId]=\"constantes.sisFormularioId\"\r\n    [itemData]=\"service.item?.id\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtConsulta\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n        <thead>\r\n            <tr>\r\n                <th colspan=\"3\" style=\"text-align: center;\">{{ 'labels.informacoesParaLivroFiscal' | translate }}</th>\r\n                <th colspan=\"8\" style=\"text-align: center;\">{{ 'labels.informacoesParaRetorno' | translate }}</th>\r\n                <th colspan=\"5\" style=\"text-align: center;\">{{ 'labels.saldos' | translate }}</th>\r\n            </tr>\r\n            <tr>\r\n                <th>{{ 'labels.nota' | translate}}</th>\r\n                <th>{{ 'labels.serie' | translate}}</th>\r\n                <th>{{ 'labels.emissao' | translate}}</th>\r\n                <th>{{ 'labels.nota' | translate}}</th>\r\n                <th>{{ 'labels.serie' | translate}}</th>\r\n                <th>{{ 'labels.emissao' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.valor' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.icms' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.kilos' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.litros' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.quantidade' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.valor' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.icms' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.kilos' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.litros' | translate}}</th>\r\n                <th style=\"text-align: right;\">{{ 'labels.quantidade' | translate}}</th>\r\n            </tr>\r\n        </thead>\r\n    </table>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-trocar-nota-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-trocar-nota-filter>\r\n<app-trocar-nota-nova (execute)=\"onRefresh()\"></app-trocar-nota-nova>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-nova/trocar-nota-nova.component.html":
/*!*******************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-nova/trocar-nota-nova.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 fade\" id=\"trocar-nota-nova-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.dadosNovaNota' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\r\n                    <app-validacoes></app-validacoes>\r\n                    <app-card-container tituloCard=\"notaOrigem\" *ngIf=\"!!service.item\">\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"chaveOrigem\">{{'labels.chave' |\r\n                                        translate}}</label>\r\n                                    <input id=\"chaveOrigem\" name=\"chaveOrigem\" disabled\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        mask=\"0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000\"\r\n                                        [(ngModel)]=\"service.item.chaveNFE\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4 col-md-12 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"notaOrigem\">{{'labels.numeronf' |\r\n                                        translate}}</label>\r\n                                    <input id=\"notaOrigem\" name=\"notaOrigem\" value=\"{{service.item?.nota}}\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" mask=\"999999999\" maxlength=\"9\"\r\n                                        data-title=\"{{'labels.numeronf' | translate}}\" disabled=\"true\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4 col-md-12 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"serieOrigem\">{{'labels.serie' |\r\n                                        translate}}</label>\r\n                                    <input id=\"serieOrigem\" name=\"serieOrigem\" value=\"{{service.item?.serie}}\"\r\n                                        maxlength=\"70\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                        data-title=\"{{'labels.serie' | translate}}\" disabled=\"true\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4 col-md-12 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"emissaoOrigem\">{{\"labels.emissao\" | translate\r\n                                        }}</label>\r\n                                    <input id=\"emissaoOrigem\" name=\"emissaoOrigem\"\r\n                                        value=\"{{service.item?.dtEmissao | date:'dd/MM/yyyy'}}\" autofocus\r\n                                        class=\"form-control form-control-sm\" disabled=\"true\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </app-card-container>\r\n                    <app-card-container tituloCard=\"notaDestino\" *ngIf=\"!!service.data\">\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-chave-nfe id=\"chaveDaNFE\" name=\"chaveDaNFE\" [required]=\"true\"\r\n                                        [docto]=\"service.data?.novaNota\" [serie]=\"service.data?.novaSerie\"\r\n                                        [emitente]=\"service.data?.emitente\" [(ngModel)]=\"service.data.novaChave\"\r\n                                        (validaChaveNfe)=\"validaChaveNfe($event)\"\r\n                                        (importaDanfe)=\"importaDanfe($event)\"></app-chave-nfe>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4 col-md-12 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"numeronf\" class=\"required\">{{'labels.numeronf' |\r\n                                        translate}}</label>\r\n                                    <input id=\"numeronf\" name=\"numeronf\" [(ngModel)]=\"service.data.novaNota\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" mask=\"999999999\" maxlength=\"9\"\r\n                                        data-title=\"{{'labels.numeronf' | translate}}\" required=\"true\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4 col-md-12 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"serieDocFormLote\" class=\"required\">{{'labels.serie' |\r\n                                        translate}}</label>\r\n                                    <input id=\"serieDocFormLote\" name=\"serieDocFormLote\"\r\n                                        [(ngModel)]=\"service.data.novaSerie\" maxlength=\"70\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                        data-title=\"{{'labels.serie' | translate}}\" required=\"true\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4 col-md-12 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"emissao\" class=\"required\">{{\"labels.emissao\" | translate\r\n                                        }}</label>\r\n                                    <app-data id=\"emissao\" name=\"emissao\" [(ngModel)]=\"service.data.novaDtEmissao\"\r\n                                        autofocus class=\"service.dataHora\" [formatDateTime]=\"mascara.getFormatData\"\r\n                                        required=\"true\">\r\n                                    </app-data>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </app-card-container>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.gravar' | 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>");

/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-filter/trocar-nota-filter.component.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-filter/trocar-nota-filter.component.ts ***!
  \*******************************************************************************************************/
/*! exports provided: TrocarNotaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaFilterComponent", function() { return TrocarNotaFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _trocar_nota_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../trocar-nota.model */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.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 TrocarNotaFilterComponent = /** @class */ (function () {
    function TrocarNotaFilterComponent(loginService, message) {
        this.loginService = loginService;
        this.message = message;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAtual = new Date();
        this.blockFields = false;
        this.filialId = loginService.getLogin().filialId;
    }
    TrocarNotaFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
    };
    TrocarNotaFilterComponent.prototype.onSubmit = function (form) {
        if (!this.filtro.loteId || this.filtro.loteId === "") {
            this.message.warning('titles.trocarNota', 'messages.loteNaoInformado');
            return;
        }
        if (!form.invalid) {
            jQuery("#trocar-nota-filter-dialog").modal("hide");
            this.filtrar.emit(this.filtro);
        }
    };
    TrocarNotaFilterComponent.prototype.onSelectedLote = function (event) {
        this.blockFields = false;
        if (!event) {
            return;
        }
        else if (!event.lote) {
            return;
        }
        else {
            this.cliente = event.lote.cliente;
            this.filtro.destinatarioIdCliente = event.lote.destinatarioIdCliente;
            this.material = event.lote.material;
            this.filtro.materialId = event.lote.materialId;
            this.blockFields = true;
        }
    };
    TrocarNotaFilterComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _trocar_nota_model__WEBPACK_IMPORTED_MODULE_3__["TrocarNotaFiltro"])
    ], TrocarNotaFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TrocarNotaFilterComponent.prototype, "filtrar", void 0);
    TrocarNotaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-trocar-nota-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./trocar-nota-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-filter/trocar-nota-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], TrocarNotaFilterComponent);
    return TrocarNotaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-index/trocar-nota-index.component.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-index/trocar-nota-index.component.ts ***!
  \*****************************************************************************************************/
/*! exports provided: TrocarNotaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaIndexComponent", function() { return TrocarNotaIndexComponent; });
/* 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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* 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_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.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 _trocar_nota_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../trocar-nota.constants */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.constants.ts");
/* harmony import */ var _trocar_nota_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../trocar-nota.model */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.model.ts");
/* harmony import */ var _trocar_nota_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../trocar-nota.service */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.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 TrocarNotaIndexComponent = /** @class */ (function (_super) {
    __extends(TrocarNotaIndexComponent, _super);
    function TrocarNotaIndexComponent(router, datatablesService, messageService, permissoesUtils, loginService, service, funcoesService) {
        var _this = _super.call(this, new _trocar_nota_constants__WEBPACK_IMPORTED_MODULE_8__["TrocarNotaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.data = new _trocar_nota_model__WEBPACK_IMPORTED_MODULE_9__["TrocarNota"]();
        _this.constantes = new _trocar_nota_constants__WEBPACK_IMPORTED_MODULE_8__["TrocarNotaConstants"]();
        _this.filtro = new _trocar_nota_model__WEBPACK_IMPORTED_MODULE_9__["TrocarNotaFiltro"]();
        _this.novaNota = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                _this.service.data = new _trocar_nota_model__WEBPACK_IMPORTED_MODULE_9__["TrocarNotaVo"]();
                if (!!_this.service.data) {
                    jQuery("#trocar-nota-nova-dialog").modal("show");
                }
            });
        };
        _this.filtrar = function () {
            jQuery("#trocar-nota-filter-dialog").modal("show");
        };
        _this.executaFiltro = function (event) {
            _this.data = event;
            _this.onRefresh();
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        return _this;
    }
    TrocarNotaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#trocar-nota-filter-dialog").modal("show");
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'novaNota', func: function () { return _this.novaNota; } },
        ]);
    };
    TrocarNotaIndexComponent.prototype.onRefresh = function () {
        var _this = this;
        this.service.item = new _trocar_nota_model__WEBPACK_IMPORTED_MODULE_9__["TrocarNota"]();
        this.service.getDados(this.filtro).subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataString("nota", "nota", "5%"),
                _this.datatablesService.getDataString("serie", "serie"),
                _this.datatablesService.getDataDateTime("dtEmissao", "emissao", "DD/MM/YYYY"),
                _this.datatablesService.getDataString("notaCli", "nota"),
                _this.datatablesService.getDataString("serieCli", "serie"),
                _this.datatablesService.getDataDateTime("emissaoCli", "emissao", "DD/MM/YYYY"),
                _this.datatablesService.getDataDouble("vlNota", "valor", 2),
                _this.datatablesService.getDataDouble("vlIcms", "icms", 2),
                _this.datatablesService.getDataDouble("kilos", "kilos"),
                _this.datatablesService.getDataDouble("litros", "litros"),
                _this.datatablesService.getDataDouble("quantid", "quantidade"),
                _this.datatablesService.getDataDouble("vlNotaSaldo", "valor", 2),
                _this.datatablesService.getDataDouble("vlIcmsSaldo", "icms", 2),
                _this.datatablesService.getDataDouble("kilosSaldo", "kilos"),
                _this.datatablesService.getDataDouble("litrosSaldo", "litros"),
                _this.datatablesService.getDataDouble("quantidSaldo", "quantidade")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtConsulta", columns: columns, data: data }, function (aData) {
                _this.service.item = aData;
            });
        });
    };
    TrocarNotaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _trocar_nota_service__WEBPACK_IMPORTED_MODULE_10__["TrocarNotaService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    TrocarNotaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-trocar-nota-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./trocar-nota-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-index/trocar-nota-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _trocar_nota_service__WEBPACK_IMPORTED_MODULE_10__["TrocarNotaService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], TrocarNotaIndexComponent);
    return TrocarNotaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-nova/trocar-nota-nova.component.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-nova/trocar-nota-nova.component.ts ***!
  \***************************************************************************************************/
/*! exports provided: TrocarNotaNovaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaNovaComponent", function() { return TrocarNotaNovaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _trocar_nota_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../trocar-nota.model */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.model.ts");
/* harmony import */ var _trocar_nota_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../trocar-nota.service */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.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 TrocarNotaNovaComponent = /** @class */ (function () {
    function TrocarNotaNovaComponent(service, loginService, message) {
        this.service = service;
        this.loginService = loginService;
        this.message = message;
        this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_5__["Mascaras"]();
    }
    TrocarNotaNovaComponent.prototype.ngOnInit = function () {
        if (!this.service.data) {
            this.service.data = new _trocar_nota_model__WEBPACK_IMPORTED_MODULE_3__["TrocarNotaVo"]();
        }
    };
    TrocarNotaNovaComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (!form.invalid) {
            this.service.gravar().subscribe(function (resp) {
                if (!resp.isValid) {
                    resp.erros.forEach(function (e) { return _this.message.warning("titles.trocarNota", e.message); });
                    return;
                }
                jQuery("#trocar-nota-nova-dialog").modal("hide");
                _this.execute.emit(true);
                _this.message.saveSuccess("titles.trocarNota");
            });
        }
    };
    TrocarNotaNovaComponent.prototype.validaChaveNfe = function (e) {
        if (!!e && e.isValid) {
            this.service.data.novaNota = e.data.docto;
            this.service.data.novaSerie = e.data.serie;
        }
    };
    TrocarNotaNovaComponent.prototype.importaDanfe = function (e) {
        if (!!e) {
            if (!e.validationResult.isValid) {
                var mensagens = this.message.validationResult(e.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(mensagens);
                return;
            }
            this.service.data.novaSerie = e.serie;
            this.service.data.novaNota = e.numero;
            this.service.data.novaDtEmissao = e.dtEmissao;
        }
    };
    TrocarNotaNovaComponent.ctorParameters = function () { return [
        { type: _trocar_nota_service__WEBPACK_IMPORTED_MODULE_4__["TrocarNotaService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TrocarNotaNovaComponent.prototype, "execute", void 0);
    TrocarNotaNovaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-trocar-nota-nova",
            template: __importDefault(__webpack_require__(/*! raw-loader!./trocar-nota-nova.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-nova/trocar-nota-nova.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_trocar_nota_service__WEBPACK_IMPORTED_MODULE_4__["TrocarNotaService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], TrocarNotaNovaComponent);
    return TrocarNotaNovaComponent;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.constants.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.constants.ts ***!
  \*****************************************************************************/
/*! exports provided: TrocarNotaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaConstants", function() { return TrocarNotaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TrocarNotaConstants = /** @class */ (function () {
    function TrocarNotaConstants() {
        this.sisFormularioId = 375413;
        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.novaNota" },
        ];
        this.sisSistemaId = "CTR";
        this.nomeForm = "titles.trocarNota";
        this.reportId = "";
        this.listaIndex = [
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'NovaNota', action: 'novaNota', icon: "fa fa-file", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: true },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return TrocarNotaConstants;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.model.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.model.ts ***!
  \*************************************************************************/
/*! exports provided: TrocarNota, TrocarNotaFiltro, TrocarNotaVo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNota", function() { return TrocarNota; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaFiltro", function() { return TrocarNotaFiltro; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaVo", function() { return TrocarNotaVo; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TrocarNota = /** @class */ (function () {
    function TrocarNota() {
    }
    return TrocarNota;
}());

var TrocarNotaFiltro = /** @class */ (function () {
    function TrocarNotaFiltro() {
        this.filialId = 0;
        this.colaboradorId = 0;
        this.loteId = "";
    }
    return TrocarNotaFiltro;
}());

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



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.module.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.module.ts ***!
  \**************************************************************************/
/*! exports provided: TrocarNotaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaModule", function() { return TrocarNotaModule; });
/* 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 _trocar_nota_filter_trocar_nota_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./trocar-nota-filter/trocar-nota-filter.component */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-filter/trocar-nota-filter.component.ts");
/* harmony import */ var _trocar_nota_index_trocar_nota_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./trocar-nota-index/trocar-nota-index.component */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-index/trocar-nota-index.component.ts");
/* harmony import */ var _trocar_nota_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./trocar-nota.routing.module */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.routing.module.ts");
/* harmony import */ var _trocar_nota_nova_trocar_nota_nova_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./trocar-nota-nova/trocar-nota-nova.component */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-nova/trocar-nota-nova.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 TrocarNotaModule = /** @class */ (function () {
    function TrocarNotaModule() {
    }
    TrocarNotaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _trocar_nota_routing_module__WEBPACK_IMPORTED_MODULE_4__["TrocarNotaRoutingModule"]],
            declarations: [_trocar_nota_index_trocar_nota_index_component__WEBPACK_IMPORTED_MODULE_3__["TrocarNotaIndexComponent"], _trocar_nota_filter_trocar_nota_filter_component__WEBPACK_IMPORTED_MODULE_2__["TrocarNotaFilterComponent"], _trocar_nota_nova_trocar_nota_nova_component__WEBPACK_IMPORTED_MODULE_5__["TrocarNotaNovaComponent"]],
            exports: [_trocar_nota_index_trocar_nota_index_component__WEBPACK_IMPORTED_MODULE_3__["TrocarNotaIndexComponent"], _trocar_nota_filter_trocar_nota_filter_component__WEBPACK_IMPORTED_MODULE_2__["TrocarNotaFilterComponent"], _trocar_nota_nova_trocar_nota_nova_component__WEBPACK_IMPORTED_MODULE_5__["TrocarNotaNovaComponent"]]
        })
    ], TrocarNotaModule);
    return TrocarNotaModule;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.routing.module.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.routing.module.ts ***!
  \**********************************************************************************/
/*! exports provided: TrocarNotaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaRoutingModule", function() { return TrocarNotaRoutingModule; });
/* 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 _trocar_nota_index_trocar_nota_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./trocar-nota-index/trocar-nota-index.component */ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota-index/trocar-nota-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: _trocar_nota_index_trocar_nota_index_component__WEBPACK_IMPORTED_MODULE_2__["TrocarNotaIndexComponent"],
        data: { breadcrumb: "trocarNota" }
    }
];
var TrocarNotaRoutingModule = /** @class */ (function () {
    function TrocarNotaRoutingModule() {
    }
    TrocarNotaRoutingModule = __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"]]
        })
    ], TrocarNotaRoutingModule);
    return TrocarNotaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.service.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/rotinas-de-apoio/trocar-nota/trocar-nota.service.ts ***!
  \***************************************************************************/
/*! exports provided: TrocarNotaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrocarNotaService", function() { return TrocarNotaService; });
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* 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 _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var TrocarNotaService = /** @class */ (function (_super) {
    __extends(TrocarNotaService, _super);
    function TrocarNotaService(http) {
        var _this = _super.call(this, http, "rotinasDeApoio/trocarNota") || this;
        _this.http = http;
        return _this;
    }
    TrocarNotaService.prototype.getDados = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/rotinasDeApoio/trocarNota/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TrocarNotaService.prototype.gravar = function () {
        this.data.lote = this.item.lote;
        this.data.pedido = this.item.pedido;
        this.data.sequencia = this.item.sequencia;
        this.data.item = this.item.item;
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/rotinasDeApoio/trocarNota/gravar", this.data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TrocarNotaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    TrocarNotaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], TrocarNotaService);
    return TrocarNotaService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-rotinas-de-apoio-trocar-nota-trocar-nota-module.js.map