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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-filter/transferencia-filter.component.html":
/*!*********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-filter/transferencia-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-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.transferenciaProdutos' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"movEstoque\">\n                                    {{ 'labels.movEstoque' | translate }}\n                                </label>\n                                <select class=\"form-control\" id=\"movEstoque\" name=\"movEstoque\"\n                                        [ngStyle]=\"{'height':'29px'}\"\n                                        [(ngModel)]=\"service.filtro.tipoMovimento\">\n                                    <option value=\"LB\">{{ 'labels.liberados' | translate }}</option>\n                                    <option value=\"SL\">{{ 'labels.semLiberacao' | translate }}</option>\n                                    <option value=\"BL\">{{ 'labels.balanca' | translate }}</option>\n                                    <option value=\"RT\">{{ 'labels.retidos' | translate }}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\n                                                           modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\n                                                           [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\n                                                           showInscricao=\"false\"\n                                                           showCgcCpf=\"false\"\n                                                           [inSelected]=\"cliente\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12\">\n                            <app-pesquisa-destinatario id=\"emitente\"\n                                                       name=\"emitente\"\n                                                       tipoDestinatario=\"C\"\n                                                       modalTitle=\"pesquisaDeEmitente\"\n                                                       label=\"emitente\"\n                                                       [(ngModel)]=\"service.filtro.destinatarioIdEmitente\"\n                                                       showInscricao=\"false\"\n                                                       showCgcCpf=\"false\"\n                                                       [inSelected]=\"emitente\">\n                            </app-pesquisa-destinatario>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <app-pesquisa-material id=\"material\"\n                                               label=\"produto\"\n                                               name=\"material\"\n                                               modalTitle=\"produto\"\n                                               [(ngModel)]=\"service.filtro.materialId\"\n                                               [inSelected]=\"material\">\n                            </app-pesquisa-material>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <app-pesquisa-lote id=\"lote\"\n                                               label=\"lote\"\n                                               name=\"lote\"\n                                               modalTitle=\"lote\"\n                                               [(ngModel)]=\"service.filtro.loteId\"\n                                               [loteId]=\"service.filtro.loteId\"\n                                               [materialId]=\"service.filtro.materialId\"\n                                               [destinatarioIdCliente]=\"service.filtro.destinatarioIdCliente\"\n                                               [destinatarioIdEmitente]=\"service.filtro.destinatarioIdEmitente\"\n                                               [osgId]=\"service.filtro.osgId\"\n                                               [stoContratoId]=\"service.filtro.stoContratoId\"\n                                               [stoContratoItemId]=\"service.filtro.stoContratoItemId\"\n                                               (outLote)=\"onSelectedLote($event)\">\n                            </app-pesquisa-lote>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-tanque id=\"deposito\"\n                                                     name=\"deposito\"\n                                                     label=\"deposito\"\n                                                     modalTitle=\"deposito\"\n                                                     [(ngModel)]=\"service.filtro.tanqueId\"\n                                                     [disabled]=\"blockFields\">\n                                </app-pesquisa-tanque>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"de\" class=\"required\">{{'labels.periodoDe' | translate}}</label>\n                                <app-data id=\"de\"\n                                          name=\"de\"\n                                          required=\"true\"\n                                          [(ngModel)]=\"service.filtro.de\"\n                                          [ngStyle]=\"{'width':'100%'}\">\n\n                                </app-data>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ate\" class=\"required\">{{'labels.ate' | translate}}</label>\n                                <app-data id=\"ate\"\n                                          name=\"ate\"\n                                          required=\"true\"\n                                          [(ngModel)]=\"service.filtro.ate\"\n                                          [ngStyle]=\"{'width':'100%'}\">\n\n                                </app-data>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"documento\">{{'labels.documento' | translate}}</label>\n                                <input id=\"documento\" name=\"documento\" [(ngModel)]=\"service.filtro.documento\" autofocus\n                                       class=\"form-control form-control-sm\" type=\"number\" maxlength=\"9\">\n                            </div>\n                        </div>\n                    </div>\n\n\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-form/transferencia-form.component.html":
/*!*****************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-form/transferencia-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\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.transfdeProdutosId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                    <app-validacoes></app-validacoes>\n                    <label>{{ typeDocumet }}</label>\n                    <hr/>\n                    <div class=\"row\">\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"documento\">{{'labels.documento' | translate}}</label>\n                                <input id=\"documento\" name=\"documento\" [(ngModel)]=\"data.transfdeProdutosId\"\n                                       class=\"form-control form-control-sm\" type=\"number\" maxlength=\"9\"\n                                       disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"data\" class=\"required\">{{'labels.dataHora' | translate}}</label>\n                                <app-data id=\"data\"\n                                          name=\"data\"\n                                          required=\"true\"\n                                          [(ngModel)]=\"data.dtMovimento\"\n                                          [ngStyle]=\"{'width':'100%'}\"\n                                          [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                          [disabled]=\"!funcoesService.isCreate(actionForm)\"\n                                          autofocus\n                                          (executa)=\"validaDtMovimento()\"></app-data>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"cliente\"\n                                                           name=\"cliente\"\n                                                           label=\"cliente\"\n                                                           modalTitle=\"cliente\"\n                                                           required=\"true\"\n                                                           [(ngModel)]=\"data.destinatarioIdCliente\"\n                                                           tipoDestinatario=\"C\"\n                                                           showCgcCpf=\"false\"\n                                                           showInscricao=\"false\"\n                                                           [inSelected]=\"cliente\"\n                                                           [disabled]=\"blockFields || !funcoesService.isCreate(actionForm)\"\n                                >\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"materialId\"\n                                                       name=\"materialId\"\n                                                       label=\"produto\"\n                                                       modalTitle=\"pesquisaDeProduto\"\n                                                       required=\"true\"\n                                                       [(ngModel)]=\"data.materialId\"\n                                                       [disabled]=\"blockFields || !funcoesService.isCreate(actionForm)\"\n                                                       [inSelected]=\"material\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                            <label for=\"codMov\" class=\"required\">{{'labels.codMovimentacao' | translate}}</label>\n                            <div class=\"form-group form-group-sm codMov\">\n                                <app-combo-padrao\n                                        id=\"codMov\"\n                                        name=\"codMov\"\n                                        [(ngModel)]=\"data.codMovProdutoId\"\n                                        tabela=\"CodMovProduto\"\n                                        chave=\"CodMov\"\n                                        descricao=\"DescrMov\"\n                                        ativos=\"true\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                >\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row lote\">\n                        <div class=\"col-lg-3 col-md-12 col-sm-12\">\n                            <app-pesquisa-saldo-lote-deposito id=\"lote\" name=\"lote\" required=\"true\" [modalTitle]=\"'lotes'\"\n                                [disabled]=\"disabledLote\" [field]=\"'loteId'\"\n                                [options]=\"saldoLoteOptions\" [(ngModel)]=\"data.loteIdLote\" (outModel)=\"outLoteSaldo($event)\">\n                            </app-pesquisa-saldo-lote-deposito>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-saldo-lote-deposito id=\"deposito\" name=\"deposito\" required=\"true\"\n                                    [label]=\"'deposito'\" [modalTitle]=\"'deposito'\"\n                                    [disabled]=\"disabledTanque\"\n                                    [field]=\"'tanqueId'\" \n                                    [options]=\"saldoDepositoOptions\" \n                                    [(ngModel)]=\"data.tanqueIdDeposito\"\n                                    (outModel)=\"trataDeposito($event)\">\n                                </app-pesquisa-saldo-lote-deposito>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"kilos\">{{'labels.kilos' | translate}}</label>\n                                <input id=\"kilos\" name=\"kilos\"\n                                       [(ngModel)]=\"data.kilos\" maxlength=\"25\"\n                                       class=\"form-control form-control-sm\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0, allowNegative: false }\"\n                                       type=\"text\"\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                       (blur)=\"validaKilos()\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"kilosDisponivel\">{{'labels.kilosDisponivel' | translate}}</label>\n                                <input id=\"kilosDisponivel\" name=\"kilosDisponivel\"\n                                       [(ngModel)]=\"data.kilosDisponivel\" maxlength=\"25\"\n                                       class=\"form-control form-control-sm\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                       type=\"text\"\n                                       disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"litros\">{{'labels.litrosCc' | translate}}</label>\n                                <input id=\"litros\" name=\"litros\"\n                                       [(ngModel)]=\"data.litros\" maxlength=\"20\"\n                                       class=\"form-control form-control-sm\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0, allowNegative: false }\"\n                                       type=\"text\"\n                                       [disabled]=\"disableLitros\"\n                                       (blur)=\"validaLitros()\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"litrosCcDisponivel\">{{'labels.litrosDisponivel' |\n                                    translate}}</label>\n                                <input id=\"litrosCcDisponivel\" name=\"litrosCcDisponivel\"\n                                       [(ngModel)]=\"data.litrosDisponivel\" maxlength=\"20\"\n                                       class=\"form-control form-control-sm\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                       type=\"text\"\n                                       disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"quantidade\">{{'labels.quantidade' | translate}}</label>\n                                <input id=\"quantidade\" name=\"quantidade\"\n                                       [(ngModel)]=\"data.quantid\" maxlength=\"11\"\n                                       class=\"form-control form-control-sm\"\n                                       type=\"text\"\n                                       [disabled]=\"funcoesService.isDetail(actionForm) || !isMovQuantid\"\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0, allowNegative: false }\"\n                                       (blur)=\"validaQuantidade()\">\n                            </div>\n                        </div>\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"quantidadeDisponivel\">{{'labels.quantidadeDisponivel' | translate}}</label>\n                                <input id=\"quantidadeDisponivel\" name=\"quantidadeDisponivel\"\n                                       [(ngModel)]=\"data.quantidadeDisponivel\" maxlength=\"11\"\n                                       class=\"form-control form-control-sm\"\n                                       type=\"text\"\n                                       disabled\n                                       currencyMask\n                                       [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"observacao\">{{'labels.observacoes' |\n                                    translate}}</label>\n                                <input id=\"observacao\" name=\"observacao\"\n                                       [(ngModel)]=\"data.observ\" maxlength=\"70\"\n                                       class=\"form-control form-control-sm\"\n                                       type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                >\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row movimentacaoFisica\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"movimentacaoFisica\" name=\"movimentacaoFisica\"\n                                       [ngModel]=\"data.flagMovimentacaoFisica === 'S'\"\n                                       (ngModelChange)=\"data.flagMovimentacaoFisica = $event?'S':'N'\"\n                                       class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                       [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                <label class=\"custom-control-label\"\n                                       for=\"movimentacaoFisica\">{{'labels.movimentacaoFisica' | translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-6 col-md-12\" [ngStyle]=\"{'padding':'0 0 0 0'}\">\n                        <app-card-container tituloCard=\"destino\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-saldo-lote-deposito id=\"depositoDestino\" name=\"depositoDestino\" required=\"true\"\n                                            [label]=\"'deposito'\" [modalTitle]=\"'deposito'\"\n                                            [disabled]=\"!funcoesService.isCreate(actionForm) || !data.dtMovimento || data.dtMovimento === ''\"\n                                            [field]=\"'tanqueId'\" \n                                            [options]=\"saldoDepositoDestinoOptions\" \n                                            [(ngModel)]=\"data.tanqueIdDeposito_1\"\n                                            (outModel)=\"trataDepositoDestino($event)\">\n                                        </app-pesquisa-saldo-lote-deposito>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"destinoQuantidade\" [class.required]=\"isMovQuantidDestino\">{{'labels.quantidade' |\n                                            translate}}</label>\n                                        <input id=\"quatidadeDestino\" name=\"quatidadeDestino\"\n                                               [(ngModel)]=\"data.quantidDest\" maxlength=\"11\"\n                                               class=\"form-control form-control-sm\"\n                                               [disabled]=\"funcoesService.isDetail(actionForm) || !isMovQuantidDestino\"\n                                               [required]=\"isMovQuantidDestino\"\n                                               type=\"text\"\n                                               currencyMask\n                                               [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0, allowNegative: false }\"\n                                        >\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\" *ngIf=\"isMovBalanca\">\n                                <div class=\"col-lg-6 col-md-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-saldo-lote-deposito id=\"loteDestino\" name=\"loteDestino\" required=\"true\"\n                                            [modalTitle]=\"'lotes'\"\n                                            [disabled]=\"disabledLote\"\n                                            [field]=\"'loteId'\" \n                                            [options]=\"saldoLoteDestinoOptions\" \n                                            [(ngModel)]=\"data.loteIdLote_1\"\n                                            (outModel)=\"trataLoteDestino($event)\">\n                                        </app-pesquisa-saldo-lote-deposito>\n                                    </div>\n                                </div>\n                            </div>\n                        </app-card-container>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-4\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                                <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' | translate }}</button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-index/transferencia-index.component.html":
/*!*******************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-index/transferencia-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\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.transfdeProdutosId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtTransferencia\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-transferencia-filter (filtrar)=\"executaFiltro($event)\"></app-transferencia-filter>\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2NvbnRyb2xlL3RyYW5zZmVyZW5jaWEvdHJhbnNmZXJlbmNpYS1maWx0ZXIvdHJhbnNmZXJlbmNpYS1maWx0ZXIuY29tcG9uZW50LnNjc3MifQ== */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaFilterComponent", function() { return TransferenciaFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _transferencia_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../transferencia.service */ "./src/app/pages/controle/transferencia/transferencia.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 TransferenciaFilterComponent = /** @class */ (function () {
    function TransferenciaFilterComponent(messageService, funcoesService, service) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAtual = new Date();
        this.blockFields = false;
    }
    TransferenciaFilterComponent.prototype.ngOnInit = function () {
    };
    TransferenciaFilterComponent.prototype.onSubmit = function (form) {
        if (!this.service.filtro.de || !this.service.filtro.ate) {
            this.messageService.warning("titles.transferencia", "messages.informeDataDeDataAte");
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.service.filtro.loteId)) {
            if (this.funcoesService.isUndefinedOrNull(this.service.filtro.destinatarioIdCliente
                && this.funcoesService.isUndefinedOrNull(this.service.filtro.destinatarioIdEmitente)
                && this.funcoesService.isUndefinedOrNull(this.service.filtro.materialId))) {
                this.messageService.warning("titles.transferencia", "messages.informeClienteOuProdutoOuEmitente");
                return;
            }
        }
        if (!form.invalid) {
            jQuery("#transferencia-filter").modal("hide");
            this.filtrar.emit(this.service.filtro);
        }
    };
    TransferenciaFilterComponent.prototype.onSelectedLote = function (event) {
        if (!event || !event.lote) {
            return;
        }
        else {
            this.service.filtro.destinatarioIdCliente = event.lote.destinatarioIdCliente;
            this.cliente = event.lote.cliente;
            this.service.filtro.materialId = event.lote.materialId;
            this.material = event.lote.material;
            this.service.filtro.destinatarioIdEmitente = event.lote.destinatarioIdEmitente;
            this.emitente = event.lote.emitente;
        }
    };
    TransferenciaFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] },
        { type: _transferencia_service__WEBPACK_IMPORTED_MODULE_3__["TransferenciaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TransferenciaFilterComponent.prototype, "filtrar", void 0);
    TransferenciaFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-transferencia-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-filter/transferencia-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./transferencia-filter.component.scss */ "./src/app/pages/controle/transferencia/transferencia-filter/transferencia-filter.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"],
            _transferencia_service__WEBPACK_IMPORTED_MODULE_3__["TransferenciaService"]])
    ], TransferenciaFilterComponent);
    return TransferenciaFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/transferencia/transferencia-form/transferencia-form.component.scss":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/controle/transferencia/transferencia-form/transferencia-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"] = ("div.row.movimentacaoFisica {\n  margin-bottom: 2%;\n}\n\ndiv.form-group.form-group-sm.codMov {\n  height: auto !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY29udHJvbGUvdHJhbnNmZXJlbmNpYS90cmFuc2ZlcmVuY2lhLWZvcm0vQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxjb250cm9sZVxcdHJhbnNmZXJlbmNpYVxcdHJhbnNmZXJlbmNpYS1mb3JtXFx0cmFuc2ZlcmVuY2lhLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2NvbnRyb2xlL3RyYW5zZmVyZW5jaWEvdHJhbnNmZXJlbmNpYS1mb3JtL3RyYW5zZmVyZW5jaWEtZm9ybS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGlCQUFBO0FDQ0Y7O0FERUE7RUFDRSx1QkFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvY29udHJvbGUvdHJhbnNmZXJlbmNpYS90cmFuc2ZlcmVuY2lhLWZvcm0vdHJhbnNmZXJlbmNpYS1mb3JtLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiZGl2LnJvdy5tb3ZpbWVudGFjYW9GaXNpY2Ege1xyXG4gIG1hcmdpbi1ib3R0b206IDIlO1xyXG59XHJcblxyXG5kaXYuZm9ybS1ncm91cC5mb3JtLWdyb3VwLXNtLmNvZE1vdiB7XHJcbiAgaGVpZ2h0OiBhdXRvICFpbXBvcnRhbnQ7XHJcbn1cclxuIiwiZGl2LnJvdy5tb3ZpbWVudGFjYW9GaXNpY2Ege1xuICBtYXJnaW4tYm90dG9tOiAyJTtcbn1cblxuZGl2LmZvcm0tZ3JvdXAuZm9ybS1ncm91cC1zbS5jb2RNb3Yge1xuICBoZWlnaHQ6IGF1dG8gIWltcG9ydGFudDtcbn0iXX0= */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaFormComponent", function() { return TransferenciaFormComponent; });
