(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cli-cadastros-representante-representante-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/cadastros/representante/representante-form/representante-form.component.html":
/*!**********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/cadastros/representante/representante-form/representante-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\" [itemData]=\"data.filialId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\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-3\">\n                            <label for=\"filiais\">{{\"labels.terminal\" | translate}}</label>\n                            <app-combo-padrao id=\"filiais\" name=\"filiais\" tabela=\"Filial\" chave=\"Filial\"\n                                descricao=\"Fantasia\" ativos=\"false\" [(ngModel)]=\"data.filialId\" (change)=\"loadConfig()\">\n                            </app-combo-padrao>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"fiel\">{{'labels.fiel' | translate}}</label>\n                                <app-combo-padrao id=\"fiel\" name=\"fiel\" tabela=\"Colaborador\" descricao=\"Nome\"\n                                    chave=\"CodColaborador\" [(ngModel)]=\"data.codFiel\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"repres1\">{{'labels.repres1' | translate}}</label>\n                                <app-combo-padrao id=\"repres1\" name=\"repres1\" tabela=\"Colaborador\" descricao=\"Nome\"\n                                    chave=\"CodColaborador\" [(ngModel)]=\"data.codRepres1\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"repres2\">{{'labels.repres2' | translate}}</label>\n                                <app-combo-padrao id=\"repres2\" name=\"repres2\" tabela=\"Colaborador\" descricao=\"Nome\"\n                                    chave=\"CodColaborador\" [(ngModel)]=\"data.codRepres2\" (change)=\"getColaborador()\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./src/app/pages/especificos/cli/cadastros/representante/representante-form/representante-form.component.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/cadastros/representante/representante-form/representante-form.component.ts ***!
  \******************************************************************************************************************/
/*! exports provided: RepresentanteFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepresentanteFormComponent", function() { return RepresentanteFormComponent; });
/* 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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* 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_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __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_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.model */ "./src/app/shared/services/funcoes/configuracao/configuracao.model.ts");
/* harmony import */ var _representante_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../representante.model */ "./src/app/pages/especificos/cli/cadastros/representante/representante.model.ts");
/* harmony import */ var _representante_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../representante.constants */ "./src/app/pages/especificos/cli/cadastros/representante/representante.constants.ts");
/* harmony import */ var app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador.service */ "./src/app/pages/cadastro/colaborador/colaborador.service.ts");
/* harmony import */ var app_pages_cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/cadastro/filial/filial.service */ "./src/app/pages/cadastro/filial/filial.service.ts");
/* harmony import */ var _representante_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../representante.service */ "./src/app/pages/especificos/cli/cadastros/representante/representante.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 RepresentanteFormComponent = /** @class */ (function (_super) {
    __extends(RepresentanteFormComponent, _super);
    function RepresentanteFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, funcoes, colaboradorService, filailService, representanteService) {
        var _this = _super.call(this, new _representante_constants__WEBPACK_IMPORTED_MODULE_10__["RepresentanteConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.colaboradorService = colaboradorService;
        _this.filailService = filailService;
        _this.representanteService = representanteService;
        _this.data = new _representante_model__WEBPACK_IMPORTED_MODULE_9__["Representante"]();
        _this.reprefiltro = new _representante_model__WEBPACK_IMPORTED_MODULE_9__["RepresentanteFiltro"]();
        _this.mensagens = [];
        _this.constantes = new _representante_constants__WEBPACK_IMPORTED_MODULE_10__["RepresentanteConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.getByFiltro();
                _this.getFilial();
            }
        };
        return _this;
    }
    RepresentanteFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.configuracao.getConfig({
                codRotina: _this.constantes.sisFormularioId,
                configs: _this.constantes.configuracoes
            }, _this.loadConfig);
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    RepresentanteFormComponent.prototype.getByFiltro = function () {
        var _this = this;
        this.reprefiltro.filial = this.data.filialId;
        this.reprefiltro.codFiel = "CodFiel";
        this.reprefiltro.codRepres1 = "CodRepres1";
        this.reprefiltro.codRepres2 = "CodRepres2";
        this.representanteService.getByFiltro(this.reprefiltro).subscribe(function (result) {
            _this.data = result;
        });
    };
    RepresentanteFormComponent.prototype._onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.messageService.confirm('titles.representante', 'messages.updateConfigConfirm', null, function () { return _this.onSubmit(); });
        });
    };
    RepresentanteFormComponent.prototype.executaOnSubmit = function () {
        var _this = this;
        this.messageService.confirm('titles.representante', 'messages.updateConfigConfirm', null, function () { return _this.onSubmit(); });
    };
    RepresentanteFormComponent.prototype.onSubmit = function () {
        var _this = this;
        if (!this.validaRepres())
            return;
        var object = new app_shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_8__["Config"](this.constantes.sisFormularioId);
        object.setConfig(this.data.filialId, 'REL', 'CodFiel', this.data.codFiel, 'I');
        object.setConfig(this.data.filialId, 'REL', 'CodRepres1', this.data.codRepres1, 'I');
        object.setConfig(this.data.filialId, 'REL', 'CodRepres2', this.data.codRepres2, 'I');
        this.configuracao
            .save(object)
            .subscribe(function (result) {
            if (result.validationResult != null && !result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.representante", "messages.configuracaoDe");
            }
        });
    };
    RepresentanteFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    RepresentanteFormComponent.prototype.validaRepres = function () {
        if (this.data.codRepres1 == this.data.codRepres2) {
            this.messageService.warning("titles.representante", "messages.repres1Erepres2NaoPodeSeriguais");
            return false;
        }
        return true;
    };
    RepresentanteFormComponent.prototype.getColaborador = function () {
        var _this = this;
        if (this.data && this.data.codRepres2 > 0) {
            this.colaboradorService
                .getById(this.data.codRepres2)
                .subscribe(function (data) {
                _this.data.colaborador = data;
            });
        }
    };
    RepresentanteFormComponent.prototype.trataFilial = function (selectedItems) {
        this.data.filialId = selectedItems;
    };
    RepresentanteFormComponent.prototype.getFilial = function () {
        var _this = this;
        this.filailService.getById(this.data.filialId)
            .subscribe(function (data) {
            _this.data.filial = data;
        });
    };
    RepresentanteFormComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_11__["ColaboradorService"] },
        { type: app_pages_cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_12__["FilialService"] },
        { type: _representante_service__WEBPACK_IMPORTED_MODULE_13__["RepresentanteService"] }
    ]; };
    RepresentanteFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-representante-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./representante-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/cadastros/representante/representante-form/representante-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_pages_cadastro_colaborador_colaborador_service__WEBPACK_IMPORTED_MODULE_11__["ColaboradorService"],
            app_pages_cadastro_filial_filial_service__WEBPACK_IMPORTED_MODULE_12__["FilialService"],
            _representante_service__WEBPACK_IMPORTED_MODULE_13__["RepresentanteService"]])
    ], RepresentanteFormComponent);
    return RepresentanteFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cli/cadastros/representante/representante.constants.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/cadastros/representante/representante.constants.ts ***!
  \******************************************************************************************/
