(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-cadastro-lancamento-fma-lancamento-fma-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-fma/lancamento-fma-filter/lancamento-fma-filter.component.html":
/*!************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-fma/lancamento-fma-filter/lancamento-fma-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=\"lancamento-fma-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.lancamentoFma' | 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)]=\"service.filtro.destinatarioIdCliente\"\r\n                                                           tipoDestinatario=\"C\"\r\n                                                           showCgcCpf=\"false\"\r\n                                                           showInscricao=\"false\"\r\n                                                           [disabled]=\"blockFields\"\r\n                                                           [inSelected]=\"service.filtro.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)]=\"service.filtro.materialId\"\r\n                                                       [disabled]=\"blockFields\"\r\n                                                       [inSelected]=\"service.filtro.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)]=\"service.filtro.selectedLoteId\"\r\n                                                   [destinatarioIdCliente]=\"service.filtro.destinatarioIdCliente\"\r\n                                                   [materialId]=\"service.filtro.materialId\"\r\n                                                   [loteId]=\"service.filtro.selectedLoteId\"\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                                                   clienteOuProdutoObrigatorio=\"false\"\r\n                                                   required=\"true\">\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 }}</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/cadastro/lancamento-fma/lancamento-fma-form/lancamento-fma-form.component.html":
/*!********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-fma/lancamento-fma-form/lancamento-fma-form.component.html ***!
  \********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.lancamentoFMAId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <app-form-legenda></app-form-legenda>\r\n            <div class=\"card-body widget-body\">\r\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" autocomplete=\"false\">\r\n                    <app-validacoes></app-validacoes>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-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)]=\"data.destinatarioIdCliente\"\r\n                                                           [inSelected]=\"data.cliente\"\r\n                                                           tipoDestinatario=\"C\"\r\n                                                           showCgcCpf=\"false\"\r\n                                                           showInscricao=\"false\"\r\n                                                           disabled=\"true\">\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-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)]=\"data.materialId\"\r\n                                                       [inSelected]=\"data.material\"\r\n                                                       disabled=\"true\">\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-2\">\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)]=\"data.loteId\"\r\n                                                   [loteId]=\"data.loteId\"\r\n                                                   disabled=\"true\"\r\n                                                   destinatarioIdCliente=\"0\"\r\n                                                   materialId=\"\"\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 class=\"row\">\r\n                        <div class=\"col-lg-2\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"numFma\" class=\"required\">{{'labels.numFma' | translate}}</label>\r\n                                <input id=\"numFma\"\r\n                                       name=\"numFma\"\r\n                                       [(ngModel)]=\"data.numFMA\"\r\n                                       maxlength=\"8\"\r\n                                       class=\"form-control form-control-sm\"\r\n                                       type=\"text\"\r\n                                       [disabled]=\"!funcoesService.isCreate(actionForm)\"\r\n                                       required=\"true\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-2\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"dataFma\" class=\"required\">{{'labels.dataFma' |\r\n                                    translate}}</label>\r\n                                <app-data id=\"dataFma\"\r\n                                          name=\"dataFma\"\r\n                                          [(ngModel)]=\"data.dataFma\"\r\n                                          [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                          required=\"true\"></app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\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=\"observ\">{{'labels.observacao' | translate}}</label>\r\n                                <input id=\"observ\"\r\n                                       name=\"observ\"\r\n                                       [(ngModel)]=\"data.observ\"\r\n                                       maxlength=\"70\"\r\n                                       class=\"form-control form-control-sm\"\r\n                                       type=\"text\"\r\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                       data-title=\"{{'labels.observacao' | translate}}\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4\">\r\n                          <span *ngIf=\"data.sisCampoAdds\">\r\n                            <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\r\n                              <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\" [(ngModel)]=\"d.valorCampo\"\r\n                                                     [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                     [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\r\n                            </div>\r\n                          </span>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-4\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    {{ 'buttons.salvar' | translate }}\r\n                                </button>\r\n                                <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' | translate }}</button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-fma/lancamento-fma-index/lancamento-fma-index.component.html":
/*!**********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-fma/lancamento-fma-index/lancamento-fma-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.lancamentoFMAId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtLancamentoFma\" 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-lancamento-fma-filter (filtrar)=\"executaFiltro($event)\"></app-lancamento-fma-filter>\r\n");

/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma-filter/lancamento-fma-filter.component.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-fma/lancamento-fma-filter/lancamento-fma-filter.component.ts ***!
  \********************************************************************************************************/
/*! exports provided: LancamentoFmaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoFmaFilterComponent", function() { return LancamentoFmaFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lancamento-fma.model */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.model.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __webpack_require__(/*! ../../../../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 _lancamento_fma_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../lancamento-fma.service */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.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 LancamentoFmaFilterComponent = /** @class */ (function () {
    function LancamentoFmaFilterComponent(loginService, message, funcoesService, service) {
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAtual = new Date();
        this.blockFields = false;
        this.filialId = loginService.getLogin().filialId;
    }
    LancamentoFmaFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_1__["LancamentoFmaFilter"]();
        }
        if (this.service.filtro.lote) {
            this.blockFields = true;
        }
    };
    LancamentoFmaFilterComponent.prototype.onSubmit = function (form) {
        if (this.funcoesService.isUndefinedOrNull(this.service.filtro.selectedLoteId)
            && this.funcoesService.isUndefinedOrNull(this.service.filtro.destinatarioIdCliente)
            && this.funcoesService.isUndefinedOrNull(this.service.filtro.materialId)) {
            this.message.warning('titles.lancamentoFma', 'messages.informeOLote');
            return;
        }
        if (this.funcoesService.isUndefinedOrNull(this.service.filtro.selectedLoteId)
            && (this.funcoesService.isUndefinedOrNull(this.service.filtro.destinatarioIdCliente)
                || this.funcoesService.isUndefinedOrNull(this.service.filtro.materialId))) {
            var msg = this.funcoesService.isUndefinedOrNull(this.service.filtro.destinatarioIdCliente) ? "messages.informeCliente" : "messages.informeProduto";
            this.message.warning('titles.lancamentoFma', msg);
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.service.filtro.selectedLoteId) && !this.service.filtro.lote) {
            this.message.warning('titles.lancamentoFma', 'messages.loteInvalido');
            return;
        }
        if (!form.invalid) {
            jQuery("#lancamento-fma-filter-dialog").modal("hide");
            this.service.filtro.loteId = this.service.filtro.selectedLoteId;
            this.filtrar.emit(this.service.filtro);
        }
    };
    LancamentoFmaFilterComponent.prototype.onSelectedLote = function (event) {
        this.blockFields = false;
        this.service.filtro.lote = null;
        if (!event) {
            return;
        }
        else if (!event.lote) {
            return;
        }
        else {
            this.service.filtro.lote = event.lote;
            this.service.filtro.cliente = event.lote.cliente;
            this.service.filtro.destinatarioIdCliente = event.lote.destinatarioIdCliente;
            this.service.filtro.material = event.lote.material;
            this.service.filtro.materialId = event.lote.materialId;
            this.blockFields = true;
        }
    };
    LancamentoFmaFilterComponent.ctorParameters = function () { return [
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _lancamento_fma_service__WEBPACK_IMPORTED_MODULE_5__["LancamentoFmaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], LancamentoFmaFilterComponent.prototype, "filtrar", void 0);
    LancamentoFmaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-lancamento-fma-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./lancamento-fma-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-fma/lancamento-fma-filter/lancamento-fma-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _lancamento_fma_service__WEBPACK_IMPORTED_MODULE_5__["LancamentoFmaService"]])
    ], LancamentoFmaFilterComponent);
    return LancamentoFmaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma-form/lancamento-fma-form.component.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-fma/lancamento-fma-form/lancamento-fma-form.component.ts ***!
  \****************************************************************************************************/
