(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-obrigacoes-monitor-recepcao-cct-monitor-recepcao-cct-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.component.html":
/*!************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.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=\"modalAutorizacaoDescargaCCT\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-50\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.dadosDoEnvio' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes formErrorId=\"msgAutorizacaoDescargaCCT\"></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"autDeOperacao\">{{'labels.autDeOperacao' | translate}}</label>\r\n                                <input id=\"autDeOperacao\" name=\"autDeOperacao\" [(ngModel)]=\"data.autorizacao\"\r\n                                    class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                    [options]=\"{ prefix: '', thousands: '', decimal: '', precision: 0 }\" disabled>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"checkListId\">{{ 'labels.checklist' | translate}}</label>\r\n                                <input id=\"checkListId\" name=\"checkListId\" type=\"number\" [(ngModel)]=\"data.checkListId\"\r\n                                    class=\"form-control form-control-sm\" disabled>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-2 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"itemCheckListId\">{{ 'labels.item' | translate}}</label>\r\n                                <input id=\"itemCheckListId\" name=\"itemCheckListId\" type=\"number\"\r\n                                    [(ngModel)]=\"data.itemCheckListId\" class=\"form-control form-control-sm\" disabled>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"dtChegada\"> {{ 'labels.dataHoraChegada' | translate }}\r\n                                </label>\r\n                                <app-data-h-m-s id=\"dtChegada\" name=\"dtChegada\" [(ngModel)]=\"data.dtChegada\"\r\n                                    disabled></app-data-h-m-s>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-4 col-md-4 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"dataHoraEntrada\"> {{ 'labels.dataHoraEntrada' | translate }}\r\n                                </label>\r\n                                <app-data-h-m-s id=\"dataHoraEntrada\" name=\"dataHoraEntrada\"\r\n                                    [(ngModel)]=\"data.dtAutorizacao\" disabled></app-data-h-m-s>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-input-description label=\"cliente\" [valueID]=\"data.destinatarioIdCliente\"\r\n                                    [valueDescription]=\"data.clienteFantasia\">\r\n                                </app-input-description>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-input-description label=\"emitente\" [valueID]=\"data.destinatarioIdEmitente\"\r\n                                    [valueDescription]=\"data.emitenteFantasia\">\r\n                                </app-input-description>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-input-description label=\"produto\" [valueID]=\"data.materialId\"\r\n                                    [valueDescription]=\"data.materialFantasia\">\r\n                                </app-input-description>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-4 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"pesoAferido\">{{ \"labels.pesoAferido\" | translate }}\r\n                                </label>\r\n                                <input id=\"pesoAferido\" name=\"pesoAferido\" class=\"form-control form-control-sm\"\r\n                                    type=\"text\" currencyMask\r\n                                    [options]=\"{ prefix: '', thousands: '', decimal: '', precision: 0 }\" disabled\r\n                                    [(ngModel)]=\"data.pesoLiq\" />\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12\">\r\n                            <div class=\"table-overflow\">\r\n                                <table id=\"dtAutorizacaoDescargaCCT\"\r\n                                    class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n                                    <thead>\r\n                                        <tr>\r\n                                            <th>{{ 'labels.autorizacao' | translate }}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.checklist' | translate }}</th>\r\n                                            <th>{{ 'labels.data' | translate }}</th>\r\n                                            <th>{{ 'labels.placa' | translate }}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.pesoAferido' | translate }}</th>\r\n                                            <th>{{ 'labels.codigo' | translate }}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.cliente' | translate }}</th>\r\n                                            <th>{{ 'labels.produto' | translate }}</th>\r\n                                            <th style=\"white-space: nowrap;\">{{ 'labels.descricao' | translate }}</th>\r\n                                            <th>{{ 'labels.lb' | translate }}</th>\r\n                                        </tr>\r\n                                    </thead>\r\n                                    <tbody>\r\n                                        <tr *ngFor=\"let l of dados; index as i\" (click)=\"rowSelect(l, i)\"\r\n                                            [ngClass]=\"{'info': l == data && i == currentIndex ? true : false}\">\r\n                                            <td>{{ l.autorizacao }}</td>\r\n                                            <td>{{ l.checkListId }}</td>\r\n                                            <td>{{ l.dtAutorizacao | date: 'dd/MM/yyyy' }}</td>\r\n                                            <td>{{ l.cadastroPlacaId }}</td>\r\n                                            <td class=\"text-right\">{{ l.pesoLiq | formatCurrency: 0 }}</td>\r\n                                            <td>{{ l.destinatarioIdCliente }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ l.clienteFantasia }}</td>\r\n                                            <td>{{ l.materialId }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ l.materialFantasia }}</td>\r\n                                            <td>{{ l.liberado }}</td>\r\n                                        </tr>\r\n                                        <tr *ngIf=\"!hasDados\">\r\n                                            <th colspan=\"10\">\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                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{\r\n                        'buttons.ok' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-recepcao-cct-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaRecepcaoDeNF' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                            }}</label>\n                                        <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filtro.dtIni\"\n                                            autofocus class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMin\"\n                                            required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dtFim\"\n                                            class=\"dataHora\" [formatDateTime]=\"mascara.getFormatDataHorMin\"\n                                            required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\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\">\n                                <div class=\"custom-control custom-radio custom-control-inline\">\n                                    <input class=\"custom-control-input radio-success\" id=\"radioDefault\"\n                                        name=\"radioDefault\" [(ngModel)]=\"service.filtro.tipoPeriodo\" type=\"radio\"\n                                        value=\"E\">\n                                    <label class=\"custom-control-label\" for=\"radioDefault\">{{ 'labels.emissao' |\n                                        translate }}\n                                    </label>\n                                </div>\n                                <div class=\"custom-control custom-radio custom-control-inline\">\n                                    <input class=\"custom-control-input radio-success\" id=\"radioPrimary\"\n                                        name=\"radioPrimary\" [(ngModel)]=\"service.filtro.tipoPeriodo\" type=\"radio\"\n                                        value=\"P\">\n                                    <label class=\"custom-control-label\" for=\"radioPrimary\">{{ 'labels.envio' | translate\n                                        }}\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <label for=\"nota\">{{ 'labels.nota' | translate }}</label>\n                            <input type=\"number\" class=\"form-control-sm form-control\" name=\"nota\" id=\"nota\"\n                                [(ngModel)]=\"service.filtro.nota\">\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.destinatarioIdCliente\" showInscricao=\"false\"\n                                    showCgcCpf=\"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=\"tipoTransporte\">{{ \"labels.tipoTransporte\" | translate }}</label>\n                                <select class=\"form-control form-control-sm\" id=\"tipoTransporte\" name=\"tipoTransporte\"\n                                    [(ngModel)]=\"service.filtro.tipoTransporteId\">\n                                    <option [value]=\"''\">{{ 'labels.selecione' | translate }}</option>\n                                    <option *ngFor=\"let item of transportTypes\" value=\"{{ item.tiposDeTransporteId }}\">\n                                        {{ item.descricao }}</option>\n                                </select>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"perc\">{{ 'labels.perc' | translate }}</label>\n                                <input type=\"number\" class=\"form-control-sm form-control\" id=\"perc\" name=\"perc\"\n                                    [(ngModel)]=\"service.filtro.ptTransbordo\">\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                                <label for=\"erroIntegracao\">{{ 'labels.erroIntegracao' | translate }}</label>\n                                <app-combo-padrao id=\"erroIntegracao\" name=\"erroIntegracao\" tabela=\"NotaFiscalCCTErro\"\n                                    descricao=\"DescrErro\" chave=\"CodErro\" [(ngModel)]=\"service.filtro.codErro\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                            <label for=\"chaveNFE\">{{ 'labels.chaveNFE' | translate }}</label>\n                            <input type=\"text\" class=\"form-control-sm form-control\" name=\"chaveNFE\" id=\"chaveNFE\"\n                                [(ngModel)]=\"service.filtro.chaveNfe\">\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input id=\"apresNotaSemChave\" name=\"apresNotaSemChave\"\n                                    [ngModel]=\"service.filtro.semChave === 'S'\"\n                                    (ngModelChange)=\"service.filtro.semChave=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\" for=\"apresNotaSemChave\">{{'labels.apresNotaSemChave'\n                                    |\n                                    translate}}</label>\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=\"custom-control custom-checkbox\">\n                                <input id=\"apresNotaIntegrada\" name=\"apresNotaIntegrada\"\n                                    [ngModel]=\"service.filtro.integrados === 'S'\"\n                                    (ngModelChange)=\"service.filtro.integrados=$event?'S':'N'\"\n                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                <label class=\"custom-control-label\"\n                                    for=\"apresNotaIntegrada\">{{'labels.apresNotaIntegrada' |\n                                    translate}}</label>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</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=\"qtdeDeRegistros\">{{'labels.qtdeDeRegistros' | translate}}</label>\n                                <select id=\"qtdeDeRegistros\" name=\"qtdeDeRegistros\"\n                                    [(ngModel)]=\"service.filtro.qtdeDeRegistros\" class=\"form-control form-control-sm\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"50\">50</option>\n                                    <option value=\"100\">100</option>\n                                    <option value=\"200\">200</option>\n                                    <option value=\"500\">500</option>\n                                    <option value=\"1000\">1000</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.html":
/*!******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-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\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"data.regOrigem\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"clearfix\">\r\n            <ul class=\"nav nav-tabs\">\r\n                <li class=\"nav-item\">\r\n                    <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{ 'labels.dados' | translate }}</a>\r\n                </li>\r\n                <li class=\"nav-item\">\r\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#xe\">{{ 'labels.xmlEnvio' | translate }}</a>\r\n                </li>\r\n                <li class=\"nav-item\">\r\n                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#xr\">{{ 'labels.xmlRetorno' | translate }}</a>\r\n                </li>\r\n            </ul>\r\n        </div>\r\n        <div class=\"tab-content top\">\r\n            <div class=\"tab-pane active show\" id=\"da\">\r\n                <div class=\"section-comand-bar\">\r\n                    <app-table>\r\n                        <div class=\"table-responsive\" style=\"overflow: auto;\">\r\n                            <table id=\"dtConsulta\"\r\n                                class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                <thead>\r\n                                    <tr>\r\n                                        <th>{{ 'labels.sel' | translate}}</th>\r\n                                        <th>{{ 'labels.dtEnvio' | translate}}</th>\r\n                                        <th>{{ 'labels.tipo' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.idEnvio' | translate}}</th>\r\n                                        <th>{{ 'labels.nota' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.modeloNota' | translate}}</th>\r\n                                        <th>{{ 'labels.dtNota' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.pesoDoc' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.percTransbFerr' | translate}}</th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.totalTransbAferido' | translate}}\r\n                                        </th>\r\n                                        <th style=\"white-space: nowrap;\">{{ 'labels.tipoTransporte' | translate}}</th>\r\n                                        <th>{{ 'labels.cliente' | translate}}</th>\r\n                                        <th>{{ 'labels.chaveNFE' | translate}}</th>\r\n                                        <th>{{ 'labels.erro' | translate}}</th>\r\n                                        <th>{{ 'labels.sequencia' | translate}}</th>\r\n                                    </tr>\r\n                                </thead>\r\n                                <tbody>\r\n                                    <tr *ngFor=\"let t of dados; index as i\" (click)=\"_dbClick(t, i)\"\r\n                                        [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\r\n                                        <td>\r\n                                            <label class=\"chk\">\r\n                                                <input type=\"checkbox\" id=\"selecao\" name=\"selecao\" value=\"checked\"\r\n                                                    (ngModelChange)=\"t.selecao = $event ? 'S' : 'N'\"\r\n                                                    [ngModel]=\"t.selecao ==='S'\"\r\n                                                    style=\"margin-left:auto; margin-right:auto;\" disabled>\r\n                                                <span [ngClass]=\"{'red':t.flag == true && t.selecao == 'R' ? true : false,\r\n                                        'green':t.flag == true && t.selecao == 'S' ? true : false,\r\n                                        'blue':t.flag == true && t.selecao == 'A' ? true : false,\r\n                                        'ligthgree':t.flag == true && t.selecao == 'X' ? true : false}\"></span>\r\n                                            </label>\r\n                                        </td>\r\n                                        <td>{{ t.dtIntegracaoCCT | date: 'dd/MM/yyyy HH:mm:ss' }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.tipo }}</td>\r\n                                        <td>{{ t.regOrigem }}</td>\r\n                                        <td>{{ t.nota }}</td>\r\n                                        <td>{{ t.modNota }}</td>\r\n                                        <td>{{ t.dtNota | date: 'dd/MM/yyyy' }}</td>\r\n                                        <td>{{ t.pesoDoc }}</td>\r\n                                        <td>{{ t.percentTransbFerr }}</td>\r\n                                        <td>{{ t.totTransbFerr }}</td>\r\n                                        <td>{{ t.tipoTransp }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.cliente }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.chaveNFe }}</td>\r\n                                        <td style=\"white-space: nowrap;\">{{ t.erroIntegracaoCCT }}</td>\r\n                                        <td>{{ t.sequencia }}</td>\r\n                                    </tr>\r\n                                    <tr *ngIf=\"!hasDados\">\r\n                                        <th colspan=\"15\" 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                    </app-table>\r\n                    <div class=\"legend\">\r\n                        <div class=\"item\">\r\n                            <div class=\"circle green\"></div>\r\n                            <span>{{ 'labels.enviado' | translate }}</span>\r\n                        </div>\r\n                        <div class=\"item\">\r\n                            <div class=\"circle red\"></div>\r\n                            <span>{{ 'labels.enviadoComErro' | translate }}</span>\r\n                        </div>\r\n                        <div class=\"item\">\r\n                            <div class=\"circle blue\"></div>\r\n                            <span>{{ 'labels.aEnviar' | translate }}</span>\r\n                        </div>\r\n                        <div class=\"item\">\r\n                            <div class=\"circle ligthgree\"></div>\r\n                            <span>{{ 'labels.jaRegistradaCCT' | translate }}</span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div>\r\n                    <button class=\"btn btn-success mr-2\" [disabled]=\"!hasDados || filterIntegradosMarcado\"\r\n                        (click)=\"selecionarTodos()\" type=\"button\">\r\n                        {{ 'buttons.todos' | translate }}\r\n                    </button>\r\n                    <button class=\"btn btn-success mr-2\" [disabled]=\"!hasDados || !hasSelecionados\"\r\n                        (click)=\"processar()\" type=\"button\">{{\r\n                        'buttons.processar' | translate }}\r\n                    </button>\r\n                </div>\r\n            </div>\r\n            <div class=\"tab-pane\" id=\"xe\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                        <div class=\"form-group\">\r\n                            <textarea id=\"xMLIntegracaoCCTEnvio\" name=\"xMLIntegracaoCCTEnvio\" class=\"form-control\"\r\n                                autofocus rows=\"20\">\r\n                                {{ getXml(data.xmlIntegracaoCCTEnvio) }}\r\n                            </textarea>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\" tab-pane\" id=\"xr\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                        <div class=\"form-group\">\r\n                            <textarea id=\"xMLIntegracaoCCTRetorno\" name=\"xMLIntegracaoCCTRetorno\" class=\"form-control\"\r\n                                autofocus rows=\"20\">{{ getXml(data.xmlIntegracaoCCTRetorno) }}</textarea>\r\n                        </div>\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>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-propriedades></app-propriedades>\r\n<app-monitor-recepcao-cct-filter (filtrar)=\"executaFiltro()\"></app-monitor-recepcao-cct-filter>\r\n<app-monitor-recepcao-cct-process [filter]=\"filtro\" [data]=\"service.dados\"\r\n    (execute)=\"refresh()\"></app-monitor-recepcao-cct-process>\r\n<app-monitor-recepcao-cct-autorizacao-descarga></app-monitor-recepcao-cct-autorizacao-descarga>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-process/monitor-recepcao-cct-process.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-process/monitor-recepcao-cct-process.component.html ***!
  \**********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"monitor-recepcao-cct-process-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-md\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.processarRecepcaoNFe' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                            <div class=\"form-group\">\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input class=\"custom-control-input radio-success\" id=\"_radioDefault\"\r\n                                        name=\"_radioDefault\" [(ngModel)]=\"filter.tipoProcess\" type=\"radio\" value=\"M\">\r\n                                    <label class=\"custom-control-label\" for=\"_radioDefault\">{{\r\n                                        'labels.marcarParaProcessamento' | translate }}\r\n                                    </label>\r\n                                </div>\r\n                                <div class=\"custom-control custom-radio custom-control-inline\">\r\n                                    <input class=\"custom-control-input radio-success\" id=\"_radioPrimary\"\r\n                                        name=\"_radioPrimary\" [(ngModel)]=\"filter.tipoProcess\" type=\"radio\" value=\"P\">\r\n                                    <label class=\"custom-control-label\" for=\"_radioPrimary\">{{ 'labels.processarNotas' |\r\n                                        translate }}\r\n                                    </label>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSubmit()\">\r\n                        {{ 'buttons.ok' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\r\n                        {{ 'buttons.cancelar' | translate }}\r\n                    </button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.component.ts":
/*!********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.component.ts ***!
  \********************************************************************************************************************************************************/
/*! exports provided: MonitorRecepcaoCctAutorizacaoDescargaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorRecepcaoCctAutorizacaoDescargaComponent", function() { return MonitorRecepcaoCctAutorizacaoDescargaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var 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_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../monitor-recepcao-cct.model */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.model.ts");
/* harmony import */ var _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../monitor-recepcao-cct.service */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-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 MonitorRecepcaoCctAutorizacaoDescargaComponent = /** @class */ (function () {
    function MonitorRecepcaoCctAutorizacaoDescargaComponent(funcoesService, messageService, loginService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.loginService = loginService;
        this.service = service;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.data = new _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_7__["AutorizacaoDescargaCCT"]();
        this.dados = [];
        this.hasDados = false;
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
    }
    MonitorRecepcaoCctAutorizacaoDescargaComponent.prototype.ngOnInit = function () {
        this.data = new _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_7__["AutorizacaoDescargaCCT"]();
    };
    MonitorRecepcaoCctAutorizacaoDescargaComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (form.invalid) {
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("msgAutorizacaoDescargaCCT").emit(form);
                    this.funcoesService.backToTop();
                    return [2 /*return*/];
                }
                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].closeModal("modalAutorizacaoDescargaCCT");
                return [2 /*return*/];
            });
        });
    };
    MonitorRecepcaoCctAutorizacaoDescargaComponent.prototype.rowSelect = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitorRecepcaoCctAutorizacaoDescargaComponent.prototype.objectSelect = function (regOrigem) {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].isPositive(regOrigem)) {
            this.service.getAutorizacaoDescargaCCT({ regEnvio: regOrigem }).subscribe(function (resp) {
                _this.dados = resp;
                _this.hasDados = resp && resp.length > 0;
                if (_this.hasDados)
                    _this.rowSelect(_this.dados[0], 0);
            });
        }
    };
    MonitorRecepcaoCctAutorizacaoDescargaComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_8__["MonitorRecepcaoCctService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorRecepcaoCctAutorizacaoDescargaComponent.prototype, "dataResult", void 0);
    MonitorRecepcaoCctAutorizacaoDescargaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-recepcao-cct-autorizacao-descarga",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-recepcao-cct-autorizacao-descarga.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_8__["MonitorRecepcaoCctService"]])
    ], MonitorRecepcaoCctAutorizacaoDescargaComponent);
    return MonitorRecepcaoCctAutorizacaoDescargaComponent;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-filter/monitor-recepcao-cct-filter.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-filter/monitor-recepcao-cct-filter.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: MonitorRecepcaoCctFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorRecepcaoCctFilterComponent", function() { return MonitorRecepcaoCctFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../monitor-recepcao-cct.model */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.model.ts");
