(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-vopak-integracoes-monitor-integracao-synchro-cloud-monitor-integracao-synchro-cloud-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component.html":
/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.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-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtProdutos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th class=\"text-center\" style=\"width: 5%;\">{{ 'labels.sel' | translate}}</th>\n                    <th style=\"text-align: right; width: 10%;\">{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.descricao' | translate}}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\" style=\"width: 5%;\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"text-align: right; width: 10%;\">{{ t.condPagamentoId }}</td>\n                    <td>{{ t.descrCond }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosCondPagamento\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n<div>\n    <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\">\n        {{ 'buttons.selecionarTodos' | translate }}\n    </button>\n    <button type=\"button\" class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\">\n        {{ 'buttons.desmarcarTodos' | translate }}\n    </button>\n    <button [disabled]=\"!hasRegistrosSelecionados\" class=\"btn btn-success mr-2\" (click)=\"reenviarSelecionados()\"\n        type=\"button\">{{\n        'buttons.reenviarSelecionados' | translate }}\n    </button>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component.html":
/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.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=\"row\">\n    <div class=\"col-lg-12\">\n        <fieldset>\n            <legend>{{ \"labels.filtros\" | translate }}</legend>\n            <div class=\"row\">\n                <div class=\"input-group\">\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                            <app-data id=\"periodoDe\" name=\"periodoDe\"\n                                [(ngModel)]=\"service.notasFiscaisCanceladasFiltro.dataI\" autofocus class=\"dataHora\"\n                                [formatDateTime]=\"mascara.getFormatData\" required (executa)=\"validaData()\">\n                            </app-data>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\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.notasFiscaisCanceladasFiltro.dataF\"\n                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required\n                                (executa)=\"validaData()\">\n                            </app-data>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"numero\">{{'labels.numero' | translate}}</label>\n                            <input id=\"numero\" name=\"numero\" maxlength=\"9\"\n                                [(ngModel)]=\"service.notasFiscaisCanceladasFiltro.notaCancNumero\"\n                                class=\"form-control form-control-sm text-right\" type=\"text\"\n                                (keypress)=\"funcoes.apenasNumeros($event)\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"cnpjCpfTaxId\">{{'labels.cnpjCpfTaxId' | translate}}</label>\n                            <input id=\"cnpjCpfTaxId\" name=\"cnpjCpfTaxId\" maxlength=\"20\"\n                                [(ngModel)]=\"service.notasFiscaisCanceladasFiltro.notaCancCnpj\"\n                                class=\"form-control form-control-sm\" type=\"text\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"pesquisar\" class=\"pesquisar\">{{'labels.pesquisar' | translate}}</label>\n                            <div class=\"input-group-prepend\">\n                                <button type=\"button\" class=\"input-group-text\" (click)=\"refreshNfCanceladas();\">\n                                    <i class=\"fa fa-search\"></i>\n                                </button>\n                                <div class=\"custom-control custom-checkbox ml-4\">\n                                    <input id=\"notaCancContido\" name=\"notaCancContido\"\n                                        [ngModel]=\"service.notasFiscaisCanceladasFiltro.notaCancContido === 'S'\"\n                                        (ngModelChange)=\"service.notasFiscaisCanceladasFiltro.notaCancContido=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                    <label class=\"custom-control-label\" for=\"notaCancContido\">{{'labels.contido' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </fieldset>\n    </div>\n</div>\n<div class=\"clearfix\">&nbsp;</div>\n<app-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtNotasFiscaisCanceladas\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.numero' | translate}}</th>\n                    <th>{{ 'labels.dtEmissao' | translate}}</th>\n                    <th>{{ 'labels.tipoMov' | translate}}</th>\n                    <th>{{ 'labels.tipoNota' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codCliente' | translate}}</th>\n                    <th>{{ 'labels.cgcCpf' | translate }}</th>\n                    <th>{{ 'labels.ocsTaxId' | translate }}</th>\n                    <th>{{ 'labels.nomeCliente' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.valorNota' | translate}}</th>\n\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"text-align: right;\">{{ t.regNota }}</td>\n                    <td style=\"text-align: right;\">{{ t.numero }}</td>\n                    <td>{{ t.dtEmissao | date: 'dd/MM/yyyy HH:mm' }}\n                    <td>{{ t.descrTipoMov }}</td>\n                    <td>{{ t.descrTipoNota }}</td>\n                    <td style=\"text-align: right;\">{{ t.destinatarioIdCliente }}</td>\n                    <td>{{ t.cnpjCliente }}</td>\n                    <td>{{ t.taxId }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td style=\"text-align: right;\">{{ t.vlNota | formatCurrency: 2 }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosNfCanceladas\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n<div>\n    <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\">\n        {{ 'buttons.selecionarTodos' | translate }}\n    </button>\n    <button type=\"button\" class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\">\n        {{ 'buttons.desmarcarTodos' | translate }}\n    </button>\n    <button [disabled]=\"!hasRegistrosSelecionados\" class=\"btn btn-success mr-2\" (click)=\"reenviarSelecionados()\"\n        type=\"button\">{{\n        'buttons.reenviarSelecionados' | translate }}\n    </button>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.component.html":
/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.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=\"row\">\n    <div class=\"col-lg-12\">\n        <fieldset>\n            <legend>{{ \"labels.filtros\" | translate }}</legend>\n            <div class=\"row\">\n                <div class=\"input-group mb-2\">\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-check-inline\">\n                            <input id=\"dtEmis\" class=\"form-check-input\" type=\"radio\" name=\"tipoData\" value=\"E\"\n                                [(ngModel)]=\"service.nfEntSemXmlNfeFiltro.tipoData\">\n                            <label class=\"form-check-label\" for=\"dtEmis\">\n                                {{'labels.dtEmis' | translate }}\n                            </label>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-check-inline\">\n                            <input id=\"dtEntrada\" class=\"form-check-input\" type=\"radio\" name=\"tipoData\" value=\"C\"\n                                [(ngModel)]=\"service.nfEntSemXmlNfeFiltro.tipoData\">\n                            <label class=\"form-check-label\" for=\"dtEntrada\">\n                                {{'labels.dtEntrada' | translate }}\n                            </label>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"input-group\">\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                            <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.nfEntSemXmlNfeFiltro.dataI\"\n                                autofocus class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required\n                                (executa)=\"validaData()\">\n                            </app-data>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\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.nfEntSemXmlNfeFiltro.dataF\"\n                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required\n                                (executa)=\"validaData()\">\n                            </app-data>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"numero\">{{'labels.numero' | translate}}</label>\n                            <input id=\"numero\" name=\"numero\" maxlength=\"9\"\n                                [(ngModel)]=\"service.nfEntSemXmlNfeFiltro.notaEntNumero\"\n                                class=\"form-control form-control-sm text-right\" type=\"text\"\n                                (keypress)=\"funcoes.apenasNumeros($event)\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"cnpjCpfTaxId\">{{'labels.cnpjCpfTaxId' | translate}}</label>\n                            <input id=\"cnpjCpfTaxId\" name=\"cnpjCpfTaxId\" maxlength=\"20\"\n                                [(ngModel)]=\"service.nfEntSemXmlNfeFiltro.notaEntCnpj\"\n                                class=\"form-control form-control-sm\" type=\"text\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"pesquisar\" class=\"pesquisar\">{{'labels.pesquisar' | translate}}</label>\n                            <div class=\"input-group-prepend\">\n                                <button type=\"button\" class=\"input-group-text\" (click)=\"refreshNfEntSemXmlNfeFiltro();\">\n                                    <i class=\"fa fa-search\"></i>\n                                </button>\n                                <div class=\"custom-control custom-checkbox ml-4\">\n                                    <input id=\"notaEntContido\" name=\"notaEntContido\"\n                                        [ngModel]=\"service.nfEntSemXmlNfeFiltro.notaEntContido === 'S'\"\n                                        (ngModelChange)=\"service.nfEntSemXmlNfeFiltro.notaEntContido=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                    <label class=\"custom-control-label\" for=\"notaEntContido\">{{'labels.contido' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"input-group\">\n                    <div class=\"col-lg-6\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"chaveNFE\">{{'labels.chaveNFE' | translate}}</label>\n                            <input id=\"chaveNFE\" name=\"chaveNFE\" maxlength=\"44\"\n                                [(ngModel)]=\"service.nfEntSemXmlNfeFiltro.notaEntChave\"\n                                class=\"form-control form-control-sm\" type=\"text\">\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </fieldset>\n    </div>\n</div>\n<div class=\"clearfix\">&nbsp;</div>\n<app-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtNfEntSemXmlNfe\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.numero' | translate}}</th>\n                    <th>{{ 'labels.dtEmissao' | translate}}</th>\n                    <th>{{ 'labels.dtEntrada' | translate}}</th>\n                    <th>{{ 'labels.chaveNFE' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codCliente' | translate}}</th>\n                    <th>{{ 'labels.cgcCpf' | translate }}</th>\n                    <th>{{ 'labels.ocsTaxId' | translate }}</th>\n                    <th>{{ 'labels.nomeCliente' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.valorNota' | translate}}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td style=\"text-align: right;\">{{ t.regNota }}</td>\n                    <td style=\"text-align: right;\">{{ t.numero }}</td>\n                    <td>{{ t.dtEmissao | date: 'dd/MM/yyyy HH:mm' }}\n                    <td>{{ t.dtEscritura | date: 'dd/MM/yyyy HH:mm' }}\n                    <td>{{ t.chaveNFE }}</td>\n                    <td style=\"text-align: right;\">{{ t.destinatarioIdCliente }}</td>\n                    <td>{{ t.cnpjCliente }}</td>\n                    <td>{{ t.taxId }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td style=\"text-align: right;\">{{ t.vlNota | formatCurrency: 2 }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosNfEntSemXmlNfe\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component.html":
/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.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=\"row\">\n    <div class=\"col-lg-12\">\n        <fieldset>\n            <legend>{{ \"labels.filtros\" | translate }}</legend>\n            <div class=\"row\">\n                <div class=\"input-group\">\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                            <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.notasFiscaisFiltro.dataI\"\n                                autofocus class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required\n                                (executa)=\"validaData()\">\n                            </app-data>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\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.notasFiscaisFiltro.dataF\"\n                                class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\" required\n                                (executa)=\"validaData()\">\n                            </app-data>\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"numero\">{{'labels.numero' | translate}}</label>\n                            <input id=\"numero\" name=\"numero\" maxlength=\"9\"\n                                [(ngModel)]=\"service.notasFiscaisFiltro.notaNumero\"\n                                class=\"form-control form-control-sm text-right\" type=\"text\"\n                                (keypress)=\"funcoes.apenasNumeros($event)\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"cnpjCpfTaxId\">{{'labels.cnpjCpfTaxId' | translate}}</label>\n                            <input id=\"cnpjCpfTaxId\" name=\"cnpjCpfTaxId\" maxlength=\"20\"\n                                [(ngModel)]=\"service.notasFiscaisFiltro.notaCnpj\" class=\"form-control form-control-sm\"\n                                type=\"text\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"pesquisar\" class=\"pesquisar\">{{'labels.pesquisar' | translate}}</label>\n                            <div class=\"input-group-prepend\">\n                                <button type=\"button\" class=\"input-group-text\" (click)=\"refreshNotasFiscais();\">\n                                    <i class=\"fa fa-search\"></i>\n                                </button>\n                                <div class=\"custom-control custom-checkbox ml-4\">\n                                    <input id=\"notaContido\" name=\"notaContido\"\n                                        [ngModel]=\"service.notasFiscaisFiltro.notaContido === 'S'\"\n                                        (ngModelChange)=\"service.notasFiscaisFiltro.notaContido=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                    <label class=\"custom-control-label\" for=\"notaContido\">{{'labels.contido' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </fieldset>\n    </div>\n</div>\n<div class=\"clearfix\">&nbsp;</div>\n<app-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtNotasFiscais\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codigo' | translate}}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.numero' | translate}}</th>\n                    <th>{{ 'labels.dtEmissao' | translate}}</th>\n                    <th>{{ 'labels.tipoMov' | translate}}</th>\n                    <th>{{ 'labels.tipoNota' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.codCliente' | translate}}</th>\n                    <th>{{ 'labels.cgcCpf' | translate }}</th>\n                    <th>{{ 'labels.ocsTaxId' | translate }}</th>\n                    <th>{{ 'labels.nomeCliente' | translate }}</th>\n                    <th style=\"text-align: right;\">{{ 'labels.valorNota' | translate}}</th>\n\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td style=\"text-align: right;\">{{ t.regNota }}</td>\n                    <td style=\"text-align: right;\">{{ t.numero }}</td>\n                    <td>{{ t.dtEmissao | date: 'dd/MM/yyyy HH:mm' }}\n                    <td>{{ t.descrTipoMov }}</td>\n                    <td>{{ t.descTipoNota }}</td>\n                    <td style=\"text-align: right;\">{{ t.destinatarioIdCliente }}</td>\n                    <td>{{ t.cnpjCliente }}</td>\n                    <td>{{ t.taxId }}</td>\n                    <td>{{ t.nomeCliente }}</td>\n                    <td style=\"text-align: right;\">{{ t.vlNota | formatCurrency: 2 }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosNotasFiscais\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n<div>\n    <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\">\n        {{ 'buttons.selecionarTodos' | translate }}\n    </button>\n    <button type=\"button\" class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\">\n        {{ 'buttons.desmarcarTodos' | translate }}\n    </button>\n    <button [disabled]=\"!hasRegistrosSelecionados\" class=\"btn btn-success mr-2\" (click)=\"reenviarSelecionados()\"\n        type=\"button\">{{\n        'buttons.reenviarSelecionados' | translate }}\n    </button>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component.html":
/*!********************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.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=\"row\">\n    <div class=\"col-lg-12\">\n        <fieldset>\n            <legend>{{ \"labels.filtros\" | translate }}</legend>\n            <div class=\"row\">\n                <div class=\"input-group\">\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"codigo\">{{'labels.codigo' | translate}}</label>\n                            <input id=\"codigo\" name=\"codigo\" maxlength=\"20\"\n                                [(ngModel)]=\"service.produtosFiltro.materialCodigo\" class=\"form-control form-control-sm\"\n                                type=\"text\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"codigoOcs\">{{'labels.codigoOcs' | translate}}</label>\n                            <input id=\"codigoOcs\" name=\"codigoOcs\" maxlength=\"20\"\n                                [(ngModel)]=\"service.produtosFiltro.materialCodOcs\" class=\"form-control form-control-sm\"\n                                type=\"text\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"pesquisar\" class=\"pesquisar\">{{'labels.pesquisar' |\n                                translate}}</label>\n                            <div class=\"input-group-prepend\">\n                                <button type=\"button\" class=\"input-group-text\" (click)=\"refreshProdutos();\">\n                                    <i class=\"fa fa-search\"></i>\n                                </button>\n                                <div class=\"custom-control custom-checkbox ml-4\">\n                                    <input id=\"materialContido\" name=\"materialContido\"\n                                        [ngModel]=\"service.produtosFiltro.materialContido === 'S'\"\n                                        (ngModelChange)=\"service.produtosFiltro.materialContido=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                    <label class=\"custom-control-label\" for=\"materialContido\">{{'labels.contido' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </fieldset>\n    </div>\n</div>\n<div class=\"clearfix\">&nbsp;</div>\n<app-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtProdutos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                    <th>{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.codOcs' | translate}}</th>\n                    <th>{{ 'labels.descricao' | translate}}</th>\n                    <th>{{ 'labels.nFantasia' | translate}}</th>\n                    <th>{{ 'labels.codigoNbm' | translate}}</th>\n                    <th>{{ 'labels.unidade' | translate}}</th>\n                    <th>{{ 'labels.tipo' | translate }}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td>{{ t.materialId }}</td>\n                    <td>{{ t.emsMaterial }}</td>\n                    <td>{{ t.descrMater }}</td>\n                    <td>{{ t.fantasia }}</td>\n                    <td>{{ t.codNbm }}</td>\n                    <td>{{ t.unidade }}</td>\n                    <td>{{ t.descrTipo }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosProdutos\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n<div>\n    <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\">\n        {{ 'buttons.selecionarTodos' | translate }}\n    </button>\n    <button type=\"button\" class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\">\n        {{ 'buttons.desmarcarTodos' | translate }}\n    </button>\n    <button [disabled]=\"!hasRegistrosSelecionados\" class=\"btn btn-success mr-2\" (click)=\"reenviarSelecionados()\"\n        type=\"button\">{{\n        'buttons.reenviarSelecionados' | translate }}\n    </button>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component.html":
/*!********************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.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=\"row\">\n    <div class=\"col-lg-12\">\n        <fieldset>\n            <legend>{{ \"labels.filtros\" | translate }}</legend>\n            <div class=\"row\">\n                <div class=\"input-group\">\n                    <div class=\"col-lg-2\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"codigo\">{{'labels.codigo' | translate}}</label>\n                            <input id=\"codigo\" name=\"codigo\" maxlength=\"20\"\n                                [(ngModel)]=\"service.servicosFiltro.servicoCodigo\" class=\"form-control form-control-sm\"\n                                type=\"text\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"codigoOcs\">{{'labels.codigoOcs' | translate}}</label>\n                            <input id=\"codigoOcs\" name=\"codigoOcs\" maxlength=\"20\"\n                                [(ngModel)]=\"service.servicosFiltro.servicoCodOcs\" class=\"form-control form-control-sm\"\n                                type=\"text\">\n                        </div>\n                    </div>\n                    <div class=\"col-lg-3\">\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"pesquisar\" class=\"pesquisar\">{{'labels.pesquisar' |\n                                translate}}</label>\n                            <div class=\"input-group-prepend\">\n                                <button type=\"button\" class=\"input-group-text\" (click)=\"refreshServicos();\">\n                                    <i class=\"fa fa-search\"></i>\n                                </button>\n                                <div class=\"custom-control custom-checkbox ml-4\">\n                                    <input id=\"servicoContido\" name=\"servicoContido\"\n                                        [ngModel]=\"service.servicosFiltro.servicoContido === 'S'\"\n                                        (ngModelChange)=\"service.servicosFiltro.servicoContido=$event?'S':'N'\"\n                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\">\n                                    <label class=\"custom-control-label\" for=\"servicoContido\">{{'labels.contido' |\n                                        translate}}</label>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </fieldset>\n    </div>\n</div>\n<div class=\"clearfix\">&nbsp;</div>\n<app-table>\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\n        <table id=\"dtProdutos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            <thead>\n                <tr>\n                    <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                    <th>{{ 'labels.codigo' | translate}}</th>\n                    <th>{{ 'labels.codOcs' | translate}}</th>\n                    <th>{{ 'labels.descricao' | translate}}</th>\n                    <th>{{ 'labels.nFantasia' | translate}}</th>\n                    <th>{{ 'labels.codigoServico' | translate}}</th>\n                    <th>{{ 'labels.unidade' | translate}}</th>\n                    <th>{{ 'labels.tipo' | translate }}</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                    [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                    <td class=\"text-center\">\n                        <label class=\"chk\">\n                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\" [ngModel]=\"t.selecionado ==='S'\"\n                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                            <span [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                        </label>\n                    </td>\n                    <td>{{ t.materialId }}</td>\n                    <td>{{ t.emsMaterial }}</td>\n                    <td>{{ t.descrMater }}</td>\n                    <td>{{ t.fantasia }}</td>\n                    <td>{{ t.codGoverno }}</td>\n                    <td>{{ t.unidade }}</td>\n                    <td>{{ t.descrTipo }}</td>\n                </tr>\n                <tr *ngIf=\"!hasDadosServicos\">\n                    <th colspan=\"15\" style=\"text-align: center\">\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                    </th>\n                </tr>\n            </tbody>\n        </table>\n    </div>\n</app-table>\n<div>\n    <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\">\n        {{ 'buttons.selecionarTodos' | translate }}\n    </button>\n    <button type=\"button\" class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\">\n        {{ 'buttons.desmarcarTodos' | translate }}\n    </button>\n    <button [disabled]=\"!hasRegistrosSelecionados\" class=\"btn btn-success mr-2\" (click)=\"reenviarSelecionados()\"\n        type=\"button\">{{\n        'buttons.reenviarSelecionados' | translate }}\n    </button>\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-validacoes></app-validacoes>\n            <div class=\"tab-content top\">\n                <div class=\"tab-pane active show\" id=\"ge\">\n                    <div class=\"clearfix\">\n                        <ul class=\"nav nav-tabs \">\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link active show\" data-toggle=\"tab\" (click)=\"abaClicada('CLIFOR')\"\n                                    href=\"#clientesFornecedores\">{{\"labels.clientesFornecedores\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('PRO')\"\n                                    href=\"#produtos\">{{\"labels.produtos\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('SER')\"\n                                    href=\"#servicos\">{{\"labels.servicos\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('CPGTO')\"\n                                    href=\"#condPagamento\">{{\"labels.condPagamento\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('NF')\"\n                                    href=\"#notasFiscais\">{{\"labels.notasFiscais\" | translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('NFC')\"\n                                    href=\"#notasFiscaisCanceladas\">{{\"labels.notasFiscaisCanceladas\" |\n                                    translate}}</a>\n                            </li>\n                            <li class=\"nav-item\">\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"abaClicada('NESXMLNFE')\"\n                                    href=\"#notasEntradaSemXmlNfe\">{{\"labels.notasEntradaSemXmlNfe\" | translate}}</a>\n                            </li>\n                        </ul>\n                    </div>\n                    <div class=\"tab-content top\">\n                        <div class=\"tab-pane active show pl-0 pr-0\" id=\"clientesFornecedores\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <fieldset>\n                                        <legend>{{ \"labels.filtros\" | translate }}</legend>\n                                        <div class=\"row\">\n                                            <div class=\"input-group\">\n                                                <div class=\"col-lg-2\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"codigo\">{{'labels.codigo' | translate}}</label>\n                                                        <input id=\"codigo\" name=\"codigo\" maxlength=\"9\"\n                                                            [(ngModel)]=\"service.clientesFornecedoresFiltro.terceiroCodigo\"\n                                                            class=\"form-control form-control-sm text-right\" type=\"text\"\n                                                            (keypress)=\"funcoesService.apenasNumeros($event)\">\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"cnpjCpfTaxId\">{{'labels.cnpjCpfTaxId' |\n                                                            translate}}</label>\n                                                        <input id=\"cnpjCpfTaxId\" name=\"cnpjCpfTaxId\" maxlength=\"20\"\n                                                            [(ngModel)]=\"service.clientesFornecedoresFiltro.terceiroCnpj\"\n                                                            class=\"form-control form-control-sm\" type=\"text\">\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-lg-3\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"pesquisar\" class=\"pesquisar\">{{'labels.pesquisar' |\n                                                            translate}}</label>\n                                                        <div class=\"input-group-prepend\">\n                                                            <button type=\"button\" class=\"input-group-text\"\n                                                                (click)=\"refresh();\">\n                                                                <i class=\"fa fa-search\"></i>\n                                                            </button>\n                                                            <div class=\"custom-control custom-checkbox ml-4\">\n                                                                <input id=\"contido\" name=\"contido\"\n                                                                    [ngModel]=\"service.clientesFornecedoresFiltro.terceiroContido === 'S'\"\n                                                                    (ngModelChange)=\"service.clientesFornecedoresFiltro.terceiroContido=$event?'S':'N'\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\">\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"contido\">{{'labels.contido' |\n                                                                    translate}}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </fieldset>\n                                </div>\n                            </div>\n                            <div class=\"clearfix\">&nbsp;</div>\n                            <app-table>\n                                <div class=\"table-responsive\">\n                                    <table id=\"clientesFornecedores\"\n                                        class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                                        <thead>\n                                            <tr>\n                                                <th class=\"text-center\">{{ 'labels.sel' | translate}}</th>\n                                                <th>{{ 'labels.codigo' | translate}}</th>\n                                                <th>{{ 'labels.tipo' | translate}}</th>\n                                                <th>{{ 'labels.cgcCpf' | translate}}</th>\n                                                <th>{{ 'labels.ocsTaxId' | translate}}</th>\n                                                <th>{{ 'labels.razaoSocial' | translate}}</th>\n                                                <th>{{ 'labels.nFantasia' | translate}}</th>\n                                                <th>{{ 'labels.municipio' | translate }}</th>\n                                                <th>{{ 'labels.estado' | translate }}</th>\n                                            </tr>\n                                        </thead>\n                                        <tbody>\n                                            <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\"\n                                                (click)=\"_click(t, i)\"\n                                                [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                                                <td class=\"text-center\">\n                                                    <label class=\"chk\">\n                                                        <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\"\n                                                            value=\"checked\"\n                                                            (ngModelChange)=\"t.selecionado = $event ? 'S' : 'N'\"\n                                                            [ngModel]=\"t.selecionado ==='S'\"\n                                                            style=\"margin-left:auto; margin-right:auto;\" disabled>\n                                                        <span\n                                                            [ngClass]=\"{'red':t.selecionado == 'S' ? true : false}\"></span>\n                                                    </label>\n                                                </td>\n                                                <td>{{ t.destinatarioIdCliente }}</td>\n                                                <td>{{ t.descrTipoDest }}</td>\n                                                <td>{{ t.cgccpf }}</td>\n                                                <td>{{ t.ocsTaxId }}</td>\n                                                <td>{{ t.razaoSocial }}</td>\n                                                <td>{{ t.fantasia }}</td>\n                                                <td>{{ t.municipio }}</td>\n                                                <td>{{ t.estado }}</td>\n                                            </tr>\n                                            <tr *ngIf=\"!hasdadosClientesFornecedores\">\n                                                <th colspan=\"15\" style=\"text-align: center\">\n                                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                                </th>\n                                            </tr>\n                                        </tbody>\n                                    </table>\n                                </div>\n                            </app-table>\n                            <div>\n                                <button class=\"btn btn-success mr-2\" (click)=\"marcarTodos()\" type=\"button\">\n                                    {{ 'buttons.selecionarTodos' | translate }}\n                                </button>\n                                <button type=\"button\" class=\"btn btn-success mr-2\" (click)=\"desmarcarTodos()\">\n                                    {{ 'buttons.desmarcarTodos' | translate }}\n                                </button>\n                                <button [disabled]=\"!hasRegistrosSelecionados\" class=\"btn btn-success mr-2\"\n                                    (click)=\"reenviarSelecionados()\" type=\"button\">{{\n                                    'buttons.reenviarSelecionados' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"produtos\">\n                            <app-monit-integ-synchro-cloud-produtos></app-monit-integ-synchro-cloud-produtos>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"servicos\">\n                            <app-monit-integ-synchro-cloud-servicos></app-monit-integ-synchro-cloud-servicos>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"condPagamento\">\n                            <app-monit-integ-synchro-cloud-cond-pagamento></app-monit-integ-synchro-cloud-cond-pagamento>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"notasFiscais\">\n                            <app-monit-integ-synchro-cloud-notas-fiscais></app-monit-integ-synchro-cloud-notas-fiscais>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"notasFiscaisCanceladas\">\n                            <app-monit-integ-synchro-cloud-nf-canceladas></app-monit-integ-synchro-cloud-nf-canceladas>\n                        </div>\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"notasEntradaSemXmlNfe\">\n                            <app-monit-integ-synchro-cloud-notaentr-s-xml></app-monit-integ-synchro-cloud-notaentr-s-xml>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component.scss":
/*!******************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.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: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1jb25kLXBhZ2FtZW50by9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFx2b3Bha1xcaW50ZWdyYWNvZXNcXG1vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkXFxtb25pdG9yLWludGVncmFjYW8tc3luY2hyby1jbG91ZC1pbmRleFxcbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1jb25kLXBhZ2FtZW50b1xcbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1jb25kLXBhZ2FtZW50by5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1jb25kLXBhZ2FtZW50by9tb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLWNvbmQtcGFnYW1lbnRvLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1jb25kLXBhZ2FtZW50by9tb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLWNvbmQtcGFnYW1lbnRvLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE0cHg7XHJcbiAgICBoZWlnaHQ6IDE0cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuXHJcbiIsIi5jaGsgaW5wdXQge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY2hrIHNwYW4ge1xuICB3aWR0aDogMTRweDtcbiAgaGVpZ2h0OiAxNHB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcbiAgYm9yZGVyLXJhZGl1czogMThweDtcbn1cblxuc3Bhbi5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component.ts":
/*!****************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component.ts ***!
  \****************************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitIntegSynchroCloudCondPagamentoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudCondPagamentoComponent", function() { return MonitIntegSynchroCloudCondPagamentoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.constants */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __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 MonitIntegSynchroCloudCondPagamentoComponent = /** @class */ (function () {
    function MonitIntegSynchroCloudCondPagamentoComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.dadosCondPagamento = [];
        this.constantes = new _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoSynchroCloudConstants"]();
        this.registrosSelecionados = [];
        this.mensagens = [];
        this.refreshCondPagamento = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.registrosSelecionados = [];
                        _a = this;
                        return [4 /*yield*/, this.service.getCondPagamento().toPromise()];
                    case 1:
                        _a.dadosCondPagamento = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        this.reenviarSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (_this.hasRegistrosSelecionados) {
                    _this.messageService.confirm("titles.monitorIntegracaoSynchroCloud", "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarSelecionados(this.registrosSelecionados.join(','), 'CPGTO').subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refreshCondPagamento();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
    }
    Object.defineProperty(MonitIntegSynchroCloudCondPagamentoComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosCondPagamento || !this.table.filtro) {
                return this.table.getPage(this.dadosCondPagamento);
            }
            var dados = this.dadosCondPagamento.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.condPagamentoId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrCond, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitIntegSynchroCloudCondPagamentoComponent.prototype, "hasDadosCondPagamento", {
        get: function () {
            if (!this.dadosCondPagamento)
                return false;
            return this.dadosCondPagamento && this.dadosCondPagamento.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudCondPagamentoComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitIntegSynchroCloudCondPagamentoComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        this.onMarcarDesmarcar(item);
    };
    MonitIntegSynchroCloudCondPagamentoComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosCondPagamento.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.condPagamentoId);
            }
        });
    };
    MonitIntegSynchroCloudCondPagamentoComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasDadosCondPagamento) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosCondPagamento.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MonitIntegSynchroCloudCondPagamentoComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasDadosCondPagamento) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosCondPagamento.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MonitIntegSynchroCloudCondPagamentoComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudCondPagamentoComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudCondPagamentoComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.trataDadosSelecionados();
    };
    Object.defineProperty(MonitIntegSynchroCloudCondPagamentoComponent.prototype, "hasRegistrosSelecionados", {
        get: function () {
            return this.registrosSelecionados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudCondPagamentoComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"])
    ], MonitIntegSynchroCloudCondPagamentoComponent.prototype, "table", void 0);
    MonitIntegSynchroCloudCondPagamentoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monit-integ-synchro-cloud-cond-pagamento",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monit-integ-synchro-cloud-cond-pagamento.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monit-integ-synchro-cloud-cond-pagamento.component.scss */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitIntegSynchroCloudCondPagamentoComponent);
    return MonitIntegSynchroCloudCondPagamentoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component.scss":
/*!****************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.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: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1uZi1jYW5jZWxhZGFzL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXHZvcGFrXFxpbnRlZ3JhY29lc1xcbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWRcXG1vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkLWluZGV4XFxtb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLW5mLWNhbmNlbGFkYXNcXG1vbml0LWludGVnLXN5bmNocm8tY2xvdWQtbmYtY2FuY2VsYWRhcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1uZi1jYW5jZWxhZGFzL21vbml0LWludGVnLXN5bmNocm8tY2xvdWQtbmYtY2FuY2VsYWRhcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGFBQUE7QUNDSjs7QURFQTtFQUNJLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtBQ0NKOztBREVBO0VBQ0ksc0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3ZvcGFrL2ludGVncmFjb2VzL21vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkL21vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkLWluZGV4L21vbml0LWludGVnLXN5bmNocm8tY2xvdWQtbmYtY2FuY2VsYWRhcy9tb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLW5mLWNhbmNlbGFkYXMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgICB3aWR0aDogMTRweDtcclxuICAgIGhlaWdodDogMTRweDtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxOHB4O1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59XHJcblxyXG5cclxuIiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxNHB4O1xuICBoZWlnaHQ6IDE0cHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxOHB4O1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component.ts":
/*!**************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component.ts ***!
  \**************************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitIntegSynchroCloudNotasFiscaisCanceladasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNotasFiscaisCanceladasComponent", function() { return MonitIntegSynchroCloudNotasFiscaisCanceladasComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.constants */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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 MonitIntegSynchroCloudNotasFiscaisCanceladasComponent = /** @class */ (function () {
    function MonitIntegSynchroCloudNotasFiscaisCanceladasComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.dadosNfCanceladas = [];
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_12__["Mascaras"]();
        this.constantes = new _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoSynchroCloudConstants"]();
        this.registrosSelecionados = [];
        this.mensagens = [];
        this.refreshNfCanceladas = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.validaData()) {
                            return [2 /*return*/];
                        }
                        this.registrosSelecionados = [];
                        _a = this;
                        return [4 /*yield*/, this.service.getNotasFiscaisCanceladas(this.service.notasFiscaisCanceladasFiltro).toPromise()];
                    case 1:
                        _a.dadosNfCanceladas = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        this.reenviarSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (_this.hasRegistrosSelecionados) {
                    _this.messageService.confirm("titles.monitorIntegracaoSynchroCloud", "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarSelecionados(this.registrosSelecionados.join(','), 'NFC').subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refreshNfCanceladas();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
    }
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["DateTimeUtilsStaticService"].menorA(this.service.notasFiscaisCanceladasFiltro.dataF, this.service.notasFiscaisCanceladasFiltro.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.periodoDeMenorQueAte");
            return false;
        }
        if (!this.service.notasFiscaisCanceladasFiltro.dataF || !this.service.notasFiscaisCanceladasFiltro.dataI) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.dataInvalida");
            return false;
        }
        return true;
    };
    Object.defineProperty(MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosNfCanceladas || !this.table.filtro) {
                return this.table.getPage(this.dadosNfCanceladas);
            }
            var dados = this.dadosNfCanceladas.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.regNota, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.numero, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtEmissao), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrTipoMov, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrTipoNota, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.cnpjCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.taxId, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.vlNota, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype, "hasDadosNfCanceladas", {
        get: function () {
            if (!this.dadosNfCanceladas)
                return false;
            return this.dadosNfCanceladas && this.dadosNfCanceladas.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        this.onMarcarDesmarcar(item);
    };
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosNfCanceladas.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.regNota);
            }
        });
    };
    Object.defineProperty(MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype, "hasRegistrosSelecionados", {
        get: function () {
            return this.registrosSelecionados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasDadosNfCanceladas) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosNfCanceladas.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasDadosNfCanceladas) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosNfCanceladas.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"])
    ], MonitIntegSynchroCloudNotasFiscaisCanceladasComponent.prototype, "table", void 0);
    MonitIntegSynchroCloudNotasFiscaisCanceladasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monit-integ-synchro-cloud-nf-canceladas",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monit-integ-synchro-cloud-nf-canceladas.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monit-integ-synchro-cloud-nf-canceladas.component.scss */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitIntegSynchroCloudNotasFiscaisCanceladasComponent);
    return MonitIntegSynchroCloudNotasFiscaisCanceladasComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.component.ts":