/* 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_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __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_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 _transferencia_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../transferencia.constants */ "./src/app/pages/controle/transferencia/transferencia.constants.ts");
/* harmony import */ var _transferencia_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../transferencia.model */ "./src/app/pages/controle/transferencia/transferencia.model.ts");
/* harmony import */ var _transferencia_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../transferencia.service */ "./src/app/pages/controle/transferencia/transferencia.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../../../cadastro/lote/lote.service */ "./src/app/pages/cadastro/lote/lote.service.ts");
/* harmony import */ var _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../../cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./../../../cadastro/tanque/tanque.service */ "./src/app/pages/cadastro/tanque/tanque.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



















var TransferenciaFormComponent = /** @class */ (function (_super) {
    __extends(TransferenciaFormComponent, _super);
    function TransferenciaFormComponent(router, messageService, activatedRoute, service, funcoesService, loginService, configuracao, loteService, permissoesUtils, tanqueService, destinatarioService, materialService) {
        var _this = _super.call(this, new _transferencia_constants__WEBPACK_IMPORTED_MODULE_12__["TransferenciaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.loteService = loteService;
        _this.permissoesUtils = permissoesUtils;
        _this.tanqueService = tanqueService;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.data = new _transferencia_model__WEBPACK_IMPORTED_MODULE_13__["Transferencia"]();
        _this.mensagens = [];
        _this.constantes = new _transferencia_constants__WEBPACK_IMPORTED_MODULE_12__["TransferenciaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.blockFields = false;
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.dtSeguro = _this.funcoesService.dateTimeUtils.convertDateSqlToDate(_this.configuracao.lerConfig("CTR", "dtSeguro"));
                _this.validaDtMovimento();
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TransferenciaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.isMovQuantid = false;
        this.isMovQuantidDestino = false;
        this.litrosAnt = 0;
        this.kilosAnt = 0;
        this.quantidadeAnt = 0;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.tipo = _this.activatedRoute.snapshot.paramMap.get("type");
            if (id) {
                _this.service._getById(id, _this.tipo).subscribe(function (resp) {
                    _this.data = resp;
                    _this.material = resp.materiais;
                    _this.cliente = resp.clientes;
                    _this.quantidadeAnt = _this.data.quantid;
                    _this.kilosAnt = _this.data.kilos;
                    _this.litrosAnt = _this.data.litros;
                    _this.getSaldos(_this.data.loteIdLote, _this.data.tanqueIdDeposito, _this.data.tanqueIdDeposito_1, _this.tipo);
                    _this.loadConfig();
                });
            }
            _this.configuracao.getConfig(_this.constantes.configs, _this.loadConfig);
            switch (_this.tipo) {
                case "SL":
                    _this.mode = 1;
                    _this.typeDocumet = _this.messageService.getTranslates("labels", "semLiberacao");
                    break;
                case "BL":
                    _this.mode = 3;
                    _this.typeDocumet = _this.messageService.getTranslates("labels", "balanca");
                    break;
                case "RT":
                    _this.mode = 4;
                    _this.typeDocumet = _this.messageService.getTranslates("labels", "retidos");
                    break;
                default:
                    _this.mode = 2;
                    _this.typeDocumet = _this.messageService.getTranslates("labels", "liberados");
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    TransferenciaFormComponent.prototype.validaDtMovimento = function () {
        if (!!this.data.dtMovimento && this.data.dtMovimento < this.dtSeguro) {
            this.messageService.warning("titles.transferencia", "messages.dtRequisicaoDeveSerMaiorDataSeguro");
            return false;
        }
        return true;
    };
    TransferenciaFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/controle/transferencia"]);
    };
    TransferenciaFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        if (!this.isValid(form)) {
            return;
        }
        this.data.tipoMovimento = this.tipo;
        if (this.data.tipoMovimento === 'SL') {
            this.data.tipoOper = 'N';
        }
        else if (this.data.tipoMovimento === 'RT') {
            this.data.tipoOper = 'N';
        }
        else if (this.data.tipoMovimento === 'LB' || this.data.tipoMovimento === 'BL') {
            this.data.tipoOper = 'L';
        }
        this.data.logRotina = "Transferencia";
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            if (result) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
            }
            if (result && result.validationResult != null && !result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                if (create) {
                    _this.messageService.saveSuccess("titles.transferencia");
                    _this.data = new _transferencia_model__WEBPACK_IMPORTED_MODULE_13__["Transferencia"]();
                    _this.router.navigate([_this.target + "/controle/transferencia/create/" + _this.tipo]);
                }
                else {
                    _this.messageService.saveSuccess("titles.transferencia");
                    _this.back();
                }
            }
        });
    };
    TransferenciaFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    TransferenciaFormComponent.prototype.edit = function () {
        if (!!(this.data.transfdeProdutosId) && !!(this.data.transfdeProdutosId)) {
            this.router.navigate([this.target + "/controle/transferencia/edit/" + this.data.transfdeProdutosId + "/" + this.tipo]);
        }
    };
    TransferenciaFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    TransferenciaFormComponent.prototype.validaQuantidade = function () {
        if (this.funcoesService.isPositive(this.data.quantid)) {
            if (this.data.quantid > ((this.data.quantidadeDisponivel + this.quantidadeAnt))) {
                this.messageService.warning("titles.transferencia", "messages.quantidInfMaiorQuantidDisponivel");
                this.data.quantid = this.quantidadeAnt;
            }
        }
    };
    TransferenciaFormComponent.prototype.validaKilos = function () {
        var _this = this;
        if (this.funcoesService.isPositive(this.data.kilos)) {
            var object = {
                colaboradorId: this.loginService.getLogin().colaboradorId,
                loteId: this.data.loteIdLote,
                tanqueId: this.data.tanqueIdDeposito,
                tipo: this.tipo,
                kilos: this.data.kilos
            };
            if (this.data.kilos > ((this.data.kilosDisponivel + this.kilosAnt))) {
                this.messageService.warning("titles.transferencia", "messages.kilosInfMaiorKilosDisponivel");
                this.data.kilos = this.kilosAnt;
            }
            else {
                this.loteService._getById(object.loteId).subscribe(function (r) {
                    if (r) {
                        var densidade = r.densidade;
                        var unidade = r.unidadeId;
                        if (!!densidade && densidade > 0) {
                            if (unidade === 'LT') {
                                _this.data.litros = Math.round((_this.data.kilos / densidade));
                            }
                            if (unidade === 'CC') {
                                _this.data.litros = Math.round((_this.data.kilos * densidade));
                            }
                            _this._disableLitros = false;
                            if (_this.data.litros > ((_this.data.litrosDisponivel + _this.litrosAnt))) {
                                _this.data.litros = _this.data.litrosDisponivel;
                                _this._disableLitros = true;
                            }
                        }
                    }
                });
            }
        }
    };
    TransferenciaFormComponent.prototype.validaLitros = function () {
        if (this.funcoesService.isPositive(this.data.litros)) {
            var object = {
                colaboradorId: this.loginService.getLogin().colaboradorId,
                loteId: this.data.loteIdLote,
                tanqueId: this.data.tanqueIdDeposito,
                tipo: this.tipo,
                litros: this.data.litros
            };
            if (this.data.litros > ((this.data.litrosDisponivel + this.litrosAnt))) {
                this.messageService.warning("titles.transferencia", "messages.litrosInfMaiorLitrosDisponivel");
            }
        }
    };
    TransferenciaFormComponent.prototype.isValid = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return false;
        }
        if (!app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["NumberUtilsStaticService"].isPositive(this.data.kilos) &&
            !app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["NumberUtilsStaticService"].isPositive(this.data.litros) &&
            !app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["NumberUtilsStaticService"].isPositive(this.data.quantid)) {
            this.messageService.warning("titles.transferencia", "messages.kilosLitrosOuQuantidEObrigatorio");
            return false;
        }
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["NumberUtilsStaticService"].isNotPositive(this.data.kilos) &&
            app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["NumberUtilsStaticService"].isNotPositive(this.data.litros)) {
            this.messageService.warning("titles.transferencia", "messages.kilosOuLitrosObrigatorios");
            return;
        }
        return true;
    };
    TransferenciaFormComponent.prototype.getSaldos = function (loteId, tanqueIdOrigem, tanqueIdDestino, tipo) {
        var _this = this;
        var object = { loteId: loteId, tanqueId: tanqueIdOrigem, tipo: tipo };
        var getSaldoQuantidade = this.service.getSaldoQuantidade(object);
        var getSaldoKg = this.service.getSaldoKg(object);
        var getSaldoLt = this.service.getSaldoLt(object);
        var getByIdTanqueOrigem = this.tanqueService.getById(btoa(tanqueIdOrigem));
        var getByIdTanqueDestino = this.tanqueService.getById(btoa(tanqueIdDestino));
        Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["forkJoin"])([getSaldoQuantidade, getSaldoKg, getSaldoLt, getByIdTanqueOrigem, getByIdTanqueDestino]).subscribe(function (resp) {
            _this.data.quantidadeDisponivel = resp[0];
            _this.data.kilosDisponivel = resp[1];
            _this.data.litrosDisponivel = resp[2];
            _this.isMovQuantid = resp[3].movQuantid === 'S' ? true : false;
            _this.isMovQuantidDestino = resp[4].movQuantid === 'S' ? true : false;
        });
    };
    TransferenciaFormComponent.prototype.trataDeposito = function (e) {
        this.data.tanque = e;
        this.getSaldos(this.data.loteIdLote, this.data.tanqueIdDeposito, this.data.tanqueIdDeposito_1, this.tipo);
    };
    TransferenciaFormComponent.prototype.trataDepositoDestino = function (e) {
        var _this = this;
        this.data.tanqueDestino = e;
        this.tanqueService.getById(btoa(this.data.tanqueDestino.tanqueId)).subscribe(function (r3) {
            if (r3) {
                _this.isMovQuantidDestino = r3.movQuantid === 'S' ? true : false;
            }
        });
    };
    Object.defineProperty(TransferenciaFormComponent.prototype, "disabledLote", {
        get: function () {
            var disabled = !this.funcoesService.isCreate(this.actionForm) || !this.data.dtMovimento || this.data.dtMovimento === '';
            if (!disabled) {
                return !this.data.destinatarioIdCliente || !this.data.materialId;
            }
            return disabled;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaFormComponent.prototype, "disabledTanque", {
        get: function () {
            var disabled = !this.funcoesService.isCreate(this.actionForm) || !this.data.dtMovimento || this.data.dtMovimento === '';
            if (!disabled) {
                return !this.data.destinatarioIdCliente || !this.data.materialId;
            }
            return disabled;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaFormComponent.prototype, "disableLitros", {
        get: function () {
            var disableLitros = this.funcoesService.isDetail(this.actionForm);
            if (!disableLitros) {
                disableLitros = this._disableLitros;
            }
            return disableLitros;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaFormComponent.prototype, "isMovBalanca", {
        get: function () {
            return this.tipo === 'BL';
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaFormComponent.prototype.outLoteSaldo = function (event) {
        if (this.funcoesService.stringUtils.isNotEmpty(event.lote)) {
            this.data.destinatarioIdCliente = event.lote.destinatarioIdCliente;
            this.cliente = event.lote.cliente;
            this.data.materialId = event.lote.materialId;
            this.material = event.lote.material;
        }
    };
    TransferenciaFormComponent.prototype.trataLoteDestino = function (event) {
        if (this.funcoesService.stringUtils.isNotEmpty(event.lote)) {
            this.data.destinatarioIdCliente = event.lote.destinatarioIdCliente;
            this.cliente = event.lote.cliente;
            this.data.materialId = event.lote.materialId;
            this.material = event.lote.material;
        }
    };
    Object.defineProperty(TransferenciaFormComponent.prototype, "saldoLoteDestinoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.data.destinatarioIdCliente,
                materialId: this.data.materialId,
                loteId: this.data.loteIdLote_1,
                modo: this.mode,
                tipoSaldo: this.mode,
                dataMovimento: this.data.dtMovimento,
                tipoAgrupa: 'D',
                geraArquivo: 'N'
            };
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaFormComponent.prototype, "saldoLoteOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.data.destinatarioIdCliente,
                materialId: this.data.materialId,
                loteId: this.data.loteIdLote,
                modo: this.mode,
                tipoSaldo: this.mode,
                dataMovimento: this.data.dtMovimento,
                tipoAgrupa: 'D',
                geraArquivo: 'N'
            };
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaFormComponent.prototype, "saldoDepositoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.data.destinatarioIdCliente,
                materialId: this.data.materialId,
                tanqueId: this.data.tanqueIdDeposito,
                loteId: this.data.loteIdLote,
                modo: this.mode,
                tipoSaldo: this.mode,
                dataMovimento: this.data.dtMovimento,
                tipoAgrupa: 'D',
                geraArquivo: 'S'
            };
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TransferenciaFormComponent.prototype, "saldoDepositoDestinoOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.data.destinatarioIdCliente,
                materialId: this.data.materialId,
                tanqueId: this.data.tanqueIdDeposito_1,
                loteId: this.data.loteIdLote,
                sitLote: 'A',
                modo: 7,
                tipoSaldo: 7,
                dataMovimento: this.data.dtMovimento,
                tipoAgrupa: 'D',
                geraArquivo: 'N'
            };
        },
        enumerable: true,
        configurable: true
    });
    TransferenciaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _transferencia_service__WEBPACK_IMPORTED_MODULE_14__["TransferenciaService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_11__["LoginService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_16__["LoteService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_18__["TanqueService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_15__["DestinatarioService"] },
        { type: _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_17__["MaterialService"] }
    ]; };
    TransferenciaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-transferencia-form',
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-form/transferencia-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./transferencia-form.component.scss */ "./src/app/pages/controle/transferencia/transferencia-form/transferencia-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _transferencia_service__WEBPACK_IMPORTED_MODULE_14__["TransferenciaService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_11__["LoginService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            _cadastro_lote_lote_service__WEBPACK_IMPORTED_MODULE_16__["LoteService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_18__["TanqueService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_15__["DestinatarioService"],
            _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_17__["MaterialService"]])
    ], TransferenciaFormComponent);
    return TransferenciaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2NvbnRyb2xlL3RyYW5zZmVyZW5jaWEvdHJhbnNmZXJlbmNpYS1pbmRleC90cmFuc2ZlcmVuY2lhLWluZGV4LmNvbXBvbmVudC5zY3NzIn0= */");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaIndexComponent", function() { return TransferenciaIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _transferencia_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../transferencia.model */ "./src/app/pages/controle/transferencia/transferencia.model.ts");
