(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-raizen-consultas-consulta-destinatario-consulta-destinatario-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.html":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.html ***!
  \***************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit()\">\r\n        <app-validacoes></app-validacoes>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <label for=\"cnpj\" class=\"required\">{{'labels.cnpj' | translate}}</label>\r\n                    <div class=\"input-group\">\r\n                        <input id=\"cnpj\" name=\"cnpj\" [(ngModel)]=\"cnpj\" class=\"form-control form-control-sm\" type=\"text\"\r\n                            required>\r\n\r\n                        <div class=\"input-group-prepend\">\r\n                            <button type=\"submit\" class=\"btn btn-primary\" [disabled]=\"!cnpj\">\r\n                                <i class=\"fa fa-search\"></i> &nbsp;&nbsp;{{'buttons.consultar'|translate}}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <hr>\r\n        <ng-container *ngIf=\"!!status\">\r\n            <div class=\"row\">\r\n                <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                    <div class=\"status\">\r\n                        {{status}} <button class=\"btn btn-link\" *ngIf=\"status === 'Parceiro SAP'\"\r\n                            (click)=\"importar()\">Importar</button>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <hr>\r\n        </ng-container>\r\n        <div class=\"row\">\r\n            <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                <div class=\"form-group form-group-sm\">\r\n                    <div class=\"text-display\">\r\n                        <span><strong>ID Corporate</strong>\r\n                        </span><span>{{parceiro?.clienteId}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.cnpj'|translate}}</strong></span>\r\n                        <span>{{parceiro?.cnpj}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.inscricao'|translate}}</strong></span>\r\n                        <span>{{parceiro?.ie}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.fantasia'|translate}}</strong>\r\n                        </span><span>{{parceiro?.fantasia}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.razaoSocial'|translate}}</strong></span>\r\n                        <span>{{parceiro?.razaoSocial}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.cep'|translate}}</strong></span>\r\n                        <span>{{parceiro?.cep}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.endereco'|translate}}</strong></span>\r\n                        <span>{{parceiro?.endereco}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.numero'|translate}}</strong></span>\r\n                        <span>{{parceiro?.numero}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.complemento'|translate}}</strong>\r\n                        </span>{{parceiro?.complEndereco}}<span></span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.bairro'|translate}}</strong></span>\r\n                        <span>{{parceiro?.bairro}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.municipio'|translate}}</strong></span>\r\n                        <span>{{parceiro?.municipio}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.estado'|translate}}</strong></span>\r\n                        <span>{{parceiro?.estado}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.ddd'|translate}}</strong></span>\r\n                        <span>{{parceiro?.ddd}}</span>\r\n                    </div>\r\n                    <div class=\"text-display\">\r\n                        <span><strong>{{'labels.telefone'|translate}}</strong></span>\r\n                        <span>{{parceiro?.telefone}}</span>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.scss":
/*!*************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.scss ***!
  \*************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".text-display {\n  display: flex;\n  justify-content: space-between;\n}\n\n.status {\n  background-color: antiquewhite;\n  padding: 10px;\n  border-radius: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvcmFpemVuL2NvbnN1bHRhcy9jb25zdWx0YS1kZXN0aW5hdGFyaW8vY29uc3VsdGEtZGVzdGluYXRhcmlvLWluZGV4L0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXHJhaXplblxcY29uc3VsdGFzXFxjb25zdWx0YS1kZXN0aW5hdGFyaW9cXGNvbnN1bHRhLWRlc3RpbmF0YXJpby1pbmRleFxcY29uc3VsdGEtZGVzdGluYXRhcmlvLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9yYWl6ZW4vY29uc3VsdGFzL2NvbnN1bHRhLWRlc3RpbmF0YXJpby9jb25zdWx0YS1kZXN0aW5hdGFyaW8taW5kZXgvY29uc3VsdGEtZGVzdGluYXRhcmlvLWluZGV4LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtFQUNBLDhCQUFBO0FDQ0o7O0FERUE7RUFDSSw4QkFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvcmFpemVuL2NvbnN1bHRhcy9jb25zdWx0YS1kZXN0aW5hdGFyaW8vY29uc3VsdGEtZGVzdGluYXRhcmlvLWluZGV4L2NvbnN1bHRhLWRlc3RpbmF0YXJpby1pbmRleC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50ZXh0LWRpc3BsYXkge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcclxufVxyXG5cclxuLnN0YXR1cyB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiBhbnRpcXVld2hpdGU7XHJcbiAgICBwYWRkaW5nOiAxMHB4O1xyXG4gICAgYm9yZGVyLXJhZGl1czogNXB4O1xyXG59IiwiLnRleHQtZGlzcGxheSB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuLnN0YXR1cyB7XG4gIGJhY2tncm91bmQtY29sb3I6IGFudGlxdWV3aGl0ZTtcbiAgcGFkZGluZzogMTBweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: ConsultaDestinatarioIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaDestinatarioIndexComponent", function() { return ConsultaDestinatarioIndexComponent; });
/* harmony import */ var _consulta_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../consulta-destinatario.model */ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.model.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _consulta_destinatario_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../consulta-destinatario.constants */ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.constants.ts");
/* harmony import */ var _consulta_destinatario_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../consulta-destinatario.service */ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.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 __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var ConsultaDestinatarioIndexComponent = /** @class */ (function (_super) {
    __extends(ConsultaDestinatarioIndexComponent, _super);
    function ConsultaDestinatarioIndexComponent(messageService, service, destinatarioService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _consulta_destinatario_constants__WEBPACK_IMPORTED_MODULE_8__["ConsultaDestinatarioConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.service = service;
        _this.destinatarioService = destinatarioService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        return _this;
    }
    ConsultaDestinatarioIndexComponent.prototype.ngOnInit = function () {
    };
    ConsultaDestinatarioIndexComponent.prototype.onSubmit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var hasDestinatario;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.cnpj = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["StringUtilsStaticService"].removeCaracteres(this.cnpj);
                        return [4 /*yield*/, this.getDestinatario(this.cnpj)];
                    case 1:
                        hasDestinatario = _a.sent();
                        if (!hasDestinatario) {
                            this.service.consultaParceiro(this.cnpj).subscribe(function (r) {
                                if (!!r.validationResult && !r.validationResult.isValid) {
                                    _this.messageService.warning('titles.consultaDestinatario', r.validationResult.erros[0].message);
                                    _this.parceiro = new _consulta_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Parceiro"]();
                                    _this.cnpj = "";
                                    _this.status = "";
                                    return;
                                }
                                _this.parceiro = r.destinatario;
                                _this.status = 'Parceiro SAP';
                                _this.cnpj = "";
                            });
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ConsultaDestinatarioIndexComponent.prototype.getDestinatario = function (cnpj) {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.destinatarioService.getByCnpj(cnpj).toPromise()];
                    case 1:
                        _a.destinatario = _b.sent();
                        if (!!this.destinatario) {
                            this.parceiro = new _consulta_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Parceiro"]();
                            this.parceiro.clienteId = this.destinatario.destinatarioId;
                            this.parceiro.cnpj = this.destinatario.cgcCpf;
                            this.parceiro.ie = this.destinatario.inscricao;
                            this.parceiro.fantasia = this.destinatario.fantasia;
                            this.parceiro.razaoSocial = this.destinatario.razaoSocial;
                            this.parceiro.cep = this.destinatario.cep;
                            this.parceiro.endereco = this.destinatario.endereco;
                            this.parceiro.numero = this.destinatario.numero;
                            this.parceiro.complEndereco = this.destinatario.complEndereco;
                            this.parceiro.bairro = this.destinatario.bairro;
                            this.parceiro.municipio = this.destinatario.municipio;
                            this.parceiro.estado = this.destinatario.estadoId;
                            this.parceiro.ddd = this.destinatario.ddd;
                            this.parceiro.telefone = this.destinatario.telefone1;
                            this.status = 'Cliente Cadastrado';
                            this.cnpj = "";
                            return [2 /*return*/, true];
                        }
                        return [2 /*return*/, false];
                }
            });
        });
    };
    ConsultaDestinatarioIndexComponent.prototype.importar = function () {
        var _this = this;
        this.service.save(this.parceiro).subscribe(function (r) { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!!r && !r.isValid) {
                            this.messageService.warning('titles.consultaDestinatario', r.erros[0].message);
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.getDestinatario(this.parceiro.cnpj)];
                    case 1:
                        _a.sent();
                        this.messageService.saveSuccess('titles.destinatario');
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ConsultaDestinatarioIndexComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _consulta_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["ConsultaDestinatarioService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__["DestinatarioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    ConsultaDestinatarioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
            selector: "app-consulta-destinatario-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-destinatario-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consulta-destinatario-index.component.scss */ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _consulta_destinatario_service__WEBPACK_IMPORTED_MODULE_9__["ConsultaDestinatarioService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__["DestinatarioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], ConsultaDestinatarioIndexComponent);
    return ConsultaDestinatarioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.constants.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.constants.ts ***!
  \*************************************************************************************************************/
/*! exports provided: ConsultaDestinatarioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaDestinatarioConstants", function() { return ConsultaDestinatarioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaDestinatarioConstants = /** @class */ (function () {
    function ConsultaDestinatarioConstants() {
        this.sisFormularioId = 140179;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: 'labels.consulta' },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: 'labels.permissoes' },
        ];
        this.listaIndex = [];
    }
    return ConsultaDestinatarioConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.model.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.model.ts ***!
  \*********************************************************************************************************/
/*! exports provided: Parceiro */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.module.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.module.ts ***!
  \**********************************************************************************************************/
/*! exports provided: ConsultaDestinatarioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaDestinatarioModule", function() { return ConsultaDestinatarioModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _consulta_destinatario_index_consulta_destinatario_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consulta-destinatario-index/consulta-destinatario-index.component */ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.ts");
/* harmony import */ var _consulta_destinatario_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-destinatario.routing.module */ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.routing.module.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 ConsultaDestinatarioModule = /** @class */ (function () {
    function ConsultaDestinatarioModule() {
    }
    ConsultaDestinatarioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _consulta_destinatario_index_consulta_destinatario_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultaDestinatarioIndexComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _consulta_destinatario_routing_module__WEBPACK_IMPORTED_MODULE_3__["ConsultaDestinatarioRoutingModule"]
            ]
        })
    ], ConsultaDestinatarioModule);
    return ConsultaDestinatarioModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.routing.module.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.routing.module.ts ***!
  \******************************************************************************************************************/
