(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cotriguacu-movimentos-classificao-produto-lote-classificao-produto-lote-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/classificao-produto-lote-campos-dinamicos.component.html":
/*!***************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/classificao-produto-lote-campos-dinamicos.component.html ***!
  \***************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<label *ngIf=\"campoDinamico.tipoValLimite !== 3 && campoDinamico.tipoValLimite !== 4\"\n    for=\"{{campoDinamico.caractTipicaId}}\">\n    {{ campoDinamico.descrCaract | translate }}</label>\n<div *ngIf=\"campoDinamico.tipoValLimite !== 3 && campoDinamico.tipoValLimite !== 4\">\n    <input id=\"{{campoDinamico.caractTipicaId}}\" name=\"{{campoDinamico.caractTipicaId}}\" [(ngModel)]=\"internalValue\"\n        class=\"form-control form-control-sm\" [disabled]=\"disabled\" required currencyMask\n        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n    <small\n        *ngIf=\"campoDinamico.vlReferI !== null && campoDinamico.vlReferF !== null && exibeLegenda === true && campoDinamico.tipoValLimite === 1\"\n        class=\"text-danger\">\n        Mínima de {{campoDinamico.vlReferI}}\n    </small>\n    <small\n        *ngIf=\"campoDinamico.vlReferI !== null && campoDinamico.vlReferF !== null && exibeLegenda === true && campoDinamico.tipoValLimite === 2\"\n        class=\"text-danger\">\n        Máximo de {{campoDinamico.vlReferI}}\n    </small>\n    <small\n        *ngIf=\"campoDinamico.vlReferI != null && campoDinamico.vlReferF != null && exibeLegenda == true && campoDinamico.tipoValLimite !== 1 && campoDinamico.tipoValLimite !== 2\"\n        class=\"text-danger\">\n        {{campoDinamico.vlReferI}} até {{campoDinamico.vlReferF}}\n    </small>\n</div>\n<div *ngIf=\"campoDinamico.tipoValLimite === 3 || campoDinamico.tipoValLimite === 4\">\n    <label *ngIf=\"campoDinamico.tipoValLimite === 3 || campoDinamico.tipoValLimite === 4\"\n        for=\"{{campoDinamico.caractTipicaId}}\">\n        {{ campoDinamico.descrCaract | translate }}</label>\n    <select name=\"{{complementoCampos.caractTipica.caractTipicaId}}\" [(ngModel)]=\"internalValue\"\n        class=\"form-control form-control-sm\" [disabled]=\"disabled\" required>\n        <option [ngValue]=\"caractTipicaRef.caractTipicaReferId\" *ngFor=\"let caractTipicaRef of caractTipicaRefer\">{{\n            caractTipicaRef.descrRefer| translate }}</option>\n    </select>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-confirma/classificao-produto-lote-confirma.component.html":
/*!***********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-confirma/classificao-produto-lote-confirma.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.listaConfirmarClassificacao\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-md-12 col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"row\">\n                <div class=\"col-lg-12\">\n                    <app-form-legenda></app-form-legenda>\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"laudo\">{{'labels.laudo' | translate}}</label>\n                                    <input id=\"laudo\" name=\"laudo\" [(ngModel)]=\"data.laudoId\"\n                                        class=\"form-control form-control-sm\" type=\"text\">\n                                </div>\n                            </div>\n                        </div>\n                        <div *ngIf=\"hasDadosFichaTecnica\" id=\"formDinamico\">\n                            <div class=\"row\">\n                                <div *ngFor=\"let cpd of fichaTecnica; let i = index\" class=\"col-md-4\">\n                                    <app-classificao-produto-lote-campos-dinamicos name=\"cpd{{i}}\" [campoDinamico]=\"cpd\"\n                                        [(ngModel)]=\"cpd.valor\" [required]=\"false\" [exibeLegenda]=\"true\">\n                                    </app-classificao-produto-lote-campos-dinamicos>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"table-responsive\" style=\"height: 300px; overflow: auto;\">\n                                    <table id=\"dtConsultaClassificacao\"\n                                        class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                        <thead>\n                                            <tr>\n                                                <th>{{ 'labels.autorizacao' | translate}}</th>\n                                                <th>{{ 'labels.cliente' | translate}}</th>\n                                                <th>{{ 'labels.placa' | translate}}</th>\n                                                <th>{{ 'labels.lote' | translate}}</th>\n                                                <th>{{ 'labels.entrada' | translate}}</th>\n                                                <th>{{ 'labels.docto' | translate}}</th>\n                                                <th>{{ 'labels.serie' | translate}}</th>\n                                                <th>{{ 'labels.emissao' | translate}}</th>\n                                                <th class=\"col-right\">{{ 'labels.qtdeDoc' | translate}}</th>\n                                                <th class=\"col-right\">{{ 'labels.pesoDocto' | translate}}</th>\n                                                <th class=\"col-right\">{{ 'labels.pesoLiquido' | translate}} </th>\n                                                <th class=\"col-right\">{{ 'labels.total' | translate}}</th>\n                                            </tr>\n                                        </thead>\n                                        <tbody>\n                                            <tr *ngFor=\"let t of classificacaoProdutoLote; index as i\"\n                                                (click)=\"select(t)\"\n                                                [ngClass]=\"{'info': t?.autorizacao == data?.autorizacao }\">\n                                                <td>{{ t.autorizacao }}</td>\n                                                <td style=\"white-space: nowrap;\">{{ t.cliente }}</td>\n                                                <td>{{ t.cadastroPlacaId }}</td>\n                                                <td>{{ t.loteId }}</td>\n                                                <td style=\"white-space: nowrap;\">{{ t.dtSaida | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n                                                <td>{{ t.docto }}</td>\n                                                <td>{{ t.serieId }}</td>\n                                                <td>{{ t.dataDocumento | date: 'dd/MM/yyyy' }}</td>\n                                                <td style=\"text-align: right;\">{{ t.quantidDoc | formatCurrency: 0 }}\n                                                </td>\n                                                <td style=\"text-align: right;\">{{ t.quantid | formatCurrency: 0 }}</td>\n                                                <td style=\"text-align: right;\">{{ t.pesoLiq | formatCurrency: 0 }}</td>\n                                                <td style=\"text-align: right;\">{{ t.totItem | formatCurrency: 2 }}</td>\n                                            </tr>\n                                            <tr *ngIf=\"!hasDados\">\n                                                <th colspan=\"12\" style=\"text-align: center\">\n                                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                                </th>\n                                            </tr>\n                                        </tbody>\n                                    </table>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"row mb-2\">\n                            <div class=\"col-4\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                        {{ 'buttons.salvar' | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-filter/classificao-produto-lote-filter.component.html":
/*!*******************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-filter/classificao-produto-lote-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\" id=\"classificao-produto-lote-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.classificaoProdutoLote' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"laudo\">{{'labels.laudo' | translate}}</label>\n                                <input id=\"laudo\" name=\"laudo\" [(ngModel)]=\"service.filtro.laudoId\"\n                                    (blur)=\"trataLaudo()\" class=\"form-control form-control-sm\" type=\"text\">\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\n                                    modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\n                                    [(ngModel)]=\"service.filtro.destinatarioIdCliente\" showInscricao=\"false\"\n                                    showCgcCpf=\"false\" [required]=\"true\" [disabled]=\"!service.disabledLaudo\"\n                                    [inSelected]=\"service.filtro.cliente\" (outModel)=\"trataCliente($event)\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\"\n                                    [required]=\"true\" [disabled]=\"!service.disabledLaudo\" [inSelected]=\"service.filtro.material\"\n                                    (outModel)=\"trataMaterial($event)\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"periodoDe\" class=\"required\">\n                                    {{\"labels.periodoDe\" | translate }}\n                                </label>\n                                <app-data-h-m-s id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                    [disabled]=\"!service.disabledLaudo\" [(ngModel)]=\"service.filtro.dataI\"\n                                    (executa)=\"validaDatas()\">\n                                </app-data-h-m-s>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ate\" class=\"required\">\n                                    {{\"labels.ate\" | translate}}\n                                </label>\n                                <app-data-h-m-s id=\"ate\" name=\"ate\" required=\"true\" [disabled]=\"!service.disabledLaudo\"\n                                    [(ngModel)]=\"service.filtro.dataF\" (executa)=\"validaDatas()\">\n                                </app-data-h-m-s>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{\n                        'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n    <app-table>\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"table-responsive\">\r\n                    <table id=\"dtConsulta\" 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=\"hasDados\">\r\n                                        <input type=\"checkbox\" name=\"todosNf\" id=\"todosNf\" [ngModel]=\"btnTodos\"\r\n                                            (ngModelChange)=\"selectAll($event)\" [disabled]=\"!hasDados\"\r\n                                            title=\"{{ 'buttons.selecionarTodos' | translate }}\">\r\n                                    </span>\r\n                                </th>\r\n                                <th>{{ 'labels.autorizacao' | translate}}</th>\r\n                                <th>{{ 'labels.cliente' | translate}}</th>\r\n                                <th>{{ 'labels.placa' | translate}}</th>\r\n                                <th>{{ 'labels.lote' | translate}}</th>\r\n                                <th>{{ 'labels.entrada' | translate}}</th>\r\n                                <th>{{ 'labels.docto' | translate}}</th>\r\n                                <th>{{ 'labels.serie' | translate}}</th>\r\n                                <th>{{ 'labels.emissao' | translate}}</th>\r\n                                <th class=\"col-right\">{{ 'labels.qtdeDoc' | translate}}</th>\r\n                                <th class=\"col-right\">{{ 'labels.pesoDocto' | translate}}</th>\r\n                                <th class=\"col-right\">{{ 'labels.pesoLiquido' | translate}} </th>\r\n                                <th class=\"col-right\">{{ 'labels.total' | translate}}</th>\r\n                            </tr>\r\n                        </thead>\r\n                        <tbody>\r\n                            <tr *ngFor=\"let t of dados; index as i\" (click)=\"select(t)\" (dblclick)=\"rowSelect(t)\"\r\n                                [ngClass]=\"{'info': t?.autorizacao == data?.autorizacao }\">\r\n                                <td>\r\n                                    <label class=\"chk\">\r\n                                        <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\r\n                                            (ngModelChange)=\"t.flagGera = $event ? 'S' : 'N'\"\r\n                                            [ngModel]=\"t.flagGera ==='S'\" disabled>\r\n                                        <span [ngClass]=\"{'red':t.flag}\">\r\n                                        </span>\r\n                                    </label>\r\n                                </td>\r\n                                <td>{{ t.autorizacao }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t.cliente }}</td>\r\n                                <td>{{ t.cadastroPlacaId }}</td>\r\n                                <td>{{ t.loteId }}</td>\r\n                                <td style=\"white-space: nowrap;\">{{ t.dtSaida | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                                <td>{{ t.docto }}</td>\r\n                                <td>{{ t.serieId }}</td>\r\n                                <td>{{ t.dataDocumento | date: 'dd/MM/yyyy' }}</td>\r\n                                <td style=\"text-align: right;\">{{ t.quantidDoc | formatCurrency: 0 }}</td>\r\n                                <td style=\"text-align: right;\">{{ t.quantid | formatCurrency: 0 }}</td>\r\n                                <td style=\"text-align: right;\">{{ t.pesoLiq | formatCurrency: 0 }}</td>\r\n                                <td style=\"text-align: right;\">{{ t.totItem | formatCurrency: 2 }}</td>\r\n                            </tr>\r\n                            <tr *ngIf=\"!hasDados\">\r\n                                <th colspan=\"16\" 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            </div>\r\n        </div>\r\n    </app-table>\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-3 col-sm-12\" *ngIf=\"!service.disabledLaudo && (hasDados || hasDadosSelecionados)\">\r\n            <button class=\"btn btn-block btn-light\" (click)=\"imprimir()\" type=\"button\"\r\n                [disabled]=\"!hasDados || !hasDadosSelecionados\">\r\n                {{ 'buttons.imprimir' | translate }}\r\n            </button>\r\n        </div>\r\n        <div class=\"col-lg-3 col-sm-12\">\r\n            <button class=\"btn btn-secondary btn-block\" (click)=\"cancelar()\" type=\"button\" [disabled]=\"!hasDados\">\r\n                {{ 'buttons.cancelar' | translate }}\r\n            </button>\r\n        </div>\r\n        <div class=\"col-lg-3 col-sm-12\" *ngIf=\"service.disabledLaudo\">\r\n            <button class=\"btn btn-block btn-success\" (click)=\"geracao()\" type=\"button\"\r\n                [disabled]=\"!hasDados || !hasDadosSelecionados\">\r\n                {{ 'buttons.geracao' | translate }}\r\n            </button>\r\n        </div>\r\n        <div class=\"col-lg-3 col-sm-12\" *ngIf=\"!service.disabledLaudo && (hasDados || hasDadosSelecionados)\">\r\n            <button class=\"btn btn-block btn-info\" (click)=\"alterar()\" type=\"button\"\r\n                [disabled]=\"!hasDados || !hasDadosSelecionados\">\r\n                {{ 'buttons.alterar' | translate }}\r\n            </button>\r\n        </div>\r\n        <div class=\"col-lg-3 col-sm-12\" *ngIf=\"!service.disabledLaudo && (hasDados || hasDadosSelecionados)\">\r\n            <button class=\"btn btn-block btn-dark\" (click)=\"excluir()\" type=\"button\"\r\n                [disabled]=\"!hasDados || !hasDadosSelecionados\">\r\n                {{ 'buttons.excluir' | translate }}\r\n            </button>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-propriedades></app-propriedades>\r\n<app-classificao-produto-lote-filter (filtrar)=\"executaFiltro()\"></app-classificao-produto-lote-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/caract-tipica-refer.service.ts":
/*!***********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/caract-tipica-refer.service.ts ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: CaractTipicaReferService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CaractTipicaReferService", function() { return CaractTipicaReferService; });
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.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 CaractTipicaReferService = /** @class */ (function (_super) {
    __extends(CaractTipicaReferService, _super);
    function CaractTipicaReferService(http) {
        return _super.call(this, http, "cadastros/caractTipicaRefer") || this;
    }
    CaractTipicaReferService.prototype.getByCaractTipicaId = function (caractTipicaId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].service_url + "/api/v1/cadastros/caractTipicaRefer/getByCaractTipicaId/" + caractTipicaId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    CaractTipicaReferService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
    ]; };
    CaractTipicaReferService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
    ], CaractTipicaReferService);
    return CaractTipicaReferService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/classificao-produto-lote-campos-dinamicos.component.ts":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/classificao-produto-lote-campos-dinamicos.component.ts ***!
  \***********************************************************************************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteCamposDinamicosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteCamposDinamicosComponent", function() { return ClassificaoProdutoLoteCamposDinamicosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var _caract_tipica_refer_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./caract-tipica-refer.service */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/caract-tipica-refer.service.ts");
