(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-consultas-tempo-de-operacao-tempo-de-operacao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.component.html":
/*!**********************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.component.html ***!
  \**********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"historico-lote-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h5 class=\"modal-title\">{{ 'titles.pesquisaTempoDeOperacao' | translate }}</h5>\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 mb-2\">\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                            <label for=\"dataChegadaDe\">{{ 'labels.dataChegadaDe' | translate }}</label>\n                            <app-data id=\"dataChegadaDe\"\n                                      name=\"dataChegadaDe\"\n                                      [(ngModel)]=\"filtro.dataI\"\n                                      data-title=\"{{'labels.dataChegadaDe' | translate}}\"\n                                      showFormatDateTime=\"true\">\n                            </app-data>\n                        </div>\n\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                            <label for=\"dataChegadaAte\">{{ 'labels.dataChegadaAte' | translate }}</label>\n                            <app-data id=\"dataChegadaAte\"\n                                      name=\"dataChegadaAte\"\n                                      [(ngModel)]=\"filtro.dataF\"\n                                      data-title=\"{{'labels.dataChegadaAte' | translate}}\"\n                                      showFormatDateTime=\"true\">\n                            </app-data>\n                        </div>\n\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                            <div class=\"form-check mt-4 py-2\">\n                                <input class=\"form-check-input\"\n                                       id=\"automatico\"\n                                       name=\"automatico\"\n                                       type=\"checkbox\">\n                                <label class=\"form-check-label\" for=\"automatico\">\n                                    {{'labels.automatico' | translate }}\n                                </label>\n                            </div>\n                        </div>\n                    </div>\n\n                    <app-pesquisa-destinatario\n                            [(ngModel)]=\"filtro.destinatarioIdCliente\"\n                            [disabled]=\"blockFields\"\n                            id=\"cliente\"\n                            name=\"cliente\"\n                            label=\"cliente\"\n                            title=\"cliente\"\n                            showCgcCpf=\"false\"\n                            showInscricao=\"false\">\n                    </app-pesquisa-destinatario>\n\n                    <app-pesquisa-material\n                            [(ngModel)]=\"filtro.materialId\"\n                            [disabled]=\"blockFields\"\n                            id=\"produto\"\n                            name=\"produto\"\n                            label=\"produto\"\n                            title=\"Produto\">\n                    </app-pesquisa-material>\n\n                    <app-pesquisa-destinatario\n                            [(ngModel)]=\"filtro.destinatarioIdTransportadora\"\n                            [disabled]=\"blockFields\"\n                            id=\"transportadora\"\n                            name=\"transportadora\"\n                            label=\"transportadora\"\n                            title=\"transportadora\"\n                            showCgcCpf=\"false\"\n                            showInscricao=\"false\">\n                    </app-pesquisa-destinatario>\n\n                    <div class=\"row mb-4\">\n                        <div class=\"col-lg-3 col-md-3 col-sd-12\">\n                            <label for=\"tipoBarra\">{{ 'labels.tipoDeBarra' | translate }}</label>\n                            <select class=\"form-control form-control-sm\"\n                                    id=\"tipoBarra\"\n                                    name=\"tipoBarra\"\n                                    [(ngModel)]=\"filtro.tipoBarra\">\n                                <option value=\"1\">{{ 'labels.ladoAlado' | translate }}</option>\n                                <option value=\"2\">{{ 'labels.empilhado' | translate }}</option>\n                                <option value=\"3\">{{ 'labels.empilhado100' | translate }}</option>\n                            </select>\n                        </div>\n\n                        <div class=\"col-lg-3 col-md-3 col-sd-12\">\n                            <label for=\"tipoBarra\">{{ 'labels.itensPorPagina' | translate }}</label>\n                            <input class=\"form-control form-control-sm\"\n                                   id=\"itensPorPagina\"\n                                   name=\"itensPorPagina\"\n                                   [(ngModel)]=\"filtro.itensPorPagina\">\n                        </div>\n\n                        <!-- <div class=\"col-lg-2 col-md-2 col-sm-12\">                               \n                            <label for=\"tipoBarra\">{{ 'labels.exibirEm' | translate }}</label>\n                            <div class=\"form-check\">\n                                <input class=\"form-check-input\" type=\"checkbox\" value=\"\" id=\"3d\">\n                                <label class=\"form-check-label\" for=\"3d\">\n                                    {{'labels.3d' | translate }}\n                                </label>\n                            </div>\n                        </div> -->\n                    </div>\n\n                    <div class=\"row mb-2\">\n                        <div class=\"col-lg-6 col-md-6\">\n                            <label>{{ 'labels.tipoOperacao' | translate }}</label>\n                            <div class=\"card\">\n                                <div class=\"card-body px-2 py-2\">\n                                    <div class=\"form-check\">\n                                        <input class=\"form-check-input\" type=\"radio\" id=\"tipoMovC\" name=\"tipoMov\"\n                                               value=\"C\" [(ngModel)]=\"filtro.tipoMov\">\n                                        <label class=\"form-check-label\" for=\"tipoMovC\">\n                                            {{'labels.carga' | translate }}\n                                        </label>\n                                    </div>\n                                    <div class=\"form-check\">\n                                        <input class=\"form-check-input\" type=\"radio\" id=\"tipoMovD\" name=\"tipoMov\"\n                                               value=\"D\" [(ngModel)]=\"filtro.tipoMov\">\n                                        <label class=\"form-check-label\" for=\"tipoMovD\">\n                                            {{'labels.descarga' | translate }}\n                                        </label>\n                                    </div>\n                                    <div class=\"form-check\">\n                                        <input class=\"form-check-input\" type=\"radio\" id=\"tipoMovT\" name=\"tipoMov\"\n                                               value=\"T\" [(ngModel)]=\"filtro.tipoMov\">\n                                        <label class=\"form-check-label\" for=\"tipoMovT\">\n                                            {{'labels.todos' | translate }}\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                        <div class=\"col-lg-6 col-md-6\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-inline\">\n                                        <label for=\"limiteMinutos\">{{ 'labels.limite' | translate }}</label>\n                                        <input class=\"form-control form-control-sm mr-2 ml-2\"\n                                               type=\"text\"\n                                               id=\"limiteMinutos\"\n                                               name=\"limiteMinutos\"\n                                               style=\"width: 55px; text-align: center;\"\n                                               [(ngModel)]=\"filtro.limiteMinutos\">\n                                        <label for=\"limiteMinutos\">{{ 'labels.minutos' | translate }}</label>\n                                    </div>\n\n                                    <div class=\"\">\n                                        <div class=\"\">\n                                            <div class=\"form-check\">\n                                                <input id=\"comChecklist\" class=\"form-check-input\"\n                                                       name=\"comChecklist\"\n                                                       type=\"checkbox\"\n                                                       [ngModel]=\"filtro.comCheckList === 'S'\"\n                                                       (ngModelChange)=\"filtro.comCheckList=$event?'S':'N'\">\n                                                <label class=\"form-check-label\" for=\"comChecklist\">\n                                                    {{'labels.comChecklist' | translate }}\n                                                </label>\n                                            </div>\n\n                                            <div class=\"form-check\">\n                                                <input id=\"emAndamento\" class=\"form-check-input\"\n                                                       name=\"emAndamento\"\n                                                       type=\"checkbox\"\n                                                       [ngModel]=\"filtro.emAndamento === 'S'\"\n                                                       (ngModelChange)=\"filtro.emAndamento=$event?'S':'N'\">\n                                                <label class=\"form-check-label\" for=\"emAndamento\">\n                                                    {{'labels.emAndamento' | translate }}\n                                                </label>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row mt-2\">\n                                <div class=\"col-lg-12\">\n                                    <label for=\"timer\">\n                                        {{ 'labels.intervaloDeVerificacao' | translate }}:\n                                        <strong> {{ value }} {{ 'labels.minutos' | translate }}</strong>\n                                    </label>\n                                    <div class=\"custom-slider\">\n                                        <ng5-slider id=\"timer\" [(value)]=\"value\" [options]=\"options\"></ng5-slider>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.consultar' | translate }}</button>\n                    <button type=\"button\" class=\"btn btn-default\"\n                            data-dismiss=\"modal\">{{ 'buttons.sair' | translate }}</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\r\n[sisFormularioId]=\"constantes.sisFormularioId\" \r\n [formAction]=\"\" \r\n [itemData]=\"\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"box-shadow prt\" style=\"padding: 10px; background-color: #fff;\" *ngIf=\"hasDados\">\r\n    <div class=\"row\">\r\n        <div id=\"divtitle\" class=\"col-lg-8 col-md-8 col-sm-12\">\r\n            <div class=\"text-center\">\r\n                <strong>{{ 'labels.controleDeVeiculos' | translate }} - {{ filtro.dataI | date:\"dd/MM/yyyy\" }} até {{ filtro.dataF | date:\"dd/MM/yyyy\" }}</strong>\r\n            </div>\r\n        </div>\r\n\r\n        <div class=\"col-lg-8 col-md-8 col-sm-12\">            \r\n            <div>\r\n                <canvas id=\"graphChart\" baseChart\r\n                    [datasets]=\"barChartData\" \r\n                    [labels]=\"barChartLabels\" \r\n                    [options]=\"barChartOptions\" \r\n                    [legend]=\"barChartLegend\" \r\n                    [chartType]=\"barChartType\" \r\n                    (chartClick)=\"openLabelDetails($event)\">\r\n                </canvas>\r\n            </div>\r\n        </div>\r\n\r\n        <div id=\"legendaprodutos\" class=\"col-lg-4 col-md-4 col-sm-12\"> \r\n            <div class=\"border mb-3 px-3 py-2\">                \r\n                <div class=\"form-inline\">\r\n                    <div class=\"mr-1\">\r\n                        {{ 'labels.pagina' | translate }}\r\n                    </div>\r\n                    <div class=\"mr-1\">\r\n                        <select class=\"form-control form-control-sm\" (change)=\"onChangePage($event.target.value)\">\r\n                            <option *ngFor=\"let item of _listaPaginas\">{{ item }}</option> \r\n                        </select>\r\n                    </div>\r\n                    <div>\r\n                        <span>De: &nbsp;</span>\r\n                        <strong> {{ _listaPaginas.length }} </strong>\r\n                    </div>                    \r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"border mb-3 px-3\">\r\n                <div class=\"row\"> \r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\"> \r\n                        <span style=\"color: rgb(255,0,0);\"><i class=\"fa fa-square\" aria-hidden=\"true\"></i>&nbsp;</span> \r\n                        <span>{{ 'labels.patio' | translate }}</span>\r\n                    </div>\r\n    \r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\"> \r\n                        <span style=\"color: rgb(0,128,0);\"><i class=\"fa fa-square\" aria-hidden=\"true\"></i>&nbsp;</span>                         \r\n                        <span>{{ 'labels.alertaPatio' | translate }}</span>           \r\n                    </div>\r\n                    \r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\"> \r\n                        <span style=\"color: rgb(0,0,255);\"><i class=\"fa fa-square\" aria-hidden=\"true\"></i>&nbsp;</span>                         \r\n                        <span>{{ 'labels.operacao' | translate }}</span>\r\n                    </div>\r\n    \r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\"> \r\n                        <span style=\"color: rgb(229, 255, 0);\"><i class=\"fa fa-square\" aria-hidden=\"true\"></i>&nbsp;</span>                         \r\n                        <span>{{ 'labels.alertaOperacao' | translate }}</span>                        \r\n                    </div>\r\n    \r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\"> \r\n                        <span style=\"color: rgb(0,0,0);\"><i class=\"fa fa-square\" aria-hidden=\"true\"></i>&nbsp;</span>                         \r\n                        <span>{{ 'labels.liberado' | translate }}</span>                                                                                \r\n                    </div> \r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"\">\r\n                <table class=\"table table-sm table-hover border\">\r\n                    <thead>\r\n                        <tr>\r\n                            <th>{{ 'labels.produto' | translate }}</th>\r\n                            <th>{{ 'labels.patio' | translate }}</th>\r\n                            <th>{{ 'labels.ope' | translate }}</th>\r\n                        </tr>\r\n                    </thead>\r\n                    <tbody>\r\n                        <tr *ngFor=\"let item of lista\">\r\n                            <td>{{item.descrMater}}</td>\r\n                            <td>{{item.patio}}</td>\r\n                            <td>{{item.operando}}</td>\r\n                        </tr>\r\n                    </tbody>\r\n                </table>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-tempo-de-operacao-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-tempo-de-operacao-filter>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n");

/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.component.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.component.ts ***!
  \******************************************************************************************************************/
/*! exports provided: TempoDeOperacaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoFilterComponent", function() { return TempoDeOperacaoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _tempo_de_operacao_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../tempo-de-operacao.model */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.model.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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var TempoDeOperacaoFilterComponent = /** @class */ (function () {
    function TempoDeOperacaoFilterComponent(message) {
        this.message = message;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.triggerFocus = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.options = {
            floor: 0,
            ceil: 30,
            showTicks: true,
            step: 5
        };
    }
    TempoDeOperacaoFilterComponent.prototype.ngOnInit = function () {
        this.value = 0;
        this.minValue = 6;
        this.maxValue = 30;
        this.triggerFocus.emit(0);
        this.filtro = new _tempo_de_operacao_model__WEBPACK_IMPORTED_MODULE_1__["TempoDeOperacaoFilter"]();
    };
    TempoDeOperacaoFilterComponent.prototype.onSubmit = function (form) {
        this.data.intervaloVerificacao = this.value;
        this.filtro.intervaloVerificacao = this.value;
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#historico-lote-filter-dialog").modal("hide");
    };
    TempoDeOperacaoFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _tempo_de_operacao_model__WEBPACK_IMPORTED_MODULE_1__["TempoDeOperacaoFilter"])
    ], TempoDeOperacaoFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], TempoDeOperacaoFilterComponent.prototype, "filtrar", void 0);
    TempoDeOperacaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-tempo-de-operacao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tempo-de-operacao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./tempo-de-operacao-filter.scss */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], TempoDeOperacaoFilterComponent);
    return TempoDeOperacaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.scss":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.scss ***!
  \**********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY29uc3VsdGFzL3RlbXBvLWRlLW9wZXJhY2FvL3RlbXBvLWRlLW9wZXJhY2FvLWZpbHRlci9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGNvbnN1bHRhc1xcdGVtcG8tZGUtb3BlcmFjYW9cXHRlbXBvLWRlLW9wZXJhY2FvLWZpbHRlclxcdGVtcG8tZGUtb3BlcmFjYW8tZmlsdGVyLnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2NvbnN1bHRhcy90ZW1wby1kZS1vcGVyYWNhby90ZW1wby1kZS1vcGVyYWNhby1maWx0ZXIvdGVtcG8tZGUtb3BlcmFjYW8tZmlsdGVyLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxtQkFBQTtFQUNBLFdBQUE7QUNDRjs7QURDQTtFQUNFLG1CQUFBO0FDRUY7O0FEQ0E7RUFDRSxVQUFBO0VBQ0EsWUFBQTtFQUNBLFNBQUE7RUFBVyxzQ0FBQTtFQUNYLFNBQUE7RUFDQSxzQkFBQTtFQUNBLDJCQUFBO0VBQ0EsNEJBQUE7QUNHRjs7QURBQTtFQUNFLGFBQUE7QUNHRjs7QURBQTtFQUNFLFlBQUE7QUNHRjs7QURBQTtFQUNFLGlCQUFBO0VBQ0EsY0FBQTtBQ0dGOztBREFBO0VBQ0UsVUFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxTQUFBO0FDR0Y7O0FEQUE7RUFDRSxtQkFBQTtBQ0dGIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvY29uc3VsdGFzL3RlbXBvLWRlLW9wZXJhY2FvL3RlbXBvLWRlLW9wZXJhY2FvLWZpbHRlci90ZW1wby1kZS1vcGVyYWNhby1maWx0ZXIuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLWJhciAge1xyXG4gIGJhY2tncm91bmQ6ICM3ODc0YWY7XHJcbiAgaGVpZ2h0OiAycHg7XHJcbn1cclxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItc2VsZWN0aW9uIHtcclxuICBiYWNrZ3JvdW5kOiAjYmQ3ZDA1O1xyXG59XHJcblxyXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci1wb2ludGVyIHtcclxuICB3aWR0aDogOHB4O1xyXG4gIGhlaWdodDogMTZweDtcclxuICB0b3A6IGF1dG87IC8qIHRvIHJlbW92ZSB0aGUgZGVmYXVsdCBwb3NpdGlvbmluZyAqL1xyXG4gIGJvdHRvbTogMDtcclxuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzMzO1xyXG4gIGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDNweDtcclxuICBib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogM3B4O1xyXG59XHJcblxyXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci1wb2ludGVyOmFmdGVyIHtcclxuICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci1idWJibGUge1xyXG4gIGJvdHRvbTogMTRweDtcclxufVxyXG5cclxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItbGltaXQge1xyXG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xyXG4gIGNvbG9yOiAjODI3ZWI1O1xyXG59XHJcblxyXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci10aWNrIHtcclxuICB3aWR0aDogMXB4O1xyXG4gIGhlaWdodDogMTBweDtcclxuICBtYXJnaW4tbGVmdDogNHB4O1xyXG4gIGJvcmRlci1yYWRpdXM6IDA7XHJcbiAgYmFja2dyb3VuZDogIzgyN2ViNTtcclxuICB0b3A6IC0xcHg7XHJcbn1cclxuXHJcbi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLXRpY2submc1LXNsaWRlci1zZWxlY3RlZCB7XHJcbiAgYmFja2dyb3VuZDogI2U0OTYwNztcclxufVxyXG4iLCIuY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci1iYXIge1xuICBiYWNrZ3JvdW5kOiAjNzg3NGFmO1xuICBoZWlnaHQ6IDJweDtcbn1cblxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItc2VsZWN0aW9uIHtcbiAgYmFja2dyb3VuZDogI2JkN2QwNTtcbn1cblxuLmN1c3RvbS1zbGlkZXIgLm5nNS1zbGlkZXIgLm5nNS1zbGlkZXItcG9pbnRlciB7XG4gIHdpZHRoOiA4cHg7XG4gIGhlaWdodDogMTZweDtcbiAgdG9wOiBhdXRvO1xuICAvKiB0byByZW1vdmUgdGhlIGRlZmF1bHQgcG9zaXRpb25pbmcgKi9cbiAgYm90dG9tOiAwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzMzO1xuICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiAzcHg7XG4gIGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiAzcHg7XG59XG5cbi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLXBvaW50ZXI6YWZ0ZXIge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci1idWJibGUge1xuICBib3R0b206IDE0cHg7XG59XG5cbi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLWxpbWl0IHtcbiAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gIGNvbG9yOiAjODI3ZWI1O1xufVxuXG4uY3VzdG9tLXNsaWRlciAubmc1LXNsaWRlciAubmc1LXNsaWRlci10aWNrIHtcbiAgd2lkdGg6IDFweDtcbiAgaGVpZ2h0OiAxMHB4O1xuICBtYXJnaW4tbGVmdDogNHB4O1xuICBib3JkZXItcmFkaXVzOiAwO1xuICBiYWNrZ3JvdW5kOiAjODI3ZWI1O1xuICB0b3A6IC0xcHg7XG59XG5cbi5jdXN0b20tc2xpZGVyIC5uZzUtc2xpZGVyIC5uZzUtc2xpZGVyLXRpY2submc1LXNsaWRlci1zZWxlY3RlZCB7XG4gIGJhY2tncm91bmQ6ICNlNDk2MDc7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-index/tempo-de-operacao-index.component.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-index/tempo-de-operacao-index.component.ts ***!
  \****************************************************************************************************************/
