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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.component.html":
/*!***************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.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=\"transmissao-de-dados-envio-retorno\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-lg\" role=\"document\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.envioRetorno' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <ul class=\"nav nav-tabs \">\r\n                        <li class=\"nav-item\">\r\n                            <a [class]=\"'nav-link ' + reqClassActive\" data-toggle=\"tab\" href=\"#envio\">{{\"labels.envio\" | translate}}</a>\r\n                        </li>\r\n                        <li class=\"nav-item\">\r\n                            <a [class]=\"'nav-link ' + resClassActive\" data-toggle=\"tab\"\r\n                                href=\"#retorno\">{{\"labels.retorno\" | translate}}</a>\r\n                        </li>\r\n                    </ul>\r\n                    <div class=\"tab-content top\">\r\n                        <div [class]=\"'tab-pane ' + reqClassActive\" id=\"envio\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-12 col-md-12 col-sm-12 div-max\">\r\n                                    <pre id=\"beautifiedReq\"></pre>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div [class]=\"'tab-pane ' + resClassActive\" id=\"retorno\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-12 col-md-12 col-sm-12 div-max\">\r\n                                    <pre id=\"beautifiedRes\"></pre>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" data-dismiss=\"modal\">\r\n                        {{ 'buttons.ok' | 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/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-index/transmissao-de-dados-index.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-index/transmissao-de-dados-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 [sisFormularioId]=\"constantes.sisFormularioId\" [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-validacoes></app-validacoes>\n            <app-form-legenda></app-form-legenda>\n            <div class=\"clearfix\">\n                <ul class=\"nav nav-tabs\">\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link\" (click)=\"abaSel = 1\" data-toggle=\"tab\" href=\"#emp\">{{\"labels.empresa\" |\n                            translate}}</a>\n                    </li>\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link active show\" data-toggle=\"tab\" (click)=\"abaSel = 2\"\n                            href=\"#tanq\">{{\"labels.tanque\" | translate}}</a>\n                    </li>\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaSel = 3\" href=\"#est\">{{\"labels.estoque\" |\n                            translate}}</a>\n                    </li>\n                </ul>\n            </div>\n            <div class=\"tab-content top\">\n                <div class=\"tab-pane\" id=\"emp\">\n                    <div class=\"card-body widget-body\">\n\n                        <app-table>\n                            <div class=\"table-responsive\" style=\"overflow: auto;\">\n                                <table id=\"monitorIntegracaoSap\"\n                                    class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                    <thead>\n                                        <tr>\n                                            <th style=\"display: none\">{{ 'labels.id' | translate}}</th>\n                                            <th>{{ 'labels.razaoSocial' | translate}}</th>\n                                            <th>{{ 'labels.fantasia' | translate}}</th>\n                                            <th>{{ 'labels.integrado' | translate}}</th>\n                                            <th>{{ 'labels.dataDeIntegracao' | translate}}</th>\n                                        </tr>\n                                    </thead>\n                                    <tbody>\n                                        <tr *ngFor=\"let t of dados\" (click)=\"onClick(t)\"\n                                            [ngClass]=\"{'info': data?.filial === t?.filial }\">\n                                            <td style=\"display: none\">{{ t.filial }}</td>\n                                            <td>{{ t.razaoSocial }}</td>\n                                            <td>{{ t.fantasia }}</td>\n                                            <td>{{ t.flagCodesp  }}</td>\n                                            <td>{{ t.dtCodesp | date: 'dd/MM/yyyy HH:mm:ss'}}\n                                            </td>\n                                        </tr>\n                                        <tr *ngIf=\"!hasDados\">\n                                            <th colspan=\"4\" style=\"text-align: center\">\n                                                {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                            </th>\n                                        </tr>\n                                    </tbody>\n                                </table>\n                            </div>\n                        </app-table>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"row\">\n                            <div class=\"col-4\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" (click)=\"codespPreparaTanque()\" type=\"button\">\n                                        {{ 'buttons.atualizarDados' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"tab-pane active show\" id=\"tanq\">\n                    <app-transmissao-de-dados-tanque></app-transmissao-de-dados-tanque>\n                </div>\n                <div class=\"tab-pane\" id=\"est\">\n                    <table id=\"dtEstoque\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                    </table>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-4\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" (click)=\"excluirEstoque()\" type=\"button\">\n                                    {{ 'buttons.excluirEstoque' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\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-transmissao-de-dados-envio-retorno></app-transmissao-de-dados-envio-retorno>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.component.html":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.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-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"monitorIntegracaoSap\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th>{{ 'labels.sel' | translate }}</th>\n                    <th>{{ 'labels.deposito' | translate }}</th>\n                    <th>{{ 'labels.capacidade' | translate }}</th>\n                    <th>{{ 'labels.unidade' | translate }}</th>\n                    <th>{{ 'labels.integrado' | translate }}</th>\n                    <th>{{ 'labels.data' | translate }}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dadosI; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"sel\" name=\"sel\" value=\"checked\"\n                                (ngModelChange)=\"t.sel = $event ? 'S' : 'N'\" [ngModel]=\"t.sel ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.sel == 'S' ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"white-space: nowrap;\">{{ t.deposito }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.capacidade }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.unidade }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.flagCodesp }}</td>\n                    <td style=\"white-space: nowrap;\">{{ t.dtCodesp | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDados\">\n                    <th colspan=\"6\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n<div class=\"row\">\n    <div class=\"col-12\">\n        <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\" [disabled]=\"dados.length === 0 \">\n            {{ 'buttons.selecionarTodos' | translate }}\n        </button>\n        <button class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\" type=\"button\"\n            [disabled]=\"dados.length === 0 \">\n            {{ 'buttons.desmarcarTodos' | translate }}\n        </button>\n        <button class=\"btn btn-success mr-2\" (click)=\"incluirDesativarDeposito('S')\" type=\"button\">\n            {{ 'buttons.incluirDeposito' | translate }}\n        </button>\n        <button class=\"btn btn-success mr-2\" (click)=\"incluirDesativarDeposito('N')\" type=\"button\">\n            {{ 'buttons.desativarDeposito' | translate }}\n        </button>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.component.ts":
/*!***********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.component.ts ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: TransmissaoDeDadosEnvioRetornoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosEnvioRetornoComponent", function() { return TransmissaoDeDadosEnvioRetornoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transmissao_de_dados_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../transmissao-de-dados.constants */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.constants.ts");
/* harmony import */ var _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../transmissao-de-dados.service */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.service.ts");
/* harmony import */ var _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../transmissao-de-dados.model */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.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 __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 TransmissaoDeDadosEnvioRetornoComponent = /** @class */ (function () {
    function TransmissaoDeDadosEnvioRetornoComponent(funcoesService, messageService, loginService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.loginService = loginService;
        this.service = service;
        this.data = new _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_7__["TransmissaoDeDadosEnvioRetornoDto"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.mensagens = [];
        this.constantes = new _transmissao_de_dados_constants__WEBPACK_IMPORTED_MODULE_5__["TransmissaoDeDadosConstants"]();
        this.reqClassActive = "active show";
        this.resClassActive = "";
    }
    TransmissaoDeDadosEnvioRetornoComponent.prototype.ngOnInit = function () {
        this.data = new _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_7__["TransmissaoDeDadosEnvioRetornoDto"]();
    };
    TransmissaoDeDadosEnvioRetornoComponent.prototype.selected = function (data) {
        return __awaiter(this, void 0, void 0, function () {
            var formattedReq, formattedRes;
            return __generator(this, function (_a) {
                this.data = data;
                if (this.data.jsonRequest && this.data.jsonRequest.trim().startsWith("<")) {
                    this.reqClassActive = "active show";
                    this.resClassActive = "";
                    formattedReq = this.formatXml(this.data.jsonRequest);
                    document.getElementById("beautifiedReq").innerText = formattedReq;
                }
                else if (this.data.jsonRequest) {
                    this.reqClassActive = "active show";
                    this.resClassActive = "";
                    document.getElementById("beautifiedReq").innerText = this.data.jsonRequest;
                }
                if (this.data.jsonResponse && this.data.jsonResponse.trim().startsWith("<")) {
                    this.reqClassActive = "";
                    this.resClassActive = "active show";
                    formattedRes = this.formatXml(this.data.jsonResponse);
                    document.getElementById("beautifiedRes").innerText = formattedRes;
                }
                else if (this.data.jsonResponse) {
                    this.reqClassActive = "";
                    this.resClassActive = "active show";
                    document.getElementById("beautifiedRes").innerText = this.data.jsonResponse;
                }
                return [2 /*return*/];
            });
        });
    };
    TransmissaoDeDadosEnvioRetornoComponent.prototype.formatXml = function (xml) {
        var PADDING = "  ";
        var pad = 0;
        xml = xml.replace(/>\s*</g, ">\n<").trim();
        return xml.split("\n").map(function (line) {
            line = line.trim();
            if (/^<[\w:-]+\s+[^>]+>$/.test(line)) {
                var tagMatch = line.match(/^<([\w:-]+)\s+(.+)>$/);
                if (tagMatch) {
                    var tagName = tagMatch[1];
                    var attrString = tagMatch[2];
                    var attrs = attrString.match(/[\w:-]+=".*?"/g) || [];
                    var formattedAttrs = attrs.map(function (attr) { return "" + PADDING + attr; }).join("\n");
                    line = "<" + tagName + "\n" + formattedAttrs + ">";
                }
            }
            if (line.match(/^<\/\w/)) {
                pad = Math.max(pad - 1, 0);
            }
            var result = PADDING.repeat(pad) + line;
            if (/^<[^!?\/][^>]*[^\/]>$/.test(line)) {
                pad++;
            }
            return result;
        }).join("\n");
    };
    TransmissaoDeDadosEnvioRetornoComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_6__["TransmissaoDeDadosService"] }
    ]; };
    TransmissaoDeDadosEnvioRetornoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transmissao-de-dados-envio-retorno",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transmissao-de-dados-envio-retorno.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_6__["TransmissaoDeDadosService"]])
    ], TransmissaoDeDadosEnvioRetornoComponent);
    return TransmissaoDeDadosEnvioRetornoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-index/transmissao-de-dados-index.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-index/transmissao-de-dados-index.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: TransmissaoDeDadosIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosIndexComponent", function() { return TransmissaoDeDadosIndexComponent; });