/*!****************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.component.ts ***!
  \****************************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent", function() { return MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.constants */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __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 MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent = /** @class */ (function () {
    function MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.dadosNfEntSemXmlNfe = [];
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_11__["Mascaras"]();
        this.constantes = new _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoSynchroCloudConstants"]();
        this.registrosSelecionados = [];
        this.mensagens = [];
        this.refreshNfEntSemXmlNfeFiltro = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.validaData()) {
                            return [2 /*return*/];
                        }
                        this.registrosSelecionados = [];
                        _a = this;
                        return [4 /*yield*/, this.service.getNfEntSemXmlNfe(this.service.nfEntSemXmlNfeFiltro).toPromise()];
                    case 1:
                        _a.dadosNfEntSemXmlNfe = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
    }
    MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].menorA(this.service.nfEntSemXmlNfeFiltro.dataF, this.service.nfEntSemXmlNfeFiltro.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.periodoDeMenorQueAte");
            return false;
        }
        if (!this.service.nfEntSemXmlNfeFiltro.dataF || !this.service.nfEntSemXmlNfeFiltro.dataI) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.dataInvalida");
            return false;
        }
        return true;
    };
    Object.defineProperty(MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosNfEntSemXmlNfe || !this.table.filtro) {
                return this.table.getPage(this.dadosNfEntSemXmlNfe);
            }
            var dados = this.dadosNfEntSemXmlNfe.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.regNota, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.numero, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtEmissao), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtEscritura), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.chaveNFE, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.cnpjCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.taxId, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["NumberUtilsStaticService"].exist(v.vlNota, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent.prototype, "hasDadosNfEntSemXmlNfe", {
        get: function () {
            if (!this.dadosNfEntSemXmlNfe)
                return false;
            return this.dadosNfEntSemXmlNfe && this.dadosNfEntSemXmlNfe.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"])
    ], MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent.prototype, "table", void 0);
    MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monit-integ-synchro-cloud-notaentr-s-xml",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monit-integ-synchro-cloud-notaentr-s-xml.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent);
    return MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component.scss":
/*!****************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.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: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1ub3Rhcy1maXNjYWlzL0M6XFxDb3Jwb3JhdGVcXENvcnBvcmF0ZVdlYkRlc2VudlxcX3VuaXNvbHV0aW9uL3NyY1xcYXBwXFxwYWdlc1xcZXNwZWNpZmljb3NcXHZvcGFrXFxpbnRlZ3JhY29lc1xcbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWRcXG1vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkLWluZGV4XFxtb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLW5vdGFzLWZpc2NhaXNcXG1vbml0LWludGVnLXN5bmNocm8tY2xvdWQtbm90YXMtZmlzY2Fpcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1ub3Rhcy1maXNjYWlzL21vbml0LWludGVnLXN5bmNocm8tY2xvdWQtbm90YXMtZmlzY2Fpcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGFBQUE7QUNDSjs7QURFQTtFQUNJLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtBQ0NKOztBREVBO0VBQ0ksc0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3ZvcGFrL2ludGVncmFjb2VzL21vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkL21vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkLWluZGV4L21vbml0LWludGVnLXN5bmNocm8tY2xvdWQtbm90YXMtZmlzY2Fpcy9tb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLW5vdGFzLWZpc2NhaXMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2hrIGlucHV0IHtcclxuICAgIGRpc3BsYXk6IG5vbmU7XHJcbn1cclxuXHJcbi5jaGsgc3BhbiB7XHJcbiAgICB3aWR0aDogMTRweDtcclxuICAgIGhlaWdodDogMTRweDtcclxuICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkICNEREQ7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxOHB4O1xyXG59XHJcblxyXG5zcGFuLnJlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xyXG59XHJcblxyXG5cclxuIiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxNHB4O1xuICBoZWlnaHQ6IDE0cHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxOHB4O1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component.ts":
/*!**************************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component.ts ***!
  \**************************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitIntegSynchroCloudNotasFiscaisComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNotasFiscaisComponent", function() { return MonitIntegSynchroCloudNotasFiscaisComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.constants */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.model */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.model.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var MonitIntegSynchroCloudNotasFiscaisComponent = /** @class */ (function () {
    function MonitIntegSynchroCloudNotasFiscaisComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.dadosNotasFiscais = [];
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_12__["Mascaras"]();
        this.constantes = new _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoSynchroCloudConstants"]();
        this.registrosSelecionados = [];
        this.mensagens = [];
        this.refreshNotasFiscais = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.validaData()) {
                            return [2 /*return*/];
                        }
                        this.registrosSelecionados = [];
                        _a = this;
                        return [4 /*yield*/, this.service.getNotasFiscais(this.service.notasFiscaisFiltro).toPromise()];
                    case 1:
                        _a.dadosNotasFiscais = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        this.reenviarSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (_this.hasRegistrosSelecionados) {
                    _this.messageService.confirm("titles.monitorIntegracaoSynchroCloud", "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarSelecionados(this.registrosSelecionados.join(','), 'NF').subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refreshNotasFiscais();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
    }
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (!_this.service.notasFiscaisFiltro) {
                    _this.service.notasFiscaisFiltro = new _monitor_integracao_synchro_cloud_model__WEBPACK_IMPORTED_MODULE_9__["MonitIntegSynchroCloudNotasFiscaisFilter"]();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["DateTimeUtilsStaticService"].menorA(this.service.notasFiscaisFiltro.dataF, this.service.notasFiscaisFiltro.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.periodoDeMenorQueAte");
            return false;
        }
        if (!this.service.notasFiscaisFiltro.dataF || !this.service.notasFiscaisFiltro.dataI) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.dataInvalida");
            return false;
        }
        return true;
    };
    Object.defineProperty(MonitIntegSynchroCloudNotasFiscaisComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosNotasFiscais || !this.table.filtro) {
                return this.table.getPage(this.dadosNotasFiscais);
            }
            var dados = this.dadosNotasFiscais.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.regNota, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.numero, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtEmissao), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.descrTipoMov, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.descTipoNota, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.nomeCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.cnpjCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.taxId, _this.table.filtro) ||
                    app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.vlNota, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitIntegSynchroCloudNotasFiscaisComponent.prototype, "hasDadosNotasFiscais", {
        get: function () {
            if (!this.dadosNotasFiscais)
                return false;
            return this.dadosNotasFiscais && this.dadosNotasFiscais.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        this.onMarcarDesmarcar(item);
    };
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosNotasFiscais.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.regNota);
            }
        });
    };
    Object.defineProperty(MonitIntegSynchroCloudNotasFiscaisComponent.prototype, "hasRegistrosSelecionados", {
        get: function () {
            return this.registrosSelecionados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasDadosNotasFiscais) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosNotasFiscais.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasDadosNotasFiscais) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosNotasFiscais.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudNotasFiscaisComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudNotasFiscaisComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"])
    ], MonitIntegSynchroCloudNotasFiscaisComponent.prototype, "table", void 0);
    MonitIntegSynchroCloudNotasFiscaisComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monit-integ-synchro-cloud-notas-fiscais",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monit-integ-synchro-cloud-notas-fiscais.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monit-integ-synchro-cloud-notas-fiscais.component.scss */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitIntegSynchroCloudNotasFiscaisComponent);
    return MonitIntegSynchroCloudNotasFiscaisComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component.scss":