/* harmony import */ var _monitor_recepcao_cct_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../monitor-recepcao-cct.constants */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.constants.ts");
/* harmony import */ var _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../monitor-recepcao-cct.service */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.service.ts");
/* harmony import */ var _cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../cadastro/tipo-de-transporte/tipo-de-transporte.service */ "./src/app/pages/cadastro/tipo-de-transporte/tipo-de-transporte.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var MonitorRecepcaoCctFilterComponent = /** @class */ (function () {
    function MonitorRecepcaoCctFilterComponent(service, tipoDeTransporteService) {
        this.service = service;
        this.tipoDeTransporteService = tipoDeTransporteService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.constantes = new _monitor_recepcao_cct_constants__WEBPACK_IMPORTED_MODULE_4__["MonitorRecepcaoCctConstants"]();
    }
    MonitorRecepcaoCctFilterComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.transportTypes = [];
        if (!this.service.filtro) {
            this.service.filtro = new _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_3__["MonitorRecepcaoCctFilter"]();
        }
        this.tipoDeTransporteService.get().subscribe(function (resp) {
            if (resp) {
                _this.transportTypes = resp.filter(function (val) {
                    if (val.flagCCT === "S" && val.sitReg !== 'E') {
                        return val;
                    }
                });
            }
        });
    };
    MonitorRecepcaoCctFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#monitor-recepcao-cct-filter-dialog").modal("hide");
    };
    MonitorRecepcaoCctFilterComponent.ctorParameters = function () { return [
        { type: _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_5__["MonitorRecepcaoCctService"] },
        { type: _cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_6__["TipoDeTransporteService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorRecepcaoCctFilterComponent.prototype, "filtrar", void 0);
    MonitorRecepcaoCctFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-recepcao-cct-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-recepcao-cct-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-filter/monitor-recepcao-cct-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_5__["MonitorRecepcaoCctService"],
            _cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_6__["TipoDeTransporteService"]])
    ], MonitorRecepcaoCctFilterComponent);
    return MonitorRecepcaoCctFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.scss":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.scss ***!
  \****************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 12px;\n  height: 12px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 100%;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\nspan.green {\n  background-color: #378D3B;\n}\n\nspan.blue {\n  background-color: #0000CC;\n}\n\nspan.ligthgree {\n  background-color: #37b400;\n}\n\ndiv.legend {\n  display: flex;\n  flex-direction: row;\n  margin: 1%;\n}\n\ndiv.legend div.item {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  flex: 1;\n}\n\ndiv.legend div.item div.circle {\n  width: 15px;\n  height: 15px;\n  border-radius: 100%;\n  border: 1px solid #ccc;\n  margin-right: 2%;\n}\n\ndiv.legend div.item div.circle.red {\n  background-color: #c03;\n}\n\ndiv.legend div.item div.circle.green {\n  background-color: #378D3B;\n}\n\ndiv.legend div.item div.circle.blue {\n  background-color: #0000CC;\n}\n\ndiv.legend div.item div.circle.ligthgree {\n  background-color: #37b400;\n}\n\ndiv.legend div.item span {\n  /**/\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: MonitorRecepcaoCctIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorRecepcaoCctIndexComponent", function() { return MonitorRecepcaoCctIndexComponent; });
/* 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 _pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_recepcao_cct_constants__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../monitor-recepcao-cct.constants */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.constants.ts");
/* harmony import */ var _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../monitor-recepcao-cct.model */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.model.ts");
/* harmony import */ var _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../monitor-recepcao-cct.service */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.service.ts");
/* harmony import */ var _monitor_recepcao_cct_autorizacao_descarga_monitor_recepcao_cct_autorizacao_descarga_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.component */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.component.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 MonitorRecepcaoCctIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorRecepcaoCctIndexComponent, _super);
    function MonitorRecepcaoCctIndexComponent(router, datatablesService, configuracao, funcoesService, messageService, permissoesUtils, service, loginService, reportService, excelService) {
        var _this = _super.call(this, new _monitor_recepcao_cct_constants__WEBPACK_IMPORTED_MODULE_16__["MonitorRecepcaoCctConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.service = service;
        _this.loginService = loginService;
        _this.reportService = reportService;
        _this.excelService = excelService;
        _this.data = new _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_17__["MonitorRecepcaoCctDto"]();
        _this.filtro = new _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_17__["MonitorRecepcaoCctFilter"]();
        _this.constantes = new _monitor_recepcao_cct_constants__WEBPACK_IMPORTED_MODULE_16__["MonitorRecepcaoCctConstants"]();
        _this.geraDados = false;
        _this.dbClick = false;
        _this.mensagens = [];
        _this.isValid = true;
        _this.selecteds = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            _this.cctAtivo = _this.configuracao.lerConfig("OBR", "CCTAtivo") === "S" ? true : false;
            _this.cctCodigoRA = _this.configuracao.lerConfig("OBR", "CCTCodigoRA");
            _this.cctUrlProducao = _this.configuracao.lerConfig("OBR", "CCTUrlProducao");
            _this.cctUrlHomologa = _this.configuracao.lerConfig("OBR", "CCTUrlHomologa");
            _this.cctAmbiente = _this.configuracao.lerConfig("OBR", "CCTAmbiente");
            _this.cctHorasNF = _this.configuracao.lerConfig("OBR", "CCTHorasNF");
            _this.cctCert = _this.configuracao.lerConfig("OBR", "CCTCert");
            _this.cctUrlWsCorp = _this.configuracao.lerConfig("OBR", "CCTUrlWsCorp");
            _this.cctCnpjResp = _this.configuracao.lerConfig("OBR", "CCTCnpjResp");
            _this.cctEnvNFFerroPerc = _this.configuracao.lerConfig("OBR", "CCTEnvNFFerroPerc");
            _this.cctNFFerroPerc = _this.configuracao.lerConfig("OBR", "CCTNFFerroPerc");
        };
        _this.refresh = function () {
            _this.executaFiltro();
        };
        _this._refresh = function () {
            var object = {
                dtIni: _this.service.filtro.dtIni,
                dtFim: _this.service.filtro.dtFim,
                semChave: _this.service.filtro.semChave,
                integrados: _this.service.filtro.integrados,
                integradosComErro: _this.service.filtro.integradosComErro,
                nota: _this.service.filtro.nota,
                destinatarioIdCliente: _this.service.filtro.destinatarioIdCliente,
                modal: _this.service.filtro.tipoTransporteId,
                tipoPeriodo: _this.service.filtro.tipoPeriodo,
                chaveNfe: _this.service.filtro.chaveNfe,
                ptTransbordo: _this.service.filtro.ptTransbordo,
                codErro: _this.service.filtro.codErro,
                geraDados: _this.geraDados
            };
            _this.service.getByFiltro(object).subscribe(function (resp) {
                _this.service.dados = resp;
                _this.service.dados.forEach(function (val) {
                    val.flag = true;
                });
            });
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 6, function () {
                if (!_this.printParams())
                    return;
                _this.reportService.export(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                    var headerDictionary = {
                        "regOrigem": "registro",
                        "erroIntegracaoCCT": "erro",
                        "dtIntegracaoCCT": "dtEnvio",
                        "modNota": "modeloNota",
                        "totTransbFerr": "totalTransbAferido",
                        "percentTransbFerr": "percTransbFerr",
                        "descrMov": "tipoTransporte"
                    };
                    var options = {
                        headerJsonKeys: true,
                        headerDictionary: headerDictionary
                    };
                    resp = resp.map(function (_a) {
                        var dtIntegracaoCCT = _a.dtIntegracaoCCT, tipo = _a.tipo, regOrigem = _a.regOrigem, nota = _a.nota, modNota = _a.modNota, dtNota = _a.dtNota, percentTransbFerr = _a.percentTransbFerr, totTransbFerr = _a.totTransbFerr, descrMov = _a.descrMov, cliente = _a.cliente, chaveNFe = _a.chaveNFe, ccT_Integrado = _a.ccT_Integrado, erroIntegracaoCCT = _a.erroIntegracaoCCT, pesoDoc = _a.pesoDoc;
                        return ({
                            dtIntegracaoCCT: dtIntegracaoCCT, tipo: tipo, regOrigem: regOrigem, nota: nota, modNota: modNota, dtNota: dtNota,
                            percentTransbFerr: percentTransbFerr, totTransbFerr: totTransbFerr, descrMov: descrMov, cliente: cliente,
                            chaveNFe: chaveNFe, ccT_Integrado: ccT_Integrado, erroIntegracaoCCT: erroIntegracaoCCT, pesoDoc: pesoDoc
                        });
                    });
                    _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "monitorRecepcaoCct"), options);
                });
            });
        };
        _this.apresentaAutorizacaoDescarga = function () {
            if (!_this.itemSelecionado())
                return;
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 7, function () {
                _this.childMonitorRecepcaoCctAutorizacaoDescargaComponent.objectSelect(_this.data.regOrigem);
                _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("modalAutorizacaoDescargaCCT");
            });
        };
        _this.marcarComoProcessada = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                _this.selecteds = _this.service.dados.filter(function (obj) { return obj.selecao === "A"; });
                if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ArrayUtilsStaticService"].any(_this.selecteds)) {
                    _this.messageService.confirm("titles.monitorRecepcaoCct", "messages.marcarOsRegistrosSelecionadosComoProcessados", "null", function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.marcarComoProcessada(this.selecteds).subscribe(function (validationResult) {
                                if (!validationResult.isValid) {
                                    var mensagens = _this.messageService.validationResult(validationResult);
                                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.monitorRecepcaoCct", m); });
                                    _this.selecteds = [];
                                }
                                else {
                                    _this.messageService.saveSuccess("titles.monitorRecepcaoCct");
                                    _this.geraDados = true;
                                    _this._refresh();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false, function () { });
                }
                else {
                    _this.messageService.warning("titles.monitorRecepcaoCct", "messages.necessarioInformarUmaNota");
                    return;
                }
            });
        };
        _this.marcarComoExcluido = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 9, function () {
                _this.selecteds = _this.service.dados.filter(function (obj) { return obj.selecao === "A"; });
                if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ArrayUtilsStaticService"].any(_this.selecteds)) {
                    _this.messageService.confirm("titles.monitorRecepcaoCct", "messages.marcarOsRegistrosSelecionadosComoExcluidosNaoIraoAparecerMonitorRecepcao", "null", function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.marcarComoExcluido(this.selecteds).subscribe(function (validationResult) {
                                if (!validationResult.isValid) {
                                    var mensagens = _this.messageService.validationResult(validationResult);
                                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.monitorRecepcaoCct", m); });
                                    _this.selecteds = [];
                                }
                                else {
                                    _this.messageService.saveSuccess("titles.monitorRecepcaoCct");
                                    _this.geraDados = true;
                                    _this._refresh();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false, function () { });
                }
                else {
                    _this.messageService.warning("titles.monitorRecepcaoCct", "messages.necessarioInformarUmaNota");
                    return;
                }
            });
        };
        return _this;
    }
    MonitorRecepcaoCctIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.service.dados = [];
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!_this.loginService.isTokenExpired()) {
                _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("monitor-recepcao-cct-filter-dialog");
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'export', func: function () { return _this.export; } },
            { action: 'apresentaAutorizacaoDescarga', func: function () { return _this.apresentaAutorizacaoDescarga; } },
            { action: 'marcarComoProcessada', func: function () { return _this.marcarComoProcessada; } },
            { action: 'marcarComoExcluido', func: function () { return _this.marcarComoExcluido; } },
        ]);
    };
    Object.defineProperty(MonitorRecepcaoCctIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.service.dados || !this.table.filtro) {
                return this.table.getPage(this.service.dados);
            }
            var dados = this.service.dados.filter(function (v) {
                return _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.regOrigem, _this.table.filtro) ||
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.nota, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.modNota, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.dtIntegracaoCCT, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.dtNota, _this.table.filtro) ||
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.pesoDoc, _this.table.filtro) ||
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.percentTransbFerr, _this.table.filtro) ||
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].exist(v.totTransbFerr, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.tipoTransp, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.chaveNFe, _this.table.filtro) ||
                    _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.erroIntegracaoCCT, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    MonitorRecepcaoCctIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    MonitorRecepcaoCctIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("monitor-recepcao-cct-filter-dialog");
    };
    MonitorRecepcaoCctIndexComponent.prototype.executaFiltro = function () {
        this.geraDados = true;
        this._refresh();
    };
    MonitorRecepcaoCctIndexComponent.prototype.rowSelect = function (item) {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (item.selecao === "S") {
                _this.messageService.confirm("titles.monitorRecepcaoCct", "messages.registroSelecionadoJaEnviadoDesejaReprocessar", null, function () {
                    _this.recepcaoSelecionar(item.regOrigem, item.selecao);
                });
            }
            else {
                _this.recepcaoSelecionar(item.regOrigem, item.selecao);
            }
        });
    };
    MonitorRecepcaoCctIndexComponent.prototype.recepcaoSelecionar = function (pRegOrigem, pSelecao) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.recepcaoSelecionar({ regEnvio: pRegOrigem }).toPromise()];
                    case 1:
                        _a.sent();
                        return [4 /*yield*/, this.service.setCCTConsultaErro({ regEnvio: pRegOrigem, selecao: pSelecao === "A" ? "N" : "A" }).toPromise()];
                    case 2:
                        _a.sent();
                        this.geraDados = false;
                        this._refresh();
                        return [2 /*return*/];
                }
            });
        });
    };
    MonitorRecepcaoCctIndexComponent.prototype._dbClick = function (item, index) {
        var _this = this;
        this.currentIndex = index;
        this.data = item;
        if (this.dbClick === true) {
            item.color = '#fff';
            this.rowSelect(item);
        }
        if (this.dbClick === false) {
            this.dbClick = true;
        }
        setTimeout(function () {
            _this.dbClick = false;
        }, 250);
    };
    MonitorRecepcaoCctIndexComponent.prototype.getXml = function (xml) {
        if (!xml || (xml && xml.trim() === "")) {
            return;
        }
        // primeira posição onde a tag aparece <PostData>, no xml não formatado
        var begingPosdata = xml.indexOf("<PostData>");
        // primeira posição onde a tag aparece </PostData>, no xml não formatado
        var endPosdata = xml.indexOf("</PostData>");
        if (begingPosdata && begingPosdata > 1 && endPosdata && endPosdata > 1) {
            var subXml = xml.substring(begingPosdata, endPosdata + 11);
            var rspXml = this.funcoesService.stringUtils.formatacaoXml(xml);
            // primeira posição onde a tag aparece <PostData>, no xml não formatado
            var begingPosdataXmlNovo = rspXml.indexOf("<PostData>");
            // primeira posição onde a tag aparece </PostData>, no xml não formatado
            var endPosdataXmlNovo = rspXml.indexOf("</PostData>");
            var subXmlNovo = rspXml.substring(begingPosdataXmlNovo, endPosdataXmlNovo + 11);
            rspXml = rspXml.replace(subXmlNovo, subXml);
            return rspXml;
        }
        return this.funcoesService.stringUtils.formatacaoXml(xml);
    };
    MonitorRecepcaoCctIndexComponent.prototype.selecionarTodos = function () {
        var _this = this;
        var opcao = this.service.dados[0].selecao === 'A' ? 'N' : 'A';
        this.service.selecionarTodos({ opcao: opcao }).subscribe(function (_) {
            _this.geraDados = false;
            _this._refresh();
        });
    };
    MonitorRecepcaoCctIndexComponent.prototype.processar = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                    _this.service.dados.filter(function (d) { return d.tipoTransp === "F"; }).forEach(function (d) {
                        if (d.percentTransbFerr < _this.cctEnvNFFerroPerc) {
                            return;
                        }
                    });
                    _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 1, function () {
                        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["ModalUtilsStaticService"].openModal("monitor-recepcao-cct-process-dialog");
                    });
                });
                return [2 /*return*/];
            });
        });
    };
    MonitorRecepcaoCctIndexComponent.prototype.printParams = function () {
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dtIni: this.service.filtro.dtIni,
            dtFim: this.service.filtro.dtFim,
            semChave: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(this.service.filtro.semChave),
            integrados: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(this.service.filtro.integrados),
            integradosComErro: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(this.service.filtro.integradosComErro),
            nota: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.filtro.nota),
            destinatarioIdCliente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.filtro.destinatarioIdCliente),
            modal: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(this.service.filtro.modal),
            tipoPeriodo: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(this.service.filtro.tipoPeriodo),
            chaveNfe: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(this.service.filtro.chaveNfe),
            ptTransbordo: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.filtro.ptTransbordo),
            geraDados: this.geraDados
        };
        return true;
    };
    Object.defineProperty(MonitorRecepcaoCctIndexComponent.prototype, "hasDados", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ArrayUtilsStaticService"].any(this.service.dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorRecepcaoCctIndexComponent.prototype, "filterIntegradosMarcado", {
        get: function () {
            if (!this.service.filtro)
                return false;
            return this.service.filtro.integrados === "S";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorRecepcaoCctIndexComponent.prototype, "hasSelecionados", {
        get: function () {
            return _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["ArrayUtilsStaticService"].any(this.service.dados.filter(function (obj) { return obj.selecao === "A"; }));
        },
        enumerable: true,
        configurable: true
    });
    MonitorRecepcaoCctIndexComponent.prototype.itemSelecionado = function () {
        if (_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].isNotPositive(this.data.regOrigem)) {
            this.messageService.warning("titles.monitorRecepcaoCct", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    MonitorRecepcaoCctIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__["PermissoesUtilsService"] },
        { type: _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_18__["MonitorRecepcaoCctService"] },
        { type: _pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_5__["ReportService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_9__["ExcelService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__["TableComponent"], { static: false }),
        __metadata("design:type", _shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_3__["TableComponent"])
    ], MonitorRecepcaoCctIndexComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monitor_recepcao_cct_autorizacao_descarga_monitor_recepcao_cct_autorizacao_descarga_component__WEBPACK_IMPORTED_MODULE_19__["MonitorRecepcaoCctAutorizacaoDescargaComponent"], { static: false }),
        __metadata("design:type", _monitor_recepcao_cct_autorizacao_descarga_monitor_recepcao_cct_autorizacao_descarga_component__WEBPACK_IMPORTED_MODULE_19__["MonitorRecepcaoCctAutorizacaoDescargaComponent"])
    ], MonitorRecepcaoCctIndexComponent.prototype, "childMonitorRecepcaoCctAutorizacaoDescargaComponent", void 0);
    MonitorRecepcaoCctIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-recepcao-cct-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-recepcao-cct-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-recepcao-cct-index.component.scss */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_6__["DatatablesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_15__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__["PermissoesUtilsService"],
            _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_18__["MonitorRecepcaoCctService"],
            _pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_5__["ReportService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_9__["ExcelService"]])
    ], MonitorRecepcaoCctIndexComponent);
    return MonitorRecepcaoCctIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-process/monitor-recepcao-cct-process.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-process/monitor-recepcao-cct-process.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: MonitorRecepcaoCctProcessComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorRecepcaoCctProcessComponent", function() { return MonitorRecepcaoCctProcessComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_recepcao_cct_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../monitor-recepcao-cct.constants */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.constants.ts");