/* 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 _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../transmissao-de-dados.model */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.model.ts");
/* harmony import */ var _transmissao_de_dados_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../transmissao-de-dados.constants */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.constants.ts");
/* harmony import */ var _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../transmissao-de-dados.service */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _transmissao_de_dados_envio_retorno_transmissao_de_dados_envio_retorno_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.component */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.component.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


















var TransmissaoDeDadosIndexComponent = /** @class */ (function (_super) {
    __extends(TransmissaoDeDadosIndexComponent, _super);
    function TransmissaoDeDadosIndexComponent(router, messageService, activatedRoute, funcoesService, permissoesUtils, service, loginService, datatablesServiceEst, datatablesServiceEmp) {
        var _this = _super.call(this, new _transmissao_de_dados_constants__WEBPACK_IMPORTED_MODULE_10__["TransmissaoDeDadosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.datatablesServiceEst = datatablesServiceEst;
        _this.datatablesServiceEmp = datatablesServiceEmp;
        _this.mensagens = [];
        _this.constantes = new _transmissao_de_dados_constants__WEBPACK_IMPORTED_MODULE_10__["TransmissaoDeDadosConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_7__["Mascaras"]();
        _this.dataEmpresa = new _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_9__["TransmissaoDeDadosEmpresa"]();
        _this.dataEstoque = new _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_9__["TransmissaoDeDadosEstoque"]();
        _this.envRet = new _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_9__["TransmissaoDeDadosEnvioRetornoDto"]();
        _this.abaSel = 2;
        _this.dadosEmpresa = [];
        _this.codespPreparaTanque = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () {
                _this.service.codespPreparaTanque().subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result);
                    if (!result.isValid) {
                        _this.messageService.warning(_this.service.titles, _this.mensagens);
                    }
                    else {
                        _this.refresh();
                    }
                });
            });
        };
        _this.visualizarLog = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                var chave;
                var rotina;
                switch (_this.abaSel) {
                    case 1:
                        chave = _this.dataEmpresa.filial;
                        rotina = "ManterEmpresa";
                        _this.log(chave, rotina);
                        break;
                    case 2:
                        chave = _this.service.deposito;
                        if (_this.service.flagCodesp === "S") {
                            rotina = "IncluirDeposito";
                            _this.log(chave, rotina);
                        }
                        else if (_this.service.flagCodesp === "N") {
                            rotina = "DesativarDeposito";
                            _this.log(chave, rotina);
                        }
                        break;
                    case 3:
                        rotina = "IncluirEstoque";
                        chave = _this.dataEstoque.codCodesp;
                        _this.log(chave, rotina);
                        break;
                    default:
                }
            });
        };
        _this.excluirEstoque = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 6, function () {
                _this.service.excluirEstoque(_this.dataEstoque.codCodesp).subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result);
                    if (!result.isValid) {
                        _this.messageService.warning(_this.service.titles, _this.mensagens);
                    }
                    else {
                        _this.messageService.warning(_this.service.titles, "messages.registroExcluidoComSucesso");
                        _this.refresh();
                    }
                });
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TransmissaoDeDadosIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'visualizarLog', func: function () { return _this.visualizarLog; } }
        ]);
    };
    TransmissaoDeDadosIndexComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
    };
    TransmissaoDeDadosIndexComponent.prototype.refresh = function () {
        this.refreshAbaEmp();
        this.refreshAbaEstoq();
    };
    Object.defineProperty(TransmissaoDeDadosIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.dadosEmpresa);
            }
            var dados = this.dadosEmpresa.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].exist(v.razaoSocial, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtCodesp), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].exist(v.flagCodesp, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].exist(v.fantasia, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransmissaoDeDadosIndexComponent.prototype, "hasDados", {
        get: function () {
            if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ArrayUtilsStaticService"].any(this.dadosEmpresa))
                return false;
            return this.dadosEmpresa.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    TransmissaoDeDadosIndexComponent.prototype.refreshAbaEmp = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.service.getByAbaEmpresa().subscribe(function (resp) {
                    _this.dadosEmpresa = resp;
                });
                return [2 /*return*/];
            });
        });
    };
    TransmissaoDeDadosIndexComponent.prototype.onClick = function (data) {
        this.dataEmpresa = data;
    };
    TransmissaoDeDadosIndexComponent.prototype.refreshAbaEstoq = function () {
        var _this = this;
        this.service.getByAbaEstoque().subscribe(function (resp) {
            var columns = [
                _this.datatablesServiceEst.getDataString("codCodesp", "codDesp"),
                _this.datatablesServiceEst.getDataString("tipoProduto", "tipoProduto"),
                _this.datatablesServiceEst.getDataString("identificacaoDeposito", "identificacaoDeposito"),
                _this.datatablesServiceEst.getDataString("capacidade", "capacidade"),
                _this.datatablesServiceEst.getDataString("carga", "carga"),
                _this.datatablesServiceEst.getDataString("numeroOnu", "numeroOnu"),
                _this.datatablesServiceEst.getDataString("classe", "classe"),
                _this.datatablesServiceEst.getDataString("subClasse", "subClasse"),
                _this.datatablesServiceEst.getDataDateTime("data", "data", "DD/MM/YYYY HH:mm:ss"),
                _this.datatablesServiceEst.getDataString("entrada", "entrada"),
                _this.datatablesServiceEst.getDataString("saida", "saida"),
                _this.datatablesServiceEst.getDataString("saldo", "saldo"),
                _this.datatablesServiceEst.getDataString("unidadeMedida", "unidadeMedida"),
                _this.datatablesServiceEst.getDataString("mensagem", "mensagem"),
            ];
            _this.datatablesServiceEst.toDataTable({ tableId: 'dtEstoque', columns: columns, data: resp }, function (aData) {
                _this.dataEstoque = aData;
            });
        });
    };
    TransmissaoDeDadosIndexComponent.prototype.log = function (chave, rotina) {
        return __awaiter(this, void 0, void 0, function () {
            var result;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.visualizarLog(chave, rotina).toPromise()];
                    case 1:
                        result = _a.sent();
                        this.envRet = result;
                        if (!this.envRet)
                            return [2 /*return*/];
                        this.childTransmissaoDeDadosEnvioRetornoComponent.selected(this.envRet);
                        jQuery("#transmissao-de-dados-envio-retorno").modal("show");
                        setTimeout(function (_) {
                            if (!!_this.envRet.jsonRequest)
                                jQuery("a.nav-link[href='#envio']").click();
                            else
                                jQuery("a.nav-link[href='#retorno']").click();
                        });
                        return [2 /*return*/];
                }
            });
        });
    };
    TransmissaoDeDadosIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TransmissaoDeDadosIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { 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"] },
        { type: _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_11__["TransmissaoDeDadosService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_transmissao_de_dados_envio_retorno_transmissao_de_dados_envio_retorno_component__WEBPACK_IMPORTED_MODULE_13__["TransmissaoDeDadosEnvioRetornoComponent"], { static: false }),
        __metadata("design:type", _transmissao_de_dados_envio_retorno_transmissao_de_dados_envio_retorno_component__WEBPACK_IMPORTED_MODULE_13__["TransmissaoDeDadosEnvioRetornoComponent"])
    ], TransmissaoDeDadosIndexComponent.prototype, "childTransmissaoDeDadosEnvioRetornoComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_14__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_14__["TableComponent"])
    ], TransmissaoDeDadosIndexComponent.prototype, "table", void 0);
    TransmissaoDeDadosIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-transmissao-de-dados-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./transmissao-de-dados-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-index/transmissao-de-dados-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"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_11__["TransmissaoDeDadosService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"]])
    ], TransmissaoDeDadosIndexComponent);
    return TransmissaoDeDadosIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.component.scss":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.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: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvYWdlby9tb3ZpbWVudG9zL3RyYW5zbWlzc2FvLWRlLWRhZG9zL3RyYW5zbWlzc2FvLWRlLWRhZG9zLXRhbnF1ZS9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxhZ2VvXFxtb3ZpbWVudG9zXFx0cmFuc21pc3Nhby1kZS1kYWRvc1xcdHJhbnNtaXNzYW8tZGUtZGFkb3MtdGFucXVlXFx0cmFuc21pc3Nhby1kZS1kYWRvcy10YW5xdWUuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2FnZW8vbW92aW1lbnRvcy90cmFuc21pc3Nhby1kZS1kYWRvcy90cmFuc21pc3Nhby1kZS1kYWRvcy10YW5xdWUvdHJhbnNtaXNzYW8tZGUtZGFkb3MtdGFucXVlLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvYWdlby9tb3ZpbWVudG9zL3RyYW5zbWlzc2FvLWRlLWRhZG9zL3RyYW5zbWlzc2FvLWRlLWRhZG9zLXRhbnF1ZS90cmFuc21pc3Nhby1kZS1kYWRvcy10YW5xdWUuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgICB3aWR0aDogMTJweDtcclxuICAgIGhlaWdodDogMTJweDtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxMDAlO1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59IiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxMnB4O1xuICBoZWlnaHQ6IDEycHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxMDAlO1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.component.ts":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.component.ts ***!
  \*********************************************************************************************************************************************/
/*! exports provided: TransmissaoDeDadosTanqueComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosTanqueComponent", function() { return TransmissaoDeDadosTanqueComponent; });
/* 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 _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../transmissao-de-dados.model */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.model.ts");
/* harmony import */ var _transmissao_de_dados_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../transmissao-de-dados.constants */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.constants.ts");
/* harmony import */ var _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../transmissao-de-dados.service */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};















var TransmissaoDeDadosTanqueComponent = /** @class */ (function (_super) {
    __extends(TransmissaoDeDadosTanqueComponent, _super);
    function TransmissaoDeDadosTanqueComponent(router, messageService, activatedRoute, funcoesService, permissoesUtils, service, loginService, datatablesService) {
        var _this = _super.call(this, new _transmissao_de_dados_constants__WEBPACK_IMPORTED_MODULE_11__["TransmissaoDeDadosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.datatablesService = datatablesService;
        _this.data = new _transmissao_de_dados_model__WEBPACK_IMPORTED_MODULE_10__["TransmissaoDeDadosTanque"]();
        _this.mensagens = [];
        _this.constantes = new _transmissao_de_dados_constants__WEBPACK_IMPORTED_MODULE_11__["TransmissaoDeDadosConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_7__["Mascaras"]();
        _this.hasDados = false;
        _this.dados = [];
        _this.dadosSelecionado = [];
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TransmissaoDeDadosTanqueComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    TransmissaoDeDadosTanqueComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
            return;
        }
    };
    TransmissaoDeDadosTanqueComponent.prototype._dbClick = function (obj) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.onMarcarDesmarcar(obj);
            _this.processar(obj.deposito);
        });
    };
    TransmissaoDeDadosTanqueComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.sel = obj.sel === 'S' ? 'N' : 'S';
        this.dados.forEach(function (d) {
            if (d.deposito === obj.deposito) {
                d.sel = obj.sel;
            }
        });
    };
    TransmissaoDeDadosTanqueComponent.prototype._click = function (item, index) {
        this.data.deposito = item.deposito;
        this.service.deposito = item.deposito;
        this.service.flagCodesp = item.flagCodesp;
    };
    TransmissaoDeDadosTanqueComponent.prototype.marcarTodos = function () {
        var _this = this;
        this.messageService.confirm(this.service.titles, "messages.selecionarTodos", null, function () {
            _this.dados.forEach(function (e) { return _this.onMarcarTodos(e); });
            _this.processarTodos();
        }, false);
    };
    TransmissaoDeDadosTanqueComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        this.messageService.confirm(this.service.titles, "messages.desmarcarTodos", null, function () {
            _this.dados.forEach(function (e) { return _this.onDesmarcarTodos(e); });
            _this.processarTodos();
        }, false);
    };
    TransmissaoDeDadosTanqueComponent.prototype.onMarcarTodos = function (obj) {
        this.dados.forEach(function (d) {
            d.sel = 'S';
        });
    };
    TransmissaoDeDadosTanqueComponent.prototype.onDesmarcarTodos = function (obj) {
        this.dados.forEach(function (d) {
            d.sel = 'N';
        });
    };
    Object.defineProperty(TransmissaoDeDadosTanqueComponent.prototype, "dadosI", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.dados);
            }
            var dados = this.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.deposito, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.capacidade, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.unidade, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.flagCodesp, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.dtCodesp, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    TransmissaoDeDadosTanqueComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByAbaTanque().subscribe(function (result) {
            _this.hasDados = result && result.length > 0;
            _this.dados = result;
        });
    };
    TransmissaoDeDadosTanqueComponent.prototype.incluirDesativarDeposito = function (flagCodesp) {
        var _this = this;
        var mensagem = "";
        if (flagCodesp === "S") {
            mensagem = "messages.desejaIncluirTodos";
        }
        else if (flagCodesp === "N") {
            mensagem = "messages.desejaDesativarDepositoNaCodesp";
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.messageService.confirm(_this.service.titles, mensagem, null, function () {
                var selecionadosMap = new Map();
                _this.dados.forEach(function (d) {
                    if (d.sel === 'S') {
                        selecionadosMap.set(d.deposito, d);
                    }
                });
                var selecionados = Array.from(selecionadosMap.values());
                selecionados.map(function (x) { return x.flagCodesp = flagCodesp; });
                _this.service.incluirDesativarDeposito(selecionados).subscribe(function (result) {
                    _this.mensagens = _this.messageService.validationResult(result.message);
                    if (!result.isValid) {
                        _this.messageService.warning(_this.service.titles, result.message);
                    }
                    else {
                        _this.dadosSelecionado = [];
                        _this.refresh();
                    }
                });
            }, false);
        });
    };
    TransmissaoDeDadosTanqueComponent.prototype.processar = function (obj) {
        var _this = this;
        var selecionadosMap = new Map();
        this.dados.forEach(function (d) {
            if (obj == d.deposito) {
                selecionadosMap.set(d.deposito, d);
            }
        });
        var selecionados = Array.from(selecionadosMap.values());
        this.service.processar(selecionados).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.message);
            if (!result.isValid) {
                _this.messageService.warning(_this.service.titles, result.message);
            }
        });
    };
    TransmissaoDeDadosTanqueComponent.prototype.processarTodos = function () {
        var _this = this;
        var selecionadosMap = new Map();
        this.dados.forEach(function (d) {
            selecionadosMap.set(d.deposito, d);
        });
        var selecionados = Array.from(selecionadosMap.values());
        this.service.processar(selecionados).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.message);
            if (!result.isValid) {
                _this.messageService.warning(_this.service.titles, result.message);
            }
        });
    };
    TransmissaoDeDadosTanqueComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { 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"] },
        { type: _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_12__["TransmissaoDeDadosService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_9__["DatatablesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_13__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_13__["TableComponent"])
    ], TransmissaoDeDadosTanqueComponent.prototype, "table", void 0);
    TransmissaoDeDadosTanqueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-transmissao-de-dados-tanque',
            template: __importDefault(__webpack_require__(/*! raw-loader!./transmissao-de-dados-tanque.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./transmissao-de-dados-tanque.component.scss */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            _transmissao_de_dados_service__WEBPACK_IMPORTED_MODULE_12__["TransmissaoDeDadosService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_9__["DatatablesService"]])
    ], TransmissaoDeDadosTanqueComponent);
    return TransmissaoDeDadosTanqueComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.constants.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.constants.ts ***!
  \**********************************************************************************************************/
/*! exports provided: TransmissaoDeDadosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosConstants", function() { return TransmissaoDeDadosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TransmissaoDeDadosConstants = /** @class */ (function () {
    function TransmissaoDeDadosConstants() {
        this.sisFormularioId = 375384;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.visualizarLog" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.incluirDasativarDeposito" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.atualizarDados" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.excluirEstoque" }
        ];
        this.sisSistemaId = "CON";
        this.nomeForm = "titles.transmissaoDeDados";
        this.reportId = "AGE0044";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaForm = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'VisualizarLog', action: 'visualizarLog', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return TransmissaoDeDadosConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.model.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.model.ts ***!
  \******************************************************************************************************/
/*! exports provided: TransmissaoDeDadosEmpresa, TransmissaoDeDadosTanque, TransmissaoDeDadosEstoque, TransmissaoDeDadosEnvioRetornoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosEmpresa", function() { return TransmissaoDeDadosEmpresa; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosTanque", function() { return TransmissaoDeDadosTanque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosEstoque", function() { return TransmissaoDeDadosEstoque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosEnvioRetornoDto", function() { return TransmissaoDeDadosEnvioRetornoDto; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TransmissaoDeDadosEmpresa = /** @class */ (function () {
    function TransmissaoDeDadosEmpresa() {
        this.filial = 0;
        this.fantasia = "";
        this.razaoSocial = "";
        this.flagCodesp = "";
    }
    return TransmissaoDeDadosEmpresa;
}());

var TransmissaoDeDadosTanque = /** @class */ (function () {
    function TransmissaoDeDadosTanque() {
    }
    return TransmissaoDeDadosTanque;
}());

var TransmissaoDeDadosEstoque = /** @class */ (function () {
    function TransmissaoDeDadosEstoque() {
    }
    return TransmissaoDeDadosEstoque;
}());

var TransmissaoDeDadosEnvioRetornoDto = /** @class */ (function () {
    function TransmissaoDeDadosEnvioRetornoDto() {
        this.jsonRequest = "";
        this.jsonResponse = "";
    }
    return TransmissaoDeDadosEnvioRetornoDto;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.module.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.module.ts ***!
  \*******************************************************************************************************/
/*! exports provided: TransmissaoDeDadosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosModule", function() { return TransmissaoDeDadosModule; });
/* 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 _transmissao_de_dados_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transmissao-de-dados.routing.module */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.routing.module.ts");
/* harmony import */ var _transmissao_de_dados_index_transmissao_de_dados_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transmissao-de-dados-index/transmissao-de-dados-index.component */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-index/transmissao-de-dados-index.component.ts");
/* harmony import */ var _transmissao_de_dados_tanque_transmissao_de_dados_tanque_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./transmissao-de-dados-tanque/transmissao-de-dados-tanque.component */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-tanque/transmissao-de-dados-tanque.component.ts");
/* harmony import */ var _transmissao_de_dados_envio_retorno_transmissao_de_dados_envio_retorno_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.component */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-envio-retorno/transmissao-de-dados-envio-retorno.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 TransmissaoDeDadosModule = /** @class */ (function () {
    function TransmissaoDeDadosModule() {
    }
    TransmissaoDeDadosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_transmissao_de_dados_index_transmissao_de_dados_index_component__WEBPACK_IMPORTED_MODULE_4__["TransmissaoDeDadosIndexComponent"],
                _transmissao_de_dados_tanque_transmissao_de_dados_tanque_component__WEBPACK_IMPORTED_MODULE_5__["TransmissaoDeDadosTanqueComponent"],
                _transmissao_de_dados_envio_retorno_transmissao_de_dados_envio_retorno_component__WEBPACK_IMPORTED_MODULE_6__["TransmissaoDeDadosEnvioRetornoComponent"]
            ],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _transmissao_de_dados_routing_module__WEBPACK_IMPORTED_MODULE_3__["TransmissaoDeDadosRoutingModule"]
            ]
        })
    ], TransmissaoDeDadosModule);
    return TransmissaoDeDadosModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.routing.module.ts":
