(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-granel-movimentos-consulta-agendamento-web-consulta-agendamento-web-module"],{

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"consulta-agendamento-web-filter\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.consultaAgendamentoWeb' | translate }}</h6>\n            </div>\n            <div class=\"modal-body\">\n                <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                            <div class=\"col-lg-12 col-md-12\">\n                                <div class=\"row\">\n                                    <div class=\"col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodoDe\" class=\"required\">{{ 'labels.periodoDe' | translate\n                                                }}</label>\n                                            <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                                [(ngModel)]=\"service.filtro.dataI\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-md-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ate\" class=\"required\">{{ 'labels.ate' | translate }}</label>\n                                            <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filtro.dataF\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\n                                                modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\n                                                [(ngModel)]=\"service.filtro.codDest\" showInscricao=\"false\"\n                                                showCgcCpf=\"false\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioIdTransportadora\"\n                                                name=\"destinatarioIdTransportadora\" label=\"transportadora\"\n                                                modalTitle=\"pesquisaDeTransportadora\"\n                                                [(ngModel)]=\"service.filtro.transportadora\" tipoDestinatario=\"NT\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoMov\" class=\"required\">{{ \"labels.tipoOperacao\" | translate\n                                                }}</label>\n                                            <select class=\"form-control form-control-sm\"\n                                                [(ngModel)]=\"service.filtro.tipoMov\" id=\"tipoMov\" name=\"tipoMov\">\n                                                <option value=\"C\">{{ 'labels.carga' | translate }}</option>\n                                                <option value=\"D\">{{ 'labels.descarga' | translate }}</option>\n                                                <option value=\"T\">{{ 'labels.todos' | translate }}</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-md-12\">\n                                        <label for=\"timer\">\n                                            {{ 'labels.intervaloDeVerificacao' | translate }}:\n                                            <strong> {{ value }} {{ 'labels.segundos' | translate }}</strong>\n                                        </label>\n                                        <div class=\"custom-slider\">\n                                            <ng5-slider id=\"timer\" [(value)]=\"value\" [options]=\"options\"\n                                                (valueChange)=\"trataConsulta(this.value)\"></ng5-slider>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"modal-footer\">\n                                <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                                </button>\n                                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\"\n                                    (click)=\"sair()\">Sair</button>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.html":
/*!*******************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.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.listaFormMsg\" [sisFormularioId]=\"constantes.sisFormularioId\"\r\n    [formAction]=\"actionForm\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div>\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-12\">\r\n            <div class=\"section-comand-bar\">\r\n                <div class=\"tab-content top\">\r\n                    <app-form-legenda></app-form-legenda>\r\n                    <div class=\"tab-pane active show\" id=\"ge\">\r\n                        <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" autocomplete=\"off\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 mt-1\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"destino\">{{'labels.destinatario' | translate}}</label>\r\n                                        <input id=\"destino\" name=\"destino\" [(ngModel)]=\"destinatario\"\r\n                                            class=\"form-control form-control-sm\" type=\"email\" maxlength=\"64\"\r\n                                            [disabled]=\"apenasVisualizacao\" #destinoInput=\"ngModel\"\r\n                                            pattern=\"[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$\">\r\n                                        <div *ngIf=\"mostrarErroEmail && destinoInput.errors\" class=\"text-danger\">\r\n                                            <div *ngIf=\"destinoInput.errors['pattern']\">\r\n                                                {{ 'messages.emailInvalido' | translate }}\r\n                                            </div>\r\n                                        </div>\r\n                                        <div *ngIf=\"mostrarErroDuplicado\" class=\"text-danger\">\r\n                                            {{ 'messages.emailJaIncluido' | translate }}\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-2 mb-2\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"email\">&nbsp;</label>\r\n                                        <div class=\"input-group\">\r\n                                            <button class=\"btn btn-secondary mb-1\" type=\"button\"\r\n                                                [disabled]=\"!destinatario\" (click)=\"adicionarDestinatario()\"> Adicionar\r\n                                            </button>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-7\">\r\n                                    <div class=\"form-group\">\r\n                                        <textarea id=\"destinatarios\" name=\"destinatarios\" [(ngModel)]=\"emailList\"\r\n                                            class=\"form-control form-control-sm\" type=\"text\" disabled\r\n                                            rows=\"5\"></textarea>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-8\">\r\n                                    <div class=\"form-group\">\r\n                                        <label for=\"texto\">{{'labels.texto' | translate}}</label>\r\n                                        <textarea id=\"texto\" name=\"texto\" [(ngModel)]=\"texto\"\r\n                                            class=\"form-control form-control-sm\" type=\"text\" (blur)=\"validarTexto()\"\r\n                                            maxlength=\"1000\" rows=\"10\" [disabled]=\"apenasVisualizacao\"></textarea>\r\n                                        <div *ngIf=\"mostrarErroTexto\" class=\"text-danger\">\r\n                                            {{ 'messages.tamMinMsg15Carc' | translate }}\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-12\">\r\n                                    <div class=\"form-group\">\r\n                                        <button class=\"btn btn-success mr-2\" type=\"submit\">\r\n                                            {{ 'buttons.enviarEmail' | translate }}\r\n                                        </button>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </form>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.html":
/*!*******************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.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.listaGridMsg\" [sisFormularioId]=\"constantes.sisFormularioId\"\r\n    [formAction]=\"actionForm\" [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"regMsg\">\r\n</app-menu-command-bar>\r\n\r\n<div>\r\n    <div class=\"section-comand-bar\">\r\n        <div class=\"card-body widget-body\">\r\n            <div class=\"row\">\r\n                <div class=\"col-lg-6\">\r\n                    <div class=\"form-group form-group-sm\">\r\n                        <label for=\"cliente\">{{'labels.cliente' | translate}}</label>\r\n                        <input type=\"text\" class=\"form-control form-control-sm\" id=\"cliente\" name=\"cliente\"\r\n                            value=\"{{data?.cliente}}\" disabled>\r\n                    </div>\r\n                </div>\r\n                <div class=\"col-lg-6\">\r\n                    <div class=\"form-group form-group-sm\">\r\n                        <label for=\"nomeMotorista\">{{'labels.nomeMotorista' | translate}}</label>\r\n                        <input type=\"text\" class=\"form-control form-control-sm\" id=\"nomeMotorista\" name=\"nomeMotorista\"\r\n                            value=\"{{data?.nomeMotorista}}\" disabled>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-lg-6\">\r\n                    <div class=\"form-group form-group-sm\">\r\n                        <label for=\"requisicao\">{{'labels.or' | translate}}</label>\r\n                        <input type=\"text\" class=\"form-control form-control-sm\" id=\"requisicao\" name=\"requisicao\"\r\n                            value=\"{{data?.requisicao}}\" disabled>\r\n                    </div>\r\n                </div>\r\n                <div class=\"col-lg-6\">\r\n                    <div class=\"form-group form-group-sm\">\r\n                        <label for=\"placas\">{{'labels.placas' | translate}}</label>\r\n                        <input type=\"text\" class=\"form-control form-control-sm\" id=\"placas\" name=\"placas\"\r\n                            value=\"{{placas}}\" disabled>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\"row\">\r\n                <div class=\"col-lg-12\">\r\n                    <div class=\"form-group form-group-sm\">\r\n                        <label for=\"produtos\">{{'labels.produto' | translate}}</label>\r\n                        <input type=\"text\" class=\"form-control form-control-sm\" id=\"produtos\" name=\"produtos\"\r\n                            value=\"{{data?.produtos}}\" disabled>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"section-comand-bar\">\r\n        <table id=\"dtChamarMensagensGrid\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th>{{ 'labels.data' | translate}}</th>\r\n                    <th>{{ 'labels.texto' | translate}}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let t of dadosGrid; index as i\" (click)=\"_click(t, i)\"\r\n                [ngClass]=\"{'info': i == currentIndex ? true : false}\">\r\n                    <td style=\"display: none\">{{ t.regMsg }}</td>\r\n                    <td style=\"white-space: nowrap;\">{{ t.dtMensagem | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                    <td style=\"white-space: nowrap;\">{{ t.texto }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"2\" style=\"text-align: center\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"data.regControle\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n\t<div class=\"col-lg-12\">\n\t\t<div class=\"section-comand-bar\">\n\t\t\t<div class=\"\">\n\t\t\t\t<form class=\"form\" #f=\"ngForm\" autocomplete=\"off\" novalidate>\n\t\t\t\t\t<app-validacoes></app-validacoes>\n\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t<fieldset class=\"legenda\">\n\t\t\t\t\t\t\t\t<div class=\"item\">\n\t\t\t\t\t\t\t\t\t<div [ngStyle]=\"{'background-color': service.corAgendado}\" class=\"square\"></div>\n\t\t\t\t\t\t\t\t\t<span>{{ 'labels.agendado' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"item\">\n\t\t\t\t\t\t\t\t\t<div [ngStyle]=\"{'background-color': service.corChegada}\" class=\"square\"></div>\n\t\t\t\t\t\t\t\t\t<span>{{ 'labels.chegadaNoPatio' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"item\">\n\t\t\t\t\t\t\t\t\t<div [ngStyle]=\"{'background-color': service.corChamado}\" class=\"square\"></div>\n\t\t\t\t\t\t\t\t\t<span>{{ 'labels.chamadoParaOperacao' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"item\">\n\t\t\t\t\t\t\t\t\t<div [ngStyle]=\"{'background-color': service.corSaidaPatio}\" class=\"square\"></div>\n\t\t\t\t\t\t\t\t\t<span>{{ 'labels.saidaDoPatio' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"item\">\n\t\t\t\t\t\t\t\t\t<div [ngStyle]=\"{'background-color': service.corAgendamentoVencendo}\"\n\t\t\t\t\t\t\t\t\t\tclass=\"square\"></div>\n\t\t\t\t\t\t\t\t\t<span>{{ 'labels.agendadoVencendo' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"item\">\n\t\t\t\t\t\t\t\t\t<div [ngStyle]=\"{'background-color': service.corAgendamentoVencido}\" class=\"square\">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span>{{ 'labels.agendadoVencido' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div class=\"section-comand-bar\">\n    <app-table>\n        <div class=\"table-responsive\" style=\"overflow: auto;\">\n            <table id=\"maintable\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                <thead>\n                    <tr>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.tipo' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.oper' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.motorista' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.inclusao' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.programacao' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.cliente' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.sequencia' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaCavalo' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.chamados' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.naoLocalizado' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.ultimoChamado' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.modal' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.dtChegada' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.situacao' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.ultLocalizacao' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.requisicao' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.observacoes' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.tipoVeiculo' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.transportadora' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaCarreta1' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.placaCarreta2' | translate}}</th>\n                        <th style=\"white-space: nowrap;\">{{ 'labels.produtos' | translate}}</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr *ngFor=\"let t of dados; index as i\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.tipoPlanej }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.tipoMov }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.nomeMoto }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.dtOperinc | date: 'dd/MM/yyyy HH:mm' }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.regControle }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.cliente }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.sequencia }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.placaCavalo }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.chamados }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.localiza }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.dtChamado | date: 'dd/MM/yyyy HH:mm' }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.modal }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.dtChegada | date: 'dd/MM/yyyy HH:mm' }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.descrSitVeiculo }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.dtLocaliza | date: 'dd/MM/yyyy HH:mm' }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.requisicao }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.observ }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.descrTipoVeiculo }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.nomeTransp }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.placaCarreta1 }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.placaCarreta2 }}</td>\n                        <td [ngStyle]=\"{'color': corLinha(t.statusCor)}\">{{ t.produtos }}</td>\n                    </tr>\n                    <tr *ngIf=\"!hasDados\">\n                        <th colspan=\"34\" style=\"text-align: center\">\n                            {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                        </th>\n                    </tr>\n                </tbody>                \n            </table>\n        </div>\n    </app-table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-consulta-agendamento-web-filter (filtrar)=\"executaFiltro($event)\"></app-consulta-agendamento-web-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-filter/consulta-agendamento-web-filter.component.scss":
/*!*************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-filter/consulta-agendamento-web-filter.component.scss ***!
  \*************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-filter/consulta-agendamento-web-filter.component.ts":
/*!***********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-filter/consulta-agendamento-web-filter.component.ts ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebFilterComponent", function() { return ConsultaAgendamentoWebFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../consulta-agendamento-web.constants */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.constants.ts");
/* harmony import */ var _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../consulta-agendamento-web.service */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.service.ts");
/* harmony import */ var _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../consulta-agendamento-web.model */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.model.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_pages_admin_corporate_sis_mensagem_sis_mensagem_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/admin/corporate/sis-mensagem/sis-mensagem.service */ "./src/app/pages/admin/corporate/sis-mensagem/sis-mensagem.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var ConsultaAgendamentoWebFilterComponent = /** @class */ (function () {
    function ConsultaAgendamentoWebFilterComponent(service, message, sisMensagemService) {
        this.service = service;
        this.message = message;
        this.sisMensagemService = sisMensagemService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.outSair = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        this.items = [];
        this.constantes = new _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_1__["ConsultaAgendamentoWebConstants"]();
        this.triggerFocus = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.options = {
            floor: 0,
            ceil: 60,
            showTicks: true,
            step: 10
        };
    }
    ConsultaAgendamentoWebFilterComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.service.filtro) {
                    this.service.filtro = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_3__["ConsultaAgendamentoWebFilter"]();
                }
                this.value = 0;
                this.minValue = 0;
                this.maxValue = 60;
                this.triggerFocus.emit(0);
                return [2 /*return*/];
            });
        });
    };
    ConsultaAgendamentoWebFilterComponent.prototype.onSubmit = function (form) {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI)) {
            this.message.warning('titles.consultaAgendamentoWeb', 'messages.dataDeMaiordataAte');
            return;
        }
        if (!form.invalid) {
            this.filtrar.emit(this.service.filtro);
            jQuery("#consulta-agendamento-web-filter").modal("hide");
        }
    };
    ConsultaAgendamentoWebFilterComponent.prototype.trataConsulta = function (value) {
        this.service.filtro.intervaloVerificacao = value;
    };
    ConsultaAgendamentoWebFilterComponent.prototype.sair = function () {
        this.outSair.emit();
    };
    ConsultaAgendamentoWebFilterComponent.ctorParameters = function () { return [
        { type: _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_2__["ConsultaAgendamentoWebService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_pages_admin_corporate_sis_mensagem_sis_mensagem_service__WEBPACK_IMPORTED_MODULE_6__["SisMensagemService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConsultaAgendamentoWebFilterComponent.prototype, "filtrar", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConsultaAgendamentoWebFilterComponent.prototype, "outSair", void 0);
    ConsultaAgendamentoWebFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-consulta-agendamento-web-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-agendamento-web-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-filter/consulta-agendamento-web-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consulta-agendamento-web-filter.component.scss */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-filter/consulta-agendamento-web-filter.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_2__["ConsultaAgendamentoWebService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_pages_admin_corporate_sis_mensagem_sis_mensagem_service__WEBPACK_IMPORTED_MODULE_6__["SisMensagemService"]])
    ], ConsultaAgendamentoWebFilterComponent);
    return ConsultaAgendamentoWebFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.scss":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.scss ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.ts":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.ts ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebFormMsgComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebFormMsgComponent", function() { return ConsultaAgendamentoWebFormMsgComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var 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_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../consulta-agendamento-web.constants */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.constants.ts");
/* harmony import */ var _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../consulta-agendamento-web.model */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.model.ts");
/* harmony import */ var _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../consulta-agendamento-web.service */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.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 __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 ConsultaAgendamentoWebFormMsgComponent = /** @class */ (function (_super) {
    __extends(ConsultaAgendamentoWebFormMsgComponent, _super);
    function ConsultaAgendamentoWebFormMsgComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, datatablesService, route) {
        var _this = _super.call(this, new _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_8__["ConsultaAgendamentoWebConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.datatablesService = datatablesService;
        _this.route = route;
        _this.data = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_9__["MensagensEEmailDto"]();
        _this.filtro = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_9__["ConsultaAgendamentoWebFilter"]();
        _this.constantes = new _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_8__["ConsultaAgendamentoWebConstants"]();
        _this.triggerFocus = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.texto = '';
        _this.email = '';
        _this.destinatario = '';
        _this.emailList = '';
        _this.emails = [];
        _this.mensagens = [];
        _this.apenasVisualizacao = false;
        _this.mostrarErroEmail = false;
        _this.mostrarErroDuplicado = false;
        _this.mostrarErroTexto = false;
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConsultaAgendamentoWebFormMsgComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var dados = _this.activatedRoute.snapshot.paramMap.get("dados");
            var params = _this.funcoesService.b64ToObj(dados);
            _this.data.regMsg = parseInt(params.regMsg);
            _this.data.regPlaneja = parseInt(params.regPlaneja);
            _this.data.tipoPlaneja = params.tipoPlanej;
            _this.data.codDest = params.codDest;
            if (_this.data.regMsg > 0) {
                _this.getDadosGrid(_this.data.tipoPlaneja, _this.data.regPlaneja);
                _this.apenasVisualizacao = true;
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (form.invalid) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
                    return [2 /*return*/];
                }
                this.messageService.confirm("titles.consultaAgendamentoWeb", "messages.confirmaEnvioDoEmail", "", function () { return _this.save(); }, false);
                return [2 /*return*/];
            });
        });
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.save = function () {
        var _this = this;
        this.validarEmail();
        this.validarTexto();
        if (this.data.regMsg == 0 && this.texto.length < 15) {
            this.mostrarErroTexto = this.texto.length < 15;
            return;
        }
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 8, function () {
            _this.service
                .gravarMensagensEnviarEmail(_this.data)
                .subscribe(function (result) {
                _this.mensagens = _this.messageService.validationResult(result);
                if (!result.isValid) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
                    _this.messageService.error("titles.inspecaoDeVeiculos", "messages.erro");
                }
                else {
                    _this.messageService.saveSuccess("titles.inspecaoDeVeiculos");
                    _this.back();
                }
            });
        });
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.adicionarDestinatario = function () {
        this.mostrarErroEmail = true;
        this.mostrarErroDuplicado = false;
        if (!this.destinatario || !this.isEmailValido(this.destinatario)) {
            return;
        }
        if (this.emails.includes(this.destinatario.trim())) {
            this.mostrarErroDuplicado = true;
            return;
        }
        if (this.destinatario.trim()) {
            this.emails.unshift(this.destinatario.trim());
            this.destinatario = '';
            this.atualizarEmailList();
            this.mostrarErroEmail = false;
        }
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.isEmailValido = function (email) {
        var pattern = new RegExp('[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$');
        return pattern.test(email);
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.atualizarEmailList = function () {
        this.emailList = this.emails.join('\n');
        this.email = this.emails.join(';');
        this.validarEmail();
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.validarEmail = function () {
        var email = this.email;
        this.data.email1 = email.slice(0, 250);
        this.data.email2 = email.slice(250, 500);
        this.data.email3 = email.slice(500, 750);
        this.data.email4 = email.slice(750, 1000);
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.validarTexto = function () {
        var texto = this.texto;
        this.mostrarErroTexto = this.texto.length < 15;
        if (texto !== '') {
            this.data.texto1 = texto.slice(0, 250);
            this.data.texto2 = texto.slice(250, 500);
            this.data.texto3 = texto.slice(500, 750);
            this.data.texto4 = texto.slice(750, 1000);
        }
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.getDadosGrid = function (tipoPlanej, regPlaneja) {
        var _this = this;
        this.service.getDadosMensagensGrid(tipoPlanej, regPlaneja).subscribe(function (data) {
            _this.dadosGrid = data.filter(function (item) { return item.regMsg === _this.data.regMsg; });
            _this.texto = _this.dadosGrid[0].texto;
            _this.validarTexto();
            if (_this.dadosGrid.length > 0 && _this.dadosGrid[0].listaEmail) {
                _this.processarEmailsGrid(_this.dadosGrid[0].listaEmail);
                _this.mostrarErroTexto = false;
            }
        });
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.processarEmailsGrid = function (emails) {
        var emailsArray = emails.split(';');
        this.emails = emailsArray.concat(this.emails);
        this.atualizarEmailList();
    };
    ConsultaAgendamentoWebFormMsgComponent.prototype.back = function () {
        clearInterval(this._updateList);
        this.router.navigate([this.target + "/especificos/granel/movimentos/consultaAgendamentoWeb/mensagensDoPlanejamento/" + this.data.regPlaneja]);
    };
    ConsultaAgendamentoWebFormMsgComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_10__["ConsultaAgendamentoWebService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] }
    ]; };
    ConsultaAgendamentoWebFormMsgComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-agendamento-web-form-msg",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-agendamento-web-form-msg.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consulta-agendamento-web-form-msg.component.scss */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_10__["ConsultaAgendamentoWebService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"]])
    ], ConsultaAgendamentoWebFormMsgComponent);
    return ConsultaAgendamentoWebFormMsgComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.scss":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.scss ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.ts":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.ts ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebGridMsgComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebGridMsgComponent", function() { return ConsultaAgendamentoWebGridMsgComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __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_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../consulta-agendamento-web.constants */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.constants.ts");
/* harmony import */ var _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../consulta-agendamento-web.model */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.model.ts");
/* harmony import */ var _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../consulta-agendamento-web.service */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.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 __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 ConsultaAgendamentoWebGridMsgComponent = /** @class */ (function (_super) {
    __extends(ConsultaAgendamentoWebGridMsgComponent, _super);
    function ConsultaAgendamentoWebGridMsgComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, datatablesService) {
        var _this = _super.call(this, new _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_8__["ConsultaAgendamentoWebConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.datatablesService = datatablesService;
        _this.data = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_9__["ChamarMensagensDto"]();
        _this.dados = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_9__["MensagensEEmailDto"]();
        _this.filtro = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_9__["ConsultaAgendamentoWebFilter"]();
        _this.constantes = new _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_8__["ConsultaAgendamentoWebConstants"]();
        _this.triggerFocus = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mensagens = [];
        _this.hasDados = false;
        _this.regMsg = 0;
        _this.chamarMensagens = function (regMsg) {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                if (!!(_this.data.regPlaneja)) {
                    var odata = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ObjectUtilsStaticService"].objToB64({
                        tipoPlanej: _this.data.tipoPlaneja,
                        regPlaneja: _this.data.regPlaneja,
                        regMsg: regMsg,
                        codDest: _this.data.codDest
                    });
                    _this.router.navigate([_this.target + "/especificos/granel/movimentos/consultaAgendamentoWeb/enviarEmail/" + odata]);
                }
            });
        };
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.getDadosMesagens(this.getId);
                return [2 /*return*/];
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _super.prototype.addFuncoes.call(_this, [
            { action: 'mensagens', func: function () { return _this.chamarMensagens(0); } },
            { action: 'enviarMensagens', func: function () { return _this.chamarMensagens(_this.regMsg); } },
            { action: 'refresh', func: function () { return _this.refresh; } },
        ]);
        return _this;
    }
    ConsultaAgendamentoWebGridMsgComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.getId = id;
            if (id) {
                _this.getDadosMesagens(id);
                _this.regMsg = 0;
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    ConsultaAgendamentoWebGridMsgComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.regMsg = item.regMsg;
    };
    ConsultaAgendamentoWebGridMsgComponent.prototype.getDadosMesagens = function (id) {
        var _this = this;
        this.service.getDadosMensagens(id).subscribe(function (resp) {
            _this.data = resp[0];
            var placasArray = [
                _this.data.placaCavalo,
                _this.data.placaCarreta1,
                _this.data.placaCarreta2
            ];
            _this.placas = placasArray.filter(function (placa) { return placa; }).join('/ ');
            _this.getDadosGrid(_this.data.tipoPlaneja, id);
        });
    };
    ConsultaAgendamentoWebGridMsgComponent.prototype.getDadosGrid = function (tipoPlanej, regPlaneja) {
        var _this = this;
        this.service.getDadosMensagensGrid(tipoPlanej, regPlaneja).subscribe(function (data) {
            _this.dadosGrid = data;
            _this.datatablesService.toDataTable({ tableId: 'dtChamarMensagensGrid', type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["ETypesTables"].DEFAULT });
            _this.hasDados = _this.dadosGrid.length > 0;
        });
    };
    ConsultaAgendamentoWebGridMsgComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        clearInterval(this._updateList);
        this.router.navigate([this.target + "/especificos/granel/movimentos/consultaAgendamentoWeb"]);
    };
    ConsultaAgendamentoWebGridMsgComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_10__["ConsultaAgendamentoWebService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] }
    ]; };
    ConsultaAgendamentoWebGridMsgComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-agendamento-web-grid-msg",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-agendamento-web-grid-msg.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consulta-agendamento-web-grid-msg.component.scss */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_10__["ConsultaAgendamentoWebService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"]])
    ], ConsultaAgendamentoWebGridMsgComponent);
    return ConsultaAgendamentoWebGridMsgComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-index/consulta-agendamento-web-index.component.scss":
