(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cattalini-cadastros-replicar-pedidos-replicar-pedidos-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replica-pesquisa-pedido/replica-pesquisa-pedido.component.html":
/*!*****************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replica-pesquisa-pedido/replica-pesquisa-pedido.component.html ***!
  \*****************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"replica-pesquisa-pedido-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-50\" style=\"max-height: 90vh;\">\r\n        <div class=\"modal-content\" style=\"height: 100%;\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\"\r\n                style=\"height: 100%; display: flex; flex-direction: column;\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\" style=\"max-height: calc(100vh - 240px); overflow: hidden;\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-3\">\r\n                            <label for=\"numeroPedido\">{{ 'labels.numeroPedido' | translate }}</label>\r\n                            <input type=\"text\" class=\"form-control-sm form-control\" name=\"numeroPedido\"\r\n                                id=\"numeroPedido\" [(ngModel)]=\"data.numPedido\">\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"CFVT\"\r\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                    [(ngModel)]=\"data.destinatarioIdCliente\" 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\">\r\n                            <div class=\"table-responsive\" style=\"max-height: 500px; overflow-y: auto;\">\r\n                                <table class=\"table table-striped table-bordered table-hover table-sm\">\r\n                                    <thead>\r\n                                        <tr>\r\n                                            <th>{{ 'labels.pedido' | translate }}</th>\r\n                                            <th>{{ 'labels.contrato' | translate }}</th>\r\n                                            <th>{{ 'labels.cliente' | translate }}</th>\r\n                                        </tr>\r\n                                    </thead>\r\n                                    <tbody>\r\n                                        <tr *ngFor=\"let p of listaPedidos; let i = index\" (click)=\"onRowSelect(p, i)\"\r\n                                            [ngClass]=\"{'info': i === _index}\">\r\n                                            <td>{{ p.pedido }}</td>\r\n                                            <td>{{ p.numContrato }}</td>\r\n                                            <td>{{ p.fantasia }}</td>\r\n                                        </tr>\r\n                                        <tr *ngIf=\"!listaPedidos || listaPedidos.length === 0\">\r\n                                            <td colspan=\"3\" class=\"text-center\">\r\n                                                {{ 'messages.nenhumRegistroEncontrado' | translate }}\r\n                                            </td>\r\n                                        </tr>\r\n                                    </tbody>\r\n                                </table>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button type=\"button\" class=\"btn btn-success mr-1\" (click)=\"loadGrid()\">\r\n                        {{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"submit\" class=\"btn btn-primary mr-1\" [disabled]=\"!rowSelecionada\">\r\n                        {{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                        {{ 'buttons.sair' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos-index/replicar-pedidos-index.component.html":
/*!***************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos-index/replicar-pedidos-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\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div>\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\">\n                        <app-validacoes [formErrorId]=\"'ReplicaPedido'\"></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pedido\" class=\"required\">\n                                        {{ \"labels.pedido\" | translate }}\n                                    </label>\n                                    <div class=\"input-group\">\n                                        <input type=\"text\" id=\"pedido\" name=\"pedido\"\n                                            class=\"form-control form-control-sm\" required=\"true\"\n                                            [(ngModel)]=\"data.pedido\" (blur)=\"buscaPorPedido();\">\n                                        <div class=\"input-group-prepend\">\n                                            <button type=\"button\" class=\"input-group-text\" (click)=\"openPedidoModal()\">\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                                <label for=\"contrato\">\n                                    {{ 'labels.contrato' | translate }}\n                                </label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" name=\"contrato\" id=\"contrato\"\n                                    [disabled]=\"true\" [(ngModel)]=\"data.numContrato\">\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <label for=\"cliente\">\n                                    {{ 'labels.cliente' | translate }}\n                                </label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" name=\"cliente\" id=\"cliente\"\n                                    [disabled]=\"true\" [(ngModel)]=\"data.fantasia\">\n                            </div>\n                            <div class=\"col-lg-3\">\n                                <label for=\"descrTipoMov\">&nbsp;</label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" name=\"descrTipoMov\"\n                                    id=\"descrTipoMov\" [disabled]=\"true\" [(ngModel)]=\"data.descrTipoMov\">\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <label for=\"emissao\">\n                                    {{ 'labels.emissao' | translate }}\n                                </label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" name=\"emissao\" id=\"emissao\"\n                                    [disabled]=\"true\" [value]=\"data.dtEmissao | date: 'dd/MM/yyyy'\">\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-3\">\n                                <label for=\"servico\">\n                                    {{ 'labels.servico' | translate }}\n                                </label>\n                                <input type=\"text\" class=\"form-control-sm form-control\" name=\"servico\" id=\"servico\"\n                                    [disabled]=\"true\" [(ngModel)]=\"data.descrTipoContrato\">\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <fieldset class=\"fieldset\">\n                                    <legend>{{ 'labels.cts' | translate }}</legend>\n                                    <div class=\"row\">\n                                        <div class=\"col-md-6 col-sm-12\">\n                                            <div class=\"form-group\">\n                                                <div class=\"custom-control custom-radio custom-control-inline\">\n                                                    <input id=\"ct2\" type=\"radio\" name=\"ct\"\n                                                        class=\"custom-control-input radio-success\" value=\"0\"\n                                                        [(ngModel)]=\"data.ct\">\n                                                    <label class=\"custom-control-label\" for=\"ct2\">\n                                                        {{ 'labels.cT2' | translate }}\n                                                    </label>\n                                                </div>\n                                                <div class=\"custom-control custom-radio custom-control-inline\">\n                                                    <input id=\"ct3\" type=\"radio\" name=\"ct\"\n                                                        class=\"custom-control-input radio-success\" value=\"1\"\n                                                        [(ngModel)]=\"data.ct\">\n                                                    <label class=\"custom-control-label\" for=\"ct3\">\n                                                        {{ 'labels.cT3' | translate }}\n                                                    </label>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </fieldset>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"row\">\n                            <div class=\"col-12\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                        {{ 'buttons.ok' | 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-replica-pesquisa-pedido #modalPesquisa [initialSearch]=\"data.pedido\" (dataResult)=\"refreshItens($event)\">\n</app-replica-pesquisa-pedido>");

/***/ }),

