(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-ageo-movimentos-alterar-cliente-de-venda-alterar-cliente-de-venda-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-form/alterar-cliente-de-venda-form.component.html":
/*!*********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-form/alterar-cliente-de-venda-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 [sisFormularioId]=\"constantes.sisFormularioId\" [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" autocomplete=\"off\" novalidate>\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row mt-2\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"requisicao\">{{ 'labels.nRequisicao' | translate }}</label>\n                                            <div class=\"input-group input-group-sm\">\n                                                <input id=\"requisicao\" name=\"requisicao\" [(ngModel)]=\"data.regRequisicao\"\n                                                    class=\"form-control\" mask=\"999999999\" [disabled]=\"true\">\n                                                <div class=\"input-group-append\">\n                                                    <button type=\"button\" class=\"btn btn-outline-secondary\"\n                                                        (click)=\"filtrar()\">\n                                                        <i class=\"fa fa-search\"></i>\n                                                    </button>\n                                                </div>\n                                            </div>\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=\"regControle\">{{ 'labels.regControle' | translate}}</label>\n                                            <input id=\"regControle\" name=\"regControle\" [(ngModel)]=\"data.regControle\"\n                                                class=\"form-control form-control-sm\" disabled=\"true\" mask=\"999999999\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioIdCliente\"\n                                                name=\"destinatarioIdCliente\" label=\"cliente\"\n                                                modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"data.destinatarioIdCliente\"\n                                                tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\"\n                                                (outModel)=\"trataDest($event)\" [disabled]=\"true\" [inSelected]=\"data.cliente\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-sm-12\">\n                                        <app-pesquisa-motorista id=\"motorista\" name=\"motorista\" label=\"motorista\"\n                                            modalTitle=\"pesquisaMotorista\" [(ngModel)]=\"data.motoristaId\"\n                                            [showCpf]=\"false\" [inputMotorista]=\"data.motorista\" [disabled]=\"true\"\n                                            (outMotorista)=\"trataMotorista($event)\">\n                                        </app-pesquisa-motorista>\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-destinatario id=\"destinatarioIdTransportadora\"\n                                                name=\"destinatarioIdTransportadora\" label=\"transportadora\"\n                                                modalTitle=\"transportadora\" [inSelected]=\"data.transportadora\"\n                                                [disabled]=\"true\" [(ngModel)]=\"data.destinatarioIdTransportadora\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\">\n                                            </app-pesquisa-destinatario>\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=\"placaCavalo\">{{ 'labels.placaCavalo' | translate}}</label>\n                                            <input id=\"placaCavalo\" name=\"placaCavalo\" [(ngModel)]=\"data.placaCavalo\"\n                                                class=\"form-control form-control-sm\" disabled=\"true\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group-sm inputs-lado-a-lado\" style=\"display: flex; gap: 5px;\">\n                                            <div>\n                                                <label for=\"placaCarreta1\">{{ 'labels.placaCarreta' | translate }}</label>\n                                                <input id=\"placaCarreta1\" name=\"placaCarreta1\"\n                                                    [(ngModel)]=\"data.placaCarreta1\" class=\"form-control form-control-sm\"\n                                                    disabled=\"true\">\n                                            </div>\n                                            <div>\n                                                <label for=\"placaCarreta2\">&nbsp;</label>\n                                                <input id=\"placaCarreta2\" name=\"placaCarreta2\"\n                                                    [(ngModel)]=\"data.placaCarreta2\" class=\"form-control form-control-sm\"\n                                                    disabled=\"true\">\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioIdCliente\" name=\"clienteVenda\"\n                                                label=\"clienteVenda\" modalTitle=\"pesquisaDeCliente\"\n                                                [(ngModel)]=\"data.destinatarioIdCodCliente\" tipoDestinatario=\"C\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\"\n                                                (outModel)=\"trataDestVenda($event)\" [disabled]=\"disableInput\" \n                                                [inSelected]=\"data.clienteVenda\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\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\" [disabled]=\"disableButton\" 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</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-alterar-cliente-de-venda-requisicao [data]=\"service.filtro\"\n    (filtrar)=\"executaFiltro($event)\"></app-alterar-cliente-de-venda-requisicao>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-requisicao/alterar-cliente-de-venda-requisicao.component.html":
/*!*********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-requisicao/alterar-cliente-de-venda-requisicao.component.html ***!
  \*********************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"alterar-cliente-de-venda-requisicao-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaRequisicao' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\" class=\"required\">{{ 'labels.de' | translate }}</label>\r\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\" [(ngModel)]=\"filtro.dataI\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">{{ 'labels.ate' | translate }}</label>\r\n                                <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"filtro.dataF\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                    [(ngModel)]=\"filtro.destinatarioIdCodCliente\" showInscricao=\"false\" showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 form-group form-group-sm\">\r\n                            <table id=\"dtRequisicao\"\r\n                                class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"_refresh()\">{{ 'buttons.pesquisar' |\r\n                        translate }} </button>\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }} </button>\r\n                    <button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-form/alterar-cliente-de-venda-form.component.ts":
/*!*****************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-form/alterar-cliente-de-venda-form.component.ts ***!
  \*****************************************************************************************************************************************************/
/*! exports provided: AlterarClienteDeVendaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlterarClienteDeVendaFormComponent", function() { return AlterarClienteDeVendaFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _alterar_cliente_de_venda_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../alterar-cliente-de-venda.constants */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.constants.ts");
/* harmony import */ var _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../alterar-cliente-de-venda.model */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.model.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
/* harmony import */ var _alterar_cliente_de_venda_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../alterar-cliente-de-venda.service */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __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 rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.service */ "./src/app/pages/cadastro/motorista/motorista.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 AlterarClienteDeVendaFormComponent = /** @class */ (function (_super) {
    __extends(AlterarClienteDeVendaFormComponent, _super);
    function AlterarClienteDeVendaFormComponent(permissoesUtils, funcoesService, messageService, service, destinatarioService, matoristaService) {
        var _this = _super.call(this, new _alterar_cliente_de_venda_constants__WEBPACK_IMPORTED_MODULE_7__["AlterarClienteDeVendaConstants"](), funcoesService) || this;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.service = service;
        _this.destinatarioService = destinatarioService;
        _this.matoristaService = matoristaService;
        _this.mensagens = [];
        _this.constantes = new _alterar_cliente_de_venda_constants__WEBPACK_IMPORTED_MODULE_7__["AlterarClienteDeVendaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.data = new _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_8__["AlterarClienteDeVenda"]();
        _this.disabledGrupo = false;
        _this.disabledCliente = false;
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        _this.disableButton = true;
        _this.disableInput = true;
        return _this;
    }
    AlterarClienteDeVendaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    AlterarClienteDeVendaFormComponent.prototype.onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.service.gravaCliente(_this.data).subscribe(function (result) {
                _this.mensagens = _this.messageService.validationResult(result);
                if (!result.isValid) {
                    _this.messageService.warning(_this.service.titles, _this.mensagens);
                }
                else {
                    _this.messageService.saveSuccess(_this.service.titles);
                    _this.data = new _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_8__["AlterarClienteDeVenda"]();
                    _this.desabilitaInput();
                }
            });
        });
    };
    AlterarClienteDeVendaFormComponent.prototype.trataDest = function (destinatario) {
        this.data.cliente = destinatario;
    };
    AlterarClienteDeVendaFormComponent.prototype.trataDestVenda = function (destinatario) {
        this.data.clienteVenda = destinatario;
    };
    AlterarClienteDeVendaFormComponent.prototype.trataMotorista = function (motorista) {
        this.data.motorista = motorista;
    };
    AlterarClienteDeVendaFormComponent.prototype.executaFiltro = function (event) {
        this.data = event;
        this.getById();
        this.fechaAba();
    };
    AlterarClienteDeVendaFormComponent.prototype.getById = function () {
        var _this = this;
        this.service.getById(this.data.regRequisicao).subscribe(function (result) {
            _this.data = result;
            _this.trataDados();
            _this.validaDados();
            _this.desabilitaInput();
        });
    };
    AlterarClienteDeVendaFormComponent.prototype.desabilitaInput = function () {
        if (this.data.regRequisicao > 0) {
            this.disableInput = false;
        }
        else {
            this.disableInput = true;
        }
    };
    AlterarClienteDeVendaFormComponent.prototype.validaDados = function () {
        if (this.data.codSitVeiculo == "1090") {
            this.messageService.warning(this.service.titles, "messages.alteracaoNaoPermitidaOpConcluida");
            return this.disableButton = true;
        }
        if (this.data.codSitVeiculo == "1091") {
            this.messageService.warning(this.service.titles, "messages.alteracaoNaoPermitidaOpCancelada");
            return this.disableButton = true;
        }
        if (this.data.codSitVeiculo == "12") {
            this.messageService.warning(this.service.titles, "messages.alteracaoNaoPermitidaOpCheckListReprovado");
            return this.disableButton = true;
        }
        if (this.data.tipoMov == "D") {
            this.messageService.warning(this.service.titles, "messages.alteracaoNaoPermitidaRequisicaocarga");
            return this.disableButton = true;
        }
        return this.disableButton = false;
    };
    AlterarClienteDeVendaFormComponent.prototype.trataDados = function () {
        var _this = this;
        Object(rxjs__WEBPACK_IMPORTED_MODULE_13__["forkJoin"])([
            this.destinatarioService.getById(this.data.destinatarioIdCliente),
            this.matoristaService.getById(this.data.motoristaId),
            this.destinatarioService.getById(this.data.destinatarioIdTransportadora),
            this.destinatarioService.getById(this.data.destinatarioIdCodCliente),
        ]).subscribe(function (resp) {
            _this.data.cliente = !!resp[0] ? resp[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_9__["Destinatario"]();
            _this.data.motorista = !!resp[1] ? resp[1] : new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_10__["Motorista"]();
            _this.data.transportadora = !!resp[2] ? resp[2] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_9__["Destinatario"]();
            _this.data.clienteVenda = !!resp[3] ? resp[3] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_9__["Destinatario"]();
        });
    };
    AlterarClienteDeVendaFormComponent.prototype.filtrar = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["ModalUtilsStaticService"].openModal("alterar-cliente-de-venda-requisicao-dialog");
    };
    AlterarClienteDeVendaFormComponent.prototype.fechaAba = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["ModalUtilsStaticService"].closeModal("alterar-cliente-de-venda-requisicao-dialog");
    };
    AlterarClienteDeVendaFormComponent.prototype.printParams = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return false;
        }
        this.constantes.paramRelatorio = {};
        return true;
    };
    AlterarClienteDeVendaFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    AlterarClienteDeVendaFormComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _alterar_cliente_de_venda_service__WEBPACK_IMPORTED_MODULE_11__["AlterarClienteDeVendaService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__["DestinatarioService"] },
        { type: app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_15__["MotoristaService"] }
    ]; };
    AlterarClienteDeVendaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-alterar-cliente-de-venda-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./alterar-cliente-de-venda-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-form/alterar-cliente-de-venda-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _alterar_cliente_de_venda_service__WEBPACK_IMPORTED_MODULE_11__["AlterarClienteDeVendaService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_14__["DestinatarioService"],
            app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_15__["MotoristaService"]])
    ], AlterarClienteDeVendaFormComponent);
    return AlterarClienteDeVendaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-requisicao/alterar-cliente-de-venda-requisicao.component.ts":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-requisicao/alterar-cliente-de-venda-requisicao.component.ts ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: AlterarClienteDeVendaRequisicaoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlterarClienteDeVendaRequisicaoComponent", function() { return AlterarClienteDeVendaRequisicaoComponent; });