/*! exports provided: TempoDeOperacaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoIndexComponent", function() { return TempoDeOperacaoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__ = __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_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _tempo_de_operacao_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tempo-de-operacao.model */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.model.ts");
/* harmony import */ var _tempo_de_operacao_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tempo-de-operacao.service */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.service.ts");
/* harmony import */ var _tempo_de_operacao_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../tempo-de-operacao.constants */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.constants.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! chart.js */ "./node_modules/chart.js/dist/Chart.js");
/* harmony import */ var chart_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(chart_js__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.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 TempoDeOperacaoIndexComponent = /** @class */ (function (_super) {
    __extends(TempoDeOperacaoIndexComponent, _super);
    function TempoDeOperacaoIndexComponent(funcoesService, messageService, permissoesUtils, tempoDeOperacaoService, loginService) {
        var _this = _super.call(this, new _tempo_de_operacao_constants__WEBPACK_IMPORTED_MODULE_6__["TempoDeOperacaoConstants"](), funcoesService) || this;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.tempoDeOperacaoService = tempoDeOperacaoService;
        _this.loginService = loginService;
        _this.constantes = new _tempo_de_operacao_constants__WEBPACK_IMPORTED_MODULE_6__["TempoDeOperacaoConstants"]();
        _this.filtro = new _tempo_de_operacao_model__WEBPACK_IMPORTED_MODULE_4__["TempoDeOperacaoFilter"]();
        _this.hasDados = false;
        _this.loteDetail = new _tempo_de_operacao_model__WEBPACK_IMPORTED_MODULE_4__["TempoDeOperacaoDetail"]();
        _this._listaPaginas = [];
        /*-------------------------------------------------------------*/
        _this.barChartData = [];
        _this.barChartLabels = [];
        _this.barChartLegend = false;
        _this.barChartType = 'bar';
        _this.barChartOptions = {};
        _this.executaFiltro = function (event) {
            _this.filtro = event;
            _this.onRefresh();
        };
        _this.onPrint = function () {
            var imgBase64 = document.getElementsByTagName('canvas')[0].toDataURL();
            var printWindow = window.open('', 'IMPRIMIR', 'height=650,width=840');
            printWindow.document.write('<html><head><title>Tempo De Operação</title>');
            printWindow.document.write('<meta charset="utf-8">');
            printWindow.document.write('<meta name="viewport" content="width=device-width, initial-scale=1">');
            printWindow.document.write('<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" media="all">');
            printWindow.document.write('<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" media="all">');
            // printWindow.document.write('<style>@page {size:portrait;}</style>');
            printWindow.document.write('<style>@page {size:landscape;}</style>');
            printWindow.document.write('</head><body>');
            printWindow.document.write('<div class="container mt-5">');
            printWindow.document.write('<div class="row">');
            printWindow.document.write('<div class="col-lg-8 col-md-8 col-sm-12">');
            printWindow.document.write(jQuery("#divtitle").html());
            printWindow.document.write('</div>');
            printWindow.document.write('<div class="col-lg-8 col-md-8 col-sm-12">');
            printWindow.document.write("<img src=" + imgBase64 + " alt=\"tempo de opera\u00E7\u00E3o\" style=\"width:100%;\" />");
            printWindow.document.write('</div>');
            printWindow.document.write('<div class="col-lg-4 col-md-4 col-sm-12">');
            printWindow.document.write(jQuery("#legendaprodutos").html());
            printWindow.document.write('</div>');
            printWindow.document.write('</body></html>');
            printWindow.document.close();
            setTimeout(function () {
                printWindow.focus();
                printWindow.print();
                printWindow.close();
                return true;
            }, 1000);
        };
        return _this;
    }
    TempoDeOperacaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.addFuncoes.call(_this, [{ action: 'onPrint', func: function () { return _this.onPrint; } }]);
            _this.filtro.regLog = _this.loginService.getLogin().colaboradorId;
            _this._paginaAtual = 1;
            _this.filtrar();
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    TempoDeOperacaoIndexComponent.prototype.onRefresh = function () {
        var _this = this;
        this.barChartData = [];
        this.barChartLabels = [];
        this.barChartOptions = this.getBarChartOptions(this.filtro.tipoBarra);
        this.tempoDeOperacaoService.getGerais(this.filtro).subscribe(function (resp) {
            _this.lista = resp;
            _this.hasDados = (resp.detalhes.length > 0);
            if (_this.hasDados) {
                _this.dados = resp.detalhes;
                _this.lista = resp.produtos;
                var pageSize = (Math.ceil(_this.dados.length / _this.filtro.itensPorPagina));
                _this._listaPaginas = _this.generateListPages(pageSize);
                _this.renderGraph(_this.dados);
            }
            else {
                _this.messageService.info("Informação", "Nenhum registro encontrado para os parâmetros informado.");
                _this.filtro = new _tempo_de_operacao_model__WEBPACK_IMPORTED_MODULE_4__["TempoDeOperacaoFilter"]();
                _this.filtro.regLog = _this.loginService.getLogin().colaboradorId;
            }
        });
    };
    TempoDeOperacaoIndexComponent.prototype.onCancel = function () {
        this.dados = [];
        this.loteDetail = new _tempo_de_operacao_model__WEBPACK_IMPORTED_MODULE_4__["TempoDeOperacaoDetail"]();
        this.onRefresh();
    };
    TempoDeOperacaoIndexComponent.prototype.filtrar = function () {
        jQuery("#historico-lote-filter-dialog").modal("show");
    };
    TempoDeOperacaoIndexComponent.prototype.onChangePage = function (page) {
        this._paginaAtual = page;
        this.renderGraph(this.dados);
    };
    TempoDeOperacaoIndexComponent.prototype.renderGraph = function (dados) {
        var _this = this;
        var pagDe = (this._paginaAtual - 1) * this.filtro.itensPorPagina;
        var pagAte = this.filtro.itensPorPagina * this._paginaAtual;
        var _dadosTemp = dados;
        var listaPlacas = _dadosTemp.slice(pagDe, pagAte);
        this.barChartData = [];
        this.barChartLabels = [];
        this.barChartOptions = this.getBarChartOptions(this.filtro.tipoBarra);
        this.barChartLabels = listaPlacas.map(function (e) { return e.placaCavalo; });
        var veiculos = this.barChartLabels.slice(0, this.filtro.itensPorPagina);
        var dadosPatio = { backgroundColor: [], data: [], hoverBackgroundColor: 'rgb(225,0,0)', label: this.messageService.getTranslates('labels', 'patio') };
        listaPlacas.forEach(function (item) {
            if (item.alertaPatio === 'N') {
                dadosPatio.backgroundColor.push('rgb(225,0,0)');
                dadosPatio.data.push(_this.funcoesService.isNotUndefinedOrNull(item.patio) ? item.patio : 0);
            }
            else {
                dadosPatio.backgroundColor.push('rgb(225,0,0)');
                dadosPatio.data.push(0);
            }
        });
        this.barChartData.push(dadosPatio);
        var dadosAlertaPatio = { backgroundColor: [], data: [], hoverBackgroundColor: 'rgb(0,128,0)', label: this.messageService.getTranslates('labels', 'alertaPatio') };
        listaPlacas.forEach(function (item) {
            if (item.alertaPatio === 'S') {
                dadosAlertaPatio.backgroundColor.push('rgb(0,128,0)');
                dadosAlertaPatio.data.push(item.alertaPatio === 'S' ? item.patio : 0);
            }
            else {
                dadosAlertaPatio.backgroundColor.push('rgb(0,128,0)');
                dadosAlertaPatio.data.push(0);
            }
        });
        this.barChartData.push(dadosAlertaPatio);
        var dadosOperacao = { backgroundColor: [], data: [], hoverBackgroundColor: 'rgb(0,0,225)', label: this.messageService.getTranslates('labels', 'operacao') };
        listaPlacas.forEach(function (item) {
            if (item.alertaOperacao === 'N') {
                dadosOperacao.backgroundColor.push('rgb(0,0,225)');
                dadosOperacao.data.push(_this.funcoesService.isNotUndefinedOrNull(item.operacao) ? item.operacao : 0);
            }
            else {
                dadosOperacao.backgroundColor.push('rgb(0,0,225)');
                dadosOperacao.data.push(0);
            }
        });
        this.barChartData.push(dadosOperacao);
        var dadosAlertaOperacao = { backgroundColor: [], data: [], hoverBackgroundColor: 'rgb(229,225,0)', label: this.messageService.getTranslates('labels', 'alertaOperacao') };
        listaPlacas.forEach(function (item) {
            if (item.alertaOperacao === 'S') {
                dadosAlertaOperacao.backgroundColor.push('rgb(229,225,0)');
                dadosAlertaOperacao.data.push(item.alertaOperacao === 'S' ? item.operacao : 0);
            }
            else {
                dadosAlertaOperacao.backgroundColor.push('rgb(229,225,0)');
                dadosAlertaOperacao.data.push(0);
            }
        });
        this.barChartData.push(dadosAlertaOperacao);
        var dadosLiberados = { backgroundColor: [], data: [], hoverBackgroundColor: 'rgb(0,0,0)', label: this.messageService.getTranslates('labels', 'liberado') };
        listaPlacas.forEach(function (item) {
            if (item.liberado === '*') {
                dadosLiberados.backgroundColor.push('rgb(0,0,0)');
                dadosLiberados.data.push(2);
            }
            else {
                dadosLiberados.backgroundColor.push('rgb(0,0,0)');
                dadosLiberados.data.push(0);
            }
        });
        this.barChartData.push(dadosLiberados);
    };
    TempoDeOperacaoIndexComponent.prototype.updateTimer = function () {
        var _this = this;
        if (this.filtro.intervaloVerificacao === 0) {
            clearInterval(this._updateList);
            return;
        }
        var interval = this.filtro.intervaloVerificacao * 1000;
        this._updateList = setInterval(function () {
            _this.tempoDeOperacaoService.getByFiltro(_this.filtro).subscribe(function (resp) {
                _this.lista = resp;
                _this.hasDados = resp.length > 0;
            });
        }, interval);
    };
    TempoDeOperacaoIndexComponent.prototype.openLabelDetails = function (item) {
        if (item.active.length < 0) {
            return;
        }
        var labelFind = item.active[0]._model.label;
        // const itemSelected = this.dados.find(e => e.placaCavalo === labelFind);
        var itemSelected = this.dadosTemp.find(function (e) { return e.placaCavalo === labelFind; });
        var contentDetail = "<div class='row'>";
        contentDetail += " <div class='col-12'>";
        contentDetail += " <table class='table table-sm table-borderless'>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'checklist') + ":</td> <td class='text-left'> " + itemSelected.codCheckList + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'veiculo') + ":</td> <td class='text-left'> " + itemSelected.legenda + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'transportadora') + ":</td> <td class='text-left'> " + itemSelected.nomeTransp + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'produto') + ":</td> <td class='text-left'> " + itemSelected.descrMater + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'cliente') + ":</td> <td class='text-left'> " + itemSelected.fantasia + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'patioChegada') + ":</td> <td class='text-left'> " + (itemSelected.patioIni != null ? moment__WEBPACK_IMPORTED_MODULE_9__(itemSelected.patioIni).format("DD/MM/YYYY HH:mm:ss") : "") + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'patioSaida') + ":</td> <td class='text-left'> " + (itemSelected.patioFim != null ? moment__WEBPACK_IMPORTED_MODULE_9__(itemSelected.patioFim).format("DD/MM/YYYY HH:mm:ss") : "") + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'tempoPatio') + ":</td> <td class='text-left'> " + itemSelected.tempoLiberacaoReal + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'operacaoInicio') + ":</td> <td class='text-left'> " + (itemSelected.operIni != null ? moment__WEBPACK_IMPORTED_MODULE_9__(itemSelected.operIni).format("DD/MM/YYYY HH:mm:ss") : "") + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'operacaoFim') + ":</td> <td class='text-left'> " + (itemSelected.operFim != null ? moment__WEBPACK_IMPORTED_MODULE_9__(itemSelected.operFim).format("DD/MM/YYYY HH:mm:ss") : "") + " </td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'qtdeChamadas') + ":</td> <td class='text-left'> " + itemSelected.qtdeChamadas + "</td></tr>";
        contentDetail += " <tr><td class='text-left'>" + this.messageService.getTranslates('labels', 'tempoOperacao') + ":</td> <td class='text-left'> " + itemSelected.operacao + "</td></tr>";
        contentDetail += " </table></div></div>";
        this.messageService.showCustom(contentDetail);
    };
    TempoDeOperacaoIndexComponent.prototype.getBarChartOptions = function (tipoBarra) {
        var barChartOptions = {};
        if (this.filtro.tipoBarra === "1") {
            barChartOptions = {
                responsive: true,
                tooltips: {
                    enabled: false
                },
                scales: {
                    xAxes: [{
                            stacked: false,
                            display: true,
                            labelString: this.messageService.getTranslates('labels', 'veiculos'),
                            scaleLabel: {
                                display: true,
                                labelString: this.messageService.getTranslates('labels', 'veiculos')
                            }
                        }],
                    yAxes: [{
                            stacked: false,
                            display: true,
                            labelString: this.messageService.getTranslates('labels', 'minutos'),
                            scaleLabel: {
                                display: true,
                                labelString: this.messageService.getTranslates('labels', 'minutos')
                            }
                        }]
                }
            };
        }
        else {
            barChartOptions = {
                responsive: true,
                tooltips: {
                    enabled: false
                },
                scales: {
                    xAxes: [{
                            stacked: true,
                            display: true,
                            labelString: this.messageService.getTranslates('labels', 'veiculos'),
                            scaleLabel: {
                                display: true,
                                labelString: this.messageService.getTranslates('labels', 'veiculos')
                            }
                        }],
                    yAxes: [{
                            stacked: true,
                            display: true,
                            labelString: this.messageService.getTranslates('labels', 'minutos'),
                            scaleLabel: {
                                display: true,
                                labelString: this.messageService.getTranslates('labels', 'minutos')
                            }
                        }]
                }
            };
        }
        var 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_8__["plugins"].register(extrudePlugin);
        return barChartOptions;
    };
    TempoDeOperacaoIndexComponent.prototype.generateListPages = function (item) {
        var list = [];
        for (var x = 0; x < item; x++) {
            list.push(x + 1);
        }
        return list;
    };
    TempoDeOperacaoIndexComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: _tempo_de_operacao_service__WEBPACK_IMPORTED_MODULE_5__["TempoDeOperacaoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] }
    ]; };
    TempoDeOperacaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-tempo-de-operacao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./tempo-de-operacao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-index/tempo-de-operacao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./tempo-de-operacao-index.scss */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-index/tempo-de-operacao-index.scss")).default]
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            _tempo_de_operacao_service__WEBPACK_IMPORTED_MODULE_5__["TempoDeOperacaoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"]])
    ], TempoDeOperacaoIndexComponent);
    return TempoDeOperacaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-index/tempo-de-operacao-index.scss":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-index/tempo-de-operacao-index.scss ***!
  \********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-routing.module.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-routing.module.ts ***!
  \***************************************************************************************/
