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

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"mov-transferencia-propriedade-ajustar-notas-fiscais-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.ajustarNotasFiscais' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes formErrorId=\"msgAjustarNotasFiscais\"></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-md-12\">\r\n                            <fieldset>\r\n                                <legend>{{ \"labels.notaDeVenda\" | translate }}</legend>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-md-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"numDocVenda\" class=\"required\">{{'labels.numero' |\r\n                                                translate}}</label>\r\n                                            <input id=\"numDocVenda\" name=\"numDocVenda\"\r\n                                                [(ngModel)]=\"dataAjustarNf.numDocVenda\" maxlength=\"15\"\r\n                                                [options]=\"funcoesService.optionCurrency(0)\" currencyMask\r\n                                                class=\"form-control form-control-sm\" type=\"text\" required>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-md-4 col-md-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"serieDocVenda\" class=\"required\">{{'labels.serie' |\r\n                                                translate}}</label>\r\n                                            <input id=\"serieDocVenda\" name=\"serieDocVenda\"\r\n                                                [(ngModel)]=\"dataAjustarNf.serieDocVenda\" maxlength=\"2\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" required>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-5 col-md-6 col-md-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"dtDocVenda\" class=\"required\">{{'labels.emissao' |\r\n                                                translate}}</label>\r\n                                            <app-data id=\"dtDocVenda\" name=\"dtDocVenda\"\r\n                                                [(ngModel)]=\"dataAjustarNf.dtDocVenda\" class=\"dataHora\"\r\n                                                [formatDateTime]=\"mascara.getFormatData\"\r\n                                                data-title=\"{{'labels.emissao' | translate}}\" required=\"true\">\r\n                                            </app-data>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </fieldset>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-md-12\">\r\n                            <fieldset>\r\n                                <legend>{{ \"labels.notaDeRetorno\" | translate }}</legend>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-md-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"numDocRetorno\" class=\"required\">{{'labels.numero' |\r\n                                                translate}}</label>\r\n                                            <input id=\"numDocRetorno\" name=\"numDocRetorno\"\r\n                                                [(ngModel)]=\"dataAjustarNf.numDocRetorno\" maxlength=\"15\"\r\n                                                [options]=\"funcoesService.optionCurrency(0)\" currencyMask\r\n                                                class=\"form-control form-control-sm\" type=\"text\" required>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-md-4 col-md-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"serieDocRetorno\" class=\"required\">{{'labels.serie' |\r\n                                                translate}}</label>\r\n                                            <input id=\"serieDocRetorno\" name=\"serieDocRetorno\"\r\n                                                [(ngModel)]=\"dataAjustarNf.serieDocRetorno\" maxlength=\"2\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" required>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-5 col-md-6 col-md-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"dtDocRetorno\" class=\"required\">{{'labels.emissao' |\r\n                                                translate}}</label>\r\n                                            <app-data id=\"dtDocRetorno\" name=\"dtDocRetorno\"\r\n                                                [(ngModel)]=\"dataAjustarNf.dtDocRetorno\" class=\"dataHora\"\r\n                                                [formatDateTime]=\"mascara.getFormatData\"\r\n                                                data-title=\"{{'labels.dtDocRetorno' | translate}}\" required=\"true\">\r\n                                            </app-data>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </fieldset>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" (click)=\"close()\">{{ 'buttons.cancelar' |\r\n                        translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"mov-transferencia-propriedade-ajuste-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.ajusteManualTransf' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row mb-3\">\r\n                        <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                            <div class=\"custom-control custom-checkbox\">\r\n                                <input id=\"total\" name=\"total\" [ngModel]=\"data.check\"\r\n                                    (ngModelChange)=\"validaTotal($event)\" class=\"custom-control-input checkbox-success\"\r\n                                    type=\"checkbox\" />\r\n                                <label class=\"custom-control-label\" for=\"total\">{{\"labels.total\" | translate}}</label>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <app-card-container tituloCard=\"ajuste\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosAjust\">{{'labels.kg' | translate}}</label>\r\n                                            <input id=\"kilosAjust\" name=\"kilosAjust\" [(ngModel)]=\"data.kilos\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [disabled]=\"data.check\"\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"litrosAjust\">{{'labels.litrosCc' | translate}}</label>\r\n                                            <input id=\"litrosAjust\" name=\"litrosAjust\" [(ngModel)]=\"data.litros\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [disabled]=\"data.check\"\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label>{{'labels.quantid' | translate}}</label>\r\n                                            <input id=\"quantidAjust\" name=\"quantidAjust\" [(ngModel)]=\"data.quantid\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [disabled]=\"data.check\"\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </app-card-container>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <app-card-container tituloCard=\"disponivel\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilosDisp\">{{'labels.kg' | translate}}</label>\r\n                                            <input id=\"kilosDisp\" name=\"kilosDisp\" [(ngModel)]=\"data.saldoKilos\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"litrosDisp\">{{'labels.litrosCc' | translate}}</label>\r\n                                            <input id=\"litrosDisp\" name=\"litrosDisp\" [(ngModel)]=\"data.saldoLitros\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label>{{'labels.quantid' | translate}}</label>\r\n                                            <input id=\"quantidDisp\" name=\"quantidDisp\" [(ngModel)]=\"data.saldoQuantid\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                disabled>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </app-card-container>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row d-flex justify-content-end\">\r\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                            <button class=\"btn btn-success btn-block mr-1\" type=\"button\" (click)=\"onSubmit()\">\r\n                                {{ 'buttons.ok' | translate }}\r\n                            </button>\r\n                        </div>\r\n                        <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                            <button type=\"button\" class=\"btn btn-block btn-default\" data-dismiss=\"modal\">\r\n                                {{ 'buttons.cancelar' | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"mov-transferencia-propriedade-consulta-nf-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-lg\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.consultaNotaFiscal' | translate }}</h6>\r\n            </div>\r\n            <div class=\"modal-body\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-12\">\r\n                        <app-table>\r\n                            <div class=\"table-responsive\">\r\n                                <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                    <thead>\r\n                                        <tr>\r\n                                            <th>{{ 'labels.nota' | translate}}</th>\r\n                                            <th>{{ 'labels.serie' | translate}}</th>\r\n                                            <th>{{ 'labels.emissao' | translate}}</th>\r\n                                            <th>{{ 'labels.lote' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{ 'labels.saldoKilos'\r\n                                                | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.saldoLitros' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.saldoQuantid' | translate}}</th>\r\n                                        </tr>\r\n                                    </thead>\r\n                                    <tbody>\r\n                                        <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"select(t, true)\"\r\n                                            (click)=\"select(t, false)\"\r\n                                            [ngClass]=\"{'info': (t?.nota === selected?.nota && t?.serie === selected?.serie) ? true : false}\">\r\n                                            <td style=\"white-space: nowrap;\">{{ t?.nota }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t?.serie }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t?.dtEmissao | date:'dd/MM/yyyy' }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t?.lote }}</td>\r\n                                            <td style=\"text-align: right;\">{{ t?.kilosSaldo | formatCurrency }}</td>\r\n                                            <td style=\"text-align: right;\">{{ t?.litrosSaldo | formatCurrency }}</td>\r\n                                            <td style=\"text-align: right;\">{{ t?.quantidSaldo | formatCurrency }}</td>\r\n                                        </tr>\r\n                                        <tr *ngIf=\"!hasDados\">\r\n                                            <th colspan=\"8\" style=\"text-align: center\">\r\n                                                {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                            </th>\r\n                                        </tr>\r\n                                    </tbody>\r\n                                </table>\r\n                            </div>\r\n                        </app-table>\r\n                    </div>\r\n                </div>\r\n                <div class=\"row d-flex justify-content-end\">\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                        <button class=\"btn btn-success btn-block mr-1\" type=\"button\" (click)=\"onSubmit()\">\r\n                            {{ 'buttons.ok' | translate }}\r\n                        </button>\r\n                    </div>\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                        <button type=\"button\" class=\"btn btn-block btn-default\" data-dismiss=\"modal\">\r\n                            {{ 'buttons.cancelar' | translate }}\r\n                        </button>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-filter/mov-transferencia-propriedade-filter.component.html":
/*!*********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-filter/mov-transferencia-propriedade-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=\"mov-transferencia-propriedade-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeTransferenciaPropriedade' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"clienteOrigem\" name=\"clienteOrigem\" tipoDestinatario=\"C\"\r\n                                                           modalTitle=\"pesquisaDeCliente\" label=\"clienteOrigem\"\r\n                                                           [(ngModel)]=\"service.filtro.destinatarioIdClienteOrigem\"\r\n                                                           showInscricao=\"false\" showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"clienteDestino\" name=\"clienteDestino\" tipoDestinatario=\"C\"\r\n                                                           modalTitle=\"pesquisaDeCliente\" label=\"clienteDestino\"\r\n                                                           [(ngModel)]=\"service.filtro.destinatarioIdClienteDestino\"\r\n                                                           showInscricao=\"false\" showCgcCpf=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\"\r\n                                       class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"service.filtro.dataI\"\r\n                                          autofocus\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\"\r\n                                       class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"service.filtro.dataF\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\"\r\n    [itemData]=\"service.data.regMovTransfPropriedadeId\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"tab-content top\">\r\n                <app-form-legenda></app-form-legenda>\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"tab-pane active show\" id=\"ge\">\r\n                    <form class=\"form\" #f=\"ngForm\">\r\n                        <div class=\"clearfix\">\r\n                            <ul class=\"nav nav-tabs \">\r\n                                <li class=\"nav-item\">\r\n                                    <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#origem\">{{\"labels.origem\" |\r\n                                        translate}}</a>\r\n                                </li>\r\n                                <li class=\"nav-item\">\r\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#destino\">{{\"labels.destino\" |\r\n                                        translate}}</a>\r\n                                </li>\r\n                                <li class=\"nav-item\" *ngIf=\"service.data.regMovTransfPropriedadeId > 0\">\r\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#deposito\">{{\"labels.depositos\" |\r\n                                        translate}}</a>\r\n                                </li>\r\n                            </ul>\r\n                        </div>\r\n                        <div class=\"tab-content tab-content-sm top \">\r\n                            <div class=\"tab-pane active show\" id=\"origem\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-3\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"service.data\" class=\"required\">{{\"labels.data\"\r\n                                                |\r\n                                                translate }}</label>\r\n                                            <app-data-h-m id=\"service.data\" name=\"service.data\"\r\n                                                [(ngModel)]=\"service.data.dtMovimento\" autofocus [disabled]=\"disabled\"\r\n                                                required=\"true\" (executa)=\"validaData()\" data-aba=\"origem\">\r\n                                            </app-data-h-m>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8 col-md-12 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                                modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                                [(ngModel)]=\"service.data.destinatarioIdClienteOrigem\"\r\n                                                showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                [inSelected]=\"service.data.clienteOrigem\" [disabled]=\"disabled\"\r\n                                                (outModel)=\"service.data.clienteOrigem = $event\" required=\"true\"\r\n                                                data-aba=\"origem\">\r\n                                            </app-pesquisa-destinatario>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8 col-md-12 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\r\n                                                modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.data.materialId\"\r\n                                                [inSelected]=\"service.data.material\" data-aba=\"origem\"\r\n                                                (outModel)=\"service.data.material = $event\" [disabled]=\"disabled\"\r\n                                                required=\"true\" (outModel)=\"trataMaterial($event)\">\r\n                                            </app-pesquisa-material>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-pesquisa-saldo-lote-deposito id=\"lote\" name=\"lote\"\r\n                                                [modalTitle]=\"'lotes'\" [disabled]=\"disabled\" [field]=\"'loteId'\"\r\n                                                [options]=\"saldoLoteOptions\" data-aba=\"origem\"\r\n                                                [(ngModel)]=\"service.data.loteIdOrigem\" (outModel)=\"trataLote($event)\">\r\n                                            </app-pesquisa-saldo-lote-deposito>\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"kilos\" class=\"required\">{{'labels.kg' | translate}}</label>\r\n                                            <input id=\"kilos\" name=\"kilos\" [(ngModel)]=\"service.data.kilos\"\r\n                                                data-aba=\"origem\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                                currencyMask\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                [disabled]=\"disabled\" required=\"true\" maxlength=\"15\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"litros\"\r\n                                                [class.required]=\"unidade === 'LT' || unidade === 'CC'\">{{'labels.litrosCc'\r\n                                                | translate}}</label>\r\n                                            <input id=\"litros\" name=\"litros\" [(ngModel)]=\"service.data.litros\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                data-aba=\"origem\"\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                [disabled]=\"disabled\" [required]=\"unidade === 'LT' || unidade === 'CC'\"\r\n                                                maxlength=\"15\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label>{{'labels.quantid' | translate}}</label>\r\n                                            <input id=\"quantid\" name=\"quantid\" [(ngModel)]=\"service.data.quantid\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                                data-aba=\"origem\"\r\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\r\n                                                [disabled]=\"disabled\" maxlength=\"15\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"observacao\">{{'labels.observacao' | translate}}</label>\r\n                                            <input id=\"observacao\" name=\"observacao\" [(ngModel)]=\"service.data.observ\"\r\n                                                maxlength=\"70\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                                [disabled]=\"disabled\" data-aba=\"origem\"\r\n                                                data-title=\"{{'labels.observacao' | translate}}\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                        <app-card-container tituloCard=\"notaVenda\">\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"numero\" class=\"required\">{{'labels.numero' |\r\n                                                            translate}}</label>\r\n                                                        <input id=\"numero\" name=\"numero\"\r\n                                                            [(ngModel)]=\"service.data.numDocVenda\" maxlength=\"70\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            [disabled]=\"disabled\"\r\n                                                            data-title=\"{{'labels.numero' | translate}}\"\r\n                                                            required=\"true\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"serie\">{{'labels.serie' | translate}}</label>\r\n                                                        <input id=\"serie\" name=\"serie\"\r\n                                                            [(ngModel)]=\"service.data.serieDocVenda\" maxlength=\"70\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            [disabled]=\"disabled\"\r\n                                                            data-title=\"{{'labels.serie' | translate}}\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"dtDocVenda\" class=\"required\">{{\"labels.emissao\" |\r\n                                                            translate }}</label>\r\n                                                        <app-data id=\"dtDocVenda\" name=\"dtDocVenda\"\r\n                                                            [(ngModel)]=\"service.data.dtDocVenda\" autofocus\r\n                                                            class=\"service.dataHora\"\r\n                                                            [formatDateTime]=\"mascara.getFormatData\" data-aba=\"origem\"\r\n                                                            [disabled]=\"disabled\" required=\"true\"\r\n                                                            (executa)=\"validaDtDocVenda({'dtDocVenda': $event})\">\r\n                                                        </app-data>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </app-card-container>\r\n                                    </div>\r\n                                    <div class=\"col-lg-6 col-md-10 col-sm-12\">\r\n                                        <app-card-container tituloCard=\"notaRetorno\">\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"numDocRetorno\"\r\n                                                            [class.required]=\"requireDadosRetorno\">\r\n                                                            {{ 'labels.numero' | translate }}</label>\r\n                                                        <input id=\"numDocRetorno\" name=\"numDocRetorno\"\r\n                                                            [(ngModel)]=\"service.data.numDocRetorno\" maxlength=\"70\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            [disabled]=\"disabled\"\r\n                                                            data-title=\"{{'labels.numero' | translate}}\"\r\n                                                            [required]=\"requireDadosRetorno\" data-aba=\"origem\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"serieDocRetorno\"\r\n                                                            [class.required]=\"requireDadosRetorno\">\r\n                                                            {{ 'labels.serie' | translate}}</label>\r\n                                                        <input id=\"serieDocRetorno\" name=\"serieDocRetorno\"\r\n                                                            [(ngModel)]=\"service.data.serieDocRetorno\" maxlength=\"70\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            [disabled]=\"disabled\"\r\n                                                            data-title=\"{{'labels.serie' | translate}}\"\r\n                                                            [required]=\"requireDadosRetorno\" data-aba=\"origem\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"dtDocRetorno\"\r\n                                                            [class.required]=\"requireDadosRetorno\">\r\n                                                            {{ \"labels.emissao\" | translate }}</label>\r\n                                                        <app-data id=\"dtDocRetorno\" name=\"dtDocRetorno\"\r\n                                                            [(ngModel)]=\"service.data.dtDocRetorno\" autofocus\r\n                                                            class=\"service.dataHora\"\r\n                                                            [formatDateTime]=\"mascara.getFormatData\"\r\n                                                            [disabled]=\"disabled\" [required]=\"requireDadosRetorno\"\r\n                                                            data-aba=\"origem\"\r\n                                                            (executa)=\"validaDtDocRetorno({'dtDocRetorno': $event})\">\r\n                                                        </app-data>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </app-card-container>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"tab-pane\" id=\"destino\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8 col-md-10 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-pesquisa-destinatario id=\"clienteDestino\" name=\"clienteDestino\"\r\n                                                tipoDestinatario=\"C\" modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                                [(ngModel)]=\"service.data.destinatarioIdClienteDestino\"\r\n                                                showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                [inSelected]=\"service.data.clienteDestino\" data-aba=\"destino\"\r\n                                                (outModel)=\"service.data.clienteDestino = $event\" [disabled]=\"disabled\"\r\n                                                required=\"true\" (outModel)=\"trataClienteDestino($event)\">\r\n                                            </app-pesquisa-destinatario>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <app-pesquisa-lote id=\"loteDestino\" label=\"lote\" name=\"loteDestino\"\r\n                                                modalTitle=\"lote\" [(ngModel)]=\"service.data.loteIdDestino\"\r\n                                                [destinatarioIdCliente]=\"service.data.destinatarioIdClienteDestino\"\r\n                                                [materialId]=\"service.data.materialId\"\r\n                                                [loteId]=\"service.data.loteIdDestino\" destinatarioIdEmitente=\"0\"\r\n                                                destinatarioIdNavio=\"0\" [osgId]=\"0\" stoContratoId=\"\"\r\n                                                stoContratoItemId=\"0\" data-aba=\"destino\" [disabled]=\"disabled\"\r\n                                                required=\"true\" (outLote)=\"trataLoteDestino($event)\">\r\n                                            </app-pesquisa-lote>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"numeronf\" class=\"required\">{{'labels.numeronf' |\r\n                                                translate}}</label>\r\n                                            <input id=\"numeronf\" name=\"numeronf\"\r\n                                                [(ngModel)]=\"service.data.numDocFormLote\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" data-aba=\"destino\"\r\n                                                mask=\"999999999\" maxlength=\"9\" [disabled]=\"disabled\"\r\n                                                data-title=\"{{'labels.numeronf' | translate}}\" required=\"true\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-2 col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"serieDocFormLote\" class=\"required\">{{'labels.serie' |\r\n                                                translate}}</label>\r\n                                            <input id=\"serieDocFormLote\" name=\"serieDocFormLote\"\r\n                                                [(ngModel)]=\"service.data.serieDocFormLote\" maxlength=\"70\"\r\n                                                data-aba=\"destino\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                                [disabled]=\"disabled\" data-title=\"{{'labels.serie' | translate}}\"\r\n                                                required=\"true\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"emissao\" class=\"required\">{{\"labels.emissao\" | translate\r\n                                                }}</label>\r\n                                            <app-data id=\"emissao\" name=\"emissao\"\r\n                                                [(ngModel)]=\"service.data.dtDocFormLote\" autofocus\r\n                                                class=\"service.dataHora\" [formatDateTime]=\"mascara.getFormatData\"\r\n                                                data-aba=\"destino\" [disabled]=\"disabled\" required=\"true\">\r\n                                            </app-data>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-5 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"modNota\">{{ \"labels.modelo\" | translate }}</label>\r\n                                            <select class=\"form-control form-control-sm\" id=\"modNota\" name=\"modNota\"\r\n                                                [(ngModel)]=\"service.data.modNota\" data-aba=\"destino\"\r\n                                                [disabled]=\"disabled\">\r\n                                                <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                                <option *ngFor=\"let item of modNotas\" value=\"{{ item.modeloNotaId }}\">{{\r\n                                                    item.descrModNota }}</option>\r\n                                            </select>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-5 col-md-6 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"chaveNFE\"\r\n                                                [class.required]=\"service.data.modNota === '55'\">{{'labels.chaveNFE' |\r\n                                                translate}}</label>\r\n                                            <input id=\"chaveNFE\" name=\"chaveNFE\" [(ngModel)]=\"service.data.chaveNFE\"\r\n                                                maxlength=\"54\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                                [disabled]=\"disabled\" data-aba=\"destino\"\r\n                                                mask=\"0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000\"\r\n                                                data-title=\"{{'labels.chaveNFE' | translate}}\"\r\n                                                [required]=\"service.data.modNota === '55'\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-8 col-md-10 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                                <input class=\"custom-control-input radio-success\" id=\"radioDefault\"\r\n                                                    name=\"radioDefault\" (ngModelChange)=\"validaOption($event)\"\r\n                                                    [(ngModel)]=\"flag\" type=\"radio\" value=\"P\" [disabled]=\"disabled\" />\r\n                                                <label class=\"custom-control-label\" for=\"radioDefault\">{{\r\n                                                    'labels.gerarPerformance' | translate }}\r\n                                                </label>\r\n                                            </div>\r\n                                            <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                                <input class=\"custom-control-input radio-success\" id=\"radioPrimary\"\r\n                                                    name=\"radioPrimary\" (ngModelChange)=\"validaOption($event)\"\r\n                                                    [(ngModel)]=\"flag\" type=\"radio\" value=\"E\" [disabled]=\"disabled\" />\r\n                                                <label class=\"custom-control-label\" for=\"radioPrimary\">{{\r\n                                                    'labels.emprestimo' | translate }}\r\n                                                </label>\r\n                                            </div>\r\n                                            <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                                <input class=\"custom-control-input radio-success\" id=\"_radioPrimary\"\r\n                                                    name=\"_radioPrimary\" (ngModelChange)=\"validaOption($event)\"\r\n                                                    [(ngModel)]=\"flag\" type=\"radio\" value=\"T\" [disabled]=\"disabled\" />\r\n                                                <label class=\"custom-control-label\" for=\"_radioPrimary\">{{\r\n                                                    'labels.transferenciaComum' | translate }}\r\n                                                </label>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-lg-5 col-md-10 col-sm-12\">\r\n                                        <div class=\"custom-control custom-checkbox\">\r\n                                            <input id=\"realizarTransfAutomatic\" name=\"realizarTransfAutomatic\"\r\n                                                [ngModel]=\"service.data.transfAutomatica === 'S'\"\r\n                                                (ngModelChange)=\"service.data.transfAutomatica = $event ? 'S' : 'N'\"\r\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                                [disabled]=\"disabled\" />\r\n                                            <label class=\"custom-control-label\"\r\n                                                for=\"realizarTransfAutomatic\">{{\"labels.realizarTransfAutomatic\" |\r\n                                                translate}}</label>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"clearfix\">&nbsp;</div>\r\n                            </div>\r\n                            <div class=\"tab-pane\" id=\"deposito\" *ngIf=\"service.data.regMovTransfPropriedadeId > 0\">\r\n                                <div class=\"section-comand-bar\">\r\n                                    <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                        <thead>\r\n                                            <tr>\r\n                                                <th colspan=\"6\" style=\"text-align: center;\"></th>\r\n                                                <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.carga' | translate }}</th>\r\n                                                <th colspan=\"2\" style=\"text-align: center;\">{{ 'labels.descarga' | translate }}</th>\r\n                                            </tr>\r\n                                            <tr>\r\n                                                <th>{{'labels.item' | translate}}</th>\r\n                                                <th>{{'labels.lote' | translate}}</th>\r\n                                                <th>{{'labels.deposito' | translate}}</th>\r\n                                                <th style=\"text-align: right;\">{{'labels.kilos' | translate}}</th>\r\n                                                <th style=\"text-align: right;\">{{'labels.litros' | translate}}</th>\r\n                                                <th style=\"text-align: right;\">{{'labels.quantidade' | translate}}</th>\r\n                                                <th>{{'labels.autorizacao' | translate}}</th>\r\n                                                <th>{{'labels.status' | translate}}</th>\r\n                                                <th>{{'labels.autorizacao' | translate}}</th>\r\n                                                <th>{{'labels.status' | translate}}</th>\r\n                                            </tr>\r\n                                        </thead>\r\n                                        <tbody>\r\n                                            <tr\r\n                                                *ngFor=\"let item of service.data.movTransferenciaPropriedadeLote; let i = index\">\r\n                                                <td style=\"font-size: 12px;\">{{ item.item }}</td>\r\n                                                <td>{{ item.loteId }}</td>\r\n                                                <td>{{ item.tanqueId }}</td>\r\n                                                <td style=\"text-align: right;\">{{ item.kilos | formatCurrency }}</td>\r\n                                                <td style=\"text-align: right;\">{{ item.litros | formatCurrency }}</td>\r\n                                                <td style=\"text-align: right;\">{{ item.quantid | formatCurrency }}</td>\r\n                                                <td>{{ item.autorizacaoC }}</td>\r\n                                                <td>{{ item.statusC }}</td>\r\n                                                <td>{{ item.autorizacaoD }}</td>\r\n                                                <td>{{ item.statusD }}</td>\r\n                                            </tr>\r\n                                        </tbody>\r\n                                    </table>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-10\">\r\n                                <div class=\"row {{saldo}}\">\r\n                                    <div class=\"col-lg-3 col-sm-12\"\r\n                                        *ngIf=\"!visibleTable && !service.data.regMovTransfPropriedadeId\">\r\n                                        <button class=\"btn btn-success btn-block mr-2\" type=\"button\" (click)=\"ok(f)\">\r\n                                            {{ 'buttons.ok' | translate }}\r\n                                        </button>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-sm-12\"\r\n                                        *ngIf=\"!visibleTable && !service.data.regMovTransfPropriedadeId\">\r\n                                        <button class=\"btn btn-success btn-block mr-2\" type=\"button\"\r\n                                            (click)=\"resetar()\">\r\n                                            {{ 'buttons.limpar' | translate }}\r\n                                        </button>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-sm-12\"\r\n                                        *ngIf=\"visibleTable && !(service.data.regMovTransfPropriedadeId > 0)\">\r\n                                        <button class=\"btn btn-secondary btn-block mr-2\" type=\"button\"\r\n                                            (click)=\"cancelar()\">\r\n                                            {{ 'buttons.cancelar' | translate }}\r\n                                        </button>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-sm-12\"\r\n                                        *ngIf=\"(service.dadosTransfPropSel && service.dadosTransfPropSel.length > 0)\">\r\n                                        <button class=\"btn btn-success btn-block mr-2\" type=\"button\"\r\n                                            (click)=\"ajusteManual()\"\r\n                                            [disabled]=\"!hasDados || !dadosAjusteManual.regItem\">\r\n                                            {{ 'buttons.ajusteManual' | translate }}\r\n                                        </button>\r\n                                    </div>\r\n                                    <div class=\"col-lg-3 col-sm-12\"\r\n                                        *ngIf=\"service.dadosTransfPropSel && service.dadosTransfPropSel.length > 0\">\r\n                                        <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"gerarNfs()\"\r\n                                            [disabled]=\"!hasDados\">\r\n                                            {{ 'buttons.prepararNfs' | translate }}\r\n                                        </button>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-2\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-12\" *ngIf=\"saldo && !!service.data.kilos\">\r\n                                        <div class=\"saldo\">\r\n                                            <label>{{'labels.kilos' | translate}}</label>\r\n                                            <input class=\"form-control form-control-sm\" type=\"text\" disabled\r\n                                                value=\"{{saldoKilos | formatCurrency: 0}}\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-12\" *ngIf=\"saldo && !!service.data.litros\">\r\n                                        <div class=\"saldo\">\r\n                                            <label>{{'labels.litros' | translate}}</label>\r\n                                            <input class=\"form-control form-control-sm\" type=\"text\" disabled\r\n                                                value=\"{{saldoLitros | formatCurrency: 0}}\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-12\" *ngIf=\"saldo && !!service.data.quantid\">\r\n                                        <div class=\"saldo\">\r\n                                            <label>{{'labels.quantid' | translate}}</label>\r\n                                            <input class=\"form-control form-control-sm\" type=\"text\" disabled\r\n                                                value=\"{{saldoQuantid | formatCurrency: 0}}\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <ng-container *ngIf=\"visibleTable\">\r\n                            <div class=\"section-comand-bar mt-3\">\r\n                                <app-table>\r\n                                    <div class=\"table-responsive\">\r\n                                        <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                            <thead>\r\n                                                <tr>\r\n                                                    <th>\r\n                                                        <span class=\"colTodos\"\r\n                                                            *ngIf=\"service.dadosTransfPropSel && service.dadosTransfPropSel.length > 0\">\r\n                                                            <input type=\"checkbox\" name=\"todos\" id=\"todos\"\r\n                                                                [ngModel]=\"btnTodos\" (ngModelChange)=\"selectAll($event)\"\r\n                                                                [disabled]=\"!hasDados\"\r\n                                                                title=\"{{ 'buttons.selecionarTodos' | translate }}\">\r\n                                                        </span>\r\n                                                    </th>\r\n                                                    <th style=\"display: none\">{{ 'labels.id' | translate}}</th>\r\n                                                    <th>{{ 'labels.deposito' | translate}}</th>\r\n                                                    <th>{{ 'labels.lote' | translate}}</th>\r\n                                                    <th>{{ 'labels.emitente' | translate}}</th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                        'labels.kilosDisponivel' | translate}}</th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                        'labels.kilosTransf'\r\n                                                        | translate}}</th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                        'labels.listrosDisponivel' | translate}}</th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                        'labels.litrosTransf'\r\n                                                        | translate}}</th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                        'labels.quantidDisponivel' | translate}}</th>\r\n                                                    <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                        'labels.quantidTransf' | translate}}</th>\r\n                                                </tr>\r\n                                            </thead>\r\n                                            <tbody>\r\n                                                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"rowSelect(t, i)\"\r\n                                                    (click)=\"select(t, i)\"\r\n                                                    [ngClass]=\"{'info': t.regItem === dadosAjusteManual.regItem && i == _index ? true : false}\">\r\n                                                    <td>\r\n                                                        <label class=\"chk\">\r\n                                                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\"\r\n                                                                value=\"checked\"\r\n                                                                (ngModelChange)=\"t.flagSeleciona = $event ? 'S' : 'N'\"\r\n                                                                [ngModel]=\"t.flagSeleciona ==='S'\" disabled>\r\n                                                            <span\r\n                                                                [ngClass]=\"{'red':t.flagSeleciona === 'S' ? true : false}\">\r\n                                                            </span>\r\n                                                        </label>\r\n                                                    </td>\r\n                                                    <td style=\"display: none\">{{ t.regItem }}</td>\r\n                                                    <td>{{ t.deposito }}</td>\r\n                                                    <td>{{ t.lote }}</td>\r\n                                                    <td style=\"white-space: nowrap;\">{{ t.emitente }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t.saldoKilos | formatCurrency }}\r\n                                                    </td>\r\n                                                    <td style=\"text-align: right;\">{{ t.kilos | formatCurrency }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t.saldoLitros | formatCurrency }}\r\n                                                    </td>\r\n                                                    <td style=\"text-align: right;\">{{ t.litros | formatCurrency }}</td>\r\n                                                    <td style=\"text-align: right;\">{{ t.saldoQuantid | formatCurrency }}\r\n                                                    </td>\r\n                                                    <td style=\"text-align: right;\">{{ t.quantid | formatCurrency }}</td>\r\n                                                </tr>\r\n                                                <tr *ngIf=\"!hasDados\">\r\n                                                    <th colspan=\"11\" style=\"text-align: center\">\r\n                                                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                                    </th>\r\n                                                </tr>\r\n                                            </tbody>\r\n                                        </table>\r\n                                    </div>\r\n                                </app-table>\r\n                            </div>\r\n                        </ng-container>\r\n                    </form>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-mov-transferencia-propriedade-ajuste (execute)=\"outAjuste($event)\"></app-mov-transferencia-propriedade-ajuste>\r\n<app-mov-transferencia-propriedade-consulta-nf></app-mov-transferencia-propriedade-consulta-nf>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.regMovTransfPropriedadeId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtMovTransferenciaPropriedade\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-mov-transferencia-propriedade-filter (filtrar)=\"executaFiltro()\"></app-mov-transferencia-propriedade-filter>\r\n<app-mov-transferencia-propriedade-ajustar-notas-fiscais (outConfirma)=\"onRefresh($event)\"></app-mov-transferencia-propriedade-ajustar-notas-fiscais>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-nf/mov-transferencia-propriedade-nf.component.html":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-nf/mov-transferencia-propriedade-nf.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\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"row\">\r\n                <div class=\"col-12\">\r\n                    <app-card-container>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6 col-sm-12\">\r\n                                <app-input-description label=\"cliente\"\r\n                                    [valueID]=\"service?.data?.destinatarioIdClienteOrigem\"\r\n                                    [valueDescription]=\"service?.data?.clienteOrigem?.fantasia\">\r\n                                </app-input-description>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6 col-sm-12\">\r\n                                <app-input-description label=\"produto\" [valueID]=\"service?.data?.materialId\"\r\n                                    [valueDescription]=\"service?.data?.material?.fantasia\">\r\n                                </app-input-description>\r\n                            </div>\r\n                        </div>\r\n                    </app-card-container>\r\n                </div>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-12\">\r\n                    <table class=\"table table-striped table-bordered table-hover nowrap table-sm table-fixed\">\r\n                        <thead>\r\n                            <tr>\r\n                                <th style=\"white-space: nowrap;\">\r\n                                    {{ 'labels.lote' | translate}}\r\n                                </th>\r\n                                <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                    'labels.kilosDisponivel' | translate}}</th>\r\n                                <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                    'labels.kilosNota'\r\n                                    | translate}}</th>\r\n                                <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                    'labels.listrosDisponivel' | translate}}</th>\r\n                                <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                    'labels.litrosNota'\r\n                                    | translate}}</th>\r\n                                <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                    'labels.quantidDisponivel' | translate}}</th>\r\n                                <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                    'labels.quantidNota' | translate}}</th>\r\n                            </tr>\r\n                        </thead>\r\n                        <tbody>\r\n                            <tr *ngFor=\"let t of grupoLote; index as i\">\r\n                                <td>{{ t.lote }}</td>\r\n                                <td style=\"text-align: right;\">{{ t.saldoKilos | formatCurrency }}</td>\r\n                                <td style=\"text-align: right;\">{{ t.kilos | formatCurrency }}\r\n                                </td>\r\n                                <td style=\"text-align: right;\">{{ t.saldoLitros | formatCurrency }}</td>\r\n                                <td style=\"text-align: right;\">{{ t.litros | formatCurrency }}\r\n                                </td>\r\n                                <td style=\"text-align: right;\">{{ t.saldoQuantid | formatCurrency }}</td>\r\n                                <td style=\"text-align: right;\">{{ t.quantid | formatCurrency }}\r\n                                </td>\r\n                            </tr>\r\n                        </tbody>\r\n                    </table>\r\n                </div>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-lg-3 col-sm-12\">\r\n                    <button class=\"btn btn-secondary btn-block mr-2\" type=\"button\" (click)=\"back()\">\r\n                        {{ 'buttons.cancelar' | translate }}\r\n                    </button>\r\n                </div>\r\n                <div class=\"col-lg-3 col-sm-12\"\r\n                    *ngIf=\"(service.dadosTransfPropSel && service.dadosTransfPropSel.length > 0)\">\r\n                    <button class=\"btn btn-success btn-block mr-2\" type=\"button\" (click)=\"ajusteManual()\"\r\n                        [disabled]=\"!dadosAjusteManualNf?.nota\">\r\n                        {{ 'buttons.ajusteManual' | translate }}\r\n                    </button>\r\n                </div>\r\n                <div class=\"col-lg-3 col-sm-12\"\r\n                    *ngIf=\"service.dadosTransfPropSel && service.dadosTransfPropSel.length > 0\">\r\n                    <button class=\"btn btn-info btn-block\" type=\"button\" (click)=\"gerar()\" [disabled]=\"!hasDadosNf\">\r\n                        {{ 'buttons.gerar' | translate }}\r\n                    </button>\r\n                </div>\r\n            </div>\r\n            <div class=\"section-comand-bar mt-3\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-12\">\r\n                        <app-table>\r\n                            <div class=\"table-responsive\">\r\n                                <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                    <thead>\r\n                                        <tr>\r\n                                            <th>\r\n                                                <span class=\"colTodos\" *ngIf=\"hasDadosNf\">\r\n                                                    <input type=\"checkbox\" name=\"todosNf\" id=\"todosNf\"\r\n                                                        [ngModel]=\"btnTodosNf\" (ngModelChange)=\"selectAllNf($event)\"\r\n                                                        [disabled]=\"!hasDadosNf\"\r\n                                                        title=\"{{ 'buttons.selecionarTodos' | translate }}\">\r\n                                                </span>\r\n                                            </th>\r\n                                            <th>{{ 'labels.nota' | translate}}</th>\r\n                                            <th>{{ 'labels.serie' | translate}}</th>\r\n                                            <th>{{ 'labels.emissao' | translate}}</th>\r\n                                            <th>{{ 'labels.lote' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.kilosDisponivel' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.kilosTransf'\r\n                                                | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.listrosDisponivel' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.litrosTransf'\r\n                                                | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.quantidDisponivel' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.quantidTransf' | translate}}</th>\r\n                                        </tr>\r\n                                    </thead>\r\n                                    <tbody>\r\n                                        <tr *ngFor=\"let t of dadosNfs; index as i\" (dblclick)=\"rowSelectNf(t, i)\"\r\n                                            (click)=\"select(t, i)\"\r\n                                            [ngClass]=\"{'info': t.nota === dadosAjusteManualNf.nota && t.serie === dadosAjusteManualNf.serie\r\n                                            && t.item === dadosAjusteManualNf.item ? true : false}\">\r\n                                            <td>\r\n                                                <label class=\"chk\">\r\n                                                    <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\"\r\n                                                        value=\"checked\"\r\n                                                        (ngModelChange)=\"t.flagSeleciona = $event ? 'S' : 'N'\"\r\n                                                        [ngModel]=\"t.flagSeleciona ==='S'\" disabled>\r\n                                                    <span [ngClass]=\"{'red':t.flagSeleciona === 'S' ? true : false}\">\r\n                                                    </span>\r\n                                                </label>\r\n                                            </td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t?.nota }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t?.serie }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t?.dtEmissao | date:'dd/MM/yyyy'\r\n                                                }}\r\n                                            </td>\r\n                                            <td style=\"white-space: nowrap;\">{{ t?.lote }}</td>\r\n                                            <td style=\"text-align: right;\">{{ t.saldoKilos | formatCurrency }}\r\n                                            </td>\r\n                                            <td style=\"text-align: right;\">{{ t.kilos | formatCurrency }}</td>\r\n                                            <td style=\"text-align: right;\">{{ t.saldoLitros | formatCurrency }}\r\n                                            </td>\r\n                                            <td style=\"text-align: right;\">{{ t.litros | formatCurrency }}</td>\r\n                                            <td style=\"text-align: right;\">{{ t.saldoQuantid | formatCurrency }}\r\n                                            </td>\r\n                                            <td style=\"text-align: right;\">{{ t.quantid | formatCurrency }}</td>\r\n                                        </tr>\r\n                                    </tbody>\r\n                                </table>\r\n                            </div>\r\n                        </app-table>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-mov-transferencia-propriedade-ajuste (execute)=\"outAjuste($event)\"></app-mov-transferencia-propriedade-ajuste>");

/***/ }),