/*! exports provided: RepresentanteConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepresentanteConstants", function() { return RepresentanteConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var RepresentanteConstants = /** @class */ (function () {
    function RepresentanteConstants() {
        this.sisFormularioId = 375276;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.pemissoes" },
        ];
        this.configuracoes = [];
        this.nomeForm = "titles.representante";
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "REL",
                parametros: [
                    "CodFiel",
                    "CodRepres1",
                    "CodRepres2"
                ]
            }
        ];
    }
    return RepresentanteConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cli/cadastros/representante/representante.model.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/cadastros/representante/representante.model.ts ***!
  \**************************************************************************************/
/*! exports provided: RepresentanteFiltro, RepresentanteDto, Representante */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepresentanteFiltro", function() { return RepresentanteFiltro; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepresentanteDto", function() { return RepresentanteDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Representante", function() { return Representante; });
/* harmony import */ var app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/colaborador/colaborador.model */ "./src/app/pages/cadastro/colaborador/colaborador.model.ts");
/* harmony import */ var app_pages_cadastro_filial_filial_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/filial/filial.model */ "./src/app/pages/cadastro/filial/filial.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 RepresentanteFiltro = /** @class */ (function (_super) {
    __extends(RepresentanteFiltro, _super);
    function RepresentanteFiltro() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.colaborador = new app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_0__["Colaborador"]();
        _this.filial = new app_pages_cadastro_filial_filial_model__WEBPACK_IMPORTED_MODULE_1__["Filial"]();
        return _this;
    }
    return RepresentanteFiltro;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

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

