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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-index.component.html":
/*!**********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-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\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"dadoSelecionado\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <app-validacoes></app-validacoes>\r\n            <div class=\"table-responsive\">\r\n                <table id=\"dtIndex\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                    <thead>\r\n                        <tr>\r\n                            <th class=\"text-center\">{{ 'labels.selecionar' | translate}}</th>\r\n                            <th class=\"text-right\">{{ 'labels.pedido' | translate}}</th>\r\n                            <th>{{ 'labels.contrato' | translate}}</th>\r\n                            <th>{{ 'labels.cliente' | translate}}</th>\r\n                            <th>{{ 'labels.emissao' | translate}}</th>\r\n                            <th class=\"text-right\">{{ 'labels.total' | translate}}</th>\r\n                            <th>{{ 'labels.servicos' | translate }}</th>\r\n                            <th>{{ 'labels.mensagemErro' | translate }}</th>\r\n                        </tr>\r\n                    </thead>\r\n                    <tbody>\r\n                        <tr *ngFor=\"let d of dados; index as i\"\r\n                            [class.selected]=\"dadoSelecionado.pedido === d.pedido\"\r\n                            (click)=\"_click(d)\"\r\n                            (dblclick)=\"_dbClick(d)\">\r\n                            <td class=\"text-center\">\r\n                                <label class=\"chk\">\r\n                                    <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\r\n                                        (ngModelChange)=\"a.selecionar = $event ? true : false\"\r\n                                        [ngModel]=\"d.selecionar\"\r\n                                        style=\"margin-left:auto; margin-right:auto;\"\r\n                                        disabled>\r\n                                    <span [ngClass]=\"{'red':d.selecionar}\"></span>\r\n                                </label>\r\n                            </td>\r\n                            <td class=\"text-right\">{{ d.pedido }}</td>\r\n                            <td>{{ d.numContrato }}</td>\r\n                            <td>{{ d.fantasia }}</td>\r\n                            <td>{{ d.dtPedido | date: 'dd/MM/yyyy' }}</td>\r\n                            <td class=\"text-right\">{{ d.totalPed | formatCurrency: 2 }}</td>\r\n                            <td>{{ d.servicos }}</td>\r\n                            <td>{{ d.msgErro }}</td>\r\n                        </tr>\r\n                        <tr *ngIf=\"!hasDados\">\r\n                            <th colspan=\"8\" style=\"text-align: center\">\r\n                                {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                            </th>\r\n                        </tr>\r\n                    </tbody>\r\n                </table>\r\n            </div>\r\n            <div class=\"mt-4\">\r\n                <button class=\"btn btn-success mr-2\" (click)=\"selectAll()\" type=\"button\"\r\n                    [disabled]=\"dados.length === 0\">\r\n                    {{ 'buttons.todos' | translate }}\r\n                </button>\r\n                <button class=\"btn btn-success mr-2\" (click)=\"gravar()\" type=\"button\"\r\n                    [disabled]=\"registrosSelecionados.length === 0\">\r\n                    {{ 'buttons.processar' | translate }}\r\n                </button>\r\n                <button class=\"btn btn-success mr-2\" (click)=\"refresh()\" type=\"button\">\r\n                    {{ 'buttons.cancelar' | translate }}\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n");

/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-index.component.scss":
/*!********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-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"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 18px;\n  height: 18px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\n.selected {\n  background-color: #b4d7eb !important;\n}\n\n.table th,\n.table td {\n  white-space: nowrap;\n}\n\n.table-responsive {\n  overflow: auto;\n  max-height: 525px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY2F0dGFsaW5pL21vdmltZW50b3MvaW50ZWdyYWNhby1wZWRpZG9zLXNhcC9pbnRlZ3JhY2FvLXBlZGlkb3Mtc2FwLWluZGV4L0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXGNhdHRhbGluaVxcbW92aW1lbnRvc1xcaW50ZWdyYWNhby1wZWRpZG9zLXNhcFxcaW50ZWdyYWNhby1wZWRpZG9zLXNhcC1pbmRleFxcaW50ZWdyYWNhby1wZWRpZG9zLXNhcC1pbmRleC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY2F0dGFsaW5pL21vdmltZW50b3MvaW50ZWdyYWNhby1wZWRpZG9zLXNhcC9pbnRlZ3JhY2FvLXBlZGlkb3Mtc2FwLWluZGV4L2ludGVncmFjYW8tcGVkaWRvcy1zYXAtaW5kZXguY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0FDQ0o7O0FERUE7RUFDSSxvQ0FBQTtBQ0NKOztBREVBOztFQUVJLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxjQUFBO0VBQ0EsaUJBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NhdHRhbGluaS9tb3ZpbWVudG9zL2ludGVncmFjYW8tcGVkaWRvcy1zYXAvaW50ZWdyYWNhby1wZWRpZG9zLXNhcC1pbmRleC9pbnRlZ3JhY2FvLXBlZGlkb3Mtc2FwLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE4cHg7XHJcbiAgICBoZWlnaHQ6IDE4cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuLnNlbGVjdGVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNiNGQ3ZWIgIWltcG9ydGFudDtcclxufVxyXG5cclxuLnRhYmxlIHRoLFxyXG4udGFibGUgdGQge1xyXG4gICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcclxufVxyXG5cclxuLnRhYmxlLXJlc3BvbnNpdmUge1xyXG4gICAgb3ZlcmZsb3c6IGF1dG87XHJcbiAgICBtYXgtaGVpZ2h0OiA1MjVweDtcclxufVxyXG4iLCIuY2hrIGlucHV0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNoayBzcGFuIHtcbiAgd2lkdGg6IDE4cHg7XG4gIGhlaWdodDogMThweDtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XG4gIGJvcmRlci1yYWRpdXM6IDE4cHg7XG59XG5cbnNwYW4ucmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcbn1cblxuLnNlbGVjdGVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2I0ZDdlYiAhaW1wb3J0YW50O1xufVxuXG4udGFibGUgdGgsXG4udGFibGUgdGQge1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xufVxuXG4udGFibGUtcmVzcG9uc2l2ZSB7XG4gIG92ZXJmbG93OiBhdXRvO1xuICBtYXgtaGVpZ2h0OiA1MjVweDtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-index.component.ts":
/*!******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-index.component.ts ***!
  \******************************************************************************************************************************************************/
/*! exports provided: IntegracaoPedidosSapIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPedidosSapIndexComponent", function() { return IntegracaoPedidosSapIndexComponent; });
/* 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 _integracao_pedidos_sap_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../integracao-pedidos-sap.constants */ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.constants.ts");
/* harmony import */ var _integracao_pedidos_sap_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../integracao-pedidos-sap.service */ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/email/email.service */ "./src/app/shared/services/funcoes/email/email.service.ts");
/* harmony import */ var _integracao_pedidos_sap_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../integracao-pedidos-sap.model */ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.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 __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 IntegracaoPedidosSapIndexComponent = /** @class */ (function (_super) {
    __extends(IntegracaoPedidosSapIndexComponent, _super);
    function IntegracaoPedidosSapIndexComponent(router, service, activatedRoute, datatablesService, messageService, emailService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _integracao_pedidos_sap_constants__WEBPACK_IMPORTED_MODULE_2__["IntegracaoPedidosSapConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.activatedRoute = activatedRoute;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.emailService = emailService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.dadoSelecionado = new _integracao_pedidos_sap_model__WEBPACK_IMPORTED_MODULE_11__["IntegracaoPedidosSap"]();
        _this.dados = [];
        _this.hasDados = false;
        _this.registrosSelecionados = [];
        _this.constantes = new _integracao_pedidos_sap_constants__WEBPACK_IMPORTED_MODULE_2__["IntegracaoPedidosSapConstants"]();
        _this.mensagens = [];
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_9__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    IntegracaoPedidosSapIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils
            .verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.service.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    IntegracaoPedidosSapIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getIntegracoes().subscribe(function (resp) {
            _this.dadoSelecionado = new _integracao_pedidos_sap_model__WEBPACK_IMPORTED_MODULE_11__["IntegracaoPedidosSap"]();
            _this.registrosSelecionados = [];
            _this.dados = resp;
            _this.hasDados = resp && resp.length > 0;
        });
    };
    IntegracaoPedidosSapIndexComponent.prototype._click = function (dado) {
        this.dadoSelecionado = dado;
    };
    IntegracaoPedidosSapIndexComponent.prototype._dbClick = function (dado) {
        dado.selecionar = dado.selecionar ? false : true;
        this.atualizarDadosSelecionados();
    };
    IntegracaoPedidosSapIndexComponent.prototype.selectAll = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.dados) && this.dados.length > 0) {
            this.dados.forEach(function (d) {
                d.selecionar = d.selecionar ? false : true;
            });
            this.atualizarDadosSelecionados();
        }
    };
    IntegracaoPedidosSapIndexComponent.prototype.atualizarDadosSelecionados = function () {
        this.registrosSelecionados = this.dados.filter(function (d) { return d.selecionar === true; }).map(function (d) { return d.regPedido; });
    };
    IntegracaoPedidosSapIndexComponent.prototype.gravar = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (_this.registrosSelecionados.length === 0) {
                return;
            }
            var mensagem = _this.registrosSelecionados.length === 1 ?
                "messages.confirmaEnvioRegistroParaSap" :
                "messages.confirmaEnvioRegistrosMarcadosParaSap";
            _this.messageService.confirm(_this.constantes.nomeForm, mensagem, "", function () {
                _this.service
                    .reenviarRegistros(_this.registrosSelecionados)
                    .subscribe(function (result) {
                    if (!result.isValid) {
                        _this.mensagens = _this.messageService.validationResult(result);
                        _this.mensagens.forEach(function (msg) {
                            _this.messageService.error(_this.constantes.nomeForm, msg);
                        });
                    }
                    else {
                        _this.messageService.success(_this.constantes.nomeForm, "messages.registrosReenviadosComSucesso");
                        _this.messageService.info(_this.constantes.nomeForm, "messages.aguardeAlgunsMinutosParaServicoReenviarRegistro");
                        _this.refresh();
                    }
                });
            }, false);
        });
    };
    IntegracaoPedidosSapIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            var filtro = new _integracao_pedidos_sap_model__WEBPACK_IMPORTED_MODULE_11__["IntegracaoPedidosSapFiltro"]();
            _this.constantes.paramRelatorio = {
                dataI: filtro.dataI,
                dataF: filtro.dataF
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    IntegracaoPedidosSapIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    IntegracaoPedidosSapIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _integracao_pedidos_sap_service__WEBPACK_IMPORTED_MODULE_3__["IntegracaoPedidosSapService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: app_shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_10__["EmailService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    IntegracaoPedidosSapIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-integracao-pedidos-sap-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./integracao-pedidos-sap-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./integracao-pedidos-sap-index.component.scss */ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _integracao_pedidos_sap_service__WEBPACK_IMPORTED_MODULE_3__["IntegracaoPedidosSapService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            app_shared_services_funcoes_email_email_service__WEBPACK_IMPORTED_MODULE_10__["EmailService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], IntegracaoPedidosSapIndexComponent);
    return IntegracaoPedidosSapIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.constants.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.constants.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: IntegracaoPedidosSapConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPedidosSapConstants", function() { return IntegracaoPedidosSapConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var IntegracaoPedidosSapConstants = /** @class */ (function () {
    function IntegracaoPedidosSapConstants() {
        this.sisFormularioId = 140215;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.processar" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.integracaoPedidosSap";
        this.reportId = "CAT0060";
        this.reportTitulo = { "titulo": "Integração Pedidos SAP", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return IntegracaoPedidosSapConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.model.ts":
/*!***************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.model.ts ***!
  \***************************************************************************************************************/
/*! exports provided: IntegracaoPedidosSap, IntegracaoPedidosSapFiltro */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

var IntegracaoPedidosSapFiltro = /** @class */ (function () {
    function IntegracaoPedidosSapFiltro() {
        var data = new Date();
        this.dataI = new Date(data.getFullYear(), data.getMonth(), data.getDate() - 1);
        this.dataF = data;
    }
    return IntegracaoPedidosSapFiltro;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.module.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.module.ts ***!
  \****************************************************************************************************************/
/*! exports provided: IntegracaoPedidosSapModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPedidosSapModule", function() { return IntegracaoPedidosSapModule; });
/* 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 _integracao_pedidos_sap_index_integracao_pedidos_sap_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./integracao-pedidos-sap-index/integracao-pedidos-sap-index.component */ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-index.component.ts");
/* harmony import */ var _integracao_pedidos_sap_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./integracao-pedidos-sap.routing.module */ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.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 IntegracaoPedidosSapModule = /** @class */ (function () {
    function IntegracaoPedidosSapModule() {
    }
    IntegracaoPedidosSapModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _integracao_pedidos_sap_index_integracao_pedidos_sap_index_component__WEBPACK_IMPORTED_MODULE_2__["IntegracaoPedidosSapIndexComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _integracao_pedidos_sap_routing_module__WEBPACK_IMPORTED_MODULE_3__["IntegracaoPedidosSapRoutingModule"]
            ]
        })
    ], IntegracaoPedidosSapModule);
    return IntegracaoPedidosSapModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.routing.module.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.routing.module.ts ***!
  \************************************************************************************************************************/
/*! exports provided: IntegracaoPedidosSapRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPedidosSapRoutingModule", function() { return IntegracaoPedidosSapRoutingModule; });
/* 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 _integracao_pedidos_sap_index_integracao_pedidos_sap_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./integracao-pedidos-sap-index/integracao-pedidos-sap-index.component */ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap-index/integracao-pedidos-sap-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 IntegracaoPedidosSapRoutes = [
    {
        path: "",
        component: _integracao_pedidos_sap_index_integracao_pedidos_sap_index_component__WEBPACK_IMPORTED_MODULE_3__["IntegracaoPedidosSapIndexComponent"],
        data: {
            breadcrumb: "integracaoPedidosSap",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var IntegracaoPedidosSapRoutingModule = /** @class */ (function () {
    function IntegracaoPedidosSapRoutingModule() {
    }
    IntegracaoPedidosSapRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(IntegracaoPedidosSapRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], IntegracaoPedidosSapRoutingModule);
    return IntegracaoPedidosSapRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.service.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.service.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: IntegracaoPedidosSapService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegracaoPedidosSapService", function() { return IntegracaoPedidosSapService; });
/* 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 environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _integracao_pedidos_sap_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./integracao-pedidos-sap.model */ "./src/app/pages/especificos/cattalini/movimentos/integracao-pedidos-sap/integracao-pedidos-sap.model.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/login/login.model */ "./src/app/pages/login/login.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 __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 IntegracaoPedidosSapService = /** @class */ (function (_super) {
    __extends(IntegracaoPedidosSapService, _super);
    function IntegracaoPedidosSapService(http, loginService) {
        var _this = _super.call(this, http, "cattalini/integracaoPedidosSap") || this;
        _this.http = http;
        _this.loginService = loginService;
        _this.dadosLogin = new app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_8__["Login"]();
        _this.dadosLogin = loginService.getLogin();
        return _this;
    }
    IntegracaoPedidosSapService.prototype.getIntegracoes = function () {
        var filtro = new _integracao_pedidos_sap_model__WEBPACK_IMPORTED_MODULE_5__["IntegracaoPedidosSapFiltro"]();
        filtro.filialId = this.dadosLogin.filialId;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/integracaoPedidosSap/getIntegracoes", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    IntegracaoPedidosSapService.prototype.reenviarRegistros = function (registros) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/integracaoPedidosSap/reenviarRegistros", registros)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    IntegracaoPedidosSapService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    IntegracaoPedidosSapService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], IntegracaoPedidosSapService);
    return IntegracaoPedidosSapService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_6__["SpecificsBaseService"]));



/***/ }),

/***/ "./src/app/shared/services/funcoes/email/email.service.ts":
/*!****************************************************************!*\
  !*** ./src/app/shared/services/funcoes/email/email.service.ts ***!
  \****************************************************************/
/*! exports provided: EmailService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailService", function() { return EmailService; });
/* harmony import */ var _base_base_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../environments/environment */ "./src/environments/environment.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 EmailService = /** @class */ (function (_super) {
    __extends(EmailService, _super);
    function EmailService(http) {
        var _this = _super.call(this, http, "controlle/enviarEmail") || this;
        _this.http = http;
        return _this;
    }
    EmailService.prototype.enviarEmail = function (data) {
        return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controlle/enviarEmail/", data);
    };
    EmailService.prototype.IsValidEmailAddress = function (email) {
        var exclude = email.search("/[^@.-w]|^[_@.-]|[._-]{2}|[@.]{2}|(@)[^@]*1/");
        var check = email.search("/@[w-]+./");
        var checkend = email.search("/.[a-zA-Z]{2,3}$/");
        if ((exclude !== -1)
            || (check === -1)
            || (checkend === -1)) {
            return false;
        }
        else {
            return true;
        }
    };
    EmailService.prototype.IsValidEmailAddressed = function (emails) {
        var regex = /^((?!\.)[\w-_.]*[^.])(@\w+)(\.\w+(\.\w+)?[^.\W])$/gm;
        var emailList = emails.split(";");
        var isAllValid = true;
        emailList.forEach(function (e) {
            if (!regex.test(e) && isAllValid) {
                isAllValid = false;
            }
        });
        return isAllValid;
    };
    EmailService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    EmailService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], EmailService);
    return EmailService;
}(_base_base_service__WEBPACK_IMPORTED_MODULE_0__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cattalini-movimentos-integracao-pedidos-sap-integracao-pedidos-sap-module.js.map