/*!******************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.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: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1wcm9kdXRvcy9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFx2b3Bha1xcaW50ZWdyYWNvZXNcXG1vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkXFxtb25pdG9yLWludGVncmFjYW8tc3luY2hyby1jbG91ZC1pbmRleFxcbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1wcm9kdXRvc1xcbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1wcm9kdXRvcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1wcm9kdXRvcy9tb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLXByb2R1dG9zLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1wcm9kdXRvcy9tb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLXByb2R1dG9zLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE0cHg7XHJcbiAgICBoZWlnaHQ6IDE0cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuXHJcbiIsIi5jaGsgaW5wdXQge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY2hrIHNwYW4ge1xuICB3aWR0aDogMTRweDtcbiAgaGVpZ2h0OiAxNHB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcbiAgYm9yZGVyLXJhZGl1czogMThweDtcbn1cblxuc3Bhbi5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component.ts":
/*!****************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component.ts ***!
  \****************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitIntegSynchroCloudProdutosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudProdutosComponent", function() { return MonitIntegSynchroCloudProdutosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.constants */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
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 MonitIntegSynchroCloudProdutosComponent = /** @class */ (function () {
    function MonitIntegSynchroCloudProdutosComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.dadosProdutos = [];
        this.constantes = new _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoSynchroCloudConstants"]();
        this.registrosSelecionados = [];
        this.mensagens = [];
        this.refreshProdutos = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.registrosSelecionados = [];
                        _a = this;
                        return [4 /*yield*/, this.service.getProdutos(this.service.produtosFiltro).toPromise()];
                    case 1:
                        _a.dadosProdutos = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        this.reenviarSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (_this.hasRegistrosSelecionados) {
                    _this.messageService.confirm("titles.monitorIntegracaoSynchroCloud", "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarSelecionados(this.registrosSelecionados.join(','), 'PRO').subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refreshProdutos();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
    }
    Object.defineProperty(MonitIntegSynchroCloudProdutosComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosProdutos || !this.table.filtro) {
                return this.table.getPage(this.dadosProdutos);
            }
            var dados = this.dadosProdutos.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.materialId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.emsMaterial, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrMater, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.fantasia, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.codNbm, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.unidade, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrTipo, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitIntegSynchroCloudProdutosComponent.prototype, "hasDadosProdutos", {
        get: function () {
            if (!this.dadosProdutos)
                return false;
            return this.dadosProdutos && this.dadosProdutos.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudProdutosComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitIntegSynchroCloudProdutosComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        this.onMarcarDesmarcar(item);
    };
    MonitIntegSynchroCloudProdutosComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosProdutos.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.materialId);
            }
        });
    };
    MonitIntegSynchroCloudProdutosComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasDadosProdutos) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosProdutos.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MonitIntegSynchroCloudProdutosComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasDadosProdutos) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosProdutos.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MonitIntegSynchroCloudProdutosComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudProdutosComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudProdutosComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.trataDadosSelecionados();
    };
    Object.defineProperty(MonitIntegSynchroCloudProdutosComponent.prototype, "hasRegistrosSelecionados", {
        get: function () {
            return this.registrosSelecionados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudProdutosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"])
    ], MonitIntegSynchroCloudProdutosComponent.prototype, "table", void 0);
    MonitIntegSynchroCloudProdutosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monit-integ-synchro-cloud-produtos",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monit-integ-synchro-cloud-produtos.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monit-integ-synchro-cloud-produtos.component.scss */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitIntegSynchroCloudProdutosComponent);
    return MonitIntegSynchroCloudProdutosComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component.scss":
/*!******************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.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: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1zZXJ2aWNvcy9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFx2b3Bha1xcaW50ZWdyYWNvZXNcXG1vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkXFxtb25pdG9yLWludGVncmFjYW8tc3luY2hyby1jbG91ZC1pbmRleFxcbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1zZXJ2aWNvc1xcbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1zZXJ2aWNvcy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1zZXJ2aWNvcy9tb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLXNlcnZpY29zLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQ0NKOztBREVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvbW9uaXQtaW50ZWctc3luY2hyby1jbG91ZC1zZXJ2aWNvcy9tb25pdC1pbnRlZy1zeW5jaHJvLWNsb3VkLXNlcnZpY29zLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE0cHg7XHJcbiAgICBoZWlnaHQ6IDE0cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuXHJcbiIsIi5jaGsgaW5wdXQge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY2hrIHNwYW4ge1xuICB3aWR0aDogMTRweDtcbiAgaGVpZ2h0OiAxNHB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcbiAgYm9yZGVyLXJhZGl1czogMThweDtcbn1cblxuc3Bhbi5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component.ts":
/*!****************************************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component.ts ***!
  \****************************************************************************************************************************************************************************************************************/
/*! exports provided: MonitIntegSynchroCloudServicosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudServicosComponent", function() { return MonitIntegSynchroCloudServicosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../monitor-integracao-synchro-cloud.constants */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
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 MonitIntegSynchroCloudServicosComponent = /** @class */ (function () {
    function MonitIntegSynchroCloudServicosComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = this;
        this.router = router;
        this.service = service;
        this.messageService = messageService;
        this.funcoes = funcoes;
        this.loginService = loginService;
        this.permissoesUtils = permissoesUtils;
        this.dadosServicos = [];
        this.constantes = new _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoSynchroCloudConstants"]();
        this.registrosSelecionados = [];
        this.mensagens = [];
        this.refreshServicos = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.registrosSelecionados = [];
                        _a = this;
                        return [4 /*yield*/, this.service.getServicos(this.service.servicosFiltro).toPromise()];
                    case 1:
                        _a.dadosServicos = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        this.reenviarSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (_this.hasRegistrosSelecionados) {
                    _this.messageService.confirm("titles.monitorIntegracaoSynchroCloud", "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarSelecionados(this.registrosSelecionados.join(','), 'SER').subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refreshServicos();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
    }
    Object.defineProperty(MonitIntegSynchroCloudServicosComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDadosServicos || !this.table.filtro) {
                return this.table.getPage(this.dadosServicos);
            }
            var dados = this.dadosServicos.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.materialId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.emsMaterial, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrMater, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.fantasia, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.codGoverno, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.unidade, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["StringUtilsStaticService"].exist(v.descrTipo, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitIntegSynchroCloudServicosComponent.prototype, "hasDadosServicos", {
        get: function () {
            if (!this.dadosServicos)
                return false;
            return this.dadosServicos && this.dadosServicos.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudServicosComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitIntegSynchroCloudServicosComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        this.onMarcarDesmarcar(item);
    };
    MonitIntegSynchroCloudServicosComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosServicos.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.materialId);
            }
        });
    };
    MonitIntegSynchroCloudServicosComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasDadosServicos) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosServicos.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MonitIntegSynchroCloudServicosComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasDadosServicos) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosServicos.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MonitIntegSynchroCloudServicosComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudServicosComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.trataDadosSelecionados();
    };
    MonitIntegSynchroCloudServicosComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.trataDadosSelecionados();
    };
    Object.defineProperty(MonitIntegSynchroCloudServicosComponent.prototype, "hasRegistrosSelecionados", {
        get: function () {
            return this.registrosSelecionados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitIntegSynchroCloudServicosComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] },
        { type: _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_4__["TableComponent"])
    ], MonitIntegSynchroCloudServicosComponent.prototype, "table", void 0);
    MonitIntegSynchroCloudServicosComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monit-integ-synchro-cloud-servicos",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monit-integ-synchro-cloud-servicos.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monit-integ-synchro-cloud-servicos.component.scss */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"],
            _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_5__["MonitorIntegracaoSynchroCloudService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitIntegSynchroCloudServicosComponent);
    return MonitIntegSynchroCloudServicosComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-index.component.scss":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-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: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvdm9wYWsvaW50ZWdyYWNvZXMvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQvbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXgvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxlc3BlY2lmaWNvc1xcdm9wYWtcXGludGVncmFjb2VzXFxtb25pdG9yLWludGVncmFjYW8tc3luY2hyby1jbG91ZFxcbW9uaXRvci1pbnRlZ3JhY2FvLXN5bmNocm8tY2xvdWQtaW5kZXhcXG1vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy92b3Bhay9pbnRlZ3JhY29lcy9tb25pdG9yLWludGVncmFjYW8tc3luY2hyby1jbG91ZC9tb25pdG9yLWludGVncmFjYW8tc3luY2hyby1jbG91ZC1pbmRleC9tb25pdG9yLWludGVncmFjYW8tc3luY2hyby1jbG91ZC1pbmRleC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGFBQUE7QUNDSjs7QURFQTtFQUNJLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtBQ0NKOztBREVBO0VBQ0ksc0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3ZvcGFrL2ludGVncmFjb2VzL21vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkL21vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkLWluZGV4L21vbml0b3ItaW50ZWdyYWNhby1zeW5jaHJvLWNsb3VkLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE0cHg7XHJcbiAgICBoZWlnaHQ6IDE0cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5yZWQge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2MwMztcclxufVxyXG5cclxuXHJcbiIsIi5jaGsgaW5wdXQge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uY2hrIHNwYW4ge1xuICB3aWR0aDogMTRweDtcbiAgaGVpZ2h0OiAxNHB4O1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcbiAgYm9yZGVyLXJhZGl1czogMThweDtcbn1cblxuc3Bhbi5yZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzAzO1xufSJdfQ== */");

