(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-ageo-cadastros-config-anal-cliente-produto-config-anal-cliente-produto-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-filter/config-anal-cliente-produto-filter.component.html":
/*!*********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-filter/config-anal-cliente-produto-filter.component.html ***!
  \*********************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"config-anal-cliente-produto-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.configAnalClienteProduto' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                                    modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\n                                    [inSelected]=\"service.filtro.clienteModel\" tipoDestinatario=\"C\"\n                                    (outModel)=\"trataCliente($event)\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"materialId\" name=\"produto\" label=\"produto\"\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\"\n                                    (outModel)=\"outMaterial($event)\" [inSelected]=\"service.filtro.materialModel\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{\n                        'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-form/config-anal-cliente-produto-form.component.html":
/*!*****************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-form/config-anal-cliente-produto-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\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"service.id\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-form-legenda></app-form-legenda>\n    <div class=\"card-body widget-body\">\n        <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n            <app-validacoes></app-validacoes>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"destinatarioIdCliente\" name=\"destinatarioIdCliente\"\n                            label=\"cliente\" modalTitle=\"pesquisaDeCliente\"\n                            [(ngModel)]=\"data.destinatarioIdCliente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                            showInscricao=\"false\" (outModel)=\"trataDest($event)\" [inSelected]=\"data.clienteModel\" required=\"true\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-material id=\"materialId\" name=\"produto\" label=\"produto\"\n                            modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.materialId\"\n                            (outModel)=\"outMaterial($event)\" [inSelected]=\"data.materialModel\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\n                        </app-pesquisa-material>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-sm-6\">\n                    <div class=\"custom-control custom-checkbox\">\n                        <input id=\"flagAnalise\" name=\"flagAnalise\" [ngModel]=\"data.flagAnalise === 'S'\"\n                            (ngModelChange)=\"data.flagAnalise = $event ? 'S' : 'N'\"\n                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                        <label class=\"custom-control-label\" for=\"flagAnalise\">\n                            {{'labels.analApos2pes' | translate}}\n                        </label>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row mt-4\">\n                <div class=\"col-12\">\n                    <div class=\"form-group\">\n                        <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            {{ 'buttons.salvar' | translate }}\n                        </button>\n                        <button class=\"btn btn-success mr-2\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            {{ 'buttons.salvarNovo' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-index/config-anal-cliente-produto-index.component.html":
/*!*******************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-index/config-anal-cliente-produto-index.component.html ***!
  \*******************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.id\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table  id=\"dtIndex\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-config-anal-cliente-produto-filter (filtrar)=\"refresh()\"></app-config-anal-cliente-produto-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-filter/config-anal-cliente-produto-filter.component.ts":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-filter/config-anal-cliente-produto-filter.component.ts ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: ConfigAnalClienteProdutoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProdutoFilterComponent", function() { return ConfigAnalClienteProdutoFilterComponent; });
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-anal-cliente-produto.constants */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.constants.ts");
/* harmony import */ var _config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-anal-cliente-produto.service */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.service.ts");
/* harmony import */ var _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-anal-cliente-produto.model */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.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 ConfigAnalClienteProdutoFilterComponent = /** @class */ (function () {
    function ConfigAnalClienteProdutoFilterComponent(service, message, funcoesService) {
        this.service = service;
        this.message = message;
        this.funcoesService = funcoesService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.constantes = new _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_6__["ConfigAnalClienteProdutoConstants"]();
    }
    ConfigAnalClienteProdutoFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_8__["ConfigAnalClienteProdutoFiltro"]();
        }
    };
    ConfigAnalClienteProdutoFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ModalUtilsStaticService"].closeModal("config-anal-cliente-produto-dialog");
    };
    ConfigAnalClienteProdutoFilterComponent.prototype.outMaterial = function (material) {
        this.service.filtro.materialModel = material;
    };
    ConfigAnalClienteProdutoFilterComponent.prototype.trataCliente = function (cliente) {
        if (!cliente)
            return;
        this.service.filtro.clienteModel = cliente;
    };
    ConfigAnalClienteProdutoFilterComponent.ctorParameters = function () { return [
        { type: _config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_7__["ConfigAnalClienteProdutoService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], ConfigAnalClienteProdutoFilterComponent.prototype, "filtrar", void 0);
    ConfigAnalClienteProdutoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-config-anal-cliente-produto-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./config-anal-cliente-produto-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-filter/config-anal-cliente-produto-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_7__["ConfigAnalClienteProdutoService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_0__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], ConfigAnalClienteProdutoFilterComponent);
    return ConfigAnalClienteProdutoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-form/config-anal-cliente-produto-form.component.ts":
/*!*************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-form/config-anal-cliente-produto-form.component.ts ***!
  \*************************************************************************************************************************************************************/
/*! exports provided: ConfigAnalClienteProdutoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProdutoFormComponent", function() { return ConfigAnalClienteProdutoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../config-anal-cliente-produto.model */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.model.ts");
/* harmony import */ var _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-anal-cliente-produto.constants */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.constants.ts");
/* harmony import */ var _config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-anal-cliente-produto.service */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.service.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
















var ConfigAnalClienteProdutoFormComponent = /** @class */ (function (_super) {
    __extends(ConfigAnalClienteProdutoFormComponent, _super);
    function ConfigAnalClienteProdutoFormComponent(router, messageService, activatedRoute, service, configuracao, funcoesService, permissoesUtils, destinatarioService, materialService) {
        var _this = _super.call(this, new _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_12__["ConfigAnalClienteProdutoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.data = new _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_11__["ConfigAnalClienteProduto"]();
        _this.mensagens = [];
        _this.horas = [];
        _this.constantes = new _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_12__["ConfigAnalClienteProdutoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/ageo/cadastros/configAnalClienteProduto";
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.service.configs.autoInsert = _this.configuracao.boolean("CTV", "AutoInsert");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConfigAnalClienteProdutoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig({
            codRotina: this.constantes.sisFormularioId,
            configs: this.constantes.configuracoes
        }, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.id = id;
            if (id) {
                var obj = JSON.parse(atob(id));
                _this.service._getById(obj.materialId, obj.destinatarioIdCliente).subscribe(function (resp) {
                    _this.data = resp;
                    _this.trataDados();
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ConfigAnalClienteProdutoFormComponent.prototype.trataDados = function () {
        var _this = this;
        Object(rxjs__WEBPACK_IMPORTED_MODULE_15__["forkJoin"])([
            this.destinatarioService.getById(this.data.destinatarioIdCliente),
            this.materialService.getById(this.data.materialId),
        ]).subscribe(function (result) {
            _this.data.clienteModel = !!result[0] ? result[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_8__["Destinatario"]();
            _this.data.materialModel = !!result[1] ? result[1] : new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_14__["Material"]();
        });
    };
    ConfigAnalClienteProdutoFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Config Anal. Cliente/Produto";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            if (!result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.configAnalClienteProduto");
                if (create || _this.service.configs.autoInsert) {
                    _this.data = new _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_11__["ConfigAnalClienteProduto"]();
                }
                else {
                    _this.back();
                }
            }
        });
    };
    ConfigAnalClienteProdutoFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    ConfigAnalClienteProdutoFormComponent.prototype.edit = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.service.id]);
    };
    ConfigAnalClienteProdutoFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    ConfigAnalClienteProdutoFormComponent.prototype.trataDest = function (destinatario) {
        this.data.clienteModel = destinatario;
    };
    ConfigAnalClienteProdutoFormComponent.prototype.outMaterial = function (material) {
        this.service.filtro.materialModel = material;
    };
    ConfigAnalClienteProdutoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_13__["ConfigAnalClienteProdutoService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__["DestinatarioService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_9__["MaterialService"] }
    ]; };
    ConfigAnalClienteProdutoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-config-anal-cliente-produto-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./config-anal-cliente-produto-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-form/config-anal-cliente-produto-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_13__["ConfigAnalClienteProdutoService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_7__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_9__["MaterialService"]])
    ], ConfigAnalClienteProdutoFormComponent);
    return ConfigAnalClienteProdutoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-index/config-anal-cliente-produto-index.component.ts":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-index/config-anal-cliente-produto-index.component.ts ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: ConfigAnalClienteProdutoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProdutoIndexComponent", function() { return ConfigAnalClienteProdutoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-anal-cliente-produto.constants */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.constants.ts");
/* harmony import */ var _config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-anal-cliente-produto.service */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.service.ts");
/* harmony import */ var _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-anal-cliente-produto.model */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.model.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.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 ConfigAnalClienteProdutoIndexComponent = /** @class */ (function (_super) {
    __extends(ConfigAnalClienteProdutoIndexComponent, _super);
    function ConfigAnalClienteProdutoIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_8__["ConfigAnalClienteProdutoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_10__["ConfigAnalClienteProduto"]();
        _this.constantes = new _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_8__["ConfigAnalClienteProdutoConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/ageo/cadastros/configAnalClienteProduto";
        _this.login = loginService.getLogin();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConfigAnalClienteProdutoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
        });
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!!(_this.data.id)) {
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.data.id]);
            }
        });
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataString('destinatarioIdCliente', 'codigo'),
                _this.datatablesService.getDataString('cliente', 'cliente'),
                _this.datatablesService.getDataString('materialId', 'material'),
                _this.datatablesService.getDataString('produto', 'descricaoDoMaterial'),
                _this.datatablesService.getDataString('flagAnalise', 'analise')
            ];
            _this.datatablesService.toDataTable({ tableId: "dtIndex", columns: columns, data: data, disableOrder: true }, function (aData) {
                _this.data = aData;
                _this.data.id = btoa(JSON.stringify({
                    materialId: aData.materialId,
                    destinatarioIdCliente: aData.destinatarioIdCliente
                }));
                _this.service.id = _this.data.id;
            });
        });
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!!(_this.data.id)) {
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/detail/" + _this.data.id]);
            }
        });
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.id)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtIndex");
                        _this.data = new _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_10__["ConfigAnalClienteProduto"]();
                    });
                });
            });
        }
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdCliente),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(_this.service.filtro.materialId),
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ConfigAnalClienteProdutoIndexComponent.prototype.filtrar = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("config-anal-cliente-produto-dialog");
    };
    ConfigAnalClienteProdutoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_9__["ConfigAnalClienteProdutoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] }
    ]; };
    ConfigAnalClienteProdutoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-config-anal-cliente-produto-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./config-anal-cliente-produto-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-index/config-anal-cliente-produto-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _config_anal_cliente_produto_service__WEBPACK_IMPORTED_MODULE_9__["ConfigAnalClienteProdutoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"]])
    ], ConfigAnalClienteProdutoIndexComponent);
    return ConfigAnalClienteProdutoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.constants.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.constants.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: ConfigAnalClienteProdutoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProdutoConstants", function() { return ConfigAnalClienteProdutoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConfigAnalClienteProdutoConstants = /** @class */ (function () {
    function ConfigAnalClienteProdutoConstants() {
        this.sisFormularioId = 65748;
        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.configuracoes = [];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.configAnalClienteProduto";
        this.reportId = "AGE0030";
        this.reportTitulo = { "titulo": "Termo Responsabilidade", "subTitulo": "" };
        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' },
        ];
        this.configuracoes = [
            {
                sistema: "CTV",
                parametros: [
                    "AutoInsert"
                ]
            }
        ];
    }
    return ConfigAnalClienteProdutoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.model.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.model.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: ConfigAnalClienteProdutoFiltro, ConfigAnalClienteProduto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProdutoFiltro", function() { return ConfigAnalClienteProdutoFiltro; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProduto", function() { return ConfigAnalClienteProduto; });
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/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 ConfigAnalClienteProdutoFiltro = /** @class */ (function (_super) {
    __extends(ConfigAnalClienteProdutoFiltro, _super);
    function ConfigAnalClienteProdutoFiltro() {
        var _this = _super.call(this) || this;
        _this.clienteModel = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.materialModel = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__["Material"]();
        return _this;
    }
    return ConfigAnalClienteProdutoFiltro;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var ConfigAnalClienteProduto = /** @class */ (function (_super) {
    __extends(ConfigAnalClienteProduto, _super);
    function ConfigAnalClienteProduto() {
        var _this = _super.call(this) || this;
        _this.clienteModel = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        _this.materialId = "";
        return _this;
    }
    return ConfigAnalClienteProduto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.module.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.module.ts ***!
  \********************************************************************************************************************/
/*! exports provided: ConfigAnalClienteProdutoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProdutoModule", function() { return ConfigAnalClienteProdutoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _config_anal_cliente_produto_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config-anal-cliente-produto.routing.module */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.routing.module.ts");
/* harmony import */ var _config_anal_cliente_produto_form_config_anal_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config-anal-cliente-produto-form/config-anal-cliente-produto-form.component */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-form/config-anal-cliente-produto-form.component.ts");
/* harmony import */ var _config_anal_cliente_produto_index_config_anal_cliente_produto_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config-anal-cliente-produto-index/config-anal-cliente-produto-index.component */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-index/config-anal-cliente-produto-index.component.ts");
/* harmony import */ var _config_anal_cliente_produto_filter_config_anal_cliente_produto_filter_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./config-anal-cliente-produto-filter/config-anal-cliente-produto-filter.component */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-filter/config-anal-cliente-produto-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 ConfigAnalClienteProdutoModule = /** @class */ (function () {
    function ConfigAnalClienteProdutoModule() {
    }
    ConfigAnalClienteProdutoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _config_anal_cliente_produto_index_config_anal_cliente_produto_index_component__WEBPACK_IMPORTED_MODULE_4__["ConfigAnalClienteProdutoIndexComponent"],
                _config_anal_cliente_produto_form_config_anal_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_3__["ConfigAnalClienteProdutoFormComponent"],
                _config_anal_cliente_produto_filter_config_anal_cliente_produto_filter_component__WEBPACK_IMPORTED_MODULE_5__["ConfigAnalClienteProdutoFilterComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _config_anal_cliente_produto_routing_module__WEBPACK_IMPORTED_MODULE_2__["ConfigAnalClienteProdutoRoutingModule"]
            ]
        })
    ], ConfigAnalClienteProdutoModule);
    return ConfigAnalClienteProdutoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.routing.module.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.routing.module.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: ConfigAnalClienteProdutoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProdutoRoutingModule", function() { return ConfigAnalClienteProdutoRoutingModule; });
/* 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 _config_anal_cliente_produto_index_config_anal_cliente_produto_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config-anal-cliente-produto-index/config-anal-cliente-produto-index.component */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-index/config-anal-cliente-produto-index.component.ts");
/* harmony import */ var _config_anal_cliente_produto_form_config_anal_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config-anal-cliente-produto-form/config-anal-cliente-produto-form.component */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto-form/config-anal-cliente-produto-form.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 ConfigAnalClienteProdutoRoutes = [
    {
        path: "",
        component: _config_anal_cliente_produto_index_config_anal_cliente_produto_index_component__WEBPACK_IMPORTED_MODULE_3__["ConfigAnalClienteProdutoIndexComponent"],
        data: {
            breadcrumb: "configAnalClienteProduto",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "create",
        component: _config_anal_cliente_produto_form_config_anal_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_4__["ConfigAnalClienteProdutoFormComponent"],
        data: {
            breadcrumb: "configAnalClienteProduto",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _config_anal_cliente_produto_form_config_anal_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_4__["ConfigAnalClienteProdutoFormComponent"],
        data: {
            breadcrumb: "configAnalClienteProduto",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _config_anal_cliente_produto_form_config_anal_cliente_produto_form_component__WEBPACK_IMPORTED_MODULE_4__["ConfigAnalClienteProdutoFormComponent"],
        data: {
            breadcrumb: "configAnalClienteProduto",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ConfigAnalClienteProdutoRoutingModule = /** @class */ (function () {
    function ConfigAnalClienteProdutoRoutingModule() {
    }
    ConfigAnalClienteProdutoRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(ConfigAnalClienteProdutoRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], ConfigAnalClienteProdutoRoutingModule);
    return ConfigAnalClienteProdutoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.service.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.service.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: ConfigAnalClienteProdutoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigAnalClienteProdutoService", function() { return ConfigAnalClienteProdutoService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config-anal-cliente-produto.constants */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.constants.ts");
/* harmony import */ var _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config-anal-cliente-produto.model */ "./src/app/pages/especificos/ageo/cadastros/config-anal-cliente-produto/config-anal-cliente-produto.model.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/internal/operators/catchError */ "./node_modules/rxjs/internal/operators/catchError.js");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/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 ConfigAnalClienteProdutoService = /** @class */ (function (_super) {
    __extends(ConfigAnalClienteProdutoService, _super);
    function ConfigAnalClienteProdutoService(http) {
        var _this = _super.call(this, http, "ageo/configAnalClienteProduto") || this;
        _this.http = http;
        _this.filtro = new _config_anal_cliente_produto_model__WEBPACK_IMPORTED_MODULE_4__["ConfigAnalClienteProdutoFiltro"]();
        _this.constantes = new _config_anal_cliente_produto_constants__WEBPACK_IMPORTED_MODULE_3__["ConfigAnalClienteProdutoConstants"]();
        _this.configs = {
            autoInsert: false
        };
        return _this;
    }
    ConfigAnalClienteProdutoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/ageo/configAnalClienteProduto/getByFiltro", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError));
    };
    ConfigAnalClienteProdutoService.prototype._getById = function (materialId, destinatarioIdCliente) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/ageo/configAnalClienteProduto/getById/" + materialId + "/" + destinatarioIdCliente)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError));
    };
    ConfigAnalClienteProdutoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    ConfigAnalClienteProdutoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], ConfigAnalClienteProdutoService);
    return ConfigAnalClienteProdutoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-ageo-cadastros-config-anal-cliente-produto-config-anal-cliente-produto-module.js.map