(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-controle-transferencia-simbolica-transferencia-simbolica-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-filter/transferencia-simbolica-filter.component.html":
/*!***************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-filter/transferencia-simbolica-filter.component.html ***!
  \***************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"transferencia-simbolica-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeTransferenciaSimbolica' | translate }}</h6>\r\n            </div>\r\n            <app-validacoes class=\"us-validacoes\" [formErrorId]=\"'filterModal'\"></app-validacoes>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                    [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\r\n                                    [inSelected]=\"service.filtro.cliente\"\r\n                                    (outModel)=\"trataCliente($event)\"\r\n                                    showInscricao=\"false\"\r\n                                    showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\r\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\"\r\n                                    [inSelected]=\"service.filtro.material\"\r\n                                    (outModel)=\"trataMaterial($event)\"\r\n                                    required=\"true\">\r\n                                </app-pesquisa-material>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-saldo-lote-deposito id=\"depositoDest\" name=\"depositoDest\" required=\"true\"\r\n                                    [label]=\"'depositoDest'\" \r\n                                    [modalTitle]=\"'deposito'\"\r\n                                    [field]=\"'tanqueId'\" \r\n                                    [options]=\"saldoDepositoOptions\" \r\n                                    [(ngModel)]=\"service.filtro.tanqueId\"\r\n                                    (outModel)=\"trataDestino($event)\">\r\n                                </app-pesquisa-saldo-lote-deposito>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"data\" class=\"required\">{{\"labels.data\" | translate}}</label>\r\n                                <app-data id=\"data\" name=\"data\" maxlength=\"1\" [(ngModel)]=\"service.filtro.dtRef\"\r\n                                    class=\"data\" [formatDateTime]=\"mascara.getFormatDataHorMinSeg\" required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 \">\r\n                            <div class=\"form-group\">\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input class=\"custom-control-input radio-success\" id=\"radioDefault\"\r\n                                        name=\"radioDefault\" [(ngModel)]=\"service.filtro.tipoMov\" type=\"radio\"\r\n                                        value=\"CL\">\r\n                                    <label class=\"custom-control-label\" for=\"radioDefault\">{{ 'labels.liberado' |\r\n                                        translate }}\r\n                                    </label>\r\n                                </div>\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input class=\"custom-control-input radio-success\" id=\"radioPrimary\"\r\n                                        name=\"radioPrimary\" [(ngModel)]=\"service.filtro.tipoMov\" type=\"radio\"\r\n                                        value=\"SL\">\r\n                                    <label class=\"custom-control-label\" for=\"radioPrimary\">{{ 'labels.semLiberacao' |\r\n                                        translate }}\r\n                                    </label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-8\">\r\n                            <div class=\"form-check mt-4\">\r\n                                <div class=\"form-group\">\r\n                                    <input class=\"form-check-input\" type=\"checkbox\" id=\"apenasMovCliente\"\r\n                                        name=\"apenasMovCliente\"\r\n                                        (ngModelChange)=\"service.filtro.movCliente = $event ? 'S' : 'N'\"\r\n                                        [ngModel]=\"service.filtro.movCliente ==='S'\">\r\n                                    <label class=\"form-check-label\" for=\"apenasMovCliente\">{{'labels.apenasMovCliente' |\r\n                                        translate}}\r\n                                    </label>\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\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</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/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component.html ***!
  \*************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"box-shadow\" style=\"padding: 10px; background-color: #fff;\">\r\n    <app-validacoes [formErrorId]=\"'filterIndex'\"></app-validacoes>\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-12 col-md-12\">\r\n            <div class=\"row\">\r\n                <div class=\"col-lg-6 col-md-12 col-sm-12\">\r\n                    <app-card-container tituloCard=\"fiscal\">\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"clearfix\">&nbsp;</div>\r\n                                <label>{{'labels.destino' | translate}}</label>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <label>{{'labels.kg' | translate}}</label>\r\n                                    <input id=\"somaKgFiscalD\" name=\"somaKgFiscalD\" [(ngModel)]=\"data.somaKgFiscalD\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <label>{{'labels.lt' | translate}}</label>\r\n                                    <input id=\"somaLtFiscalD\" name=\"somaLtFiscalD\" [(ngModel)]=\"data.somaLtFiscalD\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <label>{{'labels.origem' | translate}}</label>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <input id=\"somaKgFiscalO\" name=\"somaKgFiscalO\" [(ngModel)]=\"data.somaKgFiscalO\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <input id=\"somaLtFiscalO\" name=\"somaLtFiscalO\" [(ngModel)]=\"data.somaLtFiscalO\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <label>{{'labels.diferenca' | translate}}</label>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <input id=\"difKgFiscal\" name=\"difKgFiscal\" [(ngModel)]=\"data.difKgFiscal\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <input id=\"difLtFiscal\" name=\"difLtFiscal\" [(ngModel)]=\"data.difLtFiscal\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </app-card-container>\r\n                </div>\r\n                <div class=\"col-lg-6 col-md-12 col-sm-12\">\r\n                    <app-card-container *ngIf=\"ctrSaldoContabil\" tituloCard=\"contabil\">\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"clearfix\">&nbsp;</div>\r\n                                <label>{{'labels.destino' | translate}}</label>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <label>{{'labels.kg' | translate}}</label>\r\n                                    <input id=\"somaKgContabilD\" name=\"somaKgContabilD\"\r\n                                        [(ngModel)]=\"data.somaKgContabilD\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <label>{{'labels.lt' | translate}}</label>\r\n                                    <input id=\"somaLtContabilD\" name=\"somaLtContabilD\"\r\n                                        [(ngModel)]=\"data.somaLtContabilD\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <label>{{'labels.origem' | translate}}</label>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <input id=\"somaKgContabilO\" name=\"somaKgContabilO\"\r\n                                        [(ngModel)]=\"data.somaKgContabilO\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <input id=\"somaLtContabilO\" name=\"somaLtContabilO\"\r\n                                        [(ngModel)]=\"data.somaLtContabilO\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <label>{{'labels.diferenca' | translate}}</label>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <input id=\"difKgContabil\" name=\"difKgContabil\" [(ngModel)]=\"data.difKgContabil\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-5\">\r\n                                <div class=\"form-group\">\r\n                                    <input id=\"difLtContabil\" name=\"difLtContabil\" [(ngModel)]=\"data.difLtContabil\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\" disabled>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </app-card-container>\r\n                </div>\r\n            </div>\r\n            <div class=\"form-group\">\r\n                <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"gera()\" [disabled]=\"!hasDados\">{{\r\n                    'buttons.gerar' | translate }}\r\n                </button>\r\n                <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"onCancelar()\" [disabled]=\"!hasDadosOrigem && !hasDadosDestino\">{{\r\n                    'buttons.cancelar' | translate }}\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtConsultaDestino\"\r\n        class=\"tableFixHead table table-striped table-bordered table-hover nowrap table-sm table-responsive\"\r\n        style=\"height: 250px; overflow: auto;\">\r\n        <thead>\r\n            <tr>\r\n                <th colspan=\"10\" style=\"text-align: center; font-size: 12px;\">{{ 'labels.destino' | translate }}</th>\r\n                <th [attr.colspan]=\"colspanValue\" style=\"text-align: center; font-size: 12px;\">{{ 'labels.kilosOriginal'\r\n                    | translate }}</th>\r\n                <th [attr.colspan]=\"colspanValue\" style=\"text-align: center; font-size: 12px;\">{{\r\n                    'labels.kilosSelecionado' | translate }}</th>\r\n                <th [attr.colspan]=\"colspanValue\" style=\"text-align: center; font-size: 12px;\">{{\r\n                    'labels.litrosOriginal' | translate }}</th>\r\n                <th [attr.colspan]=\"colspanValue\" style=\"text-align: center; font-size: 12px;\">{{\r\n                    'labels.litrosSelecionado' | translate }}</th>\r\n            </tr>\r\n            <tr>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.sel' | translate}}</th>\r\n                <th style=\"display: none\">{{ 'labels.id' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.lote' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.deposito' | translate}}</th>\r\n                <th style=\"font-size: 12px;\" colspan=\"6\">{{ 'labels.cliente' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.liberadoKg' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.semLiberacaoKg' | translate}}</th>\r\n                <th *ngIf=\"ctrSaldoContabil\" style=\"font-size: 12px;\">{{ 'labels.contabilKg' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.liberadoKg' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.semLiberacaoKg' | translate}}</th>\r\n                <th *ngIf=\"ctrSaldoContabil\" style=\"font-size: 12px;\">{{ 'labels.contabilKg' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.liberadoLt' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.semLiberacaoLt' | translate}}</th>\r\n                <th *ngIf=\"ctrSaldoContabil\" style=\"font-size: 12px;\">{{ 'labels.contabilLt' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.liberadoLt' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.semLiberacaoLt' | translate}}</th>\r\n                <th *ngIf=\"ctrSaldoContabil\" style=\"font-size: 12px;\">{{ 'labels.contabilLt' | translate}}</th>\r\n            </tr>\r\n        </thead>\r\n        <tbody>\r\n            <tr *ngFor=\"let t of service.dados.destinos\"\r\n                [ngClass]=\"{ 'info' : t.regMovimento == dataDestino.regMovimento }\" (click)=\"(dataDestino = t)\">\r\n                <td style=\"font-size: 12px;\">\r\n                    <input type=\"checkbox\" id=\"marcado\" name=\"marcado\" value=\"checked\"\r\n                        (ngModelChange)=\"t.marcado = $event ? 'S' : 'N'\" [ngModel]=\"t.marcado ==='S'\"\r\n                        style=\"margin-left:auto; margin-right:auto;\" (change)=\"setkilosLitrosD(dataDestino)\">\r\n                </td>\r\n                <td style=\"display: none\">{{ t.regMovimento }}</td>\r\n                <td style=\"font-size: 12px;\">{{ t.lote }}</td>\r\n                <td style=\"font-size: 12px;\">{{ t.deposito }}</td>\r\n                <td style=\"font-size: 12px;\" colspan=\"6\">{{ t.cliente }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">{{ t.kilosComLib | formatCurrency }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">{{ t.kilosSemLib | formatCurrency }}</td>\r\n                <td *ngIf=\"ctrSaldoContabil\" style=\"text-align: right; font-size: 12px;\">{{ t.kilosBalanca |\r\n                    formatCurrency }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"kilosComLibT\" name=\"kilosComLibT\" [(ngModel)]=\"t.kilosComLibT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"t.marcado !=='S'\" (blur)=\"tratakilosComLibTDestino(dataDestino)\">\r\n                </td>\r\n                <td style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"kilosSemLibT\" name=\"kilosSemLibT\" [(ngModel)]=\"t.kilosSemLibT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"enabledCampo(dataDestino)\" (blur)=\"tratakilosSemLibTDestino(dataDestino)\">\r\n                </td>\r\n                <td *ngIf=\"ctrSaldoContabil\" style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"kilosBalancaT\" name=\"kilosBalancaT\" [(ngModel)]=\"t.kilosBalancaT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"t.marcado !=='S'\" (blur)=\"tratakilosBalancaTDestino(dataDestino)\">\r\n                </td>\r\n                <td style=\"text-align: right; font-size: 12px;\">{{ t.litrosComLib | formatCurrency }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">{{ t.litrosSemLib | formatCurrency }}</td>\r\n                <td *ngIf=\"ctrSaldoContabil\" style=\"text-align: right; font-size: 12px;\">{{ t.litrosBalanca |\r\n                    formatCurrency }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"litrosComLibT\" name=\"litrosComLibT\" [(ngModel)]=\"t.litrosComLibT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"t.marcado !=='S'\" (blur)=\"trataLitrosComLibTDestino(dataDestino)\">\r\n                </td>\r\n                <td style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"litrosSemLibT\" name=\"litrosSemLibT\" [(ngModel)]=\"t.litrosSemLibT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"t.marcado !=='S'\" (blur)=\"trataLitrosSemLibTDestino(dataDestino)\">\r\n                </td>\r\n                <td *ngIf=\"ctrSaldoContabil\" style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"litrosBalancaT\" name=\"litrosBalancaT\" [(ngModel)]=\"t.litrosBalancaT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"t.marcado !=='S'\" (blur)=\"trataLitrosBalancaTDestino(dataDestino)\">\r\n                </td>\r\n            </tr>\r\n            <tr *ngIf=\"!hasDadosDestino\">\r\n                <th [attr.colspan]=\"colspanValueVazio\" style=\"text-align: center; font-size: 12px;\">\r\n                    {{'messages.nenhumRegistroEncontrado' | translate }}\r\n                </th>\r\n            </tr>\r\n        </tbody>\r\n    </table>\r\n\r\n    <table id=\"dtConsultaOrigem\"\r\n        class=\"tableFixHead table table-striped table-bordered table-hover nowrap table-sm table-responsive\"\r\n        style=\"height: 250px; overflow: auto;\">\r\n        <thead>\r\n            <tr>\r\n                <th colspan=\"10\" style=\"text-align: center; font-size: 12px;\">{{ 'labels.origem' | translate }}</th>\r\n                <th [attr.colspan]=\"colspanValue\" style=\"text-align: center; font-size: 12px;\">{{ 'labels.kilosOriginal'\r\n                    | translate }}</th>\r\n                <th [attr.colspan]=\"colspanValue\" style=\"text-align: center; font-size: 12px;\">{{\r\n                    'labels.kilosSelecionado' | translate }}</th>\r\n                <th [attr.colspan]=\"colspanValue\" style=\"text-align: center; font-size: 12px;\">{{\r\n                    'labels.litrosOriginal' | translate }}</th>\r\n                <th [attr.colspan]=\"colspanValue\" style=\"text-align: center; font-size: 12px;\">{{\r\n                    'labels.litrosSelecionado' | translate }}</th>\r\n            </tr>\r\n            <tr>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.sel' | translate}}</th>\r\n                <th style=\"display: none\">{{ 'labels.id' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.lote' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.deposito' | translate}}</th>\r\n                <th colspan=\"6\" style=\"font-size: 12px;\">{{ 'labels.cliente' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.liberadoKg' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.semLiberacaoKg' | translate}}</th>\r\n                <th *ngIf=\"ctrSaldoContabil\" style=\"font-size: 12px;\">{{ 'labels.contabilKg' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.liberadoKg' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.semLiberacaoKg' | translate}}</th>\r\n                <th *ngIf=\"ctrSaldoContabil\" style=\"font-size: 12px;\">{{ 'labels.contabilKg' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.liberadoLt' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.semLiberacaoLt' | translate}}</th>\r\n                <th *ngIf=\"ctrSaldoContabil\" style=\"font-size: 12px;\">{{ 'labels.contabilLt' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.liberadoLt' | translate}}</th>\r\n                <th style=\"font-size: 12px;\">{{ 'labels.semLiberacaoLt' | translate}}</th>\r\n                <th *ngIf=\"ctrSaldoContabil\" style=\"font-size: 12px;\">{{ 'labels.contabilLt' | translate}}</th>\r\n            </tr>\r\n        </thead>\r\n        <tbody>\r\n            <tr *ngFor=\"let t of service.dados.origens\"\r\n                [ngClass]=\"{ 'info' : t.regMovimento == dataOrigem.regMovimento }\" (click)=\"(dataOrigem = t)\">\r\n                <td style=\"font-size: 12px;\">\r\n                    <input type=\"checkbox\" id=\"marcado1\" name=\"marcado1\" value=\"checked\"\r\n                        (ngModelChange)=\"t.marcado = $event ? 'S' : 'N'\" [ngModel]=\"t.marcado ==='S'\"\r\n                        style=\"margin-left:auto; margin-right:auto;\" (change)=\"setkilosLitrosO(dataOrigem)\">\r\n                </td>\r\n                <td style=\"display: none\">{{ t.regMovimento }}</td>\r\n                <td style=\"font-size: 12px;\">{{ t.lote }}</td>\r\n                <td style=\"font-size: 12px;\">{{ t.deposito }}</td>\r\n                <td colspan=\"6\" style=\"font-size: 12px;\">{{ t.cliente }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">{{ t.kilosComLib | formatCurrency }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">{{ t.kilosSemLib | formatCurrency }}</td>\r\n                <td *ngIf=\"ctrSaldoContabil\" style=\"text-align: right; font-size: 12px;\">{{ t.kilosBalanca |\r\n                    formatCurrency }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"_kilosComLibT\" name=\"_kilosComLibT\" [(ngModel)]=\"t.kilosComLibT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"!(t.marcado ==='S' && tipoMov === 'CL')\"\r\n                        (blur)=\"tratakilosComLibTOrigem(dataOrigem)\">\r\n                </td>\r\n                <td style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"_kilosSemLibT\" name=\"_kilosSemLibT\" [(ngModel)]=\"t.kilosSemLibT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"!(t.marcado ==='S' && tipoMov === 'SL')\"\r\n                        (blur)=\"tratakilosSemLibTOrigem(dataOrigem)\">\r\n                </td>\r\n                <td *ngIf=\"ctrSaldoContabil\" style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"_kilosBalancaT\" name=\"_kilosBalancaT\" [(ngModel)]=\"t.kilosBalancaT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"t.marcado !=='S'\" (blur)=\"tratakilosBalancaTOrigem(dataOrigem)\">\r\n                </td>\r\n                <td style=\"text-align: right; font-size: 12px;\">{{ t.litrosComLib | formatCurrency }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">{{ t.litrosSemLib | formatCurrency }}</td>\r\n                <td *ngIf=\"ctrSaldoContabil\" style=\"text-align: right; font-size: 12px;\">{{ t.litrosBalanca |\r\n                    formatCurrency }}</td>\r\n                <td style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"_litrosComLibT\" name=\"_litrosComLibT\" [(ngModel)]=\"t.litrosComLibT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"!(t.marcado ==='S' && tipoMov === 'CL')\"\r\n                        (blur)=\"trataLitrosComLibTOrigem(dataOrigem)\">\r\n                </td>\r\n                <td style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"_litrosSemLibT\" name=\"_litrosSemLibT\" [(ngModel)]=\"t.litrosSemLibT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"!(t.marcado ==='S' && tipoMov === 'SL')\"\r\n                        (blur)=\"trataLitrosSemLibTOrigem(dataOrigem)\">\r\n                </td>\r\n                <td *ngIf=\"ctrSaldoContabil\" style=\"text-align: right; font-size: 12px;\">\r\n                    <input id=\"_litrosBalancaT\" name=\"_litrosBalancaT\" [(ngModel)]=\"t.litrosBalancaT\"\r\n                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                        [disabled]=\"t.marcado !=='S'\" (blur)=\"trataLitrosBalancaTOrigem(dataOrigem)\">\r\n                </td>\r\n            </tr>\r\n            <tr *ngIf=\"!hasDadosOrigem\">\r\n                <th [attr.colspan]=\"colspanValueVazio\" style=\"text-align: center; font-size: 12px;\">\r\n                    {{'messages.nenhumRegistroEncontrado' | translate }}\r\n                </th>\r\n            </tr>\r\n        </tbody>\r\n    </table>\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<app-transferencia-simbolica-filter (filtrar)=\"executaFiltro()\"></app-transferencia-simbolica-filter>");

/***/ }),