/*! exports provided: ConsultaDestinatarioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaDestinatarioRoutingModule", function() { return ConsultaDestinatarioRoutingModule; });
/* 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 _consulta_destinatario_index_consulta_destinatario_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-destinatario-index/consulta-destinatario-index.component */ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario-index/consulta-destinatario-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var ConsultaDestinatarioRoutes = [
    {
        path: '',
        component: _consulta_destinatario_index_consulta_destinatario_index_component__WEBPACK_IMPORTED_MODULE_3__["ConsultaDestinatarioIndexComponent"],
        data: {
            breadcrumb: 'consultaDestinatario',
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var ConsultaDestinatarioRoutingModule = /** @class */ (function () {
    function ConsultaDestinatarioRoutingModule() {
    }
    ConsultaDestinatarioRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(ConsultaDestinatarioRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], ConsultaDestinatarioRoutingModule);
    return ConsultaDestinatarioRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.service.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/consultas/consulta-destinatario/consulta-destinatario.service.ts ***!
  \***********************************************************************************************************/
/*! exports provided: ConsultaDestinatarioService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaDestinatarioService", function() { return ConsultaDestinatarioService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/internal/operators/catchError */ "./node_modules/rxjs/internal/operators/catchError.js");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_5__);
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 ConsultaDestinatarioService = /** @class */ (function () {
    function ConsultaDestinatarioService(http, message) {
        this.http = http;
        this.message = message;
    }
    ConsultaDestinatarioService.prototype.consultaParceiro = function (cnpj) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/raizen/consultaParceiro/" + cnpj)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__["ErrorHandler"].handleError));
    };
    ConsultaDestinatarioService.prototype.save = function (parceiro) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/raizen/consultaParceiro", parceiro)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_2__["ErrorHandler"].handleError));
    };
    ConsultaDestinatarioService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    ConsultaDestinatarioService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], ConsultaDestinatarioService);
    return ConsultaDestinatarioService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-raizen-consultas-consulta-destinatario-consulta-destinatario-module.js.map