/***/ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajustar-notas-fiscais/mov-transferencia-propriedade-ajustar-notas-fiscais.component.ts":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajustar-notas-fiscais/mov-transferencia-propriedade-ajustar-notas-fiscais.component.ts ***!
  \***********************************************************************************************************************************************************************************/
/*! exports provided: MovTransferenciaPropriedadeAjustarNotasFiscaisComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeAjustarNotasFiscaisComponent", function() { return MovTransferenciaPropriedadeAjustarNotasFiscaisComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../mov-transferencia-propriedade.model */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.model.ts");
/* harmony import */ var _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../mov-transferencia-propriedade.service */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __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 app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};











var MovTransferenciaPropriedadeAjustarNotasFiscaisComponent = /** @class */ (function () {
    function MovTransferenciaPropriedadeAjustarNotasFiscaisComponent(funcoesService, messageService, loginService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.loginService = loginService;
        this.service = service;
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.mensagens = [];
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    MovTransferenciaPropriedadeAjustarNotasFiscaisComponent.prototype.ngOnInit = function () {
        this.dataAjustarNf = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_7__["MovTransferenciaPropriedadeAjustarNotasFiscais"]();
    };
    MovTransferenciaPropriedadeAjustarNotasFiscaisComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (!this.isValid(form))
                            return [2 /*return*/];
                        return [4 /*yield*/, this.service.ajustarNotasFiscais(this.dataAjustarNf).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.outraNotaEmissao", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.messageService.success("titles.movTransferenciaPropriedade", "messages.registroAtualizado");
                            this.outConfirma.emit(this.dataIndex);
                            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].closeModal("mov-transferencia-propriedade-ajustar-notas-fiscais-dialog");
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    MovTransferenciaPropriedadeAjustarNotasFiscaisComponent.prototype.isValid = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("msgAjustarNotasFiscais").emit(form);
        if (form.invalid) {
            return false;
        }
        var mensagens = [];
        if (!(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataAjustarNf.numDocVenda) > 0)) {
            mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.numDocVenda') }));
        }
        if (!(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.dataAjustarNf.numDocRetorno) > 0)) {
            mensagens.push(this.messageService.translate("messages.campoObrigatorio", { name: this.messageService.translate('labels.numDocRetorno') }));
        }
        if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ArrayUtilsStaticService"].any(mensagens)) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(mensagens);
            return false;
        }
        return true;
    };
    MovTransferenciaPropriedadeAjustarNotasFiscaisComponent.prototype.objectSelect = function (current) {
        this.dataIndex = current;
        this.preLoad();
    };
    MovTransferenciaPropriedadeAjustarNotasFiscaisComponent.prototype.preLoad = function () {
        this.dataAjustarNf.regMovTransfPropriedadeId = this.dataIndex.regMovTransfPropriedadeId;
        this.dataAjustarNf.numDocVenda = this.dataIndex.numDocVenda;
        this.dataAjustarNf.serieDocVenda = this.dataIndex.serieDocVenda;
        this.dataAjustarNf.dtDocVenda = this.dataIndex.dtDocVenda;
        this.dataAjustarNf.numDocRetorno = this.dataIndex.numDocRetorno;
        this.dataAjustarNf.serieDocRetorno = this.dataIndex.serieDocRetorno;
        this.dataAjustarNf.dtDocRetorno = this.dataIndex.dtDocRetorno;
    };
    MovTransferenciaPropriedadeAjustarNotasFiscaisComponent.prototype.close = function () {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("msgAjustarNotasFiscais").emit(null);
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].closeModal("mov-transferencia-propriedade-ajustar-notas-fiscais-dialog");
    };
    MovTransferenciaPropriedadeAjustarNotasFiscaisComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_8__["MovTransferenciaPropriedadeService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovTransferenciaPropriedadeAjustarNotasFiscaisComponent.prototype, "outConfirma", void 0);
    MovTransferenciaPropriedadeAjustarNotasFiscaisComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-mov-transferencia-propriedade-ajustar-notas-fiscais",
            template: __importDefault(__webpack_require__(/*! raw-loader!./mov-transferencia-propriedade-ajustar-notas-fiscais.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajustar-notas-fiscais/mov-transferencia-propriedade-ajustar-notas-fiscais.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_8__["MovTransferenciaPropriedadeService"]])
    ], MovTransferenciaPropriedadeAjustarNotasFiscaisComponent);
    return MovTransferenciaPropriedadeAjustarNotasFiscaisComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeAjusteComponent", function() { return MovTransferenciaPropriedadeAjusteComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mov-transferencia-propriedade.service */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.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 MovTransferenciaPropriedadeAjusteComponent = /** @class */ (function () {
    function MovTransferenciaPropriedadeAjusteComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.data = {
            check: false,
            flagSeleciona: 'N',
            lote: '',
            kilos: 0,
            litros: 0,
            quantid: 0,
            saldoKilos: 0,
            saldoLitros: 0,
            saldoQuantid: 0,
        };
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.mensagens = [];
    }
    MovTransferenciaPropriedadeAjusteComponent.prototype.ngOnInit = function () {
    };
    MovTransferenciaPropriedadeAjusteComponent.prototype.onSubmit = function () {
        this.data.flagSeleciona = 'S';
        if (!this.data.kilos && !this.data.litros && !this.data.quantid) {
            this.data.flagSeleciona = 'N';
        }
        this.execute.emit(this.data);
    };
    MovTransferenciaPropriedadeAjusteComponent.prototype.close = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ModalUtilsStaticService"].closeModal("mov-transferencia-propriedade-ajuste-dialog");
    };
    MovTransferenciaPropriedadeAjusteComponent.prototype.show = function (current) {
        this.data = _shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["ObjectUtilsStaticService"].clone(current);
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ModalUtilsStaticService"].openModal("mov-transferencia-propriedade-ajuste-dialog");
    };
    MovTransferenciaPropriedadeAjusteComponent.prototype.validaTotal = function (event) {
        this.data.check = event;
        if (event) {
            this.data.kilos = this.data.saldoKilos;
            this.data.litros = this.data.saldoLitros;
            this.data.quantid = this.data.saldoQuantid;
            this.data.flagSeleciona = 'S';
        }
        else {
            this.data.kilos = 0;
            this.data.litros = 0;
            this.data.quantid = 0;
            this.data.flagSeleciona = 'N';
        }
    };
    MovTransferenciaPropriedadeAjusteComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_6__["MovTransferenciaPropriedadeService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovTransferenciaPropriedadeAjusteComponent.prototype, "execute", void 0);
    MovTransferenciaPropriedadeAjusteComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-mov-transferencia-propriedade-ajuste",
            template: __importDefault(__webpack_require__(/*! raw-loader!./mov-transferencia-propriedade-ajuste.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajuste/mov-transferencia-propriedade-ajuste.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./../mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.scss */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_6__["MovTransferenciaPropriedadeService"]])
    ], MovTransferenciaPropriedadeAjusteComponent);
    return MovTransferenciaPropriedadeAjusteComponent;
}());



