(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-movimentos-monitor-automacao-monitor-automacao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.html":
/*!*************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.html ***!
  \*************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-automacao-ajuste-ocr-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-50\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div id=\"placasOcr\" class=\"row\">\r\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"placaConf1\">\r\n                                    {{ \"labels.placaConf\" | translate }} 1\r\n                                </label>\r\n                                <input id=\"placaConf1\" name=\"placaConf1\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    maxlength=\"18\"\r\n                                    [(ngModel)]=\"data.placaConf1\"/>\r\n                            </div>\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ocrPlaca1\">\r\n                                    {{ \"labels.ocr\" | translate }} {{ \"labels.placa\" | translate }} 1\r\n                                </label>\r\n                                <input id=\"ocrPlaca1\" name=\"ocrPlaca1\" disabled\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    [(ngModel)]=\"data.ocrPlaca1\"/>\r\n                            </div>\r\n                            <div class=\"form-group form-group-sm mt-4\">\r\n                                <label for=\"fotoPlaca1\">\r\n                                    {{'labels.foto' | translate}} {{'labels.placa' | translate}} 1\r\n                                </label>\r\n                                <img *ngIf=\"existeFotoPlaca(data.arquivoPlaca1, data.fotoPlaca1)\" id=\"fotoPlaca1\" class=\"img-preview\"\r\n                                    [src]=\"getSrcImagemPlaca(data.arquivoPlaca1, data.fotoPlaca1)\">\r\n                                <div class=\"no-img-preview\" *ngIf=\"!existeFotoPlaca(data.arquivoPlaca1, data.fotoPlaca1)\">\r\n                                    <img src=\"assets/img/picture.png\">\r\n                                    <label>{{ \"messages.fotoNaoEncontrada\" | translate }}</label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"placaConf2\">\r\n                                    {{ \"labels.placaConf\" | translate }} 2\r\n                                </label>\r\n                                <input id=\"placaConf2\" name=\"placaConf2\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    maxlength=\"18\"\r\n                                    [(ngModel)]=\"data.placaConf2\"/>\r\n                            </div>\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ocrPlaca2\">\r\n                                    {{ \"labels.ocr\" | translate }} {{ \"labels.placa\" | translate }} 2\r\n                                </label>\r\n                                <input id=\"ocrPlaca2\" name=\"ocrPlaca2\" disabled\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    [(ngModel)]=\"data.ocrPlaca2\"/>\r\n                            </div>\r\n                            <div class=\"form-group form-group-sm mt-4\">\r\n                                <label for=\"fotoPlaca2\">\r\n                                    {{'labels.foto' | translate}} {{'labels.placa' | translate}} 2\r\n                                </label>\r\n                                <img *ngIf=\"existeFotoPlaca(data.arquivoPlaca2, data.fotoPlaca2)\" id=\"fotoPlaca2\" class=\"img-preview\"\r\n                                    [src]=\"getSrcImagemPlaca(data.arquivoPlaca2, data.fotoPlaca2)\">\r\n                                <div class=\"no-img-preview\" *ngIf=\"!existeFotoPlaca(data.arquivoPlaca2, data.fotoPlaca2)\">\r\n                                    <img src=\"assets/img/picture.png\">\r\n                                    <label>{{ \"messages.fotoNaoEncontrada\" | translate }}</label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"placaConf3\">\r\n                                    {{ \"labels.placaConf\" | translate }} 3\r\n                                </label>\r\n                                <input id=\"placaConf3\" name=\"placaConf3\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    maxlength=\"18\"\r\n                                    [(ngModel)]=\"data.placaConf3\"/>\r\n                            </div>\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ocrPlaca3\">\r\n                                    {{ \"labels.ocr\" | translate }} {{ \"labels.placa\" | translate }} 3\r\n                                </label>\r\n                                <input id=\"ocrPlaca3\" name=\"ocrPlaca3\" disabled\r\n                                    class=\"form-control form-control-sm\" type=\"text\"\r\n                                    [(ngModel)]=\"data.ocrPlaca3\"/>\r\n                            </div>\r\n                            <div class=\"form-group form-group-sm mt-4\">\r\n                                <label for=\"fotoPlaca3\">\r\n                                    {{'labels.foto' | translate}} {{'labels.placa' | translate}} 3\r\n                                </label>\r\n                                <img *ngIf=\"existeFotoPlaca(data.arquivoPlaca3, data.fotoPlaca3)\" id=\"fotoPlaca3\" class=\"img-preview\"\r\n                                    [src]=\"getSrcImagemPlaca(data.arquivoPlaca3, data.fotoPlaca3)\">\r\n                                <div class=\"no-img-preview\" *ngIf=\"!existeFotoPlaca(data.arquivoPlaca3, data.fotoPlaca3)\">\r\n                                    <img src=\"assets/img/picture.png\">\r\n                                    <label>{{ \"messages.fotoNaoEncontrada\" | translate }}</label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.salvar' | translate }}</button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                        {{ 'buttons.sair' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-filter/monitor-automacao-filter.component.html":
/*!*****************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-filter/monitor-automacao-filter.component.html ***!
  \*****************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-automacao-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.filter\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label class=\"required\" for=\"periodoDe\">{{ 'labels.periodoDe' | translate }}</label>\r\n                                <app-data-h-m-s id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\r\n                                    [(ngModel)]=\"service.filter.dataI\">\r\n                                </app-data-h-m-s>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label class=\"required\" for=\"ate\">{{ 'labels.ate' | translate }}</label>\r\n                                <app-data-h-m-s id=\"ate\" name=\"ate\" required=\"true\"\r\n                                    [(ngModel)]=\"service.filter.dataF\">\r\n                                </app-data-h-m-s>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"idTotem\">{{'labels.totem' | translate}}</label>\r\n                                <input id=\"idTotem\" name=\"idTotem\"\r\n                                    class=\"form-control form-control-sm\"\r\n                                    type=\"text\"\r\n                                    maxlength=\"10\"\r\n                                    [(ngModel)]=\"service.filter.idTotem\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\">{{'labels.situacao' | translate}}</label>\r\n                                <select id=\"situacao\" name=\"situacao\" class=\"form-control form-control-sm\"\r\n                                    [(ngModel)]=\"service.filter.status\">\r\n                                    <option *ngFor=\"let status of listaStatus\" [value]=\"status.value\">\r\n                                        {{ status.label | translate }}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                        {{ 'buttons.sair' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-index.component.html":
/*!***************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-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\"\n    [itemData]=\"data?.sequencia\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-table>\n        <div class=\"table-responsive\">\n            <table id=\"maintable\"\n                class=\"table table-striped table-bordered table-hover nowrap table-sm table-responsive\">\n                <thead>\n                    <tr>\n                        <th class=\"text-center\">{{ 'labels.sel' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.sequencia' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.origem' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.ccd' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.dataHora' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.cartao' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placa' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.peso' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.balanca' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.tipo' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.sitReg' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.guardian' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.gate' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.sessao' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.ocrPlaca' | translate }} 1</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.ocrPlaca' | translate }} 2</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.ocrPlaca' | translate }} 3</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.motNome' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.motCpf' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.codCheckList' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.mensagem' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.nrOS' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.totem' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.tipoTotem' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaConf' | translate }} 1</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaConf' | translate }} 2</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaConf' | translate }} 3</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.docMotorista' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.docMotoristaDig' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.terminal' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.terminalPesagem' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.nrPesagem' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.tanqueId' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.motivoCancelamento' | translate }}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.dtCancelamento' | translate }}</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                        [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                        <td class=\"text-center\">\n                            <label class=\"chk\">\n                                <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\" disabled>\n                                <span [ngClass]=\"{'red':t.flag}\"></span>\n                            </label>\n                        </td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.sequencia }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.regOrigem }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.cCD }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.dtRegistro | date: 'dd/MM/yyyy HH:mm' }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.cartao }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.cadastroPlacaId }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.peso }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.descrBalanca }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.descrTipoMov }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.sitReg }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.regGuardian }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.gate }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.sessao }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.ocrPlaca1 }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.ocrPlaca2 }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.ocrPlaca3 }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.nomeMotorista }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.cpfMotorista }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.codCheckList }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.mensagem }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.webStoPlanejaVeiculoId }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.idTotem }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.tipoTotem }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.placaConf1 }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.placaConf2 }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.placaConf3 }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.docMotorista }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.docMotoristaDig }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.terminal }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.terminalPesagem }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.nrPesagem }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.tanqueId }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.motivoCancelamento }}</td>\n                        <td [class]=\"corLinha(t)\" style=\"white-space: nowrap;\">{{ t.dataCancelamento | date: 'dd/MM/yyyy HH:mm' }}</td>\n                    </tr>\n                    <tr *ngIf=\"!hasDados\">\n                        <th colspan=\"35\" style=\"text-align: center\">\n                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                        </th>\n                    </tr>\n                </tbody>\n            </table>\n        </div>\n    </app-table>\n    <div class=\"legend\">\n        <div class=\"item\">\n            <div class=\"circle green\"></div>\n            <span>{{ 'labels.concluido' | translate }}</span>\n        </div>\n        <div class=\"item\">\n            <div class=\"circle blue\"></div>\n            <span>{{ 'labels.aberto' | translate }}</span>\n        </div>\n        <div class=\"item\">\n            <div class=\"circle purple\"></div>\n            <span>{{ 'labels.aguardandoOperador' | translate }}</span>\n        </div>\n        <div class=\"item\">\n            <div class=\"circle red\"></div>\n            <span>{{ 'labels.erro' | translate }}</span>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-propriedades></app-propriedades>\n<app-monitor-automacao-filter (filtrar)=\"executaFiltro($event)\"></app-monitor-automacao-filter>\n<app-monitor-automacao-ajuste-ocr [data]=\"data\"></app-monitor-automacao-ajuste-ocr>\n<app-monitor-automacao-logs [data]=\"data\"></app-monitor-automacao-logs>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-logs/monitor-automacao-logs.component.html":
/*!*************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-logs/monitor-automacao-logs.component.html ***!
  \*************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"logs-automacao-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-50\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <div class=\"modal-body\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-sm-12\">\r\n                        <textarea rows=\"15\" readonly style=\"width: 100%; resize: none;\">{{ logsFormatados }}</textarea>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\"modal-footer\">\r\n                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                    {{ 'buttons.sair' | translate }}\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.scss":
/*!***********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.scss ***!
  \***********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("div#placasOcr img.img-preview {\n  max-width: 100%;\n  height: 104px;\n}\ndiv#placasOcr .no-img-preview {\n  max-width: 100%;\n}\ndiv#placasOcr .no-img-preview img {\n  max-width: 100%;\n  display: block;\n  margin: 0 auto;\n}\ndiv#placasOcr .no-img-preview label {\n  display: block;\n  text-align: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvbW92aW1lbnRvcy9tb25pdG9yLWF1dG9tYWNhby9tb25pdG9yLWF1dG9tYWNhby1hanVzdGUtb2NyL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXHZvcGFrXFxtb3ZpbWVudG9zXFxtb25pdG9yLWF1dG9tYWNhb1xcbW9uaXRvci1hdXRvbWFjYW8tYWp1c3RlLW9jclxcbW9uaXRvci1hdXRvbWFjYW8tYWp1c3RlLW9jci5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvbW92aW1lbnRvcy9tb25pdG9yLWF1dG9tYWNhby9tb25pdG9yLWF1dG9tYWNhby1hanVzdGUtb2NyL21vbml0b3ItYXV0b21hY2FvLWFqdXN0ZS1vY3IuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0U7RUFDRSxlQUFBO0VBQ0EsYUFBQTtBQ0FKO0FER0U7RUFDRSxlQUFBO0FDREo7QURHSTtFQUNFLGVBQUE7RUFDQSxjQUFBO0VBQ0EsY0FBQTtBQ0ROO0FESUk7RUFDRSxjQUFBO0VBQ0Esa0JBQUE7QUNGTiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3ZvcGFrL21vdmltZW50b3MvbW9uaXRvci1hdXRvbWFjYW8vbW9uaXRvci1hdXRvbWFjYW8tYWp1c3RlLW9jci9tb25pdG9yLWF1dG9tYWNhby1hanVzdGUtb2NyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiZGl2I3BsYWNhc09jciB7XHJcbiAgaW1nLmltZy1wcmV2aWV3IHtcclxuICAgIG1heC13aWR0aDogMTAwJTtcclxuICAgIGhlaWdodDogMTA0cHg7XHJcbiAgfVxyXG5cclxuICAubm8taW1nLXByZXZpZXcge1xyXG4gICAgbWF4LXdpZHRoOiAxMDAlO1xyXG5cclxuICAgIGltZyB7XHJcbiAgICAgIG1heC13aWR0aDogMTAwJTtcclxuICAgICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICAgIG1hcmdpbjogMCBhdXRvO1xyXG4gICAgfVxyXG4gICAgXHJcbiAgICBsYWJlbCB7XHJcbiAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICB9XHJcbiAgfVxyXG59IiwiZGl2I3BsYWNhc09jciBpbWcuaW1nLXByZXZpZXcge1xuICBtYXgtd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogMTA0cHg7XG59XG5kaXYjcGxhY2FzT2NyIC5uby1pbWctcHJldmlldyB7XG4gIG1heC13aWR0aDogMTAwJTtcbn1cbmRpdiNwbGFjYXNPY3IgLm5vLWltZy1wcmV2aWV3IGltZyB7XG4gIG1heC13aWR0aDogMTAwJTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIG1hcmdpbjogMCBhdXRvO1xufVxuZGl2I3BsYWNhc09jciAubm8taW1nLXByZXZpZXcgbGFiZWwge1xuICBkaXNwbGF5OiBibG9jaztcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.ts":
/*!*********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.ts ***!
  \*********************************************************************************************************************************************/
/*! exports provided: MonitorAutomacaoAjusteOcrComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoAjusteOcrComponent", function() { return MonitorAutomacaoAjusteOcrComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../monitor-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.model.ts");
/* harmony import */ var _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../monitor-automacao.service */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
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 MonitorAutomacaoAjusteOcrComponent = /** @class */ (function () {
    function MonitorAutomacaoAjusteOcrComponent(service, messageService, funcoesService, sanitizer) {
        this.service = service;
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.sanitizer = sanitizer;
        this.data = new _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_1__["MonitorAutomacaoDto"]();
        this.mensagens = [];
    }
    Object.defineProperty(MonitorAutomacaoAjusteOcrComponent.prototype, "title", {
        get: function () {
            return this.messageService.translate("titles.monitorAutomacao");
        },
        enumerable: true,
        configurable: true
    });
    MonitorAutomacaoAjusteOcrComponent.prototype.existeFotoPlaca = function (arquivoPlaca, fotoPlaca) {
        return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].isNotEmpty(arquivoPlaca) || app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].isNotEmpty(fotoPlaca);
    };
    MonitorAutomacaoAjusteOcrComponent.prototype.getSrcImagemPlaca = function (arquivoPlaca, fotoPlaca) {
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].isEmpty(arquivoPlaca) && app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].isEmpty(fotoPlaca))
            return "";
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["StringUtilsStaticService"].isNotEmpty(arquivoPlaca)) {
            return arquivoPlaca;
        }
        return this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64, " + fotoPlaca);
    };
    MonitorAutomacaoAjusteOcrComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.service.updatePlacasConf(this.data).subscribe(function (resp) {
            if (resp != null && !resp.isValid) {
                _this.mensagens = _this.messageService.validationResult(resp);
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.monitorAutomacao");
                jQuery("#monitor-automacao-filter-dialog").modal("hide");
            }
        });
    };
    MonitorAutomacaoAjusteOcrComponent.ctorParameters = function () { return [
        { type: _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_2__["MonitorAutomacaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], MonitorAutomacaoAjusteOcrComponent.prototype, "data", void 0);
    MonitorAutomacaoAjusteOcrComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-automacao-ajuste-ocr",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-automacao-ajuste-ocr.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-automacao-ajuste-ocr.component.scss */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_monitor_automacao_service__WEBPACK_IMPORTED_MODULE_2__["MonitorAutomacaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"]])
    ], MonitorAutomacaoAjusteOcrComponent);
    return MonitorAutomacaoAjusteOcrComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-filter/monitor-automacao-filter.component.ts":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-filter/monitor-automacao-filter.component.ts ***!
  \*************************************************************************************************************************************/
/*! exports provided: MonitorAutomacaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoFilterComponent", function() { return MonitorAutomacaoFilterComponent; });
/* 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_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service */ "./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_automacao_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../monitor-automacao.constants */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.constants.ts");
/* harmony import */ var _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../monitor-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.model.ts");
/* harmony import */ var _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../monitor-automacao.service */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.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 MonitorAutomacaoFilterComponent = /** @class */ (function () {
    function MonitorAutomacaoFilterComponent(service, message, funcoesService, cpfCnpjService) {
        this.service = service;
        this.message = message;
        this.funcoesService = funcoesService;
        this.cpfCnpjService = cpfCnpjService;
        this.constantes = new _monitor_automacao_constants__WEBPACK_IMPORTED_MODULE_5__["MonitorAutomacaoConstants"]();
        this.listaStatus = _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_6__["MonitorAutomacaoFiltroVo"].listaStatus();
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    MonitorAutomacaoFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filter) {
            this.service.filter = new _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_6__["MonitorAutomacaoFiltroVo"]();
        }
    };
    Object.defineProperty(MonitorAutomacaoFilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.monitorAutomacao");
        },
        enumerable: true,
        configurable: true
    });
    MonitorAutomacaoFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        this.filtrar.emit(this.service.filter);
        jQuery("#monitor-automacao-filter-dialog").modal("hide");
    };
    MonitorAutomacaoFilterComponent.ctorParameters = function () { return [
        { type: _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_7__["MonitorAutomacaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_2__["CpfCnpjService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorAutomacaoFilterComponent.prototype, "filtrar", void 0);
    MonitorAutomacaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-automacao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-automacao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-filter/monitor-automacao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_monitor_automacao_service__WEBPACK_IMPORTED_MODULE_7__["MonitorAutomacaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_2__["CpfCnpjService"]])
    ], MonitorAutomacaoFilterComponent);
    return MonitorAutomacaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-index.component.scss":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-index.component.scss ***!
  \*************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\n.rowRed {\n  color: #c03;\n}\n\n.rowBlue {\n  color: #0000CC;\n}\n\n.rowGreen {\n  color: #00cc4e;\n}\n\n.rowOrange {\n  color: #ffa500;\n}\n\n.rowPurple {\n  color: #df13df;\n}\n\ndiv.legend {\n  display: flex;\n  flex-direction: row;\n}\n\ndiv.legend div.item {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  margin-right: 45px;\n}\n\ndiv.legend div.item div.circle {\n  width: 15px;\n  height: 15px;\n  border-radius: 100%;\n  border: 1px solid #ccc;\n  margin-right: 10px;\n}\n\ndiv.legend div.item div.circle.red {\n  background-color: #c03;\n}\n\ndiv.legend div.item div.circle.blue {\n  background-color: #0000CC;\n}\n\ndiv.legend div.item div.circle.orange {\n  background-color: #ffa500;\n}\n\ndiv.legend div.item div.circle.green {\n  background-color: #00cc4e;\n}\n\ndiv.legend div.item div.circle.purple {\n  background-color: #df13df;\n}\n\nspan.red {\n  background-color: red;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-index.component.ts":
/*!***********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-index.component.ts ***!
  \***********************************************************************************************************************************/
/*! exports provided: MonitorAutomacaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoIndexComponent", function() { return MonitorAutomacaoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_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_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_automacao_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../monitor-automacao.constants */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.constants.ts");
/* harmony import */ var _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../monitor-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.model.ts");
/* harmony import */ var _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../monitor-automacao.service */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.service.ts");
/* harmony import */ var app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/login/login.model */ "./src/app/pages/login/login.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};















var MonitorAutomacaoIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorAutomacaoIndexComponent, _super);
    function MonitorAutomacaoIndexComponent(messageService, service, funcoesService, loginService, permissoesUtils) {
        var _this = _super.call(this, new _monitor_automacao_constants__WEBPACK_IMPORTED_MODULE_11__["MonitorAutomacaoConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.constantes = new _monitor_automacao_constants__WEBPACK_IMPORTED_MODULE_11__["MonitorAutomacaoConstants"]();
        _this.login = new app_pages_login_login_model__WEBPACK_IMPORTED_MODULE_14__["Login"]();
        _this.data = new _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_12__["MonitorAutomacaoDto"]();
        _this.mensagens = [];
        _this.registrosSelecionados = [];
        _this.registrosSelecionadosComErros = [];
        _this.countFlag = 0;
        _this.title = "titles.monitorAutomacao";
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this.service;
                        return [4 /*yield*/, this.service.getByFiltro(this.service.filter).toPromise()];
                    case 1:
                        _a.dados = _b.sent();
                        this.countFlag = 0;
                        this.habilitarBotoes();
                        this.habilitaBtnReprocessarTodos();
                        return [2 /*return*/];
                }
            });
        }); };
        _this.selectAll = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 1, function () {
                _this.service.dados.filter(function (val) {
                    if (val.sitReg === 'E') {
                        val.flag = !val.flag;
                        if (val.flag) {
                            _this.countFlag++;
                        }
                        else {
                            _this.countFlag--;
                        }
                    }
                    else {
                        if (val.flag) {
                            _this.countFlag--;
                        }
                        else {
                            _this.countFlag;
                        }
                        val.flag = false;
                    }
                });
                _this.service.dados = _this.service.dados.filter(function (val) { return val.sitReg === 'E'; });
                _this.habilitarBotoes();
                _this.habilitaBtnReprocessarTodos();
            });
        };
        _this.ajustePlacas = function () {
            if (!_this.registroSelecionado())
                return;
            // if ( this.data.sitReg === 'C' ) {
            // 	this.messageService.warning( this.title, "messages.situacaoDaAutomacaoNaoPermitida", { 'situacao': this.messageService.translate("labels.concluido") } );
            // 	return;
            // }
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("monitor-automacao-ajuste-ocr-dialog");
            });
        };
        _this.atribuirOperador = function () {
            if (!_this.registroSelecionado())
                return;
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                var dadosStorage = _this.service.gravarStorageGAutomacao(_this.data.balancaId, _this.data.idTotem, _this.login.usuario, _this.login.colaboradorId);
                _this.service.atribuirOperador(dadosStorage).subscribe(function (resp) {
                    if (resp != null && !resp.isValid) {
                        _this.mensagens = _this.messageService.validationResult(resp);
                        _this.messageService.error(_this.title, _this.mensagens);
                    }
                    else {
                        _this.service.conectarEventSourceSemaforo(dadosStorage.operAtrib, dadosStorage.codOperAtrib);
                        _this.messageService.success(_this.title, "messages.operadorAtribuidoComSucesso");
                    }
                });
                //ModalUtilsStaticService.openModal( "monitor-automacao-atribuir-operador-dialog" );
            });
        };
        _this.logsAutomacao = function () {
            if (!_this.registroSelecionado())
                return;
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 1, function () {
                _this.service.getLogs(_this.data.sequencia).subscribe(function (resp) {
                    if (!resp) {
                        _this.messageService.info(_this.title, "messages.naoExisteLogParaORegistroSelecionado");
                        return;
                    }
                    _this.data.logs = resp;
                    app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("logs-automacao-dialog");
                });
            });
        };
        _this.login = _this.loginService.getLogin();
        return _this;
    }
    MonitorAutomacaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.loginService.isTokenExpired()) {
                    if (!this.service.isEventAutomacaoExecutando())
                        this.messageService.warning(this.title, "messages.necessarioAtribuirOperador");
                    if (this.funcoesService.abrirFiltro) {
                        this.service.filter = new _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_12__["MonitorAutomacaoFiltroVo"]();
                        this.filtrar();
                    }
                }
                return [2 /*return*/];
            });
        }); }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'selectAll', func: function () { return _this.selectAll; } },
            { action: 'ajustePlacas', func: function () { return _this.ajustePlacas; } },
            { action: 'atribuirOperador', func: function () { return _this.atribuirOperador; } },
            { action: 'logsAutomacao', func: function () { return _this.logsAutomacao; } },
        ]);
    };
    MonitorAutomacaoIndexComponent.prototype.filtrar = function () {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("monitor-automacao-filter-dialog");
    };
    MonitorAutomacaoIndexComponent.prototype.executaFiltro = function (event) {
        this.service.filter = event;
        this.refresh();
    };
    MonitorAutomacaoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.login.filialId,
                dataI: _this.service.filter.dataI,
                dataF: _this.service.filter.dataF,
                idTotem: _this.service.filter.idTotem,
                status: _this.service.filter.status
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    Object.defineProperty(MonitorAutomacaoIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            var dados = this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.sequencia, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.regOrigem, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.cCD, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtRegistro), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.cartao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.cadastroPlacaId, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.peso, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.balancaId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrBalanca, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.tipoMov, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrTipoMov, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.sitReg, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.regGuardian, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.gate, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.sessao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.ocrPlaca1, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.ocrPlaca2, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.ocrPlaca3, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.nomeMotorista, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.cpfMotorista, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.codCheckList, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.mensagem, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.webStoPlanejaVeiculoId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.idTotem, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.tipoTotem, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.placaConf1, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.placaConf2, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.placaConf3, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.docMotorista, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.docMotoristaDig, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.terminal, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.terminalPesagem, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["NumberUtilsStaticService"].exist(v.nrPesagem, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.tanqueId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.motivoCancelamento, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dataCancelamento), _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorAutomacaoIndexComponent.prototype, "hasDados", {
        get: function () {
            if (!this.service.dados)
                return false;
            return this.service.dados && this.service.dados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorAutomacaoIndexComponent.prototype._dbClick = function (item, index) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.currentIndex = index;
            item.flag = !item.flag;
            if (item.flag) {
                _this.countFlag++;
            }
            else {
                _this.countFlag--;
            }
            _this.habilitarBotoes();
            _this.habilitaBtnReprocessarTodos();
        });
    };
    MonitorAutomacaoIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitorAutomacaoIndexComponent.prototype.habilitaBtnReprocessarTodos = function () {
        // this.registrosSelecionadosComErros = [];
        // this.service.dados.forEach( obj => {
        // 	if ( obj.flagIntegracao !== 'Erro' && obj.flag === true ) {
        // 		this.registrosSelecionadosComErros.push( obj.idRegistro );
        // 	} else {
        // 		this.registrosSelecionadosComErros = this.registrosSelecionadosComErros.filter( b => b !== obj.idRegistro );
        // 	}
        // } );
        // const habilitaBotao = this.registrosSelecionadosComErros.length !== 0;
        // this.constantes.listaIndex.forEach( i => {
        // 	if ( i.title === "ReprocessarTodosSelecionados" ) {
        // 		i.disabled = habilitaBotao;
        // 	}
        // } );
    };
    MonitorAutomacaoIndexComponent.prototype.habilitarBotoes = function () {
        this.buttonDisabled('listaIndex', 'ajustePlacas', this.countFlag !== 1);
        this.buttonDisabled('listaIndex', 'logsAutomacao', this.countFlag !== 1);
        this.buttonDisabled('listaIndex', 'atribuirOperador', this.countFlag !== 1);
        // this.buttonDisabled( 'listaIndex', 'remove', this.countFlag !== 1 );
        // this.buttonDisabled( 'listaIndex', 'revogarExclusao', this.countFlag !== 1 );
    };
    MonitorAutomacaoIndexComponent.prototype.corLinha = function (item) {
        if (item.sitReg === "E")
            return 'rowRed';
        else if (item.sitReg === "C")
            return 'rowGreen';
        else if (item.sitReg === "A")
            return 'rowBlue';
        else if (item.sitReg === "P")
            return 'rowPurple';
        else
            return '';
    };
    MonitorAutomacaoIndexComponent.prototype.registroSelecionado = function () {
        if (!this.data) {
            this.messageService.warning(this.title, "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    MonitorAutomacaoIndexComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_13__["MonitorAutomacaoService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_2__["TableComponent"])
    ], MonitorAutomacaoIndexComponent.prototype, "table", void 0);
    MonitorAutomacaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-monitor-automacao-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-automacao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-automacao-index.component.scss */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_13__["MonitorAutomacaoService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"]])
    ], MonitorAutomacaoIndexComponent);
    return MonitorAutomacaoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-logs/monitor-automacao-logs.component.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-logs/monitor-automacao-logs.component.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: MonitorAutomacaoLogsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoLogsComponent", function() { return MonitorAutomacaoLogsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../monitor-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.model.ts");