/***/ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replica-pesquisa-pedido/replica-pesquisa-pedido.component.ts":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replica-pesquisa-pedido/replica-pesquisa-pedido.component.ts ***!
  \*************************************************************************************************************************************/
/*! exports provided: ReplicaPesquisaPedidoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplicaPesquisaPedidoComponent", function() { return ReplicaPesquisaPedidoComponent; });
/* 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_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _replicar_pedidos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../replicar-pedidos.service */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.service.ts");
/* harmony import */ var _replicar_pedidos_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../replicar-pedidos.model */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.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 ReplicaPesquisaPedidoComponent = /** @class */ (function () {
    function ReplicaPesquisaPedidoComponent(service, message) {
        this.service = service;
        this.message = message;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.data = new _replicar_pedidos_model__WEBPACK_IMPORTED_MODULE_4__["ReplicarPedidos"]();
        this.listaPedidos = [];
        this.rowSelecionada = null;
        this._index = -1;
    }
    Object.defineProperty(ReplicaPesquisaPedidoComponent.prototype, "initialSearch", {
        set: function (value) {
            if (value) {
                this.data.numPedido = value;
            }
        },
        enumerable: true,
        configurable: true
    });
    ReplicaPesquisaPedidoComponent.prototype.ngOnInit = function () { };
    ReplicaPesquisaPedidoComponent.prototype.resetSelecao = function () {
        this.rowSelecionada = null;
        this._index = -1;
    };
    ReplicaPesquisaPedidoComponent.prototype.loadGrid = function () {
        var _this = this;
        this.service.getByPedido(this.data).subscribe(function (data) {
            _this.listaPedidos = data ? data : [];
        });
    };
    ReplicaPesquisaPedidoComponent.prototype.onRowSelect = function (row, index) {
        this.rowSelecionada = row;
        this._index = index;
    };
    ReplicaPesquisaPedidoComponent.prototype.onSubmit = function (form) {
        if (!this.rowSelecionada)
            return;
        this.dataResult.emit(this.rowSelecionada);
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["ModalUtilsStaticService"].closeModal("replica-pesquisa-pedido-dialog");
    };
    Object.defineProperty(ReplicaPesquisaPedidoComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.pesquisaDePedido");
        },
        enumerable: true,
        configurable: true
    });
    ReplicaPesquisaPedidoComponent.ctorParameters = function () { return [
        { type: _replicar_pedidos_service__WEBPACK_IMPORTED_MODULE_3__["ReplicarPedidosService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ReplicaPesquisaPedidoComponent.prototype, "dataResult", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object),
        __metadata("design:paramtypes", [Object])
    ], ReplicaPesquisaPedidoComponent.prototype, "initialSearch", null);
    ReplicaPesquisaPedidoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-replica-pesquisa-pedido",
            template: __importDefault(__webpack_require__(/*! raw-loader!./replica-pesquisa-pedido.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replica-pesquisa-pedido/replica-pesquisa-pedido.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_replicar_pedidos_service__WEBPACK_IMPORTED_MODULE_3__["ReplicarPedidosService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], ReplicaPesquisaPedidoComponent);
    return ReplicaPesquisaPedidoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos-index/replicar-pedidos-index.component.ts":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos-index/replicar-pedidos-index.component.ts ***!
  \***********************************************************************************************************************************/
/*! exports provided: ReplicarPedidosIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplicarPedidosIndexComponent", function() { return ReplicarPedidosIndexComponent; });
/* 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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __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 _replicar_pedidos_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../replicar-pedidos.model */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.model.ts");
/* harmony import */ var _replicar_pedidos_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../replicar-pedidos.constants */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.constants.ts");
/* harmony import */ var _replicar_pedidos_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../replicar-pedidos.service */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _replica_pesquisa_pedido_replica_pesquisa_pedido_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../replica-pesquisa-pedido/replica-pesquisa-pedido.component */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replica-pesquisa-pedido/replica-pesquisa-pedido.component.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 ReplicarPedidosIndexComponent = /** @class */ (function (_super) {
    __extends(ReplicarPedidosIndexComponent, _super);
    function ReplicarPedidosIndexComponent(router, messageService, service, funcoes, permissoesUtils) {
        var _this = _super.call(this, new _replicar_pedidos_constants__WEBPACK_IMPORTED_MODULE_9__["ReplicarPedidosConstants"](), funcoes) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.service = service;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _replicar_pedidos_model__WEBPACK_IMPORTED_MODULE_8__["ReplicarPedidos"]();
        _this.constantes = new _replicar_pedidos_constants__WEBPACK_IMPORTED_MODULE_9__["ReplicarPedidosConstants"]();
        _this.mensagens = [];
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ReplicarPedidosIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return _this.data = new _replicar_pedidos_model__WEBPACK_IMPORTED_MODULE_8__["ReplicarPedidos"](); }, function () { return _this.permissoesUtils.back(); }, true);
    };
    ReplicarPedidosIndexComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("ReplicaPedido").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.data.ct === null || this.data.ct === undefined) {
            this.messageService.warning('titles.replicarPedidos', this.messageService.translate('messages.nenhumCTSelecionadoParaReplicaDoContrato'));
            return;
        }
        this.service.replicaPedidoGrava(this.data).subscribe(function (resp) {
            if (resp && !resp.isValid) {
                _this.mensagens = _this.messageService.validationResult(resp);
                _this.messageService.warning("titles.replicarPedidos", _this.mensagens);
                return;
            }
            _this.messageService.success("titles.alteraContrato", _this.messageService.translate("messages.pedidoAlterado", { regPedido: _this.data.regPedido }));
        });
    };
    ReplicarPedidosIndexComponent.prototype.openPedidoModal = function () {
        var _this = this;
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ModalUtilsStaticService"].openModal("replica-pesquisa-pedido-dialog");
        setTimeout(function () {
            if (_this.modalPesquisaChild) {
                _this.modalPesquisaChild.resetSelecao();
                if (_this.data.pedido && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isPositive(_this.data.pedido)) {
                    _this.modalPesquisaChild.data.numPedido = _this.data.pedido;
                    _this.modalPesquisaChild.loadGrid();
                }
                else {
                    _this.modalPesquisaChild.listaPedidos = [];
                }
            }
        }, 100);
    };
    ReplicarPedidosIndexComponent.prototype.refreshItens = function (res) {
        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.service.getByReplicarPedidos(res.regPedido).toPromise()];
                    case 1:
                        _a.data = _b.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    ReplicarPedidosIndexComponent.prototype.buscaPorPedido = function () {
        var _this = this;
        if (!app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isPositive(this.data.pedido)) {
            return;
        }
        this.service.getBuscaPorPedido({ pedido: this.data.pedido }).subscribe(function (pedido) {
            if (pedido) {
                _this.data = pedido;
            }
            else {
                _this.messageService.warning("titles.replicarPedidos", "messages.pedidoNaoEncontrado");
                _this.data = new _replicar_pedidos_model__WEBPACK_IMPORTED_MODULE_8__["ReplicarPedidos"]();
            }
        });
    };
    ReplicarPedidosIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _replicar_pedidos_service__WEBPACK_IMPORTED_MODULE_10__["ReplicarPedidosService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('modalPesquisa', { static: false }),
        __metadata("design:type", _replica_pesquisa_pedido_replica_pesquisa_pedido_component__WEBPACK_IMPORTED_MODULE_12__["ReplicaPesquisaPedidoComponent"])
    ], ReplicarPedidosIndexComponent.prototype, "modalPesquisaChild", void 0);
    ReplicarPedidosIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-replicar-pedidos-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./replicar-pedidos-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos-index/replicar-pedidos-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _replicar_pedidos_service__WEBPACK_IMPORTED_MODULE_10__["ReplicarPedidosService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"]])
    ], ReplicarPedidosIndexComponent);
    return ReplicarPedidosIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.constants.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.constants.ts ***!
  \******************************************************************************************************/
