(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cattalini-consultas-consulta-acuracidade-patio-consulta-acuracidade-patio-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-filter/consulta-acuracidade-patio-filter.component.html":
/*!***********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-filter/consulta-acuracidade-patio-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=\"consulta-acuracidade-patio-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.consultaAcuracidadePatio' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                                <app-data id=\"periodoDe\"\n                                          name=\"periodoDe\"\n                                          [(ngModel)]=\"filtro.dataI\"\n                                          autofocus\n                                          class=\"dataHora\"\n                                          [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                          required=\"true\">\n                                </app-data>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                <app-data id=\"ate\"\n                                          name=\"ate\"\n                                          [(ngModel)]=\"filtro.dataF\"\n                                          class=\"dataHora\"\n                                          [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                          required=\"true\">\n                                </app-data>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"placa\">{{'labels.placa' | translate}}</label>\n                                <input id=\"placa\" name=\"placa\"\n                                       [(ngModel)]=\"filtro.cadastroPlacaId\"\n                                       class=\"form-control form-control-sm\"\n                                       type=\"text\">\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\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component.html":
/*!*********************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component.html ***!
  \*********************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\n                      [formAction]=\"actionForm\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-validacoes></app-validacoes>\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\"\n                   href=\"#da\" (click)=\"seleciona(1)\">{{\"labels.dados\" | translate\n                    }}</a>\n            </li>\n            <li class=\"nav-item\">\n                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#re\" (click)=\"seleciona(2)\">{{\n                    \"labels.resumo\" | translate\n                    }}</a>\n            </li>\n            <li class=\"nav-item\">\n                <a class=\"nav-link\" data-toggle=\"tab\" href=\"#gr\" (click)=\"seleciona(3)\">{{\n                    \"labels.grafico\" | translate\n                    }}</a>\n            </li>\n        </ul>\n    </div>\n    <div class=\"tab-content top\">\n        <!-- ABA DADOS -->\n        <div class=\"tab-pane active show\" id=\"da\">\n            <div class=\"row\">\n                <div class=\"col\">\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"col-md-12 col-lg-12\">\n                        <table id=\"dtConsultaAcuracidadePatio\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n                    </div>\n                </div>\n                <div class=\"col\">\n                    <div class=\"modal-body\">\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"placa1\">{{'labels.placa' | translate}}</label>\n                                    <input id=\"placa1\" name=\"placa1\"\n                                           [(ngModel)]=\"abaDados.cadastroPlacaId\"\n                                           class=\"form-control form-control-sm\"\n                                           type=\"text\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"row container-img-preview\">\n                                    <div id=\"main-preview\" class=\"col-md-3\">\n                                        <img id=\"view\" [src]=\"abaDados.imagemUrl\" class=\"img-preview\" style=\"width:256px;height:256px;\">\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n\n        <!-- ABA RESUMO -->\n        <div class=\"tab-pane\" id=\"re\">\n            <div class=\"row\">\n                <div class=\"col\">\n                    <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm table-responsive\">\n                        <thead>\n                        <tr>\n                            <th class=\"text-center\" width=\"300px\">{{ 'labels.situacao' | translate }}</th>\n                            <th class=\"text-center\" width=\"100px\">{{ 'labels.total' | translate }}</th>\n                            <th class=\"text-center\" width=\"70px\">{{ 'labels.perc' | translate }}</th>\n                        </tr>\n                        </thead>\n                        <tbody>\n                        <tr *ngFor=\"let c of abaResumo | removeExcluidos\" class=\"clickable\"\n                            [ngClass]=\"{ 'info' : c === abaResumo }\" (click)=\"(abaResumo = c)\">\n                            <td class=\"text-left\" width=\"300px\">{{c.situacao}}</td>\n                            <td class=\"text-right\" width=\"100px\">{{c.total}}</td>\n                            <td class=\"text-right\" width=\"70px\">{{c.perc}}</td>\n                        </tr>\n                        <tr *ngIf=\"!hasDados\">\n                            <th colspan=\"9\">\n                                {{'messages.nenhumRegistroEncontrado' | translate }}\n                            </th>\n                        </tr>\n                        </tbody>\n                    </table>\n                </div>\n            </div>\n        </div>\n\n        <!-- ABA GRAFICO -->\n        <div class=\"tab-pane\" id=\"gr\">\n            <div class=\"row\">\n                <div class=\"col\" *ngIf=\"chartReady\">\n                    <canvas heigth=\"450\" baseChart id=\"canvas\"\n                            [datasets]=\"barChartData\"\n                            [labels]=\"barChartLabels\"\n                            [options]=\"barChartOptions\"\n                            [legend]=\"barChartLegend\"\n                            [chartType]=\"barChartType\"\n                            [plugins]=\"barChartPlugins\"\n                            [colors]=\"lineChartColors\">\n                    </canvas>\n\n                    <div class=\"col-lg 12\" *ngIf=\"hasDados\">\n                        <a href=\"#\" class=\"btn btn-info btn-block\"\n                           (click)=\"downloadCanvas($event)\"> {{ 'buttons.exportarDados' | translate }}</a>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-consulta-acuracidade-patio-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-consulta-acuracidade-patio-filter>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-filter/consulta-acuracidade-patio-filter.component.ts":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-filter/consulta-acuracidade-patio-filter.component.ts ***!
  \*******************************************************************************************************************************************************************/
/*! exports provided: ConsultaAcuracidadePatioFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioFilterComponent", function() { return ConsultaAcuracidadePatioFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_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 _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../consulta-acuracidade-patio.model */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.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 ConsultaAcuracidadePatioFilterComponent = /** @class */ (function () {
    function ConsultaAcuracidadePatioFilterComponent(messageService, funcoesService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
    }
    ConsultaAcuracidadePatioFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
    };
    ConsultaAcuracidadePatioFilterComponent.prototype.onSubmit = function (form) {
        if (((this.filtro.dataI === undefined) || (this.filtro.dataI === "")) ||
            ((this.filtro.dataF === undefined) || (this.filtro.dataF === "")) ||
            (this.filtro.dataF.toString() === "Invalid Date") || (this.filtro.dataI.toString() === "Invalid Date")) {
            this.messageService.warning("titles.consultaAcuracidadePatio", "messages.periodoNaoPreenchidoOuInvalido");
        }
        else {
            if (this.filtro.dataI > this.filtro.dataF) {
                this.messageService.warning("titles.consultaAcuracidadePatio", "messages.periodoNaoPreenchidoOuInvalido");
            }
            else {
                if (this.filtro.dataF < this.filtro.dataI) {
                    this.messageService.warning("titles.consultaAcuracidadePatio", "messages.periodoNaoPreenchidoOuInvalido");
                }
                else {
                    if (!form.invalid) {
                        this.filtrar.emit(this.filtro);
                        jQuery("#consulta-acuracidade-patio-filter-dialog").modal("hide");
                    }
                }
            }
        }
    };
    ConsultaAcuracidadePatioFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_4__["ConsultaAcuracidadePatioFilter"])
    ], ConsultaAcuracidadePatioFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConsultaAcuracidadePatioFilterComponent.prototype, "filtrar", void 0);
    ConsultaAcuracidadePatioFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-acuracidade-patio-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-acuracidade-patio-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-filter/consulta-acuracidade-patio-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"]])
    ], ConsultaAcuracidadePatioFilterComponent);
    return ConsultaAcuracidadePatioFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component.scss":