/* harmony import */ var _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../monitor-automacao.service */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MonitorAutomacaoLogsComponent = /** @class */ (function () {
    function MonitorAutomacaoLogsComponent(service, messageService) {
        this.service = service;
        this.messageService = messageService;
        this.data = new _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_1__["MonitorAutomacaoDto"]();
    }
    Object.defineProperty(MonitorAutomacaoLogsComponent.prototype, "logsFormatados", {
        get: function () {
            var logsFormatados = "";
            if (this.data.logs && this.data.logs.length > 0) {
                var dados = this.data.logs.map(function (l) {
                    return app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["DateTimeUtilsStaticService"].format(l.dtRegistro, 'DD-MM-YYYY HH:mm:ss') + " - " + l.descrLog.trim();
                });
                logsFormatados = dados.join("\n");
            }
            return logsFormatados;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorAutomacaoLogsComponent.prototype, "title", {
        get: function () {
            return this.messageService.translate("titles.logAutomacao");
        },
        enumerable: true,
        configurable: true
    });
    MonitorAutomacaoLogsComponent.ctorParameters = function () { return [
        { type: _monitor_automacao_service__WEBPACK_IMPORTED_MODULE_2__["MonitorAutomacaoService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], MonitorAutomacaoLogsComponent.prototype, "data", void 0);
    MonitorAutomacaoLogsComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-automacao-logs",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-automacao-logs.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-logs/monitor-automacao-logs.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_monitor_automacao_service__WEBPACK_IMPORTED_MODULE_2__["MonitorAutomacaoService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], MonitorAutomacaoLogsComponent);
    return MonitorAutomacaoLogsComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.constants.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.constants.ts ***!
  \*****************************************************************************************************/
/*! exports provided: MonitorAutomacaoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoConstants", function() { return MonitorAutomacaoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorAutomacaoConstants = /** @class */ (function () {
    function MonitorAutomacaoConstants() {
        this.sisFormularioId = 375080;
        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.ajustePlacas" }
            // { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.reprocessar" },
            // { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.cancelamentoDeFicha" },
            // { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.exclusao" },
            // { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.ajusteManual" },
            // { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.revogarExclusao" }
        ];
        this.sisSistemaId = "DIV";
        this.nomeForm = "titles.monitorAutomacao";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.reportId = "VOP0064";
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'AtribuirOperador', action: 'atribuirOperador', icon: "fa fa-user-plus", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: true },
            { title: 'SelecionaTodosComErros', action: 'selectAll', icon: "icon-check", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: false },
            //{ title: 'ReprocessarTodosSelecionados', action: 'reprocessar', icon: "fa fa-cogs", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: false },
            { title: 'AjustePlacas', action: 'ajustePlacas', icon: "fa fa-edit", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: true },
            { title: 'VisualizarLogs', action: 'logsAutomacao', icon: "fa fa-file-code-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: true },
        ];
    }
    return MonitorAutomacaoConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.model.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.model.ts ***!
  \*************************************************************************************************/
/*! exports provided: MonitorAutomacaoFiltroVo, MonitorAutomacaoDto, MonitorAutomacaoAtribuirOperadorVo, MonitorAutomacaoLogDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoFiltroVo", function() { return MonitorAutomacaoFiltroVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoDto", function() { return MonitorAutomacaoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoAtribuirOperadorVo", function() { return MonitorAutomacaoAtribuirOperadorVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoLogDto", function() { return MonitorAutomacaoLogDto; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var MonitorAutomacaoFiltroVo = /** @class */ (function () {
    function MonitorAutomacaoFiltroVo() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFirstDayOfMonth(new Date());
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
        this.status = "";
    }
    MonitorAutomacaoFiltroVo.listaStatus = function (value) {
        if (value === void 0) { value = ""; }
        var lista = [
            { value: "", label: "labels.todos" },
            { value: "C", label: "labels.concluído" },
            { value: "A", label: "labels.aberto" },
            { value: "P", label: "labels.aguardandoOperador" },
            { value: "E", label: "labels.erro" }
        ];
        if (value !== "") {
            var i = lista.findIndex(function (x) { return x.value === value; });
            return lista[i].label;
        }
        else {
            return lista;
        }
    };
    return MonitorAutomacaoFiltroVo;
}());

var MonitorAutomacaoDto = /** @class */ (function () {
    function MonitorAutomacaoDto() {
        this.flag = false;
        this.logs = [];
    }
    return MonitorAutomacaoDto;
}());

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

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



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.module.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.module.ts ***!
  \**************************************************************************************************/
/*! exports provided: MonitorAutomacaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoModule", function() { return MonitorAutomacaoModule; });
/* 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 _monitor_automacao_filter_monitor_automacao_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-automacao-filter/monitor-automacao-filter.component */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-filter/monitor-automacao-filter.component.ts");
/* harmony import */ var _monitor_automacao_index_monitor_automacao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-automacao-index/monitor-automacao-index.component */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-index.component.ts");
/* harmony import */ var _monitor_automacao_ajuste_ocr_monitor_automacao_ajuste_ocr_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-ajuste-ocr/monitor-automacao-ajuste-ocr.component.ts");
/* harmony import */ var _monitor_automacao_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitor-automacao.routing.module */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.routing.module.ts");
/* harmony import */ var _monitor_automacao_logs_monitor_automacao_logs_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitor-automacao-logs/monitor-automacao-logs.component */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-logs/monitor-automacao-logs.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 MonitorAutomacaoModule = /** @class */ (function () {
    function MonitorAutomacaoModule() {
    }
    MonitorAutomacaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _monitor_automacao_routing_module__WEBPACK_IMPORTED_MODULE_5__["MonitorAutomacaoRoutingModule"]
            ],
            declarations: [
                _monitor_automacao_index_monitor_automacao_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorAutomacaoIndexComponent"],
                _monitor_automacao_filter_monitor_automacao_filter_component__WEBPACK_IMPORTED_MODULE_2__["MonitorAutomacaoFilterComponent"],
                _monitor_automacao_ajuste_ocr_monitor_automacao_ajuste_ocr_component__WEBPACK_IMPORTED_MODULE_4__["MonitorAutomacaoAjusteOcrComponent"],
                _monitor_automacao_logs_monitor_automacao_logs_component__WEBPACK_IMPORTED_MODULE_6__["MonitorAutomacaoLogsComponent"]
            ]
        })
    ], MonitorAutomacaoModule);
    return MonitorAutomacaoModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.routing.module.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.routing.module.ts ***!
  \**********************************************************************************************************/
/*! exports provided: MonitorAutomacaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoRoutingModule", function() { return MonitorAutomacaoRoutingModule; });
/* 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 _monitor_automacao_index_monitor_automacao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-automacao-index/monitor-automacao-index.component */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao-index/monitor-automacao-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: _monitor_automacao_index_monitor_automacao_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorAutomacaoIndexComponent"],
        data: { breadcrumb: "monitorAutomacao", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var MonitorAutomacaoRoutingModule = /** @class */ (function () {
    function MonitorAutomacaoRoutingModule() {
    }
    MonitorAutomacaoRoutingModule = __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"]]
        })
    ], MonitorAutomacaoRoutingModule);
    return MonitorAutomacaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.service.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.service.ts ***!
  \***************************************************************************************************/
/*! exports provided: MonitorAutomacaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorAutomacaoService", function() { return MonitorAutomacaoService; });
/* 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 environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitor-automacao.model */ "./src/app/pages/especificos/vopak/movimentos/monitor-automacao/monitor-automacao.model.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "./node_modules/ngx-toastr/fesm5/ngx-toastr.js");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-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 MonitorAutomacaoService = /** @class */ (function (_super) {
    __extends(MonitorAutomacaoService, _super);
    function MonitorAutomacaoService(http, router, toastrService) {
        var _this = _super.call(this, http, "vopak/monitorAutomacao") || this;
        _this.http = http;
        _this.router = router;
        _this.toastrService = toastrService;
        _this.filter = new _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_6__["MonitorAutomacaoFiltroVo"]();
        _this.toastrsAtivos = [];
        _this.redirectAutoMsgPageRoute = "especificos/vopak/movimentos/semaforoAutomacao";
        return _this;
    }
    MonitorAutomacaoService.prototype.ngOnDestroy = function () {
        this.pararEventSourceSemaforo();
        this.sse = null;
    };
    MonitorAutomacaoService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/vopak/monitorAutomacao/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorAutomacaoService.prototype.updatePlacasConf = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/vopak/monitorAutomacao/updatePlacasConf", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorAutomacaoService.prototype.atribuirOperador = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/vopak/monitorAutomacao/atribuirOperador", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorAutomacaoService.prototype.getLogs = function (sequencia) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/vopak/monitorAutomacao/getLogs/" + sequencia)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    MonitorAutomacaoService.prototype.iniciarEventSourceSemaforo = function (operAtrib, codOperAtrib) {
        return new EventSource(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/eventSource/automacaoStatusSemaforo/" + true + "/" + operAtrib + "/" + codOperAtrib);
    };
    MonitorAutomacaoService.prototype.pararEventSourceSemaforo = function () {
        var _this = this;
        if (this.sse) {
            this.sse.close();
            this.sse = null;
            this.toastrsAtivos.forEach(function (id) { return _this.toastrService.clear(id); });
        }
        //new EventSource(`${environment.service_url}/api/v1/eventSource/automacaoStatusSemaforo/${false}`);
    };
    MonitorAutomacaoService.prototype.conectarEventSourceSemaforo = function (operAtrib, codOperAtrib) {
        if (this.sse) {
            this.pararEventSourceSemaforo();
        }
        this.sse = this.iniciarEventSourceSemaforo(operAtrib, codOperAtrib);
        this.iniciarEventListeners(this.sse);
        //this.sse.onopen = (ev) => { this.iniciarEventListeners(ev); }
        //this.sse.onmessage = (event) => { console.log("(SSE) Mensagem: ", event); }
    };
    MonitorAutomacaoService.prototype.iniciarEventListeners = function (sse) {
        var _this = this;
        sse.addEventListener("WAIT", function (e) {
            _this.exibirMensagemAutomacao(e);
        });
        sse.addEventListener("RUNNING", function () {
            if (_this.toastrsAtivos.length > 0) {
                _this.toastrsAtivos.forEach(function (id) { return _this.toastrService.remove(id); });
            }
        });
        // sse.addEventListener("error", (event) => {
        //     console.error("(SSE) Ocorreu um erro: ", event);
        //     if (event.eventPhase === EventSource.CLOSED) {
        //         setTimeout(() => {
        //             console.error("(SSE) Reiniciando SSE: ");
        //             this.sse = this.service.iniciarEventSourceSemaforo(this.dadosSessao.operAtrib, this.dadosSessao.codOperAtrib);
        //         }, 3000);
        //     }
        // });
    };
    MonitorAutomacaoService.prototype.exibirMensagemAutomacao = function (dadosEvento) {
        var _this = this;
        if (!!dadosEvento) {
            var dados = JSON.parse(dadosEvento.data);
            var emExibicao = this.toastrService.findDuplicate(dados.Mensagem, false, false);
            if (!emExibicao) {
                var toastr_1 = this.toastrService.warning(dados.Mensagem, dados.Rotina, {
                    disableTimeOut: true,
                    tapToDismiss: true,
                    toastClass: "alertaAutomacao ngx-toastr",
                    positionClass: "toast-bottom-right"
                });
                this.toastrsAtivos.push(toastr_1.toastId);
                toastr_1.onTap.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1)).subscribe(function (t) { return _this.toasterClickedHandler(toastr_1); });
            }
        }
    };
    MonitorAutomacaoService.prototype.toasterClickedHandler = function (toastr) {
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ModalUtilsStaticService"].openWindow(this.redirectAutoMsgPageRoute);
        var index = this.toastrsAtivos.findIndex(function (id) { return id === toastr.toastId; });
        if (index > -1) {
            this.toastrsAtivos.splice(index, 1);
        }
    };
    MonitorAutomacaoService.prototype.gravarStorageGAutomacao = function (balancaId, idTotem, operAtrib, codOperAtrib) {
        var dadosSessao = new _monitor_automacao_model__WEBPACK_IMPORTED_MODULE_6__["MonitorAutomacaoAtribuirOperadorVo"]();
        dadosSessao.balancaId = balancaId;
        dadosSessao.idTotem = idTotem;
        dadosSessao.operAtrib = operAtrib;
        dadosSessao.codOperAtrib = codOperAtrib;
        dadosSessao.routeUrlOrigem = this.router.url;
        localStorage.setItem("us.eventSource_GAuto", JSON.stringify(dadosSessao));
        return dadosSessao;
    };
    MonitorAutomacaoService.prototype.hasStorageGAutomacao = function () {
        return !!localStorage.getItem("us.eventSource_GAuto");
    };
    MonitorAutomacaoService.prototype.isEventAutomacaoExecutando = function () {
        return !!this.sse && this.sse.readyState !== EventSource.CLOSED;
    };
    MonitorAutomacaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"] },
        { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }
    ]; };
    MonitorAutomacaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"],
            ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]])
    ], MonitorAutomacaoService);
    return MonitorAutomacaoService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ }),

