(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cli-movimentos-transferencia-trading-transferencia-trading-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-ajuste/transferencia-trading-ajuste.component.html":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-ajuste/transferencia-trading-ajuste.component.html ***!
  \***************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"transferencia-trading-ajuste-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.ajusteManualTransf' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row mb-3\">\r\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"total\" name=\"total\" [ngModel]=\"data.check\"\r\n                                    (ngModelChange)=\"validaTotal($event)\" class=\"custom-control-input checkbox-success\"\r\n                                    type=\"checkbox\" />\r\n                                <label class=\"custom-control-label\" for=\"total\">{{\"labels.total\" | translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <app-card-container tituloCard=\"ajuste\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosLiberadoAjust\">{{'labels.kilosLiberado' | translate}}</label>\r\n                                            <input id=\"kilosLiberadoAjust\" name=\"kilosLiberadoAjust\" [(ngModel)]=\"data.kilosLiberado\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [disabled]=\"data.check\"\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosBalancaAjust\">{{'labels.kilosBalanca' | translate}}</label>\r\n                                            <input id=\"kilosBalancaAjust\" name=\"kilosBalancaAjust\" [(ngModel)]=\"data.kilosBalanca\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [disabled]=\"data.check\"\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosRetidoAjust\">{{'labels.kilosRetido' | translate}}</label>\r\n                                            <input id=\"kilosRetidoAjust\" name=\"kilosRetidoAjust\" [(ngModel)]=\"data.kilosRetido\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [disabled]=\"data.check\"\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </app-card-container>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <app-card-container tituloCard=\"disponivel\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosDispLiberado\">{{'labels.kg' | translate}}</label>\r\n                                            <input id=\"kilosDispLiberado\" name=\"kilosLiberadoSaldo\" [(ngModel)]=\"data.kilosLiberadoSaldo\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosDispBalanca\">{{'labels.kg' | translate}}</label>\r\n                                            <input id=\"kilosDispBalanca\" name=\"kilosBalancaSaldo\" [(ngModel)]=\"data.kilosBalancaSaldo\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosDispRetido\">{{'labels.kg' | translate}}</label>\r\n                                            <input id=\"kilosDispRetido\" name=\"kilosRetidoSaldo\" [(ngModel)]=\"data.kilosRetidoSaldo\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                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=\"row d-flex justify-content-end\">\r\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                            <button class=\"btn btn-success btn-block mr-1\" type=\"button\" (click)=\"onSubmit()\">\r\n                                {{ 'buttons.ok' | translate }}\r\n                            </button>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                            <button type=\"button\" class=\"btn btn-block btn-default\" data-dismiss=\"modal\">\r\n                                {{ 'buttons.cancelar' | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-filter/transferencia-trading-filter.component.html":
/*!***************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-filter/transferencia-trading-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-trading-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.pesquisaDeTransferenciaTrading' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\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=\"tradingOrigem\" name=\"tradingOrigem\" tipoDestinatario=\"C\"\r\n                                                           modalTitle=\"pesquisaDeTrading\" label=\"tradingOrigem\"\r\n                                                           [(ngModel)]=\"service.filtro.destinatarioIdTradingOrigem\"\r\n                                                           showInscricao=\"false\" showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"tradingDestino\" name=\"tradingDestino\" tipoDestinatario=\"C\"\r\n                                                           modalTitle=\"pesquisaDeTrading\" label=\"tradingDestino\"\r\n                                                           [(ngModel)]=\"service.filtro.destinatarioIdTradingDestino\"\r\n                                                           showInscricao=\"false\" showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\"\r\n                                       class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"service.filtro.dataI\"\r\n                                          autofocus\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\"\r\n                                       class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"service.filtro.dataF\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\r\n                                          required=\"true\">\r\n                                </app-data>\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>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.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.listaForm\" [formAction]=\"actionForm\"\r\n    [itemData]=\"service.data.cliCliTransferenciaTradingId\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"tab-content top\">\r\n                <app-form-legenda></app-form-legenda>\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"tab-pane active show\" id=\"ge\">\r\n                    <form class=\"form\" #f=\"ngForm\">\r\n                        <div class=\"row\">\r\n                            <div class=\"col-8\">\r\n                                <div class=\"clearfix\">\r\n                                    <ul class=\"nav nav-tabs \">\r\n                                        <li class=\"nav-item\">\r\n                                            <a class=\"nav-link active show\" data-toggle=\"tab\"\r\n                                                href=\"#tabOrigem\">{{\"labels.origem\" |translate}}</a>\r\n                                        </li>\r\n                                        <li class=\"nav-item\">\r\n                                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tabDestino\">\r\n                                                {{\"labels.destino\" | translate}}</a>\r\n                                        </li>\r\n                                        <li class=\"nav-item\" *ngIf=\"service.data.cliCliTransferenciaTradingId > 0\">\r\n                                            <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tabDeposito\">\r\n                                                {{\"labels.depositos\" | translate}}</a>\r\n                                        </li>\r\n                                    </ul>\r\n                                </div>\r\n                                <div class=\"tab-content tab-content-sm top \">\r\n                                    <div class=\"tab-pane active show\" id=\"tabOrigem\">\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"service.data\" class=\"required\">{{\"labels.data\" |\r\n                                                        translate }}</label>\r\n                                                    <app-data-h-m id=\"service.data\" name=\"service.data\"\r\n                                                        [(ngModel)]=\"service.data.dtEmissao\" autofocus\r\n                                                        [disabled]=\"disabled\" required=\"true\" (executa)=\"validaData()\"\r\n                                                        data-aba=\"origem\">\r\n                                                    </app-data-h-m>\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-destinatario id=\"trading\" name=\"trading\"\r\n                                                        tipoDestinatario=\"C\" modalTitle=\"pesquisaDeTrading\"\r\n                                                        label=\"trading\"\r\n                                                        [(ngModel)]=\"service.data.destinatarioIdTradingO\"\r\n                                                        showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                        [inSelected]=\"service.data.tradingO\" [disabled]=\"disabled\"\r\n                                                        (outModel)=\"trataTradingO($event)\"\r\n                                                        required=\"true\"\r\n                                                        data-aba=\"origem\">\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-destinatario id=\"cliente\" name=\"cliente\"\r\n                                                        tipoDestinatario=\"C\" modalTitle=\"pesquisaDeCliente\"\r\n                                                        label=\"cliente\" [(ngModel)]=\"service.data.destinatarioIdCliente\"\r\n                                                        showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                        [inSelected]=\"service.data.cliente\" [disabled]=\"disabled\"\r\n                                                        (outModel)=\"service.data.cliente = $event\" required=\"true\"\r\n                                                        data-aba=\"origem\">\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-destinatario id=\"emitente\" name=\"emitente\"\r\n                                                        tipoDestinatario=\"C\" modalTitle=\"pesquisaDeEmitente\"\r\n                                                        label=\"emitente\"\r\n                                                        [(ngModel)]=\"service.data.destinatarioIdEmitente\"\r\n                                                        showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                        [inSelected]=\"service.data.emitente\" [disabled]=\"disabled\"\r\n                                                        (outModel)=\"service.data.emitente = $event\" required=\"true\"\r\n                                                        data-aba=\"origem\">\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=\"produto\" name=\"produto\" label=\"produto\"\r\n                                                        modalTitle=\"pesquisaDeProduto\"\r\n                                                        [(ngModel)]=\"service.data.materialId\"\r\n                                                        [inSelected]=\"service.data.material\" data-aba=\"origem\"\r\n                                                        (outModel)=\"service.data.material = $event\"\r\n                                                        [disabled]=\"disabled\" required=\"true\"\r\n                                                        (outModel)=\"trataMaterial($event)\">\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 col-md-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <app-pesquisa-saldo-lote-deposito id=\"lote\" name=\"lote\"\r\n                                                        [modalTitle]=\"'lote'\" [disabled]=\"disabled\" [field]=\"'loteId'\"\r\n                                                        [options]=\"saldoLoteOptions\" data-aba=\"origem\" [required]=\"true\"\r\n                                                        [(ngModel)]=\"service.data.loteIdO\"\r\n                                                        (outModel)=\"trataLoteOrigem()\">\r\n                                                    </app-pesquisa-saldo-lote-deposito>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\"\r\n                                                        [modalTitle]=\"'deposito'\" [disabled]=\"disabled\"\r\n                                                        [field]=\"'tanqueId'\" [options]=\"saldoDepositoOptions\"\r\n                                                        data-aba=\"origem\" [label]=\"'deposito'\" [required]=\"true\"\r\n                                                        [(ngModel)]=\"service.data.tanqueId\"\r\n                                                        (outModel)=\"service.data.tanque = $event\">\r\n                                                    </app-pesquisa-saldo-lote-deposito>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"kilosLiberado\" class=\"required\">{{'labels.kilosLiberado'\r\n                                                        |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"kilosLiberado\" name=\"kilosLiberado\"\r\n                                                        [(ngModel)]=\"service.data.kilosLiberado\" data-aba=\"origem\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                        [disabled]=\"disabled\" [required]=\"true\" maxlength=\"15\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"kilosBalanca\" class=\"required\">{{'labels.kilosBalanca' |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"kilosBalanca\" name=\"kilosBalanca\"\r\n                                                        [(ngModel)]=\"service.data.kilosBalanca\" data-aba=\"origem\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                        [disabled]=\"disabled\" [required]=\"true\" maxlength=\"15\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"kilosRetido\">{{'labels.kilosRetido' |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"kilosRetido\" name=\"kilosRetido\"\r\n                                                        [(ngModel)]=\"service.data.kilosRetido\" data-aba=\"origem\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                        [disabled]=\"disabled\" maxlength=\"15\">\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                                                    <label for=\"observacao\">{{'labels.observacao' | translate}}</label>\r\n                                                    <input id=\"observacao\" name=\"observacao\"\r\n                                                        [(ngModel)]=\"service.data.observacao\" maxlength=\"250\"\r\n                                                        class=\"form-control form-control-sm\" type=\"text\"\r\n                                                        [disabled]=\"disabled\" data-aba=\"origem\"\r\n                                                        data-title=\"{{'labels.observacao' | translate}}\">\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"tab-pane\" id=\"tabDestino\">\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=\"tradingDestino\" name=\"tradingDestino\"\r\n                                                        tipoDestinatario=\"C\" modalTitle=\"pesquisaDeTrading\"\r\n                                                        label=\"trading\"\r\n                                                        [(ngModel)]=\"service.data.destinatarioIdTradingD\"\r\n                                                        showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                        [inSelected]=\"service.data.tradingD\" [disabled]=\"disabled\"\r\n                                                        required=\"true\"\r\n                                                        (outModel)=\"trataTradingD($event)\"\r\n                                                        data-aba=\"destino\">\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-input-description label=\"cliente\"\r\n                                                        [valueID]=\"service.data?.destinatarioIdCliente\"\r\n                                                        [valueDescription]=\"service.data?.cliente?.fantasia\">\r\n                                                    </app-input-description>\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-input-description label=\"emitente\"\r\n                                                        [valueID]=\"service.data?.destinatarioIdEmitente\"\r\n                                                        [valueDescription]=\"service.data?.emitente?.fantasia\">\r\n                                                    </app-input-description>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-12\">\r\n                                                <app-input-description label=\"produto\"\r\n                                                    [valueID]=\"service.data?.materialId\"\r\n                                                    [valueDescription]=\"service.data?.material?.fantasia\">\r\n                                                </app-input-description>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <app-pesquisa-lote id=\"loteDestino\" label=\"lote\" name=\"loteDestino\"\r\n                                                        modalTitle=\"lote\" [(ngModel)]=\"service.data.loteIdD\"\r\n                                                        [destinatarioIdCliente]=\"service.data.destinatarioIdCliente\"\r\n                                                        [materialId]=\"service.data.materialId\"\r\n                                                        [loteId]=\"service.data.loteIdD\"\r\n                                                        [destinatarioIdEmitente]=\"service.data.destinatarioIdEmitente\"\r\n                                                        destinatarioIdNavio=\"0\" [osgId]=\"0\" stoContratoId=\"\"\r\n                                                        stoContratoItemId=\"0\" data-aba=\"destino\" [disabled]=\"disabled\"\r\n                                                        [required]=\"true\" (outLote)=\"trataLoteDestino()\">\r\n                                                    </app-pesquisa-lote>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"tab-pane\" id=\"tabDeposito\"\r\n                                        *ngIf=\"service.data.cliCliTransferenciaTradingId > 0\">\r\n                                        <div class=\"section-comand-bar\">\r\n                                            <table\r\n                                                class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                                <thead>\r\n                                                    <tr>\r\n                                                        <th>{{'labels.item' | translate}}</th>\r\n                                                        <th>{{'labels.lote' | translate}}</th>\r\n                                                        <th>{{'labels.deposito' | translate}}</th>\r\n                                                        <th style=\"text-align: right;\">{{'labels.kilosLiberado' |\r\n                                                            translate}}\r\n                                                        </th>\r\n                                                        <th style=\"text-align: right;\">{{'labels.kilosBalanca' |\r\n                                                            translate}}\r\n                                                        </th>\r\n                                                        <th style=\"text-align: right;\">{{'labels.kilosRetido' |\r\n                                                            translate}}</th>\r\n                                                    </tr>\r\n                                                </thead>\r\n                                                <tbody>\r\n                                                    <tr *ngFor=\"let item of service.data.depositos; let i = index\">\r\n                                                        <td style=\"font-size: 12px;\">{{ item.item }}</td>\r\n                                                        <td>{{ item.lote }}</td>\r\n                                                        <td>{{ item.deposito }}</td>\r\n                                                        <td style=\"text-align: right;\">{{ item.kilosLiberado |\r\n                                                            formatCurrency }}</td>\r\n                                                        <td style=\"text-align: right;\">{{ item.kilosBalanca |\r\n                                                            formatCurrency }}</td>\r\n                                                        <td style=\"text-align: right;\">{{ item.kilosRetido |\r\n                                                            formatCurrency }}</td>\r\n                                                    </tr>\r\n                                                </tbody>\r\n                                            </table>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-4 d-flex align-items-end justify-content-end\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-12\" *ngIf=\"saldo && !!service.data.kilosLiberado\">\r\n                                        <div class=\"saldo\">\r\n                                            <label>{{'labels.kilosLiberado' | translate}}</label>\r\n                                            <input class=\"form-control form-control-sm\" type=\"text\" disabled\r\n                                                value=\"{{kilosLiberadoSaldo | formatCurrency: 0}}\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-12\" *ngIf=\"saldo && !!service.data.kilosBalanca\">\r\n                                        <div class=\"saldo\">\r\n                                            <label>{{'labels.kilosBalanca' | translate}}</label>\r\n                                            <input class=\"form-control form-control-sm\" type=\"text\" disabled\r\n                                                value=\"{{kilosBalancaSaldo | formatCurrency: 0}}\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-12\" *ngIf=\"saldo && !!service.data.kilosRetido\">\r\n                                        <div class=\"saldo\">\r\n                                            <label>{{'labels.kilosRetido' | translate}}</label>\r\n                                            <input class=\"form-control form-control-sm\" type=\"text\" disabled\r\n                                                value=\"{{kilosRetidoSaldo | formatCurrency: 0}}\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"clearfix\">&nbsp;</div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-sm-12\"\r\n                                *ngIf=\"!visibleTable && !service.data.cliCliTransferenciaTradingId\">\r\n                                <button class=\"btn btn-success btn-block mr-2\" type=\"button\" (click)=\"ok(f)\">\r\n                                    {{ 'buttons.ok' | translate }}\r\n                                </button>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-sm-12\"\r\n                                *ngIf=\"!visibleTable && !service.data.cliCliTransferenciaTradingId\">\r\n                                <button class=\"btn btn-success btn-block mr-2\" type=\"button\" (click)=\"resetar()\">\r\n                                    {{ 'buttons.limpar' | translate }}\r\n                                </button>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-sm-12\"\r\n                                *ngIf=\"visibleTable && !(service.data.cliCliTransferenciaTradingId > 0)\">\r\n                                <button class=\"btn btn-secondary btn-block mr-2\" type=\"button\" (click)=\"cancelar()\">\r\n                                    {{ 'buttons.cancelar' | translate }}\r\n                                </button>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-sm-12\"\r\n                                *ngIf=\"(service.dadosTransfPropSel && service.dadosTransfPropSel.length > 0)\">\r\n                                <button class=\"btn btn-success btn-block mr-2\" type=\"button\" (click)=\"ajusteManual()\"\r\n                                    [disabled]=\"!hasDados || !dadosAjusteManual?.regItem\">\r\n                                    {{ 'buttons.ajusteManual' | translate }}\r\n                                </button>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-sm-12\"\r\n                                *ngIf=\"service.dadosTransfPropSel && service.dadosTransfPropSel.length > 0\">\r\n                                <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"grava()\"\r\n                                    [disabled]=\"!hasDados\">\r\n                                    {{ 'buttons.gerar' | translate }}\r\n                                </button>\r\n                            </div>\r\n                        </div>\r\n                        <ng-container *ngIf=\"visibleTable\">\r\n                            <div class=\"section-comand-bar mt-3\">\r\n                                <app-table>\r\n                                    <div class=\"table-responsive\">\r\n                                        <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                            <thead>\r\n                                                <tr>\r\n                                                    <th colspan=\"3\"></th>\r\n                                                    <th colspan=\"2\" class=\"text-center\">{{ 'labels.kilosLiberado' |\r\n                                                        translate}}</th>\r\n                                                    <th colspan=\"2\" class=\"text-center\">{{ 'labels.kilosBalanca' |\r\n                                                        translate}}</th>\r\n                                                    <th colspan=\"2\" class=\"text-center\">{{ 'labels.kilosRetido' |\r\n                                                        translate}}</th>\r\n                                                </tr>\r\n                                                <tr>\r\n                                                    <th>\r\n                                                        <span class=\"colTodos\"\r\n                                                            *ngIf=\"service.dadosTransfPropSel && service.dadosTransfPropSel.length > 0\">\r\n                                                            <input type=\"checkbox\" name=\"todos\" id=\"todos\"\r\n                                                                [ngModel]=\"btnTodos\" (ngModelChange)=\"selectAll($event)\"\r\n                                                                [disabled]=\"!hasDados\"\r\n                                                                title=\"{{ 'buttons.selecionarTodos' | translate }}\">\r\n                                                        </span>\r\n                                                    </th>\r\n                                                    <th style=\"display: none\">{{ 'labels.id' | translate}}</th>\r\n                                                    <th>{{ 'labels.deposito' | translate}}</th>\r\n                                                    <th>{{ 'labels.lote' | translate}}</th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right; width:150px\">\r\n                                                        {{ 'labels.saldo' | translate}}\r\n                                                    </th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right; width:150px\">\r\n                                                        {{ 'labels.kilosTransf' | translate}}\r\n                                                    </th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right; width:150px\">\r\n                                                        {{ 'labels.saldo' | translate}}\r\n                                                    </th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right; width:150px\">\r\n                                                        {{ 'labels.kilosTransf' | translate}}\r\n                                                    </th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right; width:150px\">\r\n                                                        {{ 'labels.saldo' | translate}}\r\n                                                    </th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right; width:150px\">\r\n                                                        {{ 'labels.kilosTransf' | translate}}\r\n                                                    </th>\r\n                                                </tr>\r\n                                            </thead>\r\n                                            <tbody>\r\n                                                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"rowSelect(t, i)\"\r\n                                                    (click)=\"select(t, i)\"\r\n                                                    [ngClass]=\"{'info': t?.regItem === dadosAjusteManual?.regItem && i == _index ? true : false}\">\r\n                                                    <td>\r\n                                                        <label class=\"chk\">\r\n                                                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\"\r\n                                                                value=\"checked\"\r\n                                                                (ngModelChange)=\"t.flagSeleciona = $event ? 'S' : 'N'\"\r\n                                                                [ngModel]=\"t.flagSeleciona ==='S'\" disabled>\r\n                                                            <span\r\n                                                                [ngClass]=\"{'red':t.flagSeleciona === 'S' ? true : false}\">\r\n                                                            </span>\r\n                                                        </label>\r\n                                                    </td>\r\n                                                    <td style=\"display: none\">{{ t?.regItem }}</td>\r\n                                                    <td>{{ t.deposito }}</td>\r\n                                                    <td>{{ t.lote }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t?.kilosLiberadoSaldo |\r\n                                                        formatCurrency }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t?.kilosLiberado | formatCurrency\r\n                                                        }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t?.kilosBalancaSaldo |\r\n                                                        formatCurrency }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t?.kilosBalanca | formatCurrency\r\n                                                        }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t?.kilosRetidoSaldo |\r\n                                                        formatCurrency }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t?.kilosRetido | formatCurrency }}\r\n                                                    </td>\r\n                                                </tr>\r\n                                                <tr *ngIf=\"!hasDados\">\r\n                                                    <th colspan=\"11\" style=\"text-align: center\">\r\n                                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                                    </th>\r\n                                                </tr>\r\n                                            </tbody>\r\n                                        </table>\r\n                                    </div>\r\n                                </app-table>\r\n                            </div>\r\n                        </ng-container>\r\n                    </form>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-transferencia-trading-ajuste (execute)=\"outAjuste($event)\"></app-transferencia-trading-ajuste>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.cliCliTransferenciaTradingId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtTransferenciaTrading\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></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-trading-filter (filtrar)=\"executaFiltro()\"></app-transferencia-trading-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-ajuste/transferencia-trading-ajuste.component.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-ajuste/transferencia-trading-ajuste.component.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: TransferenciaTradingAjusteComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingAjusteComponent", function() { return TransferenciaTradingAjusteComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../transferencia-trading.service */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.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 _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.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 TransferenciaTradingAjusteComponent = /** @class */ (function () {
    function TransferenciaTradingAjusteComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.data = {
            check: false,
            flagSeleciona: 'N',
            lote: '',
            kilosLiberado: 0,
            kilosBalanca: 0,
            kilosRetido: 0,
            kilosLiberadoSaldo: 0,
            kilosBalancaSaldo: 0,
            kilosRetidoSaldo: 0,
        };
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.mensagens = [];
    }
    TransferenciaTradingAjusteComponent.prototype.ngOnInit = function () {
    };
    TransferenciaTradingAjusteComponent.prototype.onSubmit = function () {
        this.data.flagSeleciona = 'S';
        if (!this.data.kilosLiberado && !this.data.kilosBalanca && !this.data.kilosRetido) {
            this.data.flagSeleciona = 'N';
        }
        this.execute.emit(this.data);
    };
    TransferenciaTradingAjusteComponent.prototype.close = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ModalUtilsStaticService"].closeModal("transferencia-trading-ajuste-dialog");
    };
    TransferenciaTradingAjusteComponent.prototype.show = function (current) {
        this.data = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ObjectUtilsStaticService"].clone(current);
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ModalUtilsStaticService"].openModal("transferencia-trading-ajuste-dialog");
    };
    TransferenciaTradingAjusteComponent.prototype.validaTotal = function (event) {
        this.data.check = event;
        if (event) {
            this.data.kilosLiberado = this.data.kilosLiberadoSaldo;
            this.data.kilosBalanca = this.data.kilosBalancaSaldo;
            this.data.kilosRetido = this.data.kilosRetidoSaldo;
            this.data.flagSeleciona = 'S';
        }
        else {
            this.data.kilosLiberado = 0;
            this.data.kilosBalanca = 0;
            this.data.kilosRetido = 0;
            this.data.flagSeleciona = 'N';
        }
    };
    TransferenciaTradingAjusteComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_1__["TransferenciaTradingService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TransferenciaTradingAjusteComponent.prototype, "execute", void 0);
    TransferenciaTradingAjusteComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-trading-ajuste",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-trading-ajuste.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-ajuste/transferencia-trading-ajuste.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./../transferencia-trading-form/transferencia-trading-form.component.scss */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_1__["TransferenciaTradingService"]])
    ], TransferenciaTradingAjusteComponent);
    return TransferenciaTradingAjusteComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-filter/transferencia-trading-filter.component.ts":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-filter/transferencia-trading-filter.component.ts ***!
  \***********************************************************************************************************************************************/