/*! exports provided: ReplicarPedidosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplicarPedidosConstants", function() { return ReplicarPedidosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ReplicarPedidosConstants = /** @class */ (function () {
    function ReplicarPedidosConstants() {
        this.sisFormularioId = 65660;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "";
        this.reportId = "";
        this.reportTitulo = { "titulo": "Replicar Pedidos", "subTitulo": "" };
        this.configuracoes = [];
        this.listaIndex = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return ReplicarPedidosConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.model.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.model.ts ***!
  \**************************************************************************************************/
/*! exports provided: ReplicarPedidos */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplicarPedidos", function() { return ReplicarPedidos; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var ReplicarPedidos = /** @class */ (function (_super) {
    __extends(ReplicarPedidos, _super);
    function ReplicarPedidos() {
        var _this = _super.call(this) || this;
        _this.regPedido = 0;
        _this.numContrato = 0;
        _this.fantasia = "";
        _this.descrTipoMov = "";
        _this.dtEmissao = "";
        _this.descrTipoContrato = "";
        _this.ct = "";
        _this.regContrato = 0;
        _this.destinatarioIdCliente = 0;
        return _this;
    }
    return ReplicarPedidos;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.module.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.module.ts ***!
  \***************************************************************************************************/
/*! exports provided: ReplicarPedidosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplicarPedidosModule", function() { return ReplicarPedidosModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _replicar_pedidos_index_replicar_pedidos_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./replicar-pedidos-index/replicar-pedidos-index.component */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos-index/replicar-pedidos-index.component.ts");
/* harmony import */ var _replicar_pedidos_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./replicar-pedidos.routing.module */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.routing.module.ts");
/* harmony import */ var _replica_pesquisa_pedido_replica_pesquisa_pedido_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./replica-pesquisa-pedido/replica-pesquisa-pedido.component */ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replica-pesquisa-pedido/replica-pesquisa-pedido.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 ReplicarPedidosModule = /** @class */ (function () {
    function ReplicarPedidosModule() {
    }
    ReplicarPedidosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_replicar_pedidos_index_replicar_pedidos_index_component__WEBPACK_IMPORTED_MODULE_3__["ReplicarPedidosIndexComponent"],
                _replica_pesquisa_pedido_replica_pesquisa_pedido_component__WEBPACK_IMPORTED_MODULE_5__["ReplicaPesquisaPedidoComponent"]
            ],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _replicar_pedidos_routing_module__WEBPACK_IMPORTED_MODULE_4__["ReplicarPedidosRoutingModule"]
            ]
        })
    ], ReplicarPedidosModule);
    return ReplicarPedidosModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.routing.module.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.routing.module.ts ***!
  \***********************************************************************************************************/