/* harmony import */ var app_pages_cadastro_material_caract_material_caract_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/material-caract/material-caract.model */ "./src/app/pages/cadastro/material-caract/material-caract.model.ts");
/* harmony import */ var app_pages_cadastro_material_caract_material_caract_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/material-caract/material-caract.service */ "./src/app/pages/cadastro/material-caract/material-caract.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 ClassificaoProdutoLoteCamposDinamicosComponent = /** @class */ (function () {
    function ClassificaoProdutoLoteCamposDinamicosComponent(caractTipicaReferService, materialCaractService) {
        this.caractTipicaReferService = caractTipicaReferService;
        this.materialCaractService = materialCaractService;
        this.complementoCampos = new app_pages_cadastro_material_caract_material_caract_model__WEBPACK_IMPORTED_MODULE_3__["MaterialCaract"]();
        this.touched = false;
        this.onChange = function (_) {
            /*Empty*/
        };
        this.onTouched = function () {
            /*Empty*/
        };
    }
    ClassificaoProdutoLoteCamposDinamicosComponent_1 = ClassificaoProdutoLoteCamposDinamicosComponent;
    Object.defineProperty(ClassificaoProdutoLoteCamposDinamicosComponent.prototype, "internalValue", {
        get: function () {
            return this._internalValue;
        },
        set: function (val) {
            if (val === undefined || val === null || val === "") {
                this._internalValue = "";
                this.onChange(undefined); // Value is rubbish, so don't send back to model propper
                return;
            }
            this._internalValue = val;
            this.onChange(this._internalValue); // Value is good!
        },
        enumerable: true,
        configurable: true
    });
    //////////////////////////////////
    // OnChanges interface
    //////////////////////////////////
    ClassificaoProdutoLoteCamposDinamicosComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.caractTipicaReferService
            .getByCaractTipicaId(this.campoDinamico.caractTipicaId)
            .subscribe(function (data) {
            _this.caractTipicaRefer = data;
            // buscando caracteristicas adicionais do material
            _this.materialCaractService
                .GetComplementoMaterial(_this.campoDinamico.materialId, _this.campoDinamico.caractTipicaId)
                .subscribe(function (compMat) {
                _this.complementoCampos = compMat;
            });
        });
    };
    //////////////////////////////////
    // ControlValueAccessor interface
    //////////////////////////////////
    ClassificaoProdutoLoteCamposDinamicosComponent.prototype.writeValue = function (value) {
        if (value === undefined || value === null) {
            this.internalValue = "";
            return;
        }
        this.internalValue = value;
    };
    ClassificaoProdutoLoteCamposDinamicosComponent.prototype.registerOnChange = function (fn) {
        this.onChange = fn;
    };
    ClassificaoProdutoLoteCamposDinamicosComponent.prototype.registerOnTouched = function (fn) {
        var self = this;
        this.onTouched = function (arg) {
            self.touched = true;
            fn(arg);
        };
    };
    var ClassificaoProdutoLoteCamposDinamicosComponent_1;
    ClassificaoProdutoLoteCamposDinamicosComponent.ctorParameters = function () { return [
        { type: _caract_tipica_refer_service__WEBPACK_IMPORTED_MODULE_2__["CaractTipicaReferService"] },
        { type: app_pages_cadastro_material_caract_material_caract_service__WEBPACK_IMPORTED_MODULE_4__["MaterialCaractService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ClassificaoProdutoLoteCamposDinamicosComponent.prototype, "campoDinamico", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ClassificaoProdutoLoteCamposDinamicosComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ClassificaoProdutoLoteCamposDinamicosComponent.prototype, "exibeLegenda", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], ClassificaoProdutoLoteCamposDinamicosComponent.prototype, "_internalValue", void 0);
    ClassificaoProdutoLoteCamposDinamicosComponent = ClassificaoProdutoLoteCamposDinamicosComponent_1 = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-classificao-produto-lote-campos-dinamicos",
            template: __importDefault(__webpack_require__(/*! raw-loader!./classificao-produto-lote-campos-dinamicos.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/classificao-produto-lote-campos-dinamicos.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            providers: [
                {
                    provide: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NG_VALUE_ACCESSOR"],
                    useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () { return ClassificaoProdutoLoteCamposDinamicosComponent_1; }),
                    multi: true
                }
            ]
        }),
        __metadata("design:paramtypes", [_caract_tipica_refer_service__WEBPACK_IMPORTED_MODULE_2__["CaractTipicaReferService"],
            app_pages_cadastro_material_caract_material_caract_service__WEBPACK_IMPORTED_MODULE_4__["MaterialCaractService"]])
    ], ClassificaoProdutoLoteCamposDinamicosComponent);
    return ClassificaoProdutoLoteCamposDinamicosComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-confirma/classificao-produto-lote-confirma.component.ts":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-confirma/classificao-produto-lote-confirma.component.ts ***!
  \*******************************************************************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteConfirmaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteConfirmaComponent", function() { return ClassificaoProdutoLoteConfirmaComponent; });
/* 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_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../classificao-produto-lote.model */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.model.ts");
/* harmony import */ var _classificao_produto_lote_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../classificao-produto-lote.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.constants.ts");
/* harmony import */ var _classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../classificao-produto-lote.service */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __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_11__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __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_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __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_15__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
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 ClassificaoProdutoLoteConfirmaComponent = /** @class */ (function (_super) {
    __extends(ClassificaoProdutoLoteConfirmaComponent, _super);
    function ClassificaoProdutoLoteConfirmaComponent(router, activatedRoute, funcoes, configuracao, message, service, permissoesUtils, loginService) {
        var _this = _super.call(this, new _classificao_produto_lote_constants__WEBPACK_IMPORTED_MODULE_6__["ClassificaoProdutoLoteConstants"](), funcoes) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.message = message;
        _this.service = service;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_5__["ClassificaoProdutoLoteDto"]();
        _this.dataClassificacao = new _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_5__["CliCotriClassificacaoDto"]();
        _this.constantes = new _classificao_produto_lote_constants__WEBPACK_IMPORTED_MODULE_6__["ClassificaoProdutoLoteConstants"]();
        _this.now = new Date();
        _this.classificacaoProdutoLote = [];
        _this.fichaTecnica = [];
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
        _this.mensagens = [];
        _this.pageRoute = "/especificos/cotriguacu/movimentos/classificaoProdutoLote";
        _this.target = _this.funcoes.getTargetLocation();
        return _this;
    }
    ClassificaoProdutoLoteConfirmaComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.fichaTecnica = [];
        this.permissoesUtils.validRotina(this.constantes.sisFormularioId, 3, function () {
            var obj = _this.activatedRoute.snapshot.paramMap.get("object");
            _this.urlObject = JSON.parse(atob(obj));
            if (!_this.urlObject) {
                _this.message.warning("titles.classificaoProdutoLote", "messages.nenhumRegistroEncontrado");
                _this.back();
            }
            _this.init();
            _this.inicioPeriodo = new Date(_this.urlObject.inicioPeriodo);
            _this.finalPeriodo = new Date(_this.urlObject.finalPeriodo);
            _this.data.laudoId = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(_this.urlObject.laudoId);
        }, function () { });
    };
    ClassificaoProdutoLoteConfirmaComponent.prototype.init = function () {
        var _this = this;
        this.service.getDadosClassificacaoLote().subscribe(function (resp) {
            if (!!resp) {
                _this.classificacaoProdutoLote = resp;
                _this.carregaFichaTecnica(_this.urlObject);
            }
            else {
                _this.message.warning("titles.classificaoProdutoLote", "messages.nenhumaAutorizacaoFoiSelecionadaFavorVerificar");
                _this.back();
            }
        });
    };
    ClassificaoProdutoLoteConfirmaComponent.prototype.carregaFichaTecnica = function (dadosFiltro) {
        var _this = this;
        this.regClassificacao = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(dadosFiltro.regClassificacao);
        this.materialId = app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(dadosFiltro.materialId);
        this.destinatarioIdCliente = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(dadosFiltro.destinatarioIdCliente);
        this.service.getFichaTecnica({
            regClassificacao: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(dadosFiltro.regClassificacao),
            materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(dadosFiltro.materialId),
            destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(dadosFiltro.destinatarioIdCliente)
        }).subscribe(function (resp) {
            if (!!resp) {
                _this.fichaTecnica = resp;
            }
            else {
                _this.message.warning("titles.classificaoProdutoLote", "messages.naoFoiCadastradaNenhumaCaracteristicaParaEsteProduto");
                _this.back();
            }
        });
    };
    Object.defineProperty(ClassificaoProdutoLoteConfirmaComponent.prototype, "hasDadosFichaTecnica", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.fichaTecnica);
        },
        enumerable: true,
        configurable: true
    });
    ClassificaoProdutoLoteConfirmaComponent.prototype.back = function () {
        this.service.limpaCamposFiltro();
        this.service.dados = [];
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    ClassificaoProdutoLoteConfirmaComponent.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:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            this.funcoes.backToTop();
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.podeGravarClassificacao({ laudoId: this.data.laudoId, regClassificacao: this.regClassificacao }).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.message.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.message.warning("titles.classificaoProdutoLote", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.dataClassificacao.laudoId = this.data.laudoId;
                            this.dataClassificacao.regClassificacao = this.regClassificacao;
                            this.dataClassificacao.destinatarioIdCliente = this.destinatarioIdCliente;
                            this.dataClassificacao.materialId = this.materialId;
                            this.dataClassificacao.dtInicio = this.inicioPeriodo;
                            this.dataClassificacao.dtFim = this.finalPeriodo;
                            this.dataClassificacao.fichaTecnica = this.fichaTecnica;
                            this.executeGravaClassificacao(this.dataClassificacao);
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ClassificaoProdutoLoteConfirmaComponent.prototype.executeGravaClassificacao = function (data) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
            var result;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.gravaClassificacao(data).toPromise()];
                    case 1:
                        result = _a.sent();
                        if (this.funcoesService.isNotUndefinedOrNull(result.validationResult)) {
                            this.mensagens = this.message.validationResult(result.validationResult);
                            if (result && !result.validationResult.isValid) {
                                this.message.warning("titles.classificaoProdutoLote", this.mensagens[0]);
                                return [2 /*return*/];
                            }
                            this.retRegClassificacao = result.retRegClassificacao;
                            this.classificaProdutoEmLoteId = result.classificaProdutoEmLoteId;
                            this.message.success("titles.classificaoProdutoLote", "messages.classificacaoGeradoComSucesso");
                            this.printRel();
                            this.back();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ClassificaoProdutoLoteConfirmaComponent.prototype.printRel = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                regClassificacao: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["NumberUtilsStaticService"].toNumber(_this.retRegClassificacao)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    ClassificaoProdutoLoteConfirmaComponent.prototype.select = function (item) {
        this.data = item;
    };
    Object.defineProperty(ClassificaoProdutoLoteConfirmaComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.classificacaoProdutoLote);
        },
        enumerable: true,
        configurable: true
    });
    ClassificaoProdutoLoteConfirmaComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_7__["ClassificaoProdutoLoteService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] }
    ]; };
    ClassificaoProdutoLoteConfirmaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-classificao-produto-lote-confirma",
            template: __importDefault(__webpack_require__(/*! raw-loader!./classificao-produto-lote-confirma.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-confirma/classificao-produto-lote-confirma.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_12__["ConfiguracaoFacade"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_7__["ClassificaoProdutoLoteService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"]])
    ], ClassificaoProdutoLoteConfirmaComponent);
    return ClassificaoProdutoLoteConfirmaComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-filter/classificao-produto-lote-filter.component.ts":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-filter/classificao-produto-lote-filter.component.ts ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteFilterComponent", function() { return ClassificaoProdutoLoteFilterComponent; });
/* harmony import */ var _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../classificao-produto-lote.model */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.model.ts");
/* harmony import */ var _classificao_produto_lote_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../classificao-produto-lote.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.constants.ts");
/* harmony import */ var _classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../classificao-produto-lote.service */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __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_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var ClassificaoProdutoLoteFilterComponent = /** @class */ (function () {
    function ClassificaoProdutoLoteFilterComponent(service, message, destinatarioService, materialService) {
        this.service = service;
        this.message = message;
        this.destinatarioService = destinatarioService;
        this.materialService = materialService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        this.constantes = new _classificao_produto_lote_constants__WEBPACK_IMPORTED_MODULE_6__["ClassificaoProdutoLoteConstants"]();
    }
    ClassificaoProdutoLoteFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_5__["ClassificaoProdutoLoteFilter"]();
        }
    };
    ClassificaoProdutoLoteFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_8__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.message.warning("titles.classificaoProdutoLote", "messages.dataInicioNaoPodeSerMaiorDataFim");
            return;
        }
        this.filtrar.emit();
        jQuery("#classificao-produto-lote-filter-dialog").modal("hide");
    };
    ClassificaoProdutoLoteFilterComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.message.warning("titles.classificaoProdutoLote", "messages.dataInicioNaoPodeSerMaiorDataFim");
        }
    };
    ClassificaoProdutoLoteFilterComponent.prototype.trataLaudo = function () {
        var _this = this;
        if (!!(this.service.filtro.laudoId) && (+this.service.filtro.laudoId > 0)) {
            this.service.getLaudoClassificacao({ laudoId: +this.service.filtro.laudoId }).subscribe(function (result) {
                if (!result.validationResult.isValid) {
                    var mensagens = _this.message.validationResult(result.validationResult);
                    mensagens.forEach(function (m) { return _this.message.warning("titles.classificaoProdutoLote", m); });
                    _this.service.limpaCamposFiltro();
                    return;
                }
                _this.service.filtro.regClassificacao = result.regClassificacao;
                _this.service.filtro.destinatarioIdCliente = result.destinatarioIdCliente;
                if (!!result.destinatarioIdCliente) {
                    _this.destinatarioService.getById(result.destinatarioIdCliente).subscribe(function (resp) {
                        _this.service.filtro.cliente = resp;
                    });
                }
                _this.service.filtro.materialId = result.materialId;
                if (!!_this.service.filtro.materialId) {
                    _this.materialService.getById(result.materialId).subscribe(function (resp) {
                        _this.service.filtro.material = resp;
                    });
                }
                _this.service.filtro.dataI = result.dtInicio;
                _this.service.filtro.dataF = result.dtFim;
                _this.service.filtro.laudoId = result.laudoId;
            });
        }
        else {
            this.service.limpaCamposFiltro();
        }
    };
    ClassificaoProdutoLoteFilterComponent.prototype.trataCliente = function (cliente) {
        this.service.filtro.cliente = !!cliente ? cliente : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_10__["Destinatario"]();
    };
    ClassificaoProdutoLoteFilterComponent.prototype.trataMaterial = function (material) {
        this.service.filtro.material = !!material ? material : new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_11__["Material"]();
    };
    ClassificaoProdutoLoteFilterComponent.ctorParameters = function () { return [
        { type: _classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_7__["ClassificaoProdutoLoteService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__["DestinatarioService"] },
        { type: _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"])(),
        __metadata("design:type", Object)
    ], ClassificaoProdutoLoteFilterComponent.prototype, "filtrar", void 0);
    ClassificaoProdutoLoteFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"])({
            selector: "app-classificao-produto-lote-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./classificao-produto-lote-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-filter/classificao-produto-lote-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_7__["ClassificaoProdutoLoteService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_1__["DestinatarioService"],
            _cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_0__["MaterialService"]])
    ], ClassificaoProdutoLoteFilterComponent);
    return ClassificaoProdutoLoteFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-index/classificao-produto-lote-index.component.scss":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-index/classificao-produto-lote-index.component.scss ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 18px;\n  height: 18px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\n/* Table */\n\ntable .col-right {\n  text-align: right;\n  white-space: nowrap;\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\n.tableFixHead thead th {\n  position: -webkit-sticky;\n  position: sticky;\n  top: 0;\n}\n\n/* Just common table stuff. Really. */\n\ntable {\n  border-collapse: collapse;\n  width: 100%;\n}\n\nth,\ntd {\n  padding: 5px 10px;\n  white-space: nowrap;\n}\n\nth {\n  background: #eee;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY290cmlndWFjdS9tb3ZpbWVudG9zL2NsYXNzaWZpY2FvLXByb2R1dG8tbG90ZS9jbGFzc2lmaWNhby1wcm9kdXRvLWxvdGUtaW5kZXgvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxlc3BlY2lmaWNvc1xcY290cmlndWFjdVxcbW92aW1lbnRvc1xcY2xhc3NpZmljYW8tcHJvZHV0by1sb3RlXFxjbGFzc2lmaWNhby1wcm9kdXRvLWxvdGUtaW5kZXhcXGNsYXNzaWZpY2FvLXByb2R1dG8tbG90ZS1pbmRleC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY290cmlndWFjdS9tb3ZpbWVudG9zL2NsYXNzaWZpY2FvLXByb2R1dG8tbG90ZS9jbGFzc2lmaWNhby1wcm9kdXRvLWxvdGUtaW5kZXgvY2xhc3NpZmljYW8tcHJvZHV0by1sb3RlLWluZGV4LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKOztBREVBLFVBQUE7O0FBR0k7RUFDRSxpQkFBQTtFQUNBLG1CQUFBO0FDRE47O0FES0U7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLGlCQUFBO0FDRko7O0FESUk7RUFDRSxlQUFBO0FDRk47O0FETUU7RUFDRSx3QkFBQTtFQUFBLGdCQUFBO0VBQ0EsTUFBQTtBQ0hKOztBRE1FLHFDQUFBOztBQUNBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0FDSEo7O0FETUU7O0VBRUUsaUJBQUE7RUFDQSxtQkFBQTtBQ0hKOztBRE1FO0VBQ0UsZ0JBQUE7QUNISiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NvdHJpZ3VhY3UvbW92aW1lbnRvcy9jbGFzc2lmaWNhby1wcm9kdXRvLWxvdGUvY2xhc3NpZmljYW8tcHJvZHV0by1sb3RlLWluZGV4L2NsYXNzaWZpY2FvLXByb2R1dG8tbG90ZS1pbmRleC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jaGsgaW5wdXQge1xyXG4gICAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmNoayBzcGFuIHtcclxuICAgIHdpZHRoOiAxOHB4O1xyXG4gICAgaGVpZ2h0OiAxOHB4O1xyXG4gICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xyXG4gICAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDE4cHg7XHJcbn1cclxuXHJcbnNwYW4ucmVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XHJcbn1cclxuXHJcbi8qIFRhYmxlICovXHJcblxyXG50YWJsZSB7XHJcbiAgICAuY29sLXJpZ2h0IHtcclxuICAgICAgdGV4dC1hbGlnbjogcmlnaHQ7XHJcbiAgICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XHJcbiAgICB9XHJcbiAgfVxyXG4gIFxyXG4gIC5jb2xUb2RvcyB7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XHJcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgbWFyZ2luLXRvcDogLTE2cHg7XHJcbiAgXHJcbiAgICBpbnB1dFt0eXBlPWNoZWNrYm94XSB7XHJcbiAgICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgIH1cclxuICB9XHJcbiAgXHJcbiAgLnRhYmxlRml4SGVhZCB0aGVhZCB0aCB7XHJcbiAgICBwb3NpdGlvbjogc3RpY2t5O1xyXG4gICAgdG9wOiAwO1xyXG4gIH1cclxuICBcclxuICAvKiBKdXN0IGNvbW1vbiB0YWJsZSBzdHVmZi4gUmVhbGx5LiAqL1xyXG4gIHRhYmxlIHtcclxuICAgIGJvcmRlci1jb2xsYXBzZTogY29sbGFwc2U7XHJcbiAgICB3aWR0aDogMTAwJTtcclxuICB9XHJcbiAgXHJcbiAgdGgsXHJcbiAgdGQge1xyXG4gICAgcGFkZGluZzogNXB4IDEwcHg7XHJcbiAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xyXG4gIH1cclxuICBcclxuICB0aCB7XHJcbiAgICBiYWNrZ3JvdW5kOiAjZWVlO1xyXG4gIH0iLCIuY2hrIGlucHV0IHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNoayBzcGFuIHtcbiAgd2lkdGg6IDE4cHg7XG4gIGhlaWdodDogMThweDtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XG4gIGJvcmRlci1yYWRpdXM6IDE4cHg7XG59XG5cbnNwYW4ucmVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcbn1cblxuLyogVGFibGUgKi9cbnRhYmxlIC5jb2wtcmlnaHQge1xuICB0ZXh0LWFsaWduOiByaWdodDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbn1cblxuLmNvbFRvZG9zIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIG1hcmdpbi10b3A6IC0xNnB4O1xufVxuLmNvbFRvZG9zIGlucHV0W3R5cGU9Y2hlY2tib3hdIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4udGFibGVGaXhIZWFkIHRoZWFkIHRoIHtcbiAgcG9zaXRpb246IHN0aWNreTtcbiAgdG9wOiAwO1xufVxuXG4vKiBKdXN0IGNvbW1vbiB0YWJsZSBzdHVmZi4gUmVhbGx5LiAqL1xudGFibGUge1xuICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlO1xuICB3aWR0aDogMTAwJTtcbn1cblxudGgsXG50ZCB7XG4gIHBhZGRpbmc6IDVweCAxMHB4O1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xufVxuXG50aCB7XG4gIGJhY2tncm91bmQ6ICNlZWU7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-index/classificao-produto-lote-index.component.ts":