/***/ }),

/***/ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-consulta-nf/mov-transferencia-propriedade-consulta-nf.component.ts":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-consulta-nf/mov-transferencia-propriedade-consulta-nf.component.ts ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: MovTransferenciaPropriedadeConsultaNfComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeConsultaNfComponent", function() { return MovTransferenciaPropriedadeConsultaNfComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_consultas_consulta_detalhamento_de_lotes_consulta_detalhamento_de_lotes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/consultas/consulta-detalhamento-de-lotes/consulta-detalhamento-de-lotes.service */ "./src/app/pages/consultas/consulta-detalhamento-de-lotes/consulta-detalhamento-de-lotes.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};









var MovTransferenciaPropriedadeConsultaNfComponent = /** @class */ (function () {
    function MovTransferenciaPropriedadeConsultaNfComponent(funcoesService, messageService, consultaDetalhamentoDeLotesService) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.consultaDetalhamentoDeLotesService = consultaDetalhamentoDeLotesService;
        this.out = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    MovTransferenciaPropriedadeConsultaNfComponent.prototype.open = function (destinatarioId, materialId) {
        var _this = this;
        this.notas = [];
        this.consultaDetalhamentoDeLotesService.getNotas({
            destinatarioIdCliente: destinatarioId,
            materialId: materialId
        }).subscribe(function (r) {
            _this.notas = r;
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ModalUtilsStaticService"].openModal("mov-transferencia-propriedade-consulta-nf-dialog");
        });
    };
    MovTransferenciaPropriedadeConsultaNfComponent.prototype.onSubmit = function () {
        this.out.emit(this.selected);
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ModalUtilsStaticService"].closeModal("mov-transferencia-propriedade-consulta-nf-dialog");
    };
    MovTransferenciaPropriedadeConsultaNfComponent.prototype.select = function (selected, confirm) {
        this.selected = selected;
        if (confirm) {
            this.onSubmit();
        }
    };
    Object.defineProperty(MovTransferenciaPropriedadeConsultaNfComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.notas);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeConsultaNfComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.tableNotas)
                return [];
            if (!this.hasDados || !this.tableNotas.filtro) {
                return this.tableNotas.getPage(this.notas);
            }
            var dados = this.notas.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].exist(v.nota.toString(), _this.tableNotas.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].exist(v.serie, _this.tableNotas.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].convertDateToDateStr(v.emissao), _this.tableNotas.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].exist(v.lote, _this.tableNotas.filtro);
            });
            return this.tableNotas.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    MovTransferenciaPropriedadeConsultaNfComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: app_pages_consultas_consulta_detalhamento_de_lotes_consulta_detalhamento_de_lotes_service__WEBPACK_IMPORTED_MODULE_1__["ConsultaDetalhamentoDeLotesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"])
    ], MovTransferenciaPropriedadeConsultaNfComponent.prototype, "tableNotas", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovTransferenciaPropriedadeConsultaNfComponent.prototype, "out", void 0);
    MovTransferenciaPropriedadeConsultaNfComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-mov-transferencia-propriedade-consulta-nf",
            template: __importDefault(__webpack_require__(/*! raw-loader!./mov-transferencia-propriedade-consulta-nf.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-consulta-nf/mov-transferencia-propriedade-consulta-nf.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./../mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.scss */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            app_pages_consultas_consulta_detalhamento_de_lotes_consulta_detalhamento_de_lotes_service__WEBPACK_IMPORTED_MODULE_1__["ConsultaDetalhamentoDeLotesService"]])
    ], MovTransferenciaPropriedadeConsultaNfComponent);
    return MovTransferenciaPropriedadeConsultaNfComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeFilterComponent", function() { return MovTransferenciaPropriedadeFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../mov-transferencia-propriedade.constants */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.constants.ts");