/*! exports provided: LancamentoFmaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoFmaFormComponent", function() { return LancamentoFmaFormComponent; });
/* harmony import */ var app_pages_cadastro_lancamento_fma_lancamento_fma_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/lancamento-fma/lancamento-fma.service */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _lancamento_fma_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../lancamento-fma.constants */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.constants.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../lancamento-fma.model */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.model.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _lote_lote_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var LancamentoFmaFormComponent = /** @class */ (function (_super) {
    __extends(LancamentoFmaFormComponent, _super);
    function LancamentoFmaFormComponent(router, messageService, activatedRoute, service, loteService, funcoesService, loginService, permissoesUtils) {
        var _this = _super.call(this, new _lancamento_fma_constants__WEBPACK_IMPORTED_MODULE_4__["LancamentoFmaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.loteService = loteService;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_8__["LancamentoFma"]();
        _this.mensagens = [];
        _this.constantes = new _lancamento_fma_constants__WEBPACK_IMPORTED_MODULE_4__["LancamentoFmaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.dataAtual = new Date();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    LancamentoFmaFormComponent.prototype.edit = function () {
        this.router.navigate([this.target + "/cadastro/lancamentoFma/edit/" + this.data.lancamentoFMAId]);
    };
    LancamentoFmaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            var loteId = _this.activatedRoute.snapshot.paramMap.get("loteId");
            var sequencial = _this.activatedRoute.snapshot.paramMap.get("sequencial");
            var ano = _this.activatedRoute.snapshot.paramMap.get("ano");
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    if (resp) {
                        _this.data = resp;
                        _this.trataClienteProduto(resp);
                    }
                    else {
                        _this.messageService.warning("titles.lancamentoFma", "messages.operacaoNaoPermitida");
                        _this.back();
                    }
                });
            }
            else {
                _this.data = new _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_8__["LancamentoFma"]();
                _this.data.loteId = atob(loteId);
                if (sequencial && ano) {
                    _this.data.loteId = sequencial + '/' + ano;
                }
                _this.trataClienteProduto(_this.data);
                _this.getCamposAdicionais();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    LancamentoFmaFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.data.logRotina = "Lançamento FMA";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.lancamentoFma");
                if (create) {
                    if (_this.funcoesService.isNotUndefinedOrNull(_this.data.loteId)) {
                        _this.data = new _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_8__["LancamentoFma"]();
                        _this.router.navigate([_this.target + "/cadastro/lancamentoFma/create/" + btoa(_this.data.loteId)]);
                    }
                }
                else {
                    _this.back();
                }
            }
        });
    };
    LancamentoFmaFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/lancamentoFma"]);
    };
    LancamentoFmaFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    LancamentoFmaFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    LancamentoFmaFormComponent.prototype.trataClienteProduto = function (lote) {
        var _this = this;
        this.loteService.getByLoteId(lote.loteId).subscribe(function (resp) {
            _this.data.destinatarioIdCliente = resp.destinatarioIdCliente;
            _this.data.cliente = resp.cliente;
            _this.data.materialId = resp.materialId;
            _this.data.material = resp.material;
        });
    };
    LancamentoFmaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: app_pages_cadastro_lancamento_fma_lancamento_fma_service__WEBPACK_IMPORTED_MODULE_0__["LancamentoFmaService"] },
        { type: _lote_lote_service__WEBPACK_IMPORTED_MODULE_11__["LoteService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] }
    ]; };
    LancamentoFmaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-lancamento-fma-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./lancamento-fma-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-fma/lancamento-fma-form/lancamento-fma-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            app_pages_cadastro_lancamento_fma_lancamento_fma_service__WEBPACK_IMPORTED_MODULE_0__["LancamentoFmaService"],
            _lote_lote_service__WEBPACK_IMPORTED_MODULE_11__["LoteService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"]])
    ], LancamentoFmaFormComponent);
    return LancamentoFmaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma-index/lancamento-fma-index.component.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-fma/lancamento-fma-index/lancamento-fma-index.component.ts ***!
  \******************************************************************************************************/