/* harmony import */ var _transferencia_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../transferencia.constants */ "./src/app/pages/controle/transferencia/transferencia.constants.ts");
/* harmony import */ var _transferencia_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../transferencia.service */ "./src/app/pages/controle/transferencia/transferencia.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var TransferenciaIndexComponent = /** @class */ (function (_super) {
    __extends(TransferenciaIndexComponent, _super);
    function TransferenciaIndexComponent(service, router, datatables, message, funcoes, loginService, messageService, permissoesUtils) {
        var _this = _super.call(this, new _transferencia_constants__WEBPACK_IMPORTED_MODULE_9__["TransferenciaConstants"](), funcoes) || this;
        _this.service = service;
        _this.router = router;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _transferencia_model__WEBPACK_IMPORTED_MODULE_8__["Transferencia"]();
        _this.constantes = new _transferencia_constants__WEBPACK_IMPORTED_MODULE_9__["TransferenciaConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.mensagens = [];
        _this.properties = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 6, function () {
                switch (_this.data.tipoMovimento) {
                    case 'RT':
                        _this.data.logTabela[0] = "TransfdeProdutosRetido";
                        break;
                    case 'BL':
                        _this.data.logTabela[0] = "TransfdeProdutosBalanca";
                        break;
                    default:
                        _this.data.logTabela[0] = "TransfdeProdutos";
                        break;
                }
                _super.prototype.properties.call(_this, _this.data);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    TransferenciaIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    if (_this.funcoesService.isUndefinedOrNull(_this.service.filtro)) {
                        _this.service.filtro = new _transferencia_model__WEBPACK_IMPORTED_MODULE_8__["TransferenciaFilter"]();
                        _this.service.filtro.filialId = _this.loginService.getLogin().filialId;
                    }
                    _this.funcoes.openModal("transferencia-filter");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    TransferenciaIndexComponent.prototype.filtrar = function () {
        jQuery("#transferencia-filter").modal("show");
    };
    TransferenciaIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    TransferenciaIndexComponent.prototype.refresh = function () {
        var _this = this;
        if (!this.service.filtro.de || !this.service.filtro.ate) {
            jQuery("#transferencia-filter").modal("show");
            return;
        }
        this.service.filtro.documento = !!(this.service.filtro.documento) ? +this.service.filtro.documento : 0;
        this.service.getByFilter(this.service.filtro).subscribe(function (resp) {
            var columns = [
                _this.datatables.getDataString("transfdeProdutosId", "documento", "10%"),
                _this.datatables.getDataString("cliente", "cliente"),
                _this.datatables.getDataString("produto", "produto"),
                _this.datatables.getDataDateTime("dtMovimento", "dataHora"),
                _this.datatables.getDataString("tanqueIdDeposito_1", "deposito"),
                _this.datatables.getDataString("loteIdLote", "lote")
            ];
            _this.datatables.datatable("dtTransferencia", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    TransferenciaIndexComponent.prototype.create = function () {
        if (!this.service.filtro.tipoMovimento) {
            this.message.warning('titles.transferencia', 'messages.informeDataDeDataAte');
            return;
        }
        this.router.navigate([this.target + "/controle/transferencia/create/" + this.service.filtro.tipoMovimento]);
    };
    TransferenciaIndexComponent.prototype.edit = function () {
        if (!!(this.data.transfdeProdutosId) && !!(this.data.tipoMovimento)) {
            this.router.navigate([this.target + "/controle/transferencia/edit/" + this.data.transfdeProdutosId + "/" + this.data.tipoMovimento]);
        }
    };
    TransferenciaIndexComponent.prototype.detail = function () {
        if (!!(this.data.transfdeProdutosId) && !!(this.data.tipoMovimento)) {
            this.router.navigate([this.target + "/controle/transferencia/detail/" + this.data.transfdeProdutosId + "/" + this.data.tipoMovimento]);
        }
    };
    TransferenciaIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!!(this.data.transfdeProdutosId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.messageService.warning("titles.transferencia", _this.mensagens[0]);
                        }
                        else {
                            _this.datatables.remove("dtTransferencia");
                        }
                    });
                });
            });
        }
    };
    TransferenciaIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TransferenciaIndexComponent.prototype.print = function () {
        if (!this.service.filtro.de || !this.service.filtro.ate) {
            this.message.warning('titles.transferencia', 'messages.informeDataDeDataAte');
            return;
        }
        this.constantes.paramRelatorio = {
            destinatarioIdCliente: this.funcoes.isNotUndefinedOrNull(this.service.filtro.destinatarioIdCliente) ? this.service.filtro.destinatarioIdCliente : 0,
            destinatarioIdEmitente: this.funcoes.isNotUndefinedOrNull(this.service.filtro.destinatarioIdEmitente) ? this.service.filtro.destinatarioIdEmitente : 0,
            materialId: this.funcoes.isNotUndefinedOrNull(this.service.filtro.materialId) ? this.service.filtro.materialId : '',
            loteId: this.funcoes.isNotUndefinedOrNull(this.service.filtro.loteId) ? this.service.filtro.loteId : '',
            tanqueId: this.funcoes.isNotUndefinedOrNull(this.service.filtro.tanqueId) ? this.service.filtro.tanqueId : '',
            de: this.service.filtro.de,
            ate: this.service.filtro.ate,
            documento: this.funcoes.isNotUndefinedOrNull(this.service.filtro.documento) ? this.service.filtro.documento : 0,
            tipoMovimento: this.service.filtro.tipoMovimento
        };
        _super.prototype.print.call(this);
    };
    TransferenciaIndexComponent.ctorParameters = function () { return [
        { type: _transferencia_service__WEBPACK_IMPORTED_MODULE_10__["TransferenciaService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] }
    ]; };
    TransferenciaIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-transferencia-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./transferencia-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/transferencia/transferencia-index/transferencia-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./transferencia-index.component.scss */ "./src/app/pages/controle/transferencia/transferencia-index/transferencia-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_transferencia_service__WEBPACK_IMPORTED_MODULE_10__["TransferenciaService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"]])
    ], TransferenciaIndexComponent);
    return TransferenciaIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaConstants", function() { return TransferenciaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TransferenciaConstants = /** @class */ (function () {
    function TransferenciaConstants() {
        this.sisFormularioId = 90054;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.transferencia";
        this.reportId = "CAD0225";
        this.reportTitulo = { "titulo": "Transferencia", "subTitulo": "" };
        this.tabela = "Materiais";
        this.configs = [];
        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: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.configs = [
            { sistema: "STO", parametros: ["NumDecCalc20", "NumDecCalcOutros", "QtDigFatorCorrecao20", "QtDigFatorCorrecao"] },
            { sistema: "CTR", parametros: ["CodCadastroMat", "DtSeguro"] },
            { sistema: "MAT", parametros: ["TamCodigo"] },
        ];
    }
    return TransferenciaConstants;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaModule", function() { return TransferenciaModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _transferencia_index_transferencia_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transferencia-index/transferencia-index.component */ "./src/app/pages/controle/transferencia/transferencia-index/transferencia-index.component.ts");