/* harmony import */ var _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../mov-transferencia-propriedade.service */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.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 MovTransferenciaPropriedadeFilterComponent = /** @class */ (function () {
    function MovTransferenciaPropriedadeFilterComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.constantes = new _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_5__["MovTransferenciaPropriedadeConstants"]();
    }
    MovTransferenciaPropriedadeFilterComponent.prototype.ngOnInit = function () {
    };
    MovTransferenciaPropriedadeFilterComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit();
        jQuery("#mov-transferencia-propriedade-filter-dialog").modal("hide");
    };
    MovTransferenciaPropriedadeFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_6__["MovTransferenciaPropriedadeService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovTransferenciaPropriedadeFilterComponent.prototype, "filtrar", void 0);
    MovTransferenciaPropriedadeFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-mov-transferencia-propriedade-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./mov-transferencia-propriedade-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-filter/mov-transferencia-propriedade-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_6__["MovTransferenciaPropriedadeService"]])
    ], MovTransferenciaPropriedadeFilterComponent);
    return MovTransferenciaPropriedadeFilterComponent;
}());



/***/ }),

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

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

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeFormComponent", function() { return MovTransferenciaPropriedadeFormComponent; });
/* 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_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __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 app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__ = __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_12__ = __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_13__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _cadastro_modelo_nota_modelo_nota_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../cadastro/modelo-nota/modelo-nota.model */ "./src/app/pages/cadastro/modelo-nota/modelo-nota.model.ts");
/* harmony import */ var _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../cadastro/modelo-nota/modelo-nota.service */ "./src/app/pages/cadastro/modelo-nota/modelo-nota.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _mov_transferencia_propriedade_ajuste_mov_transferencia_propriedade_ajuste_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../mov-transferencia-propriedade-ajuste/mov-transferencia-propriedade-ajuste.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajuste/mov-transferencia-propriedade-ajuste.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_consulta_nf_mov_transferencia_propriedade_consulta_nf_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../mov-transferencia-propriedade-consulta-nf/mov-transferencia-propriedade-consulta-nf.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-consulta-nf/mov-transferencia-propriedade-consulta-nf.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../mov-transferencia-propriedade.constants */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.constants.ts");
/* harmony import */ var _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../mov-transferencia-propriedade.model */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.model.ts");
/* harmony import */ var _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../mov-transferencia-propriedade.service */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.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 MovTransferenciaPropriedadeFormComponent = /** @class */ (function (_super) {
    __extends(MovTransferenciaPropriedadeFormComponent, _super);
    function MovTransferenciaPropriedadeFormComponent(router, messageService, activatedRoute, service, funcoesService, configuracao, permissoesUtils, loginService, modeloNotaService) {
        var _this = _super.call(this, new _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_19__["MovTransferenciaPropriedadeConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.modeloNotaService = modeloNotaService;
        _this.mensagens = [];
        _this.constantes = new _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_19__["MovTransferenciaPropriedadeConstants"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_8__["Mascaras"]();
        _this.modeloNota = new _cadastro_modelo_nota_modelo_nota_model__WEBPACK_IMPORTED_MODULE_14__["ModeloNota"]();
        _this.visibleTable = false;
        _this.granelSolido = false;
        _this.dadosAjusteManual = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_20__["TransferenciaPropriedadeSelDto"]();
        _this.dbClick = false;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.title = "titles.movTransferenciaPropriedade";
        _this.loadConfig = function () {
            _this.granelSolido = _this.configuracao.boolean("STO", "GranelSolido");
        };
        _this.consultarNota = function () {
            _this.modalConsultaNf.open(_this.service.data.destinatarioIdClienteOrigem, _this.service.data.materialId);
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MovTransferenciaPropriedadeFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.service.dadosTransfPropSel = [];
        this.flag = "T";
        this.modNotas = [];
        this.modeloNota = new _cadastro_modelo_nota_modelo_nota_model__WEBPACK_IMPORTED_MODULE_14__["ModeloNota"]();
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    if (resp) {
                        _this.service.data = resp;
                        _this.service.data.movTransferenciaPropriedadeLote = [];
                        _this.service.data.hasInfo = true;
                        resp.tanques.forEach(function (item) {
                            var deposito = {
                                regMovTransfPropriedadeId: item.regMovTransfPropriedadeId,
                                item: item.item,
                                loteId: item.loteId,
                                tanqueId: item.tanqueId,
                                kilos: item.kilos,
                                litros: item.litros,
                                quantid: item.quantid,
                                autorizacaoC: item.autorizacaoC,
                                autorizacaoD: item.autorizacaoD,
                                statusC: item.statusC,
                                statusD: item.statusD,
                            };
                            _this.service.data.movTransferenciaPropriedadeLote.push(deposito);
                        });
                    }
                    else {
                        _this.messageService.warning(_this.title, "messages.nenhumRegistroEncontrado");
                        _this.back();
                    }
                });
            }
            else {
                _this.service.data = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_20__["MovTransferenciaPropriedade"]();
            }
            _this.modeloNotaService.get().subscribe(function (resp) {
                if (resp) {
                    _this.modNotas = resp.filter(function (val) {
                        if (val.flagAtivo === "S" && val.sitReg !== "E") {
                            return val;
                        }
                    });
                }
            });
        }, function () {
            _this.permissoesUtils.back();
        });
        _super.prototype.addFuncoes.call(this, [
            { action: "consultarNota", func: function () { return _this.consultarNota; } },
        ]);
    };
    MovTransferenciaPropriedadeFormComponent.prototype.onSubmit = function (form) { };
    MovTransferenciaPropriedadeFormComponent.prototype.edit = function () {
        this.router.navigate([
            this.target + "/controle/movTransferenciaPropriedade/edit/" + this.service.data.regMovTransfPropriedadeId,
        ]);
    };
    MovTransferenciaPropriedadeFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([
            this.target + "/controle/movTransferenciaPropriedade",
        ]);
    };
    MovTransferenciaPropriedadeFormComponent.prototype.validaOption = function (event) {
        if (this.flag === "P") {
            this.service.data.flagPerformance = "S";
            this.service.data.flagEmprestimo = "N";
            this.service.data.flagTransfComum = "N";
        }
        else if (this.flag === "E") {
            this.service.data.flagPerformance = "N";
            this.service.data.flagEmprestimo = "S";
            this.service.data.flagTransfComum = "N";
        }
        else if (this.flag === "T") {
            this.service.data.flagPerformance = "N";
            this.service.data.flagEmprestimo = "N";
            this.service.data.flagTransfComum = "E";
        }
    };
    MovTransferenciaPropriedadeFormComponent.prototype.ok = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_22__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.service
            .seleciona({
            destinatarioIdCliente: this.service.data.destinatarioIdClienteOrigem,
            materialId: this.service.data.materialId,
            loteId: this.service.data.loteIdOrigem,
            dtref: this.service.data.dtMovimento,
            kilosTotal: this.service.data.kilos,
            litrosTotal: this.service.data.litros,
            quantidTotal: this.service.data.quantid,
            transfAutomatica: this.service.data.transfAutomatica,
        })
            .subscribe(function (resp) {
            if (!!resp["erros"]) {
                resp = resp;
                resp.erros.forEach(function (m) {
                    return _this.messageService.warning(_this.title, m.message);
                });
            }
            else {
                _this.service.dadosTransfPropSel = resp;
                _this.service.dadosTransfPropSel.map(function (val) { return (val.flag = val.flagSeleciona === "S"); });
                _this.visibleTable = true;
                _this.service.data.hasInfo = true;
                _this.buttonVisible("listaForm", "consultarNota", true);
            }
        });
    };
    MovTransferenciaPropriedadeFormComponent.prototype.validaDtDocVenda = function (params) {
        if (params.dtDocVenda > new Date()) {
            this.messageService.warning(this.title, "messages.emissaoNotaVendaNaoPodeSerMaiorQueDtAtual");
            this.service.data.dtDocVenda = new Date();
        }
    };
    MovTransferenciaPropriedadeFormComponent.prototype.validaDtDocRetorno = function (params) {
        if (params.dtDocRetorno > new Date()) {
            this.messageService.warning(this.title, "messages.emissaoNotaRetornoNaoPodeSerMaiorQueDtAtual");
            this.service.data.dtDocVenda = new Date();
        }
    };
    MovTransferenciaPropriedadeFormComponent.prototype.select = function (item, index) {
        this._index = index;
        this.dadosAjusteManual = item;
    };
    MovTransferenciaPropriedadeFormComponent.prototype.rowSelect = function (item, index) {
        var _this = this;
        this.dadosAjusteManual = item;
        this.currentIndex = index;
        var flagSeleciona = item.flagSeleciona === "S" ? "N" : "S";
        var kilos = 0;
        var litros = 0;
        var quantid = 0;
        if (app_shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["BooleanUtilsStaticService"].toBoolean(flagSeleciona)) {
            var sk = this.service.data.kilos - this.saldoKilos;
            if (sk > 0) {
                if (item.saldoKilos > sk)
                    kilos = sk;
                else
                    kilos = item.saldoKilos;
            }
            var sl = this.service.data.litros - this.saldoLitros;
            if (sl > 0) {
                if (item.saldoLitros > sl)
                    litros = sl;
                else
                    litros = item.saldoLitros;
            }
            var sq = this.service.data.quantid - this.saldoQuantid;
            if (sq > 0) {
                if (item.saldoQuantid > sq)
                    quantid = sq;
                else
                    quantid = item.saldoQuantid;
            }
            if (kilos === 0 && litros === 0 && quantid === 0) {
                this.messageService.warning(this.title, "messages.kilosLitrosOuQuantidEObrigatorio");
                return;
            }
        }
        item.flagSeleciona = flagSeleciona;
        item.kilos = kilos;
        item.litros = litros;
        item.quantid = quantid;
        this.service.updateLote(item).subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                _this.btnTodos =
                    _this.service.dadosTransfPropSel.length ===
                        _this.service.dadosTransfPropSel.filter(function (c) { return c.flagSeleciona === "S"; })
                            .length;
                if (!resp.validationResult.isValid) {
                    _this.mensagens = _this.messageService.validationResult(resp.validationResult);
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_22__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.funcoesService.backToTop();
                }
            }
        });
    };
    MovTransferenciaPropriedadeFormComponent.prototype.cancelar = function () {
        this.service.dadosTransfPropSel = [];
        this.visibleTable = false;
        this.buttonVisible("listaForm", "consultarNota", false);
    };
    MovTransferenciaPropriedadeFormComponent.prototype.resetar = function () {
        this.service.data = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_20__["MovTransferenciaPropriedade"]();
    };
    MovTransferenciaPropriedadeFormComponent.prototype.selectAll = function (checked) {
        var _this = this;
        if (this.hasSelectedLote)
            checked = false;
        this.btnTodos = checked;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            var dados = _this.dadosFilter;
            if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(dados)) {
                for (var index = 0; index < dados.length; index++) {
                    var item = dados[index];
                    var kilos = 0;
                    var litros = 0;
                    var quantid = 0;
                    if (checked) {
                        var sk = _this.service.data.kilos - _this.saldoKilos;
                        if (sk > 0) {
                            if (item.saldoKilos > sk)
                                kilos = sk;
                            else
                                kilos = item.saldoKilos;
                        }
                        var sl = _this.service.data.litros - _this.saldoLitros;
                        if (sl > 0) {
                            if (item.saldoLitros > sl)
                                litros = sl;
                            else
                                litros = item.saldoLitros;
                        }
                        var sq = _this.service.data.quantid - _this.saldoQuantid;
                        if (sq > 0) {
                            if (item.saldoQuantid > sq)
                                quantid = sq;
                            else
                                quantid = item.saldoQuantid;
                        }
                        if (!kilos || _this.saldoKilos + kilos > _this.service.data.kilos) {
                            return;
                        }
                    }
                    item.flagSeleciona = checked ? "S" : "N";
                    item.flag = checked;
                    item.kilos = kilos;
                    item.litros = litros;
                    item.quantid = quantid;
                    _this.service.updateLote(item).subscribe(function (resp) {
                        if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                            if (!resp.validationResult.isValid) {
                                _this.mensagens = _this.messageService.validationResult(resp.validationResult);
                                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_22__["EventEmitterService"].get("backError").emit(_this.mensagens);
                                _this.funcoesService.backToTop();
                                return;
                            }
                        }
                    });
                }
            }
            else {
                _this.messageService.warning(_this.title, "messages.naoExisteRegistroParaSelecionar");
            }
        });
    };
    MovTransferenciaPropriedadeFormComponent.prototype.carregaLotes = function (event) {
        var _this = this;
        if (event) {
            this.service.getLoteTmp().subscribe(function (resp) {
                if (resp) {
                    _this.service.dadosTransfPropSel = resp;
                    _this.service.dadosTransfPropSel.map(function (val) {
                        if (val.flagSeleciona === "S") {
                            val.flag = true;
                        }
                        else {
                            val.flag = false;
                        }
                    });
                }
            });
        }
    };
    MovTransferenciaPropriedadeFormComponent.prototype.gerarNfs = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["NumberUtilsStaticService"].toNumber(this.saldoKilos) !==
            app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["NumberUtilsStaticService"].toNumber(this.service.data.kilos) ||
            app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["NumberUtilsStaticService"].toNumber(this.saldoLitros) !==
                app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["NumberUtilsStaticService"].toNumber(this.service.data.litros) ||
            app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["NumberUtilsStaticService"].toNumber(this.saldoQuantid) !==
                app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["NumberUtilsStaticService"].toNumber(this.service.data.quantid)) {
            this.messageService.warning(this.title, "messages.kilosLitrosOuQuantidEObrigatorio");
            return;
        }
        this.router.navigate([
            this.target + "/controle/movTransferenciaPropriedade/nf",
        ]);
    };
    MovTransferenciaPropriedadeFormComponent.prototype.trataLote = function (event) {
        this.unidade = "";
        if (!event)
            return;
        this.unidade = event.lote.unidadeId;
    };
    MovTransferenciaPropriedadeFormComponent.prototype.trataLoteDestino = function (event) {
        if (!event)
            return;
        this.service.data.loteDestino = event.lote;
    };
    MovTransferenciaPropriedadeFormComponent.prototype.trataClienteDestino = function (event) {
        if (!event)
            return;
        if (!!this.service.data.loteDestino &&
            !!this.service.data.loteDestino.loteId) {
            if (this.service.data.loteDestino.destinatarioIdCliente !==
                event.destinatarioId) {
                this.messageService.warning(this.title, "messages.loteNaoPertenceAoClienteInformado");
                this.service.data.loteIdDestino = undefined;
                this.service.data.loteDestino = undefined;
            }
        }
    };
    MovTransferenciaPropriedadeFormComponent.prototype.trataMaterial = function (event) {
        if (!event)
            return;
        if (!!event.tipoDeMaterial)
            this.tipoGranel = +event.tipoDeMaterial.tipoGranel;
        if (!!this.service.data.loteDestino &&
            !!this.service.data.loteDestino.loteId) {
            if (this.service.data.loteDestino.materialId !== event.materialId) {
                this.messageService.warning(this.title, "messages.loteNaoPertenceAoProdutoInformado");
                this.service.data.loteIdDestino = undefined;
                this.service.data.loteDestino = undefined;
            }
        }
    };
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "saldoLoteOptions", {
        get: function () {
            return {
                destinatarioIdCliente: this.service.data.destinatarioIdClienteOrigem,
                materialId: this.service.data.materialId,
                modo: 10,
                tipoSaldo: 10,
                dataMovimento: this.service.data.dtMovimento,
                tipoAgrupa: "L",
                geraArquivo: "N",
            };
        },
        enumerable: true,
        configurable: true
    });
    MovTransferenciaPropriedadeFormComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["DateTimeUtilsStaticService"].maiorAHoje(this.service.data.dtMovimento, [
            "H",
            "M",
        ])) {
            this.messageService.warning(this.title, "messages.dataNoPodeSerMairDataAtual");
            return;
        }
    };
    MovTransferenciaPropriedadeFormComponent.prototype.ajusteManual = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            if (_this.funcoesService.isNotUndefinedOrNull(_this.dadosAjusteManual)) {
                _this.modalAjuste.show({
                    check: +_this.dadosAjusteManual.saldoKilos ===
                        +_this.dadosAjusteManual.kilos,
                    lote: _this.dadosAjusteManual.lote,
                    saldoKilos: _this.dadosAjusteManual.saldoKilos,
                    kilos: _this.dadosAjusteManual.kilos,
                    saldoLitros: _this.dadosAjusteManual.saldoLitros,
                    litros: _this.dadosAjusteManual.litros,
                    saldoQuantid: _this.dadosAjusteManual.saldoQuantid,
                    quantid: _this.dadosAjusteManual.quantid,
                });
            }
            else {
                _this.messageService.warning(_this.title, "messages.selecioneUmRegistro");
            }
        });
    };
    MovTransferenciaPropriedadeFormComponent.prototype.outAjuste = function (item) {
        var _this = this;
        item.flagSeleciona = "S";
        if (!item.kilos && !item.litros && !item.quantid) {
            item.flagSeleciona = "N";
        }
        var kilos = 0;
        var litros = 0;
        var quantid = 0;
        var flag = item.flagSeleciona === "S";
        if (flag) {
            if (this.saldoKilos - this.dadosAjusteManual.kilos + item.kilos >
                this.service.data.kilos ||
                item.kilos > item.saldoKilos) {
                this.messageService.warning(this.title, "messages.kilosInformadoMaiorDisponivel");
                return;
            }
            if (this.saldoLitros - this.dadosAjusteManual.litros + item.litros >
                this.service.data.litros ||
                item.litros > item.saldoLitros) {
                this.messageService.warning(this.title, "messages.litrosInformadoMaiorDisponivel");
                return;
            }
            if (this.saldoQuantid - this.dadosAjusteManual.quantid + item.quantid >
                this.service.data.quantid ||
                item.quantid > item.saldoLitros) {
                this.messageService.warning(this.title, "messages.quantidadeInformadoMaiorDisponivel");
                return;
            }
            kilos = item.kilos;
            litros = item.litros;
            quantid = item.quantid;
        }
        this.dadosAjusteManual.flagSeleciona = item.flagSeleciona;
        this.dadosAjusteManual.flag = flag;
        this.dadosAjusteManual.kilos = kilos;
        this.dadosAjusteManual.litros = litros;
        this.dadosAjusteManual.quantid = quantid;
        this.service.updateLote(this.dadosAjusteManual).subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                if (resp && !resp.validationResult.isValid) {
                    _this.mensagens = _this.messageService.validationResult(resp.validationResult);
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_22__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.funcoesService.backToTop();
                    return;
                }
                _this.modalAjuste.close();
                _this.carregaLotes(true);
            }
        });
    };
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "disabled", {
        get: function () {
            if (this.funcoesService.isDetail(this.actionForm))
                return true;
            return this.visibleTable;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "dados", {
        get: function () {
            if (!this.tableSaldos)
                return [];
            if (!this.hasDados || !this.tableSaldos.filtro) {
                return this.tableSaldos.getPage(this.service.dadosTransfPropSel);
            }
            return this.tableSaldos.getPage(this.dadosFilter);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "dadosFilter", {
        get: function () {
            var _this = this;
            return this.service.dadosTransfPropSel.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.deposito, _this.tableSaldos.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.lote, _this.tableSaldos.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["StringUtilsStaticService"].exist(v.emitente, _this.tableSaldos.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "saldo", {
        get: function () {
            if (!this.visibleTable)
                return "";
            if (this.service.data.kilos &&
                this.service.data.litros &&
                this.service.data.quantid) {
                return "saldo saldo3";
            }
            else if ((this.service.data.kilos &&
                this.service.data.litros &&
                !this.service.data.quantid) ||
                (this.service.data.kilos &&
                    !this.service.data.litros &&
                    this.service.data.quantid) ||
                (!this.service.data.kilos &&
                    this.service.data.litros &&
                    this.service.data.quantid)) {
                return "saldo saldo2";
            }
            else {
                return "saldo saldo1";
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "saldoKilos", {
        get: function () {
            if (!this.service.data.kilos)
                return 0;
            return this.service.data.kilos - this.kilosSel;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "saldoLitros", {
        get: function () {
            if (!this.service.data.litros)
                return 0;
            return this.service.data.litros - this.litrosSel;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "saldoQuantid", {
        get: function () {
            if (!this.service.data.quantid)
                return 0;
            return this.service.data.quantid - this.quantidSel;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "kilosSel", {
        get: function () {
            return (this.service.data.kilos -
                this.service.dadosTransfPropSel.reduce(function (a, b) { return a + b.kilos; }, 0));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "litrosSel", {
        get: function () {
            return (this.service.data.litros -
                this.service.dadosTransfPropSel.reduce(function (a, b) { return a + b.litros; }, 0));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "quantidSel", {
        get: function () {
            return (this.service.data.quantid -
                this.service.dadosTransfPropSel.reduce(function (a, b) { return a + b.quantid; }, 0));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.service.dadosTransfPropSel);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "hasSelectedLote", {
        get: function () {
            if (!app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.service.dadosTransfPropSel))
                return false;
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["ArrayUtilsStaticService"].any(this.service.dadosTransfPropSel.filter(function (c) { return c.flagSeleciona === "S"; }));
        },
        enumerable: true,
        configurable: true
    });
    MovTransferenciaPropriedadeFormComponent.prototype.setteste = function () {
        this.service.data.destinatarioIdClienteOrigem = 1011;
        this.service.data.destinatarioIdClienteDestino = 1011;
        this.service.data.materialId = "86";
        this.service.data.kilos = 50000;
        this.service.data.numDocVenda = 1;
        this.service.data.dtDocVenda = new Date();
        this.service.data.loteIdDestino = "0239/22";
        this.service.data.numDocFormLote = 1;
        this.service.data.serieDocFormLote = "1";
        this.service.data.dtDocFormLote = new Date();
        this.service.data.transfAutomatica = "S";
    };
    Object.defineProperty(MovTransferenciaPropriedadeFormComponent.prototype, "requireDadosRetorno", {
        get: function () {
            if (!this.granelSolido)
                return false;
            return this.tipoGranel !== 2;
        },
        enumerable: true,
        configurable: true
    });
    MovTransferenciaPropriedadeFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_13__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_21__["MovTransferenciaPropriedadeService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_12__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_16__["LoginService"] },
        { type: _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_15__["ModeloNotaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_mov_transferencia_propriedade_ajuste_mov_transferencia_propriedade_ajuste_component__WEBPACK_IMPORTED_MODULE_17__["MovTransferenciaPropriedadeAjusteComponent"], { static: false }),
        __metadata("design:type", _mov_transferencia_propriedade_ajuste_mov_transferencia_propriedade_ajuste_component__WEBPACK_IMPORTED_MODULE_17__["MovTransferenciaPropriedadeAjusteComponent"])
    ], MovTransferenciaPropriedadeFormComponent.prototype, "modalAjuste", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_mov_transferencia_propriedade_consulta_nf_mov_transferencia_propriedade_consulta_nf_component__WEBPACK_IMPORTED_MODULE_18__["MovTransferenciaPropriedadeConsultaNfComponent"], { static: false }),
        __metadata("design:type", _mov_transferencia_propriedade_consulta_nf_mov_transferencia_propriedade_consulta_nf_component__WEBPACK_IMPORTED_MODULE_18__["MovTransferenciaPropriedadeConsultaNfComponent"])
    ], MovTransferenciaPropriedadeFormComponent.prototype, "modalConsultaNf", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"])
    ], MovTransferenciaPropriedadeFormComponent.prototype, "tableSaldos", void 0);
    MovTransferenciaPropriedadeFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-mov-transferencia-propriedade-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./mov-transferencia-propriedade-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./mov-transferencia-propriedade-form.component.scss */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_13__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_21__["MovTransferenciaPropriedadeService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_10__["ConfiguracaoFacade"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_12__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_16__["LoginService"],
            _cadastro_modelo_nota_modelo_nota_service__WEBPACK_IMPORTED_MODULE_15__["ModeloNotaService"]])
    ], MovTransferenciaPropriedadeFormComponent);
    return MovTransferenciaPropriedadeFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_9__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeIndexComponent", function() { return MovTransferenciaPropriedadeIndexComponent; });
/* 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_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_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 _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../mov-transferencia-propriedade.model */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.model.ts");
/* harmony import */ var _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../mov-transferencia-propriedade.constants */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.constants.ts");
/* harmony import */ var _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../mov-transferencia-propriedade.service */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _mov_transferencia_propriedade_ajustar_notas_fiscais_mov_transferencia_propriedade_ajustar_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../mov-transferencia-propriedade-ajustar-notas-fiscais/mov-transferencia-propriedade-ajustar-notas-fiscais.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajustar-notas-fiscais/mov-transferencia-propriedade-ajustar-notas-fiscais.component.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var MovTransferenciaPropriedadeIndexComponent = /** @class */ (function (_super) {
    __extends(MovTransferenciaPropriedadeIndexComponent, _super);
    function MovTransferenciaPropriedadeIndexComponent(router, messageService, service, datatables, message, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_9__["MovTransferenciaPropriedadeConstants"](), funcoes) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_8__["MovTransferenciaPropriedadeDto"]();
        _this.constantes = new _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_9__["MovTransferenciaPropriedadeConstants"]();
        _this.mensagens = [];
        _this.target = _this.funcoes.getTargetLocation();
        _this.cancelarTransferencia = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () { return __awaiter(_this, void 0, void 0, function () {
                var validationResult, mensagens;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0: return [4 /*yield*/, this.service.verifSePermiteCancelar(this.data.regMovTransfPropriedadeId).toPromise()];
                        case 1:
                            validationResult = _a.sent();
                            if (!validationResult.isValid) {
                                mensagens = this.messageService.validationResult(validationResult);
                                mensagens.forEach(function (m) { return _this.messageService.warning("titles.movTransferenciaPropriedade", m); });
                                return [2 /*return*/];
                            }
                            else {
                                this.executaCancelamentoDaTransferencia();
                            }
                            return [2 /*return*/];
                    }
                });
            }); });
        };
        _this.ajustarNotasFiscais = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 9, function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isPositive(this.data.regMovTransfPropriedadeId)) {
                        this.childAjustarNotasFiscais.objectSelect(this.data);
                        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("mov-transferencia-propriedade-ajustar-notas-fiscais-dialog");
                    }
                    return [2 /*return*/];
                });
            }); });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        if (!_this.service.filtro) {
            _this.service.filtro = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_8__["MovTransferenciaPropriedadeFilter"]();
        }
        return _this;
    }
    MovTransferenciaPropriedadeIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoes.abrirFiltro) {
                    app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("mov-transferencia-propriedade-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: "cancelarTransferencia", func: function () { return _this.cancelarTransferencia; } },
            { action: "ajustarNotasFiscais", func: function () { return _this.ajustarNotasFiscais; } }
        ]);
    };
    MovTransferenciaPropriedadeIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.service.data = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_8__["MovTransferenciaPropriedade"]();
            _this.router.navigate([_this.target + "/controle/movTransferenciaPropriedade/create"]);
        }, function () { }, true);
    };
    MovTransferenciaPropriedadeIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatables.getDataString("regMovTransfPropriedadeId", "registro"),
                _this.datatables.getDataDateTime("dtMovimento", "data", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("destinatarioIdClienteOrigem", "codigoOrigem"),
                _this.datatables.getDataString("clienteOrigem", "clienteOrigem"),
                _this.datatables.getDataString("materialId", "codProduto"),
                _this.datatables.getDataString("produto", "produto"),
                _this.datatables.getDataString("loteIdOrigem", "loteOrigem"),
                _this.datatables.getDataDouble("kilos", "kilos"),
                _this.datatables.getDataDouble("litros", "litrosCc"),
                _this.datatables.getDataDouble("quantid", "quantidade"),
                _this.datatables.getDataString("numDocVenda", "notaVendaNumero"),
                _this.datatables.getDataString("serieDocVenda", "notaVendaSerie"),
                _this.datatables.getDataDateTime("dtDocVenda", "notaVendaEmissao", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("numDocRetorno", "notaRetornoNumero"),
                _this.datatables.getDataString("serieDocRetorno", "notaRetornoSerie"),
                _this.datatables.getDataDateTime("dtDocRetorno", "notaRetornoEmissao", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("observ", "observ"),
                _this.datatables.getDataString("destinatarioIdClienteDestino", "codigoDestino"),
                _this.datatables.getDataString("clienteDestino", "clienteDestino"),
                _this.datatables.getDataString("loteIdDestino", "loteDestino"),
                _this.datatables.getDataString("numDocFormLote", "nfFormacaoLoteNumero"),
                _this.datatables.getDataString("serieDocFormLote", "nfFormacaoLoteSerie"),
                _this.datatables.getDataDateTime("dtDocFormLote", "nfFormacaoLoteEmissao", "DD/MM/YYYY HH:mm:ss", "15%"),
                _this.datatables.getDataString("modNota", "nfFormacaoLoteModelo"),
                _this.datatables.getDataString("chaveNFE", "nfFormacaoLoteChave"),
                _this.datatables.getDataString("status", "status")
            ];
            _this.datatables.toDataTable({ tableId: "dtMovTransferenciaPropriedade", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    MovTransferenciaPropriedadeIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MovTransferenciaPropriedadeIndexComponent.prototype.filtrar = function () {
        var currentDate = new Date();
        currentDate.setDate(1);
        this.service.filtro.dataI = currentDate;
        this.service.filtro.dataF = new Date();
        jQuery("#mov-transferencia-propriedade-filter-dialog").modal("show");
    };
    MovTransferenciaPropriedadeIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    MovTransferenciaPropriedadeIndexComponent.prototype.detail = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.regMovTransfPropriedadeId)) {
            this.router.navigate([this.target + "/controle/movTransferenciaPropriedade/detail/" + this.data.regMovTransfPropriedadeId]);
        }
    };
    MovTransferenciaPropriedadeIndexComponent.prototype.executaCancelamentoDaTransferencia = function () {
        return __awaiter(this, void 0, void 0, function () {
            var validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.cancelarTransferencia(this.data.regMovTransfPropriedadeId).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.movTransferenciaPropriedade", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.message.success("titles.movTransferenciaPropriedade", "messages.cancelamentoRealizadoComSucesso");
                            this.refresh();
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    MovTransferenciaPropriedadeIndexComponent.prototype.onRefresh = function (event) {
        this.refresh();
    };
    MovTransferenciaPropriedadeIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_10__["MovTransferenciaPropriedadeService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_mov_transferencia_propriedade_ajustar_notas_fiscais_mov_transferencia_propriedade_ajustar_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_12__["MovTransferenciaPropriedadeAjustarNotasFiscaisComponent"], { static: false }),
        __metadata("design:type", _mov_transferencia_propriedade_ajustar_notas_fiscais_mov_transferencia_propriedade_ajustar_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_12__["MovTransferenciaPropriedadeAjustarNotasFiscaisComponent"])
    ], MovTransferenciaPropriedadeIndexComponent.prototype, "childAjustarNotasFiscais", void 0);
    MovTransferenciaPropriedadeIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-mov-transferencia-propriedade-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./mov-transferencia-propriedade-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-index/mov-transferencia-propriedade-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_10__["MovTransferenciaPropriedadeService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], MovTransferenciaPropriedadeIndexComponent);
    return MovTransferenciaPropriedadeIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeNfComponent", function() { return MovTransferenciaPropriedadeNfComponent; });
/* 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 _mov_transferencia_propriedade_ajuste_mov_transferencia_propriedade_ajuste_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../mov-transferencia-propriedade-ajuste/mov-transferencia-propriedade-ajuste.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajuste/mov-transferencia-propriedade-ajuste.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../mov-transferencia-propriedade.constants */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.constants.ts");
/* harmony import */ var _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../mov-transferencia-propriedade.model */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.model.ts");
/* harmony import */ var _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../mov-transferencia-propriedade.service */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.service.ts");
/* harmony import */ var _pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/boolean-utils/boolean-utils.static.service */ "./src/app/shared/services/funcoes/boolean-utils/boolean-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_validation_result_validation_result_model__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./../../../../shared/services/funcoes/validation-result/validation-result.model */ "./src/app/shared/services/funcoes/validation-result/validation-result.model.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



















//./../../../..
var MovTransferenciaPropriedadeNfComponent = /** @class */ (function (_super) {
    __extends(MovTransferenciaPropriedadeNfComponent, _super);
    function MovTransferenciaPropriedadeNfComponent(router, messageService, service, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_3__["MovTransferenciaPropriedadeConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.constantes = new _mov_transferencia_propriedade_constants__WEBPACK_IMPORTED_MODULE_3__["MovTransferenciaPropriedadeConstants"]();
        _this.dadosAjusteManualNf = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_4__["TransferenciaPropriedadeNfsSelDto"]();
        _this.mensagens = [];
        _this.grupoLote = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.title = "titles.movTransferenciaPropriedade";
        return _this;
    }
    MovTransferenciaPropriedadeNfComponent.prototype.ngOnInit = function () {
        if (!this.service.data.hasInfo) {
            this.back();
            return;
        }
        this.ok();
    };
    MovTransferenciaPropriedadeNfComponent.prototype.ok = function () {
        var _this = this;
        this.service.selecionaNfs().subscribe(function (resp) {
            if (resp instanceof _shared_services_funcoes_validation_result_validation_result_model__WEBPACK_IMPORTED_MODULE_17__["ValidationResult"]) {
                resp.erros.forEach(function (m) {
                    return _this.messageService.warning(_this.title, m.message);
                });
            }
            else {
                _this.dadosTransfPropNfsSel = resp;
                _this.arrGroupLote();
            }
        });
    };
    MovTransferenciaPropriedadeNfComponent.prototype.carregaNfs = function (event) {
        var _this = this;
        if (event) {
            this.service.getNfTmp().subscribe(function (resp) {
                if (resp) {
                    _this.dadosTransfPropNfsSel = resp;
                    _this.dadosTransfPropNfsSel.map(function (val) {
                        if (val.flagSeleciona === "S") {
                            val.flag = true;
                        }
                        else {
                            val.flag = false;
                        }
                    });
                    _this.arrGroupLote();
                }
            });
        }
    };
    MovTransferenciaPropriedadeNfComponent.prototype.arrGroupLote = function () {
        var _this = this;
        this.grupoLote = [];
        this.service.dadosTransfPropSel.forEach(function (res) {
            if (res.kilos > 0 || res.litros > 0 || res.quantid > 0) {
                var i = _this.grupoLote.findIndex(function (c) { return c.lote === res.lote; });
                if (i < 0) {
                    _this.grupoLote.push({
                        lote: res.lote,
                        saldoKilos: res.kilos,
                        saldoLitros: res.litros,
                        saldoQuantid: res.quantid,
                        kilos: 0,
                        litros: 0,
                        quantid: 0,
                    });
                }
                else {
                    _this.grupoLote[i].saldoKilos += res.kilos;
                    _this.grupoLote[i].saldoLitros += res.litros;
                    _this.grupoLote[i].saldoQuantid += res.quantid;
                }
            }
        });
        this.dadosTransfPropNfsSel.forEach(function (res) {
            var i = _this.grupoLote.findIndex(function (c) { return c.lote === res.lote; });
            if (i < 0)
                return;
            _this.grupoLote[i].kilos += _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(res.kilos);
            _this.grupoLote[i].litros += _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(res.litros);
            _this.grupoLote[i].quantid += _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(res.quantid);
        });
    };
    MovTransferenciaPropriedadeNfComponent.prototype.select = function (item, index) {
        this.dadosAjusteManualNf = item;
    };
    MovTransferenciaPropriedadeNfComponent.prototype.rowSelectNf = function (item, index) {
        var _this = this;
        var flagSeleciona = item.flagSeleciona === "S" ? "N" : "S";
        var flag = _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["BooleanUtilsStaticService"].toBoolean(flagSeleciona);
        var kilos = 0;
        var litros = 0;
        var quantid = 0;
        if (flag) {
            var i = this.grupoLote.findIndex(function (c) { return c.lote === item.lote; });
            if (i < 0)
                return;
            if (this.grupoLote[i].saldoKilos - this.grupoLote[i].kilos <
                item.saldoKilos) {
                kilos = this.grupoLote[i].saldoKilos - this.grupoLote[i].kilos;
            }
            else {
                kilos = item.saldoKilos;
            }
            if (this.grupoLote[i].saldoLitros - this.grupoLote[i].litros <
                item.saldoLitros) {
                litros = this.grupoLote[i].saldoLitros - this.grupoLote[i].litros;
            }
            else {
                litros = item.saldoLitros;
            }
            if (this.grupoLote[i].saldoQuantid - this.grupoLote[i].quantid <
                item.saldoQuantid) {
                quantid = this.grupoLote[i].saldoQuantid - this.grupoLote[i].quantid;
            }
            else {
                quantid = item.saldoQuantid;
            }
            var saldoValido = this.calcLote(item, flag);
            if (!saldoValido) {
                return;
            }
        }
        item.flagSeleciona = flagSeleciona;
        item.flag = _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["BooleanUtilsStaticService"].toBoolean(flagSeleciona);
        item.kilos = kilos;
        item.litros = litros;
        item.quantid = quantid;
        this.dadosAjusteManualNf = item;
        this.service.updateNf(item).subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                _this.btnTodosNf =
                    _this.dadosTransfPropNfsSel.length ===
                        _this.dadosTransfPropNfsSel.filter(function (c) { return c.flagSeleciona === "S"; })
                            .length;
                if (!resp.validationResult.isValid) {
                    _this.mensagens = _this.messageService.validationResult(resp.validationResult);
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.funcoesService.backToTop();
                    return;
                }
                _this.carregaNfs(true);
            }
        });
    };
    MovTransferenciaPropriedadeNfComponent.prototype.selectAllNf = function (checked) {
        var _this = this;
        if (this.hasSelectedNfs)
            checked = false;
        this.btnTodosNf = checked;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.grupoLote.forEach(function (saldoLote) { return __awaiter(_this, void 0, void 0, function () {
                var dados, _loop_1, this_1, index, state_1;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            dados = this.dadosFilter.filter(function (c) { return c.lote === saldoLote.lote; });
                            _loop_1 = function (index) {
                                var item, kilos, litros, quantid, i, resp;
                                return __generator(this, function (_a) {
                                    switch (_a.label) {
                                        case 0:
                                            item = dados[index];
                                            kilos = 0;
                                            litros = 0;
                                            quantid = 0;
                                            if (checked) {
                                                i = this_1.grupoLote.findIndex(function (c) { return c.lote === item.lote; });
                                                if (i < 0)
                                                    return [2 /*return*/, { value: void 0 }];
                                                if (saldoLote.saldoKilos - saldoLote.kilos < item.saldoKilos) {
                                                    kilos = saldoLote.saldoKilos - saldoLote.kilos;
                                                }
                                                else {
                                                    kilos = item.saldoKilos;
                                                }
                                                if (saldoLote.saldoLitros - saldoLote.litros < item.saldoLitros) {
                                                    litros = saldoLote.saldoLitros - saldoLote.litros;
                                                }
                                                else {
                                                    litros = item.saldoLitros;
                                                }
                                                if (saldoLote.saldoQuantid - saldoLote.quantid <
                                                    item.saldoQuantid) {
                                                    quantid = saldoLote.saldoQuantid - saldoLote.quantid;
                                                }
                                                else {
                                                    quantid = item.saldoQuantid;
                                                }
                                                if (!kilos || saldoLote.kilos + kilos > saldoLote.saldoKilos) {
                                                    return [2 /*return*/, { value: void 0 }];
                                                }
                                                saldoLote.kilos += kilos;
                                                saldoLote.litros += litros;
                                                saldoLote.quantid += quantid;
                                            }
                                            if (!(checked || item.flagSeleciona === "S")) return [3 /*break*/, 2];
                                            item.flagSeleciona = checked ? "S" : "N";
                                            item.flag = checked;
                                            item.kilos = kilos;
                                            item.litros = litros;
                                            item.quantid = quantid;
                                            return [4 /*yield*/, this_1.service.updateNf(item).toPromise()];
                                        case 1:
                                            resp = _a.sent();
                                            if (this_1.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                                                if (!resp.validationResult.isValid) {
                                                    this_1.mensagens = this_1.messageService.validationResult(resp.validationResult);
                                                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(this_1.mensagens);
                                                    this_1.funcoesService.backToTop();
                                                    return [2 /*return*/, { value: false }];
                                                }
                                                this_1.carregaNfs(true);
                                            }
                                            _a.label = 2;
                                        case 2: return [2 /*return*/];
                                    }
                                });
                            };
                            this_1 = this;
                            index = 0;
                            _a.label = 1;
                        case 1:
                            if (!(index < dados.length)) return [3 /*break*/, 4];
                            return [5 /*yield**/, _loop_1(index)];
                        case 2:
                            state_1 = _a.sent();
                            if (typeof state_1 === "object")
                                return [2 /*return*/, state_1.value];
                            _a.label = 3;
                        case 3:
                            index++;
                            return [3 /*break*/, 1];
                        case 4: return [2 /*return*/];
                    }
                });
            }); });
        });
    };
    MovTransferenciaPropriedadeNfComponent.prototype.gerar = function () {
        var _this = this;
        var invalido = this.grupoLote.find(function (c) {
            return _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(c.saldoKilos) !==
                _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(c.kilos) ||
                _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(c.saldoLitros) !==
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(c.litros) ||
                _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(c.saldoQuantid) !==
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(c.quantid);
        });
        if (invalido) {
            this.messageService.warning(this.title, "messages.kilosLitrosOuQuantidEObrigatorio");
            return;
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () { return __awaiter(_this, void 0, void 0, function () {
            var subject, message;
            var _this = this;
            return __generator(this, function (_a) {
                subject = this.messageService.translate("titles.movTransferenciaPropriedade");
                message = this.messageService.translate("messages.confirmaOperacaoByParam", { param: subject });
                this.messageService.confirm(this.title, message, null, function () {
                    _this.service
                        .grava({
                        regMovTransfPropriedadeId: 0,
                        dtMovimento: _this.service.data.dtMovimento,
                        destinatarioIdClienteOrigem: _this.service.data.destinatarioIdClienteOrigem,
                        materialId: _this.service.data.materialId,
                        loteIdOrigem: _this.service.data.loteIdOrigem,
                        kilos: _this.service.data.kilos,
                        litros: _this.service.data.litros,
                        quantid: _this.service.data.quantid,
                        numDocVenda: _this.service.data.numDocVenda,
                        serieDocVenda: _this.service.data.serieDocVenda,
                        dtDocVenda: _this.service.data.dtDocVenda,
                        numDocRetorno: _this.service.data.numDocRetorno,
                        serieDocRetorno: _this.service.data.serieDocRetorno,
                        dtDocRetorno: _this.service.data.dtDocRetorno,
                        observ: _this.service.data.observ,
                        destinatarioIdClienteDestino: _this.service.data.destinatarioIdClienteDestino,
                        loteIdDestino: _this.service.data.loteIdDestino,
                        numDocFormLote: _this.service.data.numDocFormLote,
                        serieDocFormLote: _this.service.data.serieDocFormLote,
                        dtDocFormLote: _this.service.data.dtDocFormLote,
                        modNota: _this.service.data.modNota,
                        chaveNFE: _this.service.data.chaveNFE,
                        flagPerformance: _this.service.data.flagPerformance,
                        flagEmprestimo: _this.service.data.flagEmprestimo,
                        flagTransfComum: _this.service.data.flagTransfComum,
                    })
                        .subscribe(function (result) {
                        if (_this.funcoesService.isNotUndefinedOrNull(result.validationResult)) {
                            if (result && !result.validationResult.isValid) {
                                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                                _this.messageService.warning(_this.title, _this.mensagens[0]);
                                return;
                            }
                        }
                        _this.funcoesService.desabilitarFiltro();
                        _this.messageService.success(_this.title, "messages.transferenciaRealizada");
                        _this.router.navigate([
                            _this.target + "/controle/movTransferenciaPropriedade",
                        ]);
                    });
                });
                return [2 /*return*/];
            });
        }); });
    };
    MovTransferenciaPropriedadeNfComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate([
            this.target + "/controle/movTransferenciaPropriedade/create",
        ]);
    };
    MovTransferenciaPropriedadeNfComponent.prototype.validaLote = function (item, checked, message) {
        if (message === void 0) { message = true; }
        var grupoLote = this.grupoLote;
        if (checked !== _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["BooleanUtilsStaticService"].toBoolean(item.flagSeleciona)) {
            var i = grupoLote.findIndex(function (c) { return c.lote === item.lote; });
            if (i < 0)
                return;
            if (checked) {
                if (grupoLote[i].saldoKilos - grupoLote[i].kilos > 0) {
                    return true;
                }
                else if (grupoLote[i].saldoLitros - grupoLote[i].litros > 0) {
                    return true;
                }
                else if (grupoLote[i].saldoQuantid - grupoLote[i].quantid > 0) {
                    return true;
                }
                else if (item.saldoKilos + grupoLote[i].kilos >
                    grupoLote[i].saldoKilos) {
                    if (message)
                        this.messageService.warning(this.title, "messages.kilosInformadoMaiorDisponivelLote");
                    return false;
                }
                else if (item.saldoLitros + grupoLote[i].litros >
                    grupoLote[i].saldoLitros) {
                    if (message)
                        this.messageService.warning(this.title, "messages.litrosInformadoMaiorDisponivelLote");
                    return false;
                }
                else if (item.saldoQuantid + grupoLote[i].quantid >
                    grupoLote[i].saldoQuantid) {
                    if (message)
                        this.messageService.warning(this.title, "messages.quantidInformadoMaiorDisponivelLote");
                    return false;
                }
                else {
                    return true;
                }
            }
        }
        return true;
    };
    MovTransferenciaPropriedadeNfComponent.prototype.calcLote = function (item, checked, message) {
        if (message === void 0) { message = true; }
        if (checked !== _shared_services_funcoes_boolean_utils_boolean_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["BooleanUtilsStaticService"].toBoolean(item.flagSeleciona)) {
            var i = this.grupoLote.findIndex(function (c) { return c.lote === item.lote; });
            if (i < 0)
                return;
            if (checked) {
                var loteValido = this.validaLote(item, true, message);
                if (loteValido) {
                    if (this.grupoLote[i].saldoKilos - this.grupoLote[i].kilos <
                        item.saldoKilos) {
                        this.grupoLote[i].kilos +=
                            this.grupoLote[i].saldoKilos - this.grupoLote[i].kilos;
                    }
                    else {
                        this.grupoLote[i].kilos += item.saldoKilos;
                    }
                    if (this.grupoLote[i].saldoLitros - this.grupoLote[i].litros <
                        item.saldoLitros) {
                        this.grupoLote[i].litros +=
                            this.grupoLote[i].saldoLitros - this.grupoLote[i].litros;
                    }
                    else {
                        this.grupoLote[i].litros += item.saldoLitros;
                    }
                    if (this.grupoLote[i].saldoQuantid - this.grupoLote[i].quantid <
                        item.saldoQuantid) {
                        this.grupoLote[i].quantid +=
                            this.grupoLote[i].saldoQuantid - this.grupoLote[i].quantid;
                    }
                    else {
                        this.grupoLote[i].quantid += item.saldoQuantid;
                    }
                }
                return loteValido;
            }
            else {
                this.grupoLote[i].kilos -= item.kilos;
                this.grupoLote[i].litros -= item.litros;
                this.grupoLote[i].quantid -= item.quantid;
                return true;
            }
        }
        return true;
    };
    MovTransferenciaPropriedadeNfComponent.prototype.ajusteManual = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            if (_this.funcoesService.isNotUndefinedOrNull(_this.dadosAjusteManualNf)) {
                _this.modalAjuste.show({
                    check: _this.dadosAjusteManualNf.saldoKilos === _this.dadosAjusteManualNf.kilos,
                    lote: _this.dadosAjusteManualNf.lote,
                    saldoKilos: _this.dadosAjusteManualNf.saldoKilos,
                    kilos: _this.dadosAjusteManualNf.kilos,
                    saldoLitros: _this.dadosAjusteManualNf.saldoLitros,
                    litros: _this.dadosAjusteManualNf.litros,
                    saldoQuantid: _this.dadosAjusteManualNf.saldoQuantid,
                    quantid: _this.dadosAjusteManualNf.quantid,
                });
            }
            else {
                _this.messageService.warning(_this.title, "messages.selecioneUmRegistro");
            }
        });
    };
    MovTransferenciaPropriedadeNfComponent.prototype.outAjuste = function (data) {
        var _this = this;
        var flag = false;
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].isPositive(data.kilos) ||
            _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].isPositive(data.litros) ||
            _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].isPositive(data.quantid)) {
            flag = true;
        }
        var kilos = 0;
        var litros = 0;
        var quantid = 0;
        if (flag) {
            var i = this.grupoLote.findIndex(function (c) { return c.lote === data.lote; });
            if (i < 0)
                return;
            if (this.grupoLote[i].kilos - this.dadosAjusteManualNf.kilos + data.kilos >
                this.grupoLote[i].saldoKilos ||
                data.kilos > data.saldoKilos) {
                this.messageService.warning(this.title, "messages.kilosInformadoMaiorDisponivel");
                return;
            }
            if (this.grupoLote[i].litros -
                this.dadosAjusteManualNf.litros +
                data.litros >
                this.grupoLote[i].saldoLitros ||
                data.litros > data.saldoLitros) {
                this.messageService.warning(this.title, "messages.litrosInformadoMaiorDisponivel");
                return;
            }
            if (this.grupoLote[i].quantid -
                this.dadosAjusteManualNf.quantid +
                data.quantid >
                this.grupoLote[i].saldoQuantid ||
                data.quantid > data.saldoQuantid) {
                this.messageService.warning(this.title, "messages.quantidadeInformadoMaiorDisponivel");
                return;
            }
            kilos = data.kilos;
            litros = data.litros;
            quantid = data.quantid;
        }
        this.dadosAjusteManualNf.flagSeleciona = flag ? "S" : "N";
        this.dadosAjusteManualNf.flag = flag;
        this.dadosAjusteManualNf.kilos = kilos;
        this.dadosAjusteManualNf.litros = litros;
        this.dadosAjusteManualNf.quantid = quantid;
        this.service.updateNf(this.dadosAjusteManualNf).subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.validationResult)) {
                if (resp && !resp.validationResult.isValid) {
                    _this.mensagens = _this.messageService.validationResult(resp.validationResult);
                    _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_9__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.funcoesService.backToTop();
                    return;
                }
                _this.modalAjuste.close();
                _this.carregaNfs(true);
            }
        });
    };
    Object.defineProperty(MovTransferenciaPropriedadeNfComponent.prototype, "dadosNfs", {
        get: function () {
            if (!this.tableSaldosNfs)
                return [];
            if (!this.hasDadosNf || !this.tableSaldosNfs.filtro) {
                return this.tableSaldosNfs.getPage(this.dadosTransfPropNfsSel);
            }
            return this.tableSaldosNfs.getPage(this.dadosFilter);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeNfComponent.prototype, "dadosFilter", {
        get: function () {
            var _this = this;
            return this.dadosTransfPropNfsSel.filter(function (v) {
                return _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].exist(v.nota.toString(), _this.tableSaldosNfs.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].exist(v.serie, _this.tableSaldosNfs.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].exist(_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtEmissao), _this.tableSaldosNfs.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].exist(v.lote, _this.tableSaldosNfs.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeNfComponent.prototype, "hasDadosNf", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ArrayUtilsStaticService"].any(this.dadosTransfPropNfsSel);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovTransferenciaPropriedadeNfComponent.prototype, "hasSelectedNfs", {
        get: function () {
            if (!_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ArrayUtilsStaticService"].any(this.dadosTransfPropNfsSel))
                return false;
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["ArrayUtilsStaticService"].any(this.dadosTransfPropNfsSel.filter(function (c) { return c.flagSeleciona === "S"; }));
        },
        enumerable: true,
        configurable: true
    });
    MovTransferenciaPropriedadeNfComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_18__["MessageService"] },
        { type: _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_5__["MovTransferenciaPropriedadeService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__["PermissoesUtilsService"] },
        { type: _pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_mov_transferencia_propriedade_ajuste_mov_transferencia_propriedade_ajuste_component__WEBPACK_IMPORTED_MODULE_2__["MovTransferenciaPropriedadeAjusteComponent"], { static: false }),
        __metadata("design:type", _mov_transferencia_propriedade_ajuste_mov_transferencia_propriedade_ajuste_component__WEBPACK_IMPORTED_MODULE_2__["MovTransferenciaPropriedadeAjusteComponent"])
    ], MovTransferenciaPropriedadeNfComponent.prototype, "modalAjuste", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__["TableComponent"], { static: false }),
        __metadata("design:type", _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__["TableComponent"])
    ], MovTransferenciaPropriedadeNfComponent.prototype, "tableSaldosNfs", void 0);
    MovTransferenciaPropriedadeNfComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-mov-transferencia-propriedade-nf",
            template: __importDefault(__webpack_require__(/*! raw-loader!./mov-transferencia-propriedade-nf.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-nf/mov-transferencia-propriedade-nf.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./../mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.scss */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_18__["MessageService"],
            _mov_transferencia_propriedade_service__WEBPACK_IMPORTED_MODULE_5__["MovTransferenciaPropriedadeService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__["PermissoesUtilsService"],
            _pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"]])
    ], MovTransferenciaPropriedadeNfComponent);
    return MovTransferenciaPropriedadeNfComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeConstants", function() { return MovTransferenciaPropriedadeConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MovTransferenciaPropriedadeConstants = /** @class */ (function () {
    function MovTransferenciaPropriedadeConstants() {
        this.sisFormularioId = 90235;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.selecionarTodos" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.ajusteManual" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.gerar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.cancelarTransferencia" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.ajustarNotasFiscais" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.movTransferenciaPropriedade";
        this.reportId = "0";
        this.reportTitulo = { "titulo": "Transferência de Propriedade", "subTitulo": "" };
        this.tabela = "MovTransferenciaPropriedade";
        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: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: "CancelarTransferencia", action: "cancelarTransferencia", icon: "fa fa-ban", exibeButton: true, eximeMenu: true, menuName: "Movimento", },
            { title: "AjustarNotasFiscais", action: "ajustarNotasFiscais", icon: "fa fa-gears", exibeButton: true, eximeMenu: true, menuName: "Movimento", },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'ConsultarNota', action: 'consultarNota', icon: "icon-search", exibeButton: false, eximeMenu: false, menuName: 'Movimento', depitem: false },
        ];
        this.listaParam = [
            { 'sistema': 'STO', 'parametros': ["GranelSolido"] }
        ];
    }
    return MovTransferenciaPropriedadeConstants;
}());



