(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-granel-controle-consultas-perdas-sobras-consultas-perdas-sobras-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-filter/consultas-perdas-sobras-filter.component.html":
/*!**********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-filter/consultas-perdas-sobras-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=\"consultas-perdas-sobras-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.consultasPerdasSobras' | translate }}</h6>\n            </div>\n            <div class=\"modal-body\">\n                <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                            <div class=\"col-lg-12 col-md-12\">\n                                <div class=\"row\">\n                                    <div class=\"col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodoDe\" class=\"required\">{{ 'labels.periodoDe' | translate\n                                                }}</label>\n                                            <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                                [(ngModel)]=\"service.filtro.dataI\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ate\" class=\"required\">{{ 'labels.ate' | translate }}</label>\n                                            <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filtro.dataF\">\n                                            </app-data>\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.codDest\" showInscricao=\"false\"\n                                                showCgcCpf=\"false\" required=\"true\">\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=\"material\"\n                                                modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\"\n                                                (outModel)=\"trataMaterial($event)\" required=\"true\">\n                                            </app-pesquisa-material>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"modal-footer\">\n                                <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                                </button>\n                                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\"\n                                    (click)=\"sair()\">Sair</button>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-index.component.html":
/*!********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-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\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-validacoes></app-validacoes>\n            <div class=\"tab-content top\">\n                <div class=\"tab-pane active show\" id=\"ge\">\n                    <div class=\"clearfix\">\n                        <ul class=\"nav nav-tabs \">\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link active show\" data-toggle=\"tab\" (click)=\"abas('d')\"\n                                    href=\"#detalhamento\">{{\"labels.detalhamento\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abas('m')\"\n                                    href=\"#mediaPeriodo\">{{\"labels.mediaPeriodo\" | translate}}</a>\n                            </li>\n                        </ul>\n                    </div>\n                    <div class=\"tab-content top\">\n                        <div class=\"tab-pane active show pl-0 pr-0 mt-3\" id=\"detalhamento\">\n                            <app-table>\n                                <div class=\"table-responsive\">\n                                    <table id=\"maintable\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                        <thead>\n                                            <tr>\n                                                <th style=\"white-space: nowrap;\">{{ 'labels.cliente' | translate }}</th>\n                                                <th style=\"white-space: nowrap;\">{{ 'labels.produto' | translate }}</th>\n                                                <th style=\"white-space: nowrap;\">{{ 'labels.data' | translate }}</th>\n                                                <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.estoqueInicial' | translate }}</th>\n                                                <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.entradaNF' | translate }}</th>\n                                                <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.entradaOut' | translate }}</th>\n                                                <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.saidaNF' | translate }}</th>\n                                                <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.saidaOut' | translate }}</th>\n                                                <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.perdasSobras' | translate }}</th>\n                                            </tr>\n                                        </thead>\n                                        <tbody>\n                                            <tr *ngFor=\"let t of dados; index as i\"\n                                                [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                                                <td>{{ t.cliente }}</td>\n                                                <td>{{ t.produto }}</td>\n                                                <td>{{ t.data | date: 'dd/MM/yyyy' }}</td>\n                                                <td style=\"text-align: right;\">{{ t.estoqueInicial | formatCurrency: 0 }}</td>\n                                                <td style=\"text-align: right;\">{{ t.entradaNF | formatCurrency: 0 }}</td>\n                                                <td style=\"text-align: right;\">{{ t.entradaOut | formatCurrency: 0 }}</td>\n                                                <td style=\"text-align: right;\">{{ t.saidaNF | formatCurrency: 0 }}</td>\n                                                <td style=\"text-align: right;\">{{ t.saidaOut | formatCurrency: 0 }}</td>\n                                                <td style=\"text-align: right;\">{{ t.psDia | formatCurrency: 0 }}</td>\n                                            </tr>\n                                            <tr *ngIf=\"!hasDados\">\n                                                <th colspan=\"34\" style=\"text-align: center\">\n                                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                                </th>\n                                            </tr>\n                                        </tbody>\n                                    </table>            \n                                </div>\n                            </app-table>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"mediaPeriodo\">\n                            <app-consultas-perdas-sobras-media></app-consultas-perdas-sobras-media>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-consultas-perdas-sobras-filter (filtrar)=\"executaFiltro($event)\"></app-consultas-perdas-sobras-filter>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.component.html":
/*!********************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.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-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"secuntable\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th style=\"white-space: nowrap;\">{{ 'labels.cliente' | translate }}</th>\n                    <th style=\"white-space: nowrap;\">{{ 'labels.produto' | translate }}</th>\n                    <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.perdasSobras'\n                        |\n                        translate }}\n                    </th>\n                    <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.saidaNF' |\n                        translate\n                        }}</th>\n                    <th style=\"text-align: right; white-space: nowrap;\">{{ 'labels.media' |\n                        translate }}\n                    </th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dadosMedia; index as i\"\n                    [ngClass]=\"{'info': t == dataMedia && i == currentIndex ? true : false}\">\n                    <td>{{ t.cliente }}</td>\n                    <td>{{ t.produto }}</td>\n                    <td style=\"text-align: right;\">{{ t.perdasSobras | formatCurrency: 0 }}</td>\n                    <td style=\"text-align: right;\">{{ t.saidaNF | formatCurrency: 0 }}</td>\n                    <td style=\"text-align: right;\">{{ t.media }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosMedia\">\n                    <th colspan=\"34\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n<div class=\"clearfix\">&nbsp;</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("div.container-tree {\n  /*height: 100px;\n  overflow-y: auto;\n  overflow-x: hidden*/\n}\n\ndiv.treeview-container.ng-star-inserted {\n  /*overflow-y: hidden;*/\n}\n\n.custom-slider .ng5-slider .ng5-slider-bar {\n  background: #7874af;\n  height: 2px;\n}\n\n.custom-slider .ng5-slider .ng5-slider-selection {\n  background: #bd7d05;\n}\n\n.custom-slider .ng5-slider .ng5-slider-pointer {\n  width: 8px;\n  height: 16px;\n  top: auto;\n  /* to remove the default positioning */\n  bottom: 0;\n  background-color: #333;\n  border-top-left-radius: 3px;\n  border-top-right-radius: 3px;\n}\n\n.custom-slider .ng5-slider .ng5-slider-pointer:after {\n  display: none;\n}\n\n.custom-slider .ng5-slider .ng5-slider-bubble {\n  bottom: 14px;\n}\n\n.custom-slider .ng5-slider .ng5-slider-limit {\n  font-weight: bold;\n  color: #827eb5;\n}\n\n.custom-slider .ng5-slider .ng5-slider-tick {\n  width: 1px;\n  height: 10px;\n  margin-left: 4px;\n  border-radius: 0;\n  background: #827eb5;\n  top: -1px;\n}\n\n.custom-slider .ng5-slider .ng5-slider-tick.ng5-slider-selected {\n  background: #e49607;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-filter/consultas-perdas-sobras-filter.component.ts":
/*!******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-filter/consultas-perdas-sobras-filter.component.ts ***!
  \******************************************************************************************************************************************************/
/*! exports provided: ConsultasPerdasSobrasFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasFilterComponent", function() { return ConsultasPerdasSobrasFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../consultas-perdas-sobras.service */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.service.ts");
/* harmony import */ var _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../consultas-perdas-sobras.model */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.model.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_pages_admin_corporate_sis_mensagem_sis_mensagem_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/admin/corporate/sis-mensagem/sis-mensagem.service */ "./src/app/pages/admin/corporate/sis-mensagem/sis-mensagem.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
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 ConsultasPerdasSobrasFilterComponent = /** @class */ (function () {
    function ConsultasPerdasSobrasFilterComponent(service, message, sisMensagemService) {
        this.service = service;
        this.message = message;
        this.sisMensagemService = sisMensagemService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.outSair = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.triggerFocus = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.options = {
            floor: 0,
            ceil: 60,
            showTicks: true,
            step: 10
        };
    }
    ConsultasPerdasSobrasFilterComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.service.filtro) {
                    this.service.filtro = new _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_2__["ConsultasPerdasSobrasFilter"]();
                }
                this.value = 0;
                this.minValue = 0;
                this.maxValue = 60;
                this.triggerFocus.emit(0);
                return [2 /*return*/];
            });
        });
    };
    ConsultasPerdasSobrasFilterComponent.prototype.onSubmit = function (form) {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI)) {
            this.message.warning('titles.consultasPerdasSobras', 'messages.dataDeMaiordataAte');
            return;
        }
        if (!form.invalid) {
            this.filtrar.emit(this.service.filtro);
            jQuery("#consultas-perdas-sobras-filter").modal("hide");
        }
    };
    ConsultasPerdasSobrasFilterComponent.prototype.trataMaterial = function (material) {
        this.service.filtro.material = material;
    };
    ConsultasPerdasSobrasFilterComponent.prototype.sair = function () {
        this.outSair.emit();
    };
    ConsultasPerdasSobrasFilterComponent.ctorParameters = function () { return [
        { type: _consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_1__["ConsultasPerdasSobrasService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_pages_admin_corporate_sis_mensagem_sis_mensagem_service__WEBPACK_IMPORTED_MODULE_4__["SisMensagemService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConsultasPerdasSobrasFilterComponent.prototype, "filtrar", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConsultasPerdasSobrasFilterComponent.prototype, "outSair", void 0);
    ConsultasPerdasSobrasFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-consultas-perdas-sobras-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./consultas-perdas-sobras-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-filter/consultas-perdas-sobras-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consultas-perdas-sobras-filter.component.scss */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-filter/consultas-perdas-sobras-filter.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_1__["ConsultasPerdasSobrasService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_pages_admin_corporate_sis_mensagem_sis_mensagem_service__WEBPACK_IMPORTED_MODULE_4__["SisMensagemService"]])
    ], ConsultasPerdasSobrasFilterComponent);
    return ConsultasPerdasSobrasFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-index.component.scss":
/*!******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-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"] = ("@charset \"UTF-8\";\nsection#box {\n  --width-container: 80;\n}\nsection#box div.contain-box {\n  width: calc(var(--width-container) * 1%);\n}\n.timerbar {\n  background: rgba(0, 0, 0, 0.25);\n  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);\n  --progress: 0;\n}\n.timerbar-bar {\n  height: 5px;\n  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));\n  transition: 0.4s linear;\n  transition-property: width, background-color;\n}\n.timerbar-moved .timerbar-bar {\n  width: calc(var(--progress) * 1%);\n  background-color: #EF476F;\n  -webkit-animation: timerbarAnimation 6s;\n          animation: timerbarAnimation 6s;\n}\n@-webkit-keyframes timerbarAnimation {\n  0% {\n    width: 5%;\n    background-color: #F9BCCA;\n  }\n  50% {\n    width: 50%;\n    background-color: #e3533a;\n  }\n  100% {\n    width: 100%;\n    background-color: #EF476F;\n  }\n}\n@keyframes timerbarAnimation {\n  0% {\n    width: 5%;\n    background-color: #F9BCCA;\n  }\n  50% {\n    width: 50%;\n    background-color: #e3533a;\n  }\n  100% {\n    width: 100%;\n    background-color: #EF476F;\n  }\n}\nth,\ntd {\n  text-wrap: nowrap;\n}\n.rowRed {\n  color: #c03;\n}\n.rowBlue {\n  color: #0000CC;\n}\n.rowGreen {\n  color: #00cc4e;\n}\n.rowOrange {\n  color: #ffa500;\n}\n.rowPurple {\n  color: #df13df;\n}\n/* Gera um quadrado responsivo. */\ndiv.item div.square {\n  width: 15px;\n  height: 0;\n  /* A mágica está aqui */\n  padding-bottom: 15px;\n  /* ... e está aqui */\n  margin: 1%;\n  float: left;\n  position: relative;\n}\n.legenda {\n  display: flex;\n  justify-content: space-between;\n  margin-bottom: 5px;\n}\n.legenda .item {\n  width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-index.component.ts":
/*!****************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-index.component.ts ***!
  \****************************************************************************************************************************************************/
/*! exports provided: ConsultasPerdasSobrasIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasIndexComponent", function() { return ConsultasPerdasSobrasIndexComponent; });
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* 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 _consultas_perdas_sobras_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../consultas-perdas-sobras.constants */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.constants.ts");
/* harmony import */ var _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../consultas-perdas-sobras.model */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.model.ts");
/* harmony import */ var _consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../consultas-perdas-sobras.service */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.service.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");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__ = __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_16__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _consultas_perdas_sobras_media_consultas_perdas_sobras_media_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../consultas-perdas-sobras-media/consultas-perdas-sobras-media.component */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.component.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 ConsultasPerdasSobrasIndexComponent = /** @class */ (function (_super) {
    __extends(ConsultasPerdasSobrasIndexComponent, _super);
    function ConsultasPerdasSobrasIndexComponent(router, service, datatablesService, funcoesService, messageService, configuracao, permissoesUtils, loginService) {
        var _this = _super.call(this, new _consultas_perdas_sobras_constants__WEBPACK_IMPORTED_MODULE_5__["ConsultasPerdasSobrasConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.constantes = new _consultas_perdas_sobras_constants__WEBPACK_IMPORTED_MODULE_5__["ConsultasPerdasSobrasConstants"]();
        _this.data = new _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_6__["ConsultasPerdasSobras"]();
        _this.detalhamento = true;
        _this.mediaPeriodo = false;
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.service.getDados(this.service.filtro).subscribe(function (resp) {
                    _this.service.dados = resp;
                });
                this.mediaComponent.getDados();
                this.service.filtro.filialId = this.loginService.getLogin().filialId;
                return [2 /*return*/];
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConsultasPerdasSobrasIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig({
            codRotina: this.constantes.sisFormularioId,
            configs: this.constantes.configuracoes
        });
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.data = new _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_6__["ConsultasPerdasSobras"]();
                    _this.service.filtro = new _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_6__["ConsultasPerdasSobrasFilter"]();
                    _this.filtrar();
                    _this.service.filtro.filialId = _this.loginService.getLogin().filialId;
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ConsultasPerdasSobrasIndexComponent.prototype.abas = function (tipo) {
        if (tipo === 'd') {
            this.detalhamento = true;
            this.mediaPeriodo = false;
        }
        else if (tipo === 'm') {
            this.detalhamento = false;
            this.mediaPeriodo = true;
        }
    };
    Object.defineProperty(ConsultasPerdasSobrasIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            var dados = this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.produto, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].convertDateToDateStr(v.data), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.estoqueInicial, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.entradaNF, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.entradaOut, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.saidaNF, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.saidaOut, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.psDia, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConsultasPerdasSobrasIndexComponent.prototype, "hasDados", {
        get: function () {
            if (!this.service.dados)
                return false;
            return this.service.dados && this.service.dados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    ConsultasPerdasSobrasIndexComponent.prototype.filtrar = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(null);
        jQuery("#consultas-perdas-sobras-filter").modal("show");
    };
    ConsultasPerdasSobrasIndexComponent.prototype.executaFiltro = function (event) {
        this.service.filtro = event;
        this.refresh();
    };
    ConsultasPerdasSobrasIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            if (_this.detalhamento === true && _this.mediaPeriodo === false) {
                _this.constantes.reportId = 'GRN0008';
            }
            else if (_this.detalhamento === false && _this.mediaPeriodo === true) {
                _this.constantes.reportId = 'GRN0008-1';
            }
            else {
                return;
            }
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                dataI: _this.service.filtro.dataI,
                dataF: _this.service.filtro.dataF,
                codDest: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(_this.service.filtro.codDest),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(_this.service.filtro.materialId)
            };
            if (_this.constantes.reportId === 'GRN0008' || _this.constantes.reportId === 'GRN0008-1') {
                _super.prototype.print.call(_this, null, true);
            }
        });
    };
    ConsultasPerdasSobrasIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ConsultasPerdasSobrasIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_7__["ConsultasPerdasSobrasService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_16__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__["TableComponent"])
    ], ConsultasPerdasSobrasIndexComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(_consultas_perdas_sobras_media_consultas_perdas_sobras_media_component__WEBPACK_IMPORTED_MODULE_17__["ConsultasPerdasSobrasMediaComponent"], { static: false }),
        __metadata("design:type", _consultas_perdas_sobras_media_consultas_perdas_sobras_media_component__WEBPACK_IMPORTED_MODULE_17__["ConsultasPerdasSobrasMediaComponent"])
    ], ConsultasPerdasSobrasIndexComponent.prototype, "mediaComponent", void 0);
    ConsultasPerdasSobrasIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: 'app-consultas-perdas-sobras-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./consultas-perdas-sobras-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consultas-perdas-sobras-index.component.scss */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_7__["ConsultasPerdasSobrasService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_16__["LoginService"]])
    ], ConsultasPerdasSobrasIndexComponent);
    return ConsultasPerdasSobrasIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.component.scss":