/***/ "./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts":
/*!**********************************************************************!*\
  !*** ./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts ***!
  \**********************************************************************/
/*! exports provided: CpfCnpjService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CpfCnpjService", function() { return CpfCnpjService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
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 CpfCnpjService = /** @class */ (function () {
    function CpfCnpjService() {
        this.mask$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"]('AA.AAA.AAA/AAAA-00');
    }
    CpfCnpjService.prototype.verifica_cpf_cnpj = function (valor) {
        valor = valor.toString();
        valor = valor.replace(/[^0-9A-Za-z]/g, '');
        if (valor.length === 11) {
            return 'CPF';
        }
        else if (valor.length === 14) {
            return 'CNPJ';
        }
        else {
            return false;
        }
    };
    CpfCnpjService.prototype.valida_cpf = function (valor) {
        if (!valor)
            return true;
        valor = valor.replace(/[^0-9]/g, '');
        if (!/^\d{11}$/.test(valor))
            return false;
        // elimina CPFs inválidos conhecidos (ex: 00000000000, 11111111111 etc.)
        if (/^(\d)\1{10}$/.test(valor))
            return false;
        var digitos = valor.substring(0, 9);
        // calcula 1º DV
        var soma = 0;
        for (var i = 0; i < 9; i++) {
            soma += parseInt(digitos.charAt(i), 10) * (10 - i);
        }
        var resto = soma % 11;
        var dv1 = resto < 2 ? 0 : 11 - resto;
        // calcula 2º DV
        soma = 0;
        var digitosMaisDv1 = digitos + dv1;
        for (var i = 0; i < 10; i++) {
            soma += parseInt(digitosMaisDv1.charAt(i), 10) * (11 - i);
        }
        resto = soma % 11;
        var dv2 = resto < 2 ? 0 : 11 - resto;
        // monta CPF completo calculado
        var cpfCalculado = digitos + dv1.toString() + dv2.toString();
        return valor === cpfCalculado;
    };
    CpfCnpjService.prototype.valida_cnpj = function (cnpj) {
        function calc_digitos_cnpj(digitos) {
            var soma = 0;
            var peso = digitos.length === 12 ? 5 : 6; // 1º DV começa em 5, 2º em 6
            for (var i = 0; i < digitos.length; i++) {
                var char = digitos.charAt(i);
                var valorNumerico = void 0;
                if (/[0-9]/.test(char)) {
                    valorNumerico = parseInt(char, 10);
                }
                else if (/[A-Z]/.test(char)) {
                    valorNumerico = char.charCodeAt(0) - 48; // NT 49/2024
                }
                else {
                    throw new Error("Caractere inv\u00E1lido no CNPJ: '" + char + "'");
                }
                soma += valorNumerico * peso;
                peso--;
                if (peso < 2)
                    peso = 9;
            }
            var resto = soma % 11;
            return resto < 2 ? 0 : 11 - resto;
        }
        cnpj = cnpj.replace(/[^0-9A-Za-z]/g, '').toUpperCase();
        if (!/^[0-9A-Z]{12}[0-9]{2}$/.test(cnpj)) {
            return false;
        }
        var corpo = cnpj.substring(0, 12);
        var dv1Informado = parseInt(cnpj.charAt(12), 10);
        var dv2Informado = parseInt(cnpj.charAt(13), 10);
        var dv1Calculado = calc_digitos_cnpj(corpo);
        var dv2Calculado = calc_digitos_cnpj(corpo + dv1Calculado);
        return dv1Informado === dv1Calculado && dv2Informado === dv2Calculado;
    };
    CpfCnpjService.prototype.valida_cpf_cnpj = function (valor) {
        var valida = this.verifica_cpf_cnpj(valor);
        if (valida === 'CPF') {
            return this.valida_cpf(valor);
        }
        else if (valida === 'CNPJ') {
            return this.valida_cnpj(valor);
        }
        else {
            return false;
        }
    };
    CpfCnpjService.prototype.formata_cpf_cnpj = function (valor) {
        var formatado = "";
        var valida = this.verifica_cpf_cnpj(valor);
        if (valida === 'CPF') {
            if (this.valida_cpf(valor)) {
                formatado = valor.substr(0, 3) + '.';
                formatado += valor.substr(3, 3) + '.';
                formatado += valor.substr(6, 3) + '-';
                formatado += valor.substr(9, 2) + '';
            }
        }
        else if (valida === 'CNPJ') {
            if (this.valida_cnpj(valor)) {
                formatado = valor.substr(0, 2) + '.';
                formatado += valor.substr(2, 3) + '.';
                formatado += valor.substr(5, 3) + '/';
                formatado += valor.substr(8, 4) + '-';
                formatado += valor.substr(12, 14) + '';
            }
        }
        return formatado;
    };
    CpfCnpjService.prototype.format = function (documento, tipo) {
        var _this = this;
        if (tipo === void 0) { tipo = ''; }
        var valor = documento.replace(/[^a-zA-Z0-9]/g, '') || '';
        setTimeout(function () {
            var novaMask = 'AA.AAA.AAA/AAAA-00';
            if (tipo === 'F') {
                novaMask = '000.000.000-00';
            }
            else if (tipo === 'J') {
                if (/^[0-9]{14}$/.test(valor)) {
                    novaMask = '00.000.000/0000-00';
                }
                else if (valor.length >= 14 && /[a-zA-Z]/.test(valor)) {
                    novaMask = 'AA.AAA.AAA/AAAA-00';
                }
            }
            else {
                // tipo vazio
                if (/^[0-9]{11}$/.test(valor)) {
                    novaMask = '000.000.000-00';
                }
                else if (/^[0-9]{14}$/.test(valor)) {
                    novaMask = '00.000.000/0000-00';
                }
                else if (valor.length >= 14 && /[a-zA-Z]/.test(valor)) {
                    novaMask = 'AA.AAA.AAA/AAAA-00';
                }
            }
            _this.mask$.next(novaMask);
        });
    };
    CpfCnpjService.prototype.length = function (tipo) {
        if (tipo === 'F') {
            return 14;
        }
        else {
            return 18;
        }
    };
    CpfCnpjService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [])
    ], CpfCnpjService);
    return CpfCnpjService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-movimentos-monitor-automacao-monitor-automacao-module.js.map