/*! exports provided: TransferenciaTradingFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingFilterComponent", function() { return TransferenciaTradingFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _transferencia_trading_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../transferencia-trading.constants */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.constants.ts");
/* harmony import */ var _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../transferencia-trading.service */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __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_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.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 TransferenciaTradingFilterComponent = /** @class */ (function () {
    function TransferenciaTradingFilterComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        this.constantes = new _transferencia_trading_constants__WEBPACK_IMPORTED_MODULE_1__["TransferenciaTradingConstants"]();
    }
    TransferenciaTradingFilterComponent.prototype.ngOnInit = function () {
    };
    TransferenciaTradingFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        jQuery("#transferencia-trading-filter-dialog").modal("hide");
    };
    TransferenciaTradingFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_2__["TransferenciaTradingService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TransferenciaTradingFilterComponent.prototype, "filtrar", void 0);
    TransferenciaTradingFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-trading-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-trading-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-filter/transferencia-trading-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_2__["TransferenciaTradingService"]])
    ], TransferenciaTradingFilterComponent);
    return TransferenciaTradingFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.scss":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.scss ***!
  \*********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("span.red {\n  background-color: #c03;\n}\n\n.tab-content.tab-content-sm {\n  margin-bottom: -15px;\n}\n\n.saldo {\n  text-align: right;\n}\n\n.saldo.saldo1 {\n  padding-top: 22px;\n}\n\n.saldo.saldo2 {\n  padding-top: 70px;\n}\n\n.saldo.saldo3 {\n  padding-top: 120px;\n}\n\n.saldo input {\n  text-align: right;\n}\n\n.colTodos {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: -16px;\n}\n\n.colTodos input[type=checkbox] {\n  cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY2xpL21vdmltZW50b3MvdHJhbnNmZXJlbmNpYS10cmFkaW5nL3RyYW5zZmVyZW5jaWEtdHJhZGluZy1mb3JtL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXGNsaVxcbW92aW1lbnRvc1xcdHJhbnNmZXJlbmNpYS10cmFkaW5nXFx0cmFuc2ZlcmVuY2lhLXRyYWRpbmctZm9ybVxcdHJhbnNmZXJlbmNpYS10cmFkaW5nLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NsaS9tb3ZpbWVudG9zL3RyYW5zZmVyZW5jaWEtdHJhZGluZy90cmFuc2ZlcmVuY2lhLXRyYWRpbmctZm9ybS90cmFuc2ZlcmVuY2lhLXRyYWRpbmctZm9ybS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLHNCQUFBO0FDQ0o7O0FERUE7RUFDSSxvQkFBQTtBQ0NKOztBREVBO0VBQ0ksaUJBQUE7QUNDSjs7QURDSTtFQUNJLGlCQUFBO0FDQ1I7O0FERUk7RUFDSSxpQkFBQTtBQ0FSOztBREdJO0VBQ0ksa0JBQUE7QUNEUjs7QURJSTtFQUNJLGlCQUFBO0FDRlI7O0FETUE7RUFDSSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLGlCQUFBO0FDSEo7O0FES0k7RUFDSSxlQUFBO0FDSFIiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9jbGkvbW92aW1lbnRvcy90cmFuc2ZlcmVuY2lhLXRyYWRpbmcvdHJhbnNmZXJlbmNpYS10cmFkaW5nLWZvcm0vdHJhbnNmZXJlbmNpYS10cmFkaW5nLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJzcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59XHJcblxyXG4udGFiLWNvbnRlbnQudGFiLWNvbnRlbnQtc20ge1xyXG4gICAgbWFyZ2luLWJvdHRvbTogLTE1cHg7XHJcbn1cclxuXHJcbi5zYWxkbyB7XHJcbiAgICB0ZXh0LWFsaWduOiByaWdodDtcclxuXHJcbiAgICAmLnNhbGRvMSB7XHJcbiAgICAgICAgcGFkZGluZy10b3A6IDIycHg7XHJcbiAgICB9XHJcblxyXG4gICAgJi5zYWxkbzIge1xyXG4gICAgICAgIHBhZGRpbmctdG9wOiA3MHB4O1xyXG4gICAgfVxyXG5cclxuICAgICYuc2FsZG8zIHtcclxuICAgICAgICBwYWRkaW5nLXRvcDogMTIwcHg7XHJcbiAgICB9XHJcblxyXG4gICAgaW5wdXQge1xyXG4gICAgICAgIHRleHQtYWxpZ246IHJpZ2h0O1xyXG4gICAgfVxyXG59XHJcblxyXG4uY29sVG9kb3Mge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIG1hcmdpbi10b3A6IC0xNnB4O1xyXG5cclxuICAgIGlucHV0W3R5cGU9Y2hlY2tib3hdIHtcclxuICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbiAgICB9XHJcbn0iLCJzcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59XG5cbi50YWItY29udGVudC50YWItY29udGVudC1zbSB7XG4gIG1hcmdpbi1ib3R0b206IC0xNXB4O1xufVxuXG4uc2FsZG8ge1xuICB0ZXh0LWFsaWduOiByaWdodDtcbn1cbi5zYWxkby5zYWxkbzEge1xuICBwYWRkaW5nLXRvcDogMjJweDtcbn1cbi5zYWxkby5zYWxkbzIge1xuICBwYWRkaW5nLXRvcDogNzBweDtcbn1cbi5zYWxkby5zYWxkbzMge1xuICBwYWRkaW5nLXRvcDogMTIwcHg7XG59XG4uc2FsZG8gaW5wdXQge1xuICB0ZXh0LWFsaWduOiByaWdodDtcbn1cblxuLmNvbFRvZG9zIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIG1hcmdpbi10b3A6IC0xNnB4O1xufVxuLmNvbFRvZG9zIGlucHV0W3R5cGU9Y2hlY2tib3hdIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: TransferenciaTradingFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingFormComponent", function() { return TransferenciaTradingFormComponent; });
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _transferencia_trading_ajuste_transferencia_trading_ajuste_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../transferencia-trading-ajuste/transferencia-trading-ajuste.component */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-ajuste/transferencia-trading-ajuste.component.ts");
/* harmony import */ var _transferencia_trading_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transferencia-trading.constants */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.constants.ts");
/* harmony import */ var _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../transferencia-trading.service */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.service.ts");
/* harmony import */ var _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __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_8__ = __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_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.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_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../../../../../cadastro/modelo-nota/modelo-nota.service */ "./src/app/pages/cadastro/modelo-nota/modelo-nota.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./../transferencia-trading.model */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.model.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




