/*!*************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-index/classificao-produto-lote-index.component.ts ***!
  \*************************************************************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteIndexComponent", function() { return ClassificaoProdutoLoteIndexComponent; });
/* 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 app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../classificao-produto-lote.model */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.model.ts");
/* harmony import */ var _classificao_produto_lote_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../classificao-produto-lote.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.constants.ts");
/* harmony import */ var _classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../classificao-produto-lote.service */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __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_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__ = __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_13__ = __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_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/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 __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 ClassificaoProdutoLoteIndexComponent = /** @class */ (function (_super) {
    __extends(ClassificaoProdutoLoteIndexComponent, _super);
    function ClassificaoProdutoLoteIndexComponent(router, datatablesService, funcoesService, messageService, permissoesUtils, service, loginService) {
        var _this = _super.call(this, new _classificao_produto_lote_constants__WEBPACK_IMPORTED_MODULE_9__["ClassificaoProdutoLoteConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.data = new _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_8__["ClassificaoProdutoLoteDto"]();
        _this.constantes = new _classificao_produto_lote_constants__WEBPACK_IMPORTED_MODULE_9__["ClassificaoProdutoLoteConstants"]();
        _this.btnTodos = false;
        _this.pageRoute = "/especificos/cotriguacu/movimentos/classificaoProdutoLote";
        _this.title = "titles.classificaoProdutoLote";
        _this.target = _this.funcoesService.getTargetLocation();
        _this.refresh = function () {
            _this.message = '';
            _this.service.getByFiltro(_this.service.filtro).subscribe(function (resp) {
                _this.service.dados = resp;
                if (resp.length > 0) {
                    if (resp[0].validationResult != null && !resp[0].validationResult.isValid) {
                        _this.message = resp[0].validationResult.erros[0].message;
                    }
                    if (!resp[0].isValid) {
                        if (_this.message) {
                            _this.messageService.error(_this.title, _this.message);
                            return;
                        }
                    }
                    if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isPositive(_this.service.filtro.regClassificacao)) {
                        var checked_1 = true;
                        _this.btnTodos = checked_1;
                        _this.service.dados.forEach(function (obj) { return __awaiter(_this, void 0, void 0, function () {
                            return __generator(this, function (_a) {
                                obj.flag = checked_1;
                                obj.flagGera = checked_1 ? 'S' : 'N';
                                return [2 /*return*/];
                            });
                        }); });
                    }
                    _this.service.dados.forEach(function (val) {
                        if (val.flagGera === 'S') {
                            val.flag = true;
                        }
                        else {
                            val.flag = false;
                        }
                    });
                    _this.btnTodos = _this.hasAoSelecionada && _this.service.dados.filter(function (c) { return c.flag; }).length == _this.service.dados.length;
                }
            });
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        if (!_this.service.filtro) {
            _this.service.filtro = new _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_8__["ClassificaoProdutoLoteFilter"]();
        }
        return _this;
    }
    ClassificaoProdutoLoteIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        var base = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.service.dados = [];
            if (!base.service.dados || base.service.dados.length === 0) {
                if (!_this.loginService.isTokenExpired()) {
                    _this.service.filtro = new _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_8__["ClassificaoProdutoLoteFilter"]();
                    jQuery("#classificao-produto-lote-filter-dialog").modal("show");
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ClassificaoProdutoLoteIndexComponent.prototype.filtrar = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_16__["EventEmitterService"].get("formError").emit(null);
        jQuery("#classificao-produto-lote-filter-dialog").modal("show");
    };
    ClassificaoProdutoLoteIndexComponent.prototype.executaFiltro = function () {
        this.buttonDisabled('listaIndex', 'filtrar', this.hasDados);
        this.refresh();
    };
    ClassificaoProdutoLoteIndexComponent.prototype.select = function (item) {
        this.data = item;
    };
    ClassificaoProdutoLoteIndexComponent.prototype.rowSelect = function (item) {
        return __awaiter(this, void 0, void 0, function () {
            var checked, validationResult, mensagens;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isPositive(this.service.filtro.regClassificacao)) {
                            this.messageService.warning(this.title, "messages.naoPermitidoDesmarcarAutorizacoesNaAlteracaoDeLaudo");
                            return [2 /*return*/];
                        }
                        checked = !item.flag;
                        this.data = item;
                        this.data.flag = checked;
                        this.data.flagGera = checked ? 'S' : 'N';
                        return [4 /*yield*/, this.service.setClassificacaoProduto(this.data).toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.classificaoProdutoLote", m); });
                            return [2 /*return*/];
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    ClassificaoProdutoLoteIndexComponent.prototype.selectAll = function (checked) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, 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:
                        this.btnTodos = checked;
                        this.service.dados.forEach(function (obj) { return __awaiter(_this, void 0, void 0, function () {
                            return __generator(this, function (_a) {
                                obj.flag = checked;
                                obj.flagGera = checked ? 'S' : 'N';
                                return [2 /*return*/];
                            });
                        }); });
                        return [4 /*yield*/, this.service.setAllClassificacaoProduto().toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.classificaoProdutoLote", m); });
                            return [2 /*return*/];
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ClassificaoProdutoLoteIndexComponent.prototype.cancelar = function () {
        this.buttonDisabled('listaIndex', 'filtrar', false);
        this.service.dados = [];
        this.service.limpaCamposFiltro();
        this.filtrar();
    };
    ClassificaoProdutoLoteIndexComponent.prototype.geracao = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, 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:
                        if (!this.hasDadosSelecionados) {
                            this.messageService.warning(this.title, "messages.nenhumaAutorizacaoFoiSelecionadaFavorVerificar");
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.podeGerar().toPromise()];
                    case 1:
                        validationResult = _a.sent();
                        if (!validationResult.isValid) {
                            mensagens = this.messageService.validationResult(validationResult);
                            mensagens.forEach(function (m) { return _this.messageService.warning("titles.classificaoProdutoLote", m); });
                            return [2 /*return*/];
                        }
                        else {
                            this.definePeriodo();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    ClassificaoProdutoLoteIndexComponent.prototype.definePeriodo = function () {
        var _this = this;
        this.service.definePeriodo().subscribe(function (resp) {
            if (_this.funcoesService.isNotUndefinedOrNull(resp.msgErro)) {
                _this.messageService.error("titles.classificaoProdutoLote", resp.msgErro);
            }
            else {
                var object = btoa(JSON.stringify({
                    inicioPeriodo: resp.inicioPeriodo,
                    finalPeriodo: resp.finalPeriodo,
                    regClassificacao: _this.service.filtro.regClassificacao,
                    materialId: _this.service.filtro.materialId,
                    destinatarioIdCliente: _this.service.filtro.destinatarioIdCliente,
                    laudoId: _this.service.filtro.laudoId
                }));
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/confirmaClassficacao/" + object]);
            }
        });
    };
    ClassificaoProdutoLoteIndexComponent.prototype.alterar = function () {
        this.geracao();
    };
    ClassificaoProdutoLoteIndexComponent.prototype.excluir = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isPositive(this.service.filtro.regClassificacao)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
                _this.messageService.confirm("titles.classificaoProdutoLote", "messages.confirmaExclusaoClassificacao", null, 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.removeClassificacao({ regClassificacao: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(this.service.filtro.regClassificacao) }).toPromise()];
                            case 1:
                                validationResult = _a.sent();
                                if (!validationResult.isValid) {
                                    mensagens = this.messageService.validationResult(validationResult);
                                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.classificaoProdutoLote", m); });
                                    return [2 /*return*/];
                                }
                                else {
                                    this.service.dados = [];
                                    this.service.limpaCamposFiltro();
                                    this.filtrar();
                                }
                                return [2 /*return*/];
                        }
                    });
                }); });
            });
        }
    };
    ClassificaoProdutoLoteIndexComponent.prototype.imprimir = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isPositive(this.service.filtro.regClassificacao)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
                _this.constantes.paramRelatorio = {
                    filialId: _this.loginService.getLogin().filialId,
                    regClassificacao: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].toNumber(_this.service.filtro.regClassificacao)
                };
                _super.prototype.print.call(_this, null, true);
            });
        }
    };
    Object.defineProperty(ClassificaoProdutoLoteIndexComponent.prototype, "hasDados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.service.dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ClassificaoProdutoLoteIndexComponent.prototype, "hasDadosSelecionados", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.service.dados.filter(function (c) { return c.flagGera === 'S'; }));
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ClassificaoProdutoLoteIndexComponent.prototype, "hasAoSelecionada", {
        get: function () {
            if (!this.data)
                return false;
            if (!this.data.autorizacao)
                return false;
            return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].isPositive(this.data.autorizacao);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ClassificaoProdutoLoteIndexComponent.prototype, "dados", {
        get: function () {
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            return this.table.getPage(this.dadosFilter);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ClassificaoProdutoLoteIndexComponent.prototype, "dadosFilter", {
        get: function () {
            var _this = this;
            return this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.autorizacao.toString(), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.cadastroPlacaId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.loteId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtSaida), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.docto.toString(), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.serieId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dataDocumento), _this.table.filtro);
            });
        },
        enumerable: true,
        configurable: true
    });
    ClassificaoProdutoLoteIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_10__["ClassificaoProdutoLoteService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__["TableComponent"])
    ], ClassificaoProdutoLoteIndexComponent.prototype, "table", void 0);
    ClassificaoProdutoLoteIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-classificao-produto-lote-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./classificao-produto-lote-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-index/classificao-produto-lote-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./classificao-produto-lote-index.component.scss */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-index/classificao-produto-lote-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _classificao_produto_lote_service__WEBPACK_IMPORTED_MODULE_10__["ClassificaoProdutoLoteService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], ClassificaoProdutoLoteIndexComponent);
    return ClassificaoProdutoLoteIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.constants.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.constants.ts ***!
  \************************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteConstants", function() { return ClassificaoProdutoLoteConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ClassificaoProdutoLoteConstants = /** @class */ (function () {
    function ClassificaoProdutoLoteConstants() {
        this.sisFormularioId = 375003;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.geracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.selecionarTodos" },
        ];
        this.nomeForm = "titles.classificaoProdutoLote";
        this.reportId = "COT0021";
        this.reportTitulo = { "titulo": "Resultado de Análise", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", 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' },
        ];
        this.listaConfirmarClassificacao = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [];
    }
    return ClassificaoProdutoLoteConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.model.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.model.ts ***!
  \********************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteFilter, ClassificaoProdutoLoteDto, CliCotriClassificacaoDto, ClassificaoProdutoLoteFichaTecnicaDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteFilter", function() { return ClassificaoProdutoLoteFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteDto", function() { return ClassificaoProdutoLoteDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CliCotriClassificacaoDto", function() { return CliCotriClassificacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteFichaTecnicaDto", function() { return ClassificaoProdutoLoteFichaTecnicaDto; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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 ClassificaoProdutoLoteFilter = /** @class */ (function () {
    function ClassificaoProdutoLoteFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].addDays(new Date(), -3);
        this.dataF = new Date();
        this.destinatarioIdCliente = 0;
        this.materialId = "";
        this.regClassificacao = 0;
        this.laudoId = "";
    }
    return ClassificaoProdutoLoteFilter;
}());

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

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

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



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.module.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.module.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteModule", function() { return ClassificaoProdutoLoteModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _classificao_produto_lote_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classificao-produto-lote.routing.module */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.routing.module.ts");
/* harmony import */ var _classificao_produto_lote_index_classificao_produto_lote_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./classificao-produto-lote-index/classificao-produto-lote-index.component */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-index/classificao-produto-lote-index.component.ts");
/* harmony import */ var _classificao_produto_lote_filter_classificao_produto_lote_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./classificao-produto-lote-filter/classificao-produto-lote-filter.component */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-filter/classificao-produto-lote-filter.component.ts");
/* harmony import */ var _classificao_produto_lote_confirma_classificao_produto_lote_confirma_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./classificao-produto-lote-confirma/classificao-produto-lote-confirma.component */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-confirma/classificao-produto-lote-confirma.component.ts");
/* harmony import */ var _classificao_produto_lote_campos_dinamicos_classificao_produto_lote_campos_dinamicos_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./classificao-produto-lote-campos-dinamicos/classificao-produto-lote-campos-dinamicos.component */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-campos-dinamicos/classificao-produto-lote-campos-dinamicos.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 ClassificaoProdutoLoteModule = /** @class */ (function () {
    function ClassificaoProdutoLoteModule() {
    }
    ClassificaoProdutoLoteModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _classificao_produto_lote_routing_module__WEBPACK_IMPORTED_MODULE_2__["ClassificaoProdutoLoteRoutingModule"]],
            declarations: [_classificao_produto_lote_index_classificao_produto_lote_index_component__WEBPACK_IMPORTED_MODULE_3__["ClassificaoProdutoLoteIndexComponent"],
                _classificao_produto_lote_filter_classificao_produto_lote_filter_component__WEBPACK_IMPORTED_MODULE_4__["ClassificaoProdutoLoteFilterComponent"],
                _classificao_produto_lote_confirma_classificao_produto_lote_confirma_component__WEBPACK_IMPORTED_MODULE_5__["ClassificaoProdutoLoteConfirmaComponent"],
                _classificao_produto_lote_campos_dinamicos_classificao_produto_lote_campos_dinamicos_component__WEBPACK_IMPORTED_MODULE_6__["ClassificaoProdutoLoteCamposDinamicosComponent"]],
            exports: [_classificao_produto_lote_campos_dinamicos_classificao_produto_lote_campos_dinamicos_component__WEBPACK_IMPORTED_MODULE_6__["ClassificaoProdutoLoteCamposDinamicosComponent"]]
        })
    ], ClassificaoProdutoLoteModule);
    return ClassificaoProdutoLoteModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.routing.module.ts":
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.routing.module.ts ***!
  \*****************************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteRoutingModule", function() { return ClassificaoProdutoLoteRoutingModule; });
