{"version":3,"sources":["assets/icons/chart.svg","assets/icons/cards/mastercard.svg","assets/icons/cards/visa.svg","assets/icons/cards/elo-debito-credito.svg","assets/icons/cards/hipercard.svg","assets/icons/config.svg","assets/icons/cards/amex.svg","assets/icons/cards/aura.svg","assets/icons/cards/cabal.svg","assets/icons/cards/credsystem.svg","assets/icons/cards/dinners.svg","assets/icons/cards/elo.svg","assets/icons/cards/fininvest.svg","assets/icons/cards/gera.svg","assets/icons/cards/grupoboticario.svg","assets/icons/cards/jcb.svg","assets/icons/cards/losango.svg","assets/icons/cards/sodexo.svg","assets/icons/cards/solo.svg","assets/icons/cards/sorocred.svg","assets/icons/cards/ticket.svg","assets/icons/cards/visa-vale.svg","assets/icons/cards/vr.svg","assets/icons/chevron-down.svg","assets/icons/alert-caution.svg","assets/icons/alert-check.svg","assets/icons/close-button.svg","assets/images/not-authorized.svg","assets/icons/dre.svg","assets/icons/lupa.svg","assets/icons/brands/banco-do-brasil.svg","assets/icons/brands/bradesco.svg","assets/icons/brands/caixa-economica-federal.svg","assets/icons/brands/default.svg","assets/icons/brands/hsbc.svg","assets/icons/brands/itau.svg","assets/icons/brands/real.svg","assets/icons/brands/safra.svg","assets/icons/brands/santander.svg","assets/icons/conta-caixa.svg","assets/icons/home.svg","assets/icons/close.svg","assets/icons/warning-white.svg","assets/icons/seta-down-branca.svg","assets/icons/seta-down-preta.svg","services/config.js","assets/icons/fechamento.svg","utils/util-date.js","utils/extensions/dateExtensions.js","utils/app-info.js","pages/Conciliation/ConciliationContext.js","components/Grid/Col/styles.js","components/Grid/Col/index.js","components/Grid/Row/styles.js","components/Grid/Row/index.js","components/Grid/Card/styles.js","components/Grid/Card/index.js","components/Scroll/index.js","components/Grid/Container/styles.js","components/Grid/Container/index.js","components/Skeleton/SkeletonAcquirerList/index.js","styles/theme.js","components/Typografy/Text/styles.js","components/Typografy/Text/index.js","enums/cardBrandsEnum.js","pages/Conciliation/components/ConciliationCard/styles.js","pages/Conciliation/components/ConciliationCard/index.js","pages/Conciliation/components/CardAcquirerList/index.js","components/Skeleton/SkeletonCardReceiveList/index.js","pages/Conciliation/components/CardReceiveList/index.js","pages/Conciliation/components/Cards/index.js","components/Grid/Divider/styles.js","components/Grid/Divider/index.js","components/Forms/Button/styles.js","components/Forms/Button/index.js","components/Forms/DatePicker/styles.js","components/Forms/DatePicker/index.js","components/Forms/Dropdown/DropdownContext.js","components/Forms/Dropdown/DropdownItem/styles.js","components/Forms/Dropdown/DropdownItem/index.js","components/Forms/Label/styles.js","components/Forms/Label/index.js","components/Forms/Dropdown/styles.js","components/Forms/Dropdown/index.js","store/ducks/Conciliation/Acquirers/index.js","pages/Conciliation/components/ConciliationCard/Filtering/AcquirersDropDown.jsx","store/ducks/Conciliation/CardBrands/index.js","pages/Conciliation/components/ConciliationCard/Filtering/CardBrandsDropDown.jsx","store/ducks/Conciliation/Subsidiaries/index.js","pages/Conciliation/components/ConciliationCard/Filtering/SubsidiariesDropDown.jsx","store/ducks/Conciliation/FiltersBars/index.js","store/ducks/Conciliation/FiltersChart/index.js","pages/Conciliation/Hooks/index.js","pages/Conciliation/components/ConciliationBarFiltros/index.js","components/Forms/ProgressBar/styles.js","components/Forms/ProgressBar/index.js","pages/Conciliation/components/ConciliationBar/index.js","components/Typografy/Icon/style.js","components/Typografy/Icon/index.js","components/Modals/Modal/context.js","components/Modals/Modal/styles.js","components/Modals/Modal/index.js","components/Typografy/Paragraph/styles.js","components/Typografy/Paragraph/index.js","components/Modals/Alert/index.js","services/history-services.js","services/api.js","services/conciliationServices.js","pages/Conciliation/components/ConciliationButton/index.js","pages/Conciliation/components/ConciliationBarsCards/index.js","components/Forms/TagFilter/styles.js","components/Forms/TagFilter/index.js","pages/Conciliation/components/ConciliationChart/ChartFilters/styles.js","pages/Conciliation/components/ConciliationChart/ChartFilters/index.js","components/Skeleton/SkeletonChartConciliation/index.js","pages/Conciliation/components/ConciliationChart/loader.js","pages/Conciliation/components/ConciliationChart/styles.js","pages/Conciliation/components/ConciliationChart/tooltip.js","pages/Conciliation/components/ConciliationChart/index.js","pages/Conciliation/components/ConciliationGraphic/index.js","pages/Conciliation/components/ConciliationTitle/index.js","pages/Conciliation/index.js","pages/ErrorPages/NotAuthorizedPage.js","components/Forms/Form/FormContext.js","components/Forms/Form/index.js","components/Forms/Pagination/styles.js","components/Forms/Pagination/index.js","components/Table/styles.js","components/Table/index.js","pages/FinancialMovement/index.js","components/Datagrid/styles.js","components/Datagrid/index.js","storage/everest-session-storage.js","components/Layout/SelectStoreModal/styles.js","components/Layout/SelectStoreModal/index.js","components/Layout/SelectStoreButton/index.js","components/Layout/BackOfficeHeader/styles.js","components/Layout/BackOfficeHeader/index.js","NullCheck.js","storage/everest-local-storage.js","store/ducks/Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa/index.js","store/ducks/Dashboard/Conferencia&Conciliacao/ContaBancaria/index.js","store/ducks/Dashboard/Conferencia&Conciliacao/VendaDeCartao/index.js","store/ducks/Dashboard/LucroLiquido/ObterConta/index.js","store/ducks/Dashboard/LucroLiquido/ObterVisao/index.js","store/ducks/Dashboard/LucroLiquido/Ranking/index.js","store/ducks/Dashboard/LucroLiquido/UpdateVisaoConta/index.js","store/ducks/Dashboard/LucroLiquido/VisaoDeConta/index.js","store/ducks/Dashboard/PendenciasFinanceiras/index.js","store/ducks/Dashboard/ResultadosDRE/index.js","store/ducks/Dashboard/SaldoDisponivelAntecipacao/index.js","components/Forms/ToggleButton/styles.js","components/Forms/ToggleButton/index.js","services/balanceAccountsServices.js","pages/Home/context.js","pages/Home/BalanceAccountsCard/index.js","pages/Home/BankAccountConciliationStatusCard/styles.js","pages/Home/BankAccountConciliationStatusCard/index.js","pages/Home/CashConferenceStatusCard/styles.js","pages/Home/CashConferenceStatusCard/index.js","pages/Home/CreditCardSalesConciliationStatusCard/styles.js","pages/Home/CreditCardSalesConciliationStatusCard/index.js","components/Alert/styles.js","components/Alert/index.js","components/Forms/ButtonDropdown/context.js","components/Forms/ButtonDropdown/styles.js","utils/util-colors.js","components/Forms/ButtonDropdown/DropdownMenu/styles.js","pages/Home/FinancialSummaryChart/styles.js","pages/Home/FinancialSummaryChart/tooltip.js","pages/Home/FinancialSummaryChart/index.js","pages/Home/FinancialSummaryBox/styles.js","pages/Home/FinancialSummaryBox/index.js","pages/Home/Shortcut/styles.js","pages/Home/Shortcut/index.js","pages/Home/styles.js","pages/Home/index.js","routes/index.js","store/ducks/Conciliation/ConciliationAcquirerList/index.js","store/ducks/Conciliation/ConciliationCardReceiveList/index.js","store/rootReducer.js","store/sagas/Conciliation/Acquirers/index.js","store/sagas/Conciliation/CardBrands/index.js","store/sagas/Conciliation/Conciliation/index.js","store/sagas/Conciliation/FiltersBars/index.js","store/sagas/Conciliation/Subsidiaries/index.js","store/sagas/Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa/index.js","store/sagas/Dashboard/Conferencia&Conciliacao/ContaBancaria/index.js","store/sagas/Dashboard/Conferencia&Conciliacao/VendaDeCartao/index.js","store/sagas/Dashboard/LucroLiquido/ObterConta/index.js","store/sagas/Dashboard/LucroLiquido/ObterVisao/index.js","store/sagas/Dashboard/LucroLiquido/Ranking/index.js","store/sagas/Dashboard/LucroLiquido/UpdateVisaoConta/index.js","store/sagas/Dashboard/LucroLiquido/VisaoDeConta/index.js","store/sagas/Dashboard/PendenciasFinanceiras/index.js","store/sagas/Dashboard/ResultadosDRE/index.js","store/sagas/Dashboard/SaldoDisponivelAntecipacao/index.js","store/rootSaga.js","store/store.js","styles/global.js","App.js","index.js","assets/icons/ok.svg","assets/icons/warning.svg","assets/icons/cards/default.svg"],"names":["module","exports","queryString","window","location","search","urlParams","URLSearchParams","getNeoXUrl","get","getNeoXEndpoint","route","BASE_URL","openNeoXLink","e","link","currentTarget","getAttribute","indexOf","open","stopPropagation","preventDefault","monthNames","formatDate","date","showText","undefined","Date","day","getDate","month","getMonth","year","getFullYear","slice","getShortMonthName","substr","prototype","getMonthName","this","UtilDate","getAppName","pack","name","getAppVersion","version","ConciliationContext","createContext","systemSelectedValue","setSystemSelectedValue","acquirerSelectedValue","setAcquirerSelectedValue","acquirerSalesIds","setAcquirerSalesIds","cardReceiveIds","setCardReceiveIds","selectedCards","setSelectedCards","selectedCardsReceive","setSelectedCardsReceive","conciliation","setConciliation","data","setData","StyledCol","styled","div","props","padding","theme","spacing","padding10","justifyContent","justifySelf","alignItems","alignSelf","size","css","Col","children","rest","defaultProps","StyledRowComponent","position","Row","Container","backgroundColor","background","boxShadow","borderRadius","marginTop","width","height","Card","data-testid","memo","Scroll","StyledContainer","maxWidth","maxHeight","paddingTop","paddingRight","paddingBottom","paddingLeft","marginRight","marginBottom","marginLeft","SkeletonAcquirerList","style","display","circle","duration","padding15","padding18","padding20","padding30","padding40","padding50","margin5","margin10","margin15","margin18","margin20","margin30","margin40","margin50","colors","principal","principalDark","secondary","focus","black","black85","black70","black55","black20","white","offWhite","lightGray","gray","green","mediumGreen","orange","lightRed","red","redStrong","lightBlue","ice","azure","linxGradientTheme","inset","allSides","bottom","fontSize","_8px","_10px","_12px","_14px","_16px","_18px","_20px","_22px","_24px","_26px","_28px","_30px","_32px","_34px","_36px","_38px","_40px","_42px","_44px","_46px","_48px","_50px","StyledText","span","textAlign","fontWeight","color","cursor","Text","onClick","cardBrandsEnum","withTheme","isSelected","value","grossValue","authorizationCode","nsu","idBandeira","nota","textColor","alt","src","key","cardBrand","defaultIcon","visaIcon","mastercardIcon","dinnersIcon","amexIcon","soloIcon","fininvestIcon","jcbIcon","hipercardIcon","auraIcon","losangoIcon","sorocredIcon","visaValeIcon","sodexoIcon","cabalIcon","ticketIcon","eloIcon","credSystemIcon","vrIcon","grupoBoticarioIcon","eloDebitoIcon","geraIcon","obj","find","o","getCardBrand","Intl","NumberFormat","currency","format","AcquirerList","dataAcquirers","useSelector","state","FiltersBarsCardsReducer","useContext","handleClick","useCallback","id","include","some","x","cardValue","cardAcquirers","records","filter","useEffect","reduce","sum","Number","parseFloat","toFixed","acquirersLength","loading","map","itemCard","subsidiaryName","sel","dateOfSale","authorizationId","idBandeiraRede","Loader","NoResults","chartIcon","SkeletonCardReceiveList","CardReceiveList","dataCardReceiveList","idReceberCartao","cardReceive","valorOriginal","receiveLength","nomeCliente","emissao","nrCartao","nrAprovacaoCartao","Cards","testId","flexDirection","borderStyle","borderColor","StyledDivider","hr","lineStyle","orientation","Divider","StyledButton","button","outline","darken","border","Button","register","ref","StyledWrapper","DatePicker","initialStartDate","initialEndDate","maximumDays","onDatesChange","moment","updateLocale","weekdaysMin","split","ptbrLocale","useState","startDate","setStartDate","endDate","setEndDate","lastStartDate","setLastStartDate","lastEndDate","setLastEndDate","focusedInput","setFocusedInput","startDateRef","useRef","endDateRef","type","readOnly","startDateId","endDateId","onFocusChange","displayFormat","isOutsideRange","isAfter","clone","add","isBefore","subtract","endDT","numberOfMonths","inputIconPosition","showDefaultInputIcon","startDatePlaceholderText","endDatePlaceholderText","onClose","final","hideKeyboardShortcutsPanel","DropdownContext","multiple","selectedItems","StyledDropdownItem","StyledDropdownCheckbox","DropdownItem","label","className","checked","bgColor","Label","StyledDropdown","StyledDropdownContainer","coordinates","y","StyledDropdownIcon","StyledSelectedItem","Dropdown","onChange","setSelectedItems","setCoordinates","isOpen","setIsOpen","length","selected","Provider","item","items","element","onOutsideClick","disabled","offsetHeight","contenteditable","data-placeholder","zIndex","chevronDown","Types","INITIAL_STATE","error","AcquirersDropDown","dispatch","useDispatch","Acquirers","AcquirersReducer","codTef","descriptionTef","CardBrandsDropDown","CardBrands","datacardBrands","cardBrands","CardBrandsReducer","description","SubsidiariesDropDown","Subsidiaries","dataSubsidiaries","subsidiaries","SubsidiariesReducer","idFilialPjf","nomeFilial","FiltersBars","useForm","getValues","React","finalDate","setFinalDate","onSelectedStartDate","onSelectedEndDate","FiltersBarsCards","payload","FiltersChart","ConciliationBarFiltros","StyledProgressBar","reverse","percent","ProgressBar","ConciliationBar","filledValue","totalValue","barColor","setBarColor","filledBarColor","IconStyledComponent","icon","hoverColor","Icon","ModalContext","OverlayStyledComponent","ModalStyledComponent","CloseButtonComponent","LoadOverlayStyledComponent","LoadBlockStyledComponent","keyFramesLoading","keyframes","LoadStyledComponent","Modal","onCloseCallback","isVisible","isLoading","showCloseButton","ReactDOM","createPortal","text","closeButtonIcon","document","querySelector","LoadingOverlay","StyledParagraph","p","Paragraph","Alert","message","isSuccess","alertSuccessIcon","alertCautionIcon","overflowY","createBrowserHistory","neoxUrl","localStorage","getItem","uxHash","serviceManager","domains","charAt","history","push","getEnvironmentUrl","api","axios","create","baseURL","defaults","headers","origin","Authorization","interceptors","response","use","status","Promise","reject","setItem","addEventListener","event","includes","Object","entries","forEach","v","routeV2","routes","acquirers","acquirerUnconcealedSales","cardReceiveUnconcealedSales","chartResume","conciliate","getCardBrands","a","then","res","getAcquirers","getSubsidiaries","getAcquirerUnconcealedSales","divergencesOnly","initialDate","pageIndex","pageSize","filters","params","paramsSerializer","qs","pager","getCardReceiveUnconcealedSales","getChartResume","post","visible","alertState","setAlertState","dataIds","ConciliationServices","IsError","Message","resetAlertState","ConciliationBarsCards","fileSumValue","systemSumValue","acquirersSum","receiveSum","TagFilterStyled","TagFilter","elementKey","tagKey","tagValue","onRemoveFilter","title","ChartFiltersStyled","ChartFilters","listFilters","dtStart","SkeletonConciliationChart","margin","ConciliationChartLoader","ConciliationChartStyled","ConciliationChartTooltipStyled","ConciliationChartTooltip","active","setIsLoading","setTimeout","borderBottom","netValueArchive","toLocaleString","minimumFractionDigits","netValueSystem","conciliated","renderList","XAxisLabel","values","transform","fontFamily","dy","textAnchor","fill","chartListFilters","setChartListFilters","setActiveBarIndex","chartData","FiltersChartReducer","chartBars","initialDay","initialMonth","initialYear","finalDay","finalMonth","finalYear","FilterBars","colorRulesToConciliate","entry","colorRulesConciliated","i","top","right","left","isAnimationActive","content","dataKey","tickLine","tick","interval","stackId","barSize","maxBarSize","index","ConciliationGraphic","ConciliationTitle","Conciliation","newDate","StyledContent","NotAuthorizedPage","ImageRestrictedAccess","formContext","Form","onSubmit","registeredFields","setRegisteredFields","registerField","oldRegisteredFields","FormContext","StyledPagination","ul","StyledListItem","disable","Pagination","count","defaultPage","setActive","currentIndex","number","ItemList","StyledTable","table","Table","FinancialMovement","setSubsidiarieId","setPageSize","pageNumber","setPageNumber","totalRows","currentPage","totalPages","subsidiarie","IdFilialPjf","NomeFilial","operacao","parcelas","vencimento","filial","fornecedor","valor","dado","StyledTableContainer","DataGrid","storageKeys","everestSessionStorage","sessionStorage","btoa","JSON","stringify","parse","atob","clean","clear","StyledDivButton","StyledButtonA","SelectStoreModal","teste","setStoreIndex","target","SelectStoreButton","showModalState","setShowModalState","resetShowModalStateHandler","StyledBackOfficeHeaderContainer","StyledTitle","BackOfficeHeader","path","setStoreState","store","checkIsNullOrUndefined","everestLocalStorage","valid","StyledToggleButton","StyledToggleBoxLabel","disabledText","activeText","StyledToggleBox","input","ToggleButton","htmlFor","homeDateContext","isBalanceSystem","File","UpdatedAt","setUpdatedOfx","Id","Account","System","Banco","balanceAccounts","setBalanceAccounts","HomeDateContext","BankLogos","descAccount","account","toLowerCase","itauIcon","caixaIcon","hsbcIcon","realIcon","safraIcon","bancoDoBrasilIcon","bradescoIcon","santanderIcon","contaCaixaIcon","bancoDefaultIcon","getInfoOfx","getUpdatedOfx","result","Arquivo","DataImportacao","getBalances","getBalanceAccounts","balances","Conta","Sistema","Bank","Percentage","Porcentagem","ToBalanceAccounts","balance","href","textDecoration","CardTitle","StatusTitle","isOk","ItemKey","ItemValue","MarginRow","MoreInfoLink","BankAccountConciliationStatusCard","ContaBancariaData","ContaBancariaReducer","conciliatedRecords","unconciliatedRecords","ok","warning","conciliados","naoConciliados","CashConferenceStatusCard","ConferenciaDeCaixaData","ConferenciaDeCaixaReducer","valorVenda","valorFinanceiro","CreditCardSalesConciliationStatusCard","VendaDeCartaoData","VendaDeCartaoReducer","acquirerCount","cardReceiveCount","ImgWarning","img","ImgClose","containerElementRef","setIsVisible","WarningWhite","Close","r","g","b","match","hexColor","rgbColor","replace","Math","sqrt","colorIsDark","downArrowWhite","downArrowBlack","offset","TooltipTitle","TooltipItemKey","TooltipItemValue","BackgroundDiv","FinancialSummaryChartTooltip","maximumFractionDigits","FinancialSummaryChart","_handleSumarization","handleSumarization","chartLoadingStatus","errorMessage","chartStatus","setChartStatus","Valores","Saldo","payments","Pagamentos","receipts","Recebimentos","err","catch","x1","y1","x2","y2","stopColor","stopOpacity","dx","tickFormatter","absValue","abs","signal","toString","formatYAxis","strokeDasharray","stroke","fillOpacity","FinancialSummaryBoxDiv","ColDivider","FinancialSummaryBoxValues","BorderRow","FinancialSummaryBalanceKey","FinancialSummaryBalanceValue","HelpIcon","FinancialSummaryBox","summaryValuesLoadingStatus","summaryValuesStatus","setSummaryValuesStatus","showAlert","setShowAlert","renderValue","valueType","HomeImage","data-tip","data-for","data-event","aria-haspopup","globalEventOff","StyledShortcut","image","url","BoldSpan","HorizontalDivider","TitleSpanDRE","ImageDRE","SectionDRE","section","ListDL","ItemLista","li","ContentDRE","SubContentDRE","ContainerCard","justifyContente","alingItems","StyledModal","StyledModalDre","StyledLabelVisao","Home","PendenciasFinanceirasData","PendenciasFinanceirasReducer","SaldoDisponivelAntecipacaoData","SaldoDisponivelAntecipacaoReducer","ResultadosDreData","ResultadosDreReducer","ObterVisaoData","ObterVisaoReducer","ObterContaData","ObterContaReducer","LucroLiquidoData","UpdateVisaoContaReducer","LucroLiquidoReducer","isModalVisible","setModalVisible","isModalDREVisible","setModalDREVisible","visaoEncontrada","setVisaoEncontrada","visaoDeConta","setVisaoDeConta","visaoDeContaDre","setVisaoDeContaDre","contaTotalizadora","setContaTotalizadora","setDate","resizeParent","body","scrollHeight","num","parent","postMessage","visao","ResultadosDreTypes","idVisao","VendaDeCartaoTypes","ConferenciaDeCaixaTypes","ContaBancariaTypes","PendenciasFinanceirasTypes","SaldoDisponivelAntecipacaoTypes","VisaoDeContaTypes","ObterVisaoTypes","visaoLucroLiquido","idContaLucroLiquido","LucroLiquidoTypes","conta","UpdateVisaoContaTypes","getElementsByTagName","dreId","dreSubId","renderDRESubitem","Descricao","Valor","minHeight","DreImage","float","Config","fontStyle","lineHeight","Filhos","selectedIndex","handleChangeVisaoContaDre","Data","APagar","AReceber","CartaoCredito","Boleto","Prejuizo","Lucro","letterSpacing","Loja","Lupa","ObterContaTypes","idFinVisao","handleChangeVisaoConta","MainRoutes","component","reducer","combineReducers","action","ConciliationReducer","cardAcquirer","sizeCardAcquirer","sizeCardReceive","sumAcquirer","sumReceive","filtros","ConciliationReceiveReducer","VisaoDeContaReducer","call","put","getConciliation","ConciliationReceive","getFiltersBars","getFiltersChart","accumulator","currentValue","sumResponseFileReceive","sumResponseFile","getConferenciaDeCaixa","getContaBancaria","getVendaDeCartao","getObterConta","getObterVisao","getLucroLiquido","setUpdateVisao","UpdateVisaoTypes","getVisaoDeConta","getPendenciasFinanceiras","getResultadosDre","getSaldoDisponivelAntecipacao","rootSaga","all","takeLatest","ResultadosDre","LucroLiquido","ObterVisao","ObterConta","UpdateVisaoConta","VisaoDeConta","PendenciasFinanceiras","SaldoDisponivelAntecipacao","VendaDeCartao","ContaBancaria","ConferenciaDeCaixa","sagaMiddleware","createSagaMiddleware","sagaMonitor","enhancer","applyMiddleware","createStore","rootReducer","run","createGlobalStyle","console","log","appInfo","App","render","getElementById"],"mappings":"+GAAAA,EAAOC,QAAU,IAA0B,mC,oBCA3CD,EAAOC,QAAU,IAA0B,wC,oBCA3CD,EAAOC,QAAU,IAA0B,kC,w9DCA3CD,EAAOC,QAAU,IAA0B,gD,oBCA3CD,EAAOC,QAAU,IAA0B,uC,oBCA3CD,EAAOC,QAAU,IAA0B,oC,oBCA3CD,EAAOC,QAAU,IAA0B,kC,oBCA3CD,EAAOC,QAAU,IAA0B,kC,oBCA3CD,EAAOC,QAAU,IAA0B,mC,oBCA3CD,EAAOC,QAAU,IAA0B,wC,oBCA3CD,EAAOC,QAAU,IAA0B,qC,oBCA3CD,EAAOC,QAAU,IAA0B,iC,oBCA3CD,EAAOC,QAAU,IAA0B,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7W,GAAwCuV,IACnDsB,sBAAWrB,GAA8CD,IACzDsB,sBAAWviB,GAAkCmhB,IAC7CoB,sBAAWC,GAAkCL,IAC7CI,sBAAWE,GAAgCX,IAC3CS,sBAAWG,GAA4Bb,IACvCU,sBAAWI,GAA4Bf,IACvCW,sBAAWK,GAA4Bb,IACvCQ,sBAAWM,GAAiCZ,IAC5CM,sBACEO,GACAZ,IAEFK,sBACEQ,GACAX,IAEFG,sBAAWS,GAAmCrB,IAC9CY,sBAAWU,GAAkCvB,IAC7Ca,sBACEW,GACAzB,MA3BS,gFCjCf,IAIM0B,GAAiBC,aAAqB,CAC1CC,YAHC,OAMGC,GAEuCC,aAAgBJ,IAGvDjT,GAAQsT,aAAYC,GAAaH,IAEvCH,GAAeO,IAAIrB,IAEJnS,U,s5BCtBAyT,mBAAf,MCYAC,QAAQC,IAAIC,KACZF,QAAQC,IAAIC,KAaGC,OAXf,WACI,OACE,kBAAC,IAAD,CAAe94B,MAAOA,IACpB,kBAAC,IAAD,CAAUilB,MAAOA,IACf,kBAAC,GAAD,MACA,kBAAC,GAAD,SCdVlO,IAASgiB,OACP,kBAAC,GAAD,MACE5hB,SAAS6hB,eAAe,U,mBCV5Br9B,EAAOC,QAAU,IAA0B,gC,mBCA3CD,EAAOC,QAAU,IAA0B,qC,mBCA3CD,EAAOC,QAAU,IAA0B,sC","file":"static/js/main.a083c412.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/chart.d4eff6ec.svg\";","module.exports = __webpack_public_path__ + \"static/media/mastercard.87e388a1.svg\";","module.exports = __webpack_public_path__ + \"static/media/visa.5254d7b0.svg\";","module.exports = __webpack_public_path__ + \"static/media/elo-debito-credito.c347d5dc.svg\";","module.exports = __webpack_public_path__ + \"static/media/hipercard.c753f2f6.svg\";","module.exports = __webpack_public_path__ + \"static/media/config.d1542e71.svg\";","module.exports = __webpack_public_path__ + \"static/media/amex.f1790da5.svg\";","module.exports = __webpack_public_path__ + \"static/media/aura.b306f630.svg\";","module.exports = __webpack_public_path__ + \"static/media/cabal.90e6ebd5.svg\";","module.exports = __webpack_public_path__ + \"static/media/credsystem.05c7fee2.svg\";","module.exports = __webpack_public_path__ + \"static/media/dinners.f7b6a7b6.svg\";","module.exports = __webpack_public_path__ + \"static/media/elo.ca3631f8.svg\";","module.exports = __webpack_public_path__ + \"static/media/fininvest.eddc47df.svg\";","module.exports = __webpack_public_path__ + \"static/media/gera.d9735935.svg\";","module.exports = __webpack_public_path__ + \"static/media/grupoboticario.58456fbd.svg\";","module.exports = __webpack_public_path__ + \"static/media/jcb.376198c9.svg\";","module.exports = __webpack_public_path__ + \"static/media/losango.f77a53dc.svg\";","module.exports = __webpack_public_path__ + \"static/media/sodexo.fcc199af.svg\";","module.exports = __webpack_public_path__ + \"static/media/solo.23f472c1.svg\";","module.exports = __webpack_public_path__ + \"static/media/sorocred.9b4306f4.svg\";","module.exports = __webpack_public_path__ + \"static/media/ticket.a5b1dd35.svg\";","module.exports = __webpack_public_path__ + \"static/media/visa-vale.ac1ab787.svg\";","module.exports = __webpack_public_path__ + \"static/media/vr.943c5d4e.svg\";","module.exports = __webpack_public_path__ + \"static/media/chevron-down.a57d3256.svg\";","module.exports = __webpack_public_path__ + \"static/media/alert-caution.8c7a091f.svg\";","module.exports = __webpack_public_path__ + \"static/media/alert-check.8f948690.svg\";","module.exports = __webpack_public_path__ + \"static/media/close-button.07e5995e.svg\";","module.exports = __webpack_public_path__ + \"static/media/not-authorized.490f4e7b.svg\";","module.exports = __webpack_public_path__ + \"static/media/dre.346e6892.svg\";","module.exports = __webpack_public_path__ + \"static/media/lupa.5df39db4.svg\";","module.exports = __webpack_public_path__ + \"static/media/banco-do-brasil.7537df75.svg\";","module.exports = __webpack_public_path__ + \"static/media/bradesco.cb7acdd0.svg\";","module.exports = __webpack_public_path__ + \"static/media/caixa-economica-federal.332a3d3b.svg\";","module.exports = __webpack_public_path__ + \"static/media/default.87d5e607.svg\";","module.exports = __webpack_public_path__ + \"static/media/hsbc.2fe5ec4d.svg\";","module.exports = __webpack_public_path__ + \"static/media/itau.1f4b88d4.svg\";","module.exports = __webpack_public_path__ + \"static/media/real.fe545faa.svg\";","module.exports = __webpack_public_path__ + \"static/media/safra.058e5540.svg\";","module.exports = __webpack_public_path__ + \"static/media/santander.383835fd.svg\";","module.exports = __webpack_public_path__ + \"static/media/conta-caixa.f5749ef5.svg\";","module.exports = __webpack_public_path__ + \"static/media/home.8803e0bc.svg\";","module.exports = __webpack_public_path__ + \"static/media/close.9b3b4374.svg\";","module.exports = __webpack_public_path__ + \"static/media/warning-white.f8139f1c.svg\";","module.exports = __webpack_public_path__ + \"static/media/seta-down-branca.1f35e06d.svg\";","module.exports = __webpack_public_path__ + \"static/media/seta-down-preta.8f666af1.svg\";","/* eslint-disable func-names */\r\n/* eslint-disable no-script-url */\r\nconst queryString = window.location.search;\r\nconst urlParams = new URLSearchParams(queryString);\r\n\r\nconst getNeoXUrl = function () {\r\n return urlParams.get('neox');\r\n}\r\nconst getNeoXEndpoint = function (route) {\r\n const BASE_URL = getNeoXUrl();\r\n if (!BASE_URL) return 'javascript:void(0)'\r\n return `${BASE_URL}${route}`;\r\n}\r\nconst openNeoXLink = function (e) {\r\n const link = e.currentTarget.getAttribute('href');\r\n if (!!link && link.indexOf('http') > -1) {\r\n window.open(link, '_blank', \"noopener noreferrer\");\r\n }\r\n e.stopPropagation();\r\n e.preventDefault();\r\n return false;\r\n}\r\nmodule.exports = {\r\n getNeoXUrl,\r\n getNeoXEndpoint,\r\n openNeoXLink,\r\n};","module.exports = __webpack_public_path__ + \"static/media/fechamento.4a5c4af2.svg\";","import moment from 'moment';\r\n\r\n\r\nexport const monthNames = [\r\n 'janeiro', 'fevereiro', 'março',\r\n 'abril', 'maio', 'junho',\r\n 'julho', 'agosto', 'setembro',\r\n 'outubro', 'novembro', 'dezembro'\r\n];\r\n\r\nexport function formatJsonDate(date) {\r\n if (date == null) return '-';\r\n \r\n return moment(new Date(date.match(/\\d+/)[0] * 1))\r\n .format('DD/MM/YYYY')\r\n .toString();\r\n}\r\n\r\nexport function formatDateRange(dateStart, dateFinish) {\r\n return `${ formatDate(dateStart) } - ${ formatDate(dateFinish) }`;\r\n}\r\n\r\nexport function formatDate(date, showText = true) {\r\n if (date === undefined) {\r\n return showText === true ? 'sem data' : '';\r\n }\r\n \r\n if (!(date instanceof Date)) {\r\n date = new Date(date)\r\n }\r\n\r\n let day = date.getDate();\r\n let month = date.getMonth() + 1\r\n let year = date.getFullYear()\r\n \r\n return `${(\"0\" + day).slice(-2)}/${(\"0\" + month).slice(-2)}/${year}`;\r\n}\r\n\r\nexport function FormatDateTimeDDMMYYYY(dateT) {\r\n const day = dateT.date().toString();\r\n const month = (dateT.month() + 1).toString();\r\n const year = dateT.year().toString();\r\n \r\n return `${ dateT.date() > 9 ? day : `0${ day }` }/${ dateT.month() + 1 > 9 ? month : `0${ month }` }/${ year }`;\r\n}\r\n\r\nexport function getMonthName(date) {\r\n return monthNames[date.getMonth()];\r\n}\r\n\r\nexport function getShortMonthName(date) {\r\n return monthNames[date.getMonth()].substr(0, 3);\r\n}\r\n\r\nexport function parseJsonDate(jsonDateString) {\r\n \r\n return new Date(parseInt(jsonDateString.replace('/Date(', '')));\r\n}\r\n","/* eslint-disable func-names */\r\n/* eslint-disable no-extend-native */\r\n\r\nimport * as UtilDate from 'utils/util-date';\r\n\r\n\r\nDate.prototype.getMonthName = function () {\r\n return UtilDate.getMonthName(this);\r\n};\r\n\r\nDate.prototype.getShortMonthName = function () {\r\n return UtilDate.getShortMonthName(this);\r\n};\r\n\r\nDate.prototype.formatDate = function (showText = false) {\r\n return UtilDate.formatDate(this, showText);\r\n};\r\n","import pack from '../../package.json';\r\n\r\nexport function getAppName() {\r\n return pack.name;\r\n}\r\n\r\nexport function getAppVersion() {\r\n return pack.version;\r\n}\r\n","import {createContext} from 'react';\r\n\r\n \r\n \r\n const ConciliationContext = createContext({\r\n \r\n // Passa as informações de valores selecionados dos cards\r\n systemSelectedValue:0.0,\r\n setSystemSelectedValue:() => {},\r\n\r\n acquirerSelectedValue:0.0,\r\n setAcquirerSelectedValue:() => {},\r\n\r\n\r\n // Passa as informações dos Ids selecionados dos cards\r\n acquirerSalesIds:[],\r\n setAcquirerSalesIds:() => {},\r\n\r\n cardReceiveIds:[],\r\n setCardReceiveIds: ()=> {},\r\n\r\n // Passa as informações dos estados selecionados dos cards\r\n selectedCards:[],\r\n setSelectedCards:() => {},\r\n\r\n selectedCardsReceive:[],\r\n setSelectedCardsReceive: ()=> {},\r\n\r\n // resposta da conciliação\r\n conciliation:[],\r\n setConciliation: ()=> {},\r\n\r\n // pegando resposta dos filtros\r\n data: {},\r\n setData: ()=> {}\r\n });\r\n\r\n\r\nexport default ConciliationContext;\r\n","import styled, {css} from 'styled-components';\r\n\r\n\r\nexport const StyledCol = styled.div`\r\n display: flex;\r\n flex-wrap: wrap;\r\n padding: ${ props => props.padding || props.theme.spacing.padding10 };\r\n justify-content: ${ props => props.justifyContent };\r\n justify-self: ${ props => props.justifySelf };\r\n align-items: ${ props => props.alignItems };\r\n align-self: ${ props => props.alignSelf };\r\n\r\n ${ props =>\r\n props.size &&\r\n css`\r\n flex: 0 1 ${ (100 / 12) * props.size }%;\r\n max-width: ${ (100 / 12) * props.size }%;\r\n ` }\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport {StyledCol} from './styles';\r\n\r\nconst Col = ({\r\n children,\r\n size,\r\n justifyContent,\r\n justifySelf,\r\n alignItems,\r\n alignSelf,\r\n padding,\r\n ...rest\r\n}) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nCol.propTypes = {\r\n children : PropTypes.any,\r\n size : PropTypes.number,\r\n justifyContent: PropTypes.string,\r\n justifySelf : PropTypes.string,\r\n alignItems : PropTypes.string,\r\n alignSelf : PropTypes.string,\r\n padding : PropTypes.string,\r\n};\r\n\r\nCol.defaultProps = {\r\n size : 12,\r\n justifyContent: 'center',\r\n justifySelf : 'unset',\r\n alignItems : 'center',\r\n alignSelf : 'unset',\r\n padding : '10px',\r\n children : undefined\r\n};\r\n\r\nexport default Col;\r\n","import styled from 'styled-components';\r\n\r\n\r\nexport const StyledRowComponent = styled.div`\r\n position: ${ props => props.position };\r\n display: flex;\r\n flex-wrap: wrap;\r\n width: 100%;\r\n align-items: ${ props => props.alignItems };\r\n padding: ${ props => props.padding };\r\n justify-content: ${ props => props.justifyContent };\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport {StyledRowComponent} from './styles';\r\n\r\n\r\nconst Row = ({ children, position, justifyContent, alignItems }) => (\r\n \r\n { children }\r\n \r\n);\r\n\r\nRow.propTypes = {\r\n children : PropTypes.any,\r\n position : PropTypes.string,\r\n justifyContent: PropTypes.string,\r\n alignItems : PropTypes.string,\r\n};\r\n\r\nRow.defaultProps = {\r\n position : 'relative',\r\n justifyContent: 'auto',\r\n alignItems : 'flex-start',\r\n children : undefined \r\n};\r\n\r\nexport default Row;\r\n","import styled, { css } from 'styled-components';\r\n\r\nexport const Container = styled.div`\r\n display: flex;\r\n padding: ${props => props.padding};\r\n flex-direction: column;\r\n align-items: flex-start;\r\n border: 1px solid #eee;\r\n border-radius: 4px;\r\n padding: ${props => props.padding};\r\n background-color: ${props => props.backgroundColor};\r\n box-shadow: 0px 2px 2px rgba(242, 242, 242, 0.15);\r\n transition: all 0.3s linear;\r\n background: ${props => props.background};\r\n box-shadow: ${props => props.boxShadow};\r\n border-radius: ${props => props.borderRadius};\r\n margin-top: ${props => props.marginTop};\r\n\r\n ${props =>\r\n css`\r\n flex: 1 1 ${props.width};\r\n `}\r\n\r\n ${props =>\r\n css`\r\n height: ${props.height};\r\n `}\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React, { memo } from 'react';\r\n\r\nimport { Container } from './styles';\r\n\r\nconst Card = ({\r\n children,\r\n height,\r\n width,\r\n backgroundColor,\r\n padding,\r\n background,\r\n boxShadow,\r\n borderRadius,\r\n marginTop,\r\n}) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nCard.propTypes = {\r\n children: PropTypes.node,\r\n height: PropTypes.string,\r\n width: PropTypes.string,\r\n backgroundColor: PropTypes.string,\r\n padding: PropTypes.string,\r\n background: PropTypes.string,\r\n boxShadow: PropTypes.string,\r\n borderRadius: PropTypes.string,\r\n marginTop: PropTypes.string,\r\n};\r\n\r\nCard.defaultProps = {\r\n children: undefined,\r\n height: 'auto',\r\n width: '100%',\r\n backgroundColor: 'white',\r\n padding: '10px',\r\n background: '',\r\n boxShadow: '',\r\n borderRadius: '',\r\n marginTop: '0px,',\r\n};\r\n\r\nexport default memo(Card);\r\n","import styled from 'styled-components';\r\n\r\nexport const Scroll = styled.div`\r\n height:400px;\r\n overflow-y:scroll;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\n\r\nexport const StyledContainer = styled.div`\r\n width: ${ props => props.width };\r\n /*max-width: ${ props => props.maxWidth };\r\n */\r\n height: ${ props => props.height };\r\n /*max-height: ${ props => props.maxHeight };\r\n */\r\n padding: ${ props => `${ props.paddingTop } ${ props.paddingRight } ${ props.paddingBottom } ${ props.paddingLeft }` };\r\n margin: ${ props => `${ props.marginTop } ${ props.marginRight } ${ props.marginBottom } ${ props.marginLeft }` };\r\n`;","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport {StyledContainer} from './styles';\r\n\r\n\r\nconst Container = ({\r\n children,\r\n \r\n paddingTop,\r\n paddingBottom,\r\n paddingLeft,\r\n paddingRight,\r\n\r\n marginTop,\r\n marginBottom,\r\n marginLeft,\r\n marginRight,\r\n\r\n width,\r\n height,\r\n maxWidth,\r\n maxHeight\r\n}) => {\r\n const props = {\r\n paddingTop, paddingBottom, paddingLeft,\r\n paddingRight, marginTop, marginBottom,\r\n marginLeft, marginRight, width,\r\n height, maxWidth, maxHeight\r\n };\r\n \r\n return (\r\n \r\n { children }\r\n \r\n );\r\n};\r\n\r\nContainer.propTypes = {\r\n children: PropTypes.any,\r\n \r\n paddingTop : PropTypes.string,\r\n paddingBottom: PropTypes.string,\r\n paddingLeft : PropTypes.string,\r\n paddingRight : PropTypes.string,\r\n \r\n marginTop : PropTypes.string,\r\n marginBottom: PropTypes.string,\r\n marginLeft : PropTypes.string,\r\n marginRight : PropTypes.string,\r\n \r\n width : PropTypes.string,\r\n height : PropTypes.string,\r\n maxWidth : PropTypes.string,\r\n maxHeight: PropTypes.string\r\n};\r\n\r\nContainer.defaultProps = {\r\n children: undefined,\r\n\r\n paddingTop : '0px',\r\n paddingBottom: '0px',\r\n paddingLeft : '5px',\r\n paddingRight : '5px',\r\n \r\n marginTop : '0px',\r\n marginBottom: '0px',\r\n marginLeft : 'auto',\r\n marginRight : 'auto',\r\n \r\n width : '100%',\r\n height: 'auto',\r\n \r\n maxWidth : 'max-content',\r\n maxHeight: 'max-content'\r\n};\r\n\r\nexport default Container;","import Container from 'components/Grid/Container/index';\r\nimport React from 'react';\r\nimport Skeleton,{SkeletonTheme} from \"react-loading-skeleton\";\r\n\r\n const SkeletonAcquirerList = () => (\r\n \r\n \r\n
\r\n \r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n);\r\n\r\nexport default SkeletonAcquirerList;","const theme = {\r\n spacing : {\r\n padding10: '10px',\r\n padding15: '20px',\r\n padding18: '18px',\r\n padding20: '20px',\r\n padding30: '30px',\r\n padding40: '40px',\r\n padding50: '50px',\r\n \r\n margin5 : '5px',\r\n margin10: '10px',\r\n margin15: '15px',\r\n margin18: '18px',\r\n margin20: '20px',\r\n margin30: '30px',\r\n margin40: '40px',\r\n margin50: '50px',\r\n },\r\n colors : {\r\n principal : '#5B2E90',\r\n principalDark: '#402065',\r\n secondary : '#c370fd',\r\n focus : '#3EA2FF',\r\n black : '#000000',\r\n black85 : '#333333',\r\n black70 : '#4F4F4F',\r\n black55 : '#828282',\r\n black20 : '#CCCCCC',\r\n \r\n white : '#FFFFFF',\r\n offWhite : '#F5F5F5',\r\n lightGray: '#DDDDDD',\r\n gray : '#BDBDBD',\r\n \r\n green : '#6FCF97',\r\n mediumGreen: '#34AF23',\r\n orange : '#F2994A',\r\n lightRed : '#FFE3E3',\r\n red : '#EB5757',\r\n redStrong : '#EE3434',\r\n lightBlue : '#3EA2FF',\r\n ice : '#E4F4FF',\r\n azure : '#EAF5FB',\r\n \r\n linxGradientTheme: 'gradient(90deg, #FF4427 0%, #FFBA00 97.87%)',\r\n },\r\n boxShadow: {\r\n inset : 'rgba(0, 0, 0, 0.1) 0px 0px 3px 0.1px inset',\r\n allSides: 'rgba(0, 0, 0, 0.2) 0px 0px 5px 0.1px',\r\n bottom : 'rgba(0, 0, 0, 0.2); 4px 2px -2px',\r\n },\r\n fontSize : {\r\n _8px : 0.5,\r\n _10px: 0.625,\r\n _12px: 0.75,\r\n _14px: 0.875,\r\n _16px: 1,\r\n _18px: 1.125,\r\n _20px: 1.25,\r\n _22px: 1.375,\r\n _24px: 1.5,\r\n _26px: 1.625,\r\n _28px: 1.75,\r\n _30px: 1.875,\r\n _32px: 2,\r\n _34px: 2.125,\r\n _36px: 2.25,\r\n _38px: 2.375,\r\n _40px: 2.5,\r\n _42px: 2.625,\r\n _44px: 2.75,\r\n _46px: 2.875,\r\n _48px: 3,\r\n _50px: 3.125,\r\n },\r\n};\r\n\r\nexport default theme;\r\n","import styled from 'styled-components';\r\n\r\n\r\nexport const StyledText = styled.span`\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n\r\n text-align: ${ props => props.textAlign };\r\n font-size: ${ props => props.fontSize };\r\n font-weight: ${ props => props.fontWeight };\r\n color: ${ props => props.color };\r\n cursor: ${ props => props.cursor };\r\n width: auto;\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport theme from 'styles/theme';\r\n\r\nimport {StyledText} from './styles';\r\n\r\nconst Text = ({\r\n children,\r\n fontWeight,\r\n fontSize,\r\n color,\r\n cursor,\r\n onClick,\r\n textAlign\r\n}) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nText.propTypes = {\r\n children: PropTypes.string,\r\n fontWeight: PropTypes.number,\r\n fontSize: PropTypes.string,\r\n color: PropTypes.string,\r\n cursor: PropTypes.string,\r\n onClick: PropTypes.func,\r\n textAlign: PropTypes.string\r\n};\r\n\r\nText.defaultProps = {\r\n fontWeight: 300,\r\n fontSize: '12px',\r\n cursor: 'initial',\r\n color: theme.colors.black85,\r\n textAlign: 'right',\r\n children: '',\r\n onClick: () => {}\r\n};\r\n\r\nexport default Text;\r\n","export const cardBrandsEnum = {\r\n default : '00000',\r\n visa : '00001',\r\n mastercard : '00002',\r\n diners : '00003',\r\n americanExpress : '00004',\r\n solo : '00005',\r\n sidecard : '00006',\r\n privateLabel : '00007',\r\n redeshop : '00008',\r\n fininvest : '00010',\r\n jcb : '00011',\r\n hipercard : '00012',\r\n aura : '00013',\r\n losango : '00014',\r\n sorocred : '00015',\r\n visaVale : '00016',\r\n sodexo : '00017',\r\n cabal : '00018',\r\n ticket : '00019',\r\n elo : '00020',\r\n credSystem : '00021',\r\n vr : '00022',\r\n hiper : '00023',\r\n boticario : '00064',\r\n eloDebito : '01251',\r\n eloCredito : '01252',\r\n visaConciliacao : '01253',\r\n masterConciliacao : '01254',\r\n bandeiraAlternativa: '1255',\r\n gera : '9090',\r\n};","import styled from 'styled-components';\r\n\r\n\r\nexport const Container = styled.div`\r\n width: 100%;\r\n max-width:1000px;\r\n min-width:400px;\r\n flex: 1 1 100%;\r\n margin: 0 0 ${ props => props.theme.spacing.margin10 } 0;\r\n cursor: pointer;\r\n`;\r\n","/* eslint-disable react/prop-types */\r\nimport amexIcon from 'assets/icons/cards/amex.svg';\r\nimport auraIcon from 'assets/icons/cards/aura.svg';\r\nimport cabalIcon from 'assets/icons/cards/cabal.svg';\r\nimport credSystemIcon from 'assets/icons/cards/credsystem.svg';\r\nimport defaultIcon from 'assets/icons/cards/default.svg';\r\nimport dinnersIcon from 'assets/icons/cards/dinners.svg';\r\nimport eloDebitoIcon from 'assets/icons/cards/elo-debito-credito.svg';\r\nimport eloIcon from 'assets/icons/cards/elo.svg';\r\nimport fininvestIcon from 'assets/icons/cards/fininvest.svg';\r\nimport geraIcon from 'assets/icons/cards/gera.svg';\r\nimport grupoBoticarioIcon from 'assets/icons/cards/grupoboticario.svg';\r\nimport hipercardIcon from 'assets/icons/cards/hipercard.svg';\r\nimport jcbIcon from 'assets/icons/cards/jcb.svg';\r\nimport losangoIcon from 'assets/icons/cards/losango.svg';\r\nimport mastercardIcon from 'assets/icons/cards/mastercard.svg';\r\nimport sodexoIcon from 'assets/icons/cards/sodexo.svg';\r\nimport soloIcon from 'assets/icons/cards/solo.svg';\r\nimport sorocredIcon from 'assets/icons/cards/sorocred.svg';\r\nimport ticketIcon from 'assets/icons/cards/ticket.svg';\r\nimport visaValeIcon from 'assets/icons/cards/visa-vale.svg';\r\nimport visaIcon from 'assets/icons/cards/visa.svg';\r\nimport vrIcon from 'assets/icons/cards/vr.svg';\r\nimport Card from 'components/Grid/Card';\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport Text from 'components/Typografy/Text';\r\nimport {cardBrandsEnum} from 'enums/cardBrandsEnum';\r\nimport React from 'react';\r\nimport {withTheme} from 'styled-components';\r\nimport * as UtilDate from 'utils/util-date';\r\n\r\nimport {Container} from './styles';\r\n\r\nconst ConciliationCard = ({\r\n isSelected,\r\n onClick,\r\n value,\r\n grossValue,\r\n theme,\r\n name,\r\n authorizationCode,\r\n nsu,\r\n date,\r\n idBandeira,\r\n nota\r\n}) => {\r\n const backgroundColor = isSelected\r\n ? theme.colors.principal\r\n : theme.colors.white;\r\n \r\n const textColor = isSelected\r\n ? theme.colors.white\r\n : theme.colors.black;\r\n \r\n function getCardBrand(key) {\r\n try {\r\n \r\n const cardBrand = [\r\n { key: cardBrandsEnum.default, value: defaultIcon },\r\n { key: cardBrandsEnum.visa, value: visaIcon },\r\n { key: cardBrandsEnum.mastercard, value: mastercardIcon },\r\n { key: cardBrandsEnum.diners, value: dinnersIcon },\r\n { key: cardBrandsEnum.americanExpress, value: amexIcon },\r\n { key: cardBrandsEnum.solo, value: soloIcon },\r\n { key: cardBrandsEnum.sidecard, value: defaultIcon },\r\n { key: cardBrandsEnum.privateLabel, value: defaultIcon },\r\n { key: cardBrandsEnum.redeshop, value: defaultIcon },\r\n { key: cardBrandsEnum.fininvest, value: fininvestIcon },\r\n { key: cardBrandsEnum.jcb, value: jcbIcon },\r\n { key: cardBrandsEnum.hipercard, value: hipercardIcon },\r\n { key: cardBrandsEnum.aura, value: auraIcon },\r\n { key: cardBrandsEnum.losango, value: losangoIcon },\r\n { key: cardBrandsEnum.sorocred, value: sorocredIcon },\r\n { key: cardBrandsEnum.visaVale, value: visaValeIcon },\r\n { key: cardBrandsEnum.sodexo, value: sodexoIcon },\r\n { key: cardBrandsEnum.cabal, value: cabalIcon },\r\n { key: cardBrandsEnum.ticket, value: ticketIcon },\r\n { key: cardBrandsEnum.elo, value: eloIcon },\r\n { key: cardBrandsEnum.credSystem, value: credSystemIcon },\r\n { key: cardBrandsEnum.vr, value: vrIcon },\r\n { key: cardBrandsEnum.hiper, value: hipercardIcon },\r\n { key: cardBrandsEnum.boticario, value: grupoBoticarioIcon },\r\n { key: cardBrandsEnum.eloDebito, value: eloDebitoIcon },\r\n { key: cardBrandsEnum.eloCredito, value: eloDebitoIcon },\r\n { key: cardBrandsEnum.visaConciliacao, value: visaIcon },\r\n { key: cardBrandsEnum.masterConciliacao, value: mastercardIcon },\r\n { key: cardBrandsEnum.bandeiraAlternativa, value: defaultIcon },\r\n { key: cardBrandsEnum.gera, value: geraIcon },\r\n ];\r\n \r\n const obj = cardBrand.find(o => o.key === key);\r\n \r\n if (obj === undefined) {\r\n \r\n // console.log(key);\r\n }\r\n \r\n return obj === undefined\r\n ? cardBrand[0].value\r\n : obj.value;\r\n \r\n } catch {\r\n return null;\r\n }\r\n }\r\n\r\n\r\n return (\r\n onClick(value)}>\r\n \r\n \r\n \"card\"\r\n \r\n {name !== null && (\r\n \r\n \r\n Cliente\r\n \r\n \r\n \r\n {name}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n Data\r\n \r\n \r\n \r\n {UtilDate.formatDate(date)}\r\n \r\n \r\n \r\n \r\n \r\n NSU\r\n \r\n \r\n \r\n {nsu}\r\n \r\n \r\n \r\n \r\n \r\n Cod. Aut.\r\n \r\n \r\n \r\n {authorizationCode}\r\n \r\n \r\n \r\n \r\n \r\n Valor Bruto\r\n \r\n \r\n \r\n {Intl.NumberFormat('pt-BR', {style: 'currency', currency:'BRL'}).format(grossValue)}\r\n \r\n \r\n \r\n {nota !== undefined && (\r\n \r\n \r\n Nº nota\r\n \r\n \r\n \r\n {nota}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default withTheme(ConciliationCard);\r\n","/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport chartIcon from 'assets/icons/chart.svg';\r\nimport Card from 'components/Grid/Card';\r\nimport {Scroll} from 'components/Scroll/index';\r\nimport SkeletonAcquirerList from 'components/Skeleton/SkeletonAcquirerList';\r\nimport ConciliationCard from 'pages/Conciliation/components/ConciliationCard/index';\r\nimport ConciliationContext from 'pages/Conciliation/ConciliationContext';\r\nimport React, {useCallback, useContext, useEffect} from 'react';\r\nimport {useSelector} from \"react-redux\";\r\n\r\n\r\nexport default function AcquirerList() {\r\n\r\n const dataAcquirers = useSelector(state => state.FiltersBarsCardsReducer);\r\n const {\r\n acquirerSalesIds, \r\n setAcquirerSalesIds, \r\n selectedCards, \r\n setSelectedCards, \r\n setAcquirerSelectedValue, \r\n data \r\n } = useContext(ConciliationContext);\r\n \r\n\r\n const handleClick = useCallback((id) =>{\r\n\r\n const include = selectedCards.some(x => x.id === id);\r\n\r\n const cardValue = dataAcquirers.cardAcquirers.records.find(x => x.id === id);\r\n\r\n if (include) {\r\n setSelectedCards(selectedCards.filter(x => x.id !== id)); \r\n \r\n setAcquirerSalesIds(acquirerSalesIds.filter(x => x !== id));\r\n } else {\r\n setSelectedCards([...selectedCards, cardValue]);\r\n\r\n setAcquirerSalesIds([id, ...acquirerSalesIds]);\r\n }\r\n }) \r\n\r\n useEffect(() => {\r\n const value = 0;\r\n setSelectedCards([]);\r\n setAcquirerSalesIds([]);\r\n setAcquirerSelectedValue(value);\r\n }, [data])\r\n \r\n useEffect(() => {\r\n\r\n const value = selectedCards.reduce(\r\n (sum, x) =>\r\n (Number.parseFloat(sum) + Number.parseFloat(x.grossValue)).toFixed(2),\r\n 0,\r\n );\r\n \r\n setAcquirerSelectedValue(value);\r\n }, [selectedCards, setAcquirerSelectedValue])\r\n\r\n\r\n if(dataAcquirers.acquirersLength <=0 || dataAcquirers.loading) \r\n return (\r\n <>\r\n {dataAcquirers.loading ? (\r\n <> \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ) :\r\n }\r\n \r\n );\r\n\r\n return (\r\n <>\r\n \r\n {dataAcquirers.cardAcquirers.records \r\n && dataAcquirers.cardAcquirers.records.map(itemCard => (\r\n sel.id === itemCard.id)}\r\n key={itemCard.id}\r\n date={itemCard.dateOfSale}\r\n value={itemCard.id}\r\n grossValue={itemCard.grossValue}\r\n nsu={itemCard.nsu}\r\n authorizationCode={itemCard.authorizationId}\r\n idBandeira={itemCard.idBandeiraRede}\r\n onClick={handleClick}\r\n \r\n />\r\n ))}\r\n \r\n \r\n );\r\n}\r\n\r\nexport const Loader = () => (\r\n \r\n);\r\n\r\nexport const NoResults = () => {\r\n return (\r\n \r\n \"chartIcon\"\r\n \r\n )\r\n};\r\n","import Container from 'components/Grid/Container/index';\r\nimport React from 'react'\r\nimport Skeleton,{SkeletonTheme} from \"react-loading-skeleton\";\r\n\r\n const SkeletonCardReceiveList = () => (\r\n \r\n \r\n
\r\n \r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n);\r\n\r\nexport default SkeletonCardReceiveList;","/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport chartIcon from 'assets/icons/chart.svg';\r\nimport Card from 'components/Grid/Card';\r\nimport {Scroll} from 'components/Scroll/index'\r\nimport SkeletonCardReceiveList from 'components/Skeleton/SkeletonCardReceiveList';\r\nimport ConciliationCard from 'pages/Conciliation/components/ConciliationCard/index'\r\nimport ConciliationContext from 'pages/Conciliation/ConciliationContext';\r\nimport React, {useCallback, useContext, useEffect } from 'react';\r\nimport { useSelector } from \"react-redux\"; \r\n\r\nexport default function CardReceiveList() {\r\n \r\n const dataCardReceiveList = useSelector(state => state.FiltersBarsCardsReducer);\r\n const {\r\n cardReceiveIds, \r\n setCardReceiveIds, \r\n selectedCardsReceive, \r\n setSelectedCardsReceive, \r\n setSystemSelectedValue,\r\n data\r\n } = useContext(ConciliationContext);\r\n\r\n const handleClick = useCallback((id) => {\r\n\r\n const include = selectedCardsReceive.some(x => x.idReceberCartao === id);\r\n\r\n const cardValue = dataCardReceiveList.cardReceive.records.find(x => x.idReceberCartao === id);\r\n\r\n if (include) {\r\n setSelectedCardsReceive(selectedCardsReceive.filter(x => x.idReceberCartao !== id)); \r\n setCardReceiveIds(cardReceiveIds.filter(x => x !== id));\r\n } else {\r\n setSelectedCardsReceive([...selectedCardsReceive, cardValue]);\r\n setCardReceiveIds([id, ...cardReceiveIds]);\r\n }\r\n \r\n });\r\n \r\n useEffect(() => {\r\n\r\n const value = 0;\r\n\r\n setSelectedCardsReceive([]);\r\n\r\n setCardReceiveIds([]);\r\n\r\n setSystemSelectedValue(value);\r\n\r\n }, [data])\r\n \r\n useEffect(() => {\r\n \r\n const value = selectedCardsReceive.reduce((sum, x) => {\r\n\r\n return (\r\n Number.parseFloat(sum) + Number.parseFloat(x.valorOriginal)\r\n ).toFixed(2);\r\n \r\n }, 0);\r\n \r\n setSystemSelectedValue(value);\r\n\r\n }, [selectedCardsReceive, setSystemSelectedValue]);\r\n\r\n\r\n if(dataCardReceiveList.receiveLength <=0 || dataCardReceiveList.loading) \r\n return (\r\n <>\r\n {dataCardReceiveList.loading ? (\r\n <> \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ) :\r\n }\r\n \r\n );\r\n \r\n return (\r\n <>\r\n \r\n {dataCardReceiveList.cardReceive.records && \r\n dataCardReceiveList.cardReceive.records.map(itemCard => (\r\n sel.idReceberCartao === itemCard.idReceberCartao)}\r\n key={itemCard.idReceberCartao}\r\n date={itemCard.emissao}\r\n value={itemCard.idReceberCartao}\r\n grossValue={itemCard.valorOriginal}\r\n nsu={itemCard.nrCartao}\r\n authorizationCode={itemCard.nrAprovacaoCartao}\r\n idBandeira={itemCard.idBandeira}\r\n onClick={handleClick}\r\n nota={itemCard.nota}\r\n />\r\n ))}\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport const Loader = () => (\r\n \r\n);\r\n\r\nexport const NoResults = () => {\r\n return (\r\n \r\n \"chartIcon\"\r\n \r\n )\r\n};\r\n","import Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport React from 'react'\r\n\r\nimport AcquirerList from '../CardAcquirerList/index';\r\nimport CardReceiveList from '../CardReceiveList/index';\r\n\r\nconst Cards = () => {\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n )\r\n}\r\n\r\nexport default Cards\r\n","import styled, { css } from 'styled-components';\r\n\r\nexport const StyledDivider = styled.hr`\r\n margin: 5px 0;\r\n background-color: unset;\r\n border-width: ${props => props.size};\r\n border-style: ${props => props.lineStyle};\r\n border-color: ${props => props.color};\r\n width: ${props => props.width};\r\n\r\n ${props =>\r\n props.orientation === 'vertical' &&\r\n css`\r\n align-self: stretch;\r\n `}\r\n`;\r\n","import { StyledDivider } from 'components/Grid/Divider/styles';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\n\r\nexport default function Divider({\r\n size,\r\n lineStyle,\r\n color,\r\n orientation,\r\n width,\r\n}) {\r\n return (\r\n \r\n );\r\n}\r\n\r\nDivider.propTypes = {\r\n orientation: PropTypes.string,\r\n size: PropTypes.string,\r\n lineStyle: PropTypes.string,\r\n color: PropTypes.string,\r\n width: PropTypes.string,\r\n};\r\n\r\nDivider.defaultProps = {\r\n orientation: 'horizontal',\r\n size: '1px',\r\n lineStyle: 'solid',\r\n color: '#F2F2F2',\r\n width: '',\r\n};\r\n","import { darken } from 'polished';\r\nimport styled, { css } from 'styled-components';\r\n\r\nexport const StyledButton = styled.button`\r\n width: ${props => props.width};\r\n height: ${props => props.height};\r\n font-size: ${props => props.fontSize};\r\n\r\n border-radius: 4px;\r\n font-weight: 600;\r\n cursor: pointer;\r\n outline: none;\r\n transition: color 0.25s, border-color 0.25s, background-color 0.25s;\r\n\r\n ${props =>\r\n props.outline\r\n ? css`\r\n background: ${props.color};\r\n color: ${props.backgroundColor};\r\n border: 1px solid ${props.backgroundColor};\r\n &:hover,\r\n &:focus {\r\n color: ${darken(0.15, props.backgroundColor)};\r\n border-color: ${darken(0.15, props.backgroundColor)};\r\n }\r\n `\r\n : css`\r\n background: ${props.backgroundColor};\r\n border: ${props.border};\r\n color: ${props.color};\r\n &:hover,\r\n &:focus {\r\n background: ${darken(0.15, props.backgroundColor)};\r\n }\r\n `}\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { withTheme } from 'styled-components';\r\nimport theme from 'styles/theme';\r\n\r\nimport { StyledButton } from './styles';\r\n\r\nconst Button = ({\r\n name,\r\n register,\r\n testId,\r\n\r\n onClick,\r\n fontSize,\r\n backgroundColor,\r\n border,\r\n color,\r\n height,\r\n width,\r\n outline,\r\n children,\r\n}) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nButton.propTypes = {\r\n name: PropTypes.string,\r\n register: PropTypes.func,\r\n testId: PropTypes.string,\r\n\r\n onClick: PropTypes.func,\r\n\r\n backgroundColor: PropTypes.string,\r\n border: PropTypes.string,\r\n color: PropTypes.string,\r\n width: PropTypes.string,\r\n height: PropTypes.string,\r\n outline: PropTypes.bool,\r\n fontSize: PropTypes.string,\r\n\r\n children: PropTypes.any,\r\n};\r\n\r\nButton.defaultProps = {\r\n onClick: () => {},\r\n backgroundColor: theme.colors.principal,\r\n color: '#fff',\r\n border: 'none',\r\n width: '185px',\r\n height: '35px',\r\n outline: false,\r\n testId: 'button',\r\n fontSize: '13px',\r\n children: undefined,\r\n name: '',\r\n register: undefined\r\n};\r\n\r\nexport default withTheme(Button);\r\n","import styled from 'styled-components';\r\n\r\nexport const StyledWrapper = styled.div`\r\n width: 100%;\r\n\r\n .SingleDatePicker {\r\n width: 100%;\r\n }\r\n\r\n .DateRangePicker {\r\n width: 100%;\r\n }\r\n\r\n .SingleDatePickerInput {\r\n width: 100%;\r\n }\r\n\r\n .DateRangePickerInput {\r\n display: flex;\r\n justify-content: space-around;\r\n align-items: center;\r\n height: 35px;\r\n width: 100%;\r\n border-radius: 4px;\r\n border: 1px solid #cccccc;\r\n }\r\n\r\n .DateInput {\r\n width: 40%;\r\n }\r\n\r\n .DateInput_input {\r\n font-size: 12px;\r\n padding: unset;\r\n text-align: center;\r\n }\r\n\r\n .DateInput_input__focused {\r\n font-size: 12px;\r\n padding: unset;\r\n text-align: center;\r\n border-bottom: 2px solid #3ea2ff;\r\n }\r\n\r\n .DateRangePickerInput_arrow_svg {\r\n width: 15px;\r\n }\r\n\r\n .SingleDatePickerInput__withBorder {\r\n border: none;\r\n }\r\n\r\n .CalendarDay__hovered_span {\r\n background: rgba(128, 194, 255, 0.5);\r\n border-color: rgba(62, 162, 255, 0.5);\r\n color: white;\r\n }\r\n\r\n .CalendarDay__selected_span {\r\n background: rgba(62, 162, 255, 0.5);\r\n border-color: rgba(62, 162, 255, 0.5);\r\n color: white;\r\n }\r\n\r\n .CalendarDay__selected {\r\n background: #3ea2ff;\r\n border-color: #3ea2ff;\r\n color: white;\r\n }\r\n\r\n .DateRangePickerInput_calendarIcon {\r\n padding: unset;\r\n margin-bottom: 4px;\r\n margin-right: 10px;\r\n }\r\n\r\n .DateRangePickerInput_calendarIcon_svg {\r\n width: 13px;\r\n height: 13px;\r\n }\r\n`;\r\n","/* eslint-disable react/no-unused-prop-types */\r\n/* eslint-disable react/require-default-props */\r\n/* eslint-disable no-shadow */\r\n/* eslint-disable react/prop-types */\r\n/* eslint-disable no-unused-vars */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport 'react-dates/initialize';\r\nimport 'react-dates/lib/css/_datepicker.css';\r\nimport moment from 'moment';\r\nimport ptbrLocale from 'moment/locale/pt-br';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useState, useEffect, useRef } from 'react';\r\nimport {DateRangePicker} from 'react-dates';\r\n\r\nimport { StyledWrapper } from './styles';\r\n\r\nconst DatePicker = ({\r\n name,\r\n register,\r\n testId,\r\n initialStartDate,\r\n initialEndDate,\r\n maximumDays,\r\n onDatesChange\r\n}) => {\r\n moment.updateLocale('pt-br', {\r\n weekdaysMin: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\r\n });\r\n moment.updateLocale('pt-br', ptbrLocale);\r\n\r\n const [startDate, setStartDate] = useState(initialStartDate || moment());\r\n const [endDate, setEndDate] = useState(initialEndDate || moment());\r\n const [lastStartDate, setLastStartDate] = useState(initialStartDate || moment());\r\n const [lastEndDate, setLastEndDate] = useState(initialEndDate || moment());\r\n\r\n const [focusedInput, setFocusedInput] = useState(null);\r\n\r\n const startDateRef = useRef();\r\n const endDateRef = useRef();\r\n\r\n\r\n const handleDatesChange = ({ startDate, endDate }) => {\r\n if (startDate)\r\n setLastStartDate(startDate);\r\n\r\n if (endDate)\r\n setLastEndDate(endDate);\r\n\r\n setStartDate(startDate);\r\n setEndDate(endDate);\r\n };\r\n const onClose = (final) => {\r\n if (!final.startDate && !!lastStartDate) {\r\n setStartDate(lastStartDate);\r\n }\r\n\r\n if (!final.endDate && !!lastEndDate) {\r\n setEndDate(lastEndDate);\r\n }\r\n\r\n onDatesChange(final);\r\n }\r\n\r\n const outsideRange = day => {\r\n if (maximumDays < 0) {\r\n if (\r\n day.isAfter(startDate.clone().add(maximumDays, 'days')) &&\r\n day.isBefore(endDate.clone().subtract(maximumDays, 'days'))\r\n ) {\r\n const endDT = startDate.clone().add(maximumDays, 'days');\r\n setEndDate(endDT);\r\n }\r\n return (\r\n day.isAfter(startDate.clone().add(maximumDays, 'days')) &&\r\n day.isBefore(endDate.clone().subtract(maximumDays, 'days'))\r\n );\r\n }\r\n return false;\r\n };\r\n\r\n\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n setFocusedInput(focusedInput)}\r\n displayFormat={() => 'DD/MM/YYYY'}\r\n isOutsideRange={outsideRange}\r\n numberOfMonths={2}\r\n inputIconPosition=\"after\"\r\n showDefaultInputIcon\r\n startDatePlaceholderText=\"Data Inicial\"\r\n endDatePlaceholderText=\"Data Final\"\r\n onClose={onClose}\r\n hideKeyboardShortcutsPanel\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nDatePicker.propTypes = {\r\n name: PropTypes.any,\r\n register: PropTypes.any,\r\n testId: PropTypes.any,\r\n children: PropTypes.any,\r\n maximumDays: PropTypes.number\r\n};\r\n\r\nDatePicker.defaultProps = {\r\n maximumDays: 0,\r\n name: undefined,\r\n register: undefined,\r\n testId: undefined,\r\n children: undefined\r\n};\r\n\r\nexport default DatePicker;\r\n","import { createContext } from 'react';\r\n\r\nconst DropdownContext = createContext({\r\n onClick: () => {},\r\n multiple: false,\r\n selectedItems: [],\r\n});\r\n\r\nexport default DropdownContext;\r\n","import styled from 'styled-components';\r\n\r\nexport const StyledDropdownItem = styled.div`\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n height: 30px;\r\n background: white;\r\n font-weight: normal;\r\n font-size: 13px;\r\n padding-left: 10px;\r\n color: #828282;\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n cursor: pointer;\r\n\r\n &:hover {\r\n background-color: #eaf5fb;\r\n }\r\n`;\r\n\r\nexport const StyledDropdownCheckbox = styled.div`\r\n & {\r\n text-align: center;\r\n display: block;\r\n position: absolute;\r\n padding-left: 20px;\r\n cursor: pointer;\r\n font-size: 22px;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\r\n right: 0;\r\n margin-top: -8px;\r\n\r\n & input[type='checkbox'] {\r\n position: absolute;\r\n opacity: 0;\r\n cursor: pointer;\r\n height: 0;\r\n width: 0;\r\n }\r\n\r\n & .checkmark {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n height: 14px;\r\n width: 14px;\r\n background: #ffffff;\r\n border: 1px solid #cccccc;\r\n box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.1);\r\n border-radius: 2px;\r\n\r\n &:after {\r\n content: '';\r\n position: absolute;\r\n display: none;\r\n left: 4px;\r\n top: 0;\r\n width: 3px;\r\n height: 8px;\r\n border: solid white;\r\n border-width: 0 3px 3px 0;\r\n -webkit-transform: rotate(45deg);\r\n -ms-transform: rotate(45deg);\r\n transform: rotate(45deg);\r\n }\r\n }\r\n }\r\n\r\n & :hover {\r\n & input[type='checkbox'] ~ .checkmark {\r\n background-color: #ccc;\r\n }\r\n }\r\n\r\n & {\r\n & input[type='checkbox']:checked ~ .checkmark {\r\n background-color: #5ab0ff;\r\n border: none;\r\n\r\n &:after {\r\n display: block;\r\n }\r\n }\r\n }\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React, { useContext } from 'react';\r\n\r\nimport DropdownContext from '../DropdownContext';\r\nimport {StyledDropdownItem, StyledDropdownCheckbox} from './styles';\r\n\r\nfunction DropdownItem({ label, value, testId }) {\r\n const {onClick, multiple, selectedItems} = useContext(DropdownContext);\r\n\r\n return (\r\n onClick(e, { label, value })}\r\n data-testid={testId}\r\n >\r\n {label} \r\n \r\n {multiple && (\r\n \r\n x.value === value) ? 'checked' : ''}\r\n />\r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n}\r\n\r\nDropdownItem.propTypes = {\r\n label: PropTypes.string.isRequired,\r\n value: PropTypes.string.isRequired,\r\n testId: PropTypes.string,\r\n};\r\n\r\nDropdownItem.defaultProps = {\r\n testId: 'test-dropdown-item',\r\n};\r\n\r\nexport default DropdownItem;\r\n","import styled, { css } from 'styled-components';\r\n\r\nexport const Container = styled.div`\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: 600;\r\n font-size: ${props => props.fontSize};\r\n line-height: 13px;\r\n display: flex;\r\n align-items: flex-end;\r\n width: ${props => props.width};\r\n color: ${props => props.color};\r\n\r\n ${props =>\r\n props.bgColor !== '' &&\r\n css`\r\n background-color: ${props.bgColor};\r\n padding: 0 0.5rem;\r\n border-radius: 3px;\r\n `}\r\n`;\r\n\r\n// display: flex;\r\n// margin: 0 5px;\r\n// color: #ffffff;\r\n// background-color: #3ea2ff;\r\n// position: relative;\r\n// padding: 0 0.5rem;\r\n// padding-left: 2rem;\r\n// border-radius: 3px;\r\n// justify-content: flex-start;\r\n// align-items: center;\r\n","/* eslint-disable jsx-a11y/label-has-associated-control */\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport { Container } from './styles';\r\n\r\nconst Label = ({ children, fontSize, color, bgColor, width }) => (\r\n \r\n \r\n \r\n);\r\n\r\nLabel.propTypes = {\r\n children: PropTypes.any,\r\n fontSize: PropTypes.string,\r\n color: PropTypes.string,\r\n bgColor: PropTypes.string,\r\n width: PropTypes.string,\r\n};\r\n\r\nLabel.defaultProps = {\r\n fontSize: '13px',\r\n color: '#4F4F4F',\r\n bgColor: '',\r\n width: '100%',\r\n children: undefined\r\n};\r\n\r\nexport default Label;\r\n","import styled from 'styled-components';\r\n\r\nexport const StyledDropdown = styled.div`\r\n position: relative;\r\n display: flex;\r\n height: 35px;\r\n width: 100%;\r\n border-radius: 4px;\r\n border: 1px solid #cccccc;\r\n cursor: pointer;\r\n background: white;\r\n justify-content: space-between;\r\n`;\r\n\r\nexport const StyledDropdownContainer = styled.div`\r\n position: absolute;\r\n top: ${props => props.coordinates.y}px;\r\n left: ${props => props.coordinates.x}px;\r\n width: 100%;\r\n max-height: 105px;\r\n overflow-y: scroll;\r\n overflow-x: hidden;\r\n background: white;\r\n border-radius: 4px;\r\n border: 1px solid #cccccc;\r\n transition: all 0.2s ease-out;\r\n z-index: 1;\r\n \r\n /* firefox works */\r\n scrollbar-color: #E0E0E0 #F9F9F9;\r\n scrollbar-width: thin;\r\n \r\n &::-webkit-scrollbar {\r\n width: 3.85px;\r\n }\r\n &::-webkit-scrollbar-track {\r\n background: #f9f9f9;\r\n }\r\n &::-webkit-scrollbar-thumb {\r\n background: #e0e0e0;\r\n border-radius: 4px;\r\n }\r\n`;\r\n\r\n\r\nexport const StyledDropdownIcon = styled.div`\r\n display: flex;\r\n height: 100%;\r\n padding-right: 10px;\r\n`;\r\n\r\nexport const StyledSelectedItem = styled.div`\r\n height: 100%;\r\n width: 90%;\r\n font-weight: 600;\r\n font-size: 13px;\r\n padding-left: 10px;\r\n color: #828282;\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n \r\n & div {\r\n margin-right: 5px;\r\n padding-top: 4px;\r\n padding-bottom: 4px;\r\n \r\n & label {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n }\r\n }\r\n`;\r\n","/* eslint-disable react/default-props-match-prop-types */\r\n/* eslint-disable react/require-default-props */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\n import chevronDown from 'assets/icons/chevron-down.svg';\r\nimport Label from 'components/Forms/Label';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useState, useEffect } from 'react';\r\nimport OutsideClickHandler from 'react-outside-click-handler';\r\nimport theme from 'styles/theme';\r\n\r\nimport DropdownContext from './DropdownContext';\r\nimport {StyledDropdown, StyledDropdownContainer, StyledSelectedItem, StyledDropdownIcon} from './styles';\r\nimport './styles.css'\r\n\r\nconst Dropdown = ({\r\n name,\r\n register,\r\n testId,\r\n \r\n onChange,\r\n \r\n multiple,\r\n children,\r\n}) => {\r\n \r\n const [selectedItems, setSelectedItems] = useState([]);\r\n const [coordinates, setCoordinates] = useState({ x: 0, y: 0 });\r\n const [isOpen, setIsOpen] = useState(false);\r\n\r\n\r\n \r\n const handleClick = (e, { label, value }) => {\r\n const item = { label, value };\r\n\r\n if (multiple) {\r\n e.stopPropagation();\r\n \r\n const items = selectedItems.some(element => element.value === value)\r\n ? selectedItems.filter(x => x.value !== value && x !== 0)\r\n : [...selectedItems, item];\r\n \r\n setSelectedItems(items);\r\n } else {\r\n setSelectedItems([item]);\r\n }\r\n\r\n\r\n setIsOpen(true);\r\n };\r\n\r\n useEffect(() => {\r\n if (selectedItems.length){\r\n onChange(selectedItems[0].value);\r\n }\r\n }, [selectedItems]);\r\n\r\n const toggle = e => {\r\n setCoordinates({ y: e.currentTarget.offsetHeight - 4, x: 0 });\r\n\r\n setIsOpen(!isOpen);\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n setIsOpen(!isOpen)}\r\n disabled={!isOpen}\r\n >\r\n \r\n \r\n \r\n {!multiple && selectedItems.length > 0 ? {selectedItems[0].label} : null }\r\n \r\n {multiple && selectedItems.some(x => x.value === 0) && (\r\n \r\n )}\r\n \r\n {multiple &&\r\n selectedItems.length > 0 &&\r\n selectedItems.length < 2 &&\r\n !selectedItems.some(x => x.value === 0) && (\r\n \r\n )}\r\n \r\n {multiple &&\r\n selectedItems.length === 2 &&\r\n !selectedItems.some(x => x.value === 0) &&\r\n selectedItems.map(({ label, value }) => (\r\n \r\n {label}\r\n \r\n ))}\r\n \r\n {multiple &&\r\n selectedItems.length > 2 &&\r\n !selectedItems.some(x => x.value === 0) && (\r\n
\r\n \r\n \r\n \r\n
\r\n )}\r\n \r\n
\r\n \r\n \r\n \"icon\"\r\n \r\n \r\n {isOpen ? (\r\n \r\n {children}\r\n \r\n ) : }\r\n \r\n {/* renderização de um select nativo para melhor controle em forms */}\r\n \r\n
\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nDropdown.propTypes = {\r\n name : PropTypes.string.isRequired,\r\n register: PropTypes.func.isRequired,\r\n testId : PropTypes.string.isRequired,\r\n \r\n onChange: PropTypes.func.isRequired,\r\n\r\n multiple: PropTypes.bool,\r\n children: PropTypes.any,\r\n};\r\n\r\nDropdown.defaultProps = {\r\n testId : 'dropdown',\r\n onChange: () => {},\r\n multiple: false,\r\n children: undefined\r\n};\r\n\r\nexport default Dropdown;\r\n","export const Types = {\r\n GET_ACQUIRERS: \"acquirers/GET_ACQUIRERS\",\r\n GET_ACQUIRERS_SUCCESS: \"acquirers/GET_ACQUIRERS_SUCCESS\",\r\n GET_ACQUIRERS_ERROR: \"acquirers/GET_ACQUIRERS_ERROR\",\r\n }\r\n \r\n const INITIAL_STATE = {\r\n data: [],\r\n loading: false,\r\n error: '',\r\n };\r\n\r\n export default function acquirers(state = INITIAL_STATE, action){\r\n\r\n switch(action.type){\r\n\r\n case Types.GET_ACQUIRERS: {\r\n return {data:[], loading:true, error:''}\r\n }\r\n\r\n case Types.GET_ACQUIRERS_SUCCESS: {\r\n return {data: action.data, loading:false, error:''}\r\n }\r\n\r\n case Types.GET_ACQUIRERS_ERROR: {\r\n return {loading:false, error:'Error', ...state}\r\n }\r\n\r\n default:\r\n return state;\r\n }\r\n\r\n }","/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport DropdownItem from 'components/Forms/Dropdown/DropdownItem/index';\r\nimport Dropdown from 'components/Forms/Dropdown/index';\r\nimport Text from 'components/Typografy/Text/index';\r\nimport PropTypes from 'prop-types';\r\nimport React, {useEffect} from 'react';\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\n\r\nimport {Types as Acquirers} from '../../../../../store/ducks/Conciliation/Acquirers';\r\n\r\n\r\nfunction AcquirersDropDown({\r\n register\r\n}) {\r\n\r\n const dispatch = useDispatch();\r\n\r\n useEffect(() => {\r\n\r\n dispatch({type:Acquirers.GET_ACQUIRERS});\r\n\r\n },[])\r\n\r\n const dataAcquirers = useSelector(state => state.AcquirersReducer)\r\n\r\n return(\r\n <>\r\n Adquirente\r\n \r\n \r\n \r\n {dataAcquirers.loading === true ?

Carregando...

:\r\n dataAcquirers.data.map(item => (\r\n \r\n ))}\r\n \r\n \r\n );\r\n}\r\n\r\nAcquirersDropDown.propTypes = {\r\n register: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default AcquirersDropDown;\r\n","export const Types = {\r\n GET_CARDBRANDS: \"cardBrands/GET_CARDBRANDS\",\r\n GET_CARDBRANDS_SUCCESS: \"cardBrands/GET_CARDBRANDS_SUCCESS\",\r\n GET_CARDBRANDS_ERROR: \"cardBrands/GET_CARDBRANDS_ERROR\",\r\n }\r\n\r\n const INITIAL_STATE = {\r\n data: [],\r\n loading: false,\r\n error: '',\r\n };\r\n\r\n export default function cardBrands(state = INITIAL_STATE, action){\r\n\r\n switch(action.type){\r\n\r\n case Types.GET_CARDBRANDS: {\r\n return {data:[], loading:true, error:''}\r\n }\r\n\r\n case Types.GET_CARDBRANDS_SUCCESS: {\r\n return {data: action.data, loading:false, error:''}\r\n }\r\n\r\n case Types.GET_CARDBRANDS_ERROR: {\r\n return {loading:false, error:'Error', ...state}\r\n }\r\n\r\n default:\r\n return state;\r\n }\r\n\r\n }\r\n ","/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport DropdownItem from 'components/Forms/Dropdown/DropdownItem/index';\r\nimport Dropdown from 'components/Forms/Dropdown/index';\r\nimport Text from 'components/Typografy/Text/index';\r\nimport PropTypes from 'prop-types';\r\nimport React, {useEffect} from 'react';\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\n\r\nimport {Types as CardBrands} from '../../../../../store/ducks/Conciliation/CardBrands';\r\n\r\nfunction CardBrandsDropDown({\r\n register\r\n}) {\r\n\r\n const dispatch = useDispatch();\r\n\r\n useEffect(() => {\r\n\r\n dispatch({type:CardBrands.GET_CARDBRANDS});\r\n\r\n },[])\r\n\r\n const datacardBrands = useSelector(cardBrands => cardBrands.CardBrandsReducer)\r\n\r\n \r\n return(\r\n <>\r\n Bandeira\r\n \r\n {datacardBrands.loading === true ?

Carregando...

:\r\n datacardBrands.data.map(item => (\r\n\r\n \r\n \r\n ))}\r\n\r\n \r\n \r\n );\r\n}\r\n\r\nCardBrandsDropDown.propTypes = {\r\n register: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default CardBrandsDropDown;\r\n","export const Types = {\r\n GET_SUBSIDIARIES: \"subsidiaries/GET_SUBSIDIARIES\",\r\n GET_SUBSIDIARIES_SUCCESS: \"subsidiaries/GET_SUBSIDIARIES_SUCCESS\",\r\n GET_SUBSIDIARIES_ERROR: \"subsidiaries/GET_SUBSIDIARIES_ERROR\",\r\n }\r\n \r\n const INITIAL_STATE = {\r\n data: [],\r\n loading: false,\r\n error: '',\r\n };\r\n \r\n export default function subsidiaries(state = INITIAL_STATE, action){\r\n \r\n switch(action.type){\r\n \r\n case Types.GET_SUBSIDIARIES: {\r\n return {data:[], loading:true, error:''}\r\n }\r\n \r\n case Types.GET_SUBSIDIARIES_SUCCESS: {\r\n return {data: action.data, loading:false, error:''}\r\n }\r\n \r\n case Types.GET_SUBSIDIARIES_ERROR: {\r\n return {loading:false, error:'Error', ...state}\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n \r\n }\r\n ","/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport DropdownItem from 'components/Forms/Dropdown/DropdownItem/index';\r\nimport Dropdown from 'components/Forms/Dropdown/index';\r\nimport Text from 'components/Typografy/Text/index';\r\nimport PropTypes from 'prop-types';\r\nimport React, {useEffect} from 'react';\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\n\r\nimport {Types as Subsidiaries} from '../../../../../store/ducks/Conciliation/Subsidiaries';\r\n\r\nfunction SubsidiariesDropDown({\r\n register\r\n}) {\r\n\r\n\r\n const dispatch = useDispatch();\r\n\r\n useEffect(() => {\r\n\r\n dispatch({type:Subsidiaries.GET_SUBSIDIARIES});\r\n\r\n },[])\r\n\r\n const dataSubsidiaries = useSelector(\r\n subsidiaries => subsidiaries.SubsidiariesReducer\r\n )\r\n\r\n return(\r\n <>\r\n Filial\r\n \r\n {dataSubsidiaries.loading === true ?

Carregando...

: \r\n dataSubsidiaries.data.map(item => (\r\n \r\n))}\r\n \r\n \r\n );\r\n}\r\n\r\nSubsidiariesDropDown.propTypes = {\r\n register: PropTypes.func.isRequired,\r\n};\r\n\r\nexport default SubsidiariesDropDown;\r\n"," export const Types = {\r\n GET_FILTERSBARS: \"filtersBars/GET_FILTERSBARS\",\r\n GET_FILTERSBARS_SUCCESS: \"filtersBars/GET_FILTERSBARS_SUCCESS\",\r\n GET_FILTERSBARS_ERROR: \"filtersBars/GET_FILTERSBARS_ERROR\",\r\n }\r\n\r\n const INITIAL_STATE = {\r\n cardAcquirers: [],\r\n cardReceive: [],\r\n loading: false,\r\n error: '',\r\n };\r\n\r\n export default function filtersBars(state = INITIAL_STATE, action){\r\n \r\n switch(action.type){\r\n \r\n case Types.GET_FILTERSBARS: {\r\n return {\r\n cardAcquirers: [],\r\n cardReceive: [],\r\n loading:true,\r\n error:''\r\n }}\r\n \r\n\r\n case Types.GET_FILTERSBARS_SUCCESS: {\r\n return {\r\n cardAcquirers: action.payload.cardAcquirer,\r\n cardReceive: action.payload.cardReceive,\r\n acquirersLength:action.payload.sizeCardAcquirer,\r\n receiveLength:action.payload.sizeCardReceive,\r\n acquirersSum:action.payload.sumAcquirer,\r\n receiveSum:action.payload.sumReceive,\r\n filtros:action.payload,\r\n loading:false, \r\n error:''\r\n }\r\n }\r\n\r\n case Types.GET_FILTERSBARS_ERROR: {\r\n return {\r\n loading:false, \r\n error:action.payload.error, \r\n ...state\r\n }\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n } ","export const Types = {\r\n GET_FILTERSBARS_CHART : 'filtersChart/GET_FILTERSBARS_CHART',\r\n GET_FILTERSBARS_CHART_SUCCESS: 'filtersChart/GET_FILTERSBARS_CHART_SUCCESS',\r\n GET_FILTERSBARS_CHART_ERROR : 'filtersChart/GET_FILTERSBARS_CHART_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n records : [],\r\n loading: false,\r\n error : '',\r\n};\r\n\r\nexport default function filtersChart(state = INITIAL_STATE, action) {\r\n \r\n switch (action.type) {\r\n \r\n case Types.GET_FILTERSBARS_CHART: {\r\n return {\r\n records: [],\r\n loading: true,\r\n error : ''\r\n };\r\n }\r\n \r\n case Types.GET_FILTERSBARS_CHART_SUCCESS: {\r\n \r\n return {\r\n records: action.payload,\r\n loading: false,\r\n error : ''\r\n };\r\n }\r\n \r\n case Types.GET_FILTERSBARS_CHART_ERROR: {\r\n return {\r\n records: [],\r\n loading: false,\r\n error : action.payload.error\r\n };\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n \r\n}\r\n","import Button from 'components/Forms/Button/index';\r\nimport DatePicker from 'components/Forms/DatePicker';\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport Text from 'components/Typografy/Text';\r\nimport moment from 'moment';\r\nimport AcquirersDropDown from 'pages/Conciliation/components/ConciliationCard/Filtering/AcquirersDropDown';\r\nimport CardBrandsDropDown from 'pages/Conciliation/components/ConciliationCard/Filtering/CardBrandsDropDown';\r\nimport SubsidiariesDropDown from 'pages/Conciliation/components/ConciliationCard/Filtering/SubsidiariesDropDown';\r\nimport ConciliationContext from 'pages/Conciliation/ConciliationContext';\r\nimport React, {useContext} from 'react';\r\nimport {useForm} from 'react-hook-form';\r\nimport {useDispatch} from 'react-redux';\r\nimport {Types as FiltersBarsCards} from 'store/ducks/Conciliation/FiltersBars';\r\nimport {Types as FiltersChart} from 'store/ducks/Conciliation/FiltersChart';\r\nimport theme from 'styles/theme';\r\n\r\n\r\nconst FiltersBars = () => {\r\n \r\n const { register, getValues } = useForm();\r\n \r\n const [startDate, setStartDate] = React.useState(moment());\r\n const [finalDate, setFinalDate] = React.useState(moment().subtract(1, 'M'));\r\n const {setData, setAcquirerSelectedValue, setSystemSelectedValue} = useContext(ConciliationContext);\r\n \r\n const dispatch = useDispatch();\r\n \r\n const onSubmit = data => {\r\n\r\n dispatch({\r\n type: FiltersBarsCards.GET_FILTERSBARS,\r\n payload: data\r\n });\r\n\r\n dispatch({ \r\n type: FiltersChart.GET_FILTERSBARS_CHART, \r\n payload: data \r\n });\r\n \r\n setData(data)\r\n setAcquirerSelectedValue(0.0)\r\n setSystemSelectedValue(0.0)\r\n };\r\n \r\n return (\r\n \r\n \r\n \r\n Período\r\n setStartDate(date)}\r\n onSelectedEndDate={date => setFinalDate(date)}\r\n register={register}\r\n maximumDays={40}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n onSubmit(getValues())}\r\n >\r\n FILTRAR\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default FiltersBars;\r\n","import Divider from 'components/Grid/Divider';\r\nimport React from 'react'\r\n\r\n\r\nimport FiltersBars from '../../Hooks/index'\r\n\r\nconst ConciliationBarFiltros = () => {\r\n \r\n return (\r\n <>\r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default ConciliationBarFiltros;\r\n","import styled, { css } from 'styled-components';\r\n\r\nexport const StyledProgressBar = styled.div`\r\n width: 0;\r\n overflow: hidden;\r\n background-color: ${props => props.color};\r\n height: 6px;\r\n border-radius: 10px;\r\n transition: all 1s ease-in-out;\r\n\r\n ${props =>\r\n props.reverse &&\r\n css`\r\n float: right;\r\n `}\r\n\r\n ${props =>\r\n props.percent &&\r\n css`\r\n width: ${props.percent}%;\r\n `}\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport { StyledProgressBar } from './styles';\r\n\r\nexport default function ProgressBar({ percent, reverse, color, children }) {\r\n return (\r\n <>\r\n \r\n {children}\r\n \r\n \r\n );\r\n}\r\n\r\nProgressBar.propTypes = {\r\n percent: PropTypes.number,\r\n reverse: PropTypes.bool,\r\n color: PropTypes.string,\r\n children: PropTypes.node,\r\n};\r\n\r\nProgressBar.defaultProps = {\r\n children: <>,\r\n};\r\n\r\nProgressBar.defaultProps = {\r\n percent: 0,\r\n reverse: false,\r\n color: '#c5b9d2',\r\n};\r\n","\r\nimport ProgressBar from 'components/Forms/ProgressBar';\r\nimport Card from 'components/Grid/Card';\r\nimport Col from 'components/Grid/Col';\r\nimport Container from 'components/Grid/Container';\r\nimport Row from 'components/Grid/Row';\r\nimport Text from 'components/Typografy/Text';\r\nimport ConciliationContext from 'pages/Conciliation/ConciliationContext';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useContext, useEffect, useState } from 'react';\r\n\r\nexport default function ConciliationBar({ filledValue, totalValue, reverse, name }) {\r\n\r\n\r\n const [barColor, setBarColor] = useState(false);\r\n const percent = (filledValue / totalValue) * 100;\r\n const justifyContent = reverse ? 'flex-end' : 'flex-start';\r\n\r\n const { acquirerSelectedValue, systemSelectedValue } = useContext(\r\n ConciliationContext,\r\n );\r\n \r\n\r\n useEffect(() => { \r\n if (\r\n systemSelectedValue > 0 &&\r\n acquirerSelectedValue > 0 &&\r\n acquirerSelectedValue === systemSelectedValue\r\n ) {\r\n setBarColor({\r\n barColor: '#cee7ff',\r\n filledBarColor: '#5AB0FF',\r\n });\r\n } else {\r\n setBarColor({\r\n barColor: '#c5b9d2',\r\n filledBarColor: '#5B2E90',\r\n });\r\n \r\n }\r\n }, [acquirerSelectedValue, systemSelectedValue]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {name}\r\n : R$\r\n {' '}\r\n {filledValue}\r\n {' '}\r\n de R$\r\n {' '}\r\n {totalValue}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nConciliationBar.propTypes = {\r\n filledValue: PropTypes.number.isRequired,\r\n totalValue: PropTypes.number.isRequired,\r\n reverse: PropTypes.bool,\r\n name: PropTypes.string,\r\n};\r\n\r\nConciliationBar.defaultProps = {\r\n reverse: false,\r\n name: ''\r\n};\r\n","import styled from 'styled-components';\r\n\r\n\r\nexport const IconStyledComponent = styled.div`\r\n display: inline-block;\r\n width: ${ props => props.width };\r\n height: ${ props => props.height };\r\n transition: background 0.25s;\r\n \r\n background: ${ props => props.color };\r\n \r\n mask-image: url(${ props => props.icon });\r\n mask-repeat: no-repeat;\r\n mask-position: 0 0;\r\n mask-size: contain;\r\n \r\n &:hover, &:focus {\r\n background: ${ props => props.hoverColor };\r\n }\r\n`;","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport {withTheme} from 'styled-components';\r\nimport theme from 'styles/theme';\r\n\r\nimport {IconStyledComponent} from './style';\r\n\r\nconst Icon = ({\r\n color,\r\n icon,\r\n hoverColor,\r\n width,\r\n height\r\n}) => {\r\n return (\r\n \r\n \r\n );\r\n};\r\n\r\nIcon.propTypes = {\r\n icon : PropTypes.string.isRequired,\r\n color : PropTypes.string,\r\n hoverColor: PropTypes.string,\r\n width : PropTypes.string,\r\n height : PropTypes.string\r\n};\r\n\r\nIcon.defaultProps = {\r\n color : theme.colors.gray,\r\n hoverColor: theme.colors.gray,\r\n width : \"100%\",\r\n height : \"100%\"\r\n};\r\n\r\nexport default withTheme(Icon);","import {createContext} from 'react';\r\n\r\n\r\nconst ModalContext = createContext();\r\n\r\nexport default ModalContext;\r\n","import styled, {keyframes} from 'styled-components';\r\nimport theme from 'styles/theme';\r\n\r\n\r\nexport const OverlayStyledComponent = styled.div`\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n background: rgba(0, 0, 0, 0.2);\r\n`;\r\n\r\nexport const ModalStyledComponent = styled.div`\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n padding: 20px;\r\n \r\n background: #FFFFFF;\r\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);\r\n border-radius: 4px;\r\n \r\n width: ${ props => props.width };\r\n height: ${ props => props.height };\r\n`;\r\n\r\nexport const CloseButtonComponent = styled.div`\r\n position:absolute;\r\n top: 20px;\r\n right: 20px;\r\n width: 15px;\r\n height: 15px;\r\n cursor: pointer;\r\n`;\r\n\r\nexport const LoadOverlayStyledComponent = styled.div`\r\n width: 100%;\r\n height: 100%;\r\n \r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n\r\n background-color: rgba(255, 255, 255, 0.95);\r\n border-radius: 4px;\r\n}`;\r\n\r\nexport const LoadBlockStyledComponent = styled.div`\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n text-align: center;\r\n \r\n width: 100px;\r\n height: 60px;\r\n \r\n`;\r\n\r\nconst keyFramesLoading = keyframes`{\r\n 0% {\r\n transform: rotate(0deg);\r\n }\r\n 100% {\r\n transform: rotate(360deg);\r\n }\r\n`;\r\n\r\nexport const LoadStyledComponent = styled.div`\r\n position: relative;\r\n width: 30px;\r\n height: 30px;\r\n margin: 0 auto;\r\n \r\n & div {\r\n box-sizing: border-box;\r\n display: block;\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n border: 4px solid #fff;\r\n \r\n border-radius: 100%;\r\n \r\n animation: ${ keyFramesLoading } 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\r\n border-color: ${ theme.colors.lightBlue } transparent transparent transparent;\r\n }\r\n & div:nth-child(1) {\r\n animation-delay: -0.45s;\r\n }\r\n & div:nth-child(2) {\r\n animation-delay: -0.30s;\r\n }\r\n & div:nth-child(3) {\r\n animation-delay: -0.15s;\r\n }\r\n`;\r\n","import closeButtonIcon from 'assets/icons/close-button.svg';\r\nimport Container from 'components/Grid/Container';\r\nimport Icon from 'components/Typografy/Icon';\r\nimport Text from 'components/Typografy/Text';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { withTheme } from 'styled-components';\r\nimport theme from 'styles/theme';\r\n\r\nimport ModalContext from './context';\r\nimport * as Styled from './styles';\r\n\r\nconst Modal = ({\r\n onCloseCallback,\r\n children,\r\n isVisible,\r\n isLoading,\r\n showCloseButton,\r\n width,\r\n height,\r\n}) => {\r\n return ReactDOM.createPortal(\r\n isVisible ? (\r\n \r\n \r\n \r\n \r\n {children}\r\n {isLoading && }\r\n \r\n {showCloseButton ? (\r\n \r\n \r\n \r\n ) : null}\r\n \r\n \r\n \r\n ) : null,\r\n document.querySelector('#modal'),\r\n );\r\n};\r\n\r\nModal.propTypes = {\r\n showCloseButton: PropTypes.bool,\r\n onCloseCallback: PropTypes.func,\r\n children: PropTypes.any,\r\n isVisible: PropTypes.bool.isRequired,\r\n width: PropTypes.string,\r\n height: PropTypes.string,\r\n isLoading: PropTypes.bool.isRequired,\r\n};\r\n\r\nModal.defaultProps = {\r\n isVisible: false,\r\n showCloseButton: true,\r\n onCloseCallback: () => null,\r\n width: '300px',\r\n height: '233px',\r\n children: undefined\r\n};\r\n\r\nconst LoadingOverlay = ({ text }) => {\r\n return (\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n {`${text}...`}\r\n \r\n \r\n );\r\n};\r\n\r\nLoadingOverlay.propTypes = {\r\n text: PropTypes.string.isRequired,\r\n};\r\n\r\nexport default withTheme(Modal);\r\n","import styled from 'styled-components';\r\n\r\n\r\nexport const StyledParagraph = styled.p`\r\n padding: ${ props => props.padding };\r\n \r\n text-align: ${ props => props.textAlign };\r\n text-justify: inter-character;\r\n \r\n font-size: ${ props => props.fontSize };\r\n font-weight: ${ props => props.fontWeight };\r\n color: ${ props => props.color };\r\n cursor: ${ props => props.cursor };\r\n width: auto;\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport theme from 'styles/theme';\r\n\r\nimport {StyledParagraph} from './styles';\r\n\r\nconst Paragraph = ({\r\n children,\r\n textAlign,\r\n fontSize,\r\n fontWeight,\r\n color,\r\n cursor,\r\n padding,\r\n onClick\r\n}) => (\r\n \r\n { children }\r\n \r\n);\r\n\r\nParagraph.propTypes = {\r\n children : PropTypes.node.isRequired,\r\n fontWeight: PropTypes.string,\r\n fontSize : PropTypes.string,\r\n color : PropTypes.string,\r\n cursor : PropTypes.string,\r\n onClick : PropTypes.func,\r\n textAlign : PropTypes.string,\r\n padding : PropTypes.string\r\n};\r\n\r\nParagraph.defaultProps = {\r\n fontWeight: '300',\r\n fontSize : '12px',\r\n cursor : 'initial',\r\n color : theme.colors.principal,\r\n textAlign : 'justify',\r\n padding : '10px',\r\n onClick : () => {}\r\n};\r\n\r\nexport default Paragraph;\r\n","\r\nimport alertCautionIcon from 'assets/icons/alert-caution.svg';\r\nimport alertSuccessIcon from 'assets/icons/alert-check.svg';\r\nimport Col from 'components/Grid/Col';\r\nimport Container from 'components/Grid/Container';\r\nimport Row from 'components/Grid/Row';\r\nimport Modal from 'components/Modals/Modal';\r\nimport Icon from 'components/Typografy/Icon';\r\nimport Paragraph from 'components/Typografy/Paragraph';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport { withTheme } from 'styled-components';\r\nimport theme from 'styles/theme';\r\n\r\nconst Alert = ({\r\n message,\r\n children,\r\n onCloseCallback,\r\n isSuccess,\r\n isLoading,\r\n}) => {\r\n return (\r\n \r\n \r\n \r\n \r\n {isSuccess ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {message}\r\n \r\n \r\n \r\n {children}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nAlert.propTypes = {\r\n message : PropTypes.string.isRequired,\r\n children : PropTypes.node.isRequired,\r\n onCloseCallback: PropTypes.func,\r\n isSuccess : PropTypes.bool.isRequired,\r\n isLoading : PropTypes.bool.isRequired,\r\n};\r\n\r\nAlert.defaultProps = {\r\n onCloseCallback: () => null,\r\n};\r\n\r\nexport default withTheme(Alert);\r\n","import {createBrowserHistory} from 'history';\r\n\r\n\r\nexport default createBrowserHistory();\r\n","import axios from 'axios';\r\nimport history from 'services/history-services';\r\n\r\nconst queryString = window.location.search;\r\nconst urlParams = new URLSearchParams(queryString);\r\n\r\n// #region Validações Anteriores a 14/04/2023 - MODASP-18826\r\n// const hashDux =\r\n// 'eyJJZExpbnhPcGVyYWNpb25hbCI6MSwiSWRMaW54QWRtaW5pc3RyYXRpdm8iOjQsIklkR3BlY29uIjo0LCJJZFVzdWFyaW8iOjc1LCJOb21lVXN1YXJpbyI6ImRlc2Vudi5mcmFucXVlYWRvIiwiQ29ubmVjdGlvblN0cmluZyI6IkRhdGEgU291cmNlPWEtc3J2MTExXFxzcWwyMDE3OyBJbml0aWFsIENhdGFsb2c9REVWLVVYLUFwcC0zLTExOyBQZXJzaXN0IFNlY3VyaXR5IEluZm89VHJ1ZTsgVHJ1c3RlZF9Db25uZWN0aW9uPVRydWU7In0=';\r\n// const uxHash =\r\n// urlParams.get('ux') ?? localStorage.getItem('@everest/HASH') ?? hashDux;\r\n// const serviceUrl = urlParams.get('url');// ?? localStorage.getItem('@everest/URL');\r\n\r\n// if (uxHash === null || uxHash === 'null') {\r\n// history.push('/restrict');\r\n// }\r\n\r\n// const getEnvironmentUrl = () => {\r\n// if(!!serviceUrl) return serviceUrl;\r\n\r\n// const { host } = window.location;\r\n// switch (host) {\r\n// case 'localhost:3000':\r\n// return 'http://localhost:1234/Linx.Manager';\r\n// case 'devlinxeverest.z13.web.core.windows.net':\r\n// return 'https://dev-linx-manager.linx.com.br';\r\n// case 'qalinxeverest.z13.web.core.windows.net':\r\n// return 'https://qa-linx-manager.linx.com.br';\r\n// case '172.24.228.81:85': // Ambiente dux boticário\r\n// return 'http://172.24.228.81:80';\r\n// default:\r\n// return serviceUrl;\r\n// }\r\n// };\r\n\r\n// const hashDux = 'eyJJZExpbnhPcGVyYWNpb25hbCI6MSwiSWRMaW54QWRtaW5pc3RyYXRpdm8iOjEsIklkR3BlY29uIjo0LCJJZFVzdWFyaW8iOjc1LCJOb21lVXN1YXJpbyI6IkRldmVsb3BlciIsIkNvbm5lY3Rpb25TdHJpbmciOiJEYXRhIFNvdXJjZT1hLXNydjExMVxcc3FsMjAxNztJbml0aWFsIENhdGFsb2c9UUEtVVgtQXBwLTMtMTI7SW50ZWdyYXRlZCBTZWN1cml0eT1TU1BJOyJ9=';\r\n// #endregion\r\n\r\nconst neoxUrl = urlParams.get('neox') ?? localStorage.getItem('@everest/NeoxUrl') ?? 'http://localhost:12336/';\r\nconst uxHash = urlParams.get('ux') ?? localStorage.getItem('@everest/UxHash') ?? 'eyJJZExpbnhPcGVyYWNpb25hbCI6MSwiSWRMaW54QWRtaW5pc3RyYXRpdm8iOjEsIklkR3BlY29uIjo0LCJJZFVzdWFyaW8iOjc1LCJOb21lVXN1YXJpbyI6IkRldmVsb3BlciIsIkNvbm5lY3Rpb25TdHJpbmciOiJEYXRhIFNvdXJjZT1hLXNydjExMVxcc3FsMjAxNztJbml0aWFsIENhdGFsb2c9UUEtVVgtQXBwLTMtMTI7SW50ZWdyYXRlZCBTZWN1cml0eT1TU1BJOyJ9';\r\nconst serviceManager = urlParams.get('url') ?? localStorage.getItem('@everest/UrlManager') ?? 'http://localhost:1234/Linx.Manager';\r\n\r\nconst domains = [\r\n neoxUrl.charAt(neoxUrl.length - 1) === '/' ? neoxUrl.slice(0, -1) : neoxUrl\r\n];\r\n\r\nif (uxHash === null || uxHash === 'null') {\r\n history.push('/restrict');\r\n}\r\n\r\nconst getEnvironmentUrl = () => {\r\n return serviceManager;\r\n};\r\n\r\nconst api = axios.create({\r\n baseURL: getEnvironmentUrl(),\r\n});\r\napi.defaults.headers[\"Access-Control-Allow-Origin\"] = window.location.origin;\r\n\r\napi.defaults.headers.Authorization = `Bearer ${uxHash}`;\r\napi.interceptors.response.use(\r\n response => response,\r\n error => {\r\n if (error.response?.status === 401) {\r\n history.push('/restrict');\r\n }\r\n\r\n return Promise.reject(error);\r\n },\r\n);\r\n\r\nlocalStorage.setItem('@everest/UxHash', uxHash);\r\nlocalStorage.setItem('@everest/UrlManager', getEnvironmentUrl());\r\nlocalStorage.setItem('@everest/NeoxUrl', neoxUrl);\r\n\r\nwindow.addEventListener(\"message\", getOriginLocalStorage, false);\r\n\r\nfunction getOriginLocalStorage(event) {\r\n if (!domains.includes(event.origin))\r\n return;\r\n\r\n Object.entries(event.data).forEach(\r\n function setOriginLocalStorage(v){ \r\n localStorage.setItem(v[0], v[1]);\r\n });\r\n}\r\n\r\nexport default api;\r\n","import * as qs from 'qs';\r\nimport api from 'services/api';\r\n\r\n\r\nconst routeV1 = 'conciliation';\r\nconst routeV2 = 'api/v2/conciliation';\r\n\r\n\r\nconst routes = {\r\n cardBrands : `${routeV2}/card-brand`,\r\n acquirers : `${routeV2}/acquirer`,\r\n subsidiaries : `${routeV2}/subsidiary`,\r\n acquirerUnconcealedSales : `${routeV2}/acquirer/sales/unconcealed`,\r\n cardReceiveUnconcealedSales: `${routeV2}/card-receive/sales/unconcealed`,\r\n chartResume : `${routeV2}/chart-resume`,\r\n \r\n conciliate : `${routeV1}/conciliate`,\r\n};\r\n\r\n\r\n\r\n\r\nexport async function getCardBrands() {\r\n return api.get(routes.cardBrands).then(res => {\r\n return res.data.payload;\r\n });\r\n}\r\n\r\nexport async function getAcquirers() {\r\n return api.get(routes.acquirers).then(res => {\r\n return res.data.payload;\r\n });\r\n}\r\n\r\nexport async function getSubsidiaries() {\r\n return api.get(routes.subsidiaries).then(res => {\r\n return res.data.payload;\r\n });\r\n}\r\n\r\nexport async function getAcquirerUnconcealedSales({\r\n acquirers = [],\r\n cardBrands = [],\r\n subsidiaries = [],\r\n divergencesOnly = false,\r\n initialDate = null,\r\n finalDate = null,\r\n pageIndex = null,\r\n pageSize = 10\r\n}) {\r\n const filters = {\r\n acquirers,\r\n cardBrands,\r\n subsidiaries,\r\n divergencesOnly,\r\n initialDate,\r\n finalDate,\r\n pageIndex, \r\n pageSize \r\n };\r\n\r\n return api.get(routes.acquirerUnconcealedSales, {\r\n params: filters,\r\n paramsSerializer: params => {\r\n return qs.stringify(params)\r\n }\r\n }).then(res => {\r\n return {\r\n records: res.data.payload,\r\n pager: res.data.pager\r\n };\r\n });\r\n}\r\n\r\n\r\n\r\n\r\nexport async function getCardReceiveUnconcealedSales({\r\n acquirers = [],\r\n cardBrands = [],\r\n subsidiaries = [],\r\n divergencesOnly = false,\r\n initialDate = null,\r\n finalDate = null,\r\n pageIndex = 1,\r\n pageSize = 10\r\n}) {\r\n const filters = {\r\n acquirers,\r\n cardBrands,\r\n subsidiaries,\r\n divergencesOnly,\r\n initialDate,\r\n finalDate,\r\n pageIndex,\r\n pageSize\r\n };\r\n \r\n return api.get(routes.cardReceiveUnconcealedSales, {\r\n params: filters,\r\n paramsSerializer: params => {\r\n return qs.stringify(params)\r\n }\r\n }).then(res => {\r\n return {\r\n records: res.data.payload,\r\n pager: res.data.pager\r\n };\r\n });\r\n}\r\n\r\nexport async function getChartResume({\r\n acquirers = [],\r\n cardBrands = [],\r\n subsidiaries = [],\r\n divergencesOnly = false,\r\n initialDate = null,\r\n finalDate = null,\r\n}){\r\n const filters = {\r\n acquirers,\r\n cardBrands,\r\n subsidiaries,\r\n divergencesOnly,\r\n initialDate,\r\n finalDate,\r\n };\r\n \r\n return api.get(routes.chartResume, {\r\n params: filters,\r\n paramsSerializer: params => {\r\n return qs.stringify(params)\r\n }\r\n }).then(res => {\r\n return res.data.payload;\r\n });\r\n}\r\n\r\n\r\nexport async function conciliate(data) {\r\n return api.post(routes.conciliate, data).then(res => {\r\n return res.data;\r\n });\r\n}\r\n","/* eslint-disable consistent-return */\r\n/* eslint-disable no-unused-vars */\r\nimport Button from 'components/Forms/Button/index';\r\nimport Alert from 'components/Modals/Alert';\r\nimport React, {useState, useContext, useEffect} from 'react';\r\nimport {useDispatch} from 'react-redux'\r\nimport * as ConciliationServices from 'services/conciliationServices';\r\nimport {Types as FiltersBarsCards} from 'store/ducks/Conciliation/FiltersBars';\r\nimport {Types as FiltersChart} from 'store/ducks/Conciliation/FiltersChart';\r\nimport {withTheme} from 'styled-components';\r\nimport theme from 'styles/theme';\r\n\r\nimport ConciliationContext from '../../ConciliationContext';\r\n\r\nconst ConciliateButton = () => {\r\n\r\n\r\n const dispatch = useDispatch();\r\n\r\n const [alertState, setAlertState] = useState({ visible: false, message: '', isSuccess: false, isLoading: true });\r\n \r\n const {\r\n acquirerSalesIds, \r\n cardReceiveIds, \r\n data, \r\n setSelectedCards,\r\n setAcquirerSalesIds, \r\n setAcquirerSelectedValue,\r\n setSelectedCardsReceive,\r\n setCardReceiveIds,\r\n setSystemSelectedValue\r\n \r\n } = useContext(ConciliationContext);\r\n\r\n const dataIds = {\r\n acquirerSalesIds,\r\n cardReceiveIds\r\n }\r\n\r\n \r\n async function handleGetConciliation() {\r\n\r\n setAlertState({ visible: true, message: '', isSuccess: false, isLoading: true });\r\n\r\n if (acquirerSalesIds === undefined || cardReceiveIds === undefined) return 0;\r\n\r\n if (acquirerSalesIds.length === 0 || cardReceiveIds.length === 0) {\r\n return setAlertState({\r\n visible : true,\r\n message : 'Os cards não estão selecionado, por favor selecione os cards para iniciar o processo de conciliação.',\r\n isSuccess: false,\r\n isLoading: false\r\n });\r\n }\r\n\r\n const conciliate = await ConciliationServices.conciliate(dataIds);\r\n\r\n\r\n if (!conciliate.IsError) {\r\n \r\n setAlertState({\r\n visible : true,\r\n message : 'Conciliação efetuada com sucesso',\r\n isSuccess: true,\r\n isLoading: false\r\n }); \r\n\r\n dispatch({\r\n type: FiltersBarsCards.GET_FILTERSBARS,\r\n payload: data\r\n });\r\n\r\n dispatch({ \r\n type: FiltersChart.GET_FILTERSBARS_CHART, \r\n payload: data \r\n });\r\n\r\n\r\n const value = 0;\r\n setSelectedCards([]);\r\n setAcquirerSalesIds([])\r\n setAcquirerSelectedValue(value);\r\n setSelectedCardsReceive([]);\r\n setCardReceiveIds([]);\r\n setSystemSelectedValue(value);\r\n\r\n } else {\r\n setAlertState({\r\n visible : true,\r\n message : `Houve um erro no processamento, Tente novamente! \\n${conciliate.Message}`,\r\n isSuccess: false,\r\n isLoading: false\r\n });\r\n }\r\n\r\n }\r\n \r\n function resetAlertState() {\r\n setAlertState({ visible: false, message: '', isSuccess: false, isLoading: true });\r\n }\r\n \r\n function showAlert() {\r\n \r\n return (\r\n \r\n );\r\n };\r\n \r\n return (\r\n <>\r\n { alertState.visible && showAlert() }\r\n \r\n \r\n CONCILIAR\r\n \r\n \r\n );\r\n};\r\n\r\nexport default withTheme(ConciliateButton);\r\n","import Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport ConciliationContext from 'pages/Conciliation/ConciliationContext';\r\nimport React from 'react';\r\nimport {useSelector} from 'react-redux';\r\n\r\nimport ConciliationBar from '../ConciliationBar/index';\r\nimport ConciliateButton from '../ConciliationButton/index';\r\n\r\nconst ConciliationBarsCards = () => {\r\n\r\n const { acquirerSelectedValue, systemSelectedValue} = React.useContext(ConciliationContext);\r\n\r\n const fileSumValue = useSelector(state => state.FiltersBarsCardsReducer);\r\n const systemSumValue = useSelector(state => state.FiltersBarsCardsReducer);\r\n\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default ConciliationBarsCards\r\n","import styled from 'styled-components';\r\n\r\nconst TagFilterStyled = styled.div`\r\n display: flex;\r\n margin: 0 5px;\r\n color: #ffffff;\r\n background-color: #3ea2ff;\r\n position: relative;\r\n padding: 0 0.5rem;\r\n padding-left: 2rem;\r\n border-radius: 3px;\r\n justify-content: flex-start;\r\n align-items: center;\r\n\r\n & > button {\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n position: absolute;\r\n top: -3px;\r\n left: 0;\r\n padding: 0 0.7rem;\r\n color: #10718f;\r\n background-color: transparent;\r\n border: 0;\r\n -webkit-appearance: none;\r\n cursor: pointer;\r\n max-height: 100%;\r\n\r\n &:hover {\r\n top: -4px;\r\n transform: scale(1.3);\r\n }\r\n\r\n span {\r\n display: flex;\r\n font-size: 25px;\r\n font-weight: bold;\r\n }\r\n }\r\n\r\n & > p {\r\n display: flex;\r\n display: block;\r\n font-size: 13px;\r\n }\r\n`;\r\n\r\nexport default TagFilterStyled;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport TagFilterStyled from './styles';\r\n\r\nconst TagFilter = ({\r\n elementKey,\r\n element,\r\n tagKey,\r\n tagValue,\r\n onRemoveFilter,\r\n}) => (\r\n \r\n onRemoveFilter(elementKey, element)}\r\n >\r\n ×\r\n \r\n

\r\n {tagKey}\r\n :\r\n {' '}\r\n {tagValue}\r\n

\r\n
\r\n);\r\n\r\nTagFilter.propTypes = {\r\n tagKey: PropTypes.string,\r\n tagValue: PropTypes.string,\r\n onRemoveFilter: PropTypes.func,\r\n elementKey: PropTypes.number,\r\n element: PropTypes.object,\r\n};\r\n\r\nTagFilter.defaultProps = {\r\n elementKey:0,\r\n element:{},\r\n tagKey: '',\r\n tagValue: '',\r\n onRemoveFilter: (elementKey, element) => elementKey + element\r\n};\r\n\r\nexport default TagFilter;\r\n","import styled from 'styled-components';\r\n\r\n\r\nconst ChartFiltersStyled = styled.div`\r\n \r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-start;\r\n\r\n`;\r\n\r\nexport default ChartFiltersStyled;\r\n","/* eslint-disable react/prop-types */\r\nimport TagFilter from 'components/Forms/TagFilter/index';\r\nimport ChartFiltersStyled from 'pages/Conciliation/components/ConciliationChart/ChartFilters/styles';\r\nimport React from 'react';\r\n\r\nconst ChartFilters = ({listFilters, onRemoveFilter}) => (\r\n\r\n \r\n \r\n {listFilters && (\r\n \r\n)} \r\n \r\n);\r\n\r\n\r\n\r\nexport default ChartFilters;\r\n","import Container from 'components/Grid/Container/index';\r\nimport React from 'react'\r\nimport Skeleton,{SkeletonTheme} from \"react-loading-skeleton\";\r\n\r\n const SkeletonConciliationChart = () => (\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n \r\n
\r\n \r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n);\r\n\r\nexport default SkeletonConciliationChart;\r\n","import SkeletonConciliationChart from 'components/Skeleton/SkeletonChartConciliation'\r\nimport React from 'react';\r\n\r\nconst ConciliationChartLoader = () => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default ConciliationChartLoader;","import styled from 'styled-components';\r\n\r\nconst ConciliationChartStyled = styled.div`\r\n display: flex; \r\n flex: 0 0 100%; \r\n flex-wrap: wrap;\r\n margin: 0 auto;\r\n height: 100%;\r\n width:100%;\r\n\r\n@media (min-width: 1000px) {\r\n width:100%;\r\n max-width:1000px;\r\n margin:0 auto;\r\n}\r\n\r\n@media (min-width: 1200px) {\r\n width:100%;\r\n max-width:1200px;\r\n margin:0 auto;\r\n}\r\n\r\n@media (min-width: 1300px) {\r\n width:100%;\r\n max-width:1300px;\r\n margin:0 auto;\r\n}\r\n\r\n@media (min-width: 1400px) {\r\n width:100%;\r\n max-width:1400px;\r\n margin:0 auto;\r\n}\r\n\r\n@media (min-width: 1500px) {\r\n width:100%;\r\n max-width:1500px;\r\n margin:0 auto;\r\n}\r\n\r\n@media (min-width: 1600px) {\r\n width:100%;\r\n max-width:1600px;\r\n margin:0 auto;\r\n}\r\n\r\n@media (min-width: 1700px) {\r\n width:100%;\r\n max-width:1700px;\r\n margin:0 auto;\r\n}\r\n\r\n@media (min-width: 1800px) {\r\n width:100%;\r\n max-width:1800px;\r\n margin:0 auto;\r\n}\r\n\r\n\r\n \r\n & > div.chartFiltersBox {\r\n display: flex;\r\n flex: 0 0 100%; \r\n height: 30px;\r\n margin-bottom: 20px;\r\n }\r\n \r\n`;\r\n\r\nexport const ConciliationChartTooltipStyled = styled.div`\r\n width: 400px;\r\n height: 137px;\r\n \r\n background-color: #FFF;\r\n border: solid 1px #CCCCCC;\r\n border-radius: 4px;\r\n border-color: #cccccc;\r\n padding: 20px;\r\n \r\n \r\n\r\n overflow-y: scroll;\r\n overflow-x: hidden;\r\n \r\n /* firefox works */\r\n scrollbar-color: #E0E0E0 #F9F9F9;\r\n scrollbar-width: thin;\r\n \r\n &::-webkit-scrollbar {\r\n width: 3.85px;\r\n }\r\n &::-webkit-scrollbar-track {\r\n background: #f9f9f9;\r\n }\r\n &::-webkit-scrollbar-thumb {\r\n background: #e0e0e0;\r\n border-radius: 4px;\r\n }\r\n`;\r\n\r\n\r\nexport default ConciliationChartStyled;\r\n","/* eslint-disable react/prop-types */\r\n/* eslint-disable no-unused-vars */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport mastercard from 'assets/icons/cards/mastercard.svg';\r\nimport visa from 'assets/icons/cards/visa.svg';\r\nimport Text from 'components/Typografy/Text';\r\nimport React, { useEffect, useState } from 'react';\r\nimport { Arrow } from 'react-laag';\r\nimport theme from 'styles/theme';\r\n\r\nimport {ConciliationChartTooltipStyled} from './styles';\r\n\r\n\r\nexport const ConciliationChartTooltip = ({ active, payload, label }) => {\r\n const [isLoading, setIsLoading] = useState(true);\r\n \r\n const data = payload && payload[0]?.payload;\r\n \r\n useEffect(() => {\r\n setTimeout(() => {\r\n setIsLoading(!isLoading);\r\n }, 100);\r\n }, []);\r\n\r\n const renderList = () => {\r\n return (\r\n \r\n \r\n \r\n {payload === null ? 0 : data?.netValueArchive?.toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })}\r\n \r\n \r\n \r\n \r\n {payload === null ? 0 : data?.netValueSystem?.toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })}\r\n \r\n \r\n \r\n \r\n {payload === null ? 0 : (data?.netValueArchive - data?.netValueSystem).toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })}\r\n \r\n \r\n \r\n \r\n {payload === null ? 0 : data?.conciliated?.toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })}\r\n \r\n \r\n \r\n );\r\n };\r\n\r\n return isLoading === true ? (\r\n
\r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {renderList()}\r\n
\r\n \r\n Valor Arquivo\r\n \r\n \r\n \r\n Valor Sistema\r\n \r\n \r\n \r\n Diferença\r\n \r\n \r\n \r\n Conciliado\r\n \r\n
\r\n
\r\n );\r\n};\r\n","/* eslint-disable eqeqeq */\r\n/* eslint-disable no-unused-vars */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport Text from 'components/Typografy/Text/index';\r\nimport ChartFilters from 'pages/Conciliation/components/ConciliationChart/ChartFilters/index';\r\nimport React, {useEffect, useState} from 'react';\r\nimport {useDispatch, useSelector} from 'react-redux';\r\nimport * as Recharts from 'recharts';\r\nimport {Types as FilterBars} from 'store/ducks/Conciliation/FiltersBars';\r\nimport {Types as FiltersChart} from 'store/ducks/Conciliation/FiltersChart';\r\nimport {withTheme} from 'styled-components';\r\nimport theme from 'styles/theme';\r\nimport * as UtilDate from 'utils/util-date'\r\n\r\n\r\nimport ConciliationChartLoader from './loader';\r\nimport ConciliationChartStyled from './styles';\r\nimport {ConciliationChartTooltip} from './tooltip';\r\n\r\nconst ConciliationChart = () => {\r\n \r\n const [chartListFilters, setChartListFilters] = useState('');\r\n const [activeBarIndex, setActiveBarIndex] = useState(undefined);\r\n \r\n const dispatch = useDispatch();\r\n const chartData = useSelector(state => state.FiltersChartReducer);\r\n \r\n const chartBars = chartData.records ?? [];\r\n \r\n const initialDay = new Date().getDate();\r\n const initialMonth = new Date().getMonth();\r\n const initialYear = new Date().getFullYear();\r\n \r\n const finalDay = new Date().getDate();\r\n const finalMonth = new Date().getMonth();\r\n const finalYear = new Date().getFullYear();\r\n \r\n const initialDate = `${initialYear}-${initialMonth }-${initialDay}`;\r\n const finalDate = `${finalYear}-${finalMonth + 1}-${finalDay}`;\r\n \r\n const data = {\r\n initialDate,\r\n finalDate,\r\n cardBrands : [],\r\n acquirers : [],\r\n subsidiaries: []\r\n };\r\n \r\n useEffect(() => {\r\n dispatch({ type: FilterBars.GET_FILTERSBARS, payload: data });\r\n dispatch({ type: FiltersChart.GET_FILTERSBARS_CHART, payload: data });\r\n }, []);\r\n \r\n \r\n const onBarClick = (e, i) => {\r\n setChartListFilters(e.payload);\r\n setActiveBarIndex(i);\r\n };\r\n \r\n const onRemoveChartFilter = i => {\r\n delete chartListFilters[i];\r\n \r\n setChartListFilters('');\r\n setActiveBarIndex(undefined);\r\n };\r\n \r\n const colorRulesToConciliate = (entry) => {\r\n if (entry.conciliated == entry.value){\r\n return theme.colors.lightBlue;\r\n }\r\n \r\n if (entry.netValueSystem > entry.netValueArchive)\r\n return theme.colors.red;\r\n \r\n if (entry.netValueSystem <= entry.netValueArchive)\r\n return \"#F8E1D1\";\r\n \r\n return theme.colors.black20;\r\n };\r\n \r\n const colorRulesConciliated = (entry) => {\r\n if (entry.conciliated == entry.value)\r\n return theme.colors.lightBlue;\r\n \r\n if (entry.netValueSystem > entry.netValueArchive)\r\n return theme.colors.red;\r\n \r\n if (entry.netValueSystem <= entry.netValueArchive)\r\n return theme.colors.orange;\r\n \r\n return theme.colors.black20;\r\n };\r\n \r\n if (chartBars === null || chartBars.length <= 0) {\r\n return (\r\n <>\r\n { chartData.loading ? () : (\r\n <>\r\n
\r\n Resumo\r\n
\r\n \r\n )}\r\n \r\n );\r\n }\r\n \r\n return (\r\n <>\r\n \r\n
\r\n \r\n
\r\n {chartData.isLoading ? () : (\r\n \r\n \r\n \r\n }\r\n />\r\n \r\n }\r\n interval={0}\r\n />\r\n \r\n {chartBars && chartBars.map((entry, index) => (\r\n \r\n ))}\r\n \r\n \r\n \r\n {chartBars && chartBars.map((entry, index) => (\r\n \r\n ))}\r\n \r\n \r\n \r\n )}\r\n
\r\n Legenda:\r\n \r\n \r\n Todas as conciliações foram lançadas nesse dia\r\n \r\n \r\n \r\n Existem conciliações pendentes\r\n \r\n \r\n \r\n Existem conciliações pendentes, porém o valor total no arquivo está menor do que o valor total do sistema\r\n\r\n \r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nconst XAxisLabel = values => {\r\n const { x, y, payload } = values;\r\n \r\n const data = payload.value;\r\n \r\n const day = new Date(data).getDate();\r\n const month = UtilDate.getShortMonthName(new Date(data));\r\n \r\n return (\r\n \r\n \r\n {day}\r\n {month}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default withTheme(ConciliationChart) ;\r\n","/* eslint-disable no-unused-vars */\r\nimport Divider from 'components/Grid/Divider';\r\nimport Row from 'components/Grid/Row';\r\nimport React from 'react';\r\n\r\nimport ConciliationChart from '../ConciliationChart/index';\r\n\r\n\r\n\r\nconst ConciliationGraphic = () => {\r\n const [chartData, setChartData] = React.useState([]);\r\n const [isLoading, setIsLoading] = React.useState(false);\r\n\r\n \r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default ConciliationGraphic\r\n","import Col from 'components/Grid/Col';\r\nimport Divider from 'components/Grid/Divider';\r\nimport Row from 'components/Grid/Row';\r\nimport Text from 'components/Typografy/Text';\r\nimport React from 'react'\r\n\r\n\r\nconst ConciliationTitle = () => {\r\n \r\n return (\r\n <>\r\n \r\n \r\n Conciliação de venda de cartão\r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default ConciliationTitle;\r\n","import ConciliationContext from 'pages/Conciliation/ConciliationContext';\r\nimport React,{useState} from 'react';\r\n\r\nimport Cards from './components/Cards';\r\nimport ConciliationBarFiltros from './components/ConciliationBarFiltros/index';\r\nimport ConciliationBarsCards from './components/ConciliationBarsCards/index';\r\nimport ConciliationGraphic from './components/ConciliationGraphic/index';\r\nimport ConciliationTitle from './components/ConciliationTitle/index';\r\n\r\n\r\nexport default function Conciliation() {\r\n\r\n const initialDay = new Date().getDate();\r\n const initialMonth = new Date().getMonth();\r\n const initialYear = new Date().getFullYear();\r\n\r\n const finalDay = new Date().getDate();\r\n const finalMonth = new Date().getMonth();\r\n const finalYear = new Date().getFullYear();\r\n\r\n const initialDate = `${initialYear}-${initialMonth }-${initialDay}`;\r\n const finalDate = `${finalYear}-${finalMonth + 1}-${finalDay}`;\r\n\r\n const newDate = {\r\n initialDate,\r\n finalDate,\r\n cardBrands : [],\r\n acquirers : [],\r\n subsidiaries: []\r\n }\r\n \r\n const [systemSelectedValue, setSystemSelectedValue] = useState(0.0);\r\n const [acquirerSelectedValue, setAcquirerSelectedValue] = useState(0.0);\r\n const [acquirerSalesIds, setAcquirerSalesIds] = useState([]);\r\n const [cardReceiveIds, setCardReceiveIds] = useState([]);\r\n const [selectedCards, setSelectedCards] = useState([]);\r\n const [selectedCardsReceive, setSelectedCardsReceive] = useState([]);\r\n const [conciliation, setConciliation] = useState([]);\r\n const [data, setData] = useState(newDate);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","import ImageRestrictedAccess from 'assets/images/not-authorized.svg';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\n\r\n\r\nexport const StyledContainer = styled.div`\r\n width: 100%;\r\n height: 100vh;\r\n padding: 100px 30px;\r\n`;\r\n\r\n\r\nexport const StyledContent = styled.div`\r\n max-width: 470px;\r\n margin: 0 auto;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n img {\r\n width: 100%;\r\n max-width: 470px;\r\n }\r\n\r\n p {\r\n margin-top: 40px;\r\n font-style: normal;\r\n font-size: 24px;\r\n line-height: 33px;\r\n text-align: center;\r\n color: #616161;\r\n }\r\n`;\r\n\r\n\r\nconst NotAuthorizedPage = () => {\r\n return (\r\n \r\n \r\n Acesso Restrito\r\n

\r\n Ops! \r\n Parece que você não tem permissão para acessar está página...\r\n

\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default NotAuthorizedPage;","import { createContext } from 'react';\r\n\r\nconst formContext = createContext();\r\n\r\nexport default formContext;\r\n","/* eslint-disable no-unused-vars */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport PropTypes from 'prop-types';\r\nimport React, { useState, useCallback, useEffect } from 'react';\r\n\r\nimport FormContext from './FormContext';\r\n\r\nexport default function Form({ children, onSubmit }) {\r\n const [registeredFields, setRegisteredFields] = useState([]);\r\n\r\n const registerField = useCallback((name, ref) => {\r\n setRegisteredFields(oldRegisteredFields => [\r\n ...oldRegisteredFields,\r\n { name, value: ref },\r\n ]);\r\n });\r\n\r\n const handleSubmit = event => {\r\n event.preventDefault();\r\n const data = {};\r\n registeredFields.forEach(element => {\r\n const { value } = element.value;\r\n if (value) data[element.name] = value;\r\n });\r\n onSubmit(data);\r\n };\r\n\r\n return (\r\n
\r\n \r\n {children}\r\n \r\n
\r\n );\r\n}\r\n\r\nForm.propTypes = {\r\n children: PropTypes.any,\r\n onSubmit: PropTypes.func,\r\n};\r\n\r\nForm.defaultProps = {\r\n onSubmit: () => {},\r\n children: undefined\r\n};\r\n","import styled, { css } from 'styled-components';\r\n\r\nexport const StyledPagination = styled.ul`\r\n display: flex;\r\n list-style: none;\r\n`;\r\n\r\nexport const StyledListItem = styled.a`\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n margin: 0 4px;\r\n font-size: 10px;\r\n height: 35px;\r\n width: 35px;\r\n\r\n ${props =>\r\n props.disable &&\r\n css`\r\n color: #cccccc;\r\n `}\r\n\r\n ${props =>\r\n props.active &&\r\n css`\r\n border-radius: 4px;\r\n border: 1px solid #3ea2ff;\r\n color: #3ea2ff;\r\n `}\r\n`;\r\n","/* eslint-disable react/prop-types */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport PropTypes from 'prop-types';\r\nimport React, { useState, useEffect } from 'react';\r\n\r\nimport { StyledPagination, StyledListItem } from './styles';\r\n\r\nexport default function Pagination({ count, defaultPage, onChange }) {\r\n const [active, setActive] = useState(defaultPage);\r\n\r\n useEffect(() => {\r\n onChange(active);\r\n }, [active]);\r\n\r\n const ItemList = () => {\r\n const items = [];\r\n\r\n for (let currentIndex = 0; currentIndex < 7; currentIndex += 1) {\r\n const number = active + currentIndex;\r\n\r\n items.push(\r\n
  • \r\n setActive(number)}\r\n active={active === number}\r\n >\r\n {number}\r\n \r\n
  • ,\r\n );\r\n\r\n if (number === count) {\r\n break;\r\n }\r\n }\r\n\r\n return items;\r\n };\r\n\r\n return (\r\n \r\n
  • \r\n {\r\n if (active > 1) {\r\n setActive(active - 1);\r\n }\r\n }}\r\n disable={active === 1}\r\n >\r\n Anterior\r\n \r\n
  • \r\n {ItemList()}\r\n
  • \r\n {\r\n if (active !== count) {\r\n setActive(active + 1);\r\n }\r\n }}\r\n disable={active === count}\r\n >\r\n Próximo\r\n \r\n
  • \r\n
    \r\n );\r\n}\r\n\r\nPagination.propTypes = {\r\n count: PropTypes.number.isRequired,\r\n defaultPage: PropTypes.number,\r\n};\r\n\r\nPagination.defaultProps = {\r\n defaultPage: 1,\r\n};\r\n","import styled from 'styled-components';\r\n\r\n\r\nexport const StyledTable = styled.table`\r\n flex: 1;\r\n border-spacing: 0;\r\n box-shadow: 0px 0px 4px 0.1px rgba(0, 0, 0, 0.2);\r\n\r\n tbody > tr > td {\r\n border-bottom: 1px solid #dee2e6;\r\n padding: 15px;\r\n font-size: 13px;\r\n color: ${ props => props.theme.colors.black55 };\r\n max-width: 160px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n }\r\n\r\n thead th {\r\n font-weight: 500;\r\n border-bottom: 1px solid rgba(224, 224, 224, 1);\r\n padding: 15px;\r\n font-size: 13px;\r\n text-align: left;\r\n color: ${ props => props.theme.colors.black20 };\r\n }\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport {StyledTable} from './styles';\r\n\r\n\r\nfunction Table({ \r\n children, \r\n width, \r\n height \r\n}) {\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n}\r\n\r\nTable.propTypes = {\r\n children: PropTypes.any,\r\n width: PropTypes.string,\r\n height: PropTypes.string\r\n};\r\n\r\nTable.defaultProps = {\r\n width: '100%',\r\n height: 'auto',\r\n children: undefined\r\n};\r\n\r\nexport default Table;\r\n","/* eslint-disable jsx-a11y/control-has-associated-label */\r\n/* eslint-disable no-unused-vars */\r\n\r\nimport Button from 'components/Forms/Button/index';\r\nimport DatePicker from 'components/Forms/DatePicker';\r\nimport DropdownItem from 'components/Forms/Dropdown/DropdownItem/index';\r\nimport Dropdown from 'components/Forms/Dropdown/index';\r\nimport Form from 'components/Forms/Form';\r\nimport Pagination from 'components/Forms/Pagination';\r\nimport Col from 'components/Grid/Col';\r\nimport Divider from 'components/Grid/Divider';\r\nimport Row from 'components/Grid/Row';\r\nimport Table from 'components/Table';\r\nimport Text from 'components/Typografy/Text';\r\nimport moment from 'moment';\r\nimport React, { useState, useEffect } from 'react';\r\nimport api from 'services/api';\r\nimport theme from 'styles/theme';\r\nimport {formatJsonDate} from 'utils/util-date';\r\n\r\n\r\nexport default function FinancialMovement() {\r\n const [subsidiaries, setSubsidiaries] = useState([]);\r\n const [paymentTypes, setPaymentTypes] = useState([]);\r\n\r\n // TROCAR PARA FORMIK\r\n const [subsidiarieId, setSubsidiarieId] = useState(null);\r\n const [paymentTypeId, setPaymentTypeId] = useState(null);\r\n const [pageSize, setPageSize] = useState(10);\r\n const [startDate, setStartDate] = useState(moment());\r\n const [finalDate, setFinalDate] = useState(moment().subtract(1, 'M'));\r\n const [pageNumber, setPageNumber] = useState(null);\r\n\r\n const [totalRows, setTotalRows] = useState(0);\r\n const [currentPage, setCurrentPage] = useState(1);\r\n const [totalPages, setTotalPages] = useState(0);\r\n\r\n\r\n // const [cor, setCor] = useState()\r\n\r\n\r\n const dados = [\r\n {\r\n id:1,\r\n operacao:'Pagemento 01',\r\n parcelas: '1/1',\r\n emissao: '15/12/2018',\r\n vencimento:'15/12/2019',\r\n filial:'Filial01',\r\n fornecedor:'Alfredo',\r\n valor:147.49,\r\n status:'Em aberto'\r\n },\r\n {\r\n id:2,\r\n operacao:'Pagemento 02',\r\n parcelas: '1/1',\r\n emissao: '15/12/2018',\r\n vencimento:'15/12/2019',\r\n filial:'Filial01',\r\n fornecedor:'Alfredo',\r\n valor:147.49,\r\n status:'Liquidado'\r\n },\r\n {\r\n id:3,\r\n operacao:'Pagemento 03',\r\n parcelas: '1/1',\r\n emissao: '15/12/2018',\r\n vencimento:'15/12/2019',\r\n filial:'Filial01',\r\n fornecedor:'Alfredo',\r\n valor:147.49,\r\n status:'Em atraso'\r\n },\r\n {\r\n id:4,\r\n operacao:'Pagemento 04',\r\n parcelas: '1/1',\r\n emissao: '15/12/2018',\r\n vencimento:'15/12/2019',\r\n filial:'Filial01',\r\n fornecedor:'Alfredo',\r\n valor:147.49,\r\n status:'Em aberto'\r\n },\r\n {\r\n id:5,\r\n operacao:'Pagemento 05',\r\n parcelas: '1/1',\r\n emissao: '15/12/2018',\r\n vencimento:'15/12/2019',\r\n filial:'Filial01',\r\n fornecedor:'Alfredo',\r\n valor:147.49,\r\n status:'Liquidado'\r\n },\r\n]\r\n\r\n\r\n useEffect(() => {\r\n \r\n }, [pageNumber]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n Movimentação Financeira\r\n \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n Período de Compra\r\n \r\n setStartDate(date)}\r\n onSelectedEndDate={date => setFinalDate(date)}\r\n />\r\n \r\n \r\n \r\n Filial\r\n \r\n setSubsidiarieId(id)}>\r\n \r\n {subsidiaries.map(subsidiarie => (\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n  \r\n \r\n {}}\r\n >\r\n BUSCAR\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {dados.map(dado => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))} \r\n \r\n
    OperaçãoParcelasData emissãoVencimentoFilialFornecedorValor totalStatus
    {dado.operacao}{dado.parcelas}{dado.emissao}{dado.vencimento}{dado.filial}{dado.fornecedor}{dado.valor}{dado.status}
    \r\n
    \r\n \r\n \r\n \r\n Mostrando \r\n {' '}\r\n {currentPage * pageSize}\r\n {' '}\r\n de\r\n {' '}\r\n {totalRows}\r\n {' '}\r\n resultados\r\n \r\n \r\n \r\n setPageSize(value)}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n setPageNumber(number)}\r\n />\r\n \r\n
    \r\n \r\n );\r\n}\r\n","/* eslint-disable no-underscore-dangle */\r\nimport styled from 'styled-components';\r\n\r\nexport const StyledTableContainer = styled.div`\r\n width: ${props => props.width};\r\n height: ${props => props.height};\r\n\r\n overflow-y: auto;\r\n`;\r\n\r\nexport const StyledTable = styled.table`\r\n width: 100%;\r\n\r\n align-items: center;\r\n\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n table-layout: fixed;\r\n position: relative;\r\n\r\n color: ${props => props.colors};\r\n\r\n & tr {\r\n vertical-align: middle;\r\n background: #fff;\r\n }\r\n\r\n & th,\r\n td {\r\n padding: 5px;\r\n\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: ${props => props.theme.fontSize._12px}rem;\r\n color: ${props => props.theme.colors.black20};\r\n }\r\n\r\n & tbody tr {\r\n border-bottom: 1px solid #f6f6f6;\r\n :last-child {\r\n border-bottom: none;\r\n }\r\n }\r\n\r\n & tbody td {\r\n font-size: ${props => props.theme.fontSize._12px}rem;\r\n color: ${props => props.theme.colors.black55};\r\n }\r\n\r\n & thead > th {\r\n text-align: center;\r\n border-bottom: 1px solid rgba(224, 224, 224, 1);\r\n }\r\n`;\r\n","import { StyledTableContainer } from 'components/Datagrid/styles';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport { StyledTable } from './styles';\r\n\r\nfunction DataGrid({ children, width, height, color, ...rest }) {\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n}\r\n\r\nDataGrid.propTypes = {\r\n children: PropTypes.any,\r\n width: PropTypes.string,\r\n height: PropTypes.string,\r\n color: PropTypes.string,\r\n};\r\n\r\nDataGrid.defaultProps = {\r\n width: '100%',\r\n height: '450px',\r\n color: 'black',\r\n children: undefined\r\n};\r\n\r\nexport default DataGrid;\r\n","const baseVersion = '0.1.0';\r\n\r\nexport const storageKeys = {\r\n STORE: 'store',\r\n};\r\n\r\nconst everestSessionStorage = {\r\n setItem: (key, value, version = baseVersion) => {\r\n sessionStorage.setItem(\r\n `@everest/v${version}/${key}`,\r\n btoa(JSON.stringify(value)),\r\n );\r\n },\r\n getItem: (key, version = baseVersion) => {\r\n const value = sessionStorage.getItem(`@everest/v${version}/${key}`);\r\n if (value) {\r\n return JSON.parse(atob(value));\r\n }\r\n return null;\r\n },\r\n clean: () => {\r\n sessionStorage.clear();\r\n },\r\n};\r\n\r\nexport default everestSessionStorage;\r\n","import styled from 'styled-components';\r\n\r\nexport const StyledContainer = styled.div`\r\n max-width: 100%;\r\n height: 100%;\r\n overflow: auto;\r\n margin-top: 10%;\r\n margin-left: 5%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n`;\r\n\r\nexport const StyledDivButton = styled.div`\r\n width: 90%;\r\n height: auto;\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-end;\r\n padding-top: 25px;\r\n`;\r\n\r\nexport const StyledButtonA = styled.div`\r\n width: 110px;\r\n height: 35px;\r\n background-color: #3ea2ff;\r\n border-radius: 4px;\r\n justify-items: center;\r\n padding: 5px 10px;\r\n cursor: pointer;\r\n`;\r\n","/* eslint-disable no-underscore-dangle */\r\n/* eslint-disable react/prop-types */\r\n/* eslint-disable import/named */\r\n/* eslint-disable no-unused-vars */\r\nimport Label from 'components/Forms/Label/index';\r\nimport Modal from 'components/Modals/Modal/index';\r\nimport Text from 'components/Typografy/Text/index';\r\nimport { loja } from 'pages/Home/mock';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useState, useEffect } from 'react';\r\nimport * as CustomersServices from 'services/customers-services';\r\nimport smartSalesSessionStorage, {\r\n storageKeys,\r\n} from 'storage/everest-session-storage';\r\nimport theme from 'styles/theme';\r\n\r\nimport {\r\n StyledContainer,\r\n StyledButtonA,\r\n StyledDivButton,\r\n} from \"./styles\";\r\n\r\nconst SelectStoreModal = ({ onCloseCallback, teste }) => {\r\n const [storeIndex, setStoreIndex] = useState(0);\r\n const [stores, setStores] = useState([]);\r\n const [isLoading, setIsLoading] = useState(false);\r\n\r\n const getStores = async () => {\r\n const response = await CustomersServices.getStore();\r\n setStores(response.data.payload);\r\n setIsLoading(false);\r\n };\r\n\r\n // useEffect(() => {\r\n // getStores();\r\n // handleSelectStore(storeIndex);\r\n // }, []);\r\n\r\n const handleSelectStore = currentIndex => {\r\n setStoreIndex(currentIndex);\r\n };\r\n\r\n const handleClick = () => {\r\n // smartSalesSessionStorage.setItem(storageKeys.STORE, stores[storeIndex]);\r\n onCloseCallback();\r\n // window.location.reload(false);\r\n };\r\n\r\n return (\r\n \r\n \r\n Selecione a Loja\r\n
    \r\n \r\n handleSelectStore(e.target.value)}\r\n >\r\n {/* {stores &&\r\n stores.map((item, index) => (\r\n \r\n ))} */}\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n CONTINUAR\r\n \r\n \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nSelectStoreModal.propTypes = {\r\n onCloseCallback: PropTypes.func,\r\n};\r\n\r\nSelectStoreModal.defaultProps = {\r\n onCloseCallback: () => null,\r\n};\r\n\r\nexport default SelectStoreModal;\r\n","import Text from 'components/Typografy/Text/index';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useState } from 'react';\r\nimport { withTheme } from 'styled-components';\r\n\r\nimport SelectStoreModal from '../SelectStoreModal/index';\r\n\r\nconst SelectStoreButton = ({ label }) => {\r\n const [showModalState, setShowModalState] = useState(false);\r\n\r\n function resetShowModalStateHandler() {\r\n setShowModalState(false);\r\n }\r\n\r\n function onShowModalVisible() {\r\n setShowModalState(!showModalState);\r\n }\r\n\r\n const showModal = () => (\r\n \r\n );\r\n\r\n return (\r\n <>\r\n {showModalState && showModal()}\r\n\r\n onShowModalVisible()}\r\n fontSize=\"9px\"\r\n textAlign=\"center\"\r\n fontWeight={600}\r\n cursor=\"pointer\"\r\n >\r\n {label}\r\n \r\n \r\n );\r\n};\r\n\r\nSelectStoreButton.propTypes = {\r\n label: PropTypes.string,\r\n};\r\n\r\nSelectStoreButton.defaultProps = {\r\n label: '',\r\n};\r\n\r\nexport default withTheme(SelectStoreButton);\r\n","import styled from 'styled-components';\r\n\r\nexport const StyledBackOfficeHeaderContainer = styled.div`\r\n width: 100%;\r\n display: flex;\r\n padding: 15px 15px 15px 32px;\r\n margin-bottom: 26px;\r\n justify-content: space-between;\r\n border-bottom: #ccc 1px solid;\r\n`;\r\n\r\nexport const StyledTitle = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n`;\r\n\r\nexport const StyledStore = styled.div`\r\n width: 500px;\r\n display: flex;\r\n align-items: flex-end;\r\n flex-direction: column;\r\n`;\r\n","/* eslint-disable no-underscore-dangle */\r\n/* eslint-disable no-unused-vars */\r\nimport Text from 'components/Typografy/Text/index';\r\nimport PropTypes from 'prop-types';\r\nimport React, { memo, useState, useEffect } from 'react';\r\nimport everestSessionStorage, {\r\n storageKeys,\r\n} from 'storage/everest-session-storage';\r\nimport theme from 'styles/theme';\r\nimport { getAppName, getAppVersion } from 'utils/app-info';\r\n\r\nimport SelectStoreButton from '../SelectStoreButton';\r\nimport SelectStoreModal from '../SelectStoreModal';\r\nimport {\r\n StyledBackOfficeHeaderContainer,\r\n StyledTitle,\r\n StyledStore,\r\n} from './styles';\r\n\r\nconst BackOfficeHeader = ({ title, version, path }) => {\r\n const [storeState, setStoreState] = useState(undefined);\r\n const [showModalState, setShowModalState] = useState(false);\r\n\r\n useEffect(() => {\r\n const store = everestSessionStorage.getItem(storageKeys.STORE);\r\n if (store !== null && store !== 'null') {\r\n setStoreState(store);\r\n }\r\n }, []);\r\n\r\n function resetShowModalStateHandler() {\r\n setShowModalState(true);\r\n }\r\n\r\n const showModal = () => (\r\n \r\n );\r\n\r\n return (\r\n <>\r\n {/* {storeState === undefined ? !showModalState && showModal() : <>} */}\r\n\r\n \r\n \r\n \r\n {title}\r\n \r\n \r\n {path}\r\n \r\n \r\n\r\n {/* \r\n \r\n Filial selecionada:\r\n \r\n {\r\n ' Loja Teste' // {storeState?.name}\r\n }\r\n \r\n \r\n setStoreState(status)}\r\n label=\"TROCAR LOJA\"\r\n style={{ float: 'right', width: '80px' }}\r\n />\r\n */}\r\n \r\n \r\n );\r\n};\r\n\r\nBackOfficeHeader.propTypes = {\r\n title: PropTypes.string,\r\n version: PropTypes.string,\r\n path: PropTypes.string,\r\n};\r\n\r\nBackOfficeHeader.defaultProps = {\r\n title: getAppName(),\r\n version: getAppVersion(),\r\n path: ''\r\n};\r\n\r\nexport default memo(BackOfficeHeader);\r\n","\r\n\r\nconst checkIsNullOrUndefined = function isNullOrUndefined (value) {\r\n switch (value){\r\n case 'null':\r\n case 'Null':\r\n {\r\n return null;\r\n }\r\n case 'undefined':\r\n case 'Undefined':\r\n {\r\n return undefined;\r\n }\r\n default: {\r\n return value;\r\n }\r\n }\r\n}\r\n\r\nexport default checkIsNullOrUndefined;","const baseVersion = '0.1.0';\r\n\r\nexport const storageKeys = {\r\n STORE: 'store',\r\n};\r\n\r\nconst everestLocalStorage = {\r\n setItem: (key, value, version = baseVersion) => {\r\n localStorage.setItem(\r\n `@everest/v${version}/${key}`,\r\n btoa(JSON.stringify(value)),\r\n );\r\n },\r\n getItem: (key, version = baseVersion) => {\r\n const value = localStorage.getItem(`@everest/v${version}/${key}`);\r\n if (value) {\r\n return JSON.parse(atob(value));\r\n }\r\n return null;\r\n },\r\n clean: () => {\r\n localStorage.clear();\r\n },\r\n};\r\n\r\nexport default everestLocalStorage;\r\n","export const Types = {\r\n GET_CONFERENCIA_DE_CAIXA:\r\n '@Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa/GET_CONFERENCIA_DE_CAIXA',\r\n GET_CONFERENCIA_DE_CAIXA_SUCCESS:\r\n '@Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa/GET_CONFERENCIA_DE_CAIXA_SUCCESS',\r\n GET_CONFERENCIA_DE_CAIXA_ERROR:\r\n '@Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa/GET_CONFERENCIA_DE_CAIXA_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: {},\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function conferenciaDeCaixa(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_CONFERENCIA_DE_CAIXA: {\r\n return { data: {}, loading: true, error: '' };\r\n }\r\n case Types.GET_CONFERENCIA_DE_CAIXA_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_CONFERENCIA_DE_CAIXA_ERROR: {\r\n return {\r\n data: {},\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_CONTA_BANCARIA:\r\n '@Dashboard/Conferencia&Conciliacao/ContaBancaria/GET_CONTA_BANCARIA',\r\n GET_CONTA_BANCARIA_SUCCESS:\r\n '@Dashboard/Conferencia&Conciliacao/ContaBancaria/GET_CONTA_BANCARIA_SUCCESS',\r\n GET_CONTA_BANCARIA_ERROR:\r\n '@Dashboard/Conferencia&Conciliacao/ContaBancaria/GET_CONTA_BANCARIA_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: {},\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function contaBancaria(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_CONTA_BANCARIA: {\r\n return { data: {}, loading: true, error: '' };\r\n }\r\n case Types.GET_CONTA_BANCARIA_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_CONTA_BANCARIA_ERROR: {\r\n return {\r\n data: {},\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_VENDA_DE_CARTAO:\r\n '@Dashboard/Conferencia&Conciliacao/VendaDeCartao/GET_VENDA_DE_CARTAO',\r\n GET_VENDA_DE_CARTAO_SUCCESS:\r\n '@Dashboard/Conferencia&Conciliacao/VendaDeCartao/GET_VENDA_DE_CARTAO_SUCCESS',\r\n GET_VENDA_DE_CARTAO_ERROR:\r\n '@Dashboard/Conferencia&Conciliacao/VendaDeCartao/GET_VENDA_DE_CARTAO_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: {},\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function vendaDeCartao(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_VENDA_DE_CARTAO: {\r\n return { data: {}, loading: true, error: '' };\r\n }\r\n case Types.GET_VENDA_DE_CARTAO_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_VENDA_DE_CARTAO_ERROR: {\r\n return {\r\n data: {},\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_OBTER_CONTA: '@Dashboard/ObterConta/GET_OBTER_CONTA',\r\n GET_OBTER_CONTA_SUCCESS: '@Dashboard/ObterConta/GET_OBTER_CONTA_SUCCESS',\r\n GET_OBTER_CONTA_ERROR: '@Dashboard/ObterConta/GET_OBTER_CONTA_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: [],\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function obterConta(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_OBTER_CONTA: {\r\n return { data: [], loading: true, error: '' };\r\n }\r\n case Types.GET_OBTER_CONTA_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_OBTER_CONTA_ERROR: {\r\n return {\r\n data: [],\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_OBTER_VISAO: '@Dashboard/ObterVisao/GET_OBTER_VISAO',\r\n GET_OBTER_VISAO_SUCCESS: '@Dashboard/ObterVisao/GET_OBTER_VISAO_SUCCESS',\r\n GET_OBTER_VISAO_ERROR: '@Dashboard/ObterVisao/GET_OBTER_VISAO_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: [],\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function obterVisao(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_OBTER_VISAO: {\r\n return { data: [], loading: true, error: '' };\r\n }\r\n case Types.GET_OBTER_VISAO_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_OBTER_VISAO_ERROR: {\r\n return {\r\n data: [],\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_LUCRO_LIQUIDO: '@Dashboard/LucroLiquido/GET_LUCRO_LIQUIDO',\r\n GET_LUCRO_LIQUIDO_SUCCESS:\r\n '@Dashboard/LucroLiquido/GET_LUCRO_LIQUIDO_SUCCESS',\r\n GET_LUCRO_LIQUIDO_ERROR: '@Dashboard/LucroLiquido/GET_LUCRO_LIQUIDO_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: {},\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function lucroLiquido(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_LUCRO_LIQUIDO: {\r\n return { data: {}, loading: true, error: '' };\r\n }\r\n case Types.GET_LUCRO_LIQUIDO_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_LUCRO_LIQUIDO_ERROR: {\r\n return {\r\n data: {},\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n SET_VISAO: '@Dashboard/UpdateVisaoConta/SET_VISAO',\r\n SET_VISAO_SUCCESS: '@Dashboard/UpdateVisaoConta/SET_VISAO_SUCCESS',\r\n SET_VISAO_ERROR: '@Dashboard/UpdateVisaoConta/SET_VISAO_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: [],\r\n loading: false,\r\n valid: false,\r\n error: '',\r\n};\r\n\r\nexport default function updateVisaoConta(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.SET_VISAO: {\r\n return { data: [], loading: true, valid: false, error: '' };\r\n }\r\n case Types.SET_VISAO_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n valid: action.valid,\r\n error: '',\r\n };\r\n }\r\n case Types.SET_VISAO_ERROR: {\r\n return {\r\n data: [],\r\n loading: false,\r\n valid: action.valid,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_VISAO_DE_CONTA: '@Dashboard/VisaoDeConta/GET_VISAO_DE_CONTA',\r\n GET_VISAO_DE_CONTA_SUCCESS:\r\n '@Dashboard/VisaoDeConta/GET_VISAO_DE_CONTA_SUCCESS',\r\n GET_VISAO_DE_CONTA_ERROR: '@Dashboard/VisaoDeConta/GET_VISAO_DE_CONTA_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: {},\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function visaoDeConta(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_VISAO_DE_CONTA: {\r\n return { data: {}, loading: true, error: '' };\r\n }\r\n case Types.GET_VISAO_DE_CONTA_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_VISAO_DE_CONTA_ERROR: {\r\n return {\r\n data: {},\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_PENDENCIAS_FINANCEIRAS:\r\n '@Dashboard/PendenciasFinanceiras/GET_PENDENCIAS_FINANCEIRAS',\r\n GET_PENDENCIAS_FINANCEIRAS_SUCCESS:\r\n '@Dashboard/PendenciasFinanceiras/GET_PENDENCIAS_FINANCEIRAS_SUCCESS',\r\n GET_PENDENCIAS_FINANCEIRAS_ERROR:\r\n '@Dashboard/PendenciasFinanceiras/GET_PENDENCIAS_FINANCEIRAS_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: [],\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function resultadosDre(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_PENDENCIAS_FINANCEIRAS: {\r\n return { data: [], loading: true, error: '' };\r\n }\r\n case Types.GET_PENDENCIAS_FINANCEIRAS_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_PENDENCIAS_FINANCEIRAS_ERROR: {\r\n return {\r\n data: [],\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_RESULTADOS_DRE: '@Dashboard/ResultadosDRE/GET_RESULTADOS_DRE',\r\n GET_RESULTADOS_DRE_SUCCESS:\r\n '@Dashboard/ResultadosDRE/GET_RESULTADOS_DRE_SUCCESS',\r\n GET_RESULTADOS_DRE_ERROR: '@Dashboard/ResultadosDRE/GET_RESULTADOS_DRE_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: {},\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function resultadosDre(state = INITIAL_STATE, action) {\r\n switch (action.type) {\r\n case Types.GET_RESULTADOS_DRE: {\r\n return { data: {}, loading: true, error: '' };\r\n }\r\n case Types.GET_RESULTADOS_DRE_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_RESULTADOS_DRE_ERROR: {\r\n return {\r\n data: {},\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const Types = {\r\n GET_SALDO_DISPONIVEL_ANTECIPACAO:\r\n '@Dashboard/SaldoDisponivelAntecipacao/GET_SALDO_DISPONIVEL_ANTECIPACAO',\r\n GET_SALDO_DISPONIVEL_ANTECIPACAO_SUCCESS:\r\n '@Dashboard/PendenciasFinanceiras/GET_SALDO_DISPONIVEL_ANTECIPACAO_SUCCESS',\r\n GET_SALDO_DISPONIVEL_ANTECIPACAO_ERROR:\r\n '@Dashboard/PendenciasFinanceiras/GET_SALDO_DISPONIVEL_ANTECIPACAO_ERROR',\r\n};\r\n\r\nconst INITIAL_STATE = {\r\n data: {},\r\n loading: false,\r\n error: '',\r\n};\r\n\r\nexport default function saldoDisponivelAntecipacao(\r\n state = INITIAL_STATE,\r\n action,\r\n) {\r\n switch (action.type) {\r\n case Types.GET_SALDO_DISPONIVEL_ANTECIPACAO: {\r\n return { data: {}, loading: true, error: '' };\r\n }\r\n case Types.GET_SALDO_DISPONIVEL_ANTECIPACAO_SUCCESS: {\r\n return {\r\n data: action.data,\r\n loading: false,\r\n error: '',\r\n };\r\n }\r\n case Types.GET_SALDO_DISPONIVEL_ANTECIPACAO_ERROR: {\r\n return {\r\n data: {},\r\n loading: false,\r\n error: action.error,\r\n };\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n","import styled from 'styled-components';\r\n\r\nexport const StyledToggleButton = styled.div`\r\n position: relative;\r\n`;\r\n\r\nexport const StyledToggleBoxLabel = styled.label`\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 240px;\r\n height: 30px;\r\n border-radius: 15px;\r\n border: 1px solid rgba(255, 255, 255, 0.7);\r\n cursor: pointer;\r\n padding-left: 15px;\r\n padding-right: 15px;\r\n color: #FFFFFF;\r\n &::before {\r\n font-size: 10px;\r\n padding-bottom: 3px;\r\n content: '${props => props.disabledText}';\r\n padding: 10px;\r\n }\r\n &::after {\r\n font-size: 10px;\r\n text-align: center;\r\n content: '${props => props.activeText}';\r\n display: block;\r\n position: relative;\r\n border-radius: 15px;\r\n width: 130px;\r\n height: 25px;\r\n margin-left: 95px;\r\n background: #6544ac;\r\n box-shadow: 1px 3px 3px 1px rgba(0, 0, 0, 0.2);\r\n transition: 0.4s;\r\n top: -25px;\r\n padding-top:10px;\r\n }\r\n`;\r\n\r\nexport const StyledToggleBox = styled.input`\r\n opacity: 0;\r\n z-index: 1;\r\n border-radius: 15px;\r\n &:checked + ${StyledToggleBoxLabel} {\r\n text-align: right;\r\n &::before {\r\n font-size: 10px;\r\n content: '${props => props.activeText}';\r\n }\r\n &::after {\r\n text-align: center;\r\n font-size: 10px;\r\n content: '${props => props.disabledText}';\r\n background: #6544ac;\r\n display: block;\r\n border-radius: 15px;\r\n width: 130px;\r\n height: 25px;\r\n margin-left: -17px;\r\n transition: 0.4s;\r\n padding-top:10px;\r\n }\r\n }\r\n`;\r\n","import PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\nimport {StyledToggleButton, StyledToggleBox, StyledToggleBoxLabel} from './styles';\r\n\r\nconst ToggleButton = ({ activeText, disabledText, onClick }) => (\r\n \r\n \r\n \r\n \r\n);\r\n\r\nToggleButton.propTypes = {\r\n activeText: PropTypes.string,\r\n disabledText: PropTypes.string,\r\n onClick: PropTypes.func,\r\n};\r\n\r\nToggleButton.defaultProps = {\r\n activeText: '',\r\n disabledText: '',\r\n onClick: () => {},\r\n};\r\n\r\nexport default ToggleButton;\r\n","/* eslint-disable no-unused-vars */\r\nimport api from './api';\r\n\r\n\r\nexport default async function getBalanceAccounts(initialDate, finalDate) {\r\n return api.post(`saldo-contas-corrente`)\r\n .then(res => {\r\n return res.data;\r\n });\r\n}\r\n\r\nexport async function getUpdatedOfx() {\r\n return api.post(`ultima-imporcao-ofx`).then(res => {\r\n return res.data;\r\n });\r\n}\r\n","import React from 'react';\r\n\r\n\r\nconst homeDateContext = React.createContext();\r\n\r\nexport default homeDateContext;\r\n","/* eslint-disable no-unused-vars */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport bancoDoBrasilIcon from 'assets/icons/brands/banco-do-brasil.svg';\r\nimport bradescoIcon from 'assets/icons/brands/bradesco.svg';\r\nimport caixaIcon from 'assets/icons/brands/caixa-economica-federal.svg';\r\nimport bancoDefaultIcon from 'assets/icons/brands/default.svg';\r\nimport hsbcIcon from 'assets/icons/brands/hsbc.svg';\r\nimport itauIcon from 'assets/icons/brands/itau.svg';\r\nimport realIcon from 'assets/icons/brands/real.svg';\r\nimport safraIcon from 'assets/icons/brands/safra.svg';\r\nimport santanderIcon from 'assets/icons/brands/santander.svg';\r\nimport contaCaixaIcon from 'assets/icons/conta-caixa.svg';\r\nimport ProgressBar from 'components/Forms/ProgressBar';\r\nimport ToggleButton from 'components/Forms/ToggleButton';\r\nimport Card from 'components/Grid/Card';\r\nimport Col from 'components/Grid/Col';\r\nimport Divider from 'components/Grid/Divider';\r\nimport Row from 'components/Grid/Row';\r\nimport Text from 'components/Typografy/Text';\r\nimport checkIsNullOrUndefined from 'NullCheck';\r\nimport React, { useState, useEffect, Fragment, useContext } from 'react';\r\nimport getBalanceAccounts, {getUpdatedOfx} from 'services/balanceAccountsServices';\r\nimport { withTheme } from 'styled-components';\r\n\r\nimport { getNeoXEndpoint, openNeoXLink } from '../../../services/config';\r\nimport HomeDateContext from '../context';\r\n\r\nconst BalanceAccountsCard = () => {\r\n let i = 1;\r\n const [isBalanceSystem, setIsBalanceSystem] = useState(true);\r\n const [updatedOfx, setUpdatedOfx] = useState({\r\n File: '',\r\n UpdatedAt: '',\r\n });\r\n const [balanceAccounts, setBalanceAccounts] = useState([\r\n { Id: 0, Account: '', System: 0, Banco: 0 },\r\n ]);\r\n\r\n const { startDate, endDate } = useContext(HomeDateContext);\r\n\r\n function BankLogos(descAccount) {\r\n const account = descAccount.toLowerCase();\r\n let logo;\r\n\r\n if (account.includes('itau') || account.includes('itaú')) {\r\n logo = itauIcon;\r\n } else if (account.includes('economica') || account.includes('econômica')) {\r\n logo = caixaIcon;\r\n } else if (account.includes('hsbc')) {\r\n logo = hsbcIcon;\r\n } else if (account.includes('real')) {\r\n logo = realIcon;\r\n } else if (account.includes('safra')) {\r\n logo = safraIcon;\r\n } else if (account.includes('brasil')) {\r\n logo = bancoDoBrasilIcon;\r\n } else if (account.includes('bradesco')) {\r\n logo = bradescoIcon;\r\n } else if (account.includes('santander')) {\r\n logo = santanderIcon;\r\n } else if (account.includes('conta caixa')) {\r\n logo = contaCaixaIcon;\r\n } else {\r\n logo = bancoDefaultIcon;\r\n }\r\n\r\n return logo;\r\n }\r\n\r\n function ToBalanceAccounts(data) {\r\n let result = [];\r\n let id = 0;\r\n if (data.length > 0) {\r\n result = data.map(item => {\r\n id += 1;\r\n return {\r\n Id: id,\r\n Account: item.Conta,\r\n System: item.Sistema,\r\n Bank: item.Banco,\r\n Percentage: item.Porcentagem || 0\r\n };\r\n });\r\n }\r\n return result;\r\n }\r\n\r\n const evtChangeBalance = (e) => {\r\n // disabled toggle function #15058\r\n e.stopPropagation();\r\n e.preventDefault();\r\n return false;\r\n // if (isBalanceSystem) setIsBalanceSystem(false);\r\n // else setIsBalanceSystem(true);\r\n };\r\n\r\n const getInfoOfx = () => {\r\n getUpdatedOfx().then(result => {\r\n setUpdatedOfx({ File: result.Arquivo, UpdatedAt: result.DataImportacao });\r\n });\r\n };\r\n\r\n const getBalances = () => {\r\n getBalanceAccounts(\r\n startDate.format('Y-MM-DD'),\r\n endDate.format('Y-MM-DD'),\r\n ).then(result => {\r\n const balances = ToBalanceAccounts(result);\r\n setBalanceAccounts(balances);\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n getInfoOfx();\r\n getBalances();\r\n }, [startDate, endDate]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n Saldo Contas\r\n \r\n \r\n \r\n {/* \r\n {`Ofx atualizado em ${updatedOfx.UpdatedAt}`}\r\n */}\r\n \r\n {balanceAccounts.map(balance => {\r\n let value = 0;\r\n value = isBalanceSystem ? balance.System : balance.Bank;\r\n\r\n\r\n i += 1;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {balance.Account}\r\n \r\n \r\n \r\n \r\n {value?.toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {i <= balanceAccounts.length && (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n })}\r\n \r\n \r\n \r\n \r\n VER MAIS\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default withTheme(BalanceAccountsCard);\r\n","import Row from 'components/Grid/Row';\r\nimport styled from 'styled-components';\r\n\r\n\r\nexport const CardTitle = styled.span`\r\n color: #828282;\r\n font-size: 21px;\r\n font-family: Open Sans;\r\n width: 100%;\r\n display: block;\r\n`;\r\n\r\nexport const StatusTitle = styled.span`\r\n color: ${props => (props.isOk ? '#6FCF97' : '#F2994A')};\r\n font-size: 14px;\r\n font-family: Open Sans;\r\n width: 100%;\r\n display: block;\r\n`;\r\n\r\nexport const ItemKey = styled.span`\r\n color: #828282;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n`;\r\n\r\nexport const ItemValue = styled.span`\r\n color: #828282;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n font-weight: 600;\r\n`;\r\n\r\nexport const MarginRow = styled(Row)`\r\n margin-top: 20px;\r\n`;\r\n\r\nexport const MoreInfoLink = styled.a`\r\n text-decoration: none;\r\n color: #828282;\r\n font-weight: bold;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n cursor: pointer;\r\n`;\r\n","/* eslint-disable no-undef */\r\n/* eslint-disable no-unused-vars */\r\n\r\nimport ok from 'assets/icons/ok.svg';\r\nimport warning from 'assets/icons/warning.svg';\r\nimport Card from 'components/Grid/Card';\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport checkIsNullOrUndefined from 'NullCheck';\r\nimport React, { useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\n\r\nimport { getNeoXEndpoint, openNeoXLink } from '../../../services/config';\r\nimport { CardTitle, StatusTitle, ItemKey, ItemValue, MarginRow, MoreInfoLink } from './styles';\r\n\r\nfunction BankAccountConciliationStatusCard() {\r\n const ContaBancariaData = useSelector(state => state.ContaBancariaReducer);\r\n const [info, setInfo] = useState({\r\n isOk: true,\r\n conciliatedRecords: 478,\r\n unconciliatedRecords: 0,\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n Conta Bancária\r\n \r\n {ContaBancariaData.data.payload?.isOk\r\n ? 'Conciliado'\r\n : 'Conciliações pendentes'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n Registros conciliados\r\n \r\n \r\n {ContaBancariaData.data.payload?.conciliados}\r\n \r\n \r\n \r\n \r\n Registros não conciliados\r\n \r\n \r\n \r\n {ContaBancariaData.data.payload?.naoConciliados}\r\n \r\n \r\n \r\n \r\n \r\n \r\n VER MAIS\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default BankAccountConciliationStatusCard;\r\n","import Row from 'components/Grid/Row';\r\nimport styled from 'styled-components';\r\n\r\n\r\nexport const CardTitle = styled.span`\r\n color: #828282;\r\n font-size: 21px;\r\n font-family: Open Sans;\r\n width: 100%;\r\n display: block;\r\n`;\r\n\r\nexport const StatusTitle = styled.span`\r\n color: ${props => (props.isOk ? '#6FCF97' : '#F2994A')};\r\n font-size: 14px;\r\n font-family: Open Sans;\r\n width: 100%;\r\n display: block;\r\n`;\r\n\r\nexport const ItemKey = styled.span`\r\n color: #828282;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n`;\r\n\r\nexport const ItemValue = styled.span`\r\n color: #828282;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n font-weight: 600;\r\n`;\r\n\r\nexport const MarginRow = styled(Row)`\r\n margin-top: 20px;\r\n`;\r\n\r\nexport const MoreInfoLink = styled.a`\r\n text-decoration: none;\r\n color: #828282;\r\n font-weight: bold;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n cursor: pointer;\r\n`;\r\n","/* eslint-disable react/react-in-jsx-scope */\r\n/* eslint-disable no-undef */\r\n/* eslint-disable no-unused-vars */\r\n\r\nimport ok from 'assets/icons/ok.svg';\r\nimport warning from 'assets/icons/warning.svg';\r\nimport Card from 'components/Grid/Card';\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport checkIsNullOrUndefined from 'NullCheck';\r\nimport React, { useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\n\r\nimport { getNeoXEndpoint, openNeoXLink } from '../../../services/config';\r\nimport {\r\n CardTitle,\r\n StatusTitle,\r\n ItemKey,\r\n ItemValue,\r\n MarginRow,\r\n MoreInfoLink,\r\n} from './styles';\r\n\r\nfunction CashConferenceStatusCard() {\r\n const ConferenciaDeCaixaData = useSelector(\r\n state => state.ConferenciaDeCaixaReducer,\r\n );\r\n\r\n const [info, setInfo] = useState({\r\n isOk: true,\r\n conciliatedRecords: 49239.23,\r\n unconciliatedRecords: 45239.23,\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n Conferência de Caixa\r\n \r\n {ConferenciaDeCaixaData.data.payload?.isOk\r\n ? 'Conferido'\r\n : 'Conferências pendentes'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n Valor de venda\r\n \r\n \r\n \r\n {ConferenciaDeCaixaData.data.payload?.valorVenda.toLocaleString(\r\n 'pt-BR',\r\n {\r\n minimumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n },\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n Valor gerado do financeiro\r\n \r\n \r\n \r\n {ConferenciaDeCaixaData.data.payload?.valorFinanceiro.toLocaleString(\r\n 'pt-BR',\r\n {\r\n minimumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n },\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n VER MAIS\r\n\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default CashConferenceStatusCard;\r\n","import Row from 'components/Grid/Row';\r\nimport styled from 'styled-components';\r\n\r\n\r\nexport const CardTitle = styled.span`\r\n color: #828282;\r\n font-size: 21px;\r\n font-family: Open Sans;\r\n width: 100%;\r\n display: block;\r\n`;\r\n\r\nexport const StatusTitle = styled.span`\r\n color: ${props => (props.isOk ? '#6FCF97' : '#F2994A')};\r\n font-size: 14px;\r\n font-family: Open Sans;\r\n width: 100%;\r\n display: block;\r\n`;\r\n\r\nexport const ItemKey = styled.span`\r\n color: #828282;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n`;\r\n\r\nexport const ItemValue = styled.span`\r\n color: #828282;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n font-weight: 600;\r\n`;\r\n\r\nexport const MarginRow = styled(Row)`\r\n margin-top: 20px;\r\n`;\r\n\r\nexport const MoreInfoLink = styled.a`\r\n text-decoration: none;\r\n color: #828282;\r\n font-weight: bold;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n cursor: pointer;\r\n`;\r\n","/* eslint-disable no-undef */\r\n/* eslint-disable no-unused-vars */\r\n\r\nimport ok from 'assets/icons/ok.svg';\r\nimport warning from 'assets/icons/warning.svg';\r\nimport Card from 'components/Grid/Card';\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport checkIsNullOrUndefined from 'NullCheck';\r\nimport React, { useState } from 'react';\r\nimport { useSelector } from 'react-redux';\r\n\r\nimport { getNeoXEndpoint, openNeoXLink } from '../../../services/config';\r\nimport { CardTitle, StatusTitle, ItemKey, ItemValue, MarginRow, MoreInfoLink } from './styles';\r\n\r\nfunction CreditCardSalesConciliationStatusCard() {\r\n const VendaDeCartaoData = useSelector(state => state.VendaDeCartaoReducer);\r\n\r\n const [info, setInfo] = useState({\r\n isOk: false,\r\n conciliatedRecords: 2,\r\n unconciliatedRecords: 7,\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n Venda de Cartão\r\n \r\n {VendaDeCartaoData.data.payload?.isOk\r\n ? 'Conciliado'\r\n : 'Conciliações pendentes'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n Divergências na adquirente\r\n \r\n \r\n \r\n {VendaDeCartaoData.data.payload?.acquirerCount}\r\n \r\n \r\n \r\n \r\n \r\n Divergências no sistema\r\n \r\n \r\n \r\n {VendaDeCartaoData.data.payload?.cardReceiveCount}\r\n \r\n \r\n \r\n \r\n \r\n \r\n VER MAIS\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default CreditCardSalesConciliationStatusCard;\r\n","import styled from 'styled-components';\r\n\r\nexport const Container = styled.div`\r\n background-color: #eb5757;\r\n border-radius: 4px;\r\n color: #ffffff;\r\n padding: 8px;\r\n font-size: 10px;\r\n font-weight: 600;\r\n width: 100%;\r\n justify-content: space-evenly;\r\n position: relative;\r\n cursor: ${props => (props.onClick ? 'pointer' : 'default')};\r\n max-width:1600px\r\n`;\r\n\r\nexport const ImgWarning = styled.img`\r\n margin-right: 5px;\r\n vertical-align: top;\r\n`;\r\n\r\nexport const ImgClose = styled.img`\r\n cursor: pointer;\r\n float: right;\r\n position: absolute;\r\n top: 0;\r\n bottom: 0;\r\n margin: auto;\r\n right: 10px;\r\n`;\r\n","/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport Close from 'assets/icons/close.svg';\r\nimport WarningWhite from 'assets/icons/warning-white.svg';\r\nimport PropTypes from 'prop-types';\r\nimport React, { useRef, useState, useEffect } from 'react';\r\n\r\n\r\nimport { Container, ImgWarning, ImgClose } from './styles';\r\n\r\nfunction Alert(props) {\r\n const { children, onClick, onClose, visible } = props;\r\n const containerElementRef = useRef();\r\n\r\n const [isVisible, setIsVisible] = useState(visible);\r\n\r\n function handleCloseAlert() {\r\n if (onClose && typeof onClose === 'function') {\r\n onClose();\r\n }\r\n setIsVisible(false);\r\n }\r\n\r\n useEffect(() => {\r\n setIsVisible(visible);\r\n });\r\n\r\n return (\r\n <>\r\n {isVisible && (\r\n \r\n \r\n {children}\r\n \r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nAlert.propTypes = {\r\n children: PropTypes.any,\r\n onClick: PropTypes.func,\r\n onClose: PropTypes.func,\r\n visible: PropTypes.bool,\r\n};\r\n\r\nAlert.defaultProps = {\r\n children: undefined,\r\n onClick: undefined,\r\n onClose: undefined,\r\n visible: true,\r\n};\r\n\r\nexport default Alert;\r\n","import React from 'react';\r\n\r\nconst buttonDropDownContext = React.createContext();\r\n\r\nexport default buttonDropDownContext;\r\n","\r\nimport downArrowWhite from 'assets/icons/seta-down-branca.svg';\r\nimport downArrowBlack from 'assets/icons/seta-down-preta.svg';\r\nimport styled from 'styled-components';\r\nimport {colorIsDark} from 'utils/util-colors';\r\n\r\nexport const Container = styled.button`\r\n width: ${props => props.width};\r\n height: ${props => props.height};\r\n border-radius: 4px;\r\n background-color: ${props => props.backgroundColor};\r\n border: ${props => props.border};\r\n color: ${props => props.color};\r\n font-weight: 600;\r\n font-size: 13px;\r\n cursor: pointer;\r\n text-align: center;\r\n vertical-align: middle;\r\n line-height: 50%;\r\n position: relative;\r\n`;\r\n\r\nexport const Icon = styled.span`\r\n ${props =>\r\n colorIsDark(props.backgroundColor)\r\n ? `background: url('${downArrowWhite}') no-repeat;`\r\n : `background: url('${downArrowBlack}') no-repeat;`};\r\n width: 5px;\r\n height: 5px;\r\n float: right;\r\n margin-right: 20px;\r\n`;\r\n","/* eslint-disable no-bitwise */\r\nexport function colorIsDark(color) {\r\n // Variables for red, green, blue values\r\n let r;\r\n let g;\r\n let b;\r\n let hsp;\r\n \r\n // Check the format of the color, HEX or RGB?\r\n if (color.match(/^rgb/)) {\r\n // If HEX --> store the red, green, blue values in separate variables\r\n const hexColor = color.match(\r\n /^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*(\\d+(?:\\.\\d+)?))?\\)$/,\r\n );\r\n \r\n [r, g, b] = hexColor;\r\n } else {\r\n // If RGB --> Convert it to HEX: http://gist.github.com/983661\r\n const rgbColor = +`0x${ color\r\n .slice(1)\r\n .replace(color.length < 5 && /./g, '$&$&') }`;\r\n \r\n r = rgbColor >> 16;\r\n g = (rgbColor >> 8) & 255;\r\n b = rgbColor & 255;\r\n }\r\n \r\n // HSP (Highly Sensitive Poo) equation from http://alienryderflex.com/hsp.html\r\n // eslint-disable-next-line prefer-const\r\n hsp = Math.sqrt(0.299 * (r * r) + 0.587 * (g * g) + 0.114 * (b * b));\r\n \r\n // Using the HSP value, determine whether the color is light or dark\r\n return hsp <= 127.5;\r\n}\r\n","import styled from 'styled-components';\r\n\r\nexport const MenuContainer = styled.div`\r\n position: absolute;\r\n top: ${props => props.offset}px;\r\n width: ${props => props.width}px;\r\n left: 0px;\r\n display: ${props => (props.isOpen ? 'block' : 'none')};\r\n color: ${props => props.color};\r\n background-color: ${props => props.backgroundColor};\r\n z-index: 32432043;\r\n`;\r\n\r\nexport const MenuButton = styled.button`\r\n color: ${props => props.color};\r\n background-color: ${props => props.backgroundColor};\r\n display: block;\r\n text-decoration: none;\r\n padding: 15px;\r\n border: none;\r\n font-weight: 600;\r\n cursor: pointer;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\n\r\nexport const TooltipTitle = styled.span`\r\n font-family: Open Sans;\r\n font-size: 12px;\r\n font-weight: 300;\r\n color: #828282;\r\n`;\r\n\r\nexport const TooltipItemKey = styled.span`\r\n font-family: Open Sans;\r\n font-weight: 500;\r\n color: #828282;\r\n font-size: 14px;\r\n`;\r\n\r\nexport const TooltipItemValue = styled.span`\r\n font-family: Open Sans;\r\n font-weight: 700;\r\n font-size: 14px;\r\n color: ${ props => props.color };\r\n`;\r\n\r\nexport const BackgroundDiv = styled.div`\r\n border-radius: 8px;\r\n background-color: #ffffff;\r\n margin: 30px;\r\n border: 1px solid #e5e5e5;\r\n width: 250px;\r\n`;","/* eslint-disable no-unused-vars */\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport PropTypes from 'prop-types';\r\nimport React from 'react';\r\n\r\n\r\nimport { BackgroundDiv, TooltipTitle, TooltipItemKey, TooltipItemValue} from './styles';\r\n\r\nexport default function FinancialSummaryChartTooltip({\r\n active,\r\n payload,\r\n label,\r\n}) {\r\n return (\r\n \r\n \r\n \r\n {label}\r\n \r\n \r\n \r\n \r\n Saldo do dia\r\n \r\n \r\n \r\n {payload.length > 0\r\n ? parseFloat(payload[0].value).toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })\r\n : 'R$ 0,00'}\r\n \r\n \r\n \r\n \r\n \r\n Recebimentos\r\n \r\n \r\n \r\n {payload.length > 1\r\n ? parseFloat(payload[1].value).toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })\r\n : 'R$ 0,00'}\r\n \r\n \r\n \r\n \r\n \r\n Pagamentos\r\n \r\n \r\n \r\n {payload.length > 2\r\n ? parseFloat(payload[2].value).toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })\r\n : 'R$ 0,00'}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nFinancialSummaryChartTooltip.propTypes = {\r\n active: PropTypes.bool,\r\n payload: PropTypes.arrayOf(PropTypes.any),\r\n label: PropTypes.string,\r\n};\r\n\r\nFinancialSummaryChartTooltip.defaultProps = {\r\n active: false,\r\n payload: [],\r\n label: '',\r\n};\r\n","/* eslint-disable no-underscore-dangle */\r\n/* eslint-disable func-names */\r\n/* eslint-disable react/prop-types */\r\n/* eslint-disable no-unused-vars */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport React, { useState, useEffect, useContext } from 'react';\r\nimport {\r\n AreaChart,\r\n Area,\r\n XAxis,\r\n YAxis,\r\n CartesianGrid,\r\n Tooltip,\r\n ResponsiveContainer,\r\n} from 'recharts';\r\nimport api from 'services/api';\r\n\r\nimport HomeDateContext from '../context';\r\nimport Loading from './loading';\r\nimport FinancialSummaryChartTooltip from './tooltip';\r\n\r\nconst FinancialSummaryChart = ({\r\n handleSumarization\r\n}) => {\r\n const _handleSumarization = handleSumarization || function () { };\r\n const [data, setData] = useState([]);\r\n const [chartStatus, setChartStatus] = useState({\r\n chartLoadingStatus: 'idle',\r\n errorMessage: '',\r\n });\r\n\r\n const { startDate, endDate } = useContext(HomeDateContext);\r\n\r\n useEffect(() => {\r\n setChartStatus({\r\n ...setChartStatus,\r\n chartLoadingStatus: 'loading',\r\n });\r\n\r\n api\r\n .get(\r\n `Home/DadosGrafico?inicio=${startDate.format(\r\n 'Y-MM-DD',\r\n )}&fim=${endDate.format('Y-MM-DD')}`,\r\n )\r\n .then(response => {\r\n setData(response.data.Valores);\r\n setChartStatus({\r\n ...setChartStatus,\r\n chartLoadingStatus: 'loaded',\r\n });\r\n _handleSumarization({ data: { balance: response.data.Saldo, payments: response.data.Pagamentos, receipts: response.data.Recebimentos }, status: 'loaded', err: null });\r\n })\r\n .catch(err => {\r\n setChartStatus({\r\n chartLoadingStatus: 'error',\r\n errorMessage: err.response,\r\n });\r\n _handleSumarization({ data: [], status: 'error', err: err.response });\r\n });\r\n }, [startDate, endDate]);\r\n\r\n const formatYAxis = value => {\r\n const absValue = Math.abs(value);\r\n const signal = value < 0 ? '-' : '';\r\n\r\n if (absValue < 1000) {\r\n return `${signal}${value.toString()}`;\r\n }\r\n\r\n if (absValue >= 1000 && absValue < 1000000) {\r\n return `${signal}${absValue / 1000}k`;\r\n }\r\n\r\n if (absValue >= 1000000 && absValue < 1000000000) {\r\n return `${signal}${absValue / 1000000}m`;\r\n }\r\n return `${signal}${absValue.toString()}`;\r\n };\r\n\r\n const formatXAxisLabel = values => {\r\n const { x, y, payload } = values;\r\n \r\n if(!payload.value) payload.value = ' '; \r\n const day = payload.value.split(' ')[0];\r\n const month = payload.value.split(' ')[1];\r\n\r\n return (\r\n \r\n \r\n {day}\r\n 3 ? 15 : 7}>\r\n {month}\r\n \r\n \r\n \r\n );\r\n };\r\n\r\n switch (chartStatus.chartLoadingStatus) {\r\n case 'error':\r\n return (\r\n

    Ocorreu um erro ao gerar o gráfico. Tente novamente mais tarde.

    \r\n );\r\n case 'loaded':\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n formatYAxis(value)}\r\n />\r\n \r\n } />\r\n \r\n \r\n \r\n \r\n \r\n );\r\n default:\r\n return <>;\r\n // return ;\r\n }\r\n}\r\nexport default FinancialSummaryChart;","/* eslint-disable no-unused-vars */\r\n\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport styled from 'styled-components';\r\n\r\nexport const FinancialSummaryBoxDiv = styled.div`\r\n width: 100%;\r\n border: 1px solid #e5e5e5;\r\n border-radius: 4px;\r\n box-shadow: 0px 0px 5px RGBA(0, 0, 0, 0.11);\r\n`;\r\n\r\nexport const ColDivider = styled.div`\r\n border-right: 1px solid rgba(242, 242, 242, 0.8);\r\n padding: 0;\r\n width: 220px;\r\n &:last-child {\r\n border-right: none;\r\n }\r\n &:first-child {\r\n width: 57px;\r\n }\r\n /* :nth-child(-n + 2) {\r\n } */\r\n`;\r\n\r\nexport const FinancialSummaryBoxValues = styled.div`\r\n width: 100%;\r\n display: block;\r\n margin: 16px 40px;\r\n &:first-child {\r\n margin: 16px 20px;\r\n }\r\n\r\n span {\r\n padding-right: 20px;\r\n }\r\n img {\r\n margin-top: 5px;\r\n width: 17px;\r\n }\r\n`;\r\n\r\nexport const BorderRow = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n & {\r\n position: relative;\r\n }\r\n\r\n &:after {\r\n background: linear-gradient(\r\n to right,\r\n #828282 57px,\r\n #e0e0e0 57px,\r\n #e0e0e0 100%\r\n );\r\n position: absolute;\r\n bottom: 0;\r\n height: 2px;\r\n content: '';\r\n width: 100%;\r\n }\r\n`;\r\n\r\nexport const FinancialSummaryBalanceKey = styled.span`\r\n display: block;\r\n font-family: Open Sans;\r\n font-weight: 300;\r\n color: #828282;\r\n font-size: 13px;\r\n line-height: 10px;\r\n`;\r\n\r\nexport const FinancialSummaryBalanceValue = styled.span`\r\n display: block;\r\n font-family: Open Sans;\r\n font-weight: 400;\r\n font-size: 13px;\r\n font-style: normal;\r\n line-height: 13px;\r\n letter-spacing: 0.1px;\r\n margin-top: 6px;\r\n color: ${props => props.color};\r\n`;\r\n\r\nexport const HelpIcon = styled.div`\r\n color:#fff;\r\n background-color:#444444;\r\n padding: 2px 5px;\r\n display:inline-block;\r\n border-radius:100%;\r\n font-size:10px;\r\n text-align:center;\r\n text-decoration:none;\r\n -webkit-box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);\r\n -moz-box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);\r\n box-shadow: inset -1px -1px 1px 0px rgba(0,0,0,0.25);\r\n margin-left: 5px;\r\n cursor:pointer;\r\n`;","/* eslint-disable react/jsx-no-bind */\r\n/* eslint-disable func-names */\r\n/* eslint-disable no-shadow */\r\n/* eslint-disable no-unused-vars */\r\nimport HomeImage from 'assets/icons/home.svg';\r\nimport Alert from 'components/Alert';\r\nimport { ButtonDropDown } from 'components/Forms/ButtonDropdown';\r\nimport { DropDownMenu } from 'components/Forms/ButtonDropdown/DropdownMenu/index';\r\nimport { MenuItem } from 'components/Forms/ButtonDropdown/DropdownMenu/menu-item';\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport React, { useState, useContext, useEffect } from 'react';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport api from 'services/api';\r\n\r\nimport HomeDateContext from '../context';\r\nimport FinancialSummaryChart from '../FinancialSummaryChart/index';\r\nimport * as Styled from './styles';\r\n\r\nexport default function FinancialSummaryBox() {\r\n const [data, setData] = useState([]);\r\n const [summaryValuesStatus, setSummaryValuesStatus] = useState({\r\n summaryValuesLoadingStatus: 'idle',\r\n errorMessage: '',\r\n });\r\n const [showAlert, setShowAlert] = useState(false);\r\n\r\n const { startDate, endDate } = useContext(HomeDateContext);\r\n\r\n const handleSumarization = function (obj) {\r\n const { data, status, err } = obj;\r\n setData(data);\r\n setSummaryValuesStatus({\r\n ...setSummaryValuesStatus,\r\n summaryValuesLoadingStatus: status,\r\n errorMessage: err\r\n });\r\n\r\n };\r\n\r\n useEffect(() => {\r\n setSummaryValuesStatus({\r\n ...setSummaryValuesStatus,\r\n summaryValuesLoadingStatus: 'loading',\r\n });\r\n\r\n // api\r\n // .get(\r\n // `Home/DadosResumoFinanceiro?inicio=${startDate.format(\r\n // 'Y-MM-DD',\r\n // )}&fim=${endDate.format('Y-MM-DD')}`,\r\n // )\r\n // .then(response => {\r\n // setData(response.data.Valores);\r\n // // setShowAlert(response.data.Valores.balance < 0);\r\n // setSummaryValuesStatus({\r\n // ...setSummaryValuesStatus,\r\n // summaryValuesLoadingStatus: 'loaded',\r\n // });\r\n // })\r\n // .catch(err => {\r\n // setSummaryValuesStatus({\r\n // summaryValuesLoadingStatus: 'error',\r\n // errorMessage: err.response,\r\n // });\r\n // });\r\n }, [startDate, endDate]);\r\n\r\n function renderValue(valueType) {\r\n switch (summaryValuesStatus.summaryValuesLoadingStatus) {\r\n case 'idle':\r\n case 'loading':\r\n return Carregando...;\r\n case 'error':\r\n return Erro ao carregar os valores;\r\n case 'loaded':\r\n return (\r\n \r\n {parseFloat(data[valueType]).toLocaleString('pt-BR', {\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2,\r\n style: 'currency',\r\n currency: 'BRL',\r\n })}\r\n \r\n );\r\n default:\r\n return

    R$ 0,00

    ;\r\n }\r\n }\r\n\r\n function handleOnClose() {\r\n setShowAlert(false);\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \"Home\"\r\n \r\n \r\n \r\n \r\n \r\n Saldo\r\n ?\r\n \r\n

    O Saldo é referente ao período selecionado, e demonstra o acumulado de entradas/saidas (recebimentos - pagamentos)

    \r\n
    \r\n
    \r\n \r\n {renderValue('balance')}\r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n A Receber\r\n \r\n \r\n {renderValue('receipts')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n A Pagar\r\n \r\n \r\n {renderValue('payments')}\r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n \r\n \r\n NOVA MOVIMENTAÇÃO\r\n \r\n console.log('RECEBIMENTO')}\r\n text=\"NOVO RECEBIMENTO\"\r\n />\r\n console.log('PAGAMENTO')}\r\n text=\"NOVO PAGAMENTO\"\r\n />\r\n \r\n \r\n \r\n */}\r\n
    \r\n \r\n \r\n \r\n Identificamos pontos de atenção no seu fluxo de caixa. Clique para verificar\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","import styled from 'styled-components';\r\n\r\n\r\nexport const StyledShortcut = styled.div`\r\n margin: 0 0 ${ props => props.theme.spacing.margin10 } 0;\r\n width: 100%;\r\n`;\r\n","/* eslint-disable react/prop-types */\r\n\r\nimport Card from 'components/Grid/Card';\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport Text from 'components/Typografy/Text';\r\nimport React from 'react';\r\nimport { withTheme } from 'styled-components';\r\n\r\nimport { StyledShortcut } from './styles';\r\n\r\nconst Shortcut = ({ theme, text, image, url }) => {\r\n const onClick = () => {\r\n const win = window.open(url, '_blank');\r\n win.focus();\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n {text}\r\n \r\n \r\n \r\n \r\n {text}\r\n \r\n \r\n \r\n onClick()}\r\n >\r\n VER MAIS\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default withTheme(Shortcut);\r\n","import Row from 'components/Grid/Row';\r\nimport styled from 'styled-components';\r\n\r\nimport Button from '../../components/Forms/Button';\r\n\r\nexport const BoldSpan = styled.span`\r\n font-weight: 700;\r\n font-size: 20px;\r\n`;\r\n\r\nexport const TitleSpan = styled.span`\r\n margin-left: 30px;\r\n margin-top: 10px;\r\n`;\r\n\r\nexport const HorizontalDivider = styled(Row)`\r\n border-bottom: 1px solid #ebebeb;\r\n padding: 10px;\r\n`;\r\n\r\nexport const MoreInfoLink = styled.a`\r\n text-decoration: none;\r\n color: #828282;\r\n font-weight: bold;\r\n font-size: 13px;\r\n font-family: Open Sans;\r\n cursor: pointer;\r\n margin-top: 20px;\r\n`;\r\nexport const TitleSpanDRE = styled.span`\r\n font-size: 18px;\r\n color: #828282;\r\n align-items: center;\r\n justify-content: center;\r\n text-align: center;\r\n`;\r\nexport const ImageDRE = styled.img`\r\n width: 18px;\r\n height: 17px;\r\n margin-right: 5px;\r\n`;\r\nexport const SectionDRE = styled.section`\r\n padding: 15px 30px 10px 30px;\r\n width: 100%;\r\n minHeight: 328px;\r\n`;\r\nexport const ListDL = styled.ul`\r\n margin-top: 15px;\r\n margin-bottom: 10px;\r\n border-bottom: ${props => props.borderBottom || 'none'};\r\n /* &:last-child {\r\n border-bottom: none;\r\n } */\r\n`;\r\nexport const ItemLista = styled.li`\r\n font-size: ${props => props.fontSize};\r\n line-height: 15px;\r\n color: ${props => props.color || '#828282'};\r\n margin-right: ${props => props.marginRight};\r\n margin-top: ${props => props.marginTop};\r\n margin-bottom: 3px;\r\n list-style: none;\r\n /* border-bottom: 1px solid #828282;\r\n &:last-child{\r\n border-bottom: none;\r\n } */\r\n`;\r\n\r\nexport const ContentDRE = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n width: 100%;\r\n`;\r\n\r\nexport const SubContentDRE = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n width: 100%;\r\n margin-left: 20px;\r\n border-bottom: ${props => props.borderBottom};\r\n`;\r\n\r\nexport const TextLink = styled.a`\r\n font-size: 13px;\r\n font-weight: bold;\r\n color: ${props => props.color};\r\n cursor: pointer;\r\n text-decoration: none;\r\n`;\r\n\r\nexport const ContainerCard = styled.div`\r\n justify-content: ${props => props.justifyContente || 'space-between'};\r\n display: flex;\r\n padding: ${props => props.padding};\r\n align-items: ${props => props.alingItems};\r\n justify-content: space-between;\r\n display: flex;\r\n padding: 24px 10px 30px 10px;\r\n width: 100%;\r\n\r\n > div {\r\n width: 365px;\r\n }\r\n\r\n @media (max-width: 1100px) {\r\n > div {\r\n width: 300px;\r\n margin-bottom: 10px;\r\n }\r\n }\r\n\r\n @media (max-width: 850px) {\r\n width: 100%;\r\n flex-direction: column;\r\n > div {\r\n width: 100%;\r\n margin-bottom: 10px;\r\n }\r\n }\r\n`;\r\n\r\nexport const StyledModal = styled.div`\r\n position: absolute;\r\n background-color: rgba(0, 0, 0, 0.3);\r\n justify-content: center;\r\n align-items: center;\r\n margin: 0.5px;\r\n width: 99.8%;\r\n height: 99.6%;\r\n border-radius: 3px;\r\n display: flex;\r\n\r\n > div {\r\n background-color: #ffffff;\r\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);\r\n border-radius: 4px;\r\n width: 300px;\r\n height: 270px;\r\n margin: 0 auto;\r\n padding: 28px 30px;\r\n display: flex;\r\n flex-direction: column;\r\n\r\n > span {\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: 18px;\r\n line-height: 21px;\r\n color: #828282;\r\n }\r\n\r\n label {\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: 11px;\r\n line-height: 10px;\r\n color: #4f4f4f;\r\n margin-top: 18px;\r\n }\r\n\r\n select {\r\n background: #ffffff;\r\n border: 1px solid #cccccc;\r\n box-sizing: border-box;\r\n border-radius: 4px;\r\n padding: 11px;\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: 12px;\r\n line-height: 13px;\r\n margin-top: 2px;\r\n color: #828282;\r\n }\r\n }\r\n`;\r\n\r\nexport const StyledModalDre = styled.div`\r\n position: absolute;\r\n background-color: rgba(0, 0, 0, 0.3);\r\n justify-content: center;\r\n align-items: center;\r\n margin: 0.5px;\r\n width: 48.8%;\r\n height: 96.6%;\r\n border-radius: 3px;\r\n display: flex;\r\n\r\n > div {\r\n background-color: #ffffff;\r\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);\r\n border-radius: 4px;\r\n width: 300px;\r\n height: 190px;\r\n margin: 0 auto;\r\n padding: 28px 30px;\r\n display: flex;\r\n flex-direction: column;\r\n\r\n > span {\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: 18px;\r\n line-height: 21px;\r\n color: #828282;\r\n }\r\n\r\n label {\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: 11px;\r\n line-height: 10px;\r\n color: #4f4f4f;\r\n margin-top: 18px;\r\n }\r\n\r\n select {\r\n background: #ffffff;\r\n border: 1px solid #cccccc;\r\n box-sizing: border-box;\r\n border-radius: 4px;\r\n padding: 11px;\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: 12px;\r\n line-height: 13px;\r\n margin-top: 2px;\r\n color: #828282;\r\n }\r\n }\r\n`;\r\n\r\nexport const StyledButton = styled(Button)`\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: 700;\r\n line-height: 10px;\r\n letter-spacing: 0.3px;\r\n`;\r\nexport const StyledLabelVisao = styled.label`\r\n color: #5b2e90;\r\n font-family: Open Sans;\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: 11px;\r\n line-height: 21px;\r\n`;\r\n\r\nexport const StatusTitle = styled.span`\r\n color: #ccccd6;\r\n font-size: 14px;\r\n font-family: Open Sans;\r\n width: 100%;\r\n display: block;\r\n text-align: left;\r\n`;","/* eslint-disable jsx-a11y/control-has-associated-label */\r\n/* eslint-disable jsx-a11y/label-has-associated-control */\r\n/* eslint-disable react/button-has-type */\r\n/* eslint-disable jsx-a11y/alt-text */\r\n/* eslint-disable eqeqeq */\r\n/* eslint-disable func-names */\r\n/* eslint-disable no-empty */\r\n/* eslint-disable no-unused-vars */\r\n/* eslint-disable react-hooks/exhaustive-deps */\r\n\r\nimport DreImage from 'assets/icons/dre.svg';\r\nimport fechamentoIcon from 'assets/icons/fechamento.svg';\r\nimport DataGrid from 'components/Datagrid';\r\nimport DatePicker from 'components/Forms/DatePicker';\r\nimport Col from 'components/Grid/Col';\r\nimport Row from 'components/Grid/Row';\r\nimport BackOfficeHeader from 'components/Layout/BackOfficeHeader';\r\nimport Text from 'components/Typografy/Text';\r\nimport moment from 'moment';\r\nimport checkIsNullOrUndefined from 'NullCheck';\r\nimport React, { useState, useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\n\r\nimport Config from '../../assets/icons/config.svg';\r\nimport Lupa from '../../assets/icons/lupa.svg';\r\nimport Card from '../../components/Grid/Card';\r\nimport { getNeoXEndpoint, openNeoXLink } from '../../services/config';\r\nimport everestLocalStorage from '../../storage/everest-local-storage'\r\nimport { Types as ConferenciaDeCaixaTypes } from '../../store/ducks/Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa';\r\nimport { Types as ContaBancariaTypes } from '../../store/ducks/Dashboard/Conferencia&Conciliacao/ContaBancaria';\r\nimport { Types as VendaDeCartaoTypes } from '../../store/ducks/Dashboard/Conferencia&Conciliacao/VendaDeCartao';\r\nimport { Types as ObterContaTypes } from '../../store/ducks/Dashboard/LucroLiquido/ObterConta';\r\nimport { Types as ObterVisaoTypes } from '../../store/ducks/Dashboard/LucroLiquido/ObterVisao';\r\nimport { Types as LucroLiquidoTypes } from '../../store/ducks/Dashboard/LucroLiquido/Ranking';\r\nimport { Types as UpdateVisaoContaTypes } from '../../store/ducks/Dashboard/LucroLiquido/UpdateVisaoConta';\r\nimport { Types as VisaoDeContaTypes } from '../../store/ducks/Dashboard/LucroLiquido/VisaoDeConta';\r\nimport { Types as PendenciasFinanceirasTypes } from '../../store/ducks/Dashboard/PendenciasFinanceiras';\r\nimport { Types as ResultadosDreTypes } from '../../store/ducks/Dashboard/ResultadosDRE';\r\nimport { Types as SaldoDisponivelAntecipacaoTypes } from '../../store/ducks/Dashboard/SaldoDisponivelAntecipacao';\r\nimport theme from '../../styles/theme';\r\nimport BalanceAccountsCard from './BalanceAccountsCard';\r\nimport BankAccountConciliationStatusCard from './BankAccountConciliationStatusCard';\r\nimport CashConferenceStatusCard from './CashConferenceStatusCard';\r\nimport HomeDateContext from './context';\r\nimport CreditCardSalesConciliationStatusCard from './CreditCardSalesConciliationStatusCard';\r\nimport FinancialSummaryBox from './FinancialSummaryBox';\r\nimport Shortcut from './Shortcut';\r\nimport {\r\n BoldSpan,\r\n TitleSpan,\r\n HorizontalDivider,\r\n SectionDRE,\r\n SubContentDRE,\r\n ContentDRE,\r\n ImageDRE,\r\n TitleSpanDRE,\r\n ItemLista,\r\n ListDL,\r\n TextLink,\r\n MoreInfoLink,\r\n ContainerCard,\r\n StyledModal,\r\n StyledModalDre,\r\n StyledButton,\r\n StyledLabelVisao,\r\n StatusTitle\r\n} from './styles';\r\n// import { pendencias, saldo, mockDRE, mockDRE2, lucro, prejuizo } from './mock';\r\n\r\nexport default function Home() {\r\n const dispatch = useDispatch();\r\n const PendenciasFinanceirasData = useSelector(\r\n state => state.PendenciasFinanceirasReducer,\r\n );\r\n const SaldoDisponivelAntecipacaoData = useSelector(\r\n state => state.SaldoDisponivelAntecipacaoReducer,\r\n );\r\n const ResultadosDreData = useSelector(state => state.ResultadosDreReducer);\r\n const ObterVisaoData = useSelector(state => state.ObterVisaoReducer);\r\n const ObterContaData = useSelector(state => state.ObterContaReducer);\r\n const UpdateVisaoData = useSelector(state => state.UpdateVisaoContaReducer);\r\n const LucroLiquidoData = useSelector(state => state.LucroLiquidoReducer);\r\n const [isModalVisible, setModalVisible] = useState(false);\r\n const [isModalDREVisible, setModalDREVisible] = useState(false);\r\n const [visaoEncontrada, setVisaoEncontrada] = useState(false);\r\n const [visaoDeConta, setVisaoDeConta] = useState('Não encontrado');\r\n const [visaoDeContaDre, setVisaoDeContaDre] = useState('');\r\n const [contaTotalizadora, setContaTotalizadora] = useState('');\r\n const [date, setDate] = useState({\r\n startDate: moment().subtract(1, 'months'),\r\n endDate: moment(),\r\n });\r\n\r\n\r\n useEffect(() => {\r\n const visao = everestLocalStorage.getItem('visaoDre')\r\n\r\n if(visao) {\r\n setVisaoDeContaDre({ id: visao.id, visao: visao.visao })\r\n }\r\n\r\n dispatch({\r\n type: ResultadosDreTypes.GET_RESULTADOS_DRE,\r\n payload: {\r\n date,\r\n idVisao: visao ? visao.id : null\r\n },\r\n });\r\n dispatch({\r\n type: VendaDeCartaoTypes.GET_VENDA_DE_CARTAO,\r\n payload: {\r\n date,\r\n },\r\n });\r\n dispatch({\r\n type: ConferenciaDeCaixaTypes.GET_CONFERENCIA_DE_CAIXA,\r\n payload: {\r\n date,\r\n },\r\n });\r\n dispatch({\r\n type: ContaBancariaTypes.GET_CONTA_BANCARIA,\r\n payload: {\r\n date,\r\n },\r\n });\r\n }, [date]);\r\n\r\n useEffect(() => {\r\n dispatch({\r\n type: PendenciasFinanceirasTypes.GET_PENDENCIAS_FINANCEIRAS,\r\n });\r\n dispatch({\r\n type: SaldoDisponivelAntecipacaoTypes.GET_SALDO_DISPONIVEL_ANTECIPACAO,\r\n });\r\n dispatch({\r\n type: VisaoDeContaTypes.GET_VISAO_DE_CONTA,\r\n });\r\n dispatch({\r\n type: ObterVisaoTypes.GET_OBTER_VISAO,\r\n });\r\n\r\n const visaoLucroLiquido = everestLocalStorage.getItem('visaoLucroLiquido')\r\n const idContaLucroLiquido = everestLocalStorage.getItem('idContaLucroLiquido')\r\n\r\n if(visaoLucroLiquido && idContaLucroLiquido){\r\n setVisaoDeConta(visaoLucroLiquido)\r\n setVisaoEncontrada(true);\r\n dispatch({\r\n type: LucroLiquidoTypes.GET_LUCRO_LIQUIDO,\r\n payload: {\r\n date,\r\n visao: visaoLucroLiquido.id,\r\n conta: idContaLucroLiquido\r\n },\r\n });\r\n \r\n dispatch({\r\n type: UpdateVisaoContaTypes.SET_VISAO,\r\n payload: {\r\n visao: visaoLucroLiquido.id,\r\n conta: idContaLucroLiquido,\r\n },\r\n });\r\n }\r\n }, []);\r\n\r\n\r\n function handleDatesChange(newDate) {\r\n setDate({ ...date, ...newDate });\r\n }\r\n\r\n\r\n function handleChangeVisaoConta(e) {\r\n e.preventDefault();\r\n const index = e.target.selectedIndex;\r\n setVisaoDeConta({ id: e.target.value, visao: e.target[index].text });\r\n dispatch({\r\n type: ObterContaTypes.GET_OBTER_CONTA,\r\n payload: {\r\n idFinVisao: e.target.value,\r\n },\r\n });\r\n }\r\n\r\n function handleChangeVisaoContaDre(e) {\r\n e.preventDefault();\r\n const index = e.target.selectedIndex;\r\n \r\n setVisaoDeContaDre({ id: e.target.value, visao: e.target[index].text });\r\n }\r\n\r\n function HandleApply() {\r\n setVisaoEncontrada(true);\r\n setModalVisible(!isModalVisible);\r\n dispatch({\r\n type: LucroLiquidoTypes.GET_LUCRO_LIQUIDO,\r\n payload: {\r\n date,\r\n visao: visaoDeConta.id,\r\n conta: contaTotalizadora\r\n },\r\n });\r\n // setTimeout(() => \r\n dispatch({\r\n type: UpdateVisaoContaTypes.SET_VISAO,\r\n payload: {\r\n visao: visaoDeConta.id,\r\n conta: contaTotalizadora,\r\n },\r\n });\r\n // , 500);\r\n everestLocalStorage.setItem('visaoLucroLiquido', visaoDeConta)\r\n everestLocalStorage.setItem('idContaLucroLiquido', contaTotalizadora)\r\n }\r\n\r\n function HandleApplyDre() {\r\n setModalDREVisible(!isModalDREVisible);\r\n dispatch({\r\n type: ResultadosDreTypes.GET_RESULTADOS_DRE,\r\n payload: {\r\n date,\r\n idVisao: visaoDeContaDre.id,\r\n },\r\n });\r\n\r\n everestLocalStorage.setItem('visaoDre', visaoDeContaDre)\r\n }\r\n\r\n function resizeParent() {\r\n try {\r\n // var contentContainer = document.querySelector(\".site-container\");\r\n // var contentHeight = contentContainer.style[\"height\"];\r\n const res = document.body.scrollHeight;// contentHeight.replace(\"px\", \"\");\r\n let num = Number(res);\r\n num = num < 820 ? 820 : num;\r\n num = `${(num + 50).toString() }px`;\r\n window.parent.postMessage(\"getLS\", \"*\");\r\n window.parent.postMessage(num, \"*\");\r\n } catch { }\r\n }\r\n useEffect(() => {\r\n \r\n setTimeout(function () {\r\n resizeParent();\r\n }, 5000);\r\n window.addEventListener('resize', function (event) {\r\n resizeParent();\r\n }, true);\r\n window.document.getElementsByTagName(\"body\")[0].addEventListener('DOMSubtreeModified', function () {\r\n resizeParent();\r\n });\r\n });\r\n\r\n let dreId = 0;\r\n let dreSubId = 0;\r\n function renderDRE(item) {\r\n return (\r\n \r\n \r\n \r\n {item.Descricao}\r\n \r\n 0\r\n ? '#6FCF97'\r\n : item.Valor == null\r\n ? '#F2994A'\r\n : '#EB5757'\r\n }\r\n fontSize=\"13px\"\r\n >\r\n {item != null\r\n ? Intl.NumberFormat('pt-BR', {\r\n style: 'currency',\r\n currency: 'BRL',\r\n }).format(\r\n item.Valor || 0,\r\n )\r\n : 'Não encontrado'}\r\n \r\n \r\n {!!(item.Filhos || []).length && item.Filhos.map(renderDRESubitem)}\r\n \r\n);\r\n }\r\n function renderDRESubitem(item) {\r\n return (\r\n \r\n \r\n {item.Descricao}\r\n \r\n \r\n 0\r\n ? '#6FCF97'\r\n : item.Valor == null\r\n ? '#F2994A'\r\n : '#EB5757'\r\n }\r\n >\r\n {item !=\r\n null\r\n ? Intl.NumberFormat('pt-BR', {\r\n style: 'currency',\r\n currency: 'BRL',\r\n }).format(\r\n item.Valor || 0,\r\n )\r\n : 'Não encontrado'}\r\n \r\n \r\n);\r\n }\r\n return (\r\n
    \r\n \r\n {/* \r\n Visão Geral - Linx UX\r\n */}\r\n \r\n
    \r\n \r\n \r\n \r\n \r\n Resumo Financeiro\r\n \r\n \r\n \r\n \r\n \r\n \r\n Período\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n \r\n \r\n \r\n \r\n \r\n \r\n */}\r\n \r\n \r\n
    \r\n \r\n {/* */}\r\n \r\n \r\n \r\n \r\n {' '}\r\n \r\n \r\n Resultados (DRE)\r\n \r\n setModalDREVisible(!isModalDREVisible)}\r\n >\r\n \r\n \r\n \r\n Tipo Regime: Competência\r\n \r\n \r\n {'Visão de conta: '} \r\n {' '}\r\n {visaoDeContaDre ? visaoDeContaDre.visao : ''} \r\n \r\n \r\n {ResultadosDreData.loading ? (\r\n \r\n \r\n Carregando Informações...\r\n

    \r\n
    \r\n )\r\n :\r\n !!(ResultadosDreData.data || []).length && ResultadosDreData.data.map(renderDRE)}\r\n \r\n VER MAIS\r\n \r\n \r\n \r\n {isModalDREVisible && (\r\n \r\n
    \r\n Alterar visão de contas\r\n \r\n \r\n \r\n
    \r\n setModalDREVisible(!isModalDREVisible)}\r\n >\r\n CANCELAR\r\n \r\n
    \r\n HandleApplyDre()}\r\n >\r\n APLICAR\r\n \r\n
    \r\n
    \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n Pendências Financeiras\r\n \r\n {PendenciasFinanceirasData.loading ? (\r\n \r\n \r\n Carregando Informações...\r\n

    \r\n
    \r\n )\r\n : (\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n A Pagar\r\n {/* }\r\n \r\n  (ver mais)\r\n { */}\r\n\r\n \r\n \r\n A Receber\r\n {/* } \r\n \r\n  (ver mais)\r\n \r\n { */}\r\n \r\n \r\n \r\n\r\n \r\n {PendenciasFinanceirasData &&\r\n PendenciasFinanceirasData.data.map((item, index) => (\r\n \r\n \r\n \r\n {item.Data}\r\n \r\n \r\n \r\n \r\n {Intl.NumberFormat('pt-BR', {\r\n style: 'currency',\r\n currency: 'BRL',\r\n }).format(item.APagar || 0)}\r\n \r\n \r\n \r\n \r\n {Intl.NumberFormat('pt-BR', {\r\n style: 'currency',\r\n currency: 'BRL',\r\n }).format(item.AReceber || 0)}\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n Saldo disponível para antecipação\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n Cartão\r\n \r\n \r\n \r\n \r\n {Intl.NumberFormat('pt-BR', {\r\n style: 'currency',\r\n currency: 'BRL',\r\n }).format(\r\n SaldoDisponivelAntecipacaoData.data\r\n .CartaoCredito || 0,\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Boleto\r\n \r\n \r\n \r\n \r\n {Intl.NumberFormat('pt-BR', {\r\n style: 'currency',\r\n currency: 'BRL',\r\n }).format(\r\n SaldoDisponivelAntecipacaoData.data.Boleto || 0,\r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {/* \r\n \r\n Conferência & Conciliação\r\n \r\n \r\n \r\n \r\n \r\n Período\r\n \r\n \r\n \r\n \r\n \r\n */}\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n \r\n Lucro Líquido\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n Ranking de lojas com maior lucro líquido/Prejuízo\r\n \r\n \r\n Visão de contas: \r\n {' '}\r\n {visaoDeConta.visao}\r\n \r\n
    \r\n setModalVisible(!isModalVisible)}\r\n >\r\n \r\n \r\n
    \r\n {visaoEncontrada ? (\r\n (LucroLiquidoData.loading)\r\n ? (\r\n \r\n \r\n Carregando Informações...\r\n

    \r\n
    \r\n )\r\n :\r\n (!LucroLiquidoData.loading && !(LucroLiquidoData.data.Prejuizo || []).length && !(LucroLiquidoData.data.Lucro || []).length)\r\n ? (\r\n \r\n \r\n Não existem dados para o período informado\r\n

    \r\n
    \r\n )\r\n : (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n Lucro\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {(LucroLiquidoData.data.Lucro || []).map(item => (\r\n \r\n \r\n \r\n {item.Loja}\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n {Intl.NumberFormat('pt-BR', {\r\n style: 'percent',\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2\r\n }).format(Number((item.Porcentagem) || 0) / 100)}\r\n \r\n \r\n \r\n \r\n {Intl.NumberFormat('pt-BR', {\r\n style: 'currency',\r\n currency: 'BRL',\r\n }).format(Number(item.Valor) || 0)}\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n Prejuizo\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {(LucroLiquidoData.data.Prejuizo || []).map(item => (\r\n \r\n \r\n \r\n {item.Loja}\r\n \r\n \r\n \r\n \r\n\r\n {Intl.NumberFormat('pt-BR', {\r\n style: 'percent',\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2\r\n }).format(Number((item.Porcentagem) || 0) / 100)}\r\n \r\n \r\n \r\n \r\n {Intl.NumberFormat('pt-BR', {\r\n style: 'currency',\r\n currency: 'BRL',\r\n }).format(Number(item.Valor) || 0)}\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n )\r\n ) : (\r\n \r\n \r\n \r\n Selecione uma visão de contas para visualizar esta\r\n informação\r\n

    \r\n setModalVisible(!isModalVisible)}\r\n >\r\n SELECIONAR AGORA\r\n \r\n
    \r\n )}\r\n {/* \r\n \r\n VER MAIS\r\n \r\n */}\r\n \r\n {isModalVisible && (\r\n \r\n
    \r\n Alterar visão de contas\r\n \r\n \r\n \r\n setContaTotalizadora(e.target.value)}\r\n >\r\n \r\n ))}\r\n \r\n \r\n
    \r\n setModalVisible(!isModalVisible)}\r\n >\r\n CANCELAR\r\n \r\n
    \r\n HandleApply()}\r\n >\r\n APLICAR\r\n \r\n
    \r\n \r\n
    \r\n )}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n );\r\n}\r\n\r\n","import Conciliation from 'pages/Conciliation';\r\nimport NotAuthorizedPage from 'pages/ErrorPages/NotAuthorizedPage';\r\nimport FinancialMovement from 'pages/FinancialMovement';\r\nimport Home from 'pages/Home';\r\nimport React from 'react';\r\nimport { BrowserRouter, Switch, Route } from 'react-router-dom';\r\n\r\nexport default function MainRoutes() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","export const Types = {\r\n GET_CONCILIATION_ACQUIRER:'conciliation/GET_CONCILIATION_ACQUIRER',\r\n GET_CONCILIATION_ACQUIRER_SUCCESS:'conciliation/GET_CONCILIATION_ACQUIRER_SUCCESS',\r\n GET_CONCILIATION_ACQUIRER_ERROR:'conciliation/GET_CONCILIATION_ACQUIRER_ERROR'\r\n }\r\n \r\n const INITIAL_STATE = {\r\n acquirerSalesIds:[],\r\n loading: false,\r\n error: '',\r\n }\r\n \r\n export default function conciliationAcquirers(state = INITIAL_STATE, action){\r\n \r\n switch(action.type){\r\n case Types.GET_CONCILIATION_ACQUIRER:{\r\n return {\r\n acquirerSalesIds:[],\r\n loading:true,\r\n error:''\r\n }\r\n }\r\n case Types.GET_CONCILIATION_ACQUIRER_SUCCESS:{\r\n return {\r\n acquirerSalesIds:action.payload,\r\n loading:false, \r\n error:''\r\n }\r\n }\r\n \r\n case Types.GET_CONCILIATION_ACQUIRER_ERROR:{\r\n return {\r\n acquirerSalesIds:[], \r\n loading:false, \r\n error:action.payload.error\r\n }\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n }\r\n ","export const Types = {\r\n GET_CONCILIATION_RECEIVE:'conciliation/GET_CONCILIATION_RECEIVE',\r\n GET_CONCILIATION_RECEIVE_SUCCESS:'conciliation/GET_CONCILIATION_RECEIVE_SUCCESS',\r\n GET_CONCILIATION_RECEIVE_ERROR:'conciliation/GET_CONCILIATION_RECEIVE_ERROR'\r\n }\r\n \r\n const INITIAL_STATE = {\r\n acquirerSalesIds:[],\r\n loading: false,\r\n error: '',\r\n }\r\n \r\n export default function conciliationReceive(state = INITIAL_STATE, action){\r\n \r\n switch(action.type){\r\n case Types.GET_CONCILIATION_RECEIVE:{\r\n return {\r\n cardReceiveIds:[],\r\n loading:true,\r\n error:''\r\n }\r\n }\r\n case Types.GET_CONCILIATION_RECEIVE_SUCCESS:{\r\n return {\r\n cardReceiveIds:action.payload.conciliate, \r\n loading:false, \r\n error:''\r\n }\r\n }\r\n \r\n case Types.GET_CONCILIATION_RECEIVE_ERROR:{\r\n return {\r\n cardReceiveIds:[], \r\n loading:false, \r\n error:action.payload.error\r\n }\r\n }\r\n \r\n default:\r\n return state;\r\n }\r\n }\r\n ","import { combineReducers } from 'redux';\r\n\r\nimport AcquirersReducer from './ducks/Conciliation/Acquirers';\r\nimport CardBrandsReducer from './ducks/Conciliation/CardBrands';\r\nimport ConciliationReducer from './ducks/Conciliation/ConciliationAcquirerList';\r\nimport ConciliationReceiveReducer from './ducks/Conciliation/ConciliationCardReceiveList';\r\nimport FiltersBarsCardsReducer from './ducks/Conciliation/FiltersBars';\r\nimport FiltersChartReducer from './ducks/Conciliation/FiltersChart';\r\nimport SubsidiariesReducer from './ducks/Conciliation/Subsidiaries';\r\nimport ConferenciaDeCaixaReducer from './ducks/Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa';\r\nimport ContaBancariaReducer from './ducks/Dashboard/Conferencia&Conciliacao/ContaBancaria';\r\nimport VendaDeCartaoReducer from './ducks/Dashboard/Conferencia&Conciliacao/VendaDeCartao';\r\nimport ObterContaReducer from './ducks/Dashboard/LucroLiquido/ObterConta';\r\nimport ObterVisaoReducer from './ducks/Dashboard/LucroLiquido/ObterVisao';\r\nimport LucroLiquidoReducer from './ducks/Dashboard/LucroLiquido/Ranking';\r\nimport UpdateVisaoContaReducer from './ducks/Dashboard/LucroLiquido/UpdateVisaoConta';\r\nimport VisaoDeContaReducer from './ducks/Dashboard/LucroLiquido/VisaoDeConta';\r\nimport PendenciasFinanceirasReducer from './ducks/Dashboard/PendenciasFinanceiras';\r\nimport ResultadosDreReducer from './ducks/Dashboard/ResultadosDRE';\r\nimport SaldoDisponivelAntecipacaoReducer from './ducks/Dashboard/SaldoDisponivelAntecipacao';\r\n\r\nconst reducer = combineReducers({\r\n AcquirersReducer,\r\n CardBrandsReducer,\r\n SubsidiariesReducer,\r\n FiltersChartReducer,\r\n ConciliationReducer,\r\n FiltersBarsCardsReducer,\r\n ConciliationReceiveReducer,\r\n ResultadosDreReducer,\r\n LucroLiquidoReducer,\r\n ObterVisaoReducer,\r\n ObterContaReducer,\r\n UpdateVisaoContaReducer,\r\n VisaoDeContaReducer,\r\n PendenciasFinanceirasReducer,\r\n VendaDeCartaoReducer,\r\n ConferenciaDeCaixaReducer,\r\n SaldoDisponivelAntecipacaoReducer,\r\n ContaBancariaReducer,\r\n});\r\n\r\nexport default reducer;\r\n","import {call, put} from 'redux-saga/effects';\r\nimport * as ConciliationServices from 'services/conciliationServices';\r\n\r\nimport {Types as Acquirers} from '../../../ducks/Conciliation/Acquirers'; \r\n\r\nexport function* getAcquirers(){\r\n try {\r\n \r\n const response = yield call(ConciliationServices.getAcquirers);\r\n\r\n yield put({\r\n type: Acquirers.GET_ACQUIRERS_SUCCESS,\r\n data:response\r\n })\r\n \r\n } catch (error) {\r\n\r\n yield put({\r\n type: Acquirers.GET_ACQUIRERS_ERROR, error\r\n })\r\n \r\n }\r\n}\r\n","import {call, put} from 'redux-saga/effects';\r\nimport * as ConciliationServices from 'services/conciliationServices';\r\n\r\nimport {Types as CardBrands} from '../../../ducks/Conciliation/CardBrands'; \r\n\r\nexport function* getCardBrands(){\r\n try {\r\n \r\n const response = yield call(ConciliationServices.getCardBrands);\r\n\r\n yield put({\r\n type: CardBrands.GET_CARDBRANDS_SUCCESS,\r\n data:response\r\n })\r\n \r\n } catch (error) {\r\n\r\n yield put({\r\n type: CardBrands.GET_CARDBRANDS_ERROR, error\r\n })\r\n \r\n }\r\n}\r\n","/* eslint-disable no-unused-vars */\r\nimport {put} from 'redux-saga/effects';\r\nimport * as ConciliationServices from 'services/conciliationServices';\r\n\r\nimport {Types as Conciliation} from '../../../ducks/Conciliation/ConciliationAcquirerList'; \r\nimport {Types as ConciliationReceive} from '../../../ducks/Conciliation/ConciliationCardReceiveList'; \r\n\r\nexport function* getConciliation(action){\r\n try {\r\n \r\n const [{id}] = action.payload;\r\n const [{idReceberCartao}] = action.payload;\r\n\r\n\r\n // const conciliate = yield ConciliationServices.conciliate({dados});\r\n\r\n yield put({\r\n type:Conciliation.GET_CONCILIATION_ACQUIRER_SUCCESS,\r\n payload:{\r\n id\r\n }\r\n })\r\n \r\n yield put({\r\n type:ConciliationReceive.GET_CONCILIATION_RECEIVE_SUCCESS,\r\n payload:{\r\n idReceberCartao\r\n }\r\n })\r\n \r\n } catch (error) {\r\n\r\n yield put({\r\n // type: Acquirers.GET_ACQUIRERS_ERROR, error\r\n })\r\n \r\n }\r\n}\r\n","import {put} from 'redux-saga/effects';\r\nimport * as ConciliationServices from 'services/conciliationServices';\r\n\r\nimport {Types as FiltersBarsCards} from '../../../ducks/Conciliation/FiltersBars'\r\nimport {Types as FiltersChart} from '../../../ducks/Conciliation/FiltersChart';\r\n\r\nexport function* getFiltersBars(action) {\r\n \r\n try {\r\n \r\n const data = action.payload;\r\n \r\n const cardReceive = yield ConciliationServices.getCardReceiveUnconcealedSales(data);\r\n const sizeCardReceive = cardReceive.records.length;\r\n\r\n const sumResponseFileReceive = yield cardReceive.records.reduce((accumulator, currentValue) => accumulator + currentValue.valorOriginal, 0);\r\n const sumReceive = Number.parseFloat(sumResponseFileReceive).toFixed(2);\r\n \r\n const cardAcquirer = yield ConciliationServices.getAcquirerUnconcealedSales(data);\r\n const sizeCardAcquirer = cardAcquirer.records.length;\r\n\r\n\r\n const sumResponseFile = yield cardAcquirer.records.reduce((accumulator, currentValue) => accumulator + currentValue.grossValue, 0);\r\n const sumAcquirer = Number.parseFloat(sumResponseFile).toFixed(2);\r\n\r\n yield put({\r\n type: FiltersBarsCards.GET_FILTERSBARS_SUCCESS,\r\n payload: {\r\n cardReceive,\r\n sizeCardReceive,\r\n cardAcquirer,\r\n sizeCardAcquirer,\r\n sumAcquirer,\r\n sumReceive\r\n }\r\n });\r\n\r\n \r\n } catch (error) {\r\n\r\n yield put({\r\n type: FiltersBarsCards.GET_FILTERSBARS_ERROR,\r\n payload: error\r\n });\r\n \r\n }\r\n}\r\n\r\n\r\nexport function* getFiltersChart(action) {\r\n \r\n try {\r\n const filters = action.payload;\r\n \r\n const records = yield ConciliationServices.getChartResume(filters);\r\n \r\n yield put({\r\n type : FiltersChart.GET_FILTERSBARS_CHART_SUCCESS,\r\n payload: records\r\n });\r\n \r\n } catch (error) {\r\n yield put({\r\n type : FiltersChart.GET_FILTERSBARS_CHART_ERROR,\r\n payload: error\r\n });\r\n }\r\n}\r\n\r\n","import {call, put} from 'redux-saga/effects';\r\nimport * as ConciliationServices from 'services/conciliationServices';\r\n\r\nimport {Types as Subsidiaries} from '../../../ducks/Conciliation/Subsidiaries'; \r\n\r\nexport function* getSubsidiaries(){\r\n try {\r\n \r\n const response = yield call(ConciliationServices.getSubsidiaries);\r\n\r\n yield put({\r\n type: Subsidiaries.GET_SUBSIDIARIES_SUCCESS,\r\n data:response\r\n })\r\n \r\n } catch (error) {\r\n\r\n yield put({\r\n type: Subsidiaries.GET_SUBSIDIARIES_ERROR, error\r\n })\r\n \r\n }\r\n}\r\n","import { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../../services/api';\r\nimport { Types as ConferenciaDeCaixaTypes } from '../../../../ducks/Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa';\r\n\r\nexport function* getConferenciaDeCaixa(action) {\r\n try {\r\n const { startDate, endDate } = action.payload.date;\r\n\r\n const response = yield call(\r\n api.get,\r\n `/api/v1/cash-conference/store-movement?InitialDate=${startDate.format(\r\n 'Y-MM-DD',\r\n )}&FinalDate=${endDate.format('Y-MM-DD')}`,\r\n );\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: ConferenciaDeCaixaTypes.GET_CONFERENCIA_DE_CAIXA_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: ConferenciaDeCaixaTypes.GET_CONFERENCIA_DE_CAIXA_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","import { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../../services/api';\r\nimport { Types as ContaBancariaTypes } from '../../../../ducks/Dashboard/Conferencia&Conciliacao/ContaBancaria';\r\n\r\nexport function* getContaBancaria(action) {\r\n try {\r\n const { startDate, endDate } = action.payload.date;\r\n\r\n const response = yield call(\r\n api.get,\r\n `/api/v1/bank-conciliation/status?InitialDate=${startDate.format(\r\n 'Y-MM-DD',\r\n )}&FinalDate=${endDate.format('Y-MM-DD')}`,\r\n );\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: ContaBancariaTypes.GET_CONTA_BANCARIA_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: ContaBancariaTypes.GET_CONTA_BANCARIA_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","import { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../../services/api';\r\nimport { Types as VendaDeCartaoTypes } from '../../../../ducks/Dashboard/Conferencia&Conciliacao/VendaDeCartao';\r\n\r\nexport function* getVendaDeCartao(action) {\r\n try {\r\n const { startDate } = action.payload.date;\r\n\r\n const response = yield call(\r\n api.get,\r\n `/api/v2/conciliation/unconcilied-sales?InitialDate=${startDate.format(\r\n 'Y-MM-DD',\r\n )}`,\r\n );\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: VendaDeCartaoTypes.GET_VENDA_DE_CARTAO_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: VendaDeCartaoTypes.GET_VENDA_DE_CARTAO_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","import { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../../services/api';\r\nimport { Types as ObterContaTypes } from '../../../../ducks/Dashboard/LucroLiquido/ObterConta';\r\n\r\nexport function* getObterConta(action) {\r\n try {\r\n const { idFinVisao } = action.payload;\r\n const response = yield call(\r\n api.post,\r\n `filtros/contas?idFinVisao=${Number(idFinVisao)}`,\r\n );\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: ObterContaTypes.GET_OBTER_CONTA_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: ObterContaTypes.GET_OBTER_CONTA_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","import { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../../services/api';\r\nimport { Types as ObterVisaoTypes } from '../../../../ducks/Dashboard/LucroLiquido/ObterVisao';\r\n\r\nexport function* getObterVisao() {\r\n try {\r\n const response = yield call(api.post, 'filtros/visoes');\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: ObterVisaoTypes.GET_OBTER_VISAO_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: ObterVisaoTypes.GET_OBTER_VISAO_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","import { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../../services/api';\r\nimport { Types as LucroLiquidoTypes } from '../../../../ducks/Dashboard/LucroLiquido/Ranking';\r\n\r\nexport function* getLucroLiquido(action) {\r\n try {\r\n const { date, visao, conta } = action.payload;\r\n const { startDate, endDate } = date;\r\n if (!date || !visao) return;\r\n\r\n const response = yield call(\r\n api.get,\r\n `Home/ObterLucroLiquidoDashboard?dataInicial=${startDate.format('Y-MM-DD',)}&dataFinal=${endDate.format('Y-MM-DD')}&idVisao=${visao}&idConta=${conta}`,\r\n );\r\n if (response.status === 200) {\r\n yield put({\r\n type: LucroLiquidoTypes.GET_LUCRO_LIQUIDO_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: LucroLiquidoTypes.GET_LUCRO_LIQUIDO_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","import { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../../services/api';\r\nimport { Types as UpdateVisaoTypes } from '../../../../ducks/Dashboard/LucroLiquido/UpdateVisaoConta';\r\n\r\nexport function* setUpdateVisao(action) {\r\n try {\r\n const { visao, conta } = action.payload;\r\n const response = yield call(\r\n api.post,\r\n `Home/UpdateNetProfitParameters?visao=${visao}&conta=${conta}`,\r\n );\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: UpdateVisaoTypes.SET_VISAO_SUCCESS,\r\n valid: true,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: UpdateVisaoTypes.SET_VISAO_ERROR,\r\n valid: error,\r\n error,\r\n });\r\n }\r\n}\r\n","/* eslint-disable no-unused-vars */\r\nimport { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../../services/api';\r\nimport { Types as VisaoDeContaTypes } from '../../../../ducks/Dashboard/LucroLiquido/VisaoDeConta';\r\n\r\nexport function* getVisaoDeConta(action) {\r\n try {\r\n const response = yield call(api.get, 'Home/GetNetProfitParameters');\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: VisaoDeContaTypes.GET_VISAO_DE_CONTA_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: VisaoDeContaTypes.GET_VISAO_DE_CONTA_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","/* eslint-disable no-unused-vars */\r\nimport { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../services/api';\r\nimport { Types as PendenciasFinanceirasTypes } from '../../../ducks/Dashboard/PendenciasFinanceiras';\r\n\r\nexport function* getPendenciasFinanceiras(action) {\r\n try {\r\n const response = yield call(api.get, 'Home/ObterPendenciasFinanceiras');\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: PendenciasFinanceirasTypes.GET_PENDENCIAS_FINANCEIRAS_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: PendenciasFinanceirasTypes.GET_PENDENCIAS_FINANCEIRAS_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","import { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../services/api';\r\nimport { Types as ResultadosDreTypes } from '../../../ducks/Dashboard/ResultadosDRE';\r\n\r\nexport function* getResultadosDre(action) {\r\n try {\r\n const { date: {startDate, endDate}, idVisao } = action.payload;\r\n\r\n const response = yield call(\r\n api.get,\r\n `Home/GetCardFromVisao?dataInicial=${startDate.format(\r\n 'Y-MM-DD',\r\n )}&dataFinal=${endDate.format('Y-MM-DD')}&idVisao=${idVisao}`,\r\n );\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type: ResultadosDreTypes.GET_RESULTADOS_DRE_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type: ResultadosDreTypes.GET_RESULTADOS_DRE_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","/* eslint-disable no-unused-vars */\r\nimport { call, put } from 'redux-saga/effects';\r\n\r\nimport api from '../../../../services/api';\r\nimport { Types as SaldoDisponivelAntecipacaoTypes } from '../../../ducks/Dashboard/SaldoDisponivelAntecipacao';\r\n\r\nexport function* getSaldoDisponivelAntecipacao(action) {\r\n try {\r\n const response = yield call(\r\n api.get,\r\n 'Home/ObterSaldoDisponivelAntecipacao',\r\n );\r\n\r\n if (response.status === 200) {\r\n yield put({\r\n type:\r\n SaldoDisponivelAntecipacaoTypes.GET_SALDO_DISPONIVEL_ANTECIPACAO_SUCCESS,\r\n data: response.data,\r\n });\r\n }\r\n } catch (error) {\r\n yield put({\r\n type:\r\n SaldoDisponivelAntecipacaoTypes.GET_SALDO_DISPONIVEL_ANTECIPACAO_ERROR,\r\n error,\r\n });\r\n }\r\n}\r\n","import { all, takeLatest } from 'redux-saga/effects';\r\n\r\nimport { Types as Acquirers } from './ducks/Conciliation/Acquirers';\r\nimport { Types as CardBrands } from './ducks/Conciliation/CardBrands';\r\nimport { Types as Conciliation } from './ducks/Conciliation/ConciliationAcquirerList';\r\nimport { Types as ConciliationReceive } from './ducks/Conciliation/ConciliationCardReceiveList';\r\nimport { Types as FiltersBarsCards } from './ducks/Conciliation/FiltersBars';\r\nimport { Types as FiltersChart } from './ducks/Conciliation/FiltersChart';\r\nimport { Types as Subsidiaries } from './ducks/Conciliation/Subsidiaries';\r\nimport { Types as ConferenciaDeCaixa } from './ducks/Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa';\r\nimport { Types as ContaBancaria } from './ducks/Dashboard/Conferencia&Conciliacao/ContaBancaria';\r\nimport { Types as VendaDeCartao } from './ducks/Dashboard/Conferencia&Conciliacao/VendaDeCartao';\r\nimport { Types as ObterConta } from './ducks/Dashboard/LucroLiquido/ObterConta';\r\nimport { Types as ObterVisao } from './ducks/Dashboard/LucroLiquido/ObterVisao';\r\nimport { Types as LucroLiquido } from './ducks/Dashboard/LucroLiquido/Ranking';\r\nimport { Types as UpdateVisaoConta } from './ducks/Dashboard/LucroLiquido/UpdateVisaoConta';\r\nimport { Types as VisaoDeConta } from './ducks/Dashboard/LucroLiquido/VisaoDeConta';\r\nimport { Types as PendenciasFinanceiras } from './ducks/Dashboard/PendenciasFinanceiras';\r\nimport { Types as ResultadosDre } from './ducks/Dashboard/ResultadosDRE';\r\nimport { Types as SaldoDisponivelAntecipacao } from './ducks/Dashboard/SaldoDisponivelAntecipacao';\r\nimport { getAcquirers } from './sagas/Conciliation/Acquirers';\r\nimport { getCardBrands } from './sagas/Conciliation/CardBrands';\r\nimport { getConciliation } from './sagas/Conciliation/Conciliation';\r\nimport {\r\n getFiltersChart,\r\n getFiltersBars,\r\n} from './sagas/Conciliation/FiltersBars';\r\nimport { getSubsidiaries } from './sagas/Conciliation/Subsidiaries';\r\nimport { getConferenciaDeCaixa } from './sagas/Dashboard/Conferencia&Conciliacao/ConferenciaDeCaixa';\r\nimport { getContaBancaria } from './sagas/Dashboard/Conferencia&Conciliacao/ContaBancaria';\r\nimport { getVendaDeCartao } from './sagas/Dashboard/Conferencia&Conciliacao/VendaDeCartao';\r\nimport { getObterConta } from './sagas/Dashboard/LucroLiquido/ObterConta';\r\nimport { getObterVisao } from './sagas/Dashboard/LucroLiquido/ObterVisao';\r\nimport { getLucroLiquido } from './sagas/Dashboard/LucroLiquido/Ranking';\r\nimport { setUpdateVisao } from './sagas/Dashboard/LucroLiquido/UpdateVisaoConta';\r\nimport { getVisaoDeConta } from './sagas/Dashboard/LucroLiquido/VisaoDeConta';\r\nimport { getPendenciasFinanceiras } from './sagas/Dashboard/PendenciasFinanceiras';\r\nimport { getResultadosDre } from './sagas/Dashboard/ResultadosDRE';\r\nimport { getSaldoDisponivelAntecipacao } from './sagas/Dashboard/SaldoDisponivelAntecipacao';\r\n\r\nexport default function* rootSaga() {\r\n return yield all([\r\n takeLatest(Acquirers.GET_ACQUIRERS, getAcquirers),\r\n takeLatest(CardBrands.GET_CARDBRANDS, getCardBrands),\r\n takeLatest(Subsidiaries.GET_SUBSIDIARIES, getSubsidiaries),\r\n takeLatest(FiltersChart.GET_FILTERSBARS_CHART, getFiltersChart),\r\n takeLatest(Conciliation.GET_CONCILIATION_ACQUIRER, getConciliation),\r\n takeLatest(ConciliationReceive.GET_CONCILIATION_RECEIVE, getConciliation),\r\n takeLatest(FiltersBarsCards.GET_FILTERSBARS, getFiltersBars),\r\n takeLatest(ResultadosDre.GET_RESULTADOS_DRE, getResultadosDre),\r\n takeLatest(LucroLiquido.GET_LUCRO_LIQUIDO, getLucroLiquido),\r\n takeLatest(ObterVisao.GET_OBTER_VISAO, getObterVisao),\r\n takeLatest(ObterConta.GET_OBTER_CONTA, getObterConta),\r\n takeLatest(UpdateVisaoConta.SET_VISAO, setUpdateVisao),\r\n takeLatest(VisaoDeConta.GET_VISAO_DE_CONTA, getVisaoDeConta),\r\n takeLatest(\r\n PendenciasFinanceiras.GET_PENDENCIAS_FINANCEIRAS,\r\n getPendenciasFinanceiras,\r\n ),\r\n takeLatest(\r\n SaldoDisponivelAntecipacao.GET_SALDO_DISPONIVEL_ANTECIPACAO,\r\n getSaldoDisponivelAntecipacao,\r\n ),\r\n takeLatest(VendaDeCartao.GET_VENDA_DE_CARTAO, getVendaDeCartao),\r\n takeLatest(ContaBancaria.GET_CONTA_BANCARIA, getContaBancaria),\r\n takeLatest(\r\n ConferenciaDeCaixa.GET_CONFERENCIA_DE_CAIXA,\r\n getConferenciaDeCaixa,\r\n ),\r\n ]);\r\n}\r\n","import {createStore, applyMiddleware, compose} from 'redux';\r\nimport createSagaMiddleware from 'redux-saga';\r\n\r\nimport rootReducer from './rootReducer';\r\nimport rootSaga from './rootSaga';\r\n\r\n\r\nconst sagaMonitor = process.env.NODE_ENV === 'development'\r\n ? console.tron.createSagaMonitor()\r\n :null;\r\n\r\nconst sagaMiddleware = createSagaMiddleware({\r\n sagaMonitor\r\n});\r\n\r\nconst enhancer = process.env.NODE_ENV === 'development'\r\n? compose(console.tron.createEnhancer(),\r\n applyMiddleware(sagaMiddleware)) : applyMiddleware(sagaMiddleware);\r\n\r\n\r\nconst store = createStore(rootReducer, enhancer);\r\n\r\nsagaMiddleware.run(rootSaga);\r\n\r\nexport default store;\r\n","import { createGlobalStyle } from 'styled-components';\r\n\r\nexport default createGlobalStyle`\r\n\r\n * {\r\n margin: 0;\r\n padding: 0;\r\n outline: 0;\r\n box-sizing: border-box;\r\n \r\n scrollbar-color: #E0E0E0 #F9F9F9;\r\n scrollbar-width: thin;\r\n -moz-outline-style: none;\r\n }\r\n\r\n *::-webkit-scrollbar {\r\n width: 8px;\r\n height: 5px;\r\n }\r\n\r\n *::-webkit-scrollbar-track {\r\n background: #f9f9f9;\r\n }\r\n\r\n *::-webkit-scrollbar-thumb {\r\n background: #ccc;\r\n border-radius: 8px;\r\n }\r\n\r\n html, body, #root {\r\n min-height: 100%;\r\n }\r\n\r\n body {\r\n font-family: 'Open Sans', sans-serif;\r\n font-size: 16px;\r\n -webkit-font-smooth: always;\r\n -webkit-font-smoothing: antialiased !important;\r\n }\r\n\r\n section.chartBoxs {\r\n display: flex;\r\n flex: 0 0 100%;\r\n height: 300px;\r\n margin: 20px 0;\r\n padding: 10px;\r\n }\r\n`;\r\n","/* eslint-disable no-console */\r\n\r\nimport React from 'react';\r\nimport {Provider} from 'react-redux';\r\nimport {ThemeProvider} from 'styled-components';\r\nimport './config/configReactotron';\r\nimport * as appInfo from 'utils/app-info';\r\n\r\nimport Routes from './routes/index';\r\nimport store from './store/store';\r\nimport GlobalStyle from './styles/global';\r\nimport theme from './styles/theme';\r\n\r\n\r\nconsole.log(appInfo.getAppVersion());\r\nconsole.log(appInfo.getAppName());\r\n\r\nfunction App() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default App;","import './utils/extensions/dateExtensions'; // load global extension methods\r\n\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\n\r\nimport App from './App';\r\n\r\n\r\nReactDOM.render(\r\n ,\r\n document.getElementById('root')\r\n);\r\n","module.exports = __webpack_public_path__ + \"static/media/ok.bdd71a83.svg\";","module.exports = __webpack_public_path__ + \"static/media/warning.8233b822.svg\";","module.exports = __webpack_public_path__ + \"static/media/default.87d5e607.svg\";"],"sourceRoot":""}