var TransferenciaTradingFormComponent = /** @class */ (function (_super) {
    __extends(TransferenciaTradingFormComponent, _super);
    function TransferenciaTradingFormComponent(router, messageService, activatedRoute, service, funcoesService, configuracao, permissoesUtils, loginService, modeloNotaService) {
        var _this = _super.call(this, new _transferencia_trading_constants__WEBPACK_IMPORTED_MODULE_4__["TransferenciaTradingConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.modeloNotaService = modeloNotaService;
        _this.constantes = new _transferencia_trading_constants__WEBPACK_IMPORTED_MODULE_4__["TransferenciaTradingConstants"]();
        _this.title = "titles.transferenciaTrading";
        _this.visibleTable = false;
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TransferenciaTradingFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.service.dadosTransfPropSel = [];
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotinaIdx([1, 2, 3], this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    if (resp) {
                        _this.service.data = resp;
                        _this.service.data.hasInfo = true;
                    }
                    else {
                        _this.messageService.warning(_this.title, "messages.nenhumRegistroEncontrado");
                        _this.back();
                    }
                });
            }
            else {
                _this.service.data = new _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_18__["CliCliTransferenciaTrading"]();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "disabled", {
        get: function () {
            if (this.funcoesService.isDetail(this.actionForm))
                return true;
            return this.visibleTable;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "saldoLoteOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.service.data.destinatarioIdCliente,
                destinatarioIdEmitente: this.service.data.destinatarioIdEmitente,
                materialId: this.service.data.materialId,
                loteId: this.service.data.loteIdO,
                modo: 10,
                tipoSaldo: 10,
                dataMovimento: this.service.data.dtEmissao,
                tipoAgrupa: "L",
                geraArquivo: "N",
            };
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.service.data.destinatarioIdCliente,
                destinatarioIdEmitente: this.service.data.destinatarioIdEmitente,
                materialId: this.service.data.materialId,
                loteId: this.service.data.loteIdO,
                tanqueId: this.service.data.tanqueId,
                modo: 10,
                tipoSaldo: 10,
                dataMovimento: this.service.data.dtEmissao,
                tipoAgrupa: "D",
                geraArquivo: "N",
            };
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "saldo", {
        get: function () {
            if (!this.visibleTable)
                return "";
            if (this.service.data.kilosLiberado && this.service.data.kilosBalanca && this.service.data.kilosRetido) {
                return "saldo saldo3";
            }
            else if ((this.service.data.kilosLiberado && this.service.data.kilosBalanca && !this.service.data.kilosRetido) ||
                (this.service.data.kilosLiberado && !this.service.data.kilosBalanca && this.service.data.kilosRetido) ||
                (!this.service.data.kilosLiberado && this.service.data.kilosBalanca && this.service.data.kilosRetido)) {
                return "saldo saldo2";
            }
            else {
                return "saldo saldo1";
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "hasDados", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(this.service.dadosTransfPropSel);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "hasSelectedLote", {
        get: function () {
            if (!_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(this.service.dadosTransfPropSel))
                return false;
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(this.service.dadosTransfPropSel.filter(function (c) { return c.flagSeleciona === "S"; }));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "dadosFilter", {
        get: function () {
            var _this = this;
            return this.service.dadosTransfPropSel.filter(function (v) {
                return _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.deposito, _this.tableSaldos.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.lote, _this.tableSaldos.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "kilosLiberadoSaldo", {
        get: function () {
            if (!this.service.data.kilosLiberado)
                return 0;
            return this.service.data.kilosLiberado - this.kilosLiberadoSel;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "kilosLiberadoSel", {
        get: function () {
            return (this.service.data.kilosLiberado - this.service.dadosTransfPropSel.reduce(function (a, b) { return a + b.kilosLiberado; }, 0));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "kilosBalancaSaldo", {
        get: function () {
            if (!this.service.data.kilosBalanca)
                return 0;
            return this.service.data.kilosBalanca - this.kilosBalancaSel;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "kilosBalancaSel", {
        get: function () {
            return (this.service.data.kilosBalanca - this.service.dadosTransfPropSel.reduce(function (a, b) { return a + b.kilosBalanca; }, 0));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "kilosRetidoSaldo", {
        get: function () {
            if (!this.service.data.kilosRetido)
                return 0;
            return this.service.data.kilosRetido - this.kilosRetidoSel;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "kilosRetidoSel", {
        get: function () {
            return (this.service.data.kilosRetido - this.service.dadosTransfPropSel.reduce(function (a, b) { return a + b.kilosRetido; }, 0));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaTradingFormComponent.prototype, "dados", {
        get: function () {
            if (!this.tableSaldos)
                return [];
            if (!this.hasDados || !this.tableSaldos.filtro) {
                return this.tableSaldos.getPage(this.service.dadosTransfPropSel);
            }
            return this.tableSaldos.getPage(this.dadosFilter);
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaTradingFormComponent.prototype.validaData = function () {
        if (_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["DateTimeUtilsStaticService"].maiorAHoje(this.service.data.dtEmissao, ["H", "M",])) {
            this.messageService.warning(this.title, "messages.dataNoPodeSerMairDataAtual");
            return;
        }
    };
    TransferenciaTradingFormComponent.prototype.trataMaterial = function (event) {
        if (!event)
            return;
        if (!!this.service.data.loteD && !!this.service.data.loteD.loteId) {
            if (this.service.data.loteD.materialId !== event.materialId) {
                this.messageService.warning(this.title, "messages.loteNaoPertenceAoProdutoInformado");
                this.service.data.loteIdD = undefined;
                this.service.data.loteD = undefined;
            }
        }
    };
    TransferenciaTradingFormComponent.prototype.trataLoteOrigem = function () {
        var _this = this;
        if (!!this.service.data.loteIdO && !!this.service.data.destinatarioIdTradingO) {
            this.service.validaTrading(this.service.data.loteIdO, this.service.data.destinatarioIdTradingO).subscribe(function (resp) {
                if (!resp) {
                    _this.messageService.warning(_this.title, "messages.loteNaoPertenceATradingInformada");
                    _this.service.data.loteIdO = undefined;
                    _this.service.data.loteO = undefined;
                }
            });
        }
    };
    TransferenciaTradingFormComponent.prototype.trataLoteDestino = function () {
        var _this = this;
        if (!!this.service.data.loteIdD && !!this.service.data.destinatarioIdTradingD) {
            if (this.service.data.loteIdD === this.service.data.loteIdO) {
                this.messageService.warning(this.title, "messages.loteNaoPodeSerIgualOrigem");
                this.service.data.loteIdD = undefined;
                this.service.data.loteD = undefined;
            }
            else {
                this.service.validaTrading(this.service.data.loteIdD, this.service.data.destinatarioIdTradingD).subscribe(function (resp) {
                    if (!resp) {
                        _this.messageService.warning(_this.title, "messages.loteNaoPertenceATradingInformada");
                        _this.service.data.loteIdD = undefined;
                        _this.service.data.loteD = undefined;
                    }
                });
            }
        }
    };
    TransferenciaTradingFormComponent.prototype.cancelar = function () {
        this.service.dadosTransfPropSel = [];
        this.visibleTable = false;
    };
    TransferenciaTradingFormComponent.prototype.resetar = function () {
        this.service.data = new _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_18__["CliCliTransferenciaTrading"]();
    };
    TransferenciaTradingFormComponent.prototype.ajusteManual = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            if (_this.funcoesService.isNotUndefinedOrNull(_this.dadosAjusteManual)) {
                _this.modalAjuste.show({
                    check: +_this.dadosAjusteManual.saldoKilos === +_this.dadosAjusteManual.kilos,
                    lote: _this.dadosAjusteManual.lote,
                    kilosLiberadoSaldo: _this.dadosAjusteManual.kilosLiberadoSaldo,
                    kilosLiberado: _this.dadosAjusteManual.kilosLiberado,
                    kilosBalancaSaldo: _this.dadosAjusteManual.kilosBalancaSaldo,
                    kilosBalanca: _this.dadosAjusteManual.kilosBalanca,
                    kilosRetidoSaldo: _this.dadosAjusteManual.kilosRetidoSaldo,
                    kilosRetido: _this.dadosAjusteManual.kilosRetido,
                });
            }
            else {
                _this.messageService.warning(_this.title, "messages.selecioneUmRegistro");
            }
        });
    };
    TransferenciaTradingFormComponent.prototype.outAjuste = function (item) {
        var _this = this;
        item.flagSeleciona = "S";
        if (!item.kilosLiberado && !item.kilosBalanca && !item.kilosRetido) {
            item.flagSeleciona = "N";
        }
        var kilosLiberado = 0;
        var kilosBalanca = 0;
        var kilosRetido = 0;
        var flag = item.flagSeleciona === "S";
        if (flag) {
            if (this.kilosLiberadoSaldo - this.dadosAjusteManual.kilosLiberado + item.kilosLiberado >
                this.service.data.kilosLiberado ||
                item.kilosLiberado > item.saldoKilos) {
                this.messageService.warning(this.title, "messages.kilosInformadoMaiorDisponivel");
                return;
            }
            if (this.kilosBalancaSaldo - this.dadosAjusteManual.kilosBalanca + item.kilosBalanca >
                this.service.data.kilosBalanca ||
                item.kilosBalanca > item.saldoLitros) {
                this.messageService.warning(this.title, "messages.kilosInformadoMaiorDisponivel");
                return;
            }
            if (this.kilosRetidoSaldo - this.dadosAjusteManual.kilosRetido + item.kilosRetido >
                this.service.data.kilosRetido ||
                item.kilosRetido > item.saldoLitros) {
                this.messageService.warning(this.title, "messages.kilosInformadoMaiorDisponivel");
                return;
            }
            kilosLiberado = item.kilosLiberado;
            kilosBalanca = item.kilosBalanca;
            kilosRetido = item.kilosRetido;
        }
        this.dadosAjusteManual.flagSeleciona = item.flagSeleciona;
        this.dadosAjusteManual.flag = flag;
        this.dadosAjusteManual.kilosLiberado = kilosLiberado;
        this.dadosAjusteManual.kilosBalanca = kilosBalanca;
        this.dadosAjusteManual.kilosRetido = kilosRetido;
        this.service.updateLote(this.dadosAjusteManual).subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                if (resp && !resp.validationResult.isValid) {
                    var mensagens = _this.messageService.validationResult(resp.validationResult);
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("backError").emit(mensagens);
                    _this.funcoesService.backToTop();
                    return;
                }
                _this.modalAjuste.close();
                _this.carregaLotes(true);
            }
        });
    };
    TransferenciaTradingFormComponent.prototype.carregaLotes = function (event) {
        var _this = this;
        if (event) {
            this.service.getLoteTmp().subscribe(function (resp) {
                if (resp) {
                    _this.service.dadosTransfPropSel = resp;
                    _this.service.dadosTransfPropSel.map(function (val) {
                        if (val.flagSeleciona === "S") {
                            val.flag = true;
                        }
                        else {
                            val.flag = false;
                        }
                    });
                }
            });
        }
    };
    TransferenciaTradingFormComponent.prototype.ok = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        if (!this.validaCampos())
            return;
        this.service.seleciona(this.service.data)
            .subscribe(function (resp) {
            if (!!resp["erros"]) {
                resp = resp;
                resp.erros.forEach(function (m) { return _this.messageService.warning(_this.title, m.message); });
            }
            else {
                _this.service.dadosTransfPropSel = resp;
                _this.service.dadosTransfPropSel.map(function (val) { return (val.flag = val.flagSeleciona === "S"); });
                _this.visibleTable = true;
                _this.service.data.hasInfo = true;
            }
        });
    };
    TransferenciaTradingFormComponent.prototype.validaCampos = function () {
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].isNotPositive(this.service.data.kilosLiberado)) {
            this.messageService.warning("titles.transferenciaTrading", "messages.campoObrigatorio", { name: this.messageService.translate('labels.kilosLiberado') });
            return false;
        }
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].isNotPositive(this.service.data.kilosBalanca)) {
            this.messageService.warning("titles.transferenciaTrading", "messages.campoObrigatorio", { name: this.messageService.translate('labels.kilosBalanca') });
            return false;
        }
        return true;
    };
    TransferenciaTradingFormComponent.prototype.selectAll = function (checked) {
        var _this = this;
        if (this.hasSelectedLote)
            checked = false;
        this.btnTodos = checked;
        var dados = this.dadosFilter;
        if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ArrayUtilsStaticService"].any(dados)) {
            for (var index = 0; index < dados.length; index++) {
                var item = dados[index];
                var kilosLiberado = 0;
                var kilosBalanca = 0;
                var kilosRetido = 0;
                if (checked) {
                    var skl = this.service.data.kilosLiberado - this.kilosLiberadoSaldo;
                    if (skl > 0) {
                        if (item.kilosLiberadoSaldo > skl)
                            kilosLiberado = skl;
                        else
                            kilosLiberado = item.kilosLiberadoSaldo;
                    }
                    var skb = this.service.data.kilosBalanca - this.kilosBalancaSaldo;
                    if (skb > 0) {
                        if (item.kilosBalancaSaldo > skb)
                            kilosBalanca = skb;
                        else
                            kilosBalanca = item.kilosBalancaSaldo;
                    }
                    var skr = this.service.data.kilosRetido - this.kilosRetidoSaldo;
                    if (skr > 0) {
                        if (item.kilosRetidoSaldo > skr)
                            kilosRetido = skr;
                        else
                            kilosRetido = item.kilosRetidoSaldo;
                    }
                    if ((_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].isPositive(this.service.data.kilosLiberado) && (!kilosLiberado || this.kilosLiberadoSaldo + kilosLiberado > this.service.data.kilosLiberado)) ||
                        (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].isPositive(this.service.data.kilosRetido) && (!kilosRetido || this.kilosRetidoSaldo + kilosRetido > this.service.data.kilosRetido)) ||
                        (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].isPositive(this.service.data.kilosBalanca) && (!kilosBalanca || this.kilosBalancaSaldo + kilosBalanca > this.service.data.kilosBalanca))) {
                        return;
                    }
                }
                item.flagSeleciona = checked ? "S" : "N";
                item.flag = checked;
                item.kilosLiberado = kilosLiberado;
                item.kilosBalanca = kilosBalanca;
                item.kilosRetido = kilosRetido;
                this.service.updateLote(item).subscribe(function (resp) {
                    if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                        if (!resp.validationResult.isValid) {
                            var mensagens = _this.messageService.validationResult(resp.validationResult);
                            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("backError").emit(mensagens);
                            _this.funcoesService.backToTop();
                            return;
                        }
                    }
                });
            }
        }
        else {
            this.messageService.warning(this.title, "messages.naoExisteRegistroParaSelecionar");
        }
    };
    TransferenciaTradingFormComponent.prototype.select = function (item, index) {
        this._index = index;
        this.dadosAjusteManual = item;
    };
    TransferenciaTradingFormComponent.prototype.rowSelect = function (item, index) {
        var _this = this;
        this.dadosAjusteManual = item;
        this.currentIndex = index;
        var flagSeleciona = item.flagSeleciona === "S" ? "N" : "S";
        var kilosLiberado = 0;
        var kilosBalanca = 0;
        var kilosRetido = 0;
        if (app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_19__["BooleanUtilsStaticService"].toBoolean(flagSeleciona)) {
            var skl = this.service.data.kilosLiberado - this.kilosLiberadoSaldo;
            if (skl > 0) {
                if (item.kilosLiberadoSaldo > skl)
                    kilosLiberado = skl;
                else
                    kilosLiberado = item.kilosLiberadoSaldo;
            }
            var skb = this.service.data.kilosBalanca - this.kilosBalancaSaldo;
            if (skb > 0) {
                if (item.kilosBalancaSaldo > skb)
                    kilosBalanca = skb;
                else
                    kilosBalanca = item.kilosBalancaSaldo;
            }
            var skr = this.service.data.kilosRetido - this.kilosRetidoSaldo;
            if (skr > 0) {
                if (item.kilosRetidoSaldo > skr)
                    kilosRetido = skr;
                else
                    kilosRetido = item.kilosRetidoSaldo;
            }
            if (kilosLiberado === 0 && kilosBalanca === 0 && kilosRetido === 0) {
                this.messageService.warning(this.title, "messages.kilosLiberadoBalancaOuRetidoObrigatorio");
                return;
            }
        }
        item.flagSeleciona = flagSeleciona;
        item.kilosLiberado = kilosLiberado;
        item.kilosBalanca = kilosBalanca;
        item.kilosRetido = kilosRetido;
        this.service.updateLote(item).subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                _this.btnTodos =
                    _this.service.dadosTransfPropSel.length ===
                        _this.service.dadosTransfPropSel.filter(function (c) { return c.flagSeleciona === "S"; })
                            .length;
                if (!resp.validationResult.isValid) {
                    var mensagens = _this.messageService.validationResult(resp.validationResult);
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("backError").emit(mensagens);
                    _this.funcoesService.backToTop();
                }
            }
        });
    };
    TransferenciaTradingFormComponent.prototype.grava = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () { return __awaiter(_this, void 0, void 0, function () {
            var subject, message;
            var _this = this;
            return __generator(this, function (_a) {
                subject = this.messageService.translate(this.title);
                message = this.messageService.translate("messages.confirmaOperacaoByParam", { param: subject });
                this.messageService.confirm(this.title, message, null, function () {
                    _this.service.grava(_this.service.data).subscribe(function (result) {
                        if (_this.funcoesService.isNotUndefinedOrNull(result.validationResult)) {
                            if (result && !result.validationResult.isValid) {
                                var mensagens = _this.messageService.validationResult(result.validationResult);
                                _this.messageService.warning(_this.title, mensagens[0]);
                                return;
                            }
                        }
                        _this.funcoesService.desabilitarFiltro();
                        _this.messageService.success(_this.title, "messages.transferenciaRealizada");
                        _this.back();
                    });
                });
                return [2 /*return*/];
            });
        }); });
    };
    TransferenciaTradingFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/especificos/cli/movimentos/transferenciaTrading"]);
    };
    TransferenciaTradingFormComponent.prototype.trataTradingO = function (destinatario) {
        this.service.data.tradingO = destinatario;
        this.trataLoteOrigem();
    };
    TransferenciaTradingFormComponent.prototype.trataTradingD = function (destinatario) {
        this.service.data.tradingD = destinatario;
        this.trataLoteDestino();
    };
    TransferenciaTradingFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] },
        { type: _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_5__["TransferenciaTradingService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__["FuncoesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_17__["LoginService"] },
        { type: _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_16__["ModeloNotaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_transferencia_trading_ajuste_transferencia_trading_ajuste_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaTradingAjusteComponent"], { static: false }),
        __metadata("design:type", _transferencia_trading_ajuste_transferencia_trading_ajuste_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaTradingAjusteComponent"])
    ], TransferenciaTradingFormComponent.prototype, "modalAjuste", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_6__["TableComponent"], { static: false }),
        __metadata("design:type", _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_6__["TableComponent"])
    ], TransferenciaTradingFormComponent.prototype, "tableSaldos", void 0);
    TransferenciaTradingFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-transferencia-trading-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-trading-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./transferencia-trading-form.component.scss */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
            _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_5__["TransferenciaTradingService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__["FuncoesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_17__["LoginService"],
            _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_16__["ModeloNotaService"]])
    ], TransferenciaTradingFormComponent);
    return TransferenciaTradingFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-index/transferencia-trading-index.component.ts":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-index/transferencia-trading-index.component.ts ***!
  \*********************************************************************************************************************************************/