/*!*******************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-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"] = ("#graf {\n  height: 250px;\n}\n\ncanvas {\n  height: 450px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY2F0dGFsaW5pL2NvbnN1bHRhcy9jb25zdWx0YS1hY3VyYWNpZGFkZS1wYXRpby9jb25zdWx0YS1hY3VyYWNpZGFkZS1wYXRpby1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxjYXR0YWxpbmlcXGNvbnN1bHRhc1xcY29uc3VsdGEtYWN1cmFjaWRhZGUtcGF0aW9cXGNvbnN1bHRhLWFjdXJhY2lkYWRlLXBhdGlvLWluZGV4XFxjb25zdWx0YS1hY3VyYWNpZGFkZS1wYXRpby1pbmRleC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY2F0dGFsaW5pL2NvbnN1bHRhcy9jb25zdWx0YS1hY3VyYWNpZGFkZS1wYXRpby9jb25zdWx0YS1hY3VyYWNpZGFkZS1wYXRpby1pbmRleC9jb25zdWx0YS1hY3VyYWNpZGFkZS1wYXRpby1pbmRleC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGFBQUE7QUNDRjs7QURFQTtFQUNFLGFBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NhdHRhbGluaS9jb25zdWx0YXMvY29uc3VsdGEtYWN1cmFjaWRhZGUtcGF0aW8vY29uc3VsdGEtYWN1cmFjaWRhZGUtcGF0aW8taW5kZXgvY29uc3VsdGEtYWN1cmFjaWRhZGUtcGF0aW8taW5kZXguY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIjZ3JhZiB7XHJcbiAgaGVpZ2h0OiAyNTBweDtcclxufVxyXG5cclxuY2FudmFzIHtcclxuICBoZWlnaHQ6IDQ1MHB4O1xyXG59XHJcbiIsIiNncmFmIHtcbiAgaGVpZ2h0OiAyNTBweDtcbn1cblxuY2FudmFzIHtcbiAgaGVpZ2h0OiA0NTBweDtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component.ts":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component.ts ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: ConsultaAcuracidadePatioIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioIndexComponent", function() { return ConsultaAcuracidadePatioIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _consulta_acuracidade_patio_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../consulta-acuracidade-patio.constants */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.constants.ts");
/* harmony import */ var _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../consulta-acuracidade-patio.model */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.model.ts");
/* harmony import */ var _consulta_acuracidade_patio_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../consulta-acuracidade-patio.service */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var chartjs_plugin_annotation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! chartjs-plugin-annotation */ "./node_modules/chartjs-plugin-annotation/src/index.js");
/* harmony import */ var chartjs_plugin_annotation__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(chartjs_plugin_annotation__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! chart.js */ "./node_modules/chart.js/dist/Chart.js");
/* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(chart_js__WEBPACK_IMPORTED_MODULE_13__);
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 ConsultaAcuracidadePatioIndexComponent = /** @class */ (function (_super) {
    __extends(ConsultaAcuracidadePatioIndexComponent, _super);
    function ConsultaAcuracidadePatioIndexComponent(router, activatedRoute, consultaAcuracidadePatioService, datatables, messageService, funcoesService, permissoesUtils, excelService, loginService) {
        var _this = _super.call(this, new _consulta_acuracidade_patio_constants__WEBPACK_IMPORTED_MODULE_6__["ConsultaAcuracidadePatioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.activatedRoute = activatedRoute;
        _this.consultaAcuracidadePatioService = consultaAcuracidadePatioService;
        _this.datatables = datatables;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.excelService = excelService;
        _this.loginService = loginService;
        _this.data = new _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_7__["ConsultaAcuracidadePatioDados"]();
        _this.dados = new _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_7__["ConsultaAcuracidadePatio"]();
        _this.abaDados = new _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_7__["ConsultaAcuracidadePatioDados"];
        _this.abaDadosAux = [];
        _this.abaResumo = [];
        _this.abaResumoAux = [];
        _this.abaResumoRel = [];
        _this.abaResumoRelAux = [];
        _this.abaGrafico = [];
        _this.abaFoto = new _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_7__["ConsultaAcuracidadePatioOCRDto"]();
        _this.hasDados = false;
        _this.constantes = new _consulta_acuracidade_patio_constants__WEBPACK_IMPORTED_MODULE_6__["ConsultaAcuracidadePatioConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.filtroRel = new _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_7__["ConsultaAcuracidadePatioRelFilter"]();
        _this.filtroOCR = new _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_7__["ConsultaAcuracidadePatioOCRFilter"]();
        _this.barChartLegend = true;
        _this.barChartType = 'bar';
        _this.barChartPlugins = [chartjs_plugin_annotation__WEBPACK_IMPORTED_MODULE_11__];
        _this.chartReady = false;
        _this.lineChartColors = [
            {
                backgroundColor: '#991207',
                borderColor: '#991207',
                pointBackgroundColor: 'rgba(77,83,96,1)',
                pointBorderColor: '#fff',
                pointHoverBackgroundColor: '#fff',
                pointHoverBorderColor: 'rgba(77,83,96,1)'
            },
            {
                backgroundColor: '#37CC5A',
                borderColor: '#37CC5A',
                pointBackgroundColor: 'rgba(148,159,177,1)',
                pointBorderColor: '#fff',
                pointHoverBackgroundColor: '#fff',
                pointHoverBorderColor: 'rgba(148,159,177,0.8)'
            },
            {
                backgroundColor: '#C3CC1E',
                borderColor: '#C3CC1E',
                pointBackgroundColor: 'rgba(148,159,176,1)',
                pointBorderColor: '#fff',
                pointHoverBackgroundColor: '#fff',
                pointHoverBorderColor: 'rgba(148,159,176,0.8)'
            },
            {
                backgroundColor: '#1F20FF',
                borderColor: '#1F20FF',
                pointBackgroundColor: 'rgba(148,159,177,1)',
                pointBorderColor: '#fff',
                pointHoverBackgroundColor: '#fff',
                pointHoverBorderColor: 'rgba(148,159,177,0.8)'
            }
        ];
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                if (_this.abaSelecionada === 1) {
                    var headerDictionary = {
                        "dtAutorizacao": "data",
                        "hrAutorizacao": "horario",
                    };
                    var options = {
                        headerJsonKeys: true,
                        headerDictionary: headerDictionary
                    };
                    _this.excelService.exportAsExcelFile(_this.abaDadosAux, 'Consulta Acuracidade Patio Dados', options);
                }
                else {
                    if (_this.abaSelecionada === 2) {
                        var headerDictionary = {
                            "situacao": "Situacao",
                            "total": "Total",
                            "perc": "Percentual",
                        };
                        var options = {
                            headerJsonKeys: true,
                            headerDictionary: headerDictionary
                        };
                        _this.excelService.exportAsExcelFile(_this.abaResumoRelAux, 'Consulta Acuracidade Patio Resumo', options);
                    }
                    /*
                    this.consultaAcuracidadePatioService.getByFiltroResumoRel(this.filtro).subscribe(resp3 => {
                        this.abaResumoRelAux = resp3;
                    });
                     */
                }
            });
            // this.refresh();
        };
        _this.filtro = new _consulta_acuracidade_patio_model__WEBPACK_IMPORTED_MODULE_7__["ConsultaAcuracidadePatioFilter"]();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConsultaAcuracidadePatioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            jQuery("#consulta-acuracidade-patio-filter-dialog").modal("show");
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'export', func: function () { return _this.export; } }
        ]);
        this.seleciona(1);
        this.regLog = this.loginService.getLogin().colaboradorId;
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.onRefresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.consultaAcuracidadePatioService.getByFiltroDados(this.filtro).subscribe(function (resp) {
                            var columns = [
                                _this.datatables.getDataDateTime("dtAutorizacao", "data", "DD/MM/YYYY", "10%"),
                                _this.datatables.getDataString("hrAutorizacao", "horario", "10%"),
                                _this.datatables.getDataString("cadastroPlacaId", "placa", "10%"),
                                _this.datatables.getDataString("situacao", "situacao", "10%")
                            ];
                            _this.datatables.datatable("dtConsultaAcuracidadePatio", columns, resp, function (aData) {
                                _this.abaDados = aData;
                            });
                        })];
                    case 1:
                        _a.sent();
                        return [4 /*yield*/, this.consultaAcuracidadePatioService.getByFiltroDadosRel(this.filtro).subscribe(function (resp4) {
                                _this.abaDadosAux = resp4;
                            })];
                    case 2:
                        _a.sent();
                        return [4 /*yield*/, this.consultaAcuracidadePatioService.getByFiltroResumo(this.filtro).subscribe(function (resp1) {
                                _this.abaResumo = resp1;
                                _this.abaResumoAux = resp1;
                                _this.abaResumoRelAux = resp1;
                            })];
                    case 3:
                        _a.sent();
                        /*
                        await  this.consultaAcuracidadePatioService.getByFiltroResumoRel(this.filtro).subscribe(resp3 => {
                            this.abaResumoRel = resp3;
                            this.abaResumoRelAux = resp3;
                        });
                         */
                        return [4 /*yield*/, this.consultaAcuracidadePatioService.getByFiltroGrafico(this.filtro).subscribe(function (resp2) {
                                if (!resp2) {
                                    resp2 = [];
                                }
                                _this.abaGrafico = resp2;
                                if (resp2) {
                                    _this.hasDados = resp2.length > 0;
                                    if (!resp2 || resp2.length === 0) {
                                        _this.messageService.warning("titles.consultaAcuracidadePatio", "messages.naoExistemDados");
                                    }
                                    _this.geraGrafico(resp2);
                                }
                            })];
                    case 4:
                        /*
                        await  this.consultaAcuracidadePatioService.getByFiltroResumoRel(this.filtro).subscribe(resp3 => {
                            this.abaResumoRel = resp3;
                            this.abaResumoRelAux = resp3;
                        });
                         */
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.refresh = function () {
        this.onRefresh();
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.detail = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.abaDados.sequencia)) {
            this.router.navigate([this.target + "/consultas/consultaAcuracidadePatio/detail/" + this.abaDados.sequencia]);
        }
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.filtrar = function () {
        jQuery("#consulta-acuracidade-patio-filter-dialog").modal("show");
        this.hasDados = false;
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.onRefresh();
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.atualizaAba = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.consultaAcuracidadePatioService.getByFiltroResumo(this.filtro).subscribe(function (resp1) {
                            _this.abaResumo = resp1;
                            _this.abaResumoAux = resp1;
                        })];
                    case 1:
                        _a.sent();
                        return [4 /*yield*/, this.consultaAcuracidadePatioService.getByFiltroResumoRel(this.filtro).subscribe(function (resp3) {
                                _this.abaResumoRel = resp3;
                            })];
                    case 2:
                        _a.sent();
                        return [4 /*yield*/, this.consultaAcuracidadePatioService.getByFiltroGrafico(this.filtro).subscribe(function (resp2) {
                                if (!resp2) {
                                    resp2 = [];
                                }
                                _this.abaGrafico = resp2;
                                if (resp2) {
                                    _this.hasDados = resp2.length > 0;
                                    if (!resp2 || resp2.length === 0) {
                                        _this.messageService.warning("titles.consultaAcuracidadePatio", "messages.naoExistemDados");
                                    }
                                    _this.geraGrafico(resp2);
                                }
                            })];
                    case 3:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.seleciona = function (event) {
        this.abaSelecionada = event;
        // this.atualizaAba();
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            var reportTitulo = {
                titulo: _this.messageService.getTranslates('titles', 'consultaAcuracidadePatio'),
                subTitulo: ''
            };
            _this.filtroRel.filialId = _this.funcoesService.isNotUndefinedOrNull(_this.filtro.filial) ? _this.filtro.filial : 0;
            _this.filtroRel.dataI = _this.funcoesService.isNotUndefinedOrNull(_this.filtro.dataI) ? _this.filtro.dataI : "";
            _this.filtroRel.dataF = _this.funcoesService.isNotUndefinedOrNull(_this.filtro.dataF) ? _this.filtro.dataF : "";
            _this.filtroRel.cadastroPlacaId = _this.funcoesService.isNotUndefinedOrNull(_this.filtro.cadastroPlacaId) ? _this.filtro.cadastroPlacaId : "";
            _this.funcoesService.reportInvoc.invocaRelatorioEspecificos(_this.constantes.reportId, reportTitulo, _this.filtroRel);
        });
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.geraGrafico = function (dados) {
        return __awaiter(this, void 0, void 0, function () {
            var displayLegend, titulo, promises, extrudePlugin;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.chartReady = true;
                        displayLegend = true;
                        titulo = [
                            this.messageService.getTranslates("titles", "acuracidadePatio")
                        ];
                        this.barChartData = [
                            { data: [], label: 'Aberto' },
                            { data: [], label: 'Agendamento Informado' },
                            { data: [], label: 'Concluído' },
                            { data: [], label: 'Liberado' },
                            { data: [], label: 'Recusado' }
                        ];
                        if (!this.funcoesService.isNotUndefinedOrNull(this.dados)) return [3 /*break*/, 2];
                        promises = dados.map(function (m) { return __awaiter(_this, void 0, void 0, function () {
                            var bar, bar1, bar2, bar3, bar4;
                            return __generator(this, function (_a) {
                                bar = this.barChartData.find(function (l) { return l.label === 'Aberto'; });
                                if (bar) {
                                    if (m.situacao === 'Aberto') {
                                        bar.data.push(m.perc);
                                    }
                                }
                                bar1 = this.barChartData.find(function (l) { return l.label === 'Agendamento Informado'; });
                                if (bar1) {
                                    if (m.situacao === 'Agendamento Informado') {
                                        bar1.data.push(m.perc);
                                    }
                                }
                                bar2 = this.barChartData.find(function (l) { return l.label === 'Concluído'; });
                                if (bar2) {
                                    if (m.situacao === 'Concluido') {
                                        bar2.data.push(m.perc);
                                    }
                                }
                                bar3 = this.barChartData.find(function (l) { return l.label === 'Liberado'; });
                                if (bar3) {
                                    if (m.situacao === 'Liberado') {
                                        bar3.data.push(m.perc);
                                    }
                                }
                                bar4 = this.barChartData.find(function (l) { return l.label === 'Recusado'; });
                                if (bar4) {
                                    if (m.situacao === 'Recusado') {
                                        bar4.data.push(m.perc);
                                    }
                                }
                                return [2 /*return*/];
                            });
                        }); });
                        return [4 /*yield*/, Promise.all(promises)];
                    case 1:
                        _a.sent();
                        _a.label = 2;
                    case 2:
                        this.barChartLabels = ['OCR Pátio'];
                        this.barChartOptions = {
                            responsive: true,
                            legend: { position: 'bottom', display: displayLegend },
                            scales: {
                                xAxes: [
                                    {
                                        scaleLabel: {
                                            display: false,
                                            labelString: '',
                                            fontColor: "#546372"
                                        }
                                    }
                                ],
                                yAxes: [
                                    {
                                        id: 'y-axis-0',
                                        position: 'left',
                                        ticks: {
                                            max: 100,
                                            min: 0,
                                            stepSize: 10
                                        },
                                        scaleLabel: {
                                            display: false,
                                            labelString: 'Porcentagens',
                                            fontColor: "#546372"
                                        }
                                    }
                                ]
                            },
                            annotation: {},
                            tooltips: {
                                enabled: true,
                                mode: 'single',
                                callbacks: {
                                    title: function (tooltipItems, data) {
                                        var title;
                                        var labels = data.labels;
                                        var labelCount = labels ? labels.length : 0;
                                        if (tooltipItems.length > 0) {
                                            var item = tooltipItems[0];
                                            if (item.label) {
                                                title = item.label;
                                            }
                                            else if (labelCount > 0 && item.index < labelCount) {
                                                title = labels[item.index];
                                            }
                                        }
                                        return title;
                                    },
                                    label: function (tooltipItem, data) {
                                        var label = data.datasets[tooltipItem.datasetIndex].label || '';
                                        return [label, tooltipItem.yLabel + ' '];
                                    }
                                }
                            },
                            title: {
                                display: true,
                                text: titulo
                            },
                            plugins: {
                                datalabels: {
                                    display: false
                                }
                            }
                        };
                        extrudePlugin = {
                            id: 'extrude',
                            beforeDatasetsDraw: function (chart) {
                                var _this = this;
                                var ctx = chart.ctx;
                                ctx.save();
                                chart.data.datasets.forEach(function (dataset, datasetIndex) {
                                    var meta = chart.getDatasetMeta(datasetIndex);
                                    if (!meta || !meta.data)
                                        return;
                                    meta.data.forEach(function (bar) {
                                        if (!bar._model)
                                            return;
                                        var _a = bar._model, x = _a.x, y = _a.y, base = _a.base, width = _a.width;
                                        var depth = 12; // Profundidade do efeito 3D
                                        // Não aplicar efeito em barras com valor zero
                                        if (Math.abs(y - base) < 1)
                                            return;
                                        var color = bar._model.backgroundColor || '#4CAF50';
                                        // Escurecer as cores para as partes 3D
                                        var rightColor = _this.darkenColor(color, 30);
                                        var topColor = _this.darkenColor(color, 15);
                                        var sideColor = _this.darkenColor(color, 20);
                                        // 1. FUNDO (parte traseira) - dá profundidade
                                        ctx.fillStyle = sideColor;
                                        ctx.beginPath();
                                        ctx.moveTo(x - width / 2, base);
                                        ctx.lineTo(x - width / 2, base - depth);
                                        ctx.lineTo(x + width / 2 + depth, base - depth);
                                        ctx.lineTo(x + width / 2 + depth, base);
                                        ctx.closePath();
                                        ctx.fill();
                                        // 2. LADO DIREITO (vertical)
                                        ctx.fillStyle = rightColor;
                                        ctx.beginPath();
                                        ctx.moveTo(x + width / 2, y);
                                        ctx.lineTo(x + width / 2 + depth, y);
                                        ctx.lineTo(x + width / 2 + depth, base);
                                        ctx.lineTo(x + width / 2, base);
                                        ctx.closePath();
                                        ctx.fill();
                                        // 3. TOPO (horizontal)
                                        ctx.fillStyle = topColor;
                                        ctx.beginPath();
                                        ctx.moveTo(x - width / 2, y);
                                        ctx.lineTo(x + width / 2, y);
                                        ctx.lineTo(x + width / 2 + depth, y);
                                        ctx.lineTo(x - width / 2, y);
                                        ctx.closePath();
                                        ctx.fill();
                                        // 4. BARRA PRINCIPAL por cima
                                        ctx.fillStyle = color;
                                        ctx.fillRect(x - width / 2, y, width, base - y);
                                        // 5. LATERAL ESQUERDA (profundidade)
                                        ctx.fillStyle = sideColor;
                                        ctx.beginPath();
                                        ctx.moveTo(x - width / 2, y);
                                        ctx.lineTo(x - width / 2, base);
                                        ctx.lineTo(x - width / 2, base - depth);
                                        ctx.lineTo(x - width / 2, y);
                                        ctx.closePath();
                                        ctx.fill();
                                    });
                                });
                                ctx.restore();
                            },
                            darkenColor: function (color, percent) {
                                var r, g, b;
                                if (color.startsWith('#')) {
                                    var hex = color.replace('#', '');
                                    r = parseInt(hex.substring(0, 2), 16);
                                    g = parseInt(hex.substring(2, 4), 16);
                                    b = parseInt(hex.substring(4, 6), 16);
                                }
                                else if (color.startsWith('rgb')) {
                                    var match = color.match(/(\d+),\s*(\d+),\s*(\d+)/);
                                    if (match) {
                                        r = parseInt(match[1]);
                                        g = parseInt(match[2]);
                                        b = parseInt(match[3]);
                                    }
                                }
                                if (r !== undefined && g !== undefined && b !== undefined) {
                                    r = Math.max(0, Math.floor(r * (1 - percent / 100)));
                                    g = Math.max(0, Math.floor(g * (1 - percent / 100)));
                                    b = Math.max(0, Math.floor(b * (1 - percent / 100)));
                                    return "rgb(" + r + ", " + g + ", " + b + ")";
                                }
                                return color;
                            }
                        };
                        chart_js__WEBPACK_IMPORTED_MODULE_13__["plugins"].register(extrudePlugin);
                        return [2 /*return*/];
                }
            });
        });
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.downloadCanvas = function (event) {
        var title = new Date().getTime();
        // get the `<a>` element from click event
        var anchor = event.target;
        // get the canvas, I'm getting it by tag name, you can do by id
        // and set the href of the anchor to the canvas dataUrl
        anchor.href = document.getElementsByTagName('canvas')[0].toDataURL();
        // set the anchors 'download' attibute (name of the file to be downloaded)
        anchor.download = title + ".png";
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.executaVisualizarFotos = function (event) {
        return __awaiter(this, void 0, void 0, function () {
            var regControle, ticket, obj, ret;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        regControle = this.abaDados.sequencia;
                        ticket = this.abaDados.sequencia;
                        this.filtroOCR.regControle = +regControle;
                        this.filtroOCR.tipo = 6;
                        this.filtroOCR.autorizacao = +ticket;
                        if (!(regControle && ticket)) return [3 /*break*/, 2];
                        obj = {
                            regControle: +regControle,
                            tipo: 6,
                            autorizacao: +ticket
                        };
                        return [4 /*yield*/, this.visualizarFotos(obj)];
                    case 1:
                        ret = _a.sent();
                        this.abaFoto.foto = this.funcoesService.isNotUndefinedOrNull(ret[0].foto) ? ret[0].foto : "";
                        this.abaFoto.arquivoFoto = this.funcoesService.isNotUndefinedOrNull(ret[0].arquivoFoto) ? ret[0].arquivoFoto : "";
                        this.abaFoto.imagemUrl = this.funcoesService.isNotUndefinedOrNull(ret[0].imagemUrl) ? ret[0].imagemUrl : "";
                        this.abaFoto.foto1 = this.funcoesService.isNotUndefinedOrNull(ret[1].foto) ? ret[1].foto : "";
                        this.abaFoto.arquivoFoto1 = this.funcoesService.isNotUndefinedOrNull(ret[1].arquivoFoto) ? ret[1].arquivoFoto : "";
                        this.abaFoto.imagemUrl1 = this.funcoesService.isNotUndefinedOrNull(ret[1].imagemUrl) ? ret[1].imagemUrl : "";
                        jQuery("#app-consulta-acuracidade-foto").modal("show");
                        _a.label = 2;
                    case 2: return [2 /*return*/];
                }
            });
        });
    };
    ConsultaAcuracidadePatioIndexComponent.prototype.visualizarFotos = function (data) {
        var request = this.consultaAcuracidadePatioService;
        var promise = new Promise(function (resolve, reject) {
            request.getOCRAcuracidade(data).subscribe(function (resp) {
                resolve(resp);
            });
        });
        return promise;
    };
    ConsultaAcuracidadePatioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _consulta_acuracidade_patio_service__WEBPACK_IMPORTED_MODULE_8__["ConsultaAcuracidadePatioService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_12__["ExcelService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] }
    ]; };
    ConsultaAcuracidadePatioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-acuracidade-patio-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-acuracidade-patio-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consulta-acuracidade-patio-index.component.scss */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _consulta_acuracidade_patio_service__WEBPACK_IMPORTED_MODULE_8__["ConsultaAcuracidadePatioService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_12__["ExcelService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"]])
    ], ConsultaAcuracidadePatioIndexComponent);
    return ConsultaAcuracidadePatioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.constants.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.constants.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: ConsultaAcuracidadePatioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioConstants", function() { return ConsultaAcuracidadePatioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaAcuracidadePatioConstants = /** @class */ (function () {
    function ConsultaAcuracidadePatioConstants() {
        this.sisFormularioId = 65558;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.gerarExcel" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.consultaAcuracidadePatio";
        this.reportTitulo = { "titulo": "Consulta Acuracidade Patio", "subTitulo": "" };
        this.reportId = "CAT0033";
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Export', action: 'export', icon: "icon-export", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: false }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return ConsultaAcuracidadePatioConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.model.ts":
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.model.ts ***!
  \**********************************************************************************************************************/
/*! exports provided: ConsultaAcuracidadePatio, ConsultaAcuracidadePatioDados, RelConsultaAcuracidadePatioDados, ConsultaAcuracidadePatioResumo, ConsultaAcuracidadePatioGrafico, ConsultaAcuracidadePatioFilter, ConsultaAcuracidadePatioRelFilter, ConsultaAcuracidadePatioOCRFilter, ConsultaAcuracidadePatioOCRDto, RelConsultaAcuracidadePatioResumo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatio", function() { return ConsultaAcuracidadePatio; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioDados", function() { return ConsultaAcuracidadePatioDados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelConsultaAcuracidadePatioDados", function() { return RelConsultaAcuracidadePatioDados; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioResumo", function() { return ConsultaAcuracidadePatioResumo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioGrafico", function() { return ConsultaAcuracidadePatioGrafico; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioFilter", function() { return ConsultaAcuracidadePatioFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioRelFilter", function() { return ConsultaAcuracidadePatioRelFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioOCRFilter", function() { return ConsultaAcuracidadePatioOCRFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioOCRDto", function() { return ConsultaAcuracidadePatioOCRDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelConsultaAcuracidadePatioResumo", function() { return RelConsultaAcuracidadePatioResumo; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
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 ConsultaAcuracidadePatio = /** @class */ (function (_super) {
    __extends(ConsultaAcuracidadePatio, _super);
    function ConsultaAcuracidadePatio() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ConsultaAcuracidadePatio;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ConsultaAcuracidadePatioDados = /** @class */ (function (_super) {
    __extends(ConsultaAcuracidadePatioDados, _super);
    function ConsultaAcuracidadePatioDados() {
        var _this = _super.call(this) || this;
        _this.sequencia = 0;
        return _this;
    }
    return ConsultaAcuracidadePatioDados;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var RelConsultaAcuracidadePatioDados = /** @class */ (function (_super) {
    __extends(RelConsultaAcuracidadePatioDados, _super);
    function RelConsultaAcuracidadePatioDados() {
        return _super.call(this) || this;
    }
    return RelConsultaAcuracidadePatioDados;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ConsultaAcuracidadePatioResumo = /** @class */ (function (_super) {
    __extends(ConsultaAcuracidadePatioResumo, _super);
    function ConsultaAcuracidadePatioResumo() {
        var _this = _super.call(this) || this;
        _this.situacao = "";
        _this.total = 0;
        _this.perc = 0;
        return _this;
    }
    return ConsultaAcuracidadePatioResumo;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ConsultaAcuracidadePatioGrafico = /** @class */ (function (_super) {
    __extends(ConsultaAcuracidadePatioGrafico, _super);
    function ConsultaAcuracidadePatioGrafico() {
        var _this = _super.call(this) || this;
        _this.perc = 0;
        return _this;
    }
    return ConsultaAcuracidadePatioGrafico;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var ConsultaAcuracidadePatioFilter = /** @class */ (function () {
    function ConsultaAcuracidadePatioFilter() {
        var dataI = moment__WEBPACK_IMPORTED_MODULE_1__();
        var dataF = moment__WEBPACK_IMPORTED_MODULE_1__();
        this.dataI = dataI.add(-7, "days").format("YYYY-MM-DD") + ' 00:00:00';
        this.dataI = new Date(this.dataI);
        this.dataF = dataF.format("YYYY-MM-DD") + ' 23:59:59';
        this.dataF = new Date(this.dataF);
        this.filial = 0;
        this.cadastroPlacaId = "";
    }
    return ConsultaAcuracidadePatioFilter;
}());

var ConsultaAcuracidadePatioRelFilter = /** @class */ (function () {
    function ConsultaAcuracidadePatioRelFilter() {
        var dataI = moment__WEBPACK_IMPORTED_MODULE_1__();
        var dataF = moment__WEBPACK_IMPORTED_MODULE_1__();
        this.dataI = dataI.add(-7, "days").format("YYYY-MM-DD") + ' 00:00:00';
        this.dataI = new Date(this.dataI);
        this.dataF = dataF.format("YYYY-MM-DD") + ' 23:59:59';
        this.dataF = new Date(this.dataF);
        this.filialId = 0;
        this.cadastroPlacaId = "";
    }
    return ConsultaAcuracidadePatioRelFilter;
}());

var ConsultaAcuracidadePatioOCRFilter = /** @class */ (function () {
    function ConsultaAcuracidadePatioOCRFilter() {
        this.tipo = 0;
        this.regControle = 0;
        this.autorizacao = 0;
        this.nrPesagem = 0;
        this.tpPesagem = "";
        this.codRotina = 0;
        this.regLog = 0;
    }
    return ConsultaAcuracidadePatioOCRFilter;
}());

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

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



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.module.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.module.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: ConsultaAcuracidadePatioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioModule", function() { return ConsultaAcuracidadePatioModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _consulta_acuracidade_patio_index_consulta_acuracidade_patio_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component.ts");
/* harmony import */ var _consulta_acuracidade_patio_filter_consulta_acuracidade_patio_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-acuracidade-patio-filter/consulta-acuracidade-patio-filter.component */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-filter/consulta-acuracidade-patio-filter.component.ts");
/* harmony import */ var _consulta_acuracidade_patio_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./consulta-acuracidade-patio.routing.module */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.routing.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var ConsultaAcuracidadePatioModule = /** @class */ (function () {
    function ConsultaAcuracidadePatioModule() {
    }
    ConsultaAcuracidadePatioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _consulta_acuracidade_patio_index_consulta_acuracidade_patio_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultaAcuracidadePatioIndexComponent"],
                _consulta_acuracidade_patio_filter_consulta_acuracidade_patio_filter_component__WEBPACK_IMPORTED_MODULE_3__["ConsultaAcuracidadePatioFilterComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _consulta_acuracidade_patio_routing_module__WEBPACK_IMPORTED_MODULE_4__["ConsultaAcuracidadePatioRoutingModule"]
            ]
        })
    ], ConsultaAcuracidadePatioModule);
    return ConsultaAcuracidadePatioModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.routing.module.ts":
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.routing.module.ts ***!
  \*******************************************************************************************************************************/
/*! exports provided: ConsultaAcuracidadePatioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioRoutingModule", function() { return ConsultaAcuracidadePatioRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _consulta_acuracidade_patio_index_consulta_acuracidade_patio_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-acuracidade-patio-index/consulta-acuracidade-patio-index.component */ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio-index/consulta-acuracidade-patio-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: _consulta_acuracidade_patio_index_consulta_acuracidade_patio_index_component__WEBPACK_IMPORTED_MODULE_3__["ConsultaAcuracidadePatioIndexComponent"],
        data: { breadcrumb: "ConsultaAcuracidadePatio", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var ConsultaAcuracidadePatioRoutingModule = /** @class */ (function () {
    function ConsultaAcuracidadePatioRoutingModule() {
    }
    ConsultaAcuracidadePatioRoutingModule = __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"]]
        })
    ], ConsultaAcuracidadePatioRoutingModule);
    return ConsultaAcuracidadePatioRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.service.ts":
/*!************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cattalini/consultas/consulta-acuracidade-patio/consulta-acuracidade-patio.service.ts ***!
  \************************************************************************************************************************/
/*! exports provided: ConsultaAcuracidadePatioService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAcuracidadePatioService", function() { return ConsultaAcuracidadePatioService; });
/* 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 _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.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 ConsultaAcuracidadePatioService = /** @class */ (function (_super) {
    __extends(ConsultaAcuracidadePatioService, _super);
    function ConsultaAcuracidadePatioService(http) {
        return _super.call(this, http, "cattalini/consultaAcuracidadePatio") || this;
    }
    ConsultaAcuracidadePatioService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/consultaAcuracidadePatio/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaAcuracidadePatioService.prototype.getOCRAcuracidade = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/consultaAcuracidadePatio/getOCRAcuracidade", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaAcuracidadePatioService.prototype.getByFiltroDados = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/consultaAcuracidadePatio/corpWebConsultaAcuracidadePatioDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaAcuracidadePatioService.prototype.getByFiltroDadosRel = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/consultaAcuracidadePatio/corpWebConsultaAcuracidadePatioDadosRel", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaAcuracidadePatioService.prototype.getByFiltroResumo = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/consultaAcuracidadePatio/corpWebConsultaAcuracidadePatioResumo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaAcuracidadePatioService.prototype.getByFiltroResumoRel = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/consultaAcuracidadePatio/corpWebConsultaAcuracidadePatioResumoRel", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaAcuracidadePatioService.prototype.getByFiltroGrafico = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].specifics_service_url + "/api/v1/cattalini/consultaAcuracidadePatio/corpWebConsultaAcuracidadePatioGrafico", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaAcuracidadePatioService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ConsultaAcuracidadePatioService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ConsultaAcuracidadePatioService);
    return ConsultaAcuracidadePatioService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cattalini-consultas-consulta-acuracidade-patio-consulta-acuracidade-patio-module.js.map