(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cargill-consultas-taxa-ocupacao-terminal-taxa-ocupacao-terminal-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-index.component.html":
/*!*******************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-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\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div class=\"row mb-4\">\r\n        <div class=\"col-12\">\r\n            <div class=\"card\">\r\n                <div class=\"card-body widget-body\">\r\n                    <div class=\"form-check form-check-inline\">\r\n                        <input class=\"form-check-input\" id=\"radioDefault\" name=\"tipoOper\"\r\n                            [(ngModel)]=\"consultaSaldoService.tipo\" type=\"radio\" value=\"1\" required\r\n                            (ngModelChange)=\"validaOption($event)\">\r\n                        <label class=\"form-check-label\" for=\"radioDefault\">{{ 'labels.fiscal' |\r\n                            translate }}\r\n                        </label>\r\n                    </div>\r\n                    <div class=\"form-check form-check-inline\">\r\n                        <input class=\"form-check-input\" id=\"radioPrimary\" name=\"tipoOper\"\r\n                            [(ngModel)]=\"consultaSaldoService.tipo\" type=\"radio\" value=\"2\" required\r\n                            (ngModelChange)=\"validaOption($event)\">\r\n                        <label class=\"form-check-label\" for=\"radioPrimary\">{{ 'labels.fisico' |\r\n                            translate }}\r\n                        </label>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class=\"row\">\r\n        <div class=\"consulta-content\">\r\n            <div class=\"consulta-nivel\">\r\n                <div class=\"nivel-capacidade\">\r\n                    <div class=\"texto-capacidade\">\r\n                        {{ 'labels.capacKg' | translate }}\r\n                    </div>\r\n\r\n                </div>\r\n                <div class=\"nivel-medida\">\r\n                    <p class=\"nivel--minimo-maximo\">\r\n                        {{ data?.capacidade | formatCurrency: 0 }}\r\n                    </p>\r\n                    <p>&nbsp;</p>\r\n                    <p>{{ calcParcialCapacidade(80) | formatCurrency: 0 }}</p>\r\n                    <p>&nbsp;</p>\r\n                    <p>{{ calcParcialCapacidade(60) | formatCurrency: 0 }}</p>\r\n                    <p>&nbsp;</p>\r\n                    <p>{{ calcParcialCapacidade(40) | formatCurrency: 0 }}</p>\r\n                    <p>&nbsp;</p>\r\n                    <p>{{ calcParcialCapacidade(20) | formatCurrency: 0 }}</p>\r\n                    <p>&nbsp;</p>\r\n                    <p class=\"nivel--minimo-maximo\">0</p>\r\n                </div>\r\n            </div>\r\n            <div class=\"consulta-grafico\">\r\n                <div class=\"consulta-imagem\">\r\n                    <img class=\"medida\" src=\"assets/img/medida.png\">\r\n                    <div class=\"tanque\">\r\n                        <img class=\"tanque-base\" src=\"assets/img/tanque.png\">\r\n                        <div class=\"tanque-status\">\r\n                            <img class=\"topo\" src=\"assets/img/topo.png\">\r\n                            <img [ngStyle]=\"{'height': ((465 * data?.ptOcupado)/100) + 'px'}\" class=\"medicao\"\r\n                                src=\"assets/img/capacidade.png\">\r\n                        </div>\r\n                        <div class=\"tanque-perc\">\r\n                            <p\r\n                                [ngClass]=\"{ 'ok' : isVlrColor === 1 , 'warning' : isVlrColor === 2 , 'danger' : isVlrColor === 3 }\">\r\n                                {{ data?.ptOcupado | formatCurrency: 2 }}{{ '%' }}</p>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"consulta-footer\">\r\n                    <p>{{ 'labels.ocupado' | translate }}: {{ data?.ocupado | formatCurrency: 0 }}</p>\r\n                    <p>{{ 'labels.utilizado' | translate }}: {{ data?.ptOcupado | formatCurrency: 2 }}{{ '%' }}</p>\r\n                    <p>{{ 'labels.livre' | translate }}: {{ data?.livre | formatCurrency: 0 }}</p>\r\n                </div>\r\n            </div>\r\n            <div class=\"consulta-valores\">\r\n                <p *ngIf=\"showTextoLateral(data?.texto1)\">{{ data?.texto1 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto2)\">{{ data?.texto2 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto3)\">{{ data?.texto3 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto4)\">{{ data?.texto4 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto5)\">{{ data?.texto5 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto6)\">{{ data?.texto6 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto7)\">{{ data?.texto7 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto8)\">{{ data?.texto8 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto9)\">{{ data?.texto9 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto10)\">{{ data?.texto10 }}</p>\r\n                <p *ngIf=\"showTextoLateral(data?.texto11)\">{{ data?.texto11 }}</p>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-index.component.scss":
/*!*****************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-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"] = (".consulta-content {\n  width: 763px;\n  height: 600px;\n  display: flex;\n}\n\n.consulta-nivel {\n  height: 100%;\n  width: 25%;\n}\n\n.nivel-capacidade {\n  text-align: right;\n  padding-right: 10px;\n  font-weight: bold;\n  height: 30px;\n  line-height: 30px;\n}\n\n.nivel--minimo-maximo {\n  font-weight: bold;\n  font-size: 16px !important;\n}\n\n.nivel-medida {\n  height: 472px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n}\n\n.nivel-medida p {\n  margin: 0;\n  padding: 0;\n  text-align: right;\n  padding-right: 10px;\n  font-size: 12px;\n}\n\n.consulta-grafico {\n  height: 100%;\n  width: 55%;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n}\n\n.consulta-imagem {\n  height: calc(100% - 90px);\n  width: 100%;\n  display: flex;\n}\n\n.consulta-imagem .medida {\n  width: 25px;\n}\n\n.consulta-imagem .tanque {\n  position: relative;\n  display: flex;\n  justify-content: center;\n}\n\n.tanque .tanque-perc {\n  position: absolute;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 100%;\n  font-weight: 800;\n  font-size: 28px;\n}\n\n.tanque-perc p {\n  padding: 5px;\n  border-radius: 5px;\n  -webkit-animation: coner 0.5s infinite;\n          animation: coner 0.5s infinite;\n}\n\n@-webkit-keyframes coner {\n  0% {\n    border-top: 2px solid;\n    border-right: 2px solid transparent;\n    border-bottom: 2px solid transparent;\n    border-left: 2px solid transparent;\n  }\n  25% {\n    border-top: 2px solid transparent;\n    border-right: 2px solid;\n    border-bottom: 2px solid transparent;\n    border-left: 2px solid transparent;\n  }\n  75% {\n    border-top: 2px solid transparent;\n    border-right: 2px solid transparent;\n    border-bottom: 2px solid;\n    border-left: 2px solid transparent;\n  }\n  100% {\n    border-top: 2px solid transparent;\n    border-right: 2px solid transparent;\n    border-bottom: 2px solid transparent;\n    border-left: 2px solid;\n  }\n}\n\n@keyframes coner {\n  0% {\n    border-top: 2px solid;\n    border-right: 2px solid transparent;\n    border-bottom: 2px solid transparent;\n    border-left: 2px solid transparent;\n  }\n  25% {\n    border-top: 2px solid transparent;\n    border-right: 2px solid;\n    border-bottom: 2px solid transparent;\n    border-left: 2px solid transparent;\n  }\n  75% {\n    border-top: 2px solid transparent;\n    border-right: 2px solid transparent;\n    border-bottom: 2px solid;\n    border-left: 2px solid transparent;\n  }\n  100% {\n    border-top: 2px solid transparent;\n    border-right: 2px solid transparent;\n    border-bottom: 2px solid transparent;\n    border-left: 2px solid;\n  }\n}\n\n.tanque-perc.ok,\n.tanque-perc p.ok {\n  color: #645e5e;\n  border-color: #645e5e;\n}\n\n.tanque-perc.danger,\n.tanque-perc p.danger {\n  color: #f70707;\n  border-color: #f70707;\n}\n\n.tanque-perc.warning,\n.tanque-perc p.warning {\n  color: #e69730;\n  border-color: #e69730;\n}\n\n.tanque .tanque-base {\n  width: 95%;\n  height: 100%;\n  margin: auto;\n}\n\n.tanque .tanque-status {\n  position: absolute;\n  bottom: 0;\n  width: 92%;\n  padding-bottom: 1px;\n  display: flex;\n  flex-direction: column;\n}\n\n.tanque-status .topo {\n  height: 10px;\n  width: 100%;\n  border-radius: 400px 400px 10px 10px;\n}\n\n.tanque-status .medicao {\n  height: 465px;\n  width: 100%;\n  margin-bottom: 7px;\n}\n\n.consulta-footer {\n  height: 90px;\n  padding-left: 35px;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n\n.consulta-footer p {\n  margin: 0;\n  padding: 4px 0;\n  font-size: 12px;\n}\n\n.consulta-valores {\n  width: 40%;\n  padding-top: 30px;\n}\n\n.consulta-valores p {\n  margin: 0;\n  padding: 4px 0;\n  font-size: 12px;\n}\n\n.consulta-tipo {\n  width: 30%;\n  padding-top: 30px;\n  padding-left: 30px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-index.component.ts":
/*!***************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-index.component.ts ***!
  \***************************************************************************************************************************************************/
/*! exports provided: TaxaOcupacaoTerminalIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaxaOcupacaoTerminalIndexComponent", function() { return TaxaOcupacaoTerminalIndexComponent; });
/* 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 app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _taxa_ocupacao_terminal_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../taxa-ocupacao-terminal.model */ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.model.ts");
/* harmony import */ var _taxa_ocupacao_terminal_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../taxa-ocupacao-terminal.constants */ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.constants.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _cadastro_tanque_tanque_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../cadastro/tanque/tanque.model */ "./src/app/pages/cadastro/tanque/tanque.model.ts");
/* harmony import */ var _taxa_ocupacao_terminal_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../taxa-ocupacao-terminal.service */ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.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 app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __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 TaxaOcupacaoTerminalIndexComponent = /** @class */ (function (_super) {
    __extends(TaxaOcupacaoTerminalIndexComponent, _super);
    function TaxaOcupacaoTerminalIndexComponent(messageService, permissoesUtils, consultaSaldoService, excelService, loginService, funcoesService, reportService) {
        var _this = _super.call(this, new _taxa_ocupacao_terminal_constants__WEBPACK_IMPORTED_MODULE_6__["TaxaOcupacaoTerminalConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.consultaSaldoService = consultaSaldoService;
        _this.excelService = excelService;
        _this.loginService = loginService;
        _this.funcoesService = funcoesService;
        _this.reportService = reportService;
        _this.data = new _taxa_ocupacao_terminal_model__WEBPACK_IMPORTED_MODULE_5__["TaxaOcupacaoTerminal"]();
        _this.constantes = new _taxa_ocupacao_terminal_constants__WEBPACK_IMPORTED_MODULE_6__["TaxaOcupacaoTerminalConstants"]();
        _this.tanqueId = "";
        _this.refresh = function () {
            _this.consultaSaldoService.getDados({ "tipo": _this.consultaSaldoService.tipo }).subscribe(function (resp) {
                _this.dados = resp;
                _this.data = resp[0] === null ? new _taxa_ocupacao_terminal_model__WEBPACK_IMPORTED_MODULE_5__["TaxaOcupacaoTerminal"]() : resp[0];
                _this.isVlrColor = _this.showColorTanque();
            });
        };
        _this.executaFiltro = function () {
            if (!_this.dados || _this.dados.length === 0) {
                _this.messageService.warning('titles.taxaOcupacaoTerminal', 'messages.naoExistemDadosParaExportacao');
                return;
            }
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.print = function () {
            var login = _this.loginService.getLogin();
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                _this.constantes.paramRelatorio = {
                    filialId: _this.loginService.getLogin().filialId
                };
                _super.prototype.print.call(_this, null, true);
            });
        };
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                _this.constantes.paramRelatorio = {
                    filialId: _this.loginService.getLogin().filialId
                };
                _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                    var headerDictionary = {
                        "capacidade": "capacidade",
                        "ocupado": "ocupado",
                        "livre": "livre",
                        "ptOcupado": "ptOcupado",
                        "texto1": "detalhes",
                        "texto2": "detalhes",
                        "texto3": "detalhes",
                        "texto4": "detalhes",
                        "texto5": "detalhes",
                        "texto6": "detalhes",
                        "texto7": "detalhes",
                        "texto8": "detalhes",
                        "texto9": "detalhes",
                        "texto10": "detalhes",
                        "texto11": "detalhes"
                    };
                    var options = {
                        headerJsonKeys: true,
                        headerDictionary: headerDictionary
                    };
                    var dadosAux = _this.dados;
                    dadosAux.forEach(function (r) {
                        if (r.texto1 === "Importação Comum: 0 - 0,00%")
                            delete r.texto1;
                        if (r.texto2 === "Entreposto Importação: 0 - 0,00%")
                            delete r.texto2;
                        if (r.texto3 === "Mercado Interno: 0 - 0,00%")
                            delete r.texto3;
                        if (r.texto4 === "Cabotagem: 0 - 0,00%")
                            delete r.texto4;
                        if (r.texto5 === "Transito: 0 - 0,00%")
                            delete r.texto5;
                        if (r.texto6 === "Exportação Comum: 0 - 0,00%")
                            delete r.texto6;
                        if (r.texto7 === "Entreposto Exportação: 0 - 0,00%")
                            delete r.texto7;
                        if (r.texto8 === "DAC: 0 - 0,00%")
                            delete r.texto8;
                        if (r.texto9 === "Descarga Direta: 0 - 0,00%")
                            delete r.texto9;
                        if (r.texto10 === "Redex: 0 - 0,00%")
                            delete r.texto10;
                        if (r.texto11 === "Pesagem Fluxo: 0 - 0,00%")
                            delete r.texto11;
                    });
                    _this.excelService.exportAsExcelFile(dadosAux, _this.messageService.getTranslates("titles", "relSaldoEmContaCorrente"), options);
                });
            });
        };
        return _this;
    }
    TaxaOcupacaoTerminalIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.refresh();
            _this._updateGrafico = setInterval(function () {
                _this.refresh();
            }, app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].toMilissegundos('30s'));
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'export', func: function () { return _this.export; } },
        ]);
        var filtro = new _cadastro_tanque_tanque_model__WEBPACK_IMPORTED_MODULE_8__["TanqueFilter"]();
        filtro.tipoDeposito = "T";
        filtro.flagAtivo = "S";
        filtro.filialId = this.loginService.getLogin().filialId;
    };
    TaxaOcupacaoTerminalIndexComponent.prototype.ngOnDestroy = function () {
        if (this._updateGrafico) {
            clearInterval(this._updateGrafico);
        }
    };
    TaxaOcupacaoTerminalIndexComponent.prototype.calcParcialCapacidade = function (partial) {
        var result = (((this.data == null ? 0 : this.data.capacidade) * partial) / 100);
        return Math.trunc(result);
    };
    TaxaOcupacaoTerminalIndexComponent.prototype.showColorTanque = function () {
        // 1 - ok, 2 - warning, 3 - danger
        if (this.data && this.data.ptOcupado > 0) {
            return this.data.ptOcupado < 40.01 ? 1 : (this.data.ptOcupado > 80.00 ? 3 : 2);
        }
        else {
            return 1;
        }
    };
    TaxaOcupacaoTerminalIndexComponent.prototype.showTextoLateral = function (texto) {
        if (this.funcoesService.isNotUndefinedOrNull(texto)) {
            var perc = texto.split(':');
            var valor = perc[1];
            return valor !== " 0 - 0,00%";
        }
        else
            return false;
    };
    TaxaOcupacaoTerminalIndexComponent.prototype.validaOption = function (event) {
        this.refresh();
    };
    TaxaOcupacaoTerminalIndexComponent.ctorParameters = function () { return [
        { 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_4__["PermissoesUtilsService"] },
        { type: _taxa_ocupacao_terminal_service__WEBPACK_IMPORTED_MODULE_9__["TaxaOcupacaoTerminalService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_7__["ExcelService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_11__["ReportService"] }
    ]; };
    TaxaOcupacaoTerminalIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-taxa-ocupacao-terminal-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./taxa-ocupacao-terminal-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./taxa-ocupacao-terminal-index.component.scss */ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_4__["PermissoesUtilsService"],
            _taxa_ocupacao_terminal_service__WEBPACK_IMPORTED_MODULE_9__["TaxaOcupacaoTerminalService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_7__["ExcelService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_11__["ReportService"]])
    ], TaxaOcupacaoTerminalIndexComponent);
    return TaxaOcupacaoTerminalIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.constants.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.constants.ts ***!
  \****************************************************************************************************************/
/*! exports provided: TaxaOcupacaoTerminalConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaxaOcupacaoTerminalConstants", function() { return TaxaOcupacaoTerminalConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TaxaOcupacaoTerminalConstants = /** @class */ (function () {
    function TaxaOcupacaoTerminalConstants() {
        this.sisFormularioId = 65691;
        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" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.exportExcel" },
        ];
        this.sisSistemaId = "CON";
        this.nomeForm = "titles.taxaOcupacaoTerminal";
        this.reportTitulo = { "titulo": "Taxa de Ocupação Terminal", "subTitulo": "" };
        this.reportId = "CAR0012";
        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: 'exportExcel', action: 'export', icon: "fa fa-file-excel-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return TaxaOcupacaoTerminalConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.model.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.model.ts ***!
  \************************************************************************************************************/
/*! exports provided: TaxaOcupacaoTerminal */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaxaOcupacaoTerminal", function() { return TaxaOcupacaoTerminal; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TaxaOcupacaoTerminal = /** @class */ (function () {
    function TaxaOcupacaoTerminal() {
        this.capacidade = 0;
        this.ocupado = 0;
        this.livre = 0;
        this.ptOcupado = 0;
        this.intervaloVerificacao = 0;
        this.tipo = "1";
    }
    return TaxaOcupacaoTerminal;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.module.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.module.ts ***!
  \*************************************************************************************************************/
/*! exports provided: TaxaOcupacaoTerminalModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaxaOcupacaoTerminalModule", function() { return TaxaOcupacaoTerminalModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _taxa_ocupacao_terminal_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./taxa-ocupacao-terminal.routing.module */ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.routing.module.ts");
/* harmony import */ var _taxa_ocupacao_terminal_index_taxa_ocupacao_terminal_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-index.component */ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-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 TaxaOcupacaoTerminalModule = /** @class */ (function () {
    function TaxaOcupacaoTerminalModule() {
    }
    TaxaOcupacaoTerminalModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _taxa_ocupacao_terminal_routing_module__WEBPACK_IMPORTED_MODULE_2__["TaxaOcupacaoTerminalRoutingModule"]],
            declarations: [_taxa_ocupacao_terminal_index_taxa_ocupacao_terminal_index_component__WEBPACK_IMPORTED_MODULE_3__["TaxaOcupacaoTerminalIndexComponent"]]
        })
    ], TaxaOcupacaoTerminalModule);
    return TaxaOcupacaoTerminalModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.routing.module.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.routing.module.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: TaxaOcupacaoTerminalRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TaxaOcupacaoTerminalRoutingModule", function() { return TaxaOcupacaoTerminalRoutingModule; });