/*! exports provided: TransferenciaTradingIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingIndexComponent", function() { return TransferenciaTradingIndexComponent; });
/* 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 _transferencia_trading_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../transferencia-trading.constants */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.constants.ts");
/* harmony import */ var _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../transferencia-trading.model */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.model.ts");
/* harmony import */ var _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../transferencia-trading.service */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.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 TransferenciaTradingIndexComponent = /** @class */ (function (_super) {
    __extends(TransferenciaTradingIndexComponent, _super);
    function TransferenciaTradingIndexComponent(router, messageService, service, datatables, message, funcoes, permissoesUtils, loginService, configuracao) {
        var _this = _super.call(this, new _transferencia_trading_constants__WEBPACK_IMPORTED_MODULE_2__["TransferenciaTradingConstants"](), funcoes) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.data = new _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_3__["TransferenciaTradingDto"]();
        _this.constantes = new _transferencia_trading_constants__WEBPACK_IMPORTED_MODULE_2__["TransferenciaTradingConstants"]();
        _this.mensagens = [];
        _this.exibeBtnExcluir = false;
        _this.target = _this.funcoes.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.exibeBtnExcluir = _this.configuracao.boolean("WEB", "ApresExclusaoTransf");
                _this.posConfig();
            }
        };
        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 _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_3__["TransferenciaTradingFilter"]();
        }
        return _this;
    }
    TransferenciaTradingIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ModalUtilsStaticService"].openModal("transferencia-trading-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    TransferenciaTradingIndexComponent.prototype.posConfig = function () {
        this.trataBotoes();
    };
    TransferenciaTradingIndexComponent.prototype.trataBotoes = function () {
        this.buttonVisible('listaIndex', 'remove', this.exibeBtnExcluir);
    };
    TransferenciaTradingIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.service.data = new _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_3__["CliCliTransferenciaTrading"]();
            _this.router.navigate([_this.target + "/especificos/cli/movimentos/transferenciaTrading/create"]);
        }, function () { }, true);
    };
    TransferenciaTradingIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("cliCliTransferenciaTradingId", "registro"),
                _this.datatables.getDataDateTime("dtEmissao", "data", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("codTradingO", "codigo"),
                _this.datatables.getDataString("tradingO", "tradingOrigem"),
                _this.datatables.getDataString("codDest", "codigo"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataString("codEmitente", "codigo"),
                _this.datatables.getDataString("emitente", "emitente"),
                _this.datatables.getDataString("material", "codigo"),
                _this.datatables.getDataString("produto", "produto"),
                _this.datatables.getDataString("loteO", "loteOrigem"),
                _this.datatables.getDataString("deposito", "deposito"),
                _this.datatables.getDataString("codTradingD", "codigo"),
                _this.datatables.getDataString("tradingD", "tradingDestino"),
                _this.datatables.getDataString("loteD", "loteDestino"),
                _this.datatables.getDataDouble("kilosLiberado"),
                _this.datatables.getDataDouble("kilosBalanca"),
                _this.datatables.getDataDouble("kilosRetido"),
            ];
            _this.datatables.toDataTable({ tableId: "dtTransferenciaTrading", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    TransferenciaTradingIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TransferenciaTradingIndexComponent.prototype.filtrar = function () {
        jQuery("#transferencia-trading-filter-dialog").modal("show");
    };
    TransferenciaTradingIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    TransferenciaTradingIndexComponent.prototype.detail = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.cliCliTransferenciaTradingId)) {
            this.router.navigate([this.target + "/especificos/cli/movimentos/transferenciaTrading/detail/" + this.data.cliCliTransferenciaTradingId]);
        }
    };
    TransferenciaTradingIndexComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([this.target + "/especificos/cli/movimentos/transferenciaTrading",]);
    };
    TransferenciaTradingIndexComponent.prototype.remove = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.messageService.removeConfirm(function () { return __awaiter(_this, void 0, void 0, function () {
                    var validationResult, mensagens;
                    var _this = this;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, this.service.excluirTransferencia(this.data.cliCliTransferenciaTradingId).toPromise()];
                            case 1:
                                validationResult = _a.sent();
                                if (!validationResult.isValid) {
                                    mensagens = this.message.validationResult(validationResult);
                                    mensagens.forEach(function (m) { return _this.message.warning("titles.transferenciaTrading", m); });
                                    return [2 /*return*/];
                                }
                                else {
                                    this.datatables.remove("dtTransferenciaTrading");
                                }
                                return [2 /*return*/];
                        }
                    });
                }); });
                return [2 /*return*/];
            });
        }); });
    };
    ;
    TransferenciaTradingIndexComponent.prototype.onRefresh = function (event) {
        this.refresh();
    };
    TransferenciaTradingIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_4__["TransferenciaTradingService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_11__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"] }
    ]; };
    TransferenciaTradingIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-transferencia-trading-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-trading-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-index/transferencia-trading-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _transferencia_trading_service__WEBPACK_IMPORTED_MODULE_4__["TransferenciaTradingService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_11__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"]])
    ], TransferenciaTradingIndexComponent);
    return TransferenciaTradingIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.constants.ts":