/* harmony import */ var _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../monitor-recepcao-cct.model */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.model.ts");
/* harmony import */ var _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../monitor-recepcao-cct.service */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.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 MonitorRecepcaoCctProcessComponent = /** @class */ (function () {
    function MonitorRecepcaoCctProcessComponent(funcoesService, messageService, service) {
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.service = service;
        this.execute = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = [];
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        this.constantes = new _monitor_recepcao_cct_constants__WEBPACK_IMPORTED_MODULE_5__["MonitorRecepcaoCctConstants"]();
    }
    MonitorRecepcaoCctProcessComponent.prototype.onSubmit = function () {
        var _this = this;
        if (this.filter.tipoProcess === "M") {
            this.messageService.confirm("titles.monitorRecepcaoCct", "messages.desejaMarcarReprocessRegsSelecionados", null, function () {
                _this.service.erroProcessar().subscribe(function (resp) {
                    if (resp && resp.erros.length > 0) {
                        _this.message = resp.erros[0].message;
                    }
                    if (!resp.isValid) {
                        _this.messageService.warning("titles.monitorRecepcaoCct", _this.message);
                    }
                });
            });
        }
        else {
            if (this.filter.tipoProcess === "P") {
                this.messageService.confirm("titles.monitorRecepcaoCct", "messages.reprocessRegsSelecionados", null, function () {
                    var dataAux = _this.data.filter(function (obj) { return obj.selecao === "A"; });
                    _this.recepcaoReprocessar(dataAux);
                });
            }
        }
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["ModalUtilsStaticService"].closeModal("monitor-recepcao-cct-process-dialog");
    };
    MonitorRecepcaoCctProcessComponent.prototype.recepcaoReprocessar = function (object) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.service.recepcaoReprocessar(object).subscribe(function (resp) {
                    if (!resp.isValid)
                        resp.erros.forEach(function (m) { return _this.messageService.warning("titles.monitorRecepcaoCct", m.message); });
                    _this.execute.emit(true);
                });
                return [2 /*return*/];
            });
        });
    };
    MonitorRecepcaoCctProcessComponent.ctorParameters = function () { return [
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_7__["MonitorRecepcaoCctService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _monitor_recepcao_cct_model__WEBPACK_IMPORTED_MODULE_6__["MonitorRecepcaoCctFilter"])
    ], MonitorRecepcaoCctProcessComponent.prototype, "filter", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], MonitorRecepcaoCctProcessComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MonitorRecepcaoCctProcessComponent.prototype, "execute", void 0);
    MonitorRecepcaoCctProcessComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-recepcao-cct-process",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-recepcao-cct-process.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-process/monitor-recepcao-cct-process.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _monitor_recepcao_cct_service__WEBPACK_IMPORTED_MODULE_7__["MonitorRecepcaoCctService"]])
    ], MonitorRecepcaoCctProcessComponent);
    return MonitorRecepcaoCctProcessComponent;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.constants.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.constants.ts ***!
  \*****************************************************************************************/
/*! exports provided: MonitorRecepcaoCctConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorRecepcaoCctConstants", function() { return MonitorRecepcaoCctConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorRecepcaoCctConstants = /** @class */ (function () {
    function MonitorRecepcaoCctConstants() {
        this.sisFormularioId = 255060;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.reprocessar" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.processarFerPercInf" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.exportExcel" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.apresentaAutorizacaoDescarga" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.marcarComoProcessada" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.marcarComoExcluido" }
        ];
        this.nomeForm = "titles.monitorRecepcaoCct";
        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: 'exportExcel', action: 'export', icon: "fa fa-file-excel-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'ApresentaAutorizacaoDescarga', action: 'apresentaAutorizacaoDescarga', icon: "fa fa-desktop", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'MarcarComoProcessada', action: 'marcarComoProcessada', icon: "fa fa-check-square", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: false },
            { title: 'MarcarComoExcluido', action: 'marcarComoExcluido', icon: "fa fa-eraser", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: false },
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
        this.listaParam = [
            {
                'sistema': 'OBR', 'parametros': ["CCTAtivo",
                    "CCTCodigoRA",
                    "CCTUrlProducao",
                    "CCTUrlHomologa",
                    "CCTAmbiente",
                    "CCTHorasNF",
                    "CCTCert",
                    "CCTUrlWsCorp",
                    "CCTCnpjResp",
                    "CCTEnvNFFerroPerc",
                    "CCTNFFerroPerc"]
            },
        ];
    }
    return MonitorRecepcaoCctConstants;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.module.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.module.ts ***!
  \**************************************************************************************/
/*! exports provided: MonitorRecepcaoCctModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorRecepcaoCctModule", function() { return MonitorRecepcaoCctModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _monitor_recepcao_cct_index_monitor_recepcao_cct_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-recepcao-cct-index/monitor-recepcao-cct-index.component */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.ts");
/* harmony import */ var _monitor_recepcao_cct_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-recepcao-cct.routing.module */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.routing.module.ts");
/* harmony import */ var _monitor_recepcao_cct_filter_monitor_recepcao_cct_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-recepcao-cct-filter/monitor-recepcao-cct-filter.component */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-filter/monitor-recepcao-cct-filter.component.ts");
/* harmony import */ var _monitor_recepcao_cct_process_monitor_recepcao_cct_process_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitor-recepcao-cct-process/monitor-recepcao-cct-process.component */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-process/monitor-recepcao-cct-process.component.ts");
/* harmony import */ var _monitor_recepcao_cct_autorizacao_descarga_monitor_recepcao_cct_autorizacao_descarga_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.component */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-autorizacao-descarga/monitor-recepcao-cct-autorizacao-descarga.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 MonitorRecepcaoCctModule = /** @class */ (function () {
    function MonitorRecepcaoCctModule() {
    }
    MonitorRecepcaoCctModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _monitor_recepcao_cct_routing_module__WEBPACK_IMPORTED_MODULE_3__["MonitorRecepcaoCctRoutingModule"]],
            declarations: [_monitor_recepcao_cct_index_monitor_recepcao_cct_index_component__WEBPACK_IMPORTED_MODULE_2__["MonitorRecepcaoCctIndexComponent"],
                _monitor_recepcao_cct_filter_monitor_recepcao_cct_filter_component__WEBPACK_IMPORTED_MODULE_4__["MonitorRecepcaoCctFilterComponent"],
                _monitor_recepcao_cct_process_monitor_recepcao_cct_process_component__WEBPACK_IMPORTED_MODULE_5__["MonitorRecepcaoCctProcessComponent"],
                _monitor_recepcao_cct_autorizacao_descarga_monitor_recepcao_cct_autorizacao_descarga_component__WEBPACK_IMPORTED_MODULE_6__["MonitorRecepcaoCctAutorizacaoDescargaComponent"]]
        })
    ], MonitorRecepcaoCctModule);
    return MonitorRecepcaoCctModule;
}());