/*!***************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.routing.module.ts ***!
  \***************************************************************************************************************/
/*! exports provided: TransmissaoDeDadosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosRoutingModule", function() { return TransmissaoDeDadosRoutingModule; });
/* 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 _transmissao_de_dados_index_transmissao_de_dados_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transmissao-de-dados-index/transmissao-de-dados-index.component */ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados-index/transmissao-de-dados-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: _transmissao_de_dados_index_transmissao_de_dados_index_component__WEBPACK_IMPORTED_MODULE_3__["TransmissaoDeDadosIndexComponent"],
        data: { breadcrumb: "transmissaoDeDados", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var TransmissaoDeDadosRoutingModule = /** @class */ (function () {
    function TransmissaoDeDadosRoutingModule() {
    }
    TransmissaoDeDadosRoutingModule = __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"]]
        })
    ], TransmissaoDeDadosRoutingModule);
    return TransmissaoDeDadosRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.service.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/ageo/movimentos/transmissao-de-dados/transmissao-de-dados.service.ts ***!
  \********************************************************************************************************/
/*! exports provided: TransmissaoDeDadosService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransmissaoDeDadosService", function() { return TransmissaoDeDadosService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/internal/operators/catchError */ "./node_modules/rxjs/internal/operators/catchError.js");
/* harmony import */ var rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var TransmissaoDeDadosService = /** @class */ (function () {
    function TransmissaoDeDadosService(http) {
        this.http = http;
        this.titles = "titles.transmissaoDeDados";
    }
    TransmissaoDeDadosService.prototype.getByAbaEmpresa = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/transmissaoDeDados/getByAbaEmpresa")
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransmissaoDeDadosService.prototype.getByAbaTanque = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/transmissaoDeDados/getByAbaTanque")
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransmissaoDeDadosService.prototype.getByAbaEstoque = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/transmissaoDeDados/getByAbaEstoque")
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransmissaoDeDadosService.prototype.codespPreparaTanque = function () {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/transmissaoDeDados/codespPreparaTanque", null)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransmissaoDeDadosService.prototype.processar = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/transmissaoDeDados/codespPreparaTanqueSel", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransmissaoDeDadosService.prototype.incluirDesativarDeposito = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/transmissaoDeDados/incluirDesativarDeposito", data)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransmissaoDeDadosService.prototype.visualizarLog = function (chave, rotina) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/transmissaoDeDados/" + chave + "/" + rotina, null)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransmissaoDeDadosService.prototype.excluirEstoque = function (codCodesp) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/ageo/movimentos/excluirEstoque/" + codCodesp, null)
            .pipe(Object(rxjs_internal_operators_catchError__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransmissaoDeDadosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    TransmissaoDeDadosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], TransmissaoDeDadosService);
    return TransmissaoDeDadosService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-ageo-movimentos-transmissao-de-dados-transmissao-de-dados-module.js.map