/*!***********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.constants.ts ***!
  \***********************************************************************************************************/
/*! exports provided: TransferenciaTradingConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingConstants", function() { return TransferenciaTradingConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TransferenciaTradingConstants = /** @class */ (function () {
    function TransferenciaTradingConstants() {
        this.sisFormularioId = 375398;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.ajusteManual" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.gerar" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.transferenciaTrading";
        this.reportTitulo = { "titulo": "Transferência Trading", "subTitulo": "" };
        this.tabela = "TransferenciaTrading";
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            { 'sistema': 'WEB', 'parametros': ["ApresExclusaoTransf"] }
        ];
    }
    return TransferenciaTradingConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.model.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.model.ts ***!
  \*******************************************************************************************************/
/*! exports provided: CliCliTransferenciaTrading, CliCliTransferenciaTradingLote, TransferenciaTradingDto, TransferenciaTradingFilter, TransferenciaTradingSelDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CliCliTransferenciaTrading", function() { return CliCliTransferenciaTrading; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CliCliTransferenciaTradingLote", function() { return CliCliTransferenciaTradingLote; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingDto", function() { return TransferenciaTradingDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingFilter", function() { return TransferenciaTradingFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingSelDto", function() { return TransferenciaTradingSelDto; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../cadastro/lote/lote.model */ "./src/app/pages/cadastro/lote/lote.model.ts");
/* harmony import */ var _cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var CliCliTransferenciaTrading = /** @class */ (function (_super) {
    __extends(CliCliTransferenciaTrading, _super);
    function CliCliTransferenciaTrading() {
        var _this = _super.call(this) || this;
        _this.hasInfo = false;
        _this.dtEmissao = new Date();
        _this.cliCliTransferenciaTradingId = 0;
        _this.destinatarioIdCliente = "";
        _this.destinatarioIdEmitente = "";
        _this.destinatarioIdTradingO = "";
        _this.materialId = "";
        _this.destinatarioIdTradingD = "";
        _this.loteIdO = "";
        _this.loteIdD = "";
        _this.cliente = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
        _this.emitente = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
        _this.tradingO = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
        _this.material = new _cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__["Material"]();
        _this.loteO = new _cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_3__["Lote"]();
        _this.tradingD = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
        _this.loteD = new _cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_3__["Lote"]();
        return _this;
    }
    return CliCliTransferenciaTrading;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

var TransferenciaTradingDto = /** @class */ (function (_super) {
    __extends(TransferenciaTradingDto, _super);
    function TransferenciaTradingDto() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return TransferenciaTradingDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var TransferenciaTradingFilter = /** @class */ (function () {
    function TransferenciaTradingFilter() {
        this.destinatarioIdTradingOrigem = 0;
        this.destinatarioIdTradingDestino = 0;
        this.dataI = _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].getFirstDayOfMonth();
        this.dataF = _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].getFinalDay();
    }
    return TransferenciaTradingFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.module.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.module.ts ***!
  \********************************************************************************************************/
/*! exports provided: TransferenciaTradingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingModule", function() { return TransferenciaTradingModule; });
/* 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 _transferencia_trading_ajuste_transferencia_trading_ajuste_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transferencia-trading-ajuste/transferencia-trading-ajuste.component */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-ajuste/transferencia-trading-ajuste.component.ts");
/* harmony import */ var _transferencia_trading_filter_transferencia_trading_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transferencia-trading-filter/transferencia-trading-filter.component */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-filter/transferencia-trading-filter.component.ts");
/* harmony import */ var _transferencia_trading_form_transferencia_trading_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transferencia-trading-form/transferencia-trading-form.component */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.ts");
/* harmony import */ var _transferencia_trading_index_transferencia_trading_index_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./transferencia-trading-index/transferencia-trading-index.component */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-index/transferencia-trading-index.component.ts");
/* harmony import */ var _transferencia_trading_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./transferencia-trading.routing.module */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.routing.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var TransferenciaTradingModule = /** @class */ (function () {
    function TransferenciaTradingModule() {
    }
    TransferenciaTradingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _transferencia_trading_routing_module__WEBPACK_IMPORTED_MODULE_6__["TransferenciaTradingRoutingModule"]],
            declarations: [
                _transferencia_trading_form_transferencia_trading_form_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaTradingFormComponent"],
                _transferencia_trading_index_transferencia_trading_index_component__WEBPACK_IMPORTED_MODULE_5__["TransferenciaTradingIndexComponent"],
                _transferencia_trading_filter_transferencia_trading_filter_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaTradingFilterComponent"],
                _transferencia_trading_ajuste_transferencia_trading_ajuste_component__WEBPACK_IMPORTED_MODULE_2__["TransferenciaTradingAjusteComponent"],
            ]
        })
    ], TransferenciaTradingModule);
    return TransferenciaTradingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.routing.module.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.routing.module.ts ***!
  \****************************************************************************************************************/
/*! exports provided: TransferenciaTradingRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingRoutingModule", function() { return TransferenciaTradingRoutingModule; });
/* 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_trading_form_transferencia_trading_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transferencia-trading-form/transferencia-trading-form.component */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-form/transferencia-trading-form.component.ts");
/* harmony import */ var _transferencia_trading_index_transferencia_trading_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transferencia-trading-index/transferencia-trading-index.component */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading-index/transferencia-trading-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_trading_index_transferencia_trading_index_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaTradingIndexComponent"],
        data: { breadcrumb: "transferenciaTrading", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _transferencia_trading_form_transferencia_trading_form_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaTradingFormComponent"],
        data: {
            breadcrumb: "transferenciaTrading",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _transferencia_trading_form_transferencia_trading_form_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaTradingFormComponent"],
        data: {
            breadcrumb: "transferenciaTrading",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _transferencia_trading_form_transferencia_trading_form_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaTradingFormComponent"],
        data: {
            breadcrumb: "transferenciaTrading",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var TransferenciaTradingRoutingModule = /** @class */ (function () {
    function TransferenciaTradingRoutingModule() {
    }
    TransferenciaTradingRoutingModule = __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"]]
        })
    ], TransferenciaTradingRoutingModule);
    return TransferenciaTradingRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.service.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.service.ts ***!
  \*********************************************************************************************************/
/*! exports provided: TransferenciaTradingService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaTradingService", function() { return TransferenciaTradingService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./transferencia-trading.model */ "./src/app/pages/especificos/cli/movimentos/transferencia-trading/transferencia-trading.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var TransferenciaTradingService = /** @class */ (function (_super) {
    __extends(TransferenciaTradingService, _super);
    function TransferenciaTradingService(http) {
        var _this = _super.call(this, http, "cli/transferenciaTrading") || this;
        _this.http = http;
        _this.data = new _transferencia_trading_model__WEBPACK_IMPORTED_MODULE_6__["CliCliTransferenciaTrading"]();
        return _this;
    }
    TransferenciaTradingService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cli/transferenciaTrading/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransferenciaTradingService.prototype.seleciona = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cli/transferenciaTrading/selecionaLote", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransferenciaTradingService.prototype.updateLote = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cli/transferenciaTrading/setLote", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransferenciaTradingService.prototype.getLoteTmp = function () {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cli/transferenciaTrading/getLoteTmp")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransferenciaTradingService.prototype.grava = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cli/transferenciaTrading/grava", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransferenciaTradingService.prototype.verifSePermiteCancelar = function (regMovTransfPropriedadeId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cli/transferenciaTrading/verifSePermiteCancelar/" + regMovTransfPropriedadeId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransferenciaTradingService.prototype.validaTrading = function (lote, codTrading) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cli/transferenciaTrading/validaTrading", { lote: lote, codTrading: codTrading })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransferenciaTradingService.prototype.excluirTransferencia = function (cliCliTransferenciaTradingId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/cli/transferenciaTrading/excluir/" + cliCliTransferenciaTradingId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TransferenciaTradingService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    TransferenciaTradingService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], TransferenciaTradingService);
    return TransferenciaTradingService;
}(_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cli-movimentos-transferencia-trading-transferencia-trading-module.js.map