/*!***********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-index/consulta-agendamento-web-index.component.scss ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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

/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-index/consulta-agendamento-web-index.component.ts":
/*!*********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-index/consulta-agendamento-web-index.component.ts ***!
  \*********************************************************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebIndexComponent", function() { return ConsultaAgendamentoWebIndexComponent; });
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../consulta-agendamento-web.constants */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.constants.ts");
/* harmony import */ var _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../consulta-agendamento-web.model */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.model.ts");
/* harmony import */ var _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../consulta-agendamento-web.service */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
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 ConsultaAgendamentoWebIndexComponent = /** @class */ (function (_super) {
    __extends(ConsultaAgendamentoWebIndexComponent, _super);
    function ConsultaAgendamentoWebIndexComponent(router, service, datatablesService, funcoesService, messageService, configuracao, permissoesUtils, loginService) {
        var _this = _super.call(this, new _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_5__["ConsultaAgendamentoWebConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.constantes = new _consulta_agendamento_web_constants__WEBPACK_IMPORTED_MODULE_5__["ConsultaAgendamentoWebConstants"]();
        _this.data = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_6__["ConsultaAgendamentoWeb"]();
        _this.dataRVeiculoNLocalizado = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_6__["RegistrarVeiculoNaoLocalizadoDto"]();
        _this.statusServicoLeituraPlc = false;
        _this.statusServicoIntegracaoPlc = false;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.service.dataParametro.numChamCtv = _this.configuracao.string("CTV", "NumNLocCtv");
                _this.service.dataParametro.numChamCtv = _this.configuracao.string("CTV", "NumChamCtv");
                _this.service.dataParametro.corAgendado = _this.configuracao.string("CTV", "WebCorAgendado");
                _this.service.dataParametro.corChegada = _this.configuracao.string("CTV", "WebCorChegada");
                _this.service.dataParametro.corChamado = _this.configuracao.string("CTV", "WebCorChamado");
                _this.service.dataParametro.corSaida = _this.configuracao.string("CTV", "WebCorSaida");
                _this.service.dataParametro.corVencendo = _this.configuracao.string("CTV", "WebCorVencendo");
                _this.service.dataParametro.corVencido = _this.configuracao.string("CTV", "WebCorVencido");
                _this.service.dataParametro.naoUsaCores = _this.configuracao.boolean("CTV", "NaoUsaCores");
                _this.service.dataParametro.patioTriagem = _this.configuracao.boolean("CTV", "PatioTriagem");
                _this.service.dataParametro.minAlertaVencendo = _this.configuracao.number("CTV", "MinAlertaVencendo");
            }
        };
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.service.getDados(this.service.filtro).subscribe(function (resp) {
                    _this.service.dados = resp;
                });
                if (this.service.filtro.intervaloVerificacao == 0) {
                    clearInterval(this._updateList);
                }
                else {
                    this.updateTimer();
                }
                return [2 /*return*/];
            });
        }); };
        _this.chamarMensagens = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                if (!!(_this.data.regPlaneja)) {
                    _this.router.navigate([_this.target + "/especificos/granel/movimentos/consultaAgendamentoWeb/mensagensDoPlanejamento/" + _this.data.regPlaneja]);
                }
            });
        };
        _this.registrarVeiculoNaoLocalizado = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                _this.dataRVeiculoNLocalizado.tipoPlaneja = _this.data.tipoPlanej;
                _this.dataRVeiculoNLocalizado.regPlaneja = _this.data.regControle;
                _this.dataRVeiculoNLocalizado.numNLocCtv = _this.numNLocCtv;
                _this.dataRVeiculoNLocalizado.codDest = _this.data.codDest;
                _this.dataRVeiculoNLocalizado.placaCavalo = _this.data.placaCavalo;
                _this.dataRVeiculoNLocalizado.placaCarreta1 = _this.data.placaCarreta1;
                _this.dataRVeiculoNLocalizado.placaCarreta2 = _this.data.placaCarreta2;
                _this.dataRVeiculoNLocalizado.nomeTransp = _this.data.nomeTransp;
                _this.dataRVeiculoNLocalizado.nomeMoto = _this.data.nomeMoto;
                _this.dataRVeiculoNLocalizado.chamados = _this.data.chamados;
                _this.messageService.confirm("titles.consultaAgendamentoWeb", 'messages.desejaRegistrarVeiculoNaoLocalizado', null, function () { return __awaiter(_this, void 0, void 0, function () {
                    var _this = this;
                    return __generator(this, function (_a) {
                        this.service.registrarVeiculoNaoLocalizado(this.dataRVeiculoNLocalizado).subscribe(function (result) {
                            if (!result.isValid) {
                                result.erros.forEach(function (m) { return _this.messageService.translate(m.message); });
                                return;
                            }
                            else {
                                _this.messageService.saveSuccess("titles.consultaAgendamentoWeb");
                                _this.refresh();
                            }
                        });
                        return [2 /*return*/];
                    });
                }); }, false);
            });
        };
        _this.registrarChamadaVeiculo = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () {
                _this.dataRVeiculoNLocalizado.tipoPlaneja = _this.data.tipoPlanej;
                _this.dataRVeiculoNLocalizado.regPlaneja = _this.data.regControle;
                _this.dataRVeiculoNLocalizado.numNLocCtv = _this.numNLocCtv;
                _this.dataRVeiculoNLocalizado.codDest = _this.data.codDest;
                _this.dataRVeiculoNLocalizado.placaCavalo = _this.data.placaCavalo;
                _this.dataRVeiculoNLocalizado.placaCarreta1 = _this.data.placaCarreta1;
                _this.dataRVeiculoNLocalizado.placaCarreta2 = _this.data.placaCarreta2;
                _this.dataRVeiculoNLocalizado.nomeTransp = _this.data.nomeTransp;
                _this.dataRVeiculoNLocalizado.nomeMoto = _this.data.nomeMoto;
                _this.dataRVeiculoNLocalizado.chamados = _this.data.chamados;
                _this.messageService.confirm("titles.consultaAgendamentoWeb", 'messages.desejaRegistrarChamadaVeiculo', null, function () { return __awaiter(_this, void 0, void 0, function () {
                    var _this = this;
                    return __generator(this, function (_a) {
                        this.service.registrarChamadaVeiculo(this.dataRVeiculoNLocalizado).subscribe(function (result) {
                            if (!result.isValid) {
                                result.erros.forEach(function (m) { return _this.messageService.translate(m.message); });
                                return;
                            }
                            else {
                                _this.messageService.saveSuccess("titles.consultaAgendamentoWeb");
                                _this.refresh();
                            }
                        });
                        return [2 /*return*/];
                    });
                }); }, false);
            });
        };
        _this.refazerSequencia = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 6, function () {
                _this.messageService.confirm("titles.consultaAgendamentoWeb", 'messages.desejaRefazerSequencias', null, function () { return __awaiter(_this, void 0, void 0, function () {
                    var _this = this;
                    return __generator(this, function (_a) {
                        this.service.refazerSequencia().subscribe(function (result) {
                            if (!result.isValid) {
                                result.erros.forEach(function (m) { return _this.messageService.translate(m.message); });
                                return;
                            }
                            else {
                                _this.messageService.saveSuccess("titles.consultaAgendamentoWeb");
                                _this.refresh();
                            }
                        });
                        return [2 /*return*/];
                    });
                }); }, false);
            });
        };
        _this.chegadaSaidaPatio = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 9, function () {
                _this.messageService.confirm("titles.consultaAgendamentoWeb", 'messages.desejaChamarChegadaSaidaPatio', null, function () { return __awaiter(_this, void 0, void 0, function () {
                    var _this = this;
                    return __generator(this, function (_a) {
                        this.service.chegadaSaidaPatio(this.data.tipoPlanej, this.data.regPlaneja).subscribe(function (result) {
                            if (!result.isValid) {
                                result.erros.forEach(function (m) { return _this.messageService.translate(m.message); });
                                return;
                            }
                            else {
                                _this.messageService.saveSuccess("titles.consultaAgendamentoWeb");
                                _this.refresh();
                            }
                        });
                        return [2 /*return*/];
                    });
                }); }, false);
            });
        };
        _this.chamar = function () {
            var speechSynthesis = window.speechSynthesis;
            if (speechSynthesis.speaking) {
                console.error("speechSynthesis.speaking");
                return;
            }
            var speechSynthesisVoice = speechSynthesis.getVoices().find(function (c) { return c.name === "Google português do Brasil"; });
            var placas = _this.data.placaCavalo.split(' ');
            var placa = placas[0].split('');
            var utterThis = new SpeechSynthesisUtterance("Aten\u00E7\u00E3o placa! " + placa.join('...!'));
            utterThis.onend = function () { return _this.service.setChamada(_this.data.regControle); };
            utterThis.onerror = function () { return console.error("SpeechSynthesisUtterance.onerror"); };
            utterThis.voice = speechSynthesisVoice;
            utterThis.pitch = 0;
            utterThis.rate = 0.9;
            speechSynthesis.speak(utterThis);
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _super.prototype.addFuncoes.call(_this, [
            { action: 'registrarChamadaVeiculo', func: function () { return _this.registrarChamadaVeiculo; } },
            { action: 'registrarVeiculoNaoLocalizado', func: function () { return _this.registrarVeiculoNaoLocalizado; } },
            { action: 'refazerSequencia', func: function () { return _this.refazerSequencia; } },
            { action: 'chamar', func: function () { return _this.chamar; } },
            { action: 'chamarMensagens', func: function () { return _this.chamarMensagens; } },
            { action: 'chegadaSaidaPatio', func: function () { return _this.chegadaSaidaPatio; } },
        ]);
        return _this;
    }
    ConsultaAgendamentoWebIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig({
            codRotina: this.constantes.sisFormularioId,
            configs: this.constantes.configuracoes
        }, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.data = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_6__["ConsultaAgendamentoWeb"]();
                    _this.service.filtro = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_6__["ConsultaAgendamentoWebFilter"]();
                    _this.filtrar();
                    _this.service.filtro.filialId = _this.loginService.getLogin().filialId;
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    ConsultaAgendamentoWebIndexComponent.prototype.updateTimer = function () {
        var _this = this;
        if (this.service.filtro.intervaloVerificacao === 0) {
            clearInterval(this._updateList);
            return;
        }
        clearInterval(this._updateList);
        var interval = this.service.filtro.intervaloVerificacao * 1000;
        this._updateList = setInterval(function () {
            _this.service.getDados(_this.service.filtro).subscribe(function (resp) {
                _this.service.dados = resp;
            });
        }, interval);
    };
    ConsultaAgendamentoWebIndexComponent.prototype.ngOnDestroy = function () {
        this.stopIntervalConsulta();
    };
    ConsultaAgendamentoWebIndexComponent.prototype.stopIntervalConsulta = function () {
        clearInterval(this._updateList);
    };
    ConsultaAgendamentoWebIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.habilitarDesabilitarBotoesMenu();
    };
    ConsultaAgendamentoWebIndexComponent.prototype.habilitarDesabilitarBotoesMenu = function () {
        this.buttonDisabled('listaIndex', 'chegadaSaidaPatio', this.data.cPatio !== "N" && this.data.sPatio !== "N");
    };
    Object.defineProperty(ConsultaAgendamentoWebIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            var dados = this.service.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.regControle, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.tipoPlanej, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.codDest, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.transportadora, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.sequencia, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.nomeTransp, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.descrTipoVeiculo, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.placaCavalo, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.placaCarreta1, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.placaCarreta2, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtChegada), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.descrSitVeiculo, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.requisicao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.tipoMov, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.nomeMoto, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.tipo, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.modal, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.observ, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.chamados, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtChamado), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.localiza, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtLocaliza), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtOperinc), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.regPlaneja, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.cliVenda, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtChegadaPatio), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtSaidaPatio), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.statusCor, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.cPatio, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.sPatio, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.produtos, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].exist(v.patio, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConsultaAgendamentoWebIndexComponent.prototype, "hasDados", {
        get: function () {
            if (!this.service.dados)
                return false;
            return this.service.dados && this.service.dados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    ConsultaAgendamentoWebIndexComponent.prototype.filtrar = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(null);
        jQuery("#consulta-agendamento-web-filter").modal("show");
    };
    ConsultaAgendamentoWebIndexComponent.prototype.corLinha = function (status) {
        switch (status) {
            case "A":
                return this.service.corAgendado;
            case "C":
                return this.service.corChegada;
            case "O":
                return this.service.corChamado;
            case "S":
                return this.service.corSaidaPatio;
            case "E":
                return this.service.corAgendamentoVencendo;
            case "V":
                return this.service.corAgendamentoVencido;
            default:
                return "";
        }
    };
    ConsultaAgendamentoWebIndexComponent.prototype.corServicoLeituraPlc = function () {
        if (this.statusServicoLeituraPlc === true)
            return 'circle green';
        else
            return 'circle red';
    };
    ConsultaAgendamentoWebIndexComponent.prototype.corServicoIntegracaoPlc = function () {
        if (this.statusServicoIntegracaoPlc === true)
            return 'circle green';
        else
            return 'circle red';
    };
    ConsultaAgendamentoWebIndexComponent.prototype.executaFiltro = function (event) {
        this.service.filtro = event;
        this.refresh();
    };
    ConsultaAgendamentoWebIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                dataI: _this.service.filtro.dataI,
                dataF: _this.service.filtro.dataF,
                codDest: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(_this.service.filtro.codDest),
                transportadora: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(_this.service.filtro.transportadora),
                tipoMov: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(_this.service.filtro.tipoMov)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    ConsultaAgendamentoWebIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ConsultaAgendamentoWebIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_7__["ConsultaAgendamentoWebService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_16__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_10__["TableComponent"])
    ], ConsultaAgendamentoWebIndexComponent.prototype, "table", void 0);
    ConsultaAgendamentoWebIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: 'app-consulta-agendamento-web-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-agendamento-web-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-index/consulta-agendamento-web-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./consulta-agendamento-web-index.component.scss */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-index/consulta-agendamento-web-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _consulta_agendamento_web_service__WEBPACK_IMPORTED_MODULE_7__["ConsultaAgendamentoWebService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_12__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_13__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_9__["ConfiguracaoFacade"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_15__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_16__["LoginService"]])
    ], ConsultaAgendamentoWebIndexComponent);
    return ConsultaAgendamentoWebIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.constants.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.constants.ts ***!
  \********************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebConstants", function() { return ConsultaAgendamentoWebConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaAgendamentoWebConstants = /** @class */ (function () {
    function ConsultaAgendamentoWebConstants() {
        this.sisFormularioId = 375156;
        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.registrarVeiculoNaoLocalizado" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.registrarChamadaVeiculo" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.refazerSequencia" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.chamarVeiculo" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.chamarMensagens" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.chegadaSaidaPatio" },
            { sisFormularioId: this.sisFormularioId, libRotina: 10, acao: "labels.gravarEmail" }
        ];
        this.sisSistemaId = "GRN";
        this.nomeForm = "titles.consultaAgendamentoWeb";
        this.reportId = "GRN0005";
        this.reportTitulo = { "titulo": "Consulta Agendamento Web", "subTitulo": "" };
        this.configuracoes = [];
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'PreferenciasUsuario', action: 'preferenciasUsuario', icon: "icon-lock", exibeButton: false, eximeMenu: true, menuName: 'Movimento', depitem: false },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'registrarChamadaVeiculo', action: 'registrarChamadaVeiculo', icon: "fa fa-file-text-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'registrarVeiculoNaoLocalizado', action: 'registrarVeiculoNaoLocalizado', icon: "fa fa-ban", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'refazerSequencia', action: 'refazerSequencia', icon: "fa fa-ban", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: false },
            { title: 'chamarVeiculo', action: "chamar", icon: "icon-volume", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'chamarMensagens', action: "chamarMensagens", icon: "fa fa-envelope-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'chegadaSaidaPatio', action: 'chegadaSaidaPatio', icon: "fa fa-file-text-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: true },
        ];
        this.listaGridMsg = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Mensagens', action: 'mensagens', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'enviarMensagens', action: "enviarMensagens", icon: "fa fa-envelope-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaFormMsg = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.configuracoes = [
            {
                sistema: "CTV",
                parametros: [
                    "NumNLocCtv",
                    "NumChamCtv",
                    "WebCorAgendado",
                    "CorAgendado",
                    "WebCorChegada",
                    "WebCorChamado",
                    "WebCorSaida",
                    "WebCorVencendo",
                    "WebCorVencido",
                    "NaoUsaCores",
                    "PatioTriagem",
                    "MinAlertaVencendo"
                ]
            },
        ];
    }
    return ConsultaAgendamentoWebConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.model.ts":
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.model.ts ***!
  \****************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebGrupo, ConsultaAgendamentoWeb, ChamarMensagensDto, ChamarMensagensGridDto, RegistrarVeiculoNaoLocalizadoDto, ConsultaAgendamentoWebFilter, ParametroWebTotal, MensagensEEmailDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebGrupo", function() { return ConsultaAgendamentoWebGrupo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWeb", function() { return ConsultaAgendamentoWeb; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChamarMensagensDto", function() { return ChamarMensagensDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChamarMensagensGridDto", function() { return ChamarMensagensGridDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegistrarVeiculoNaoLocalizadoDto", function() { return RegistrarVeiculoNaoLocalizadoDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebFilter", function() { return ConsultaAgendamentoWebFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ParametroWebTotal", function() { return ParametroWebTotal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MensagensEEmailDto", function() { return MensagensEEmailDto; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaAgendamentoWebGrupo = /** @class */ (function () {
    function ConsultaAgendamentoWebGrupo() {
    }
    return ConsultaAgendamentoWebGrupo;
}());

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

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

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

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

var ConsultaAgendamentoWebFilter = /** @class */ (function () {
    function ConsultaAgendamentoWebFilter() {
        var thirtyDaysAgo = new Date(Date.now() - 30 * 86400000);
        this.dataI = thirtyDaysAgo;
        this.dataF = new Date();
        this.tipoMov = "T";
        this.intervaloVerificacao = 0;
        this.filialId = 0;
    }
    ConsultaAgendamentoWebFilter.fromJS = function (data) {
        data = typeof data === 'object' ? data : {};
        var result = new ConsultaAgendamentoWebFilter();
        result.init(data);
        return result;
    };
    ConsultaAgendamentoWebFilter.prototype.init = function (data) {
        var _this = this;
        if (data) {
            Object.getOwnPropertyNames(data).forEach(function (d) { return _this[d] = data[d]; });
            this.dataI = new Date(data.dataI);
            this.dataF = new Date(data.dataF);
        }
    };
    return ConsultaAgendamentoWebFilter;
}());

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

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



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.module.ts":
/*!*****************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.module.ts ***!
  \*****************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebModule", function() { return ConsultaAgendamentoWebModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _consulta_agendamento_web_index_consulta_agendamento_web_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consulta-agendamento-web-index/consulta-agendamento-web-index.component */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-index/consulta-agendamento-web-index.component.ts");
/* harmony import */ var _consulta_agendamento_web_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-agendamento-web.routing.module */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.routing.module.ts");
/* harmony import */ var _consulta_agendamento_web_filter_consulta_agendamento_web_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./consulta-agendamento-web-filter/consulta-agendamento-web-filter.component */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-filter/consulta-agendamento-web-filter.component.ts");
/* harmony import */ var _consulta_agendamento_web_grid_msg_consulta_agendamento_web_grid_msg_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.ts");
/* harmony import */ var _consulta_agendamento_web_form_msg_consulta_agendamento_web_form_msg_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.ts");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var ConsultaAgendamentoWebModule = /** @class */ (function () {
    function ConsultaAgendamentoWebModule() {
    }
    ConsultaAgendamentoWebModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _consulta_agendamento_web_index_consulta_agendamento_web_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultaAgendamentoWebIndexComponent"],
                _consulta_agendamento_web_filter_consulta_agendamento_web_filter_component__WEBPACK_IMPORTED_MODULE_4__["ConsultaAgendamentoWebFilterComponent"],
                _consulta_agendamento_web_grid_msg_consulta_agendamento_web_grid_msg_component__WEBPACK_IMPORTED_MODULE_5__["ConsultaAgendamentoWebGridMsgComponent"],
                _consulta_agendamento_web_form_msg_consulta_agendamento_web_form_msg_component__WEBPACK_IMPORTED_MODULE_6__["ConsultaAgendamentoWebFormMsgComponent"]
            ],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _consulta_agendamento_web_routing_module__WEBPACK_IMPORTED_MODULE_3__["ConsultaAgendamentoWebRoutingModule"],
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_7__["SharedModule"]
            ]
        })
    ], ConsultaAgendamentoWebModule);
    return ConsultaAgendamentoWebModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.routing.module.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.routing.module.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebRoutingModule", function() { return ConsultaAgendamentoWebRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _consulta_agendamento_web_form_msg_consulta_agendamento_web_form_msg_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-form-msg/consulta-agendamento-web-form-msg.component.ts");