var Representante = /** @class */ (function (_super) {
    __extends(Representante, _super);
    function Representante() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.colaborador = new app_pages_cadastro_colaborador_colaborador_model__WEBPACK_IMPORTED_MODULE_0__["Colaborador"]();
        _this.filial = new app_pages_cadastro_filial_filial_model__WEBPACK_IMPORTED_MODULE_1__["Filial"]();
        return _this;
    }
    return Representante;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/cli/cadastros/representante/representante.module.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/cadastros/representante/representante.module.ts ***!
  \***************************************************************************************/
/*! exports provided: RepresentanteModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepresentanteModule", function() { return RepresentanteModule; });
/* 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__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _representante_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./representante.routing.module */ "./src/app/pages/especificos/cli/cadastros/representante/representante.routing.module.ts");
/* harmony import */ var _representante_form_representante_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./representante-form/representante-form.component */ "./src/app/pages/especificos/cli/cadastros/representante/representante-form/representante-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 RepresentanteModule = /** @class */ (function () {
    function RepresentanteModule() {
    }
    RepresentanteModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_representante_form_representante_form_component__WEBPACK_IMPORTED_MODULE_4__["RepresentanteFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _representante_routing_module__WEBPACK_IMPORTED_MODULE_3__["RepresentanteRoutingModule"]
            ]
        })
    ], RepresentanteModule);
    return RepresentanteModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cli/cadastros/representante/representante.routing.module.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/cadastros/representante/representante.routing.module.ts ***!
  \***********************************************************************************************/
/*! exports provided: RepresentanteRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepresentanteRoutingModule", function() { return RepresentanteRoutingModule; });
/* 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 _representante_form_representante_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./representante-form/representante-form.component */ "./src/app/pages/especificos/cli/cadastros/representante/representante-form/representante-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 MRoutes = [
    {
        path: "",
        component: _representante_form_representante_form_component__WEBPACK_IMPORTED_MODULE_3__["RepresentanteFormComponent"],
        data: { breadcrumb: "representante", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    }
];
var RepresentanteRoutingModule = /** @class */ (function () {
    function RepresentanteRoutingModule() {
    }
    RepresentanteRoutingModule = __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"]]
        })
    ], RepresentanteRoutingModule);
    return RepresentanteRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cli/cadastros/representante/representante.service.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/cadastros/representante/representante.service.ts ***!
  \****************************************************************************************/
/*! exports provided: RepresentanteService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RepresentanteService", function() { return RepresentanteService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/internal/operators/catchError */ "./node_modules/rxjs/internal/operators/catchError.js");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
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 RepresentanteService = /** @class */ (function () {
    function RepresentanteService(http) {
        this.http = http;
    }
    RepresentanteService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cli/representante/getByFiltro", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    RepresentanteService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    RepresentanteService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], RepresentanteService);
    return RepresentanteService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cli-cadastros-representante-representante-module.js.map