/*! exports provided: ReplicarPedidosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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




var MRoutes = [
    {
        path: "",
        component: _replicar_pedidos_index_replicar_pedidos_index_component__WEBPACK_IMPORTED_MODULE_3__["ReplicarPedidosIndexComponent"],
        data: { breadcrumb: "replicarPedidos", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var ReplicarPedidosRoutingModule = /** @class */ (function () {
    function ReplicarPedidosRoutingModule() {
    }
    ReplicarPedidosRoutingModule = __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"]]
        })
    ], ReplicarPedidosRoutingModule);
    return ReplicarPedidosRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.service.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/cadastros/replicar-pedidos/replicar-pedidos.service.ts ***!
  \****************************************************************************************************/
/*! exports provided: ReplicarPedidosService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplicarPedidosService", function() { return ReplicarPedidosService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var ReplicarPedidosService = /** @class */ (function (_super) {
    __extends(ReplicarPedidosService, _super);
    function ReplicarPedidosService(http) {
        var _this = _super.call(this, http, "cattalini/replicarPedidos") || this;
        _this.http = http;
        return _this;
    }
    ReplicarPedidosService.prototype.getByReplicarPedidos = function (regPedido) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cattalini/replicarPedidos/getByReplicarPedidos/" + regPedido)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReplicarPedidosService.prototype.getByPedido = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cattalini/replicarPedidos/getByPedido", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReplicarPedidosService.prototype.replicaPedidoGrava = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cattalini/replicarPedidos/replicaPedidoGrava", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReplicarPedidosService.prototype.getBuscaPorPedido = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cattalini/replicarPedidos/getBuscaPorPedido", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ReplicarPedidosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ReplicarPedidosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ReplicarPedidosService);
    return ReplicarPedidosService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cattalini-cadastros-replicar-pedidos-replicar-pedidos-module.js.map