/*!******************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.component.scss ***!
  \******************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("@charset \"UTF-8\";\nsection#box {\n  --width-container: 80;\n}\nsection#box div.contain-box {\n  width: calc(var(--width-container) * 1%);\n}\n.timerbar {\n  background: rgba(0, 0, 0, 0.25);\n  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);\n  --progress: 0;\n}\n.timerbar-bar {\n  height: 5px;\n  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));\n  transition: 0.4s linear;\n  transition-property: width, background-color;\n}\n.timerbar-moved .timerbar-bar {\n  width: calc(var(--progress) * 1%);\n  background-color: #EF476F;\n  -webkit-animation: timerbarAnimation 6s;\n          animation: timerbarAnimation 6s;\n}\n@-webkit-keyframes timerbarAnimation {\n  0% {\n    width: 5%;\n    background-color: #F9BCCA;\n  }\n  50% {\n    width: 50%;\n    background-color: #e3533a;\n  }\n  100% {\n    width: 100%;\n    background-color: #EF476F;\n  }\n}\n@keyframes timerbarAnimation {\n  0% {\n    width: 5%;\n    background-color: #F9BCCA;\n  }\n  50% {\n    width: 50%;\n    background-color: #e3533a;\n  }\n  100% {\n    width: 100%;\n    background-color: #EF476F;\n  }\n}\nth,\ntd {\n  text-wrap: nowrap;\n}\n.rowRed {\n  color: #c03;\n}\n.rowBlue {\n  color: #0000CC;\n}\n.rowGreen {\n  color: #00cc4e;\n}\n.rowOrange {\n  color: #ffa500;\n}\n.rowPurple {\n  color: #df13df;\n}\n/* Gera um quadrado responsivo. */\ndiv.item div.square {\n  width: 15px;\n  height: 0;\n  /* A mágica está aqui */\n  padding-bottom: 15px;\n  /* ... e está aqui */\n  margin: 1%;\n  float: left;\n  position: relative;\n}\n.legenda {\n  display: flex;\n  justify-content: space-between;\n  margin-bottom: 5px;\n}\n.legenda .item {\n  width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.component.ts":
/*!****************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.component.ts ***!
  \****************************************************************************************************************************************************/
/*! exports provided: ConsultasPerdasSobrasMediaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasMediaComponent", function() { return ConsultasPerdasSobrasMediaComponent; });
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _consultas_perdas_sobras_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../consultas-perdas-sobras.constants */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.constants.ts");
/* harmony import */ var _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../consultas-perdas-sobras.model */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.model.ts");
/* harmony import */ var _consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../consultas-perdas-sobras.service */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_12__ = __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_13__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var ConsultasPerdasSobrasMediaComponent = /** @class */ (function (_super) {
    __extends(ConsultasPerdasSobrasMediaComponent, _super);
    function ConsultasPerdasSobrasMediaComponent(router, service, datatablesService, funcoesService, messageService, configuracao, permissoesUtils, loginService) {
        var _this = _super.call(this, new _consultas_perdas_sobras_constants__WEBPACK_IMPORTED_MODULE_3__["ConsultasPerdasSobrasConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.constantes = new _consultas_perdas_sobras_constants__WEBPACK_IMPORTED_MODULE_3__["ConsultasPerdasSobrasConstants"]();
        _this.dataMedia = new _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_4__["ConsultasPerdasSobrasMedia"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConsultasPerdasSobrasMediaComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig({
            codRotina: this.constantes.sisFormularioId,
            configs: this.constantes.configuracoes
        });
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ConsultasPerdasSobrasMediaComponent.prototype.getDados = function () {
        var _this = this;
        this.service.getDadosMedia(this.service.filtro).subscribe(function (resp) {
            _this.service.dadosMedia = resp;
        });
    };
    Object.defineProperty(ConsultasPerdasSobrasMediaComponent.prototype, "dadosMedia", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosMedia || !this.table.filtro) {
                return this.table.getPage(this.service.dadosMedia);
            }
            var dadosMedia = this.service.dadosMedia.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.produto, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.perdasSobras, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.saidaNF, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.media, _this.table.filtro);
            });
            return this.table.getPage(dadosMedia);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConsultasPerdasSobrasMediaComponent.prototype, "hasDadosMedia", {
        get: function () {
            if (!this.service.dadosMedia)
                return false;
            return this.service.dadosMedia && this.service.dadosMedia.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    ConsultasPerdasSobrasMediaComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ConsultasPerdasSobrasMediaComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_5__["ConsultasPerdasSobrasService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_9__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_12__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__["TableComponent"])
    ], ConsultasPerdasSobrasMediaComponent.prototype, "table", void 0);
    ConsultasPerdasSobrasMediaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: 'app-consultas-perdas-sobras-media',
            template: __importDefault(__webpack_require__(/*! raw-loader!./consultas-perdas-sobras-media.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consultas-perdas-sobras-media.component.scss */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _consultas_perdas_sobras_service__WEBPACK_IMPORTED_MODULE_5__["ConsultasPerdasSobrasService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_9__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_6__["ConfiguracaoFacade"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_12__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_13__["LoginService"]])
    ], ConsultasPerdasSobrasMediaComponent);
    return ConsultasPerdasSobrasMediaComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.constants.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.constants.ts ***!
  \****************************************************************************************************************/
/*! exports provided: ConsultasPerdasSobrasConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasConstants", function() { return ConsultasPerdasSobrasConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultasPerdasSobrasConstants = /** @class */ (function () {
    function ConsultasPerdasSobrasConstants() {
        this.sisFormularioId = 375149;
        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.impressao" },
        ];
        this.sisSistemaId = "GRN";
        this.nomeForm = "titles.consultasPerdasSobras";
        this.reportId = '';
        this.reportTitulo = { "titulo": "Consultas Perdas e Sobras", "subTitulo": "" };
        this.configuracoes = [];
        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: 'PreferenciasUsuario', action: 'preferenciasUsuario', icon: "icon-lock", exibeButton: false, eximeMenu: true, menuName: 'Movimento', depitem: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return ConsultasPerdasSobrasConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.model.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.model.ts ***!
  \************************************************************************************************************/
/*! exports provided: ConsultasPerdasSobrasGrupo, ConsultasPerdasSobras, ConsultasPerdasSobrasMedia, ConsultasPerdasSobrasFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasGrupo", function() { return ConsultasPerdasSobrasGrupo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobras", function() { return ConsultasPerdasSobras; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasMedia", function() { return ConsultasPerdasSobrasMedia; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasFilter", function() { return ConsultasPerdasSobrasFilter; });
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

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

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

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

var ConsultasPerdasSobrasFilter = /** @class */ (function () {
    function ConsultasPerdasSobrasFilter() {
        var yesterday = new Date(Date.now() - 86400000);
        this.dataI = yesterday;
        this.dataF = new Date();
        this.codDest = 0;
        this.material = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__["Material"]();
        this.materialId = '';
    }
    ConsultasPerdasSobrasFilter.fromJS = function (data) {
        data = typeof data === 'object' ? data : {};
        var result = new ConsultasPerdasSobrasFilter();
        result.init(data);
        return result;
    };
    ConsultasPerdasSobrasFilter.prototype.init = function (data) {
        var _this = this;
        if (data) {
            Object.getOwnPropertyNames(data).forEach(function (d) { return _this[d] = data[d]; });
            this.dataI = new Date(data.dataI);
            this.dataF = new Date(data.dataF);
        }
    };
    return ConsultasPerdasSobrasFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.module.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.module.ts ***!
  \*************************************************************************************************************/
/*! exports provided: ConsultasPerdasSobrasModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasModule", function() { return ConsultasPerdasSobrasModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _consultas_perdas_sobras_index_consultas_perdas_sobras_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consultas-perdas-sobras-index/consultas-perdas-sobras-index.component */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-index.component.ts");
/* harmony import */ var _consultas_perdas_sobras_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consultas-perdas-sobras.routing.module */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.routing.module.ts");
/* harmony import */ var _consultas_perdas_sobras_filter_consultas_perdas_sobras_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./consultas-perdas-sobras-filter/consultas-perdas-sobras-filter.component */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-filter/consultas-perdas-sobras-filter.component.ts");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _consultas_perdas_sobras_media_consultas_perdas_sobras_media_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./consultas-perdas-sobras-media/consultas-perdas-sobras-media.component */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-media/consultas-perdas-sobras-media.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 ConsultasPerdasSobrasModule = /** @class */ (function () {
    function ConsultasPerdasSobrasModule() {
    }
    ConsultasPerdasSobrasModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _consultas_perdas_sobras_index_consultas_perdas_sobras_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultasPerdasSobrasIndexComponent"],
                _consultas_perdas_sobras_media_consultas_perdas_sobras_media_component__WEBPACK_IMPORTED_MODULE_6__["ConsultasPerdasSobrasMediaComponent"],
                _consultas_perdas_sobras_filter_consultas_perdas_sobras_filter_component__WEBPACK_IMPORTED_MODULE_4__["ConsultasPerdasSobrasFilterComponent"]
            ],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _consultas_perdas_sobras_routing_module__WEBPACK_IMPORTED_MODULE_3__["ConsultasPerdasSobrasRoutingModule"],
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_5__["SharedModule"]
            ]
        })
    ], ConsultasPerdasSobrasModule);
    return ConsultasPerdasSobrasModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.routing.module.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.routing.module.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: ConsultasPerdasSobrasRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasRoutingModule", function() { return ConsultasPerdasSobrasRoutingModule; });
/* 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 _consultas_perdas_sobras_index_consultas_perdas_sobras_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consultas-perdas-sobras-index/consultas-perdas-sobras-index.component */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras-index/consultas-perdas-sobras-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



var MRoutes = [
    {
        path: "",
        component: _consultas_perdas_sobras_index_consultas_perdas_sobras_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultasPerdasSobrasIndexComponent"],
        data: { breadcrumb: "consultasPerdasSobras" }
    }
];
var ConsultasPerdasSobrasRoutingModule = /** @class */ (function () {
    function ConsultasPerdasSobrasRoutingModule() {
    }
    ConsultasPerdasSobrasRoutingModule = __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"]]
        })
    ], ConsultasPerdasSobrasRoutingModule);
    return ConsultasPerdasSobrasRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.service.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.service.ts ***!
  \**************************************************************************************************************/
/*! exports provided: ConsultasPerdasSobrasService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultasPerdasSobrasService", function() { return ConsultasPerdasSobrasService; });
/* 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 _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consultas-perdas-sobras.model */ "./src/app/pages/especificos/granel/controle/consultas-perdas-sobras/consultas-perdas-sobras.model.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__ = __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 ConsultasPerdasSobrasService = /** @class */ (function (_super) {
    __extends(ConsultasPerdasSobrasService, _super);
    function ConsultasPerdasSobrasService(http, loginService) {
        var _this = _super.call(this, http, "granel/movimentos") || this;
        _this.http = http;
        _this.loginService = loginService;
        _this.filtro = new _consultas_perdas_sobras_model__WEBPACK_IMPORTED_MODULE_3__["ConsultasPerdasSobrasFilter"]();
        return _this;
    }
    ConsultasPerdasSobrasService.prototype.getDados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].specifics_service_url + "/api/v1/granel/controle/consultasPerdasSobras/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError));
    };
    ConsultasPerdasSobrasService.prototype.getDadosMedia = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].specifics_service_url + "/api/v1/granel/controle/consultasPerdasSobras/getDadosMedia", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError));
    };
    ConsultasPerdasSobrasService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] }
    ]; };
    ConsultasPerdasSobrasService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"]])
    ], ConsultasPerdasSobrasService);
    return ConsultasPerdasSobrasService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_5__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-granel-controle-consultas-perdas-sobras-consultas-perdas-sobras-module.js.map