/***/ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-filter/transferencia-simbolica-filter.component.ts":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-filter/transferencia-simbolica-filter.component.ts ***!
  \***********************************************************************************************************************************/
/*! exports provided: TransferenciaSimbolicaFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaSimbolicaFilterComponent", function() { return TransferenciaSimbolicaFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.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 _transferencia_simbolica_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transferencia-simbolica.constants */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.constants.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transferencia_simbolica_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../transferencia-simbolica.service */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.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_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var TransferenciaSimbolicaFilterComponent = /** @class */ (function () {
    function TransferenciaSimbolicaFilterComponent(funcoesService, messageService, service, loginService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.loginService = loginService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.constantes = new _transferencia_simbolica_constants__WEBPACK_IMPORTED_MODULE_4__["TransferenciaSimbolicaConstants"]();
    }
    TransferenciaSimbolicaFilterComponent.prototype.ngOnInit = function () {
        this.service.filtro.dtRef = new Date();
    };
    TransferenciaSimbolicaFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("filterModal").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        jQuery("#transferencia-simbolica-filter-dialog").modal("hide");
    };
    TransferenciaSimbolicaFilterComponent.prototype.trataDestino = function (e) {
        this.service.filtro.tanque = e;
    };
    Object.defineProperty(TransferenciaSimbolicaFilterComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: 0,
                materialId: this.service.filtro.materialId,
                sitLote: 'A',
                modo: 9,
                tipoSaldo: 9,
                dataMovimento: this.service.filtro.dtRef,
                tipoAgrupa: 'D',
                geraArquivo: 'N'
            };
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaSimbolicaFilterComponent.prototype.trataCliente = function (cliente) {
        this.service.filtro.cliente = !!cliente ? cliente : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_8__["Destinatario"]();
    };
    TransferenciaSimbolicaFilterComponent.prototype.trataMaterial = function (material) {
        this.service.filtro.material = !!material ? material : new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_9__["Material"]();
    };
    TransferenciaSimbolicaFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _transferencia_simbolica_service__WEBPACK_IMPORTED_MODULE_6__["TransferenciaSimbolicaService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TransferenciaSimbolicaFilterComponent.prototype, "filtrar", void 0);
    TransferenciaSimbolicaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-simbolica-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-simbolica-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-filter/transferencia-simbolica-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _transferencia_simbolica_service__WEBPACK_IMPORTED_MODULE_6__["TransferenciaSimbolicaService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], TransferenciaSimbolicaFilterComponent);
    return TransferenciaSimbolicaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component.scss":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-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"] = (".tableFixHead {\n  overflow-y: auto;\n  height: 100px;\n}\n\n.tableFixHead thead th {\n  position: -webkit-sticky;\n  position: sticky;\n  top: 0;\n}\n\n/* Just common table stuff. Really. */\n\ntable {\n  border-collapse: collapse;\n  width: 100%;\n}\n\nth, td {\n  padding: 5px 10px;\n  white-space: nowrap;\n}\n\nth {\n  background: #eee;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY29udHJvbGUvdHJhbnNmZXJlbmNpYS1zaW1ib2xpY2EvdHJhbnNmZXJlbmNpYS1zaW1ib2xpY2EtaW5kZXgvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxjb250cm9sZVxcdHJhbnNmZXJlbmNpYS1zaW1ib2xpY2FcXHRyYW5zZmVyZW5jaWEtc2ltYm9saWNhLWluZGV4XFx0cmFuc2ZlcmVuY2lhLXNpbWJvbGljYS1pbmRleC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvY29udHJvbGUvdHJhbnNmZXJlbmNpYS1zaW1ib2xpY2EvdHJhbnNmZXJlbmNpYS1zaW1ib2xpY2EtaW5kZXgvdHJhbnNmZXJlbmNpYS1zaW1ib2xpY2EtaW5kZXguY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxnQkFBQTtFQUNBLGFBQUE7QUNDRjs7QURFQTtFQUNFLHdCQUFBO0VBQUEsZ0JBQUE7RUFDQSxNQUFBO0FDQ0Y7O0FERUEscUNBQUE7O0FBQ0E7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUNDRjs7QURFQTtFQUNFLGlCQUFBO0VBQ0EsbUJBQUE7QUNDRjs7QURFQTtFQUNFLGdCQUFBO0FDQ0YiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9jb250cm9sZS90cmFuc2ZlcmVuY2lhLXNpbWJvbGljYS90cmFuc2ZlcmVuY2lhLXNpbWJvbGljYS1pbmRleC90cmFuc2ZlcmVuY2lhLXNpbWJvbGljYS1pbmRleC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50YWJsZUZpeEhlYWQge1xyXG4gIG92ZXJmbG93LXk6IGF1dG87XHJcbiAgaGVpZ2h0OiAxMDBweDtcclxufVxyXG5cclxuLnRhYmxlRml4SGVhZCB0aGVhZCB0aCB7XHJcbiAgcG9zaXRpb246IHN0aWNreTtcclxuICB0b3A6IDA7XHJcbn1cclxuXHJcbi8qIEp1c3QgY29tbW9uIHRhYmxlIHN0dWZmLiBSZWFsbHkuICovXHJcbnRhYmxlIHtcclxuICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlO1xyXG4gIHdpZHRoOiAxMDAlO1xyXG59XHJcblxyXG50aCwgdGQge1xyXG4gIHBhZGRpbmc6IDVweCAxMHB4O1xyXG4gIHdoaXRlLXNwYWNlOiBub3dyYXA7XHJcbn1cclxuXHJcbnRoIHtcclxuICBiYWNrZ3JvdW5kOiAjZWVlO1xyXG59XHJcbiIsIi50YWJsZUZpeEhlYWQge1xuICBvdmVyZmxvdy15OiBhdXRvO1xuICBoZWlnaHQ6IDEwMHB4O1xufVxuXG4udGFibGVGaXhIZWFkIHRoZWFkIHRoIHtcbiAgcG9zaXRpb246IHN0aWNreTtcbiAgdG9wOiAwO1xufVxuXG4vKiBKdXN0IGNvbW1vbiB0YWJsZSBzdHVmZi4gUmVhbGx5LiAqL1xudGFibGUge1xuICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlO1xuICB3aWR0aDogMTAwJTtcbn1cblxudGgsIHRkIHtcbiAgcGFkZGluZzogNXB4IDEwcHg7XG4gIHdoaXRlLXNwYWNlOiBub3dyYXA7XG59XG5cbnRoIHtcbiAgYmFja2dyb3VuZDogI2VlZTtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: TransferenciaSimbolicaIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaSimbolicaIndexComponent", function() { return TransferenciaSimbolicaIndexComponent; });
/* 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_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/controle/transferencia-simbolica/transferencia-simbolica.model */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.model.ts");
/* harmony import */ var app_pages_controle_transferencia_simbolica_transferencia_simbolica_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/controle/transferencia-simbolica/transferencia-simbolica.service */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.service.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __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_9__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../cadastro/lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _transferencia_simbolica_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../transferencia-simbolica.constants */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.constants.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 TransferenciaSimbolicaIndexComponent = /** @class */ (function (_super) {
    __extends(TransferenciaSimbolicaIndexComponent, _super);
    function TransferenciaSimbolicaIndexComponent(router, datatablesService, messageService, service, datatables, configuracao, message, funcoes, permissoesUtils, loginService, loteService) {
        var _this = _super.call(this, new _transferencia_simbolica_constants__WEBPACK_IMPORTED_MODULE_14__["TransferenciaSimbolicaConstants"](), funcoes) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.service = service;
        _this.datatables = datatables;
        _this.configuracao = configuracao;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.loteService = loteService;
        _this.data = new app_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaFullDto"]();
        _this.dataDestino = new app_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaIndexDestinoDto"]();
        _this.dataOrigem = new app_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaIndexOrigemDto"]();
        _this.dataGera = new app_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaGeraFiltroVo"]();
        _this.constantes = new _transferencia_simbolica_constants__WEBPACK_IMPORTED_MODULE_14__["TransferenciaSimbolicaConstants"]();
        _this.mensagens = [];
        _this.hasDadosDestino = false;
        _this.hasDadosOrigem = false;
        _this.ctrSaldoContabil = false;
        _this.colspanValue = 3;
        _this.colspanValueVazio = 22;
        _this.loadConfig = function () {
            _this.ctrSaldoContabil = _this.configuracao.lerConfig("BAL", "CtrSaldoContabil") === "S" ? true : false;
            if (!_this.ctrSaldoContabil) {
                _this.colspanValue = 2;
                _this.colspanValueVazio = 19;
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        if (!_this.service.filtro) {
            _this.service.filtro = new app_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaFilter"]();
        }
        _this.data = new app_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaFullDto"]();
        return _this;
    }
    TransferenciaSimbolicaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        var base = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!base.loginService.isTokenExpired()) {
                jQuery("#transferencia-simbolica-filter-dialog").modal("show");
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    TransferenciaSimbolicaIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.tipoMov = this.service.filtro.tipoMov;
                        _a = this.service;
                        return [4 /*yield*/, this.service.getByFiltro(this.service.filtro)];
                    case 1:
                        _a.dados = _b.sent();
                        this.hasDadosDestino = !!this.service.dados && !!this.service.dados.destinos && this.service.dados.destinos.length > 0;
                        this.hasDadosOrigem = !!this.service.dados && !!this.service.dados.origens && this.service.dados.origens.length > 0;
                        if (!this.hasDadosOrigem && !this.hasDadosDestino)
                            this.messageService.warning("titles.transferenciaSimbolica", "messages.naoExistemDados");
                        this.data.somaKgFiscalD = 0;
                        this.data.somaLtFiscalD = 0;
                        this.data.somaKgFiscalO = 0;
                        this.data.somaLtFiscalO = 0;
                        this.data.difKgFiscal = 0;
                        this.data.difLtFiscal = 0;
                        this.data.somaKgContabilD = 0;
                        this.data.somaLtContabilD = 0;
                        this.data.somaKgContabilO = 0;
                        this.data.somaLtContabilO = 0;
                        this.data.difKgContabil = 0;
                        this.data.difLtContabil = 0;
                        this.constantes.listaIndex[0].disabled = this.hasDadosOrigem || this.hasDadosDestino;
                        return [2 /*return*/];
                }
            });
        });
    };
    TransferenciaSimbolicaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TransferenciaSimbolicaIndexComponent.prototype.filtrar = function () {
        this.service.filtro.dtRef = new Date();
        jQuery("#transferencia-simbolica-filter-dialog").modal("show");
    };
    TransferenciaSimbolicaIndexComponent.prototype.executaFiltro = function () {
        this.constantes.listaIndex[0].disabled = this.hasDados;
        this.refresh();
    };
    Object.defineProperty(TransferenciaSimbolicaIndexComponent.prototype, "hasDados", {
        get: function () {
            return !!this.hasDadosOrigem && !!this.hasDadosDestino;
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaSimbolicaIndexComponent.prototype.gera = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (_this.funcoesService.isUndefinedOrNull(_this.service.dados.destinos) ||
                _this.funcoesService.isUndefinedOrNull(_this.service.dados.origens) ||
                _this.funcoesService.isUndefinedOrNull(_this.data.difKgFiscal) ||
                _this.funcoesService.isUndefinedOrNull(_this.data.difLtFiscal) ||
                _this.funcoesService.isUndefinedOrNull(_this.data.difKgContabil) ||
                _this.funcoesService.isUndefinedOrNull(_this.data.difLtContabil)) {
                _this.messageService.warning("titles.transferenciaSimbolica", "messages.naoHaItensSelecioados");
                return;
            }
            else if (_this.service.dados.destinos.findIndex(function (c) { return c.marcado === 'S'; }) < 0 ||
                _this.service.dados.origens.findIndex(function (c) { return c.marcado === 'S'; }) < 0) {
                _this.messageService.warning("titles.transferenciaSimbolica", "messages.naoHaItensSelecioados");
                return;
            }
            if (_this.data.difKgFiscal === 0 && _this.data.difLtFiscal === 0 && _this.data.difKgContabil === 0 && _this.data.difLtContabil === 0) {
                _this.dataGera.dtMovimento = _this.service.filtro.dtRef;
                _this.dataGera.tipoMov = _this.tipoMov;
                _this.service.setTmpTransferenciaProduto(_this.service.dados).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["mergeMap"])(function () { return _this.service.gera(_this.dataGera); })).subscribe(function (resp) {
                    if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                        _this.mensagens = _this.messageService.validationResult(resp.validationResult);
                        if (!resp.validationResult.isValid) {
                            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
                            _this.funcoesService.backToTop();
                        }
                        else {
                            _this.messageService.success("titles.transferenciaSimbolica", "messages.transferenciaRealizada");
                            _this.onCancelar();
                        }
                    }
                });
            }
            else {
                _this.messageService.warning("titles.transferenciaSimbolica", "messages.existeDiferencaDestinoOrigem");
            }
        });
    };
    TransferenciaSimbolicaIndexComponent.prototype.updateTmp = function (obj) {
        var _this = this;
        var promise = new Promise(function (resolve, reject) {
            _this.service.setTmpTransferenciaProduto(obj).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    TransferenciaSimbolicaIndexComponent.prototype.onCancelar = function () {
        this.service.dados = new app_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaFullDto"]();
        this.hasDadosDestino = false;
        this.hasDadosOrigem = false;
        this.data = new app_pages_controle_transferencia_simbolica_transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaFullDto"]();
        this.constantes.listaIndex[0].disabled = this.hasDados;
        this.filtrar();
    };
    TransferenciaSimbolicaIndexComponent.prototype.setkilosLitrosD = function (dataD) {
        if (dataD.marcado === "S") {
            dataD.kilosComLibT = dataD.kilosComLib;
            dataD.kilosSemLibT = dataD.kilosSemLib;
            dataD.litrosComLibT = dataD.litrosComLib;
            dataD.litrosSemLibT = dataD.litrosSemLib;
        }
        else {
            dataD.kilosComLibT = 0;
            dataD.kilosSemLibT = 0;
            dataD.litrosComLibT = 0;
            dataD.litrosSemLibT = 0;
        }
        this.trataCamposSomatoriaD();
        this.difKilosFiscal();
        this.difLitrosFiscal();
        this.difKilosContabil();
        this.difLitrosContabil();
    };
    TransferenciaSimbolicaIndexComponent.prototype.setkilosLitrosO = function (dataO) {
        if (dataO.marcado === "S") {
            if (this.tipoMov === 'SL') {
                dataO.kilosSemLibT = dataO.kilosSemLib;
                dataO.litrosSemLibT = dataO.litrosSemLib;
            }
            else {
                dataO.kilosComLibT = dataO.kilosComLib;
                dataO.litrosComLibT = dataO.litrosComLib;
            }
        }
        else {
            dataO.kilosComLibT = 0;
            dataO.kilosSemLibT = 0;
            dataO.litrosComLibT = 0;
            dataO.litrosSemLibT = 0;
        }
        this.trataCamposSomatoriaO();
        this.difKilosFiscal();
        this.difLitrosFiscal();
        this.difKilosContabil();
        this.difLitrosContabil();
    };
    TransferenciaSimbolicaIndexComponent.prototype.trataCamposSomatoriaD = function () {
        this.somaDestino_A();
        this.somaDestino_A1();
        this.somaDestino_A2();
        this.somaDestino_A3();
    };
    TransferenciaSimbolicaIndexComponent.prototype.trataCamposSomatoriaO = function () {
        this.somaOrigem_B();
        this.somaOrigem_B1();
        this.somaOrigem_B2();
        this.somaOrigem_B3();
    };
    /* (A) Somatoria KilosComLibT + KilosSemLibT - Destino*/
    TransferenciaSimbolicaIndexComponent.prototype.somaDestino_A = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados.destinos)) {
            var tKilosSemLibT_1 = 0;
            var tKilosComLibT_1 = 0;
            this.service.dados.destinos.forEach(function (obj) {
                if (obj.marcado === "S") {
                    tKilosComLibT_1 += obj.kilosComLibT;
                    tKilosSemLibT_1 += obj.kilosSemLibT;
                }
            });
            this.data.somaKgFiscalD = tKilosComLibT_1 + tKilosSemLibT_1;
        }
    };
    /* (B) Somatoria KilosComLibT + KilosSemLibT - Origem*/
    TransferenciaSimbolicaIndexComponent.prototype.somaOrigem_B = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados.origens)) {
            var tKilosSemLibT_2 = 0;
            var tKilosComLibT_2 = 0;
            this.service.dados.origens.forEach(function (obj) {
                if (obj.marcado === "S") {
                    tKilosComLibT_2 += obj.kilosComLibT;
                    tKilosSemLibT_2 += obj.kilosSemLibT;
                }
            });
            this.data.somaKgFiscalO = tKilosComLibT_2 + tKilosSemLibT_2;
        }
    };
    /* (A1) Somatoria LitrosComLibT + LitrosSemLibT - Destino*/
    TransferenciaSimbolicaIndexComponent.prototype.somaDestino_A1 = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados.destinos)) {
            var tLitrosComLibT_1 = 0;
            var tLitrosSemLibT_1 = 0;
            this.service.dados.destinos.forEach(function (obj) {
                if (obj.marcado === "S") {
                    tLitrosComLibT_1 += obj.litrosComLibT;
                    tLitrosSemLibT_1 += obj.litrosSemLibT;
                }
            });
            this.data.somaLtFiscalD = tLitrosComLibT_1 + tLitrosSemLibT_1;
        }
    };
    /* (B1) Somatoria LitrosComLibT + LitrosSemLibT - Origem*/
    TransferenciaSimbolicaIndexComponent.prototype.somaOrigem_B1 = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados.origens)) {
            var tLitrosComLibT_2 = 0;
            var tLitrosSemLibT_2 = 0;
            this.service.dados.origens.forEach(function (obj) {
                if (obj.marcado === "S") {
                    tLitrosComLibT_2 += obj.litrosComLibT;
                    tLitrosSemLibT_2 += obj.litrosSemLibT;
                }
            });
            this.data.somaLtFiscalO = tLitrosComLibT_2 + tLitrosSemLibT_2;
        }
    };
    /* (A2) Somatoria KilosBalancaT - Destino */
    TransferenciaSimbolicaIndexComponent.prototype.somaDestino_A2 = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados.destinos)) {
            var tKilosBalancaT_1 = 0;
            this.service.dados.destinos.forEach(function (obj) {
                if (obj.marcado === "S") {
                    tKilosBalancaT_1 += obj.kilosBalancaT;
                }
            });
            this.data.somaKgContabilD = tKilosBalancaT_1;
        }
    };
    /* (B2) Somatoria KilosBalancaT - Origem */
    TransferenciaSimbolicaIndexComponent.prototype.somaOrigem_B2 = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados.origens)) {
            var tKilosBalancaT_2 = 0;
            this.service.dados.origens.forEach(function (obj) {
                if (obj.marcado === "S") {
                    tKilosBalancaT_2 += obj.kilosBalancaT;
                }
            });
            this.data.somaKgContabilO = tKilosBalancaT_2;
        }
    };
    /* (A3) Somatoria LitrosBalancaT - Destino*/
    TransferenciaSimbolicaIndexComponent.prototype.somaDestino_A3 = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados.destinos)) {
            var tLitrosBalancaT_1 = 0;
            this.service.dados.destinos.forEach(function (obj) {
                if (obj.marcado === "S") {
                    tLitrosBalancaT_1 += obj.litrosBalancaT;
                }
            });
            this.data.somaLtContabilD = tLitrosBalancaT_1;
        }
    };
    /* (B3) Somatoria LitrosBalancaT - Origem*/
    TransferenciaSimbolicaIndexComponent.prototype.somaOrigem_B3 = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.service.dados.origens)) {
            var tLitrosBalancaT_2 = 0;
            this.service.dados.origens.forEach(function (obj) {
                if (obj.marcado === "S") {
                    tLitrosBalancaT_2 += obj.litrosBalancaT;
                }
            });
            this.data.somaLtContabilO = tLitrosBalancaT_2;
        }
    };
    /* Diferença Kilos Fiscal, A - B */
    TransferenciaSimbolicaIndexComponent.prototype.difKilosFiscal = function () {
        this.data.difKgFiscal = this.data.somaKgFiscalD - this.data.somaKgFiscalO;
    };
    /* A1- B1 */
    TransferenciaSimbolicaIndexComponent.prototype.difLitrosFiscal = function () {
        this.data.difLtFiscal = this.data.somaLtFiscalD - this.data.somaLtFiscalO;
    };
    /* A2 - B2 */
    TransferenciaSimbolicaIndexComponent.prototype.difKilosContabil = function () {
        this.data.difKgContabil = this.data.somaKgContabilD - this.data.somaKgContabilO;
    };
    /* A3 - B3 */
    TransferenciaSimbolicaIndexComponent.prototype.difLitrosContabil = function () {
        this.data.difLtContabil = this.data.somaLtContabilD - this.data.somaLtContabilO;
    };
    TransferenciaSimbolicaIndexComponent.prototype.tratakilosComLibTDestino = function (data) {
        if (data.kilosComLibT > data.kilosComLib) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeKilosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaD();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
            this.calcLitrosComLibT(data);
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.calcLitrosComLibT = function (obj) {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(obj)) {
            this.loteService._getById(obj.lote).subscribe(function (resp) {
                if (resp) {
                    if (_this.funcoesService.isPositive(resp.densidade)) {
                        obj.litrosComLibT = Math.round((obj.kilosComLibT / resp.densidade));
                        _this.somaDestino_A1();
                        _this.difKilosFiscal();
                        _this.difLitrosFiscal();
                    }
                }
            });
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.tratakilosComLibTOrigem = function (data) {
        if (data.kilosComLibT > data.kilosComLib) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeKilosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaO();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
            this.calc_LitrosComLibT(data);
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.calc_LitrosComLibT = function (obj) {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(obj)) {
            this.loteService._getById(obj.lote).subscribe(function (resp) {
                if (resp) {
                    if (_this.funcoesService.isPositive(resp.densidade)) {
                        obj.litrosComLibT = Math.round((obj.kilosComLibT / resp.densidade));
                        _this.somaOrigem_B1();
                        _this.difKilosFiscal();
                        _this.difLitrosFiscal();
                    }
                }
            });
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.tratakilosSemLibTDestino = function (data) {
        if (data.kilosSemLibT > data.kilosSemLib) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeKilosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaD();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
            this.calcLitrosSemLibT(data);
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.calcLitrosSemLibT = function (obj) {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(obj)) {
            this.loteService._getById(obj.lote).subscribe(function (resp) {
                if (resp) {
                    if (_this.funcoesService.isPositive(resp.densidade)) {
                        obj.litrosSemLibT = Math.round((obj.kilosSemLibT / resp.densidade));
                    }
                }
            });
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.tratakilosSemLibTOrigem = function (data) {
        if (data.kilosSemLibT > data.kilosSemLib) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeKilosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaO();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
            this.calc_LitrosSemLibT(data);
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.calc_LitrosSemLibT = function (obj) {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(obj)) {
            this.loteService._getById(obj.lote).subscribe(function (resp) {
                if (resp) {
                    if (_this.funcoesService.isPositive(resp.densidade)) {
                        obj.litrosSemLibT = Math.round((obj.kilosSemLibT / resp.densidade));
                    }
                }
            });
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.tratakilosBalancaTDestino = function (data) {
        if (data.kilosBalancaT > data.kilosBalanca) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeKilosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaD();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
            this.calcLitrosBalancaT(data);
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.calcLitrosBalancaT = function (obj) {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(obj)) {
            this.loteService._getById(obj.lote).subscribe(function (resp) {
                if (resp) {
                    if (_this.funcoesService.isPositive(resp.densidade)) {
                        obj.litrosBalancaT = Math.round((obj.kilosBalancaT / resp.densidade));
                    }
                }
            });
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.tratakilosBalancaTOrigem = function (data) {
        if (data.kilosBalancaT > data.kilosBalanca) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeKilosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaO();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
            this.calc_LitrosBalancaT(data);
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.calc_LitrosBalancaT = function (obj) {
        var _this = this;
        if (this.funcoesService.isNotUndefinedOrNull(obj)) {
            this.loteService._getById(obj.lote).subscribe(function (resp) {
                if (resp) {
                    if (_this.funcoesService.isPositive(resp.densidade)) {
                        obj.litrosBalancaT = Math.round((obj.kilosBalancaT / resp.densidade));
                    }
                }
            });
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.trataLitrosComLibTDestino = function (data) {
        if (data.litrosComLibT > data.litrosComLib) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeLitrosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaD();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.trataLitrosComLibTOrigem = function (data) {
        if (data.litrosComLibT > data.litrosComLib) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeLitrosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaO();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.trataLitrosSemLibTDestino = function (data) {
        if (data.litrosSemLibT > data.litrosSemLib) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeLitrosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaD();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.trataLitrosSemLibTOrigem = function (data) {
        if (data.litrosSemLibT > data.litrosSemLib) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeLitrosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaO();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.trataLitrosBalancaTDestino = function (data) {
        if (data.litrosBalancaT > data.litrosBalanca) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeLitrosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaD();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.trataLitrosBalancaTOrigem = function (data) {
        if (data.litrosBalancaT > data.litrosBalanca) {
            this.messageService.warning("titles.transferenciaSimbolica", "messages.qtdeLitrosMaiorInformada");
            return;
        }
        else {
            this.trataCamposSomatoriaO();
            this.difKilosFiscal();
            this.difLitrosFiscal();
            this.difKilosContabil();
            this.difLitrosContabil();
        }
    };
    TransferenciaSimbolicaIndexComponent.prototype.enabledCampo = function (dataD) {
        var resultado = this.funcoesService.isNotUndefinedOrNull(dataD.marcado) ? (dataD.marcado === "S") : true;
        if (this.funcoesService.isNotUndefinedOrNull(dataD.marcado)) {
            if ((resultado) && (dataD.kilosSemLib !== 0)) {
                resultado = false;
            }
        }
        return resultado;
    };
    TransferenciaSimbolicaIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_pages_controle_transferencia_simbolica_transferencia_simbolica_service__WEBPACK_IMPORTED_MODULE_3__["TransferenciaSimbolicaService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"] },
        { type: _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_12__["LoteService"] }
    ]; };
    TransferenciaSimbolicaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-simbolica-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-simbolica-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./transferencia-simbolica-index.component.scss */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_pages_controle_transferencia_simbolica_transferencia_simbolica_service__WEBPACK_IMPORTED_MODULE_3__["TransferenciaSimbolicaService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"],
            _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_12__["LoteService"]])
    ], TransferenciaSimbolicaIndexComponent);
    return TransferenciaSimbolicaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.constants.ts":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.constants.ts ***!
  \*********************************************************************************************/
/*! exports provided: TransferenciaSimbolicaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaSimbolicaConstants", function() { return TransferenciaSimbolicaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TransferenciaSimbolicaConstants = /** @class */ (function () {
    function TransferenciaSimbolicaConstants() {
        this.sisFormularioId = 90167;
        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.gerar" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.transferenciaSimbolica";
        this.reportId = "0";
        this.reportTitulo = { "titulo": "Transferência Simbólica", "subTitulo": "" };
        this.tabela = "TmpTransferenciaProduto";
        this.listaIndex = [
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            { 'sistema': 'BAL', 'parametros': ["CtrSaldoContabil"] }
        ];
    }
    return TransferenciaSimbolicaConstants;
}());



/***/ }),

/***/ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.model.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.model.ts ***!
  \*****************************************************************************************/
/*! exports provided: TransferenciaSimbolicaFullDto, TransferenciaSimbolicaIndexOrigemDto, TransferenciaSimbolicaIndexDestinoDto, TransferenciaSimbolicaFilter, TransferenciaSimbolicaGeraFiltroVo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

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

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

var TransferenciaSimbolicaFilter = /** @class */ (function () {
    function TransferenciaSimbolicaFilter() {
        this.destinatarioIdCliente = 0;
        this.materialId = "";
        this.tanqueId = "";
        this.dtRef = new Date();
        this.tipoMov = "SL";
    }
    return TransferenciaSimbolicaFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.module.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.module.ts ***!
  \******************************************************************************************/
/*! exports provided: TransferenciaSimbolicaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaSimbolicaModule", function() { return TransferenciaSimbolicaModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var app_pages_controle_transferencia_simbolica_transferencia_simbolica_index_transferencia_simbolica_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-index.component.ts");
/* harmony import */ var app_pages_controle_transferencia_simbolica_transferencia_simbolica_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/controle/transferencia-simbolica/transferencia-simbolica.routing.module */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.routing.module.ts");
/* harmony import */ var app_pages_controle_transferencia_simbolica_transferencia_simbolica_filter_transferencia_simbolica_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/controle/transferencia-simbolica/transferencia-simbolica-filter/transferencia-simbolica-filter.component */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-filter/transferencia-simbolica-filter.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 TransferenciaSimbolicaModule = /** @class */ (function () {
    function TransferenciaSimbolicaModule() {
    }
    TransferenciaSimbolicaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], app_pages_controle_transferencia_simbolica_transferencia_simbolica_routing_module__WEBPACK_IMPORTED_MODULE_3__["TransferenciaSimbolicaRoutingModule"]],
            declarations: [app_pages_controle_transferencia_simbolica_transferencia_simbolica_index_transferencia_simbolica_index_component__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaIndexComponent"], app_pages_controle_transferencia_simbolica_transferencia_simbolica_filter_transferencia_simbolica_filter_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaSimbolicaFilterComponent"]]
        })
    ], TransferenciaSimbolicaModule);
    return TransferenciaSimbolicaModule;
}());



/***/ }),

/***/ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.routing.module.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.routing.module.ts ***!
  \**************************************************************************************************/
/*! exports provided: TransferenciaSimbolicaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaSimbolicaRoutingModule", function() { return TransferenciaSimbolicaRoutingModule; });
/* 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 _transferencia_simbolica_index_transferencia_simbolica_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transferencia-simbolica-index/transferencia-simbolica-index.component */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica-index/transferencia-simbolica-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: _transferencia_simbolica_index_transferencia_simbolica_index_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaSimbolicaIndexComponent"],
        data: { breadcrumb: "transferenciaSimbolica", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var TransferenciaSimbolicaRoutingModule = /** @class */ (function () {
    function TransferenciaSimbolicaRoutingModule() {
    }
    TransferenciaSimbolicaRoutingModule = __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"]]
        })
    ], TransferenciaSimbolicaRoutingModule);
    return TransferenciaSimbolicaRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.service.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.service.ts ***!
  \*******************************************************************************************/
/*! exports provided: TransferenciaSimbolicaService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaSimbolicaService", function() { return TransferenciaSimbolicaService; });
/* 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 _transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transferencia-simbolica.model */ "./src/app/pages/controle/transferencia-simbolica/transferencia-simbolica.model.ts");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var TransferenciaSimbolicaService = /** @class */ (function (_super) {
    __extends(TransferenciaSimbolicaService, _super);
    function TransferenciaSimbolicaService(http) {
        var _this = _super.call(this, http, "controle/transferenciaSimbolica") || this;
        _this.http = http;
        _this.dados = new _transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaFullDto"];
        _this.filtro = new _transferencia_simbolica_model__WEBPACK_IMPORTED_MODULE_2__["TransferenciaSimbolicaFilter"];
        return _this;
    }
    TransferenciaSimbolicaService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/controle/transferenciaSimbolica/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError))
            .toPromise();
    };
    TransferenciaSimbolicaService.prototype.gera = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/controle/transferenciaSimbolica/gera", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    TransferenciaSimbolicaService.prototype.setTmpTransferenciaProduto = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/controle/transferenciaSimbolica/setTmpTransferenciaProduto", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    TransferenciaSimbolicaService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    TransferenciaSimbolicaService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], TransferenciaSimbolicaService);
    return TransferenciaSimbolicaService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-controle-transferencia-simbolica-transferencia-simbolica-module.js.map