/*! exports provided: LancamentoFmaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoFmaIndexComponent", function() { return LancamentoFmaIndexComponent; });
/* 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 _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../lancamento-fma.model */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.model.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __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_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _lancamento_fma_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../lancamento-fma.constants */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _lancamento_fma_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../lancamento-fma.service */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var LancamentoFmaIndexComponent = /** @class */ (function (_super) {
    __extends(LancamentoFmaIndexComponent, _super);
    function LancamentoFmaIndexComponent(router, service, datatables, message, funcoes, loginService, permissoesUtils, route) {
        var _this = _super.call(this, new _lancamento_fma_constants__WEBPACK_IMPORTED_MODULE_6__["LancamentoFmaConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.route = route;
        _this.data = new _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_2__["LancamentoFma"]();
        _this.constantes = new _lancamento_fma_constants__WEBPACK_IMPORTED_MODULE_6__["LancamentoFmaConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.mensagens = [];
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    LancamentoFmaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.route.queryParamMap.subscribe(function (params) {
                var lote = params.get('p');
                if (!!lote) {
                    _this.service.filtro = new _lancamento_fma_model__WEBPACK_IMPORTED_MODULE_2__["LancamentoFmaFilter"]();
                    _this.service.filtro.loteId = atob(lote);
                    _this.refresh();
                }
                else {
                    if (!_this.loginService.isTokenExpired()) {
                        _this.filialId = _this.loginService.getLogin().filialId;
                        jQuery("#lancamento-fma-filter-dialog").modal("show");
                    }
                }
            });
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    LancamentoFmaIndexComponent.prototype.create = function () {
        if (this.funcoesService.isUndefinedOrNull(this.service.filtro.loteId)) {
            this.message.warning('titles.lancamentoFma', 'messages.loteNaoInformado');
            this.filtrar();
            return;
        }
        this.router.navigate([this.target + "/cadastro/lancamentoFma/create/" + btoa(this.service.filtro.loteId)]);
    };
    LancamentoFmaIndexComponent.prototype.refresh = function () {
        var _this = this;
        if (this.validarFiltro()) {
            this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
                var columns = [
                    _this.datatables.getDataString("loteId", "lote", "10%"),
                    _this.datatables.getDataString("numFMA", "numFma", "10%"),
                    _this.datatables.getDataDateTime("dataFma", "data", "DD/MM/YYYY", "10%"),
                    _this.datatables.getDataString("observ", "observacao"),
                ];
                _this.datatables.toDataTable({ tableId: "dtLancamentoFma", columns: columns, data: data }, function (aData) {
                    _this.data = aData;
                });
            });
        }
    };
    LancamentoFmaIndexComponent.prototype.edit = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.numFMA)) {
            this.router.navigate([this.target + "/cadastro/lancamentoFma/edit/" + this.data.lancamentoFMAId]);
        }
    };
    LancamentoFmaIndexComponent.prototype.detail = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.numFMA)) {
            this.router.navigate([this.target + "/cadastro/lancamentoFma/detail/" + this.data.lancamentoFMAId]);
        }
    };
    LancamentoFmaIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    LancamentoFmaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    LancamentoFmaIndexComponent.prototype.remove = function () {
        var _this = this;
        if (this.funcoes.isNotUndefinedOrNull(this.data.lancamentoFMAId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.message.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.message.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.message.warning("titles.lancamentoFma", _this.mensagens[0]);
                        }
                        else {
                            _this.datatables.remove("dtLancamentoFma");
                        }
                    });
                });
            });
        }
    };
    LancamentoFmaIndexComponent.prototype.filtrar = function () {
        jQuery("#lancamento-fma-filter-dialog").modal("show");
    };
    LancamentoFmaIndexComponent.prototype.executaFiltro = function (event) {
        this.service.filtro = event;
        this.refresh();
    };
    LancamentoFmaIndexComponent.prototype.validarFiltro = function () {
        if (this.funcoesService.isUndefinedOrNull(this.service.filtro.loteId)
            && this.funcoesService.isUndefinedOrNull(this.service.filtro.destinatarioIdCliente)
            && this.funcoesService.isUndefinedOrNull(this.service.filtro.materialId)) {
            this.message.warning('titles.lancamentoFma', 'messages.informeOLote');
            return false;
        }
        if (this.funcoesService.isUndefinedOrNull(this.service.filtro.loteId)
            && (this.funcoesService.isUndefinedOrNull(this.service.filtro.destinatarioIdCliente)
                || this.funcoesService.isUndefinedOrNull(this.service.filtro.materialId))) {
            var msg = this.funcoesService.isUndefinedOrNull(this.service.filtro.destinatarioIdCliente) ? "messages.informeCliente" : "messages.informeProduto";
            this.message.warning('titles.lancamentoFma', msg);
            return false;
        }
        return true;
    };
    LancamentoFmaIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            if (_this.validarFiltro()) {
                _this.constantes.paramRelatorio = {
                    loteId: _this.funcoesService.getValue(_this.service.filtro.loteId, "S"),
                    filialId: _this.funcoesService.getValue(_this.filialId, "I"),
                    destinatarioIdCliente: _this.funcoesService.getValue(_this.service.filtro.destinatarioIdCliente, "I"),
                    materialId: _this.funcoesService.getValue(_this.service.filtro.materialId, "S")
                };
                _super.prototype.print.call(_this);
            }
        });
    };
    LancamentoFmaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _lancamento_fma_service__WEBPACK_IMPORTED_MODULE_8__["LancamentoFmaService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] }
    ]; };
    LancamentoFmaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-lancamento-fma-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./lancamento-fma-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/lancamento-fma/lancamento-fma-index/lancamento-fma-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _lancamento_fma_service__WEBPACK_IMPORTED_MODULE_8__["LancamentoFmaService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"]])
    ], LancamentoFmaIndexComponent);
    return LancamentoFmaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.constants.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-fma/lancamento-fma.constants.ts ***!
  \***************************************************************************/