/***/ }),

/***/ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.model.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.model.ts ***!
  \*****************************************************************************************************/
/*! exports provided: MovTransferenciaPropriedade, MovTransferenciaPropriedadeDto, MovTransferenciaPropriedadeFilter, MovTransferenciaPropriedadeLote, TransferenciaPropriedadeSelDto, TransferenciaPropriedadeNfsSelDto, MovTransferenciaPropriedadeAjustarNotasFiscais */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MovTransferenciaPropriedade = /** @class */ (function (_super) {
    __extends(MovTransferenciaPropriedade, _super);
    function MovTransferenciaPropriedade() {
        var _this = _super.call(this) || this;
        _this.hasInfo = false;
        _this.transfAutomatica = "N";
        _this.movTransferenciaPropriedadeLote = [];
        _this.dtMovimento = new Date();
        _this.regMovTransfPropriedadeId = 0;
        _this.destinatarioIdClienteOrigem = "";
        _this.materialId = "";
        _this.numDocVenda = "";
        _this.serieDocVenda = "";
        _this.modNota = "";
        _this.destinatarioIdClienteDestino = "";
        _this.loteIdDestino = "";
        _this.serieDocFormLote = "";
        _this.clienteOrigem = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
        _this.material = new _cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__["Material"]();
        _this.loteOrigem = new _cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_3__["Lote"]();
        _this.clienteDestino = new _cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
        _this.loteDestino = new _cadastro_lote_lote_model__WEBPACK_IMPORTED_MODULE_3__["Lote"]();
        return _this;
    }
    return MovTransferenciaPropriedade;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var MovTransferenciaPropriedadeDto = /** @class */ (function (_super) {
    __extends(MovTransferenciaPropriedadeDto, _super);
    function MovTransferenciaPropriedadeDto() {
        var _this = _super.call(this) || this;
        _this.kilos = 0;
        _this.litros = 0;
        _this.quantid = 0;
        _this.loteIdOrigem = "";
        return _this;
    }
    return MovTransferenciaPropriedadeDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var MovTransferenciaPropriedadeFilter = /** @class */ (function () {
    function MovTransferenciaPropriedadeFilter() {
        this.destinatarioIdClienteOrigem = 0;
        this.destinatarioIdClienteDestino = 0;
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].getFirstDayOfMonth();
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].getFinalDay();
    }
    return MovTransferenciaPropriedadeFilter;
}());

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

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

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

var MovTransferenciaPropriedadeAjustarNotasFiscais = /** @class */ (function () {
    function MovTransferenciaPropriedadeAjustarNotasFiscais() {
        this.numDocVenda = 0;
        this.serieDocVenda = '';
        this.dtDocVenda = '';
        this.numDocRetorno = 0;
        this.serieDocRetorno = '';
        this.dtDocRetorno = '';
    }
    return MovTransferenciaPropriedadeAjustarNotasFiscais;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeModule", function() { return MovTransferenciaPropriedadeModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _mov_transferencia_propriedade_ajuste_mov_transferencia_propriedade_ajuste_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mov-transferencia-propriedade-ajuste/mov-transferencia-propriedade-ajuste.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajuste/mov-transferencia-propriedade-ajuste.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_consulta_nf_mov_transferencia_propriedade_consulta_nf_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mov-transferencia-propriedade-consulta-nf/mov-transferencia-propriedade-consulta-nf.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-consulta-nf/mov-transferencia-propriedade-consulta-nf.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_filter_mov_transferencia_propriedade_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mov-transferencia-propriedade-filter/mov-transferencia-propriedade-filter.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-filter/mov-transferencia-propriedade-filter.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_form_mov_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_index_mov_transferencia_propriedade_index_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mov-transferencia-propriedade-index/mov-transferencia-propriedade-index.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-index/mov-transferencia-propriedade-index.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_nf_mov_transferencia_propriedade_nf_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mov-transferencia-propriedade-nf/mov-transferencia-propriedade-nf.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-nf/mov-transferencia-propriedade-nf.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_routing_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./mov-transferencia-propriedade.routing.module */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade.routing.module.ts");
/* harmony import */ var _mov_transferencia_propriedade_ajustar_notas_fiscais_mov_transferencia_propriedade_ajustar_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./mov-transferencia-propriedade-ajustar-notas-fiscais/mov-transferencia-propriedade-ajustar-notas-fiscais.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-ajustar-notas-fiscais/mov-transferencia-propriedade-ajustar-notas-fiscais.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 MovTransferenciaPropriedadeModule = /** @class */ (function () {
    function MovTransferenciaPropriedadeModule() {
    }
    MovTransferenciaPropriedadeModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _mov_transferencia_propriedade_routing_module__WEBPACK_IMPORTED_MODULE_8__["MovTransferenciaPropriedadeRoutingModule"]],
            declarations: [
                _mov_transferencia_propriedade_form_mov_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_5__["MovTransferenciaPropriedadeFormComponent"],
                _mov_transferencia_propriedade_index_mov_transferencia_propriedade_index_component__WEBPACK_IMPORTED_MODULE_6__["MovTransferenciaPropriedadeIndexComponent"],
                _mov_transferencia_propriedade_filter_mov_transferencia_propriedade_filter_component__WEBPACK_IMPORTED_MODULE_4__["MovTransferenciaPropriedadeFilterComponent"],
                _mov_transferencia_propriedade_ajuste_mov_transferencia_propriedade_ajuste_component__WEBPACK_IMPORTED_MODULE_2__["MovTransferenciaPropriedadeAjusteComponent"],
                _mov_transferencia_propriedade_consulta_nf_mov_transferencia_propriedade_consulta_nf_component__WEBPACK_IMPORTED_MODULE_3__["MovTransferenciaPropriedadeConsultaNfComponent"],
                _mov_transferencia_propriedade_nf_mov_transferencia_propriedade_nf_component__WEBPACK_IMPORTED_MODULE_7__["MovTransferenciaPropriedadeNfComponent"],
                _mov_transferencia_propriedade_ajustar_notas_fiscais_mov_transferencia_propriedade_ajustar_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_9__["MovTransferenciaPropriedadeAjustarNotasFiscaisComponent"]
            ]
        })
    ], MovTransferenciaPropriedadeModule);
    return MovTransferenciaPropriedadeModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovTransferenciaPropriedadeRoutingModule", function() { return MovTransferenciaPropriedadeRoutingModule; });