/* 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 _taxa_ocupacao_terminal_index_taxa_ocupacao_terminal_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-index.component */ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal-index/taxa-ocupacao-terminal-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: _taxa_ocupacao_terminal_index_taxa_ocupacao_terminal_index_component__WEBPACK_IMPORTED_MODULE_2__["TaxaOcupacaoTerminalIndexComponent"],
        data: { breadcrumb: "taxaOcupacaoTerminal" }
    }
];
var TaxaOcupacaoTerminalRoutingModule = /** @class */ (function () {
    function TaxaOcupacaoTerminalRoutingModule() {
    }
    TaxaOcupacaoTerminalRoutingModule = __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"]]
        })
    ], TaxaOcupacaoTerminalRoutingModule);
    return TaxaOcupacaoTerminalRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.service.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/consultas/taxa-ocupacao-terminal/taxa-ocupacao-terminal.service.ts ***!
  \**************************************************************************************************************/
/*! exports provided: TaxaOcupacaoTerminalService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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






var TaxaOcupacaoTerminalService = /** @class */ (function (_super) {
    __extends(TaxaOcupacaoTerminalService, _super);
    function TaxaOcupacaoTerminalService(http) {
        var _this = _super.call(this, http, "cargill/consultas/taxaOcupacaoTerminal") || this;
        _this.http = http;
        _this.tipo = "1";
        return _this;
    }
    TaxaOcupacaoTerminalService.prototype.getDados = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].specifics_service_url + "/api/v1/cargill/consultas/conTaxaOcupacaoTerminal/getDados", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    TaxaOcupacaoTerminalService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    TaxaOcupacaoTerminalService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], TaxaOcupacaoTerminalService);
    return TaxaOcupacaoTerminalService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cargill-consultas-taxa-ocupacao-terminal-taxa-ocupacao-terminal-module.js.map