/* 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 _classificao_produto_lote_index_classificao_produto_lote_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classificao-produto-lote-index/classificao-produto-lote-index.component */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-index/classificao-produto-lote-index.component.ts");
/* harmony import */ var _classificao_produto_lote_confirma_classificao_produto_lote_confirma_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./classificao-produto-lote-confirma/classificao-produto-lote-confirma.component */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote-confirma/classificao-produto-lote-confirma.component.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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: _classificao_produto_lote_index_classificao_produto_lote_index_component__WEBPACK_IMPORTED_MODULE_2__["ClassificaoProdutoLoteIndexComponent"],
        data: { breadcrumb: "classificaoProdutoLote" }
    },
    {
        path: "confirmaClassficacao/:object",
        component: _classificao_produto_lote_confirma_classificao_produto_lote_confirma_component__WEBPACK_IMPORTED_MODULE_3__["ClassificaoProdutoLoteConfirmaComponent"],
        data: {
            breadcrumb: "classificaoProdutoLote",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create }
        }
    }
];
var ClassificaoProdutoLoteRoutingModule = /** @class */ (function () {
    function ClassificaoProdutoLoteRoutingModule() {
    }
    ClassificaoProdutoLoteRoutingModule = __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"]]
        })
    ], ClassificaoProdutoLoteRoutingModule);
    return ClassificaoProdutoLoteRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.service.ts":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.service.ts ***!
  \**********************************************************************************************************************/