/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-index.component.ts":
/*!*********************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-index.component.ts ***!
  \*********************************************************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSynchroCloudIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSynchroCloudIndexComponent", function() { return MonitorIntegracaoSynchroCloudIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __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_5__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../monitor-integracao-synchro-cloud.constants */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../monitor-integracao-synchro-cloud.service */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _monit_integ_synchro_cloud_notas_fiscais_monit_integ_synchro_cloud_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component.ts");
/* harmony import */ var _monit_integ_synchro_cloud_produtos_monit_integ_synchro_cloud_produtos_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component.ts");
/* harmony import */ var _monit_integ_synchro_cloud_servicos_monit_integ_synchro_cloud_servicos_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component.ts");
/* harmony import */ var _monit_integ_synchro_cloud_cond_pagamento_monit_integ_synchro_cloud_cond_pagamento_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component.ts");
/* harmony import */ var _monit_integ_synchro_cloud_nf_canceladas_monit_integ_synchro_cloud_nf_canceladas_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component.ts");
/* harmony import */ var _monit_integ_synchro_cloud_notaentr_s_xml_monit_integ_synchro_cloud_notaentr_s_xml_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.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 MonitorIntegracaoSynchroCloudIndexComponent = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoSynchroCloudIndexComponent, _super);
    function MonitorIntegracaoSynchroCloudIndexComponent(router, service, messageService, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_6__["MonitorIntegracaoSynchroCloudConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.messageService = messageService;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.dadosClientesFornecedores = [];
        _this.constantes = new _monitor_integracao_synchro_cloud_constants__WEBPACK_IMPORTED_MODULE_6__["MonitorIntegracaoSynchroCloudConstants"]();
        _this.registrosSelecionados = [];
        _this.mensagens = [];
        _this.abaAtual = "CLIFOR";
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.registrosSelecionados = [];
                        if (!(this.abaAtual === 'PRO')) return [3 /*break*/, 1];
                        this.childAbaProdutos.refreshProdutos();
                        return [3 /*break*/, 8];
                    case 1:
                        if (!(this.abaAtual === 'SER')) return [3 /*break*/, 2];
                        this.childAbaServicos.refreshServicos();
                        return [3 /*break*/, 8];
                    case 2:
                        if (!(this.abaAtual === 'CPGTO')) return [3 /*break*/, 3];
                        this.childAbaCondPagamento.refreshCondPagamento();
                        return [3 /*break*/, 8];
                    case 3:
                        if (!(this.abaAtual === 'NF')) return [3 /*break*/, 4];
                        this.childAbaNotasFiscais.refreshNotasFiscais();
                        return [3 /*break*/, 8];
                    case 4:
                        if (!(this.abaAtual === 'NFC')) return [3 /*break*/, 5];
                        this.childAbaNotasFiscaisCanceladas.refreshNfCanceladas();
                        return [3 /*break*/, 8];
                    case 5:
                        if (!(this.abaAtual === 'NESXMLNFE')) return [3 /*break*/, 6];
                        this.childAbaNfEntSemXmlNfe.refreshNfEntSemXmlNfeFiltro();
                        return [3 /*break*/, 8];
                    case 6:
                        _a = this;
                        return [4 /*yield*/, this.service.getClientesFornecedores(this.service.clientesFornecedoresFiltro).toPromise()];
                    case 7:
                        _a.dadosClientesFornecedores = _b.sent();
                        _b.label = 8;
                    case 8: return [2 /*return*/];
                }
            });
        }); };
        _this.reenviarSelecionados = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (_this.hasRegistrosSelecionados) {
                    _this.messageService.confirm("titles.monitorIntegracaoSynchroCloud", "messages.confirmaReenvioDosRegistrosSelecionados", null, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.service.reenviarSelecionados(this.registrosSelecionados.join(','), 'CLIFOR').subscribe(function (result) {
                                _this.mensagens = _this.messageService.validationResult(result);
                                if (!result.isValid) {
                                    if (result.erros.length > 1) {
                                        for (var i = 0; i < result.erros.length; i++) {
                                            _this.mensagens = _this.messageService.validationResult(result);
                                            var mensagem = _this.mensagens[i];
                                            _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        }
                                        return;
                                    }
                                    else {
                                        var mensagem = _this.mensagens[0];
                                        _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", _this.messageService.translate("" + mensagem));
                                        return;
                                    }
                                }
                                else {
                                    _this.messageService.success("Sucesso", "messages.registrosReenviadosComSucesso");
                                    _this.refresh();
                                }
                            });
                            return [2 /*return*/];
                        });
                    }); }, false);
                }
                else {
                    _this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.nenhumRegistroFoiSelecionado");
                    return;
                }
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    Object.defineProperty(MonitorIntegracaoSynchroCloudIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasdadosClientesFornecedores || !this.table.filtro) {
                return this.table.getPage(this.dadosClientesFornecedores);
            }
            var dados = this.dadosClientesFornecedores.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["NumberUtilsStaticService"].exist(v.destinatarioIdCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.descrTipoDest, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.cgccpf, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.ocsTaxId, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.razaoSocial, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.fantasia, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.municipio, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["StringUtilsStaticService"].exist(v.estado, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MonitorIntegracaoSynchroCloudIndexComponent.prototype, "hasdadosClientesFornecedores", {
        get: function () {
            if (!this.dadosClientesFornecedores)
                return false;
            return this.dadosClientesFornecedores && this.dadosClientesFornecedores.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MonitorIntegracaoSynchroCloudIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
    };
    MonitorIntegracaoSynchroCloudIndexComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        this.onMarcarDesmarcar(item);
    };
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosClientesFornecedores.forEach(function (element) {
            if (element.selecionado === 'S') {
                _this.registrosSelecionados.push(element.destinatarioIdCliente);
            }
        });
    };
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.abaClicada = function (aba) {
        this.abaAtual = aba;
        this.refresh();
    };
    Object.defineProperty(MonitorIntegracaoSynchroCloudIndexComponent.prototype, "hasRegistrosSelecionados", {
        get: function () {
            return this.registrosSelecionados.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasdadosClientesFornecedores) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosClientesFornecedores.forEach(function (e) { return _this.onMarcarTodos(e); });
    };
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasdadosClientesFornecedores) {
            this.messageService.warning("titles.monitorIntegracaoSynchroCloud", "messages.tabelaVazia");
            return;
        }
        this.dadosClientesFornecedores.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoSynchroCloudIndexComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.trataDadosSelecionados();
    };
    MonitorIntegracaoSynchroCloudIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"] },
        { type: _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_8__["MonitorIntegracaoSynchroCloudService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_7__["TableComponent"])
    ], MonitorIntegracaoSynchroCloudIndexComponent.prototype, "table", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monit_integ_synchro_cloud_produtos_monit_integ_synchro_cloud_produtos_component__WEBPACK_IMPORTED_MODULE_13__["MonitIntegSynchroCloudProdutosComponent"], { static: false }),
        __metadata("design:type", _monit_integ_synchro_cloud_produtos_monit_integ_synchro_cloud_produtos_component__WEBPACK_IMPORTED_MODULE_13__["MonitIntegSynchroCloudProdutosComponent"])
    ], MonitorIntegracaoSynchroCloudIndexComponent.prototype, "childAbaProdutos", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monit_integ_synchro_cloud_servicos_monit_integ_synchro_cloud_servicos_component__WEBPACK_IMPORTED_MODULE_14__["MonitIntegSynchroCloudServicosComponent"], { static: false }),
        __metadata("design:type", _monit_integ_synchro_cloud_servicos_monit_integ_synchro_cloud_servicos_component__WEBPACK_IMPORTED_MODULE_14__["MonitIntegSynchroCloudServicosComponent"])
    ], MonitorIntegracaoSynchroCloudIndexComponent.prototype, "childAbaServicos", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monit_integ_synchro_cloud_cond_pagamento_monit_integ_synchro_cloud_cond_pagamento_component__WEBPACK_IMPORTED_MODULE_15__["MonitIntegSynchroCloudCondPagamentoComponent"], { static: false }),
        __metadata("design:type", _monit_integ_synchro_cloud_cond_pagamento_monit_integ_synchro_cloud_cond_pagamento_component__WEBPACK_IMPORTED_MODULE_15__["MonitIntegSynchroCloudCondPagamentoComponent"])
    ], MonitorIntegracaoSynchroCloudIndexComponent.prototype, "childAbaCondPagamento", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monit_integ_synchro_cloud_notas_fiscais_monit_integ_synchro_cloud_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_12__["MonitIntegSynchroCloudNotasFiscaisComponent"], { static: false }),
        __metadata("design:type", _monit_integ_synchro_cloud_notas_fiscais_monit_integ_synchro_cloud_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_12__["MonitIntegSynchroCloudNotasFiscaisComponent"])
    ], MonitorIntegracaoSynchroCloudIndexComponent.prototype, "childAbaNotasFiscais", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monit_integ_synchro_cloud_nf_canceladas_monit_integ_synchro_cloud_nf_canceladas_component__WEBPACK_IMPORTED_MODULE_16__["MonitIntegSynchroCloudNotasFiscaisCanceladasComponent"], { static: false }),
        __metadata("design:type", _monit_integ_synchro_cloud_nf_canceladas_monit_integ_synchro_cloud_nf_canceladas_component__WEBPACK_IMPORTED_MODULE_16__["MonitIntegSynchroCloudNotasFiscaisCanceladasComponent"])
    ], MonitorIntegracaoSynchroCloudIndexComponent.prototype, "childAbaNotasFiscaisCanceladas", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_monit_integ_synchro_cloud_notaentr_s_xml_monit_integ_synchro_cloud_notaentr_s_xml_component__WEBPACK_IMPORTED_MODULE_17__["MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent"], { static: false }),
        __metadata("design:type", _monit_integ_synchro_cloud_notaentr_s_xml_monit_integ_synchro_cloud_notaentr_s_xml_component__WEBPACK_IMPORTED_MODULE_17__["MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent"])
    ], MonitorIntegracaoSynchroCloudIndexComponent.prototype, "childAbaNfEntSemXmlNfe", void 0);
    MonitorIntegracaoSynchroCloudIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-monitor-integracao-synchro-cloud-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./monitor-integracao-synchro-cloud-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./monitor-integracao-synchro-cloud-index.component.scss */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"],
            _monitor_integracao_synchro_cloud_service__WEBPACK_IMPORTED_MODULE_8__["MonitorIntegracaoSynchroCloudService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_2__["PermissoesUtilsService"]])
    ], MonitorIntegracaoSynchroCloudIndexComponent);
    return MonitorIntegracaoSynchroCloudIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts":