/* 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 _mov_transferencia_propriedade_form_mov_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-form/mov-transferencia-propriedade-form.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_index_mov_transferencia_propriedade_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mov-transferencia-propriedade-index/mov-transferencia-propriedade-index.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-index/mov-transferencia-propriedade-index.component.ts");
/* harmony import */ var _mov_transferencia_propriedade_nf_mov_transferencia_propriedade_nf_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mov-transferencia-propriedade-nf/mov-transferencia-propriedade-nf.component */ "./src/app/pages/controle/mov-transferencia-propriedade/mov-transferencia-propriedade-nf/mov-transferencia-propriedade-nf.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: _mov_transferencia_propriedade_index_mov_transferencia_propriedade_index_component__WEBPACK_IMPORTED_MODULE_4__["MovTransferenciaPropriedadeIndexComponent"],
        data: { breadcrumb: "movTransferenciaPropriedade", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _mov_transferencia_propriedade_form_mov_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__["MovTransferenciaPropriedadeFormComponent"],
        data: {
            breadcrumb: "movTransferenciaPropriedade",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _mov_transferencia_propriedade_form_mov_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__["MovTransferenciaPropriedadeFormComponent"],
        data: {
            breadcrumb: "movTransferenciaPropriedade",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _mov_transferencia_propriedade_form_mov_transferencia_propriedade_form_component__WEBPACK_IMPORTED_MODULE_3__["MovTransferenciaPropriedadeFormComponent"],
        data: {
            breadcrumb: "movTransferenciaPropriedade",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "nf",
        component: _mov_transferencia_propriedade_nf_mov_transferencia_propriedade_nf_component__WEBPACK_IMPORTED_MODULE_5__["MovTransferenciaPropriedadeNfComponent"],
        data: {
            breadcrumb: "movTransferenciaPropriedade",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
];
var MovTransferenciaPropriedadeRoutingModule = /** @class */ (function () {
    function MovTransferenciaPropriedadeRoutingModule() {
    }
    MovTransferenciaPropriedadeRoutingModule = __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"]]
        })
    ], MovTransferenciaPropriedadeRoutingModule);
    return MovTransferenciaPropriedadeRoutingModule;
}());