/*! exports provided: ClassificaoProdutoLoteService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassificaoProdutoLoteService", function() { return ClassificaoProdutoLoteService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./classificao-produto-lote.model */ "./src/app/pages/especificos/cotriguacu/movimentos/classificao-produto-lote/classificao-produto-lote.model.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __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 __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 ClassificaoProdutoLoteService = /** @class */ (function () {
    function ClassificaoProdutoLoteService(http) {
        this.http = http;
        this.filtro = new _classificao_produto_lote_model__WEBPACK_IMPORTED_MODULE_3__["ClassificaoProdutoLoteFilter"]();
    }
    ClassificaoProdutoLoteService.prototype.limpaCamposFiltro = function () {
        this.filtro.regClassificacao = 0;
        this.filtro.destinatarioIdCliente = 0;
        this.filtro.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_6__["Destinatario"]();
        this.filtro.materialId = "";
        this.filtro.material = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_7__["Material"]();
        this.filtro.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].addDays(new Date(), -3);
        this.filtro.dataF = new Date();
        this.filtro.laudoId = "";
    };
    Object.defineProperty(ClassificaoProdutoLoteService.prototype, "disabledLaudo", {
        get: function () {
            return !this.filtro.laudoId;
        },
        enumerable: true,
        configurable: true
    });
    ClassificaoProdutoLoteService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/filter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.getLaudoClassificacao = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/getLaudoClassificacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.setClassificacaoProduto = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/setClassificacaoProduto", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.setAllClassificacaoProduto = function () {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/setAllClassificacaoProduto", null)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.podeGerar = function () {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/podeGerar", null)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.definePeriodo = function () {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/definePeriodo", null)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.getDadosClassificacaoLote = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/getDadosClassificacaoLote")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.getFichaTecnica = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/getFichaTecnica", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.podeGravarClassificacao = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/podeGravarClassificacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.gravaClassificacao = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/gravaClassificacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.prototype.removeClassificacao = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cotriguacu/classificaoProdutoLote/removeClassificacao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    ClassificaoProdutoLoteService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ClassificaoProdutoLoteService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ClassificaoProdutoLoteService);
    return ClassificaoProdutoLoteService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cotriguacu-movimentos-classificao-produto-lote-classificao-produto-lote-module.js.map