/*! exports provided: LancamentoFmaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoFmaConstants", function() { return LancamentoFmaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var LancamentoFmaConstants = /** @class */ (function () {
    function LancamentoFmaConstants() {
        this.sisFormularioId = 90111;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.lancamentoFma";
        this.reportId = "CAD0168";
        this.paramRelatorio = {};
        this.tabela = "LancamentoFma";
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return LancamentoFmaConstants;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.model.ts":
/*!***********************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-fma/lancamento-fma.model.ts ***!
  \***********************************************************************/
/*! exports provided: LancamentoFma, LancamentoFmaFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

var LancamentoFmaFilter = /** @class */ (function () {
    function LancamentoFmaFilter() {
        this.loteId = "";
    }
    return LancamentoFmaFilter;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.module.ts":
/*!************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-fma/lancamento-fma.module.ts ***!
  \************************************************************************/
/*! exports provided: LancamentoFmaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoFmaModule", function() { return LancamentoFmaModule; });
/* 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_cadastro_lancamento_fma_lancamento_fma_form_lancamento_fma_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/lancamento-fma/lancamento-fma-form/lancamento-fma-form.component */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma-form/lancamento-fma-form.component.ts");
/* harmony import */ var app_pages_cadastro_lancamento_fma_lancamento_fma_index_lancamento_fma_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/lancamento-fma/lancamento-fma-index/lancamento-fma-index.component */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma-index/lancamento-fma-index.component.ts");
/* harmony import */ var app_pages_cadastro_lancamento_fma_lancamento_fma_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/lancamento-fma/lancamento-fma.routing.module */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.routing.module.ts");
/* harmony import */ var _lancamento_fma_filter_lancamento_fma_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lancamento-fma-filter/lancamento-fma-filter.component */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma-filter/lancamento-fma-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 LancamentoFmaModule = /** @class */ (function () {
    function LancamentoFmaModule() {
    }
    LancamentoFmaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], app_pages_cadastro_lancamento_fma_lancamento_fma_routing_module__WEBPACK_IMPORTED_MODULE_4__["LancamentoFmaRoutingModule"]],
            declarations: [app_pages_cadastro_lancamento_fma_lancamento_fma_form_lancamento_fma_form_component__WEBPACK_IMPORTED_MODULE_2__["LancamentoFmaFormComponent"], app_pages_cadastro_lancamento_fma_lancamento_fma_index_lancamento_fma_index_component__WEBPACK_IMPORTED_MODULE_3__["LancamentoFmaIndexComponent"], _lancamento_fma_filter_lancamento_fma_filter_component__WEBPACK_IMPORTED_MODULE_5__["LancamentoFmaFilterComponent"]]
        })
    ], LancamentoFmaModule);
    return LancamentoFmaModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.routing.module.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-fma/lancamento-fma.routing.module.ts ***!
  \********************************************************************************/
/*! exports provided: LancamentoFmaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoFmaRoutingModule", function() { return LancamentoFmaRoutingModule; });
/* 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 _lancamento_fma_form_lancamento_fma_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lancamento-fma-form/lancamento-fma-form.component */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma-form/lancamento-fma-form.component.ts");
/* harmony import */ var _lancamento_fma_index_lancamento_fma_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lancamento-fma-index/lancamento-fma-index.component */ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma-index/lancamento-fma-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: _lancamento_fma_index_lancamento_fma_index_component__WEBPACK_IMPORTED_MODULE_4__["LancamentoFmaIndexComponent"],
        data: { breadcrumb: "LancamentoFma", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _lancamento_fma_form_lancamento_fma_form_component__WEBPACK_IMPORTED_MODULE_3__["LancamentoFmaFormComponent"],
        data: {
            breadcrumb: "LancamentoFma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "create/:loteId",
        component: _lancamento_fma_form_lancamento_fma_form_component__WEBPACK_IMPORTED_MODULE_3__["LancamentoFmaFormComponent"],
        data: {
            breadcrumb: "LancamentoFma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "create/:sequencial/:ano",
        component: _lancamento_fma_form_lancamento_fma_form_component__WEBPACK_IMPORTED_MODULE_3__["LancamentoFmaFormComponent"],
        data: {
            breadcrumb: "LancamentoFma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _lancamento_fma_form_lancamento_fma_form_component__WEBPACK_IMPORTED_MODULE_3__["LancamentoFmaFormComponent"],
        data: {
            breadcrumb: "LancamentoFma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _lancamento_fma_form_lancamento_fma_form_component__WEBPACK_IMPORTED_MODULE_3__["LancamentoFmaFormComponent"],
        data: {
            breadcrumb: "LancamentoFma",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var LancamentoFmaRoutingModule = /** @class */ (function () {
    function LancamentoFmaRoutingModule() {
    }
    LancamentoFmaRoutingModule = __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"]]
        })
    ], LancamentoFmaRoutingModule);
    return LancamentoFmaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/lancamento-fma/lancamento-fma.service.ts":
/*!*************************************************************************!*\
  !*** ./src/app/pages/cadastro/lancamento-fma/lancamento-fma.service.ts ***!
  \*************************************************************************/
/*! exports provided: LancamentoFmaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LancamentoFmaService", function() { return LancamentoFmaService; });
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.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 LancamentoFmaService = /** @class */ (function (_super) {
    __extends(LancamentoFmaService, _super);
    function LancamentoFmaService(http) {
        var _this = _super.call(this, http, "cadastros/lancamentoFma") || this;
        _this.http = http;
        return _this;
    }
    LancamentoFmaService.prototype.getByFiltro = function (filtro) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/cadastros/lancamentoFma/getByFiltro", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    LancamentoFmaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    LancamentoFmaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], LancamentoFmaService);
    return LancamentoFmaService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-cadastro-lancamento-fma-lancamento-fma-module.js.map