/***/ }),

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

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







var MovTransferenciaPropriedadeService = /** @class */ (function (_super) {
    __extends(MovTransferenciaPropriedadeService, _super);
    function MovTransferenciaPropriedadeService(http) {
        var _this = _super.call(this, http, "controle/movTransferenciaPropriedade") || this;
        _this.http = http;
        _this.data = new _mov_transferencia_propriedade_model__WEBPACK_IMPORTED_MODULE_6__["MovTransferenciaPropriedade"]();
        return _this;
    }
    MovTransferenciaPropriedadeService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.seleciona = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/selecionaLote", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.selecionaNfs = function () {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/selecionaNfs", {})
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.updateLote = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/setLote", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.updateNf = function (data) {
        return this.http
            .put(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/setNf", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.getLoteTmp = function () {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/getLoteTmp")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.getNfTmp = function () {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/getNfTmp")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.grava = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/grava", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.verifSePermiteCancelar = function (regMovTransfPropriedadeId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/verifSePermiteCancelar/" + regMovTransfPropriedadeId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.cancelarTransferencia = function (regMovTransfPropriedadeId) {
        return this.http
            .get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/cancelarTransferencia/" + regMovTransfPropriedadeId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.prototype.ajustarNotasFiscais = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/controle/movTransferenciaPropriedade/ajustarNotasFiscais", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MovTransferenciaPropriedadeService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    MovTransferenciaPropriedadeService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], MovTransferenciaPropriedadeService);
    return MovTransferenciaPropriedadeService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ })

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