/* harmony import */ var _transferencia_form_transferencia_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transferencia-form/transferencia-form.component */ "./src/app/pages/controle/transferencia/transferencia-form/transferencia-form.component.ts");
/* harmony import */ var _transferencia_filter_transferencia_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transferencia-filter/transferencia-filter.component */ "./src/app/pages/controle/transferencia/transferencia-filter/transferencia-filter.component.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _transferencia_routing__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./transferencia.routing */ "./src/app/pages/controle/transferencia/transferencia.routing.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 TransferenciaModule = /** @class */ (function () {
    function TransferenciaModule() {
    }
    TransferenciaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_transferencia_index_transferencia_index_component__WEBPACK_IMPORTED_MODULE_2__["TransferenciaIndexComponent"], _transferencia_form_transferencia_form_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaFormComponent"], _transferencia_filter_transferencia_filter_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaFilterComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__["SharedModule"],
                _transferencia_routing__WEBPACK_IMPORTED_MODULE_6__["TransferenciaRouting"]
            ]
        })
    ], TransferenciaModule);
    return TransferenciaModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferenciaRouting", function() { return TransferenciaRouting; });
/* 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_form_transferencia_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transferencia-form/transferencia-form.component */ "./src/app/pages/controle/transferencia/transferencia-form/transferencia-form.component.ts");
/* harmony import */ var _transferencia_index_transferencia_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./transferencia-index/transferencia-index.component */ "./src/app/pages/controle/transferencia/transferencia-index/transferencia-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_index_transferencia_index_component__WEBPACK_IMPORTED_MODULE_4__["TransferenciaIndexComponent"],
        data: { breadcrumb: "transferencia", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create/:type",
        component: _transferencia_form_transferencia_form_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaFormComponent"],
        data: {
            breadcrumb: "transferencia",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id/:type",
        component: _transferencia_form_transferencia_form_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaFormComponent"],
        data: {
            breadcrumb: "transferencia",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id/:type",
        component: _transferencia_form_transferencia_form_component__WEBPACK_IMPORTED_MODULE_3__["TransferenciaFormComponent"],
        data: {
            breadcrumb: "transferencia",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var TransferenciaRouting = /** @class */ (function () {
    function TransferenciaRouting() {
    }
    TransferenciaRouting = __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"]]
        })
    ], TransferenciaRouting);
    return TransferenciaRouting;
}());



/***/ })

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