/* 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_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __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 _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../alterar-cliente-de-venda.model */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.model.ts");
/* harmony import */ var _alterar_cliente_de_venda_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../alterar-cliente-de-venda.service */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var AlterarClienteDeVendaRequisicaoComponent = /** @class */ (function () {
    function AlterarClienteDeVendaRequisicaoComponent(service, funcoesService, messageService, datatablesService) {
        this.service = service;
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.datatablesService = datatablesService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.result = new _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_3__["AlterarClienteDeVenda"]();
    }
    AlterarClienteDeVendaRequisicaoComponent.prototype.ngOnInit = function () {
        this.filtro = new _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_3__["AlterarClienteDeVendaFiltro"]();
    };
    AlterarClienteDeVendaRequisicaoComponent.prototype.onSubmit = function (form) {
        if (!this.validatePeriodoAte())
            return;
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.data);
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("alterar-cliente-de-venda-requisicao-dialog");
    };
    AlterarClienteDeVendaRequisicaoComponent.prototype._refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatablesService.getDataString('regRequisicao', 'requisicao'),
                _this.datatablesService.getDataString('requisicao', 'reqCliente'),
                _this.datatablesService.getDataString('placa', 'placa'),
                _this.datatablesService.getDataDateTime('dtRequisicao', 'data', "DD/MM/YYYY HH:mm", "15%"),
                _this.datatablesService.getDataString('fantasiaDest', 'cliente'),
                _this.datatablesService.getDataString('fantasiaTransp', 'transportadora')
            ];
            _this.datatablesService.toDataTable({ tableId: 'dtRequisicao', columns: columns, data: resp }, function (aData) {
                _this.data = aData;
            });
        });
    };
    AlterarClienteDeVendaRequisicaoComponent.prototype.fechaAba = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("alterar-cliente-de-venda-requisicao-dialog");
    };
    AlterarClienteDeVendaRequisicaoComponent.prototype.validatePeriodoAte = function () {
        if (!this.filtro.dataI)
            return;
        if (!this.filtro.dataF)
            return;
        if (this.funcoesService.dateTimeUtils.maiorA(this.filtro.dataI, this.filtro.dataF)) {
            this.messageService.warning("titles.conferenciaDeEmbarque", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    AlterarClienteDeVendaRequisicaoComponent.ctorParameters = function () { return [
        { type: _alterar_cliente_de_venda_service__WEBPACK_IMPORTED_MODULE_4__["AlterarClienteDeVendaService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_3__["AlterarClienteDeVenda"])
    ], AlterarClienteDeVendaRequisicaoComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], AlterarClienteDeVendaRequisicaoComponent.prototype, "filtrar", void 0);
    AlterarClienteDeVendaRequisicaoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-alterar-cliente-de-venda-requisicao",
            template: __importDefault(__webpack_require__(/*! raw-loader!./alterar-cliente-de-venda-requisicao.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-requisicao/alterar-cliente-de-venda-requisicao.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_alterar_cliente_de_venda_service__WEBPACK_IMPORTED_MODULE_4__["AlterarClienteDeVendaService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"]])
    ], AlterarClienteDeVendaRequisicaoComponent);
    return AlterarClienteDeVendaRequisicaoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.constants.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.constants.ts ***!
  \******************************************************************************************************************/
/*! exports provided: AlterarClienteDeVendaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlterarClienteDeVendaConstants", function() { return AlterarClienteDeVendaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AlterarClienteDeVendaConstants = /** @class */ (function () {
    function AlterarClienteDeVendaConstants() {
        this.sisFormularioId = 65631;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.alteracao" },
        ];
        this.nomeForm = "titles.alterarClienteDeVenda";
        this.reportId = "AGE0015";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return AlterarClienteDeVendaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.model.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.model.ts ***!
  \**************************************************************************************************************/
/*! exports provided: AlterarClienteDeVenda, AlterarClienteDeVendaFiltro */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlterarClienteDeVenda", function() { return AlterarClienteDeVenda; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlterarClienteDeVendaFiltro", function() { return AlterarClienteDeVendaFiltro; });
/* 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_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var AlterarClienteDeVenda = /** @class */ (function () {
    function AlterarClienteDeVenda() {
        this.requisicao = 0;
        this.regRequisicao = 0;
        this.regControle = 0;
        this.destinatarioIdCliente = 0;
        this.motoristaId = 0;
        this.destinatarioIdTransportadora = 0;
        this.placaCavalo = "";
        this.placaCarreta1 = "";
        this.placaCarreta2 = "";
        this.destinatarioIdCliente = 0;
        this.codSitVeiculo = "";
        this.tipoMov = "";
        this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        this.clienteVenda = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        this.motorista = new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__["Motorista"]();
        this.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
    }
    return AlterarClienteDeVenda;
}());

var AlterarClienteDeVendaFiltro = /** @class */ (function () {
    function AlterarClienteDeVendaFiltro() {
        this.destinatarioIdCodCliente = 0;
        var currentDate = new Date();
        currentDate.setDate(1);
        var a = new Date();
        a.setHours(23);
        a.setMinutes(59);
        a.setSeconds(59);
        this.dataI = currentDate;
        this.dataF = a;
    }
    return AlterarClienteDeVendaFiltro;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.module.ts":
/*!***************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.module.ts ***!
  \***************************************************************************************************************/
/*! exports provided: AlterarClienteDeVendaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlterarClienteDeVendaModule", function() { return AlterarClienteDeVendaModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _alterar_cliente_de_venda_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./alterar-cliente-de-venda.routing.module */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.routing.module.ts");
/* harmony import */ var _alterar_cliente_de_venda_form_alterar_cliente_de_venda_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./alterar-cliente-de-venda-form/alterar-cliente-de-venda-form.component */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-form/alterar-cliente-de-venda-form.component.ts");
/* harmony import */ var _alterar_cliente_de_venda_requisicao_alterar_cliente_de_venda_requisicao_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./alterar-cliente-de-venda-requisicao/alterar-cliente-de-venda-requisicao.component */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-requisicao/alterar-cliente-de-venda-requisicao.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 AlterarClienteDeVendaModule = /** @class */ (function () {
    function AlterarClienteDeVendaModule() {
    }
    AlterarClienteDeVendaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _alterar_cliente_de_venda_routing_module__WEBPACK_IMPORTED_MODULE_2__["AlterarClienteDeVendaRoutingModule"]],
            declarations: [_alterar_cliente_de_venda_form_alterar_cliente_de_venda_form_component__WEBPACK_IMPORTED_MODULE_3__["AlterarClienteDeVendaFormComponent"],
                _alterar_cliente_de_venda_requisicao_alterar_cliente_de_venda_requisicao_component__WEBPACK_IMPORTED_MODULE_4__["AlterarClienteDeVendaRequisicaoComponent"]],
        })
    ], AlterarClienteDeVendaModule);
    return AlterarClienteDeVendaModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.routing.module.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.routing.module.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: AlterarClienteDeVendaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlterarClienteDeVendaRoutingModule", function() { return AlterarClienteDeVendaRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _alterar_cliente_de_venda_form_alterar_cliente_de_venda_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./alterar-cliente-de-venda-form/alterar-cliente-de-venda-form.component */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda-form/alterar-cliente-de-venda-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: _alterar_cliente_de_venda_form_alterar_cliente_de_venda_form_component__WEBPACK_IMPORTED_MODULE_3__["AlterarClienteDeVendaFormComponent"],
        data: { breadcrumb: "alterarClienteDeVenda", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var AlterarClienteDeVendaRoutingModule = /** @class */ (function () {
    function AlterarClienteDeVendaRoutingModule() {
    }
    AlterarClienteDeVendaRoutingModule = __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"]],
        })
    ], AlterarClienteDeVendaRoutingModule);
    return AlterarClienteDeVendaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.service.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.service.ts ***!
  \****************************************************************************************************************/
/*! exports provided: AlterarClienteDeVendaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlterarClienteDeVendaService", function() { return AlterarClienteDeVendaService; });
/* 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_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _alterar_cliente_de_venda_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./alterar-cliente-de-venda.constants */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.constants.ts");
/* harmony import */ var _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./alterar-cliente-de-venda.model */ "./src/app/pages/especificos/ageo/movimentos/alterar-cliente-de-venda/alterar-cliente-de-venda.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 AlterarClienteDeVendaService = /** @class */ (function () {
    function AlterarClienteDeVendaService(http) {
        this.http = http;
        this.constantes = new _alterar_cliente_de_venda_constants__WEBPACK_IMPORTED_MODULE_5__["AlterarClienteDeVendaConstants"]();
        this.filtro = new _alterar_cliente_de_venda_model__WEBPACK_IMPORTED_MODULE_6__["AlterarClienteDeVendaFiltro"]();
        this.titles = "titles.alterarClienteDeVenda";
    }
    AlterarClienteDeVendaService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/alterarClienteDeVenda/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    AlterarClienteDeVendaService.prototype.getById = function (regRequisicao) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/alterarClienteDeVenda/getById/" + regRequisicao, null)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    AlterarClienteDeVendaService.prototype.gravaCliente = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/alterarClienteDeVenda/gravaCliente", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    AlterarClienteDeVendaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    AlterarClienteDeVendaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], AlterarClienteDeVendaService);
    return AlterarClienteDeVendaService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-ageo-movimentos-alterar-cliente-de-venda-alterar-cliente-de-venda-module.js.map