/* harmony import */ var _consulta_agendamento_web_grid_msg_consulta_agendamento_web_grid_msg_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-grid-msg/consulta-agendamento-web-grid-msg.component.ts");
/* harmony import */ var _consulta_agendamento_web_index_consulta_agendamento_web_index_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./consulta-agendamento-web-index/consulta-agendamento-web-index.component */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web-index/consulta-agendamento-web-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var MRoutes = [
    {
        path: "",
        component: _consulta_agendamento_web_index_consulta_agendamento_web_index_component__WEBPACK_IMPORTED_MODULE_5__["ConsultaAgendamentoWebIndexComponent"],
        data: { breadcrumb: "consultaAgendamentoWeb" }
    },
    {
        path: "mensagensDoPlanejamento/:id",
        component: _consulta_agendamento_web_grid_msg_consulta_agendamento_web_grid_msg_component__WEBPACK_IMPORTED_MODULE_4__["ConsultaAgendamentoWebGridMsgComponent"],
        data: {
            breadcrumb: "consultaAgendamentoWeb",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "enviarEmail/:dados",
        component: _consulta_agendamento_web_form_msg_consulta_agendamento_web_form_msg_component__WEBPACK_IMPORTED_MODULE_3__["ConsultaAgendamentoWebFormMsgComponent"],
        data: {
            breadcrumb: "consultaAgendamentoWeb",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var ConsultaAgendamentoWebRoutingModule = /** @class */ (function () {
    function ConsultaAgendamentoWebRoutingModule() {
    }
    ConsultaAgendamentoWebRoutingModule = __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"]]
        })
    ], ConsultaAgendamentoWebRoutingModule);
    return ConsultaAgendamentoWebRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.service.ts":
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.service.ts ***!
  \******************************************************************************************************************/
/*! exports provided: ConsultaAgendamentoWebService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaAgendamentoWebService", function() { return ConsultaAgendamentoWebService; });
/* 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 _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-agendamento-web.model */ "./src/app/pages/especificos/granel/movimentos/consulta-agendamento-web/consulta-agendamento-web.model.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_4__ = __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_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_modais_preferencias_usuario_rotina_preferencias_usuario_rotina_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/components/modais/preferencias-usuario-rotina/preferencias-usuario-rotina.model */ "./src/app/shared/components/modais/preferencias-usuario-rotina/preferencias-usuario-rotina.model.ts");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var ConsultaAgendamentoWebService = /** @class */ (function (_super) {
    __extends(ConsultaAgendamentoWebService, _super);
    function ConsultaAgendamentoWebService(http, loginService) {
        var _this = _super.call(this, http, "granel/movimentos") || this;
        _this.http = http;
        _this.loginService = loginService;
        _this.filtro = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_3__["ConsultaAgendamentoWebFilter"]();
        _this.preferenciasUsuarios = new app_shared_components_modais_preferencias_usuario_rotina_preferencias_usuario_rotina_model__WEBPACK_IMPORTED_MODULE_6__["PreferenciasUsuarioRotinaDados"]();
        _this.dataParametro = new _consulta_agendamento_web_model__WEBPACK_IMPORTED_MODULE_3__["ParametroWebTotal"]();
        return _this;
    }
    ConsultaAgendamentoWebService.prototype.getDados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaAgendamentoWeb/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    ConsultaAgendamentoWebService.prototype.getDadosMensagens = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaAgendamentoWeb/getDadosMensagens/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    ConsultaAgendamentoWebService.prototype.getDadosMensagensGrid = function (tipoPlanej, regPlaneja) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaAgendamentoWeb/getDadosMensagensGrid/" + tipoPlanej + "/" + regPlaneja)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    ConsultaAgendamentoWebService.prototype.registrarVeiculoNaoLocalizado = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaAgendamentoWeb/registrarVeiculoNaoLocalizado", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    ConsultaAgendamentoWebService.prototype.registrarChamadaVeiculo = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaAgendamentoWeb/registrarChamadaVeiculo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    ConsultaAgendamentoWebService.prototype.refazerSequencia = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaAgendamentoWeb/refazerSequencia")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    ConsultaAgendamentoWebService.prototype.chegadaSaidaPatio = function (tipoPlanej, regPlaneja) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaAgendamentoWeb/chegadaSaidaPatio/" + tipoPlanej + "/" + regPlaneja)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    ConsultaAgendamentoWebService.prototype.setChamada = function (regControle) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaSituacaoDeVeiculo/setChamada/" + regControle)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    ConsultaAgendamentoWebService.prototype.gravarMensagensEnviarEmail = function (dados) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_8__["environment"].specifics_service_url + "/api/v1/granel/movimentos/consultaAgendamentoWeb/gravarMensagensEnviarEmail", dados)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_9__["ErrorHandler"].handleError));
    };
    Object.defineProperty(ConsultaAgendamentoWebService.prototype, "corAgendado", {
        get: function () {
            if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["StringUtilsStaticService"].isEmpty(this.dataParametro.numChamCtv)) {
                return '#327680';
            }
            else {
                return this.dataParametro.corAgendado;
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConsultaAgendamentoWebService.prototype, "corChamado", {
        get: function () {
            if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["StringUtilsStaticService"].isEmpty(this.dataParametro.corChamado)) {
                return '#0a226b';
            }
            else {
                return this.dataParametro.corChamado;
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConsultaAgendamentoWebService.prototype, "corChegada", {
        get: function () {
            if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["StringUtilsStaticService"].isEmpty(this.dataParametro.corChegada)) {
                return '#000080';
            }
            else {
                return this.dataParametro.corChegada;
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConsultaAgendamentoWebService.prototype, "corSaidaPatio", {
        get: function () {
            if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["StringUtilsStaticService"].isEmpty(this.dataParametro.corSaida)) {
                return '#808080';
            }
            else {
                return this.dataParametro.corSaida;
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConsultaAgendamentoWebService.prototype, "corAgendamentoVencendo", {
        get: function () {
            if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["StringUtilsStaticService"].isEmpty(this.dataParametro.corVencendo)) {
                return '#800000';
            }
            else {
                return this.dataParametro.corVencendo;
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ConsultaAgendamentoWebService.prototype, "corAgendamentoVencido", {
        get: function () {
            if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_4__["StringUtilsStaticService"].isEmpty(this.dataParametro.corVencido)) {
                return '#FF0000';
            }
            else {
                return this.dataParametro.corVencido;
            }
        },
        enumerable: true,
        configurable: true
    });
    ConsultaAgendamentoWebService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] }
    ]; };
    ConsultaAgendamentoWebService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"]])
    ], ConsultaAgendamentoWebService);
    return ConsultaAgendamentoWebService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_7__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-granel-movimentos-consulta-agendamento-web-consulta-agendamento-web-module.js.map