/*!************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.constants.ts ***!
  \************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSynchroCloudConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSynchroCloudConstants", function() { return MonitorIntegracaoSynchroCloudConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MonitorIntegracaoSynchroCloudConstants = /** @class */ (function () {
    function MonitorIntegracaoSynchroCloudConstants() {
        this.sisFormularioId = 375084;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.reenviarRegistrosSelecionados" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "DIV";
        this.nomeForm = "titles.monitorIntegracaoSynchroCloud";
        this.reportId = "VOP0000";
        this.reportTitulo = { "titulo": "Monitor Integração (Synchro Cloud)", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' }
        ];
    }
    return MonitorIntegracaoSynchroCloudConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.model.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.model.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSynchroCloudClientesFornecedores, MonitorIntegracaoSynchroCloudClientesFornecedoresFilter, MonitIntegSynchroCloudProdutos, MonitIntegSynchroCloudProdutosFilter, MonitIntegSynchroCloudServicos, MonitIntegSynchroCloudServicosFilter, MonitIntegSynchroCloudCondPagamento, MonitIntegSynchroCloudNotasFiscais, MonitIntegSynchroCloudNotasFiscaisFilter, MonitIntegSynchroCloudNotasFiscaisCanceladas, MonitIntegSynchroCloudNfCanceladasFilter, MonitIntegSynchroCloudNotasEntradaSemXmlDaNfe, MonitIntegSynchroCloudNfEntSemXmlNfeFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSynchroCloudClientesFornecedores", function() { return MonitorIntegracaoSynchroCloudClientesFornecedores; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSynchroCloudClientesFornecedoresFilter", function() { return MonitorIntegracaoSynchroCloudClientesFornecedoresFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudProdutos", function() { return MonitIntegSynchroCloudProdutos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudProdutosFilter", function() { return MonitIntegSynchroCloudProdutosFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudServicos", function() { return MonitIntegSynchroCloudServicos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudServicosFilter", function() { return MonitIntegSynchroCloudServicosFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudCondPagamento", function() { return MonitIntegSynchroCloudCondPagamento; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNotasFiscais", function() { return MonitIntegSynchroCloudNotasFiscais; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNotasFiscaisFilter", function() { return MonitIntegSynchroCloudNotasFiscaisFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNotasFiscaisCanceladas", function() { return MonitIntegSynchroCloudNotasFiscaisCanceladas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNfCanceladasFilter", function() { return MonitIntegSynchroCloudNfCanceladasFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNotasEntradaSemXmlDaNfe", function() { return MonitIntegSynchroCloudNotasEntradaSemXmlDaNfe; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitIntegSynchroCloudNfEntSemXmlNfeFilter", function() { return MonitIntegSynchroCloudNfEntSemXmlNfeFilter; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

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

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

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

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

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

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

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

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

var MonitIntegSynchroCloudNotasFiscaisFilter = /** @class */ (function () {
    function MonitIntegSynchroCloudNotasFiscaisFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getStartDay();
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
    }
    return MonitIntegSynchroCloudNotasFiscaisFilter;
}());

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

var MonitIntegSynchroCloudNfCanceladasFilter = /** @class */ (function () {
    function MonitIntegSynchroCloudNfCanceladasFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getStartDay();
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
    }
    return MonitIntegSynchroCloudNfCanceladasFilter;
}());

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

var MonitIntegSynchroCloudNfEntSemXmlNfeFilter = /** @class */ (function () {
    function MonitIntegSynchroCloudNfEntSemXmlNfeFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getStartDay();
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].getFinalDay();
        this.tipoData = "E";
    }
    return MonitIntegSynchroCloudNfEntSemXmlNfeFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.module.ts":
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.module.ts ***!
  \*********************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSynchroCloudModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSynchroCloudModule", function() { return MonitorIntegracaoSynchroCloudModule; });
/* 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_integracao_synchro_cloud_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud.routing.module */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.routing.module.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_index_monitor_integracao_synchro_cloud_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-index.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-index.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_notaentr_s_xml_monit_integ_synchro_cloud_notaentr_s_xml_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notaentr-s-xml/monit-integ-synchro-cloud-notaentr-s-xml.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_servicos_monit_integ_synchro_cloud_servicos_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-servicos/monit-integ-synchro-cloud-servicos.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_notas_fiscais_monit_integ_synchro_cloud_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-notas-fiscais/monit-integ-synchro-cloud-notas-fiscais.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_produtos_monit_integ_synchro_cloud_produtos_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-produtos/monit-integ-synchro-cloud-produtos.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_cond_pagamento_monit_integ_synchro_cloud_cond_pagamento_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-cond-pagamento/monit-integ-synchro-cloud-cond-pagamento.component.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_nf_canceladas_monit_integ_synchro_cloud_nf_canceladas_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monit-integ-synchro-cloud-nf-canceladas/monit-integ-synchro-cloud-nf-canceladas.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 MonitorIntegracaoSynchroCloudModule = /** @class */ (function () {
    function MonitorIntegracaoSynchroCloudModule() {
    }
    MonitorIntegracaoSynchroCloudModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _monitor_integracao_synchro_cloud_routing_module__WEBPACK_IMPORTED_MODULE_2__["MonitorIntegracaoSynchroCloudRoutingModule"]],
            declarations: [
                _monitor_integracao_synchro_cloud_index_monitor_integracao_synchro_cloud_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoSynchroCloudIndexComponent"],
                _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_produtos_monit_integ_synchro_cloud_produtos_component__WEBPACK_IMPORTED_MODULE_7__["MonitIntegSynchroCloudProdutosComponent"],
                _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_servicos_monit_integ_synchro_cloud_servicos_component__WEBPACK_IMPORTED_MODULE_5__["MonitIntegSynchroCloudServicosComponent"],
                _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_cond_pagamento_monit_integ_synchro_cloud_cond_pagamento_component__WEBPACK_IMPORTED_MODULE_8__["MonitIntegSynchroCloudCondPagamentoComponent"],
                _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_notaentr_s_xml_monit_integ_synchro_cloud_notaentr_s_xml_component__WEBPACK_IMPORTED_MODULE_4__["MonitIntegSynchroCloudNotasEntradaSemXmlDaNfeComponent"],
                _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_notas_fiscais_monit_integ_synchro_cloud_notas_fiscais_component__WEBPACK_IMPORTED_MODULE_6__["MonitIntegSynchroCloudNotasFiscaisComponent"],
                _monitor_integracao_synchro_cloud_index_monit_integ_synchro_cloud_nf_canceladas_monit_integ_synchro_cloud_nf_canceladas_component__WEBPACK_IMPORTED_MODULE_9__["MonitIntegSynchroCloudNotasFiscaisCanceladasComponent"]
            ]
        })
    ], MonitorIntegracaoSynchroCloudModule);
    return MonitorIntegracaoSynchroCloudModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.routing.module.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.routing.module.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSynchroCloudRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonitorIntegracaoSynchroCloudRoutingModule", function() { return MonitorIntegracaoSynchroCloudRoutingModule; });
/* 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 _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _monitor_integracao_synchro_cloud_index_monitor_integracao_synchro_cloud_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-index.component */ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud-index/monitor-integracao-synchro-cloud-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_integracao_synchro_cloud_index_monitor_integracao_synchro_cloud_index_component__WEBPACK_IMPORTED_MODULE_3__["MonitorIntegracaoSynchroCloudIndexComponent"],
        data: { breadcrumb: "monitorIntegracaoSynchroCloud", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var MonitorIntegracaoSynchroCloudRoutingModule = /** @class */ (function () {
    function MonitorIntegracaoSynchroCloudRoutingModule() {
    }
    MonitorIntegracaoSynchroCloudRoutingModule = __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"]],
        })
    ], MonitorIntegracaoSynchroCloudRoutingModule);
    return MonitorIntegracaoSynchroCloudRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts":
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/vopak/integracoes/monitor-integracao-synchro-cloud/monitor-integracao-synchro-cloud.service.ts ***!
  \**********************************************************************************************************************************/
/*! exports provided: MonitorIntegracaoSynchroCloudService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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








var MonitorIntegracaoSynchroCloudService = /** @class */ (function (_super) {
    __extends(MonitorIntegracaoSynchroCloudService, _super);
    function MonitorIntegracaoSynchroCloudService(http, loginService) {
        var _this = _super.call(this, http, "vopak/monitorIntegracaoSynchroCloud") || this;
        _this.http = http;
        _this.loginService = loginService;
        _this.clientesFornecedoresFiltro = new _monitor_integracao_synchro_cloud_model__WEBPACK_IMPORTED_MODULE_7__["MonitorIntegracaoSynchroCloudClientesFornecedoresFilter"]();
        _this.produtosFiltro = new _monitor_integracao_synchro_cloud_model__WEBPACK_IMPORTED_MODULE_7__["MonitIntegSynchroCloudProdutosFilter"]();
        _this.servicosFiltro = new _monitor_integracao_synchro_cloud_model__WEBPACK_IMPORTED_MODULE_7__["MonitIntegSynchroCloudServicosFilter"]();
        _this.notasFiscaisFiltro = new _monitor_integracao_synchro_cloud_model__WEBPACK_IMPORTED_MODULE_7__["MonitIntegSynchroCloudNotasFiscaisFilter"]();
        _this.notasFiscaisCanceladasFiltro = new _monitor_integracao_synchro_cloud_model__WEBPACK_IMPORTED_MODULE_7__["MonitIntegSynchroCloudNfCanceladasFilter"]();
        _this.nfEntSemXmlNfeFiltro = new _monitor_integracao_synchro_cloud_model__WEBPACK_IMPORTED_MODULE_7__["MonitIntegSynchroCloudNfEntSemXmlNfeFilter"]();
        return _this;
    }
    MonitorIntegracaoSynchroCloudService.prototype.getClientesFornecedores = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracaoSynchroCloud/getClientesFornecedores", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSynchroCloudService.prototype.reenviarSelecionados = function (registrosIds, aba) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracaoSynchroCloud/reenviarSelecionados", { ids: registrosIds, tipo: aba })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSynchroCloudService.prototype.getProdutos = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracaoSynchroCloud/getProdutos", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSynchroCloudService.prototype.getServicos = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracaoSynchroCloud/getServicos", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSynchroCloudService.prototype.getCondPagamento = function () {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracaoSynchroCloud/getCondPagamento")
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSynchroCloudService.prototype.getNotasFiscais = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracaoSynchroCloud/getNotasFiscais", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSynchroCloudService.prototype.getNotasFiscaisCanceladas = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracaoSynchroCloud/getNotasFiscaisCanceladas", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSynchroCloudService.prototype.getNfEntSemXmlNfe = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/vopak/monitorIntegracaoSynchroCloud/getNfEntSemXmlNfe", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    MonitorIntegracaoSynchroCloudService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] }
    ]; };
    MonitorIntegracaoSynchroCloudService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"]])
    ], MonitorIntegracaoSynchroCloudService);
    return MonitorIntegracaoSynchroCloudService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_3__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-vopak-integracoes-monitor-integracao-synchro-cloud-monitor-integracao-synchro-cloud-module.js.map