/***/ }),

/***/ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.routing.module.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct.routing.module.ts ***!
  \**********************************************************************************************/
/*! exports provided: MonitorRecepcaoCctRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorRecepcaoCctRoutingModule", function() { return MonitorRecepcaoCctRoutingModule; });
/* 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 _monitor_recepcao_cct_index_monitor_recepcao_cct_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-recepcao-cct-index/monitor-recepcao-cct-index.component */ "./src/app/pages/obrigacoes/monitor-recepcao-cct/monitor-recepcao-cct-index/monitor-recepcao-cct-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



var MRoutes = [
    {
        path: "",
        component: _monitor_recepcao_cct_index_monitor_recepcao_cct_index_component__WEBPACK_IMPORTED_MODULE_2__["MonitorRecepcaoCctIndexComponent"],
        data: { breadcrumb: "monitorRecepcaoCct" }
    }
];
var MonitorRecepcaoCctRoutingModule = /** @class */ (function () {
    function MonitorRecepcaoCctRoutingModule() {
    }
    MonitorRecepcaoCctRoutingModule = __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"]]
        })
    ], MonitorRecepcaoCctRoutingModule);
    return MonitorRecepcaoCctRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-obrigacoes-monitor-recepcao-cct-monitor-recepcao-cct-module.js.map