/*! exports provided: TempoDeOperacaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoRoutingModule", function() { return TempoDeOperacaoRoutingModule; });
/* 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 _tempo_de_operacao_index_tempo_de_operacao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tempo-de-operacao-index/tempo-de-operacao-index.component */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-index/tempo-de-operacao-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: _tempo_de_operacao_index_tempo_de_operacao_index_component__WEBPACK_IMPORTED_MODULE_3__["TempoDeOperacaoIndexComponent"],
        data: { breadcrumb: "TempoDeOperacao", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var TempoDeOperacaoRoutingModule = /** @class */ (function () {
    function TempoDeOperacaoRoutingModule() {
    }
    TempoDeOperacaoRoutingModule = __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"]]
        })
    ], TempoDeOperacaoRoutingModule);
    return TempoDeOperacaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.constants.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.constants.ts ***!
  \**********************************************************************************/
/*! exports provided: TempoDeOperacaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoConstants", function() { return TempoDeOperacaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TempoDeOperacaoConstants = /** @class */ (function () {
    function TempoDeOperacaoConstants() {
        this.sisFormularioId = 230038;
        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 = "CON";
        this.nomeForm = "titles.tempoDeOperacao";
        this.reportId = "CON9999";
        this.reportTitulo = { "titulo": "Tempo De Operação", "subTitulo": "" };
        this.configs = [];
        this.listaIndex = [
            { title: 'Consultar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Imprimir', action: 'onPrint', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return TempoDeOperacaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.model.ts":
/*!******************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.model.ts ***!
  \******************************************************************************/
/*! exports provided: TempoDeOperacaoFilter, TempoDeOperacaoDto, TempoDeOperacaoDetail */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoFilter", function() { return TempoDeOperacaoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoDto", function() { return TempoDeOperacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoDetail", function() { return TempoDeOperacaoDetail; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TempoDeOperacaoFilter = /** @class */ (function () {
    function TempoDeOperacaoFilter() {
        this.dataI = new Date();
        this.dataF = new Date();
        this.automatico = true;
        this.materialId = "";
        this.itensPorPagina = 12;
        this.comCheckList = "S";
        this.emAndamento = "S";
        this.tipoMov = "T";
        this.tipoBarra = "2";
        this.limite = 12;
        this.limiteMinutos = 300;
        this.intervaloVerificacao = 0;
    }
    return TempoDeOperacaoFilter;
}());

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

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



/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.module.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.module.ts ***!
  \*******************************************************************************/
/*! exports provided: TempoDeOperacaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoModule", function() { return TempoDeOperacaoModule; });
/* 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 _tempo_de_operacao_index_tempo_de_operacao_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tempo-de-operacao-index/tempo-de-operacao-index.component */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-index/tempo-de-operacao-index.component.ts");
/* harmony import */ var _tempo_de_operacao_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tempo-de-operacao-routing.module */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-routing.module.ts");
/* harmony import */ var _tempo_de_operacao_filter_tempo_de_operacao_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tempo-de-operacao-filter/tempo-de-operacao-filter.component */ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao-filter/tempo-de-operacao-filter.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 TempoDeOperacaoModule = /** @class */ (function () {
    function TempoDeOperacaoModule() {
    }
    TempoDeOperacaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _tempo_de_operacao_routing_module__WEBPACK_IMPORTED_MODULE_3__["TempoDeOperacaoRoutingModule"]],
            declarations: [_tempo_de_operacao_index_tempo_de_operacao_index_component__WEBPACK_IMPORTED_MODULE_2__["TempoDeOperacaoIndexComponent"], _tempo_de_operacao_filter_tempo_de_operacao_filter_component__WEBPACK_IMPORTED_MODULE_4__["TempoDeOperacaoFilterComponent"]]
        })
    ], TempoDeOperacaoModule);
    return TempoDeOperacaoModule;
}());



/***/ }),

/***/ "./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.service.ts":
/*!********************************************************************************!*\
  !*** ./src/app/pages/consultas/tempo-de-operacao/tempo-de-operacao.service.ts ***!
  \********************************************************************************/
/*! exports provided: TempoDeOperacaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TempoDeOperacaoService", function() { return TempoDeOperacaoService; });
/* 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 _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 TempoDeOperacaoService = /** @class */ (function (_super) {
    __extends(TempoDeOperacaoService, _super);
    function TempoDeOperacaoService(http) {
        var _this = _super.call(this, http, "v1/consultas/consultaTempoOper") || this;
        _this.http = http;
        return _this;
    }
    TempoDeOperacaoService.prototype.get = function () {
        return null;
    };
    TempoDeOperacaoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/consultas/consultaTempoOper/getGerais", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TempoDeOperacaoService.prototype.getGerais = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/consultas/consultaTempoOper/getGerais", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    TempoDeOperacaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    TempoDeOperacaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], TempoDeOperacaoService);
    return TempoDeOperacaoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-consultas-tempo-de-operacao-tempo-de-operacao-module.js.map