{"version":3,"sources":["components/PersoanlizedTemplateLogin/styled.jsx","config/index.js","services/auth.js","services/api/api.js","utils/index.js","services/api/empresas.js","components/PersoanlizedTemplateLogin/index.jsx","config/azure.js","contexts/context.jsx","components/Routes/Private.jsx","components/Routes/Public.jsx","components/Spinner/styled.jsx","components/Spinner/index.jsx","components/Button/styled.jsx","components/Button/BtnOrange.jsx","components/Topbar/styled.jsx","utils/translate.js","services/api/users.js","components/Topbar/index.jsx","components/TopBarFromEmbedFull/styled.jsx","components/TopBarFromEmbedFull/index.jsx","components/Template/styled.jsx","components/Template/index.jsx","main/GlobalStyle.jsx","pages/ForgotPassword/validation.js","components/Form/styled.jsx","utils/applyDocumentMask.js","components/Form/LabelInput.jsx","components/Button/BtnBlue.jsx","components/Messages/styled.jsx","components/Messages/index.jsx","pages/ForgotPassword/styled.jsx","pages/ForgotPassword/Component.jsx","pages/ForgotPassword/index.jsx","pages/Login/styled.jsx","pages/Login/Component.jsx","pages/Login/validation.js","pages/Login/index.jsx","pages/NoMatch/styled.jsx","pages/NoMatch/index.jsx","pages/Profile/validation.js","pages/Profile/validationPassword.js","components/TitleBar/styled.jsx","components/TitleBar/index.jsx","components/Content/styled.jsx","components/Content/index.jsx","components/Card/styled.jsx","components/Card/index.jsx","components/CardTitle/styled.jsx","components/CardTitle/index.jsx","components/Form/Upload.jsx","components/CardBody/styled.jsx","components/CardBody/index.jsx","components/Button/BtnBox.jsx","pages/Profile/Component.jsx","pages/Profile/index.jsx","pages/RecoverPassword/validation.js","pages/RecoverPassword/styled.jsx","pages/RecoverPassword/Component.jsx","pages/RecoverPassword/index.jsx","pages/Index/index.jsx","services/api/powerbi.js","components/Table/styled.jsx","components/Table/index.jsx","components/Button/SmLinkBlue.jsx","pages/Groups/Component.jsx","pages/Groups/index.jsx","services/api/categories.js","components/Container/styled.jsx","components/Container/index.jsx","components/ReportCard/style.jsx","components/ReportCard/index.jsx","pages/Home/index.jsx","pages/HomeReports/index.jsx","services/api/reportCards.js","pages/Page/index.jsx","services/api/reports.js","services/api/usersActionsReports.js","hooks/useWindowSize.jsx","pages/Report/index.jsx","pages/Reports/index.jsx","components/Button/LinkBlue.jsx","pages/Cards/index.jsx","components/Form/LabelSelect.jsx","pages/CardsStore/validation.js","pages/CardsStore/index.jsx","components/Button/BtnRed.jsx","components/Button/BtnWhite.jsx","components/Modal/styled.jsx","components/Modal/Component.jsx","components/Modal/index.jsx","pages/CardsUpdate/validation.js","pages/CardsUpdate/index.jsx","pages/CardsUpdateImage/validation.js","pages/CardsUpdateImage/index.jsx","pages/Categories/index.jsx","pages/CategoriesStore/validation.js","pages/CategoriesStore/index.jsx","pages/CategoriesUpdate/validation.js","pages/CategoriesUpdate/index.jsx","pages/CategoriesUpdateImage/validation.js","pages/CategoriesUpdateImage/index.jsx","pages/ReportsUserStore/validation.js","components/Form/LabelCheckbox.jsx","pages/ReportsUserStore/index.jsx","pages/ReportsUserUpdate/validation.js","pages/ReportsUserUpdate/index.jsx","pages/UserAccessControl/index.jsx","pages/UserReports/index.jsx","components/Td/styled.jsx","components/Td/index.jsx","pages/Users/Component.jsx","pages/Users/index.jsx","pages/UsersStore/validation.js","services/api/status.js","services/api/origins.js","pages/UsersStore/Component.jsx","pages/UsersStore/index.jsx","pages/UsersUpdate/validation.js","pages/UsersUpdate/Component.jsx","pages/UsersUpdate/index.jsx","components/Form/DatePicker/styled.jsx","components/Form/DatePicker/index.jsx","pages/UserAccessControl/New/index.jsx","components/Form/Select/styled.jsx","components/Form/Select/index.jsx","pages/UserReports/Collections/New/index.jsx","pages/ReportsCollection/index.jsx","components/Button/IconButton/styled.jsx","components/Button/IconButton/index.jsx","pages/ReportsCollection/New/index.jsx","pages/ReportsCollection/Reports/index.jsx","pages/ReportsCollection/Reports/Update/index.jsx","pages/ReportsCollection/Update/index.jsx","pages/Companies/index.jsx","components/Form/ColorPicker/styled.jsx","components/Form/ColorPicker/index.jsx","pages/Companies/New/index.jsx","pages/Companies/Update/index.jsx","pages/OriginsStore/validation.js","pages/OriginsStore/index.jsx","pages/OriginsUpdate/validation.js","pages/OriginsUpdate/index.jsx","pages/StatusStore/validation.js","pages/StatusStore/index.jsx","pages/StatusUpdate/validation.js","pages/StatusUpdate/index.jsx","components/Dropdown/styled.jsx","components/Dropdown/index.jsx","components/Pagination/styled.jsx","components/Pagination/index.jsx","components/Skeleton/AnalyticsSkeleton/index.jsx","pages/Analytics/styled.jsx","pages/Analytics/index.jsx","pages/Capacities/styled.jsx","pages/Capacities/Component.jsx","pages/Capacities/index.jsx","pages/CapacitiesUpdate/Component.jsx","pages/CapacitiesUpdate/validation.js","pages/CapacitiesUpdate/index.jsx","pages/CapacitiesOptimizeCosts/styled.jsx","pages/CapacitiesOptimizeCosts/Component.jsx","pages/CapacitiesOptimizeCosts/validation.js","pages/CapacitiesOptimizeCosts/index.jsx","pages/Error/index.jsx","main/App.jsx","index.jsx"],"names":["Login","styled","section","props","fundo","Image","div","Form","LoginBox","primary_color","Logo","process","config","envSecret","REACT_APP_SECRET","envApi","REACT_APP_URL_API","tokenKey","uniqueId","embedFull","userAuthenticated","localStorage","getItem","getUser","a","api","get","data","getToken","getUniqueID","login","token","id","setItem","logout","history","slug","removeItem","push","axios","create","baseURL","interceptors","request","use","headers","Authorization","setErrors","error","response","errors","message","phoneMask","value","replace","slugMask","trim","toLowerCase","normalize","moneyMask","Intl","NumberFormat","minimumFractionDigits","format","parseFloat","removeMoneyMask","formattedValue","numericValue","formatDate","date","formatFns","parseISOFns","downloadFile","blob","filename","url","window","URL","createObjectURL","link","document","createElement","href","setAttribute","body","appendChild","click","parentNode","removeChild","handleCompanies","post","handleCompanieshow","handleCompanieshowSlug","handleCompaniesStore","setMessages","messages","alert","handleCompanyUpdate","cardId","put","handleCompanyDelete","delete","handleCompanyUpdateLogo","values","FormData","append","handleCompanyUpdateBackground","Base","ChildrenComponent","useState","setData","useHistory","params","useParams","useEffect","empresa","handleData","background_url","src","logo_url","alt","msalConfig","auth","clientId","REACT_APP_AZURE_CLIENT_ID","authority","REACT_APP_AZURE_TENANT_ID","redirectUri","cache","cacheLocation","storeAuthStateInCookie","secureCookies","loginRequest","scopes","Context","createContext","msalInstance","PublicClientApplication","ContextProvider","children","toggle","setToggle","user","setUser","isLoaded","setIsLoaded","report","setReport","signIn","loginPopup","prompt","console","log","idToken","Provider","Component","component","rest","redirect","setError","useContext","JSON","stringify","company","status","parse","render","to","Spinner","Standart","button","Button","BtnBlue","color","BtnRed","BtnOrange","BtnWhite","StandartLink","Link","disabled","LinkButton","SmallLink","LinkBlue","SmLinkBlue","BtnBox","isLoading","style","type","onClick","Topbar","header","img","NavigationContainer","ShowMobile","NavigationLink","NavigationText","span","show","LeftSideContainer","RightSideContainer","ActionsContainer","Divider","Dropdown","CDropdown","DropdownToggle","CDropdownToggle","DropdownMenu","CDropdownMenu","x","y","DropdownItem","CDropdownItem","DropdownText","UserContainer","UserName","h6","UserPhoto","languages","ptBR","en","es","ja","loadLanguage","setLanguage","lang","location","reload","getNestedTranslation","translations","key","split","reduce","obj","k","undefined","translate","language","translation","Object","keys","forEach","param","handleUsers","handleGeneratePassword","handleUsersByRoles","roles","handleUserLogin","email","password","aadToken","appName","appUrl","crypto","randomUUID","handleUserForgotPassword","emailTo","forgotPasswordPageUrl","handleUserRecoverPassword","handleStoreUser","name","contact","status_id","origin_id","company_id","send_mail","handleUpdateUser","userId","handleUpdateViewReportOptions","handleUserUpdateFile","handleUserUpdatePassword","companyData","handleUpdateProfile","profileId","handleUpdateLanguagePreference","languagePreference","language_preference","handleUserShow","handleUserDelete","userName","BeautifulName","firstName","userImage","file_url","handleLogout","display","fontSize","view_report_options","fullscreen","width","height","marginRight","padding","backgroundColor","secondary_color","className","print","refresh","borderRadius","Body","Content","ContentWithoutMarginTop","ContentWrapper","ErrorComponent","justifyContent","alignItems","flexDirection","marginBottom","textAlign","URLSearchParams","search","ContentWithMarginTop","GlobalStyle","createGlobalStyle","Validation","yup","string","required","Label","InputGroup","InputLabel","SelectLabel","CheckboxLabel","dragActive","css","dragReject","DropContainer","attrs","idDragActive","isDragReject","messageColors","default","success","UploadMessage","p","DropBox","applyDocumentMask","unmaskedValue","length","cpfMask","cnpjMask","label","flexGrow","readOnly","variant","formik","placeholder","labelColor","mask","htmlFor","touched","opacity","onChange","target","slice","handleChange","Message","formMessages","SubTitle","InputBox","form","onSubmit","handleSubmit","Messages","isSubmitting","Page","useFormik","initialValues","validationSchema","Yup","ForgotPassword","min","Page404","password_confirmation","oneOf","ref","Background","TitleBar","Breadcrumb","ul","TitleContainer","showBack","goBack","breadcrumb","map","item","index","path","currentPage","Card","CardTitle","title","renderDragMessage","isDragActive","maxSize","accept","onDropAccepted","onUpload","getRootProps","getInputProps","fileRejections","idx","code","done","fileUrl","CardBody","Upload","files","messagesFile","formikPassword","messagesPassword","userInfos","setMessagesPassword","setMessagesFile","setDone","loadData","enableReinitialize","current_password","ValidationPassword","handlePowerBiGroups","handlePowerBiReports","handlePowerBiReportAad","handlePowerBiReportEmbed","handleRefreshPowerBiCapacities","handleUpdatePowerBiCapacity","handleUpdateOrCreatePowerBiCapacityIdleIntervals","handleGetPowerBiCapacity","handleGetPowerBiCapacities","handleResumePowerBiCapacity","handleSuspendPowerBiCapacity","Container","Table","table","TdWithTextLimit","td","maxWidth","list","setList","filter","toUpperCase","includes","handleCategories","handleCategorieshow","handleCategoriesByFirm","handleCategoriesByUser","handleReportsByUserAndCategory","handleCategoriesStore","handleCategory","handleCategoryDelete","handleCategoryUpdateFile","ContainerDiv","CardLink","linkTo","group_id","ReportCard","tipo","report_id","dataset_id","handleCards","handleCardShow","handleReportCardsByFirm","handleReportCardsStore","category_id","handleCardReport","content","handleCardDelete","handleCardUpdateFile","dangerouslySetInnerHTML","__html","handleReportsByUserWithCard","handleReportsByUserWithCardWithoutGroups","user_id","handleReportById","handleReport","reportId","handleStoreReport","card","page_navigation","handleUpdateReport","handleReportDelete","handleAnalyticsUsersActionsReports","term","initialDate","endDate","handleAnalyticsUsersActionsReportsXlsx","responseType","handleAnalyticsUsersActionsReportsPdf","handleListUsersActionsReports","perPage","handleCreateUserActionReport","handleUpdateUserActionReport","require","useWindowSize","windowsSize","setWindowsSize","handleResize","innerWidth","innerHeight","addEventListener","removeEventListener","userActionReportId","setUserActionReportId","setIsLoading","hasMobile","setHasMobile","tent","setTent","isFitToPage","setIsFitToPage","rangeValue","setRangeValue","debouncedRangeValue","useDebouncedCallback","Number","setZoom","getData","reportData","embedUrl","accessToken","models","TokenType","Aad","dataset","username","handleUserAction","report_card_id","embedToken","enable_filters","Embed","expiration","userActionReportResponse","useBeforeunload","unblock","block","embedConfig","eventHooks","accessTokenProvider","tokenType","settings","layoutType","LayoutType","Custom","customLayout","displayOption","DisplayOption","panes","filters","visible","pageNavigation","getPages","pages","pageActive","find","page","isActive","hasLayout","MobilePortrait","updateSettings","layout","checkIfPageHasMobile","handlePlusZoom","newRangeValue","handleMinusZoom","getZoom","then","toFixed","handleMouseMove","onMouseMove","ev","onTouchMove","visibility","position","marginTop","eventHandlers","Map","event","warn","detail","getEmbeddedComponent","embedObject","cssClassName","steps","datasetId","card_name","groups","setGroups","reports","setReports","categories","setCategories","setFieldValue","element","group","category","Modal","visibleModal","setVisibleModal","e","editor","useRef","setContent","res","Promise","resolve","String","handleDelete","readonly","uploader","insertImageAsBase64URI","conf","isSuccess","resp","getMessage","msg","file","isImage","isImages","defaultHandlerSuccess","this","s","insertImage","downloadLink","download","innerText","insertNode","tabIndex","onBlur","newContent","number","checked","defaultChecked","cards","setCards","firm_id","userAccess","setUserAcess","userAccessSelectedId","setUserAccessSelectedId","loadUserReportsCollections","userReportsCollection","initial_date","end_date","userReportsCollections","setUserReportsCollections","collectionSelectedId","setCollectionSelectedId","restricted_login","handleSetViewReportOptions","viewReportOptions","Swal","fire","paddingLeft","users_group","Td","setShow","Array","fill","navigator","clipboard","writeText","handleStatushow","handleStatusByFirm","handleStatusStore","handleStatusUpdate","handleStatusDelete","handleOriginshow","handleOriginsByFirm","handleOriginsStore","handleOriginsUpdate","handleOriginsDelete","originData","setOriginData","originList","setOriginList","companiesData","setCompaniesData","searchOrigin","formattedData","text_message","voice_message","cursor","fontWeight","ReactDatePicker","DatePicker","coolFormat","showTime","minDate","maxDate","dateFormat","locale","showTimeSelect","selected","timeFormat","onKeyDown","preventDefault","NewUserReportsCollection","toISOString","getUpcomingSunday","Date","today","getDate","currentDay","getDay","newDate","setDate","getLastSunday","ItemsContainer","MoreItemsContainer","colourStyles","control","styles","border","input","Select","isMulti","options","moreItems","noOptionsMessage","closeMenuOnSelect","result","reportsCollections","setReportsCollections","collection","reportsCollection","ReportsCollection","IconButtonContainer","IconButton","text","Icon","NewReportCollection","users","setUsers","array","cardsData","usersData","RiAddLine","reportsCollectionsItems","setReportsCollectionsItems","setReportsCollection","reportsCollectionItem","setReportsCollectionItem","collectionId","ReactColorPicker","SketchPicker","ColorPicker","hex","filesFundo","Menu","MenuItem","items","btSize","PaginationContainer","pageCount","handlePageClick","previousLabel","nextLabel","onPageChange","containerClassName","previousLinkClassName","nextLinkClassName","disabledClassName","activeClassName","AnalyticsSkeleton","from","InputsContainer","AnalyticsContainer","CustomTooltipContainer","CustomTooltipLabel","CustomTooltipIntro","CustomTooltipDesc","CustomSearchInputContainer","amount","analytics","setAnalytics","rechartData","setRechartData","addDaysFns","setInitialDate","setEndDate","usersActionReports","setUsersActionReports","setPage","setSearch","isDownloading","setIsDownloading","isFiltering","setIsFiltering","tooltipPosition","setTooltipPosition","debouncedSearch","analytic","pv","quantity","handleDownloadXlsx","handleDownloadPdf","CustomTooltip","active","payload","join","ResponsiveContainer","BarChart","CartesianGrid","strokeDasharray","XAxis","dataKey","YAxis","Tooltip","allowEscapeViewBox","wrapperStyle","pointerEvents","Bar","onMouseEnter","tooltipSize","pagination","total","arrival_date","departure_date","ip","Pagination","lastPage","OverlayDiv","disableActions","setDisableActions","refreshingCapacities","setRefreshingCapacities","handleWithResumeOrSuspendCapacity","capacityId","action","capacity","prev","getActualCapacity","findIndex","capacities","acc","current","getExistentIndex","handleWithRefreshCapacities","limitTextSize","sku","state","optimize_cost","idle_suspend_period","resource_group","subscription_id","capacity_id","nullable","IdleIntervalContainer","IdleIntervalItemsContainer","IdleIntervalItemContainer","hidden","idle_intervals","object","optional","start_time","matches","end_time","idle_intervals_to_remove","remove","interval","startIntervalDate","endIntervalDate","startHour","startMinute","setHours","endHour","endMinute","placeholderText","timeFormatted","showTimeSelectOnly","idleIntervalsToRemove","boolean","when","is","moreThan","otherwise","App","urlParams","replaceState","pathname","Private","Template","Profile","Report","Reports","Groups","CategoriesUpdateImage","CategoriesUpdate","CategoriesStore","Categories","CardsUpdateImage","CardsUpdate","CardsStore","Cards","HomeReports","Home","ReportsUserUpdate","ReportsUserStore","NewUserAccessControl","ReportsUser","UserAccessControl","UsersUpdate","StatusUpdate","StatusStore","OriginsUpdate","OriginsStore","UsersStore","Users","UpdateReportsCollectionItems","ReportsCollectionItems","UpdateReportsCollection","NewReportsCollection","UpdateCompany","NewCompany","Companies","CapacitiesOptimizeCosts","CapacitiesUpdate","Capacities","Analytics","Error","Public","PersoanlizedTemplateLogin","RecoverPassword","Index","NoMatch","ReactDOM","StrictMode","getElementById"],"mappings":"s/+CAEaA,EAAQC,IAAOC,QAAV,gUAUQ,SAAAC,GAAK,OAAIA,EAAMC,SAK5BC,EAAQJ,IAAOK,IAAV,kQAgBLC,EAAON,IAAOK,IAAV,0GAMJE,EAAWP,IAAOK,IAAV,2OAEC,SAAAH,GAAK,OAAIA,EAAMM,iBAWxBC,EAAOT,IAAOK,IAAV,wS,kBCpDjB,EAAgDK,gOAUjCC,EARA,CACbC,UAHF,EAAQC,iBAINC,OAJF,EAA0BC,kBAKxBC,SAAU,2BACVC,SAAU,wBACVC,UAAW,gCCHAC,EAAoB,WAC/B,OAAiD,OAA1CC,aAAaC,QAAQV,EAAOK,WAGxBM,EAAO,uCAAG,8BAAAC,EAAA,sEACEC,GAAIC,IAAJ,UADF,uBACbC,EADa,EACbA,KADa,kBAGdA,GAHc,2CAAH,qDAMPC,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ACE5e,KAAK,uBACLtO,UAAWmtB,GAAS+B,IACpBhvB,SAAS,WAEX,eAACgtB,GAAD,CACE5e,KAAK,sBACLtO,UAAWmtB,GAASgC,IACpBjvB,SAAS,WAEX,eAACgtB,GAAD,CACE5e,KAAK,YACLtO,UAAWmtB,GAASiC,IACpBlvB,SAAS,WAGX,eAACgtB,GAAD,CACE5e,KAAK,mCACLtO,UAAWmtB,GAASkC,IACpBnvB,SAAS,WAGX,eAACgtB,GAAD,CACE5e,KAAK,0BACLtO,UAAWmtB,GAASmC,IACpBpvB,SAAS,WAGX,eAACgtB,GAAD,CACE5e,KAAK,eACLtO,UAAWmtB,GAASoC,IACpBrvB,SAAS,WAGX,eAACgtB,GAAD,CACE5e,KAAK,aACLtO,UAAWmtB,GAASqC,IACpBtvB,SAAS,WAEX,eAACgtB,GAAD,CACE5e,KAAK,SACLtO,UAAWmtB,GAASsC,IACpBvvB,SAAS,WAGX,eAACwvB,GAAD,CACEphB,KAAK,gCACLtO,UAAW2vB,GAA0BC,IACrC1vB,SAAS,eAEX,eAACwvB,GAAD,CACEphB,KAAK,uBACLtO,UAAW2vB,GAA0BtiB,IACrCnN,SAAS,MAEX,eAACwvB,GAAD,CACEphB,KAAK,SACLtO,UAAW2vB,GAA0Bv5B,IACrC8J,SAAS,MAGX,eAACgtB,GAAD,CAAS5e,KAAK,IAAItO,UAAW6vB,GAAO3vB,SAAS,WAE7C,eAAC,IAAD,CAAOoO,KAAK,IAAZ,SACE,eAACwhB,GAAD,iBCxUdC,IAASrvB,OACR,eAAC,IAAMsvB,WAAP,UACC,eAAC,GAAD,MAED50B,SAAS60B,eAAe,W","file":"static/js/main.b7bd75f3.chunk.js","sourcesContent":["import styled from 'styled-components'\n\nexport const Login = styled.section`\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n\n max-width: 100%;\n max-height: 100vh; \n overflow-x: hidden;\n\n background-image: url(${props => props.fundo});\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 100% 100%;\n`\nexport const Image = styled.div`\n flex: 3;\n & div {\n width: 100%;\n height: 100%;\n }\n @media (max-width: 1440px) {\n flex: 2;\n & div {\n background-position: left top;\n }\n }\n @media (max-width: 960px) {\n display: none;\n }\n`\nexport const Form = styled.div`\n flex: 2;\n padding: 25px;\n display: flex;\n justify-content: center;\n `\nexport const LoginBox = styled.div`\n padding: .8rem;\n background-color: ${props => props.primary_color};\n max-width: 450px;\n max-height: 80%;\n width: 100%;\n border-radius: 50px;\n\n @media (max-width: 450px) {\n max-width: 100%;\n padding: .2rem;\n }\n`\nexport const Logo = styled.div`\n width: 100%;\n padding: 1.5rem;\n \n display: flex;\n justify-content: center;\n\n & img {\n width: 15em;\n max-height: 5em;\n }\n\n @media (max-width: 450px) {\n padding: .8rem 0;\n }\n\n @media (max-width: 350px) {\n padding: 0 .5rem;\n }\n\n`","const { REACT_APP_SECRET, REACT_APP_URL_API } = process.env;\n\nconst config = {\n envSecret: REACT_APP_SECRET,\n envApi: REACT_APP_URL_API,\n tokenKey: \"@admin-Analyticdbi-Token\",\n uniqueId: \"@admin-Analyticdbi-Id\",\n embedFull: \"@admin-Analyticdbi-embedFull\",\n};\n\nexport default config;\n","import api from \"./api/api\";\n\nimport config from \"../config\";\n\nexport const userAuthenticated = () => {\n return localStorage.getItem(config.tokenKey) !== null;\n};\n\nexport const getUser = async () => {\n const { data } = await api.get(`/users`);\n\n return data;\n};\n\nexport const getToken = () => localStorage.getItem(config.tokenKey);\nexport const getUniqueID = () => localStorage.getItem(config.uniqueId);\n\nexport const login = (token, id) => {\n localStorage.setItem(config.tokenKey, token);\n localStorage.setItem(config.uniqueId, id);\n};\n\nexport const logout = (history, slug) => {\n localStorage.removeItem(config.tokenKey);\n localStorage.removeItem(config.uniqueId);\n if (slug) {\n return history.push(`/${slug}`);\n }\n\n return history.push(\"/login\");\n};\n","import axios from \"axios\";\nimport config from \"config\";\n\nimport { getToken, getUniqueID } from \"services/auth\";\n\nconst api = axios.create({ baseURL: config.envApi });\n\napi.interceptors.request.use(async (config) => {\n const token = getToken();\n const uniqueId = getUniqueID();\n\n if (token) config.headers.Authorization = `${token}`;\n if (uniqueId) config.headers.uniqueId = `${uniqueId}`;\n\n return config;\n});\n\nexport default api;\n","import {\n format as formatFns,\n parseISO as parseISOFns,\n addDays as addDaysFns\n} from \"date-fns\";\n\nexport const setErrors = error => error.response.data.errors.message\n\nexport const cepMask = value =>\n value.replace(/\\D+/g, '')\n .replace(/(\\d{5})(\\d)/, '$1-$2')\n .replace(/(-\\d{3})\\d+?$/, '$1')\n\nexport const phoneMask = value =>\n value.replace(/\\D+/g, '')\n .replace(/(\\d{2})(\\d)/, '($1) $2')\n .replace(/(\\d{4})(\\d)/, '$1-$2')\n .replace(/(\\d{4})-(\\d)(\\d{4})/, '$1$2-$3')\n .replace(/(-\\d{4})\\d+?$/, '$1')\n\nexport const cnpjMask = value =>\n value.replace(/\\D/g, '')\n .replace(/(\\d{2})(\\d)/, '$1.$2')\n .replace(/(\\d{3})(\\d)/, '$1.$2')\n .replace(/(\\d{3})(\\d)/, '$1/$2')\n .replace(/(\\d{4})(\\d)/, '$1-$2')\n .replace(/(-\\d{2})\\d+?$/, '$1')\n\nexport const cnpjUnmask = value =>\n value.replace(/\\D+/g, '')\n .replace(/([0-9])/, '$1')\n\nexport const cpfMask = value =>\n value.replace(/\\D/g, '')\n .replace(/(\\d{3})(\\d)/, '$1.$2')\n .replace(/(\\d{3})(\\d)/, '$1.$2')\n .replace(/(\\d{3})(\\d{1,2})/, '$1-$2')\n .replace(/(-\\d{2})\\d+?$/, '$1')\n\nexport const numberMask = value =>\n value.replace(/\\D/g, '')\n .replace(/(\\d{3})(\\d)/, '$1.$2')\n .replace(/(\\d{3})(\\d)/, '$1.$2')\n .replace(/(\\d{3})(\\d)/, '$1.$2')\n .replace(/(\\d{3})(\\d)/, '$1.$2')\n\nexport const slugMask = value =>\n value?.trim()?.toLowerCase()?.replace(/ /g, '-')?.normalize(\"NFD\")?.replace(/[\\u0300-\\u036f]/g, \"\")\n\nexport const moneyMask = value => {\n value = value.replace('.', '').replace(',', '').replace(/\\D/g, '')\n\n const options = { minimumFractionDigits: 2 }\n const result = new Intl.NumberFormat('pt-BR', options).format(\n parseFloat(value) / 100\n )\n \n return 'R$ ' + result\n};\n\nexport const removeMoneyMask = formattedValue => {\n const numericValue = formattedValue.replace(/\\D/g, '');\n\n const actualValue = parseFloat(numericValue) / 100;\n\n return actualValue;\n};\n\nexport const toMoney = value =>\n Number(value).toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' })\n\nexport const formatDate = (date) => {\n return formatFns(\n parseISOFns(date),\n \"dd/MM/yyyy 'às' HH:mm:ss\"\n );\n}\n\nexport const addDays = (date, amount) => {\n return addDaysFns(date, amount)\n}\n\nexport const downloadFile = (blob, filename) => {\n const url = window.URL.createObjectURL(blob)\n const link = document.createElement(\"a\")\n\n link.href = url\n\n link.setAttribute(\n 'download',\n filename,\n )\n\n document.body.appendChild(link)\n\n link.click()\n link.parentNode.removeChild(link)\n}","import api from './api'\nimport { setErrors } from 'utils'\n\nexport const handleCompanies = async () => (await api.post(`/companies/list-by-firm`)).data\n\nexport const handleCompanieshow = async id => (await api.get(`/companies/${id}`)).data\n\nexport const handleCompanieshowSlug = async slug => (await api.get(`/companies/list-by-slug/${slug}`)).data\n\nexport const handleCompaniesStore = async (history, data, setMessages) => {\n try {\n const response = await api.post(`/companies/store`, data)\n return history.push(`/empresas/${response.data.id}/update`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleCompanyUpdate = async (history, data, cardId, setMessages) => {\n try {\n await api.put(`/companies/${cardId}/update`, data)\n return history.push(`/empresas`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleCompanyDelete = async (id, history) => {\n await api.delete(`/companies/${id}`)\n return history.push(`/empresas`)\n}\n\nexport const handleCompanyUpdateLogo = async (data, id) => {\n const values = new FormData()\n values.append('file', data)\n try {\n await api.put(`/companies/${id}/upload/logo`, values)\n return\n } catch (error) {\n return error\n }\n}\n\nexport const handleCompanyUpdateBackground = async (data, id) => {\n const values = new FormData()\n values.append('file', data)\n try {\n await api.put(`/companies/${id}/upload/background`, values)\n return\n } catch (error) {\n return error\n }\n}","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\n\nimport { Login, Image, Form, Logo, LoginBox } from './styled'\n\nimport { handleCompanieshowSlug } from 'services/api/empresas'\n\nconst Base = ChildrenComponent => {\n\n const ComponentBase = props => {\n const [data, setData] = useState()\n \n const history = useHistory()\n const params = useParams()\n\n useEffect(() => {\n const handleData = async () => {\n try {\n const empresa = await handleCompanieshowSlug(params.slug)\n setData(empresa)\n } catch(error) {\n history.push(\"/\")\n }\n }\n\n handleData()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n if (!data) return null\n\n return (\n \n
\n \n \n \"analitycdbi\"\n \n \n \n
\n \n
\n \n
\n )\n }\n\n return ComponentBase\n}\n\nexport default Base\n","export const msalConfig = {\n auth: {\n clientId: process.env.REACT_APP_AZURE_CLIENT_ID,\n authority: `https://login.microsoftonline.com/${process.env.REACT_APP_AZURE_TENANT_ID}`,\n redirectUri: process.env.REACT_APP_URL_APP,\n },\n cache: {\n cacheLocation: \"sessionStorage\",\n storeAuthStateInCookie: false,\n secureCookies: false\n },\n}\n\nexport const loginRequest = {\n scopes: ['user.read'],\n}","import { createContext, useState } from 'react'\n\nimport { PublicClientApplication } from '@azure/msal-browser'\n\nimport { msalConfig, loginRequest } from '../config/azure'\n\nexport const Context = createContext()\n\nconst msalInstance = new PublicClientApplication(msalConfig);\n\nconst ContextProvider = ({ children }) => {\n const [toggle, setToggle] = useState(true)\n\n const [user, setUser] = useState(null)\n const [isLoaded, setIsLoaded] = useState(false)\n\n const [report, setReport] = useState()\n\n const signIn = async () => {\n const response = await msalInstance.loginPopup(\n {\n scopes: loginRequest.scopes,\n prompt: \"select_account\"\n })\n\n console.log(response.idToken)\n\n return response.idToken\n }\n\n return (\n \n {children}\n \n )\n}\n\nexport default ContextProvider","import { useEffect, useContext, useState } from 'react'\nimport { Route, Redirect, useHistory } from 'react-router-dom'\n\nimport { Context } from 'contexts/context'\n\nimport { getUser, userAuthenticated, logout } from 'services/auth'\n\nconst Component = ({ component: Component, redirect, ...rest }) => {\n const [error, setError] = useState(false)\n\n const { user, setUser } = useContext(Context)\n\n const history = useHistory()\n\n useEffect(() => {\n (async () => {\n try {\n const data = await getUser()\n\n localStorage.setItem('company', JSON.stringify(data.company))\n \n setUser(data)\n } catch(error) {\n if (error.response?.status === 401) {\n const company = JSON.parse(localStorage.getItem(\"company\"))\n\n return logout(history, company?.slug)\n }\n\n setError(true)\n }\n })()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n return (\n <>\n {(user || error) && (\n userAuthenticated() ? : }/> \n )}\n\n \n )\n}\n\nexport default Component","import { Route, Redirect } from 'react-router-dom'\nimport { userAuthenticated } from 'services/auth'\n\nconst Component = ({ component: Component, redirect, ...rest }) =>\n \n !userAuthenticated() ?\n :\n }\n />\n\nexport default Component","import styled from 'styled-components'\n\nexport const Spinner = styled.div`\n margin-left: auto;\n margin-right: auto;\n width: 24px;\n height: 24px;\n border: 5px solid #f3f3f3;\n border-top: 5px solid var(--color-blue);\n border-radius: 50%;\n animation: spin 2s linear infinite;\n @keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n`","import { Spinner } from './styled'\n\nconst Component = () =>\n \n\nexport default Component","import styled from 'styled-components'\nimport { Link } from 'react-router-dom'\n\nexport const Standart = styled.button`\n align-items: center;\n border: none;\n border-radius: 30px;\n color: var(--color-fff);\n display: flex;\n font-size: 18px;\n font-weight: bold;\n justify-content: center;\n transition: all 0.3s;\n &:hover {\n opacity: 0.5;\n cursor: pointer;\n }\n &:focus {\n outline: 0;\n }\n\n @media (max-width: 400px) {\n font-size: 15px !important;\n /* padding: 10px 15px !important; */\n }\n`\n\nexport const Button = styled(Standart)`\n padding: 10px 25px;\n`\n\nexport const BtnBlue = styled(Button)`\n background-color: ${props =>\n props.color ? props.color : 'var(--color-yellow)'};\n`\nexport const BtnGreen = styled(Button)`\n background-color: var(--color-green);\n color: var(--color-font);\n`\nexport const BtnRed = styled(Button)`\n background-color: var(--color-red);\n`\nexport const BtnOrange = styled(Button)`\n background-color: var(--color-green);\n color: var(--color-000);\n`\nexport const BtnYellow = styled(Button)`\n background-color: var(--color-yellow);\n color: var(--color-blue);\n`\nexport const BtnWhite = styled(Button)`\n background-color: var(--color-green);\n color: var(--color-000);\n`\n\nexport const StandartLink = styled(Link)`\n align-items: center;\n border: none;\n border-radius: 30px;\n color: var(--color-fff);\n display: flex;\n font-size: 18px;\n font-weight: bold;\n justify-content: center;\n transition: all 0.3s;\n opacity: ${props => (props.disabled ? 0.5 : 1)};\n &:hover {\n cursor: ${props => (props.disabled ? 'not-allowed' : 'pointer')};\n color: ${props =>\n props.disabled ? 'inherit' : 'var(--color-fff) !important'};\n }\n &:focus {\n outline: 0;\n }\n\n @media (max-width: 400px) {\n font-size: 15px !important;\n padding: 10px 15px !important;\n }\n`\nexport const LinkButton = styled(StandartLink)`\n padding: 10px 25px;\n text-decoration: none;\n`\nexport const SmallLink = styled(StandartLink)`\n padding: 5px 25px;\n`\nexport const LinkBlue = styled(LinkButton)`\n background-color: ${props =>\n props.color ? props.color : 'var(--color-yellow)'};\n`\nexport const LinkYellow = styled(LinkButton)`\n background-color: var(--color-yellow);\n color: var(--color-blue);\n`\nexport const SmLinkGreen = styled(SmallLink)`\n background-color: var(--color-green);\n color: var(--color-font);\n`\nexport const SmLinkBlue = styled(SmallLink)`\n background-color: var(--color-green);\n color: var(--color-000);\n`\n\nexport const SmLinkYellow = styled(SmallLink)`\n background-color: var(--color-yellow);\n color: var(--color-blue);\n`\n\nexport const BtnBox = styled.div`\n display: flex;\n justify-content: space-between;\n padding-top: 30px;\n`\n","import Spinner from 'components/Spinner'\n\nimport { BtnOrange } from './styled'\n\nconst Component = props => {\n return (\n \n {props.isLoading ? : props.children}\n \n )\n}\n\nexport default Component","import styled from 'styled-components'\n\nimport { Link } from 'react-router-dom'\n\nimport { CDropdown, CDropdownToggle, CDropdownMenu, CDropdownItem } from \"@coreui/react\"\n\nexport const Topbar = styled.header`\n height: 60px;\n width: 100%;\n position: fixed;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 2rem;\n z-index: 1;\n background-color: ${props => props.color};\n border-bottom: 1px solid var(--color-grey);\n box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.2);\n\n @media (max-width: 600px) {\n padding: 0 1rem;\n } \n`\n\nexport const Logo = styled.img`\n height: 40px;\n\n @media (max-width: 350px) {\n width: 120px;\n } \n`\n\nexport const NavigationContainer = styled.div`\n display: flex;\n align-items: center;\n\n @media (max-width: 1200px) {\n display: none;\n } \n`\n\nexport const ShowMobile = styled.div`\n display: none;\n align-items: center;\n margin-left: 1rem;\n\n @media (max-width: 1200px) {\n display: block;\n } \n`\n\nexport const NavigationLink = styled(Link)`\n margin-left: 1rem;\n text-decoration: none;\n \n &:hover {\n opacity: .5;\n }\n`\n\nexport const NavigationText = styled.span`\n margin-left: .5rem;\n text-decoration: none !important;\n color: var(--color-orange);\n\n @media (max-width: 1200px) {\n display: ${props => props.show ? \"block\" : \"none\"};\n } \n`\n\nexport const LeftSideContainer = styled.div`\n display: flex;\n align-items: center;\n`\n\nexport const RightSideContainer = styled.div`\n display: flex;\n align-items: center;\n`\n\nexport const ActionsContainer = styled.div`\n display: flex;\n align-items: center;\n`\n\nexport const Divider = styled.div`\n height: 25px;\n width: .5px;\n margin: 0 1rem;\n border-radius: 100%;\n background-color: var(--color-orange);\n\n @media (max-width: 600px) {\n margin: 0 1rem;\n } \n\n @media (max-width: 350px) {\n margin: 0 .5rem;\n } \n`\n\nexport const Dropdown = styled(CDropdown)``\n\nexport const DropdownToggle = styled(CDropdownToggle)`\n background-color: transparent !important;\n border-radius: 30px;\n border: none;\n transition: all 0.3s;\n padding: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n font-size: 18px;\n font-weight: bold;\n\n &:hover {\n opacity: 0.5;\n }\n\n &:focus {\n outline: 0;\n }\n\n @media (max-width: 600px) {\n font-size: 15px !important;\n } \n\n &.dropdown-toggle::after {\n color: ${props => props.color};\n }\n`\n\nexport const DropdownMenu = styled(CDropdownMenu)`\n transform: translate(${props => props.x}, ${props => props.y}) !important;\n`\n\nexport const DropdownItem = styled(CDropdownItem)`\n background-color: white !important;\n cursor: pointer;\n\n &:hover {\n opacity: .5;\n }\n`\n\nexport const DropdownText = styled.span`\n margin-left: .5rem;\n color: var(--color-orange);\n`\n\nexport const UserContainer = styled.div`\n display: flex;\n align-items: center;\n border-radius: 8px;\n cursor: pointer;\n`\n\nexport const UserName = styled.h6`\n display: flex;\n align-items: center;\n height: 2rem;\n padding-right: .5rem;\n font-weight: 600;\n color: var(--color-orange);\n\n @media (max-width: 630px) {\n display: none;\n } \n`\n\nexport const UserPhoto = styled.img`\n height: 40px;\n width: 40px;\n border-radius: 100%;\n margin-right: .5rem;\n`\n\n// export const TopbarMenu = styled.div`\n// display: flex;\n// justify-content: center;\n// align-items: center;\n// color: var(--color-white);\n// &:hover {\n// cursor: pointer;\n// /* opacity: 0.5; */\n// }\n// `\n// export const Topbar = styled.header`\n// position: fixed;\n// height: 60px;\n// width: 100%;\n// background-color: #fff;\n// box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.2);\n// border-bottom: 1px solid var(--color-grey);\n// display: flex;\n// justify-content: space-between;\n// align-items: center;\n// z-index: 1;\n// @media (max-width: 1140px) {\n// position: fixed;\n// }\n// `\n// export const TopbarMenuDesktop = styled(TopbarMenu)`\n// transition: all ease 0.2s;\n// height: inherit;\n// & span {\n// margin-left: 20px;\n// font-size: 25px;\n// color: var(--color-sidebar);\n// display: flex;\n// }\n// @media (max-width: 1140px) {\n// & {\n// display: none;\n// }\n// }\n// `\n// export const TopbarMenuMobile = styled(TopbarMenu)`\n// transition: all ease 0.2s;\n// & span {\n// color: var(--color-orange);\n// font-size: 18pt;\n// transition: all ease 0.2s;\n// padding-left: 20px;\n// }\n\n// &.menu-open {\n// margin-left: 180px;\n// }\n\n// @media (max-width: 355px) {\n// &.menu-open {\n// margin-right: 290px;\n// }\n// }\n\n// @media (max-width: 2562px) {\n// & {\n// display: none;\n// }\n// }\n// @media (max-width: 1140px) {\n// & {\n// display: flex;\n// }\n// }\n// `\n// export const Logout = styled.button`\n// margin: 0 30px;\n// padding: 3px 25px;\n// border-radius: 30px;\n// border: none;\n// color: var(--color-000);\n// font-size: 14px;\n// background-color: var(--color-green);\n// &:hover {\n// cursor: pointer;\n// opacity: 0.5;\n// }\n// `\n// export const TopbarActions = styled.div`\n// display: flex;\n// align-items: center;\n// `\n// export const TopbarLinks = styled.a`\n// height: 60px;\n// display: flex;\n// align-items: center;\n// text-decoration: none;\n// color: var(--color-sidebar);\n// font-weight: bold;\n// padding: 0 15px;\n// & img {\n// height: 30px;\n// margin-right: 10px;\n// }\n// `","import ptBR from './locales/pt-BR.json';\nimport en from './locales/en.json';\nimport es from './locales/es.json';\nimport ja from './locales/ja.json';\n\nconst languages = {\n 'pt-BR': ptBR,\n 'en': en,\n 'es': es,\n 'ja': ja\n};\n\nconst loadLanguage = () => {\n const language = localStorage.getItem('language') || 'pt-BR';\n return language;\n};\n\nexport const setLanguage = (lang) => {\n localStorage.setItem('language', lang);\n window.location.reload();\n};\n\nconst getNestedTranslation = (translations, key) => {\n return key.split('.').reduce((obj, k) => (obj && obj[k] !== undefined ? obj[k] : null), translations);\n};\n\nexport const translate = (key, params = {}) => {\n const language = loadLanguage();\n const translations = languages[language] || languages['pt-BR'];\n let translation = getNestedTranslation(translations, key) || key;\n\n Object.keys(params).forEach((param) => {\n translation = translation.replace(`{{${param}}}`, params[param]);\n });\n\n return translation;\n};\n","import api from './api'\nimport { login, logout } from '../auth'\nimport { setErrors, removeMoneyMask } from 'utils'\n\nexport const handleUsers = async () =>\n (await api.post(`/users/list-by-firm/users`)).data\n\nexport const handleGeneratePassword = async id =>\n (await api.post(`/users/generate-password/${id}`)).data\n\nexport const handleUsersByRoles = async roles =>\n (await api.post(`/users/list-by-firm-and-roles`, { roles })).data\n\nexport const handleUserLogin = async (history, data, setMessages) => {\n const { email, password, aadToken, appName, appUrl, company } = data\n\n const uniqueId = crypto.randomUUID()\n\n try {\n const { token, user } = !aadToken\n ? (await api.post(`/users/login`, { email, password, uniqueId, company }))\n .data\n : (\n await api.post(`/users/login/microsoft`, {\n aadToken,\n appName,\n appUrl,\n })\n ).data\n\n localStorage.setItem('company', JSON.stringify(user.company))\n login(token, uniqueId)\n\n if (user.roles === 'admin') {\n return history.push(`/grupos`)\n }\n\n return history.push(`/home`)\n } catch (error) {\n if (error.response) {\n setMessages({\n messages: setErrors(error) || 'KKk',\n alert: 'alert-orange',\n })\n return\n }\n\n setMessages({\n messages: 'Sistema inativo no momento!',\n alert: 'alert-orange',\n })\n }\n}\n\nexport const handleUserForgotPassword = async (data, setMessages) => {\n const values = {\n emailTo: data.email,\n forgotPasswordPageUrl: data.data\n ? `${process.env.REACT_APP_URL_APP}/${data.data.slug}/recuperar-senha`\n : `${process.env.REACT_APP_URL_APP}/recuperar-senha`,\n }\n try {\n const response = await api.post(`/users/forgot-password`, values)\n setMessages({ messages: response.data.data.message, alert: 'alert-green' })\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleUserRecoverPassword = async (\n history,\n token,\n data,\n setMessages,\n company,\n) => {\n try {\n await api.put(`/users/recover-password/${token}`, data)\n return history.push(company ? `/${company.slug}` : '/login')\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleStoreUser = async (history, data, setMessages) => {\n const values = {\n name: data.name,\n email: data.email,\n roles: data.roles,\n appName: 'GKBOARD',\n appUrl: process.env.REACT_APP_URL_APP,\n contact: data.contact,\n value: removeMoneyMask(data.value),\n status_id: data.status_id === '' ? null : data.status_id,\n origin_id: data.origin_id === '' ? null : data.origin_id,\n company_id: data.company_id === '' ? null : data.company_id,\n send_mail: data.send_mail,\n }\n\n try {\n await api.post(`/users/store-auth-user`, values)\n return history.push(`/usuarios`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleUpdateUser = async (history, data, userId, setMessages) => {\n if (data.status_id === '') delete data.status_id\n if (data.origin_id === '') delete data.origin_id\n if (data.company_id === '') delete data.company_id\n\n try {\n await api.put(`/users/${userId}/update-auth-user`, {\n ...data,\n value: removeMoneyMask(data.value),\n })\n return history.push(`/usuarios`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleUpdateViewReportOptions = async (data, userId) => {\n await api.put(`/users/${userId}/view-report-options`, data)\n}\n\nexport const handleUpdateRestrictedLogin = async (data, userId) => {\n await api.put(`/users/${userId}/restricted-Login`, data)\n}\n\nexport const handleUserUpdateFile = async (data, id) => {\n const values = new FormData()\n values.append('file', data)\n try {\n await api.put(`/users/${id}/upload`, values)\n return\n } catch (error) {\n return error\n }\n}\n\nexport const handleUserUpdatePassword = async (history, data, setMessages) => {\n try {\n const companyData = JSON.parse(localStorage.getItem('company'))\n await api.put(`/users/update-password`, data)\n logout(history, companyData.slug)\n return\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleUpdateProfile = async (\n history,\n profileId,\n data,\n setMessages,\n) => {\n const values = {\n name: data.name,\n email: data.email\n }\n\n try {\n await api.put(`/users`, values)\n logout(history)\n return\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleUpdateLanguagePreference = async (\n\n setMessages\n) => {\n const languagePreference = localStorage.getItem('language')\n if (!languagePreference) {\n setMessages({\n messages: ['Idioma não encontrado no localStorage'],\n alert: 'alert-orange'\n })\n return\n }\n const values = {\n\n language_preference: languagePreference\n }\n try {\n await api.put(`/users/userlang`, values)\n return\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleUserShow = async id => (await api.get(`/users/${id}`)).data\n\nexport const handleUserDelete = async (id, history) => {\n await api.delete(`/users/${id}`)\n return history.push('/usuarios')\n}\n","import { Context } from 'contexts/context'\nimport { useContext, useEffect } from 'react'\nimport { Link, useHistory } from 'react-router-dom'\nimport { logout } from 'services/auth'\n\nimport { BeautifulName } from 'beautiful-name'\n\nimport BtnOrange from 'components/Button/BtnOrange'\n\nimport { AiOutlineMenu, AiOutlineUser } from 'react-icons/ai'\nimport { BiLogOut } from 'react-icons/bi'\nimport {\n FaBusinessTime,\n FaChartArea,\n FaHome,\n FaImages,\n FaIndustry,\n FaLayerGroup,\n FaObjectUngroup,\n FaDatabase,\n FaUsers,\n} from 'react-icons/fa'\n\nimport {\n ActionsContainer,\n Divider,\n Dropdown,\n DropdownItem,\n DropdownMenu,\n DropdownText,\n DropdownToggle,\n LeftSideContainer,\n Logo,\n NavigationContainer,\n NavigationLink,\n NavigationText,\n RightSideContainer,\n ShowMobile,\n Topbar,\n UserContainer,\n UserName,\n UserPhoto,\n} from './styled'\n\nimport api from '../../services/api/api'\n\nimport { translate, setLanguage } from '../../utils/translate';\n\n\nimport {\n handleUpdateLanguagePreference\n} from 'services/api/users'\n\nconst Component = props => {\n const history = useHistory()\n\n const { user, report, isLoaded } = useContext(Context)\n\n const userName = new BeautifulName(user.name).firstName\n const userImage = user.file_url\n ? `${process.env.REACT_APP_URL_API}/${user.file_url}`\n : '/user.svg'\n\n const handleLogout = async () => {\n try {\n await api.delete('/users/logout')\n } catch (error) {\n } finally {\n const company = JSON.parse(localStorage.getItem('company') || '{}')\n\n logout(history, company?.slug)\n }\n }\n\n //Atualiza no bd a preferencia de linguagem ao logar.\n useEffect(() => {\n handleUpdateLanguagePreference();\n }, []); \n\n return (\n \n \n \n \n \n\n \n {user.roles === 'admin' ? (\n <>\n \n \n \n {translate('components.Topbar.reports')}\n \n \n\n \n \n \n {translate('components.Topbar.users')}\n \n \n\n \n \n \n {translate('components.Topbar.companies')}\n \n \n\n \n \n \t\n {translate('components.Topbar.cards')}\n \n \n\n \n \n \n {translate('components.Topbar.groups')}\n \n \n\n \n \n \n {translate('components.Topbar.categories')}\n \n \n\n \n \n \n {translate('components.Topbar.analytics')}\n \n \n\n \n \n \n {translate('components.Topbar.capabilities')}\n \n \n \n ) : (\n <>\n \n \n \n {translate('components.Topbar.home')}\n \n \n\n \n \n \n {translate('components.Topbar.reports')}\n \n \n \n )}\n \n\n \n \n \n \n {/* Menu */}\n \n\n \n {user.roles === 'admin' ? (\n <>\n history.push('/')}>\n \n \n {translate('components.Topbar.reports')}\n \n \n\n history.push('/usuarios')}>\n \n \n {translate('components.Topbar.users')}\n \n \n\n history.push('/empresas')}>\n \n \n {translate('components.Topbar.companies')}\n \n \n\n history.push('/cards')}>\n \n \n {translate('components.Topbar.cards')}\n \n \n\n history.push('/colecoes')}>\n \n \n {translate('components.Topbar.groups')}\n \n \n\n history.push('/categorias')}>\n \n \n {translate('components.Topbar.categories')}\n \n \n\n history.push('/analytics')}>\n \n \n {translate('components.Topbar.analytics')}\n \n \n\n history.push('/capacidades')}>\n \n \n {translate('components.Topbar.capabilities')}\n \n \n \n ) : (\n <>\n history.push('/home')}>\n \n \n {translate('components.Topbar.home')} \n \n \n\n history.push('/relatorios')}>\n \n \n {translate('components.Topbar.reports')}\n \n \n \n )}\n \n \n \n \n\n \n {isLoaded &&\n (user.view_report_options === 1 || user.roles === 'admin') && (\n <>\n \n {/* handleExport({ format: \"PNG\", extension: \"zip\" })\n },\n {\n text: \"PDF\",\n onClick: () => handleExport({ format: \"PDF\", extension: \"pdf\" })\n }\n ]}\n /> */}\n\n report.fullscreen()}\n isLoading={false}\n style={{\n width: '23px',\n height: '23px',\n marginRight: '.5rem',\n padding: 0,\n backgroundColor: user.company?.secondary_color,\n }}\n >\n \n \n\n report.print()}\n isLoading={false}\n style={{\n width: '23px',\n height: '23px',\n marginRight: '.5rem',\n padding: 0,\n backgroundColor: user.company?.secondary_color,\n }}\n >\n \n \n\n report.refresh()}\n isLoading={false}\n style={{\n width: '23px',\n height: '23px',\n padding: 0,\n backgroundColor: user.company?.secondary_color,\n }}\n >\n \n \n \n\n \n \n )}\n\n\n \n \n \n \n {\n setLanguage('pt-BR');\n localStorage.setItem('language', 'pt-BR');\n handleUpdateLanguagePreference();\n }}\n >\n \"Português\"\n {translate('components.Topbar.portuguese')}\n \n {\n setLanguage('en');\n localStorage.setItem('language', 'en');\n handleUpdateLanguagePreference();\n }}\n >\n \"Inglês\"\n {translate('components.Topbar.english')}\n \n {\n setLanguage('es');\n localStorage.setItem('language', 'es');\n handleUpdateLanguagePreference();\n }}\n >\n \"Espanhol\"\n {translate('components.Topbar.spanish')}\n \n {\n setLanguage('ja');\n localStorage.setItem('language', 'ja');\n handleUpdateLanguagePreference();\n }}\n >\n \"Japonês\"\n {translate('components.Topbar.japanese')}\n \n \n\n\n\n \n \n \n \n {translate('components.Topbar.greeting')} {userName}!\n \n \n \n\n \n history.push('/profile')}>\n \n \n {translate('components.Topbar.profile')}\n \n \n\n handleLogout(history)}>\n \n \n {translate('components.Topbar.logout')}\n \n \n \n \n\n\n\n \n {/* setToggle(!toggle)}>\n {!props.error && (\n \n )}\n \n setToggle(!toggle)}\n className={toggle ? 'menu-open' : 'menu-closed'}\n >\n {!props.error && (\n \n )}\n \n \n
\n handleLogout(history)}>Sair\n
\n
*/}\n
\n )\n}\n\nexport default Component\n","import styled from 'styled-components'\n\nexport const Topbar = styled.header`\n height: 60px;\n width: 100%;\n position: fixed;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 2rem;\n z-index: 1;\n background-color: var(--color-neutral-gray);\n border-bottom: 1px solid var(--color-grey);\n box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.2);\n\n @media (max-width: 600px) {\n padding: 0 1rem;\n } \n`\n\nexport const RightSideContainer = styled.div`\n display: flex;\n align-items: center;\n`\n\nexport const ActionsContainer = styled.div`\n display: flex;\n align-items: center;\n`","import { Context } from \"contexts/context\";\nimport { useContext, useEffect } from \"react\";\n\nimport BtnOrange from \"components/Button/BtnOrange\";\n\n\nimport {\n ActionsContainer,\n RightSideContainer,\n Topbar,\n} from \"./styled\";\n\nimport { handleUpdateLanguagePreference } from \"services/api/users\";\n\nconst Component = (props) => {\n\n const { user, report, isLoaded } = useContext(Context);\n\n //Atualiza no bd a preferencia de linguagem ao logar.\n useEffect(() => {\n handleUpdateLanguagePreference();\n }, []);\n\n if (\n !(isLoaded && user && report)\n ) {\n return null;\n }\n\n return (\n \n \n {isLoaded && (\n \n report.fullscreen()}\n isLoading={false}\n style={{\n width: \"23px\",\n height: \"23px\",\n marginRight: \".5rem\",\n padding: 0,\n backgroundColor: user.company?.secondary_color,\n }}\n >\n \n \n\n report.print()}\n isLoading={false}\n style={{\n width: \"23px\",\n height: \"23px\",\n marginRight: \".5rem\",\n padding: 0,\n backgroundColor: user.company?.secondary_color,\n }}\n >\n \n \n\n report.refresh()}\n isLoading={false}\n style={{\n width: \"23px\",\n height: \"23px\",\n padding: 0,\n backgroundColor: user.company?.secondary_color,\n }}\n >\n \n \n \n )}\n \n \n );\n};\n\nexport default Component;\n","import styled from 'styled-components'\n\nexport const Body = styled.div`\n display: flex;\n background-color: var(--color-background);\n`\nexport const Content = styled.div`\n display: flex;\n flex-direction: column;\n margin-top: 70px;\n flex-grow: 1;\n\n /* @media (min-width: 1141px) {\n margin-left: ${props => props.toggle ? '180px' : '80px'}; \n } */\n`\n\nexport const ContentWithoutMarginTop = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n`\n\nexport const ContentWrapper = styled.div`\n display: flex;\n flex-direction: column;\n /* margin-left: 3em; */\n flex-grow: 1;\n`","import { useContext } from 'react'\n\nimport { Context } from 'contexts/context'\n\nimport BtnOrange from 'components/Button/BtnOrange'\nimport Topbar from 'components/Topbar'\nimport TopbarEmbedFull from 'components/TopBarFromEmbedFull'\nimport config from '../../config/'\n\nimport { Body, Content as ContentWithMarginTop, ContentWithoutMarginTop, ContentWrapper } from './styled'\n\nconst ErrorComponent = () => {\n return (\n
\n

\n Sistema inativo no momento\n

\n\n window.location.reload(false)}\n >\n Tentar Novamente\n \n
\n )\n}\n\nconst Base = ChildrenComponent => {\n const ComponentBase = props => {\n\n\n\n const { toggle } = useContext(Context)\n const urlParams = new URLSearchParams(window.location.search)\n let embedFull\n embedFull = urlParams.get('embedFull')\n\n if(embedFull) {\n localStorage.setItem(config.embedFull, embedFull)\n } else {\n embedFull = localStorage.getItem(config.embedFull);\n }\n\n const Content = embedFull === 'true' ? ContentWithoutMarginTop : ContentWithMarginTop\n \n\n return (\n \n {/* {!props.error && } */}\n\n \n {embedFull === 'true' ? : }\n \n \n {props.error ? (\n \n ) : }\n \n \n \n )\n }\n \n return ComponentBase\n}\n\nexport default Base","import { createGlobalStyle } from 'styled-components'\n\nimport '@coreui/coreui/dist/css/coreui.min.css'\n//00AF30\nconst GlobalStyle = createGlobalStyle`\n :root {\n --color-sidebar: #142030;\n --color-sidebar-hover: #fff;\n --color-background: #f8f8f8;\n --color-background-card: #ffffff;\n --color-background-title-bar: #f8f8f8;\n --color-background-footer: #f8f8f8;\n --color-background-input: #f2fafd;\n --color-background-report-card: #f2fafd;\n --color-font: #142030;\n --color-icons: #fff;\n --color-white: #142030;\n --color-grey: #d3cede;\n --color-blue: #0180c3;\n --color-green: #CACCDD;\n --color-orange: #4DB0D5;\n --color-red: #497AC2;\n --color-yellow: #4DB0D5;\n --color-fff: #fff;\n --color-000: #000;\n --color-red: #990000;\n --color-neutral-gray: #9da5b1;\n }\n * {\n box-sizing: border-box;\n }\n body {\n font-family: Arial, Helvetica, sans-serif;\n margin: 0;\n\t\tpadding: 0;\n background-color: var(--color-background);\n color: var(--color-font);\n max-width: 100vw;\n overflow-x: hidden;\n }\n h1, h2, h3, h4, h5, h6, p {\n margin: 0;\n }\n`\nexport default GlobalStyle\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n email: yup.string()\n .email(translate('validations.AllValidations.validEmail'))\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import styled, { css } from 'styled-components'\n\nexport const Label = styled.div`\n display: flex;\n align-items: center;\n color: ${props => props.color ? props.color : 'var(--color-font)'};\n & div {\n color: var(--color-red);\n height: 8px;\n margin: 0 0 4px 16px;\n font-size: 12px;\n }\n`\n\nconst InputGroup = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: 16px;\n & .variant {\n border: 1px solid var(--color-font);\n outline: 0;\n color: var(--color-input);\n }\n`\n\nexport const InputLabel = styled(InputGroup)`\n & input {\n border: 1px solid var(--color-grey);\n color: var(--color-font);\n font-size: 16px;\n padding: 10px 20px;\n margin-top: 8px;\n border-radius: 20px;\n background-color: var(--color-background-input);\n }\n & input:focus {\n outline: 0;\n }\n`\n\nexport const SelectLabel = styled(InputGroup)`\n & select {\n border: 1px solid var(--color-grey);\n color: var(--color-font);\n font-size: 16px;\n padding: 10px 20px;\n margin-top: 8px;\n border-radius: 20px;\n background-color: var(--color-background-input);\n }\n & input:focus {\n outline: 0;\n }\n`\nexport const CheckboxLabel = styled.div`\n display: flex;\n align-items: center;\n padding: 10px 0;\n & input {\n margin-right: 5px;\n }\n`\n\nconst dragActive = css`\n border-color: green;\n`\nconst dragReject = css`\n border-color: red;\n`\nexport const DropContainer = styled.div.attrs({\n className: 'dropzone'\n})`\n border-radius: 10px;\n border: 1px solid var(--color-grey);\n cursor: pointer;\n transition: height 0.2s ease;\n background-color: var(--color-fff);\n height: 100px;\n display: flex;\n justify-content: center;\n align-items: center;\n ${props => props.idDragActive && dragActive}\n ${props => props.isDragReject && dragReject}\n`\nconst messageColors = {\n default: 'var(--color-font)',\n error: 'var(--color-red)',\n success: 'var(--color-green)'\n}\nexport const UploadMessage = styled.p`\n display: flex;\n color: ${props => messageColors[props.type || 'default']};\n justify-content: center;\n align-items: center;\n font-size: 16px;\n margin: 0 !important;\n`\nexport const DropBox = styled.div`\n background-color: var(--color-background-input);\n border: 1px solid var(--color-grey);\n max-width: 450px;\n width: 100%;\n border-radius: 20px;\n padding: 20px;\n & img {\n width: 100%;\n margin-top: 20px;\n border-radius: 10px;\n }\n`\n","import {cpfMask, cnpjMask} from './index'\n\nexport const applyDocumentMask = value => {\n if (value == null) {\n return '';\n }\n\n const unmaskedValue = value.replace(/\\D/g, '');\n \n if (unmaskedValue.length <= 11) {\n return cpfMask(unmaskedValue);\n } else {\n return cnpjMask(unmaskedValue);\n }\n }","import { Label, InputLabel } from './styled'\nimport {applyDocumentMask} from '../../utils/applyDocumentMask'\n\nconst Component = ({\n type,\n name,\n label,\n flexGrow,\n readOnly,\n variant,\n formik,\n placeholder,\n labelColor,\n mask,\n value,\n}) => {\n return (\n <>\n \n \n {readOnly ? (\n \n ) : (\n { \n if(name === 'document') {\n const { value } = data.target;\n const formattedValue = value.slice(0, 18);\n data.target.value = formattedValue;\n formik.handleChange(data);\n\n } else formik.handleChange(data)}}\n />\n )}\n \n \n )\n}\n\nexport default Component\n","import { useContext } from 'react'\n\nimport { Context } from 'contexts/context'\n\nimport { BtnBlue } from './styled'\n\nconst Component = props => {\n const { user } = useContext(Context)\n\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component","import styled from 'styled-components'\n\nexport const Message = styled.div`\n &.alert-blue,\n &.alert-red,\n &.alert-green,\n &.alert-orange {\n border-radius: 8px;\n padding: 12px 16px 12px 24px;\n margin-bottom: 16px;\n }\n &.alert-red {\n color: #721c24;\n border: 1px solid #721c24;\n background-color: #f8d7da;\n }\n &.alert-green {\n color: #155724;\n border: 1px solid #155724;\n background-color: #d4edda;\n }\n &.alert-blue {\n color: #004085;\n border: 1px solid #004085;\n background-color: #cce5ff;\n }\n &.alert-orange {\n color: #856404;\n border: 1px solid #856404;\n background-color: #fff3cd;\n }\n`","import { Message } from './styled'\n\nconst Component = ({ formMessages, alert }) => {\n return (\n formMessages.length > 0 &&\n \n {formMessages}\n \n )\n}\n\nexport default Component","import styled from 'styled-components'\nimport { CDropdown, CDropdownToggle, CDropdownMenu, CDropdownItem } from '@coreui/react';\n\nexport const Login = styled.div`\n padding: 0 1.5rem;\n display: flex;\n flex-direction: column;\n width: 100%;\n\n & h1 {\n font-size: 32px;\n padding: 10px 0;\n color: rgba(255, 255, 255, 1);\n text-align: start;\n }\n\n @media (max-width: 450px) {\n margin-bottom: 15px;\n }\n\n @media (max-width: 350px) {\n margin-bottom: 5px;\n padding: 0 .5rem;\n }\n\n`\nexport const SubTitle = styled.p`\n color: rgba(255, 255, 255, .9);\n font-weight: bold;\n margin-bottom: 25px;\n\n @media (max-width: 450px) {\n margin-bottom: 15px;\n }\n`\nexport const InputBox = styled.div`\n padding: 10px 0;\n max-width: 100%;\n\n @media (max-width: 450px) {\n padding: 5px 4px;\n }\n`\nexport const BtnBox = styled.div`\n padding: 2rem 0;\n width: 100%;\n\n & button {\n width: 100%;\n }\n\n @media (max-width: 450px) {\n padding: .8rem;\n }\n`\nexport const ForgotPassword = styled.div`\n width: 100%;\n display: flex;\n justify-content: flex-end;\n & a {\n text-decoration: none;\n color: var(--color-blue);\n font-weight: bold;\n }\n`\nexport const Form = styled.form`\n width: 100%;\n\n`\n\nexport const Dropdown = styled(CDropdown)``;\n\nexport const DropdownToggle = styled(CDropdownToggle)`\n background-color: transparent !important;\n border-radius: 30px;\n border: none;\n transition: all 0.3s;\n padding: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n font-size: 18px;\n font-weight: bold;\n\n &:hover {\n opacity: 0.5;\n }\n\n &:focus {\n outline: 0;\n }\n\n @media (max-width: 600px) {\n font-size: 15px !important;\n }\n\n &.dropdown-toggle::after {\n color: ${(props) => props.color};\n }\n`;\n\nexport const DropdownMenu = styled(CDropdownMenu)`\n transform: translate(${(props) => props.x}, ${(props) => props.y}) !important;\n`;\n\nexport const DropdownItem = styled(CDropdownItem)`\n background-color: white !important;\n cursor: pointer;\n\n &:hover {\n opacity: 0.5;\n }\n`;\n","import Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport { Login, SubTitle, InputBox, BtnBox, Form } from './styled'\nimport { translate } from '../../utils/translate';\nimport {\n Dropdown,\n DropdownItem,\n DropdownMenu,\n DropdownToggle,\n} from './styled'\nimport { useState, useEffect } from 'react';\n\nconst Component = ({ formik, messages, data }) => {\n const [language, setLanguage] = useState(localStorage.getItem('language') || 'pt-BR');\n\n useEffect(() => {\n localStorage.setItem('language', language);\n }, [language]);\n return (\n \n

{translate('pages.ForgotPassword.title')}

\n {translate('pages.ForgotPassword.instruction')}\n
\n \n \n \n \n \n \n {formik.isSubmitting ? : translate('pages.ForgotPassword.submit')}\n \n \n \n \n \n \n\n\n \n {\n setLanguage('pt-BR')\n localStorage.setItem('language', 'pt-BR')\n }}\n >\n \"Português\"\n {translate('components.Topbar.portuguese')}\n \n {\n setLanguage('en')\n localStorage.setItem('language', 'en')\n }}\n >\n \"Inglês\"\n {translate('components.Topbar.english')}\n \n {\n setLanguage('es')\n localStorage.setItem('language', 'es')\n }}\n >\n \"Espanhol\"\n {translate('components.Topbar.spanish')}\n \n {\n setLanguage('ja')\n localStorage.setItem('language', 'ja')\n }}\n >\n \"Japonês\"\n {translate('components.Topbar.japanese')}\n \n \n\n
\n )\n}\n\nexport default Component","import { useState } from 'react'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { handleUserForgotPassword } from 'services/api/users'\nimport Component from './Component'\n\nconst Page = ({ data }) => {\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const formik = useFormik({\n initialValues: { email: '' },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleUserForgotPassword({...formik.values, data}, setMessages)\n })\n\n return \n}\n\nexport default Page","import styled from 'styled-components';\nimport { CDropdown, CDropdownToggle, CDropdownMenu, CDropdownItem } from '@coreui/react';\n\nexport const Login = styled.div`\n padding: 0 1.5rem;\n display: flex;\n flex-direction: column;\n width: 100%;\n\n & h1 {\n font-size: 32px;\n padding: 10px 0;\n color: var(--color-fff);\n text-align: start;\n }\n\n @media (max-width: 450px) {\n margin-bottom: 15px;\n }\n\n @media (max-width: 350px) {\n margin-bottom: 5px;\n padding: 0 0.5rem;\n }\n`;\n\nexport const SubTitle = styled.p`\n color: rgba(255, 255, 255, 0.9);\n font-weight: bold;\n margin-bottom: 25px;\n\n @media (max-width: 450px) {\n margin-bottom: 15px;\n }\n`;\n\nexport const InputBox = styled.div`\n padding: 10px 0;\n max-width: 100%;\n\n @media (max-width: 450px) {\n padding: 5px 4px;\n }\n`;\n\nexport const BtnBox = styled.div`\n padding: 2rem 0;\n width: 100%;\n\n & button {\n width: 100%;\n }\n\n @media (max-width: 450px) {\n padding: 0.8rem;\n }\n`;\n\nexport const ForgotPassword = styled.div`\n width: 100%;\n display: flex;\n justify-content: flex-end;\n\n & a {\n text-decoration: none;\n color: rgba(255, 255, 255, 0.9);\n font-weight: bold;\n }\n`;\n\nexport const Form = styled.form`\n width: 100%;\n`;\n\nexport const Dropdown = styled(CDropdown)``;\n\nexport const DropdownToggle = styled(CDropdownToggle)`\n background-color: transparent !important;\n border-radius: 30px;\n border: none;\n transition: all 0.3s;\n padding: 0;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n font-size: 18px;\n font-weight: bold;\n\n &:hover {\n opacity: 0.5;\n }\n\n &:focus {\n outline: 0;\n }\n\n @media (max-width: 600px) {\n font-size: 15px !important;\n }\n\n &.dropdown-toggle::after {\n color: ${(props) => props.color};\n }\n`;\n\nexport const DropdownMenu = styled(CDropdownMenu)`\n transform: translate(${(props) => props.x}, ${(props) => props.y}) !important;\n`;\n\nexport const DropdownItem = styled(CDropdownItem)`\n background-color: white !important;\n cursor: pointer;\n\n &:hover {\n opacity: 0.5;\n }\n`;\n","import { Link } from 'react-router-dom'\nimport Input from 'components/Form/LabelInput'\nimport BtnOrange from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport { Login, SubTitle, InputBox, BtnBox, ForgotPassword, Form } from './styled'\nimport { translate } from '../../utils/translate';\nimport {\n Dropdown,\n DropdownItem,\n DropdownMenu,\n DropdownToggle,\n} from './styled'\nimport { useState, useEffect } from 'react';\n\nconst Component = ({ formik, messages, data, params }) => {\n const [language, setLanguage] = useState(localStorage.getItem('language') || 'pt-BR');\n\n useEffect(() => {\n localStorage.setItem('language', language);\n }, [language]);\n\n return (\n \n

{translate('pages.Login.title')}

\n {translate('pages.Login.instruction')}\n
\n \n \n \n \n \n \n \n \n {translate('pages.Login.forgotPassword')}\n \n \n \n {formik.isSubmitting ? : translate('pages.Login.submit')}\n \n \n \n\n \n \n \n\n\n \n {\n setLanguage('pt-BR')\n localStorage.setItem('language', 'pt-BR')\n }}\n >\n \"Português\"\n {translate('components.Topbar.portuguese')}\n \n {\n setLanguage('en')\n localStorage.setItem('language', 'en')\n }}\n >\n \"Inglês\"\n {translate('components.Topbar.english')}\n \n {\n setLanguage('es')\n localStorage.setItem('language', 'es')\n }}\n >\n \"Espanhol\"\n {translate('components.Topbar.spanish')}\n \n {\n setLanguage('ja')\n localStorage.setItem('language', 'ja')\n }}\n >\n \"Japonês\"\n {translate('components.Topbar.japanese')}\n \n \n\n\n
\n );\n};\n\nexport default Component;\n","import { translate } from '../../utils/translate'; \nconst Validation = yup => ({\n email: yup.string()\n .email(translate('validations.AllValidations.validEmail'))\n .required(translate('validations.AllValidations.requiredField')),\n password: yup.string()\n .min(6, translate('validations.AllValidations.minLength'))\n .required(translate('validations.AllValidations.requiredField')),\n})\n\nexport default Validation","import { useFormik } from 'formik'\nimport { useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { handleUserLogin } from 'services/api/users'\nimport * as Yup from 'yup'\nimport Component from './Component'\nimport Validation from './validation'\n\nconst Page = ({ data }) => {\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const history = useHistory()\n const params = useParams()\n const formik = useFormik({\n initialValues: { email: '', password: '' },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: async () => {\n return handleUserLogin(\n history, \n {...formik.values, company: data?.id}, \n setMessages\n )\n }\n })\n\n return \n}\n\nexport default Page","import styled from 'styled-components'\n\nexport const Page404 = styled.div`\n width: 100%;\n height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n & a {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-decoration: none;\n color: var(--color-font);\n }\n & img {\n padding: 50px;\n width: 240px;\n }\n`","import { Link } from 'react-router-dom'\nimport { Page404 } from './styled'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n return (\n \n \n \"analyticdbi\"\n

{translate('pages.NoMatch.notFound')}

\n \n
\n )\n}\n\nexport default Page","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField')),\n email: yup.string()\n .email(translate('validations.AllValidations.validEmail'))\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n password: yup.string()\n .min(6, translate('validations.AllValidations.minLength'))\n .required(translate('validations.AllValidations.requiredField')),\n password_confirmation: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n .oneOf([yup.ref('password'), null], translate('validations.AllValidations.passwordConfirmation'))\n})\n\nexport default Validation","import styled from 'styled-components'\n\nexport const Background = styled.div`\n background-color: var(--color-sidebar);\n`\nexport const TitleBar = styled.div`\n background-color: var(--color-background-title-bar);\n color: var(--color-blue);\n height: 80px;\n padding-left: 60px;\n display: flex;\n align-items: center;\n & h1 {\n font-size: 24px;\n color: var(--color-sidebar);\n }\n\n @media (min-width: 1140px) {\n /* margin-top: 3em; */\n }\n`\nexport const Breadcrumb = styled.ul`\n padding: 2px 0;\n list-style: none;\n margin: 0 auto;\n & li {\n display: inline;\n font-size: 16px;\n }\n & li + li:before {\n color: var(--color-font);\n }\n & li a {\n color: var(--color-blue);\n text-decoration: none;\n padding: 8px 8px 8px 0;\n border-radius: 5px;\n }\n & li {\n color: var(--color-font);\n }\n & li a:hover {\n text-decoration: none;\n }\n`\n\nexport const TitleContainer = styled.div`\n display: flex;\n column-gap: 10px;\n`\n","import { Link } from 'react-router-dom'\nimport { Breadcrumb, TitleBar, Background, TitleContainer } from './styled'\nimport { BtnWhite } from 'components/Button/styled'\nimport { FaArrowLeft } from 'react-icons/fa'\nconst Component = props => {\n return (\n \n \n
\n \n {props.showBack && (\n props.history.goBack()}\n >\n \n \n )}\n

{props.label}

\n
\n \n {props.breadcrumb &&\n props.breadcrumb.map((item, index) => (\n
  • \n {item.label}/\n
  • \n ))}\n
  • {props.currentPage}
  • \n
    \n
    \n
    \n
    \n )\n}\n\nexport default Component\n","import styled from 'styled-components'\n\nexport const Content = styled.div`\n width: 100%;\n padding: 0 15px 15px 15px;\n`","import { Content } from './styled'\n\nconst Component = props => {\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component","import styled from 'styled-components'\n\nexport const Card = styled.div`\n background-color: var(--color-background-card);\n margin: 0 15px 15px 15px;\n border-radius: 20px;\n color: var(--color-font);\n box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);\n max-width: 100%;\n max-width: 83vw;\n position: relative;\n\n @media (min-width: 500px) {\n max-width: 89vw;\n }\n\n @media (min-width: 800px) {\n max-width: 92vw;\n }\n\n @media (min-width: 1000px) {\n max-width: 95vw;\n }\n`\n","import { Card } from './styled'\n\nconst Component = props =>\n \n {props.children}\n \n\nexport default Component","import styled from 'styled-components'\n\nexport const CardTitle = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1px solid var(--color-grey);\n color: var(--color-font);\n & p {\n padding: 15px 0;\n padding-left: 30px;\n /* flex-grow: 1; */\n font-size: 20px;\n line-height: 24px;\n font-weight: bold;\n }\n & div {\n padding: 15px;\n }\n @media (min-width: 1140px) {\n & {\n /* flex-direction: column; */\n }\n }\n\n`","import { CardTitle } from './styled'\n\nconst Component = props => {\n return (\n \n

    {props.title}

    \n
    \n {props.children}\n
    \n
    \n )\n}\n\nexport default Component","import React from 'react'\nimport Dropzone from 'react-dropzone'\nimport { InputLabel, Label } from './styled'\n\nimport { DropContainer, UploadMessage, DropBox } from './styled'\n\nconst Component = props => {\n\n const renderDragMessage = (isDragActive, isDragReject) => {\n if (!isDragActive) {\n return Escolha um arquivo ou arraste aqui!\n }\n if (isDragReject) {\n return Arquivo não suportado!\n }\n return Solte os arquivos aqui!\n }\n\n const maxSize = 2 * 1024 * 1024\n const error = {\n \"file-too-large\": `O Tamanho do arquivo deve ser menor que ${maxSize} bytes`,\n \"file-invalid-type\": `O arquivo deve ser uma imagem`\n }\n\n return (\n \n \n \n \n {({ getRootProps, getInputProps, isDragActive, isDragReject, fileRejections }) => {\n fileRejections.map(item => props.setErrors(item.errors))\n return (\n \n {renderDragMessage(isDragActive, isDragReject)}\n \n )\n }}\n \n\n {props.errors.map((item, idx) =>\n {error[item.code]})\n }\n\n {props.done ?\n

    Aguarde...

    :\n props.fileUrl &&\n
    \n \"analyticdbi\"\n
    \n }\n\n
    \n
    \n )\n}\n\nexport default Component","import styled from 'styled-components'\n\nexport const CardBody = styled.div`\n padding: 30px 15px 15px;\n`","import { CardBody } from './styled'\n\nconst Component = props => {\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component","import { BtnBox } from './styled'\n\nconst Component = props => {\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component","import TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Upload from 'components/Form/Upload'\nimport Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport CardBody from 'components/CardBody'\nimport BtnBox from 'components/Button/BtnBox'\nimport { translate } from '../../utils/translate';\n\nconst Component = props => {\n return (\n <>\n \n \n\n \n \n \n \n
    \n \n \n \n \n \n {props.formik.isSubmitting ? : translate('pages.Profile.submit')}\n \n \n \n
    \n
    \n
    \n\n \n \n \n \n \n

    {props.messagesFile}

    \n
    \n
    \n
    \n\n \n \n \n \n
    \n \n \n \n \n \n \n {props.formikPassword.isSubmitting ? : translate('pages.Profile.submit')}\n \n \n \n
    \n
    \n
    \n \n \n \n \n {props.formikPassword.isSubmitting ? : translate('pages.Profile.cancelPlan')}\n \n \n \n\n\n
    \n \n )\n}\n\nexport default Component","import { useEffect, useState, useContext } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\n\nimport Validation from './validation'\nimport ValidationPassword from './validationPassword'\n\nimport {\n handleUserUpdateFile,\n handleUpdateProfile,\n handleUserUpdatePassword\n} from 'services/api/users'\n\nimport { Context } from 'contexts/context'\n\nimport { getUser } from 'services/auth'\n\nimport Component from './Component'\n\nconst Page = () => {\n const { setUser, user } = useContext(Context)\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [messagesPassword, setMessagesPassword] = useState({ messages: [], alert: '' })\n const [messagesFile, setMessagesFile] = useState('')\n\n const [data, setData] = useState({})\n const history = useHistory()\n\n const [done, setDone] = useState(true)\n const [errors, setErrors] = useState([])\n\n useEffect(() => {\n (async () => {\n setDone(true)\n await loadData()\n setDone(false)\n })()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n const loadData = async () => {\n try {\n const user = await getUser()\n\n setData(user)\n setUser(user)\n } catch(error) {}\n }\n\n const formik = useFormik({\n initialValues: { name: data.name, email: data.email },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleUpdateProfile(history, data.id, formik.values, setMessages),\n enableReinitialize: true\n })\n\n const formikPassword = useFormik({\n initialValues: { current_password: '', password: '', password_confirmation: '' },\n validationSchema: Yup.object(ValidationPassword(Yup)),\n onSubmit: () => handleUserUpdatePassword(history, formikPassword.values, setMessagesPassword)\n })\n\n const files = async files => {\n setMessagesFile('')\n setErrors([])\n setDone(true)\n await handleUserUpdateFile(files[0], data.id)\n await loadData()\n setDone(false)\n }\n\n return \n}\n\nexport default Page","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n password: yup.string()\n .min(6, translate('validations.AllValidations.minLength'))\n .required(translate('validations.AllValidations.requiredField')),\n password_confirmation: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n .oneOf([yup.ref('password'), null], translate('validations.AllValidations.passwordConfirmation'))\n})\n\nexport default Validation","import styled from 'styled-components'\n\nexport const Login = styled.div`\n padding: 0 1.5rem;\n display: flex;\n flex-direction: column;\n width: 100%;\n\n & h1 {\n font-size: 32px;\n padding: 10px 0;\n color: var(--color-fff);\n text-align: start;\n }\n\n @media (max-width: 450px) {\n margin-bottom: 15px;\n }\n\n @media (max-width: 350px) {\n margin-bottom: 5px;\n padding: 0 .5rem;\n }\n\n`\nexport const SubTitle = styled.p`\n color: rgba(255, 255, 255, .9);\n font-weight: bold;\n margin-bottom: 25px;\n\n @media (max-width: 450px) {\n margin-bottom: 15px;\n }\n`\nexport const InputBox = styled.div`\n padding: 10px 0;\n max-width: 100%;\n\n @media (max-width: 450px) {\n padding: 5px 4px;\n }\n`\nexport const BtnBox = styled.div`\n padding: 2rem 0;\n width: 100%;\n\n & button {\n width: 100%;\n }\n\n @media (max-width: 450px) {\n padding: .8rem;\n }\n`\nexport const ForgotPassword = styled.div`\n width: 100%;\n display: flex;\n justify-content: flex-end;\n & a {\n text-decoration: none;\n color: var(--color-blue);\n font-weight: bold;\n }\n`\nexport const Form = styled.form`\n width: 100%;\n\n`\n","import Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport { Login, SubTitle, InputBox, BtnBox, Form } from './styled'\nimport { translate } from '../../utils/translate';\n\nconst Component = ({ formik, messages, data }) => {\n return (\n \n

    {translate('pages.RecoverPassword.forgotPassword')}

    \n {translate('pages.RecoverPassword.instruction')}\n
    \n \n \n \n \n \n \n \n \n \n {formik.isSubmitting ? : translate('pages.RecoverPassword.submit')}\n \n \n \n
    \n )\n}\n\nexport default Component","import { useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { handleUserRecoverPassword } from 'services/api/users'\nimport Component from './Component'\n\nconst Page = ({ data }) => {\n\n const history = useHistory()\n const params = useParams()\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const formik = useFormik({\n initialValues: { password: '', password_confirmation: '' },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleUserRecoverPassword(history, params.token, formik.values, setMessages, data)\n })\n\n return \n}\n\nexport default Page","import { useContext } from 'react'\nimport { Redirect } from 'react-router-dom'\n\nimport { Context } from 'contexts/context'\n\nconst Page = () => {\n const { user } = useContext(Context)\n\n if (user.roles === 'admin') return \n\n return \n}\n\nexport default Page","import { setErrors } from 'utils'\nimport api from './api'\n\nexport const handlePowerBiGroups = async () =>\n (await api.get(`/powerbi/groups`)).data\n\nexport const handlePowerBiReports = async id =>\n (await api.get(`/powerbi/groups/${id}/reports`)).data\n\nexport const handlePowerBiReportAad = async values =>\n (await api.post(`/powerbi/reports/aad`, values)).data\n\nexport const handlePowerBiReportEmbed = async values =>\n (await api.post(`/powerbi/reports/embed`, values)).data\n\nexport const handlePowerBiExportReport = async values =>\n (\n await api.post(`/powerbi/reports/exportTo`, values, {\n responseType: 'blob',\n })\n ).data\n\nexport const handleRefreshPowerBiCapacities = async () =>\n (await api.post(`/powerbi/capacities/refresh`)).data\n\nexport const handleUpdatePowerBiCapacity = async (\n id,\n data,\n setMessages,\n history,\n) => {\n try {\n await api.put(`/powerbi/capacities/${id}`, data)\n\n return history.push('/capacidades')\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleUpdateOrCreatePowerBiCapacityIdleIntervals = async (\n id,\n data,\n setMessages,\n) => {\n try {\n await api.post(`/powerbi/capacities/${id}/idle-intervals`, data)\n setMessages({\n messages: 'Intervalo salvo com sucesso',\n alert: 'alert-green',\n })\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleGetPowerBiCapacity = async id =>\n (await api.get(`/powerbi/capacities/${id}`)).data\n\nexport const handleGetPowerBiCapacities = async () =>\n (await api.get(`/powerbi/capacities`)).data\n\nexport const handleResumePowerBiCapacity = async id =>\n (await api.post(`/powerbi/capacities/${id}/resume`)).data\n\nexport const handleSuspendPowerBiCapacity = async id =>\n (await api.post(`/powerbi/capacities/${id}/suspend`)).data\n","import styled from 'styled-components'\n\nexport const Container = styled.div`\n max-width: 100%;\n overflow-x: auto;\n`\n\nexport const Table = styled.table`\n width: 100%;\n padding: 0 15px 15px;\n & th {\n padding: 12px;\n text-align: left;\n border-bottom: 1px solid var(--color-grey);\n }\n & tr:nth-child(even) {\n background-color: var(--color-background-input);\n }\n & td {\n padding: 8px;\n }\n`\n\nexport const TdWithTextLimit = styled.td`\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: ${props => `${props.maxWidth || 200}px`};\n`\n","import React from 'react'\nimport { Container, Table } from './styled'\n\nconst Component = props => {\n\n return (\n \n\n \n \n {props.children}\n
    \n\n
    \n )\n}\n\nexport default Component","import { SmLinkBlue } from './styled'\n\nconst Component = props => {\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component\n","import { useEffect, useState } from 'react'\nimport { useFormik } from 'formik'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport Table from 'components/Table'\nimport SmLinkBlue from 'components/Button/SmLinkBlue'\nimport { FaChartBar } from \"react-icons/fa\"\nimport { translate } from '../../utils/translate';\n\nconst Component = props => {\n const [list, setList] = useState([])\n \n const formik = useFormik({\n initialValues: {\n search: ''\n }\n })\n\n useEffect(() => {\n setList(props.data.filter(item => item.name.toUpperCase().includes(formik.values.search.toUpperCase())))\n }, [formik.values.search, props.data])\n\n return (\n <>\n \n \n \n \n\n
    \n \n
    \n\n \n \n \n \n \n \n \n \n {list.map(item =>\n \n \n \n \n )}\n \n
    {translate('pages.Groups.name')}{translate('pages.Groups.actions')}
    {item.name}\n \n \n \n
    \n
    \n
    \n \n )\n}\n\nexport default Component","import { useEffect, useState } from 'react'\nimport { useParams } from 'react-router-dom'\nimport { handlePowerBiGroups } from 'services/api/powerbi'\nimport Component from './Component'\n\nconst Page = () => {\n const params = useParams()\n const [data, setData] = useState([])\n\n useEffect(() => {\n (async () => setData(await handlePowerBiGroups()))()\n }, [])\n\n return \n}\n\nexport default Page","import api from './api'\nimport { setErrors } from 'utils'\n\nexport const handleCategories = async () => (await api.post(`/categories/list-by-firm`)).data\n\nexport const handleCategorieshow = async id => (await api.get(`/categories/${id}`)).data\n\nexport const handleCategoriesByFirm = async () =>\n (await api.post(`/categories/list-by-firm`)).data\n\nexport const handleCategoriesByUser = async () =>\n (await api.post(`/categories/list-by-user`)).data\n\n export const handleReportsByUserAndCategory = async (id) =>\n (await api.post(`/categories/list-by-user/reports/${id}`)).data\n\nexport const handleCategoriesStore = async (history, data, setMessages) => {\n const values = {\n \"name\": data.name\n }\n\n try {\n const response = await api.post(`/categories/store`, values)\n return history.push(`/categorias/${response.data.id}/upload`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleCategory = async (history, data, cardId, setMessages) => {\n const values = {\n \"name\": data.name\n }\n try {\n await api.put(`/categories/${cardId}/update`, values)\n return history.push(`/categorias`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleCategoryDelete = async (id, history) => {\n await api.delete(`/categories/${id}`)\n return history.push(`/categorias`)\n}\n\nexport const handleCategoryUpdateFile = async (data, id) => {\n const values = new FormData()\n values.append('file', data)\n try {\n await api.put(`/categories/${id}/upload`, values)\n return\n } catch (error) {\n return error\n }\n}","import styled from 'styled-components'\n\nexport const ContainerDiv = styled.div`\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n @media (max-width: 2562px) {\n .container {\n width: 1440px;\n }\n }\n @media (max-width: 1440px) {\n .container {\n width: 1140px;\n }\n }\n @media (max-width: 1140px) {\n .container {\n width: 960px;\n }\n }\n @media (max-width: 960px) {\n .container {\n width: 720px;\n }\n }\n @media (max-width: 720px) {\n .container {\n width: 576px;\n }\n }\n @media (max-width: 576px) {\n .container {\n width: 100%;\n }\n .content {\n width: 90%;\n margin: 0 auto;\n padding: 16px;\n }\n }\n`","import { ContainerDiv } from './styled'\n\nconst Component = props => {\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component","import styled from 'styled-components'\nimport { Link } from 'react-router-dom'\n\nexport const CardLink = styled(Link)`\n & {\n border-radius: 20px;\n text-decoration: none;\n margin: 16px;\n width: 100%;\n padding: 12px;\n background-color: var(--color-background-report-card);\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n &:hover {\n opacity: 0.5;\n }\n & img {\n border-radius: 15px;\n width: 100%;\n }\n & p {\n background-color: var(--color-neutral-gray);\n font-size: 18px;\n margin: 10px 0;\n font-weight: 400;\n color: var(--color-fff);\n padding: 10px;\n border-radius: 10px;\n }\n @media (max-width: 2562px) {\n & {\n width: 20%;\n }\n }\n @media (max-width: 1440px) {\n & {\n width: 20%;\n }\n }\n @media (max-width: 1140px) {\n & {\n width: 30%;\n }\n }\n @media (max-width: 960px) {\n & {\n width: 45%;\n }\n }\n @media (max-width: 720px) {\n & {\n width: 90%;\n }\n }\n @media (max-width: 576px) {\n & {\n width: 90%;\n }\n }\n`\n","import './style.jsx'\nimport React from 'react'\nimport { CardLink } from './style'\n\nconst Component = ({ name, fileUrl, linkTo }) => {\n return (\n \n \"analyticdi\"\n

    {name}

    \n
    \n )\n}\n\nexport default Component","import { useContext, useEffect, useState } from 'react'\nimport { useParams } from 'react-router-dom'\n\nimport { handleCategoriesByUser } from 'services/api/categories'\n\nimport { Context } from 'contexts/context'\n\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Container from 'components/Container'\nimport Content from 'components/Content'\nimport ReportCard from 'components/ReportCard'\nimport TitleBar from 'components/TitleBar'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [data, setData] = useState([])\n\n const { user } = useContext(Context)\n\n const params = useParams()\n\n useEffect(() => {\n (async () => {\n try {\n setData(await handleCategoriesByUser())\n } catch(error) {}\n })()\n }, [params.group_id, user.roles])\n\n return (\n <>\n \n\n \n \n \n\n \n {data.map(item => )}\n \n \n \n \n )\n}\n\nexport default Page","import { useEffect, useState } from 'react'\nimport { useParams } from 'react-router-dom'\n\nimport { handleReportsByUserAndCategory } from 'services/api/categories'\n\n\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Container from 'components/Container'\nimport Content from 'components/Content'\nimport ReportCard from 'components/ReportCard'\nimport TitleBar from 'components/TitleBar'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [data, setData] = useState([])\n\n const params = useParams()\n\n useEffect(() => {\n (async () => {\n try {\n setData(await handleReportsByUserAndCategory(params.id))\n } catch(error) {}\n })()\n }, [params.id])\n\n console.log(data)\n\n return (\n <>\n \n\n \n \n \n\n \n {data.map(item => )}\n \n \n \n \n )\n}\n\nexport default Page","import api from './api'\nimport { setErrors } from 'utils'\n\nexport const handleCards = async () => (await api.post(`/report-cards/list-by-firm`)).data\n\nexport const handleCardShow = async id => (await api.get(`/report-cards/${id}`)).data\n\nexport const handleReportCardsByFirm = async () =>\n (await api.post(`/report-cards/list-by-firm`)).data\n\nexport const handleReportCardsStore = async (history, data, setMessages) => {\n const values = {\n \"group_id\": data.group_id,\n \"report_id\": data.report_id,\n \"dataset_id\": data.dataset_id,\n \"category_id\": data.category_id,\n \"name\": data.name,\n \"tipo\": data.tipo\n }\n\n try {\n const response = await api.post(`/report-cards/store`, values)\n return history.push(`/cards/${response.data.id}/upload`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleCardReport = async (history, data, cardId, setMessages) => {\n const values = {\n \"group_id\": data.group_id,\n \"report_id\": data.report_id,\n \"dataset_id\": data.dataset_id,\n \"category_id\": data.category_id,\n \"name\": data.name,\n \"tipo\": data.tipo,\n \"content\": data.content\n }\n console.log(values)\n try {\n await api.put(`/report-cards/${cardId}/update`, values)\n return history.push(`/cards`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleCardDelete = async (id, history) => {\n await api.delete(`/report-cards/${id}`)\n return history.push(`/cards`)\n}\n\nexport const handleCardUpdateFile = async (data, id) => {\n const values = new FormData()\n values.append('file', data)\n try {\n await api.put(`/report-cards/${id}/upload`, values)\n return\n } catch (error) {\n return error\n }\n}","import { useEffect, useState } from 'react'\nimport { useParams } from 'react-router-dom'\n\nimport { handleCardShow } from 'services/api/reportCards'\n\nconst Page = () => {\n const [data, setData] = useState()\n\n const params = useParams()\n\n useEffect(() => {\n (async () => {\n try {\n setData(await handleCardShow(params.id))\n } catch (error) { }\n })()\n }, [params.id])\n\n console.log(data)\n\n return (\n <>\n {data &&
    }\n \n )\n}\n\nexport default Page","import api from './api'\nimport { setErrors } from 'utils'\n\nexport const handleReportsByUser = async userId =>\n (await api.post(`/reports/list-by-user`, { user_id: userId })).data\n\nexport const handleReportsByUserWithCard = async () =>\n (await api.post(`/reports/list-by-user-with-card`)).data\n\nexport const handleReportsByUserWithCardWithoutGroups = async userId =>\n (await api.post(`/reports/list-by-user-with-card-and-no-groups`, { user_id: userId })).data\n\n\nexport const handleReportById = async id => (await api.get(`/reports/${id}`)).data\n\nexport const handleReport = async (reportId, userId) =>\n (await api.post(`/reports/show-by-report`, { report_id: reportId, user_id: userId })).data\n\nexport const handleStoreReport = async (history, data, userId, setMessages) => {\n const card = JSON.parse(data.card)\n const values = {\n user_id: data.user_id,\n name: card.name,\n report_id: card.report_id,\n group_id: card.group_id,\n dataset_id: card.dataset_id,\n roles: data.roles,\n page_navigation: data.page_navigation\n }\n try {\n await api.post(`/reports/store`, values)\n return history.push(`/usuarios/${userId}/relatorios`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleUpdateReport = async (history, data, reportId, userId, setMessages) => {\n try {\n await api.put(`/reports/${reportId}/update`, data)\n return history.push(`/usuarios/${userId}/relatorios`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleReportDelete = async (id, userId, history) => {\n await api.delete(`/reports/${id}`)\n return history.push(`/usuarios/${userId}/relatorios`)\n}","import api from './api'\n\nexport const handleAnalyticsUsersActionsReports = async ({ term, initialDate, endDate }) => {\n return (await api.get(`/users-actions/reports/by-firm/analytics?term=${term}&initialDate=${initialDate}&endDate=${endDate}`)).data\n}\n\nexport const handleAnalyticsUsersActionsReportsXlsx = async (data) => {\n return (await api.post(`/users-actions/reports/download/xlsx`, data, { responseType: \"blob\" })).data\n}\n\nexport const handleAnalyticsUsersActionsReportsPdf = async (data) => {\n return (await api.post(`/users-actions/reports/download/pdf`, data, { responseType: \"blob\" })).data\n}\n\nexport const handleListUsersActionsReports = async ({ term, initialDate, endDate, currentPage = 1, perPage = 10 }) => {\n return (await api.get(`/users-actions/reports/by-firm?term=${term}¤tPage=${currentPage}&perPage=${perPage}&initialDate=${initialDate}&endDate=${endDate}`)).data\n}\n\nexport const handleCreateUserActionReport = async (data) => {\n return (await api.post(`/users-actions/reports`, data)).data\n}\n\nexport const handleUpdateUserActionReport = async (id) => {\n return (await api.put(`/users-actions/reports/${id}`)).data\n}\n","const { useState, useEffect } = require('react')\n\nconst useWindowSize = () => {\n const [windowsSize, setWindowsSize] = useState({\n width: undefined,\n height: undefined,\n })\n\n useEffect(() => {\n function handleResize() {\n setWindowsSize({\n width: window.innerWidth,\n height: window.innerHeight,\n })\n }\n\n window.addEventListener('resize', handleResize)\n\n handleResize()\n\n return () => window.removeEventListener('resize', handleResize)\n }, [])\n\n return windowsSize\n}\n\nexport default useWindowSize\n","import { CFormRange } from '@coreui/react'\nimport { models } from 'powerbi-client'\nimport { useContext, useEffect, useState } from 'react'\nimport { useBeforeunload } from 'react-beforeunload'\nimport { AiOutlineMinus, AiOutlinePlus } from 'react-icons/ai'\nimport { MdZoomOutMap } from 'react-icons/md'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useDebouncedCallback } from 'use-debounce'\nimport config from '../../config'\n\nimport { Context } from 'contexts/context'\n\nimport { handleReport } from 'services/api/reports'\n\nimport {\n handlePowerBiReportAad,\n handlePowerBiReportEmbed,\n} from 'services/api/powerbi'\nimport {\n handleCreateUserActionReport,\n handleUpdateUserActionReport,\n} from 'services/api/usersActionsReports'\n\nimport { PowerBIEmbed } from 'powerbi-client-react'\n\nimport './style.css'\nimport useWindowSize from 'hooks/useWindowSize'\n\nconst Page = () => {\n const windowsSize = useWindowSize()\n\n const [data, setData] = useState({})\n const [userActionReportId, setUserActionReportId] = useState()\n\n const [isLoading, setIsLoading] = useState(true)\n const [hasMobile, setHasMobile] = useState(false)\n const [tent, setTent] = useState(false)\n\n const [isFitToPage, setIsFitToPage] = useState(true)\n const [rangeValue, setRangeValue] = useState(50)\n\n const debouncedRangeValue = useDebouncedCallback(async value => {\n setRangeValue(Number(value))\n await report.setZoom(value * 0.039 + 0.1)\n }, 500)\n\n const params = useParams()\n const history = useHistory()\n\n const { user, report, setReport, isLoaded, setIsLoaded } = useContext(Context)\n\n const { group_id, report_id, dataset_id } = params\n\n const getData = async () => {\n if (user.roles === 'admin') {\n const reportData = await handlePowerBiReportAad({ report_id, group_id })\n\n setData({\n reportId: reportData.reportId,\n embedUrl: reportData.embedUrl,\n token: reportData.accessToken,\n type: models.TokenType.Aad,\n })\n\n return reportData.accessToken\n }\n\n const roles = await handleReport(report_id, user.id)\n\n if (roles.roles) {\n const reportData = await handlePowerBiReportEmbed({\n group_id,\n report_id,\n dataset: dataset_id,\n username: user.email,\n roles: roles.roles,\n })\n\n handleUserAction(roles.report_card_id)\n\n setData({\n reportId: reportData.reportId,\n embedUrl: reportData.embedUrl,\n token: reportData.embedToken,\n page_navigation: roles.page_navigation,\n enable_filters: roles.enable_filters,\n type: models.TokenType.Embed,\n expiration: reportData.embedToken.expiration,\n })\n\n return reportData.embedToken\n }\n\n const reportData = await handlePowerBiReportAad({ report_id, group_id })\n\n handleUserAction(roles.report_card_id)\n\n setData({\n reportId: reportData.reportId,\n embedUrl: reportData.embedUrl,\n token: reportData.accessToken,\n page_navigation: roles.page_navigation,\n enable_filters: roles.enable_filters,\n type: models.TokenType.Aad,\n })\n\n return reportData.embedToken\n }\n\n useEffect(() => {\n if (user) getData()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [user])\n\n const handleUserAction = async report_card_id => {\n const userActionReportResponse = await handleCreateUserActionReport({\n report_id: report_card_id,\n })\n\n setUserActionReportId(userActionReportResponse)\n }\n\n useBeforeunload(() => {\n if (user.roles !== 'admin') {\n handleUpdateUserActionReport(userActionReportId)\n }\n })\n\n const unblock = history.block(() => {\n if (user.roles !== 'admin') {\n handleUpdateUserActionReport(userActionReportId)\n }\n\n setReport(null)\n setIsLoaded(false)\n unblock()\n })\n\n const embedConfig = {\n type: 'report',\n id: data.reportId,\n embedUrl: data.embedUrl,\n eventHooks: data.type === models.TokenType.Aad && {\n accessTokenProvider: async () => await getData(),\n },\n accessToken: data.token,\n tokenType: data.type || models.TokenType.Aad,\n settings: {\n layoutType: models.LayoutType.Custom,\n customLayout: {\n displayOption:\n models.DisplayOption[`${isFitToPage ? 'FitToPage' : 'FitToWidth'}`],\n },\n panes: {\n filters: {\n visible: data.enable_filters ? data.enable_filters : false,\n },\n pageNavigation: {\n visible: data.page_navigation ? data.page_navigation : false,\n },\n },\n },\n }\n\n useEffect(() => {\n async function checkIfPageHasMobile() {\n try {\n const pages = await report.getPages()\n const pageActive = pages.find(page => page.isActive)\n\n if (pageActive) {\n const pageHasLayoutMobile = await pageActive.hasLayout(\n models.LayoutType.MobilePortrait,\n )\n\n if (pageHasLayoutMobile) {\n report.updateSettings({\n layout: models.LayoutType.MobilePortrait,\n })\n setHasMobile(true)\n } else {\n setHasMobile(false)\n }\n } else {\n setHasMobile(false)\n }\n } catch (err) {}\n }\n if (isLoaded) {\n if (windowsSize.width <= 700) {\n checkIfPageHasMobile()\n } else {\n setHasMobile(false)\n }\n setIsLoading(false)\n }\n }, [windowsSize, isLoaded, report])\n\n const handleOnChange = event => {\n debouncedRangeValue(event.target.value)\n }\n\n const handleFit = () => {\n setIsFitToPage(!isFitToPage)\n }\n\n const handlePlusZoom = async () => {\n if (rangeValue < 100) {\n const newRangeValue = rangeValue + 5 > 100 ? 100 : rangeValue + 5\n setRangeValue(newRangeValue)\n\n await report.setZoom(newRangeValue * 0.039 + 0.1)\n }\n }\n\n const handleMinusZoom = async () => {\n if (rangeValue > 0) {\n const newRangeValue = rangeValue - 5 < 0 ? 0 : rangeValue - 5\n setRangeValue(newRangeValue)\n\n await report.setZoom(newRangeValue * 0.039 + 0.1)\n }\n }\n\n useEffect(() => {\n if (isLoaded);\n ;(async () => {\n try {\n report\n ?.getZoom()\n .then(response =>\n setRangeValue(Number(((response - 0.1) / 0.039).toFixed(0))),\n )\n } catch (error) {\n console.log(error)\n }\n })()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isFitToPage, tent])\n\n const handleMouseMove = useDebouncedCallback(async value => {\n setTent(!tent)\n }, 500)\n\n const embedFull = localStorage.getItem(config.embedFull);\n\n return (\n <>\n {isLoading && (\n
    \n \n
    \n )}\n handleMouseMove(ev),\n onTouchMove: ev => handleMouseMove(ev),\n })}\n style={{\n visibility: isLoading || hasMobile ? 'hidden' : 'visible',\n position: isLoading || hasMobile ? 'absolute' : 'relative',\n marginTop: embedFull === 'true' ? '70px' : '0px',\n }}\n >\n setIsLoaded(true)],\n ['error', event => console.warn(event.detail)],\n ])\n }\n getEmbeddedComponent={embedObject => setReport(embedObject)}\n embedConfig={embedConfig}\n cssClassName={'report'}\n />\n
    \n\n {windowsSize.width <= 700 && (\n \n setIsLoaded(true)],\n ['error', event => console.warn(event.detail)],\n ])\n }\n getEmbeddedComponent={embedObject => setReport(embedObject)}\n embedConfig={{\n ...embedConfig,\n settings: {\n ...embedConfig.settings,\n layoutType: models.LayoutType.MobilePortrait,\n },\n }}\n cssClassName={'reportMobile'}\n />\n \n )}\n\n {isLoaded && (\n
    \n \n\n \n\n \n\n {rangeValue}%\n\n \n
    \n )}\n \n )\n}\n\nexport default Page\n","import { useEffect, useState, useContext } from 'react'\nimport { useParams } from 'react-router-dom'\nimport { FaChartArea } from \"react-icons/fa\"\nimport { useFormik } from 'formik'\n\nimport { handlePowerBiReports } from 'services/api/powerbi'\nimport { handleReportsByUserWithCard } from 'services/api/reports'\n\nimport { Context } from 'contexts/context'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Table from 'components/Table'\nimport Input from 'components/Form/LabelInput'\nimport SmLinkBlue from 'components/Button/SmLinkBlue'\nimport Container from 'components/Container'\nimport ReportCard from 'components/ReportCard'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [data, setData] = useState([])\n const [list, setList] = useState([])\n\n const formik = useFormik({\n initialValues: {\n search: ''\n }\n })\n\n const { user } = useContext(Context)\n\n const params = useParams()\n\n useEffect(() => {\n (async () => {\n try {\n if (user.roles === 'admin') {\n setData(await handlePowerBiReports(params.group_id))\n } else {\n setData(await handleReportsByUserWithCard())\n }\n } catch (error) { }\n })()\n }, [params.group_id, user.roles])\n\n useEffect(() => {\n setList(data.filter(item => item[`${user.roles === 'admin' ? \"name\" : \"card_name\"}`].toUpperCase().includes(formik.values.search.toUpperCase())))\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [formik.values.search, data])\n\n return (\n <>\n \n\n \n \n \n\n
    \n \n
    \n\n {user.roles === 'admin' ?\n \n \n \n \n \n \n \n\n \n {list.map(item =>\n \n \n\n \n \n )}\n \n
    {translate('pages.Reports.name')}{translate('pages.Reports.actions')}
    {item.name}\n \n \n \n
    :\n \n {list.map(item => )}\n \n }\n
    \n
    \n \n )\n}\n\nexport default Page","import { useContext } from 'react'\n\nimport { Context } from 'contexts/context'\n\nimport { LinkBlue } from './styled'\n\nconst Component = props => {\n const { user } = useContext(Context)\n\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component","import { useEffect, useState } from 'react'\nimport { useFormik } from 'formik'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport LinkBlue from 'components/Button/LinkBlue'\nimport Input from 'components/Form/LabelInput'\nimport Container from 'components/Container'\nimport ReportCard from 'components/ReportCard'\n\nimport { handleReportCardsByFirm } from 'services/api/reportCards'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [data, setData] = useState([])\n const [list, setList] = useState([])\n\n const formik = useFormik({\n initialValues: {\n search: ''\n }\n })\n\n useEffect(() => {\n (async () => {\n setData(await handleReportCardsByFirm())\n })()\n }, [])\n\n useEffect(() => {\n setList(data.filter(item => item.name.toUpperCase().includes(formik.values.search.toUpperCase())))\n}, [formik.values.search, data])\n\n return (\n <>\n \n\n \n \n \n {translate('pages.Cards.create')}\n \n\n
    \n \n
    \n \n \n {list.map(item => )}\n \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { Label, SelectLabel } from './styled'\n\nconst Component = ({ name, label, flexGrow, readOnly, variant, formik, children }) => {\n return (\n <>\n \n \n \n {children}\n \n \n \n )\n}\n\nexport default Component","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string().required(translate('validations.AllValidations.requiredField')),\n group_id: yup.string(),\n report_id: yup.string(),\n category_id: yup.string().required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Select from 'components/Form/LabelSelect'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { useFormik } from 'formik'\nimport { useEffect, useState } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { handleCategories } from 'services/api/categories'\nimport { handlePowerBiGroups, handlePowerBiReports } from 'services/api/powerbi'\nimport { handleReportCardsStore } from 'services/api/reportCards'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [groups, setGroups] = useState([])\n const [reports, setReports] = useState([])\n const [categories, setCategories] = useState([])\n\n useEffect(() => {\n (async () => {\n setGroups(await handlePowerBiGroups())\n })()\n }, [])\n\n useEffect(() => {\n (async () => {\n setCategories(await handleCategories())\n })()\n }, [])\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const history = useHistory()\n const formik = useFormik({\n initialValues: { name: '', group_id: '', report_id: '', dataset_id: '', category_id: '', tipo: '0' },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleReportCardsStore(history, formik.values, setMessages)\n })\n\n useEffect(() => {\n (async () => {\n if (formik.values.group_id) {\n setReports(await handlePowerBiReports(formik.values.group_id))\n }\n })()\n }, [formik.values.group_id])\n\n useEffect(() => {\n if (formik.values.report_id) {\n formik.setFieldValue('name', (reports.find(element => element.id === formik.values.report_id)).name)\n formik.setFieldValue('dataset_id', (reports.find(element => element.id === formik.values.report_id)).datasetId)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [formik.values.report_id])\n\n return (\n <>\n \n \n \n \n \n \n
    \n \n \n {formik.values.tipo === '0' && (\n <>\n \n \n \n )}\n \n \n \n \n {formik.isSubmitting ? : translate('pages.CardsStore.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { BtnRed } from './styled'\n\nconst Component = props => {\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component","import { BtnWhite } from './styled'\n\nconst Component = props => {\n return {props.children}\n}\n\nexport default Component\n","import styled from 'styled-components'\n\nexport const Modal = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 10000;\n background-color: rgba(0, 0, 0, 0.7);\n`","import React from 'react'\nimport { Modal } from './styled'\n\nconst Component = props => {\n return (\n props.visibleModal &&\n \n {props.children}\n \n )\n}\n\nexport default Component","import React from 'react'\nimport Modal from './Component'\n\nconst Component = ({ id = 'modal', visibleModal, setVisibleModal, children }) => {\n const onClose = () => setVisibleModal(!visibleModal)\n const handleOutsideClick = e => {\n if (e.target.id === id) onClose()\n }\n\n return \n}\n\nexport default Component","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import { useEffect, useState, useRef } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport JoditEditor from 'jodit-react'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport Modal from 'components/Modal'\nimport CardBody from 'components/CardBody'\nimport Upload from 'components/Form/Upload'\nimport Select from 'components/Form/LabelSelect'\nimport Validation from './validation'\nimport { handleCategories } from 'services/api/categories'\nimport { handleCardShow, handleCardReport, handleCardDelete, handleCardUpdateFile } from 'services/api/reportCards'\nimport { handlePowerBiGroups, handlePowerBiReports } from 'services/api/powerbi'\n\nimport conf from '../../config'\nimport { getToken, getUniqueID } from 'services/auth'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const editor = useRef(null);\n const [content, setContent] = useState('')\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n const [visibleModal, setVisibleModal] = useState(false)\n\n const [messagesFile, setMessagesFile] = useState('')\n const [done, setDone] = useState(true)\n const [errors, setErrors] = useState([])\n\n const [groups, setGroups] = useState([])\n const [reports, setReports] = useState([])\n const [categories, setCategories] = useState([])\n\n useEffect(() => {\n (async () => {\n const res = await handleCardShow(params.id)\n setData(res)\n if (res.content) setContent(res.content)\n setDone(false)\n })()\n }, [params.id])\n\n useEffect(() => {\n (async () => {\n setCategories(await handleCategories())\n })()\n }, [])\n\n useEffect(() => {\n (async () => {\n await new Promise(async resolve => resolve(await handlePowerBiGroups()))\n .then(res => setGroups(res))\n })()\n }, [])\n\n const formik = useFormik({\n initialValues: {\n name: data.name,\n email: data.email,\n roles: data.roles,\n group_id: data.group_id,\n report_id: data.report_id,\n dataset_id: data.dataset_id,\n category_id: data.category_id ? String(data.category_id) : '',\n tipo: String(data.tipo)\n },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleCardReport(history, {...formik.values, content}, params.id, setMessages),\n enableReinitialize: true\n })\n\n useEffect(() => {\n (async () => {\n if (formik.values.group_id) {\n setReports(await handlePowerBiReports(formik.values.group_id))\n }\n })()\n }, [formik.values.group_id])\n\n useEffect(() => {\n if (formik.values.report_id) {\n reports.length > 0 && formik.setFieldValue('name', (reports.find(element => element.id === formik.values.report_id)).name)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [formik.values.report_id])\n\n const files = async files => {\n setMessagesFile('')\n setErrors([])\n setDone(true)\n await handleCardUpdateFile(files[0], params.id)\n setData(await handleCardShow(params.id))\n setDone(false)\n }\n\n const handleDelete = async () => await handleCardDelete(params.id, history)\n\n return (\n <>\n \n \n \n \n setVisibleModal(true)}>{translate('pages.CardsUpdate.delete')}\n \n \n \n
    \n \n \n \n {formik.values.tipo === \"1\" ? (\n\n <>\n
    \n\n setContent(newContent)} // preferred to use only editor option to update the content for performance reasons\n onChange={newContent => { }}\n />\n ) : (\n <>\n \n \n )}\n\n \n \n {formik.isSubmitting ? : translate('pages.CardsUpdate.submit')}\n \n \n \n \n \n \n\n \n \n \n \n \n

    {messagesFile}

    \n
    \n
    \n
    \n \n \n \n \n \n \n

    {translate('pages.CardsUpdate.confirmDelete')}

    \n \n {translate('pages.CardsUpdate.deleteButton')}\n setVisibleModal(false)}>{translate('pages.CardsUpdate.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Upload from 'components/Form/Upload'\nimport Messages from 'components/Messages'\nimport Modal from 'components/Modal'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { useFormik } from 'formik'\nimport JoditEditor from 'jodit-react'\nimport { useEffect, useRef, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport {\n handleCardDelete,\n handleCardReport,\n handleCardShow,\n handleCardUpdateFile\n} from 'services/api/reportCards'\nimport * as Yup from 'yup'\nimport Validation from './validation'\n\nimport { getToken, getUniqueID } from 'services/auth'\nimport conf from '../../config'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const editor = useRef(null);\n const [content, setContent] = useState('')\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n const [visibleModal, setVisibleModal] = useState(false)\n\n const [messagesFile, setMessagesFile] = useState('')\n const [done, setDone] = useState(true)\n const [errors, setErrors] = useState([])\n\n useEffect(() => {\n (async () => {\n const res = await handleCardShow(params.id)\n setData(res)\n setContent(res.content)\n setDone(false)\n })()\n }, [params.id])\n\n const formik = useFormik({\n initialValues: {\n name: data.name,\n email: data.email,\n roles: data.roles,\n group_id: data.group_id,\n report_id: data.report_id,\n dataset_id: data.dataset_id,\n category_id: data.category_id ? String(data.category_id) : '',\n tipo: String(data.tipo)\n },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleCardReport(history, { ...formik.values, content }, params.id, setMessages),\n enableReinitialize: true\n })\n\n const files = async files => {\n setMessagesFile('')\n setErrors([])\n setDone(true)\n await handleCardUpdateFile(files[0], params.id)\n setData(await handleCardShow(params.id))\n setDone(false)\n }\n\n const handleDelete = async () => await handleCardDelete(params.id, history)\n\n return (\n <>\n \n \n \n \n setVisibleModal(true)}>{translate('pages.CardsUpdateImage.delete')}\n \n \n \n
    \n \n \n\n {data.tipo === 1 && (\n <>\n
    \n\n setContent(newContent)} // preferred to use only editor option to update the content for performance reasons\n onChange={newContent => { }}\n />\n \n )}\n \n \n {formik.isSubmitting ? : translate('pages.CardsUpdateImage.submit')}\n \n \n \n \n \n \n\n \n \n \n \n \n

    {messagesFile}

    \n
    \n
    \n
    \n\n \n \n \n \n \n \n

    {translate('pages.CardsUpdateImage.confirmDelete')}

    \n \n {translate('pages.CardsUpdateImage.delete')}\n setVisibleModal(false)}>{translate('pages.CardsUpdateImage.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { useEffect, useState } from 'react'\nimport { useFormik } from 'formik'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport LinkBlue from 'components/Button/LinkBlue'\nimport Input from 'components/Form/LabelInput'\nimport Container from 'components/Container'\nimport ReportCard from 'components/ReportCard'\n\nimport { handleCategoriesByFirm } from 'services/api/categories'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [data, setData] = useState([])\n const [list, setList] = useState([])\n\n const formik = useFormik({\n initialValues: {\n search: ''\n }\n })\n\n useEffect(() => {\n (async () => {\n setData(await handleCategoriesByFirm())\n })()\n }, [])\n\n useEffect(() => {\n setList(data.filter(item => item.name.toUpperCase().includes(formik.values.search.toUpperCase())))\n}, [formik.values.search, data])\n\n return (\n <>\n \n\n \n \n \n {translate('pages.Categories.create')}\n \n\n
    \n \n
    \n \n \n {list.map(item => )}\n \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string().required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { useFormik } from 'formik'\nimport { useState } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { handleCategoriesStore } from 'services/api/categories'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { translate } from '../../utils/translate';\n\n\nconst Page = () => {\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const history = useHistory()\n const formik = useFormik({\n initialValues: { name: '' },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleCategoriesStore(history, formik.values, setMessages)\n })\n\n return (\n <>\n \n \n \n \n \n \n
    \n \n \n \n \n {formik.isSubmitting ? : translate('pages.CategoriesStore.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport Modal from 'components/Modal'\nimport CardBody from 'components/CardBody'\nimport Upload from 'components/Form/Upload'\nimport Validation from './validation'\nimport { handleCategorieshow, handleCategory, handleCategoryDelete, handleCategoryUpdateFile } from 'services/api/categories'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n const [visibleModal, setVisibleModal] = useState(false)\n\n const [messagesFile, setMessagesFile] = useState('')\n const [done, setDone] = useState(true)\n const [errors, setErrors] = useState([])\n\n useEffect(() => {\n (async () => {\n setData(await handleCategorieshow(params.id))\n setDone(false)\n })()\n }, [params.id])\n\n const formik = useFormik({\n initialValues: {\n name: data.name\n },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleCategory(history, formik.values, params.id, setMessages),\n enableReinitialize: true\n })\n\n const files = async files => {\n setMessagesFile('')\n setErrors([])\n setDone(true)\n await handleCategoryUpdateFile(files[0], params.id)\n setData(await handleCategorieshow(params.id))\n setDone(false)\n }\n\n const handleDelete = async () => await handleCategoryDelete(params.id, history)\n\n return (\n <>\n \n \n \n \n setVisibleModal(true)}>{translate('pages.CategoriesUpdate.delete')}\n \n \n \n
    \n \n \n \n \n {formik.isSubmitting ? : translate('pages.CategoriesUpdate.submit')}\n \n \n \n
    \n
    \n
    \n\n \n \n \n \n \n

    {messagesFile}

    \n
    \n
    \n
    \n
    \n \n \n \n \n \n

    {translate('pages.CategoriesUpdate.confirmDelete')}

    \n \n {translate('pages.CategoriesUpdate.deleteButton')}\n setVisibleModal(false)}>{translate('pages.CategoriesUpdate.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport Modal from 'components/Modal'\nimport CardBody from 'components/CardBody'\nimport Upload from 'components/Form/Upload'\nimport Validation from './validation'\nimport {\n handleCategorieshow,\n handleCategory,\n handleCategoryDelete,\n handleCategoryUpdateFile\n} from 'services/api/categories'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n const [visibleModal, setVisibleModal] = useState(false)\n\n const [messagesFile, setMessagesFile] = useState('')\n const [done, setDone] = useState(true)\n const [errors, setErrors] = useState([])\n\n useEffect(() => {\n (async () => {\n setData(await handleCategorieshow(params.id))\n setDone(false)\n })()\n }, [params.id])\n\n const formik = useFormik({\n initialValues: {\n name: data.name\n },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleCategory(history, formik.values, params.id, setMessages),\n enableReinitialize: true\n })\n\n const files = async files => {\n setMessagesFile('')\n setErrors([])\n setDone(true)\n await handleCategoryUpdateFile(files[0], params.id)\n setData(await handleCategorieshow(params.id))\n setDone(false)\n }\n\n const handleDelete = async () => await handleCategoryDelete(params.id, history)\n\n return (\n <>\n \n \n \n \n setVisibleModal(true)}>{translate('pages.CategoriesUpdateImage.delete')}\n \n \n \n
    \n \n \n \n \n {formik.isSubmitting ? : translate('pages.CategoriesUpdateImage.submit')}\n \n \n \n
    \n
    \n
    \n\n \n \n \n \n \n

    {messagesFile}

    \n
    \n
    \n
    \n
    \n \n \n \n \n \n

    {translate('pages.CategoriesUpdateImage.confirmDelete')}

    \n \n {translate('pages.CategoriesUpdateImage.delete')}\n setVisibleModal(false)}>{translate('pages.CategoriesUpdateImage.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n user_id: yup.number().required(translate('validations.AllValidations.requiredField')),\n card: yup.string().required(translate('validations.AllValidations.requiredField')),\n roles: yup.string()\n})\n\nexport default Validation","import { Label, CheckboxLabel } from './styled'\n\nconst Component = ({ name, label, formik, checked, ...rest }) => {\n return (\n \n \n \n \n )\n}\n\nexport default Component\n","import { useEffect, useState, useContext } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { handleStoreReport } from 'services/api/reports'\nimport { handleCards } from 'services/api/reportCards'\nimport { handleUserShow } from 'services/api/users'\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport Checkbox from 'components/Form/LabelCheckbox'\nimport Select from 'components/Form/LabelSelect'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport Table from 'components/Table'\nimport CardBody from 'components/CardBody'\nimport BtnBox from 'components/Button/BtnBox'\n\nimport { Context } from 'contexts/context'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const params = useParams()\n\n const [cards, setCards] = useState([])\n const [user, setUser] = useState({})\n\n const { user: { firm_id } } = useContext(Context)\n\n useEffect(() => {\n (async () => {\n setUser(await handleUserShow(params.id))\n })()\n }, [params.id])\n\n useEffect(() => {\n (async () => {\n try {\n setCards(await handleCards(firm_id))\n } catch(error) {}\n })()\n }, [firm_id])\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const history = useHistory()\n const formik = useFormik({\n initialValues: { user_id: params.id, roles: '', page_navigation: false, card: {} },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleStoreReport(history, formik.values, params.id, setMessages)\n })\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    {translate('pages.ReportsUserStore.name')}{translate('pages.ReportsUserStore.email')}{translate('pages.ReportsUserStore.permission')}
    {user.name}{user.email}{user.roles}
    \n
    \n \n \n \n \n
    \n \n \n \n \n \n \n {formik.isSubmitting ? : translate('pages.ReportsUserStore.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page","const Validation = yup => ({\n roles: yup.string()\n})\n\nexport default Validation","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Checkbox from 'components/Form/LabelCheckbox'\nimport Input from 'components/Form/LabelInput'\nimport Messages from 'components/Messages'\nimport Modal from 'components/Modal'\nimport Spinner from 'components/Spinner'\nimport Table from 'components/Table'\nimport TitleBar from 'components/TitleBar'\nimport { useFormik } from 'formik'\nimport { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { handleReportById, handleReportDelete, handleUpdateReport } from 'services/api/reports'\nimport { handleUserShow } from 'services/api/users'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const params = useParams()\n const [data, setData] = useState({})\n const [user, setUser] = useState({})\n const [visibleModal, setVisibleModal] = useState(false)\n\n useEffect(() => {\n (async () => {\n setUser(await handleUserShow(params.id))\n })()\n }, [params.id])\n\n useEffect(() => {\n (async () => {\n setData(await handleReportById(params.report_id))\n })()\n }, [params.report_id])\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const history = useHistory()\n const formik = useFormik({\n initialValues: { roles: data.roles, page_navigation: data.page_navigation === 1 ? true : false },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleUpdateReport(history, formik.values, params.report_id, params.id, setMessages),\n enableReinitialize: true\n })\n\n const handleDelete = async () => await handleReportDelete(params.report_id, params.id, history)\n\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    {translate('pages.ReportsUserUpdate.name')}{translate('pages.ReportsUserUpdate.email')}{translate('pages.ReportsUserUpdate.permission')}
    {user.name}{user.email}{user.roles}
    \n
    \n \n \n setVisibleModal(true)}>{translate('pages.ReportsUserUpdate.delete')}\n \n \n \n
    \n \n \n \n \n \n {formik.isSubmitting ? : translate('pages.ReportsUserUpdate.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n \n \n \n \n

    {translate('pages.ReportsUserUpdate.confirmDelete')}

    \n \n \n Excluir\n \n setVisibleModal(false)}>{translate('pages.ReportsUserUpdate.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page","import { useEffect, useState } from 'react'\nimport { useParams } from 'react-router'\nimport { RiSubtractLine } from \"react-icons/ri\"\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Table from 'components/Table'\nimport LinkBlue from 'components/Button/LinkBlue'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnBox from 'components/Button/BtnBox'\nimport CardBody from 'components/CardBody'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Modal from 'components/Modal'\n\nimport { handleUserShow } from 'services/api/users'\n\nimport api from 'services/api/api'\n\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [user, setUser] = useState({})\n\n const [userAccess, setUserAcess] = useState([])\n const [visibleModal, setVisibleModal] = useState(false)\n\n const [userAccessSelectedId, setUserAccessSelectedId] = useState()\n\n const params = useParams()\n\n useEffect(() => {\n (async () => {\n setUser(await handleUserShow(params.id))\n })()\n }, [params.id])\n\n useEffect(() => {\n loadUserReportsCollections()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n const loadUserReportsCollections = async () => {\n try {\n const { data } = await api.get(`/users-access/${params.id}`)\n\n setUserAcess(data)\n } catch(error) {\n\n }\n }\n\n const handleDelete = async () => {\n try {\n await api.delete(`/users-access/${userAccessSelectedId}`)\n\n loadUserReportsCollections()\n setVisibleModal(false)\n } catch(error) {\n }\n }\n\n return (\n <>\n \n\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    {translate('pages.UserAccessControl.name')}{translate('pages.UserAccessControl.email')}{translate('pages.UserAccessControl.permission')}
    {user.name}{user.email}{user.roles}
    \n
    \n\n \n \n {translate('pages.UserAccessControl.create')}\n \n\n \n \n \n \n \n \n \n \n \n\n \n {userAccess.map(userReportsCollection => (\n \n \n \n \n\n \n \n ))}\n \n
    #{translate('pages.UserAccessControl.from')}{translate('pages.UserAccessControl.to')}{translate('pages.UserAccessControl.actions')}
    {userReportsCollection.id}{userReportsCollection.initial_date}{userReportsCollection.end_date}\n {\n setVisibleModal(true)\n setUserAccessSelectedId(userReportsCollection.id)\n }}>\n \n \n
    \n
    \n
    \n\n \n \n \n \n \n

    {translate('pages.UserAccessControl.confirmDelete')}

    \n\n \n {translate('pages.UserAccessControl.delete')}\n setVisibleModal(false)}>{translate('pages.UserAccessControl.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { useFormik } from 'formik'\nimport { useEffect, useState } from 'react'\nimport { FaEdit } from \"react-icons/fa\"\nimport { RiSubtractLine } from \"react-icons/ri\"\nimport { useParams } from 'react-router'\nimport Swal from \"sweetalert2\"\n\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport LinkBlue from 'components/Button/LinkBlue'\nimport SmLinkBlue from 'components/Button/SmLinkBlue'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Checkbox from 'components/Form/LabelCheckbox'\nimport Modal from 'components/Modal'\nimport Table from 'components/Table'\nimport TitleBar from 'components/TitleBar'\n\nimport { handleReportsByUserWithCardWithoutGroups } from 'services/api/reports'\nimport { handleUpdateViewReportOptions, handleUserShow } from 'services/api/users'\n\nimport api from 'services/api/api'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [data, setData] = useState([])\n const [user, setUser] = useState({})\n\n const [userReportsCollections, setUserReportsCollections] = useState([])\n const [visibleModal, setVisibleModal] = useState(false)\n\n const [collectionSelectedId, setCollectionSelectedId] = useState()\n\n const params = useParams()\n\n const formik = useFormik({\n initialValues: {\n view_report_options: !!user.view_report_options,\n restricted_login: !!user.restricted_login\n },\n enableReinitialize: true\n })\n\n useEffect(() => {\n (async () => {\n setUser(await handleUserShow(params.id))\n setData(await handleReportsByUserWithCardWithoutGroups(params.id))\n })()\n }, [params.id])\n\n useEffect(() => {\n loadUserReportsCollections()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n const loadUserReportsCollections = async () => {\n try {\n const { data } = await api.get(`/users-collections/${params.id}`)\n\n setUserReportsCollections(data)\n } catch(error) {\n\n }\n }\n\n const handleDelete = async () => {\n try {\n await api.delete(`/users-collections/${collectionSelectedId}`)\n\n loadUserReportsCollections()\n setVisibleModal(false)\n } catch(error) {\n }\n }\n\n const handleSetViewReportOptions = async () => {\n const viewReportOptions = !formik.values.view_report_options ? 1 : 0\n\n try {\n await handleUpdateViewReportOptions({\n view_report_options: viewReportOptions\n }, user.id)\n\n Swal.fire(\n translate('validations.AllValidations.SwalSuccess'),\n translate('validations.AllValidations.SwalSuccessAtuMsg'),\n 'success'\n )\n } catch(error) {\n console.log(error);\n Swal.fire(\n translate('validations.AllValidations.SwalError'),\n translate('validations.AllValidations.SwalErrorAtuMsg'),\n 'error'\n )\n }\n }\n\n return (\n <>\n \n\n \n \n \n\n \n \n \n \n \n \n \n {/* */}\n \n \n \n \n \n \n \n\n \n\n {/* */}\n \n \n
    {translate('pages.UserReports.name')}{translate('pages.UserReports.email')}{translate('pages.UserReports.permission')}{translate('pages.UserReports.viewOptions')}Login restrito
    {user.name}{user.email}{user.roles}\n {user.id && }\n \n {user.id && }\n
    \n
    \n\n \n \n {translate('pages.UserReports.create')}\n \n\n \n \n \n \n \n \n \n \n \n \n \n\n \n {data.map(item =>\n \n \n \n \n \n \n\n \n \n )}\n \n
    #{translate('pages.UserReports.report')}{translate('pages.UserReports.card')}{translate('pages.UserReports.roles')}{translate('pages.UserReports.tabsEnabled')}{translate('pages.UserReports.actions')}
    {item.id}{item.name}{item.card_name}{item.roles}{item.page_navigation ? translate('pages.UserReports.yes') : translate('pages.UserReports.no')}\n \n \n \n
    \n
    \n\n \n \n {translate('pages.UserReports.create')}\n \n\n \n \n \n \n \n \n \n \n\n \n {userReportsCollections.map(userReportsCollection => (\n \n \n \n\n \n \n ))}\n \n
    #{translate('pages.UserReports.name')}{translate('pages.UserReports.actions')}
    {userReportsCollection.id}{userReportsCollection.users_group.name}\n {\n setVisibleModal(true)\n setCollectionSelectedId(userReportsCollection.id)\n }}>\n \n \n
    \n
    \n
    \n\n \n \n \n \n \n

    {translate('pages.UserReports.confirmDelete')}

    \n\n \n {translate('pages.UserReports.delete')}\n setVisibleModal(false)}>{translate('pages.UserReports.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import styled from 'styled-components'\n\nexport const Td = styled.td`\n display: flex;\n & a {\n margin: 0 5px;\n }\n`","import { Td } from './styled'\n\nconst Component = props => {\n return (\n \n {props.children}\n \n )\n}\n\nexport default Component","import TitleBar from \"components/TitleBar\";\nimport Content from \"components/Content\";\nimport Card from \"components/Card\";\nimport CardTitle from \"components/CardTitle\";\nimport Table from \"components/Table\";\nimport LinkBlue from \"components/Button/LinkBlue\";\nimport SmLinkBlue from \"components/Button/SmLinkBlue\";\nimport { FaEdit, FaChartArea, FaCopy } from \"react-icons/fa\";\nimport { GiSettingsKnobs } from \"react-icons/gi\";\nimport Input from 'components/Form/LabelInput'\nimport { useFormik } from 'formik'\nimport Td from \"components/Td\";\nimport { useEffect, useState } from \"react\";\nimport { translate } from '../../utils/translate';\n\nconst Component = (props) => {\n const [list, setList] = useState([])\n const [show, setShow] = useState([])\n \n useEffect(() => {\n setShow(Array(props.data.length).fill(false))\n }, [props.data])\n\n console.log(show)\n\n const formik = useFormik({\n initialValues: {\n search: ''\n }\n })\n\n useEffect(() => {\n setList(props.data.filter(item => item.name.toUpperCase().includes(formik.values.search.toUpperCase())))\n}, [formik.values.search, props.data])\n\n return (\n <>\n \n \n \n \n {translate('pages.Users.create')}\n \n\n
    \n \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n {list.map((item, index) => (\n \n \n \n \n \n \n \n ))}\n \n
    #{translate('pages.Users.name')}{translate('pages.Users.email')}{translate('pages.Users.permission')}{translate('pages.Users.actions')}
    {`#${item.id}`}{item.name}{item.email}{item.roles}\n \n navigator.clipboard.writeText(list[index].password ? list[index].password : translate('pages.Users.noPassword'))} />\n \n \n \n \n {item.roles === \"user\" && (\n \n \n \n )}\n {item.roles === \"user\" && (\n \n \n \n )}\n
    \n
    \n
    \n \n );\n};\n\nexport default Component;\n","import { useEffect, useState } from 'react'\n\nimport { handleUsers } from 'services/api/users'\n\nimport Component from './Component'\n\nconst Page = () => {\n const [data, setData] = useState([])\n\n useEffect(() => {\n (async () => {\n try {\n setData(await handleUsers())\n } catch(error) {}\n })()\n }, [])\n\n return \n}\n\nexport default Page","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField')),\n email: yup.string()\n .email(translate('validations.AllValidations.validEmail'))\n .required(translate('validations.AllValidations.requiredField')),\n contact: yup.string()\n .required(translate('validations.AllValidations.requiredField')),\n value: yup.string()\n .required(translate('validations.AllValidations.requiredField')),\n})\n\nexport default Validation","import api from './api'\nimport { setErrors } from 'utils'\n\nexport const handleStatushow = async id => (await api.get(`/status/${id}`)).data\n\nexport const handleStatusByFirm = async () =>\n (await api.post(`/status/list-by-firm`)).data\n\nexport const handleStatusStore = async (history, data, setMessages) => {\n const values = {\n name: data.name,\n }\n\n try {\n await api.post(`/status/store`, values)\n return history.push(`/usuarios/cadastrar`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleStatusUpdate = async (\n history,\n data,\n cardId,\n setMessages,\n) => {\n const values = {\n name: data.name,\n }\n try {\n await api.put(`/status/${cardId}/update`, values)\n return history.push(`/usuarios/cadastrar`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleStatusDelete = async (id, history) => {\n await api.delete(`/status/${id}`)\n return history.push(`/usuarios/cadastrar`)\n}\n","import api from './api'\nimport { setErrors } from 'utils'\n\nexport const handleOriginshow = async id =>\n (await api.get(`/origins/${id}`)).data\n\nexport const handleOriginsByFirm = async () =>\n (await api.post(`/origins/list-by-firm`)).data\n\nexport const handleOriginsStore = async (history, data, setMessages) => {\n const values = {\n name: data.name,\n }\n\n try {\n await api.post(`/origins/store`, values)\n return history.push(`/usuarios/cadastrar`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleOriginsUpdate = async (\n history,\n data,\n cardId,\n setMessages,\n) => {\n const values = {\n name: data.name,\n }\n try {\n await api.put(`/origins/${cardId}/update`, values)\n return history.push(`/usuarios/cadastrar`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n}\n\nexport const handleOriginsDelete = async (id, history) => {\n await api.delete(`/origins/${id}`)\n return history.push(`/usuarios/cadastrar`)\n}\n","import TitleBar from 'components/TitleBar'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Table from 'components/Table'\nimport Content from 'components/Content'\nimport LinkBlue from 'components/Button/LinkBlue'\nimport SmLinkBlue from 'components/Button/SmLinkBlue'\nimport Input from 'components/Form/LabelInput'\nimport Select from 'components/Form/LabelSelect'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Checkbox from 'components/Form/LabelCheckbox'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport { FaEdit } from 'react-icons/fa'\nimport Td from 'components/Td'\nimport CardBody from 'components/CardBody'\nimport { phoneMask, moneyMask } from '../../utils/index'\nimport { useEffect, useState } from 'react'\nimport BtnBox from 'components/Button/BtnBox'\n\nimport { handleStatusByFirm } from 'services/api/status'\nimport { handleOriginsByFirm } from 'services/api/origins'\nimport { handleCompanies } from 'services/api/empresas'\nimport { translate } from '../../utils/translate';\n\nconst Component = props => {\n const [data, setData] = useState([])\n const [list, setList] = useState([])\n\n const [originData, setOriginData] = useState([])\n const [originList, setOriginList] = useState([])\n\n const [companiesData, setCompaniesData] = useState([])\n\n useEffect(() => {\n ;(async () => {\n setCompaniesData(await handleCompanies())\n })()\n }, [])\n\n useEffect(() => {\n ;(async () => {\n setData(await handleStatusByFirm())\n })()\n }, [])\n\n useEffect(() => {\n setList(\n data.filter(item =>\n item.name\n .toUpperCase()\n .includes(props.formik.values.search.toUpperCase()),\n ),\n )\n }, [props.formik.values.search, data])\n\n useEffect(() => {\n ;(async () => {\n setOriginData(await handleOriginsByFirm())\n })()\n }, [])\n\n useEffect(() => {\n setOriginList(\n originData.filter(item =>\n item.name\n .toUpperCase()\n .includes(props.formik.values.searchOrigin.toUpperCase()),\n ),\n )\n }, [props.formik.values.searchOrigin, originData])\n\n return (\n <>\n \n \n \n \n \n \n
    \n \n \n \n \n \n \n \n \n \n \n {\n props.formik.setFieldValue(\n 'send_mail',\n e.target.checked ? 1 : 0,\n )\n }}\n />\n \n \n {props.formik.isSubmitting ? : translate('pages.UsersStore.submit')}\n \n \n \n
    \n
    \n
    \n
    \n\n \n \n \n \n Cadastrar\n \n \n\n
    \n \n
    \n\n \n \n \n \n \n \n \n \n \n {originList.map((item, index) => (\n \n \n \n \n \n ))}\n \n
    #{translate('pages.UsersStore.name')}{translate('pages.UsersStore.actions')}
    {`#${item.id}`}{item.name}\n \n \n \n
    \n
    \n
    \n\n \n \n \n \n Cadastrar\n \n \n\n
    \n \n
    \n\n \n \n \n \n \n \n \n \n \n {list.map((item, index) => (\n \n \n \n \n \n ))}\n \n
    #{translate('pages.UsersStore.name')}{translate('pages.UsersStore.actions')}
    {`#${item.id}`}{item.name}\n \n \n \n
    \n
    \n
    \n \n )\n}\n\nexport default Component\n","import { useState } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { handleStoreUser } from 'services/api/users'\n\nimport Component from './Component'\n\nconst Page = () => {\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const history = useHistory()\n const formik = useFormik({\n initialValues: { name: '', email: '', document: '', roles: '', search: '', contact: '', value: '0', searchOrigin: '' },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => {\n const formattedData = {...formik.values, 'document': formik.values.document.replace(/\\D/g, '')}\n handleStoreUser(history, formattedData, setMessages);\n }\n })\n\n return \n}\n\nexport default Page","\nimport { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField')),\n email: yup.string()\n .email(translate('validations.AllValidations.validEmail'))\n .required(translate('validations.AllValidations.requiredField')),\n})\n\nexport default Validation","import TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport Modal from 'components/Modal'\nimport Select from 'components/Form/LabelSelect'\nimport Checkbox from 'components/Form/LabelCheckbox'\nimport { phoneMask, moneyMask } from '../../utils/index'\nimport { useEffect, useState } from 'react'\nimport CardBody from 'components/CardBody'\nimport { handleGeneratePassword } from 'services/api/users'\nimport { handleStatusByFirm } from 'services/api/status'\nimport { handleOriginsByFirm } from 'services/api/origins'\nimport { handleCompanies } from 'services/api/empresas'\nimport { translate } from '../../utils/translate';\n\nconst Component = props => {\n const [data, setData] = useState([])\n const [originData, setOriginData] = useState([])\n\n const [companiesData, setCompaniesData] = useState([])\n\n useEffect(() => {\n ;(async () => {\n setCompaniesData(await handleCompanies())\n })()\n }, [])\n\n useEffect(() => {\n ;(async () => {\n setData(await handleStatusByFirm())\n })()\n }, [])\n\n useEffect(() => {\n ;(async () => {\n setOriginData(await handleOriginsByFirm())\n })()\n }, [])\n\n return (\n <>\n \n \n \n \n props.setVisibleModal(true)}>\n {translate('pages.UsersUpdate.delete')}\n \n \n \n \n
    \n \n \n \n \n \n {\n props.formik.setFieldValue('text_message', e.target.checked)\n }}\n />\n {\n props.formik.setFieldValue(\n 'voice_message',\n e.target.checked,\n )\n }}\n />\n \n \n \n \n \n \n \n {props.formik.isSubmitting ? : translate('pages.UsersUpdate.submit')}\n \n\n {\n await handleGeneratePassword(props.id)\n props.history.push(`/usuarios`)\n }}\n style={{ cursor: 'pointer', fontWeight: 'bold' }}\n >\n {translate('pages.UsersUpdate.generatePassword')}\n \n \n \n
    \n
    \n
    \n
    \n \n \n \n \n \n

    {translate('pages.UsersUpdate.confirmDelete')}

    \n \n {translate('pages.UsersUpdate.delete')}\n props.setVisibleModal(false)}>\n Cancelar\n \n \n
    \n
    \n
    \n
    \n \n \n )\n}\n\nexport default Component\n","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport {\n handleUserShow,\n handleUpdateUser,\n handleUserDelete,\n} from 'services/api/users'\nimport Component from './Component'\n\nconst Page = () => {\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n const [visibleModal, setVisibleModal] = useState(false)\n\n useEffect(() => {\n ;(async () => setData(await handleUserShow(params.id)))()\n }, [params.id])\n\n const formik = useFormik({\n initialValues: {\n name: data.name,\n email: data.email,\n document: data.document || '',\n roles: data.roles,\n contact: data.contact || '',\n value: String(data?.value?.toFixed(2) || '0'),\n status_id: data.status_id || '',\n origin_id: data.origin_id || '',\n company_id: data.company_id || '',\n text_message: data.text_message || false,\n voice_message: data.voice_message || false,\n },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => {\n const formattedData = {...formik.values, 'document': formik.values.document.replace(/\\D/g, '')}\n handleUpdateUser(history, formattedData, params.id, setMessages);\n },\n enableReinitialize: true,\n })\n\n const handleDelete = async () => await handleUserDelete(params.id, history)\n\n return (\n \n )\n}\n\nexport default Page\n","import styled from 'styled-components'\n\nimport DatePicker from \"react-datepicker\";\n\nimport \"react-datepicker/dist/react-datepicker.css\";\n\nexport const ReactDatePicker = styled(DatePicker)`\n border: 1px solid var(--color-grey);\n color: var(--color-font);\n font-size: 16px;\n padding: 10px 20px;\n margin-top: 8px;\n border-radius: 20px;\n width: 100%;\n background-color: var(--color-background-input);\n\n &:focus {\n outline: none;\n }\n`\n","import ptBR from 'date-fns/locale/pt-BR'\n\nimport { ReactDatePicker } from \"./styled\"\n\nimport { Label } from '../styled'\n\nexport default function DatePicker ({ label, name, coolFormat, showTime, minDate, maxDate, formik }) {\n const dateFormat = coolFormat ? `EEEE ${showTime ? \" 'às' HH:mm\" : \"\"}` : `dd/MM/yyyy${showTime ? \" HH:mm\" : \"\"}`\n \n return (\n
    \n \n\n formik.setFieldValue(name, date)}\n onKeyDown={event => { event.preventDefault() }}\n />\n
    \n )\n}","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\n\nimport * as Yup from 'yup'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport DatePicker from 'components/Form/DatePicker'\nimport Table from 'components/Table'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport CardBody from 'components/CardBody'\nimport BtnBox from 'components/Button/BtnBox'\n\nimport api from 'services/api/api'\n\nimport { handleUserShow } from 'services/api/users'\n\nimport { setErrors } from 'utils'\nimport { translate } from '../../../utils/translate';\n\nconst validation = yup => ({\n // reports: yup\n // .array()\n // .min(1, 'Campo obrigatório'),\n})\n\nconst NewUserReportsCollection = () => {\n const [user, setUser] = useState({})\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n\n const history = useHistory()\n const params = useParams()\n\n const formik = useFormik({\n initialValues: {\n initial_date: null,\n end_date: null\n },\n validationSchema: Yup.object(validation(Yup)),\n onSubmit: async () => {\n const initial_date = formik.values.initial_date.toISOString()\n const end_date = formik.values.end_date.toISOString()\n\n console.log(initial_date)\n // return\n\n try {\n await api.post(`/users-access`, {\n initial_date,\n end_date,\n user_id: user.id\n })\n\n history.push(`/usuarios/${user.id}/acessos`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n }\n })\n\n useEffect(() => {\n (async () => {\n setUser(await handleUserShow(params.id))\n })()\n }, [params.id])\n\n function getUpcomingSunday() {\n const date = new Date()\n\n const today = date.getDate()\n const currentDay = date.getDay()\n\n const newDate = date.setDate(today - currentDay + 6)\n\n return new Date(newDate)\n }\n\n function getLastSunday() {\n const date = new Date()\n\n const currentDay = date.getDay()\n\n if (currentDay === 0) return date\n\n const newDate = date.setDate(date.getDate() - (currentDay || 7))\n\n return new Date(newDate)\n }\n\n return (\n <>\n \n\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    {translate('pages.UserAccessControlNew.name')}{translate('pages.UserAccessControlNew.email')}{translate('pages.UserAccessControlNew.permission')}
    {user.name}{user.email}{user.roles}
    \n
    \n\n \n \n\n \n \n
    \n \n\n \n \n \n \n \n \n {formik.isSubmitting ? : translate('pages.UserAccessControlNew.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default NewUserReportsCollection","import styled from 'styled-components'\n\nexport const ItemsContainer = styled.div`\n display: flex;\n justify-content: space-between;\n`\n\nexport const MoreItemsContainer = styled.div`\n display: flex;\n`","import ReactSelect from 'react-select';\n\nimport { Label, SelectLabel } from '../styled';\n\nimport { ItemsContainer, MoreItemsContainer } from './styled';\n\nconst colourStyles = {\n control: (styles) => ({ ...styles, \n marginTop: '8px',\n borderRadius: '20px',\n border: '1px solid var(--color-grey)',\n backgroundColor: 'var(--color-background-input)' ,\n color: 'var(--color-font)'\n }),\n input: (styles) => ({ ...styles }),\n placeholder: (styles) => ({ ...styles, padding: '0 10px' })\n };\n\nexport default function Select ({ label, name, isMulti, options, formik, moreItems }) {\n return (\n <>\n \n \n \n\n {moreItems}\n \n \n \"Sem opções\"}\n name={name} \n closeMenuOnSelect={true}\n // components={animatedComponents}\n isMulti={isMulti} \n options={options} \n styles={colourStyles}\n value={formik.values[name]}\n onChange={result => formik.setFieldValue(name, result)}\n />\n \n \n )\n}","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\n\nimport * as Yup from 'yup'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Select from 'components/Form/Select'\nimport Table from 'components/Table'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport CardBody from 'components/CardBody'\nimport BtnBox from 'components/Button/BtnBox'\n\nimport api from 'services/api/api'\n\nimport { handleUserShow } from 'services/api/users'\n\nimport { setErrors } from 'utils'\nimport { translate } from '../../../../utils/translate';\n\nconst validation = yup => ({\n // reports: yup\n // .array()\n // .min(1, 'Campo obrigatório'),\n})\n\nconst NewUserReportsCollection = () => {\n const [user, setUser] = useState({})\n\n const [reportsCollections, setReportsCollections] = useState([])\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n\n const history = useHistory()\n const params = useParams()\n\n const formik = useFormik({\n initialValues: {},\n validationSchema: Yup.object(validation(Yup)),\n onSubmit: async () => {\n const group_id = formik.values.collection.value\n\n try {\n await api.post(`/users-collections`, {\n user_id: user.id,\n group_id\n })\n\n history.push(`/usuarios/${user.id}/relatorios`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n }\n })\n\n useEffect(() => {\n (async () => {\n setUser(await handleUserShow(params.id))\n })()\n }, [params.id])\n\n useEffect(() => {\n (async () => {\n try {\n const { data } = await api.get(`/collections/by-firm`)\n\n setReportsCollections(data)\n } catch(error) {\n\n }\n })()\n }, [])\n\n return (\n <>\n \n\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    {translate('pages.UserReportsCollectionsNew.name')}{translate('pages.UserReportsCollectionsNew.email')}{translate('pages.UserReportsCollectionsNew.permission')}
    {user.name}{user.email}{user.roles}
    \n
    \n\n \n \n\n \n \n
    \n \n\n \n \n \n \n {formik.isSubmitting ? : translate('pages.UserReportsCollectionsNew.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default NewUserReportsCollection","import { useEffect, useState } from 'react'\nimport { FaEdit } from \"react-icons/fa\"\nimport { HiOutlineDocumentReport } from \"react-icons/hi\"\nimport { useFormik } from 'formik'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport Table from 'components/Table'\nimport LinkBlue from 'components/Button/LinkBlue'\nimport SmLinkBlue from 'components/Button/SmLinkBlue'\n\nimport Td from 'components/Td'\n\nimport api from 'services/api/api'\nimport { translate } from '../../utils/translate';\n\nexport default function ReportsCollection() {\n const [reportsCollections, setReportsCollections] = useState([])\n const [list, setList] = useState([])\n \n const formik = useFormik({\n initialValues: {\n search: ''\n }\n })\n\n useEffect(() => {\n (async () => {\n try {\n const { data } = await api.get(`/collections/by-firm`)\n\n setReportsCollections(data)\n } catch(error) {\n\n }\n })()\n }, [])\n\n useEffect(() => {\n setList(reportsCollections.filter(item => item.name.toUpperCase().includes(formik.values.search.toUpperCase())))\n }, [formik.values.search, reportsCollections])\n\n return (\n <>\n \n\n \n \n \n {translate('pages.ReportsCollection.create')}\n \n\n
    \n \n
    \n\n \n \n \n \n \n \n \n \n \n {list.map(reportsCollection =>\n \n \n \n\n \n \n )}\n \n
    #{translate('pages.ReportsCollection.name')}{translate('pages.ReportsCollection.actions')}
    {reportsCollection.id}{reportsCollection.name}\n \n \n \n\n \n \n \n
    \n
    \n
    \n \n )\n}","import styled from 'styled-components'\n\nexport const IconButtonContainer = styled.button`\n background-color: ${props => props.color};\n color: #fff;\n border: 1px solid ${props => props.color};\n padding: 2px 4px;\n border-radius: 10px;\n\n cursor: pointer;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n outline: none;\n\n & span {\n font-size: 11px;\n }\n\n &:hover {\n opacity: 0.5;\n transition: .5s;\n }\n`\n\n/* \n\n\n &:focus {\n outline: 0;\n } */","import { IconButtonContainer } from './styled'\n\nexport default function IconButton({ color, text, Icon, children, ...params }) {\n return (\n \n \n {text}\n \n )\n}\n\n","import { useEffect, useState } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport { RiAddLine } from 'react-icons/ri'\n\nimport * as Yup from 'yup'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport Select from 'components/Form/Select'\nimport IconButton from 'components/Button/IconButton'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport CardBody from 'components/CardBody'\nimport BtnBox from 'components/Button/BtnBox'\n\nimport api from 'services/api/api'\n\nimport { handleCards } from 'services/api/reportCards'\nimport { handleUsersByRoles } from 'services/api/users'\n\nimport { setErrors } from 'utils'\nimport { translate } from '../../../utils/translate';\n\nconst validation = yup => ({\n name: yup.string().required(translate('validations.AllValidations.requiredField')),\n reports: yup.array().min(1, translate('validations.AllValidations.requiredField')),\n users: yup.array().min(1, translate('validations.AllValidations.requiredField')),\n})\n\nconst NewReportCollection = () => {\n const [cards, setCards] = useState([])\n const [users, setUsers] = useState([])\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n\n const history = useHistory()\n\n const formik = useFormik({\n initialValues: {\n name: '',\n reports: [],\n users: [],\n },\n validationSchema: Yup.object(validation(Yup)),\n onSubmit: async () => {\n const reports = formik.values.reports.map(report => report.value)\n const users = formik.values.users.map(user => user.value)\n\n try {\n await api.post(`/collections`, {\n ...formik.values,\n reports,\n users,\n })\n\n history.push('/colecoes')\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n },\n })\n\n useEffect(() => {\n ;(async () => {\n const cardsData = await handleCards()\n const usersData = await handleUsersByRoles('user')\n\n setCards(cardsData)\n setUsers(usersData)\n })()\n }, [])\n\n return (\n <>\n \n\n \n \n \n\n \n \n
    \n \n\n \n\n \n {\n formik.setFieldValue(\n 'reports',\n cards.map(card => ({\n value: card.id,\n label: card.name,\n })),\n )\n }}\n />\n
    \n }\n options={cards.map(card => ({\n value: card.id,\n label: card.name,\n }))}\n formik={formik}\n />\n\n \n {\n formik.setFieldValue(\n 'users',\n users.map(user => ({\n value: user.id,\n label: user.name,\n })),\n )\n }}\n />\n
    \n }\n isMulti={true}\n options={users.map(user => ({\n value: user.id,\n label: user.name,\n }))}\n formik={formik}\n />\n\n \n \n {formik.isSubmitting ? : translate('pages.ReportsCollectionNew.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default NewReportCollection\n","import { useEffect, useState } from 'react'\nimport { useParams } from 'react-router-dom'\nimport { FaEdit } from \"react-icons/fa\"\nimport { useFormik } from 'formik'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport Input from 'components/Form/LabelInput'\nimport CardTitle from 'components/CardTitle'\nimport Table from 'components/Table'\nimport SmLinkBlue from 'components/Button/SmLinkBlue'\n\nimport Td from 'components/Td'\n\nimport api from 'services/api/api'\nimport { translate } from '../../../utils/translate';\n\nexport default function ReportsCollection() {\n const [reportsCollectionsItems, setReportsCollectionsItems] = useState([])\n const [reportsCollection, setReportsCollection] = useState({})\n const [list, setList] = useState([])\n \n const formik = useFormik({\n initialValues: {\n search: ''\n }\n })\n\n const params = useParams()\n\n useEffect(() => {\n (async () => {\n try {\n const { data } = await api.get(`/collections/${params.id}`)\n \n setReportsCollection(data)\n } catch(error) {}\n })()\n }, [params.id])\n\n useEffect(() => {\n (async () => {\n try {\n const { data } = await api.get(`/collections/${params.id}/reports`)\n\n setReportsCollectionsItems(data)\n } catch(error) {\n\n }\n })()\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n useEffect(() => {\n setList(reportsCollectionsItems.filter(item => item.report.name.toUpperCase().includes(formik.values.search.toUpperCase())))\n }, [formik.values.search, reportsCollectionsItems])\n\n return (\n <>\n \n\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n
    {translate('pages.ReportsCollectionReports.name')}
    {reportsCollection.name}
    \n
    \n\n \n \n\n
    \n \n
    \n\n \n \n \n \n \n \n \n \n \n \n \n {list.map(reportsCollectionItem =>\n \n \n \n \n \n\n \n \n )}\n \n
    #{translate('pages.ReportsCollectionReports.name')}{translate('pages.ReportsCollectionReports.roles')}{translate('pages.ReportsCollectionReports.enabledTabs')}{translate('pages.ReportsCollectionReports.actions')}
    {reportsCollectionItem.id}{reportsCollectionItem.report.name}{reportsCollectionItem.roles}{reportsCollectionItem.page_navigation ? translate('pages.ReportsCollectionReports.yes') : translate('pages.ReportsCollectionReports.no')}\n \n \n \n
    \n
    \n
    \n\n \n )\n}","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\n\nimport * as Yup from 'yup'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport Table from 'components/Table'\nimport Checkbox from 'components/Form/LabelCheckbox'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport CardBody from 'components/CardBody'\nimport BtnBox from 'components/Button/BtnBox'\n\nimport api from 'services/api/api'\n\nimport { setErrors } from 'utils'\nimport { translate } from '../../../../utils/translate';\n\nconst validation = yup => ({\n\n})\n\nconst NewReportCollection = () => {\n const [reportsCollection, setReportsCollection] = useState({})\n const [reportsCollectionItem, setReportsCollectionItem] = useState({})\n\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n\n const history = useHistory()\n const params = useParams()\n\n const formik = useFormik({\n initialValues: { \n name: reportsCollectionItem.report?.name,\n roles: reportsCollectionItem.roles, \n page_navigation: !!reportsCollectionItem.page_navigation,\n enable_filters: !!reportsCollectionItem.enable_filters\n },\n enableReinitialize: true,\n validationSchema: Yup.object(validation(Yup)),\n onSubmit: async () => {\n try {\n await api.put(`/collections/${params.collectionId}/reports/${params.id}`, {\n roles: formik.values.roles,\n page_navigation: formik.values.page_navigation,\n enable_filters: formik.values.enable_filters\n })\n\n history.push(`/colecoes/${params.collectionId}/relatorios`)\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n }\n })\n\n useEffect(() => {\n (async () => {\n try {\n const { data } = await api.get(`/collections/${params.collectionId}`)\n\n setReportsCollection(data)\n } catch(error) {}\n })()\n }, [params.collectionId])\n\n useEffect(() => {\n (async () => {\n try {\n const { data } = await api.get(`/collections/${params.collectionId}/reports/${params.id}`)\n\n setReportsCollectionItem(data)\n } catch(error) {}\n })()\n }, [params.collectionId, params.id])\n\n return (\n <>\n \n\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n
    {translate('pages.ReportsCollectionReportsUpdate.name')}
    {reportsCollection.name}
    \n
    \n\n \n \n\n \n \n
    \n \n\n \n\n \n\n {reportsCollectionItem.id && (\n
    \n \n \n
    \n )}\n \n \n \n {formik.isSubmitting ? : translate('pages.ReportsCollectionReportsUpdate.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default NewReportCollection","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\nimport { RiAddLine } from 'react-icons/ri'\n\nimport * as Yup from 'yup'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport Select from 'components/Form/Select'\nimport IconButton from 'components/Button/IconButton'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport CardBody from 'components/CardBody'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Modal from 'components/Modal'\n\nimport api from 'services/api/api'\n\nimport { handleCards } from 'services/api/reportCards'\nimport { handleUsersByRoles } from 'services/api/users'\n\nimport { setErrors } from 'utils'\nimport { translate } from '../../../utils/translate';\n\nconst validation = yup => ({\n name: yup.string().required(translate('validations.AllValidations.requiredField')),\n reports: yup.array().min(1, translate('validations.AllValidations.requiredField')),\n users: yup.array().min(1, translate('validations.AllValidations.requiredField')),\n})\n\nconst NewReportCollection = () => {\n const [cards, setCards] = useState([])\n const [users, setUsers] = useState([])\n\n const [reportsCollection, setReportsCollection] = useState({})\n\n const [visibleModal, setVisibleModal] = useState(false)\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n\n const history = useHistory()\n const params = useParams()\n\n const formik = useFormik({\n initialValues: {\n name: reportsCollection.name,\n reports: reportsCollection.reports?.map(report => ({\n value: report.id,\n label: report.name,\n })),\n users: reportsCollection.users?.map(user => ({\n value: user.id,\n label: user.name,\n })),\n },\n enableReinitialize: true,\n validationSchema: Yup.object(validation(Yup)),\n onSubmit: async () => {\n const reports = formik.values.reports.map(report => report.value)\n const users = formik.values.users.map(user => user.value)\n\n try {\n await api.put(`/collections/${params.id}`, {\n ...formik.values,\n reports,\n users,\n })\n\n history.push('/colecoes')\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n },\n })\n\n useEffect(() => {\n ;(async () => {\n const cardsData = await handleCards()\n const usersData = await handleUsersByRoles('user')\n\n setCards(cardsData)\n setUsers(usersData)\n })()\n }, [])\n\n useEffect(() => {\n ;(async () => {\n try {\n const { data } = await api.get(`/collections/${params.id}`)\n\n setReportsCollection(data)\n } catch (error) {}\n })()\n }, [params.id])\n\n const handleDelete = async () => {\n try {\n await api.delete(`/collections/${params.id}`)\n\n return history.push('/colecoes')\n } catch (error) {\n setMessages({ messages: setErrors(error), alert: 'alert-orange' })\n }\n }\n\n return (\n <>\n \n\n \n \n \n setVisibleModal(true)}>{translate('pages.ReportsCollectionUpdate.delete')}\n \n\n \n \n
    \n \n\n \n\n \n {\n formik.setFieldValue(\n 'reports',\n cards.map(card => ({\n value: card.id,\n label: card.name,\n })),\n )\n }}\n />\n \n }\n options={cards.map(card => ({\n value: card.id,\n label: card.name,\n }))}\n formik={formik}\n />\n\n \n {\n formik.setFieldValue(\n 'users',\n users.map(user => ({\n value: user.id,\n label: user.name,\n })),\n )\n }}\n />\n \n }\n isMulti={true}\n options={users.map(user => ({\n value: user.id,\n label: user.name,\n }))}\n formik={formik}\n />\n\n {/* \n\n {reportsCollection.id && } */}\n\n \n \n {formik.isSubmitting ? : translate('pages.ReportsCollectionUpdate.submit')}\n \n \n \n
    \n
    \n
    \n
    \n\n \n \n \n \n \n

    {translate('pages.ReportsCollectionUpdate.confirmDelete')}

    \n\n \n {translate('pages.ReportsCollectionUpdate.delete')}\n setVisibleModal(false)}>\n Cancelar\n \n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default NewReportCollection\n","import { useFormik } from 'formik'\nimport { useEffect, useState } from 'react'\nimport { FaEdit } from \"react-icons/fa\"\n\nimport LinkBlue from 'components/Button/LinkBlue'\nimport SmLinkBlue from 'components/Button/SmLinkBlue'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Table from 'components/Table'\nimport TitleBar from 'components/TitleBar'\n\nimport Td from 'components/Td'\n\nimport { handleCompanies } from 'services/api/empresas'\nimport { translate } from '../../utils/translate';\n\nexport default function ReportsCollection() {\n const [reportsCollections, setReportsCollections] = useState([])\n const [list, setList] = useState([])\n \n const formik = useFormik({\n initialValues: {\n search: ''\n }\n })\n\n useEffect(() => {\n (async () => {\n try {\n setReportsCollections(await handleCompanies())\n } catch(error) {\n\n }\n })()\n }, [])\n\n useEffect(() => {\n setList(reportsCollections.filter(item => item.name.toUpperCase().includes(formik.values.search.toUpperCase())))\n }, [formik.values.search, reportsCollections])\n\n return (\n <>\n \n\n \n \n \n {translate('pages.Companies.create')}\n \n\n
    \n \n
    \n\n \n \n \n \n \n \n \n \n \n {list.map(reportsCollection =>\n \n \n \n\n \n \n )}\n \n
    #{translate('pages.Companies.name')}{translate('pages.Companies.actions')}
    {reportsCollection.id}{reportsCollection.name}\n \n \n \n
    \n
    \n
    \n \n )\n}","import styled from 'styled-components'\n\nimport { SketchPicker } from 'react-color';\n\nimport \"react-datepicker/dist/react-datepicker.css\";\n\nexport const ReactColorPicker = styled(SketchPicker)`\n border: 1px solid var(--color-grey);\n color: var(--color-font);\n font-size: 16px;\n padding: 10px 20px;\n margin-top: 8px;\n border-radius: 20px;\n width: 100%;\n background-color: var(--color-background-input);\n\n &:focus {\n outline: none;\n }\n`\n","\n\nimport { ReactColorPicker } from \"./styled\"\n\nimport { Label } from '../styled'\n\nexport default function ColorPicker ({ label, name, coolFormat, showTime, minDate, maxDate, formik }) {\n return (\n
    \n \n\n formik.setFieldValue(name, color.hex)}\n />\n
    \n )\n}","import { useState } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { useFormik } from 'formik'\n\nimport * as Yup from 'yup'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport ColorPicker from 'components/Form/ColorPicker'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport CardBody from 'components/CardBody'\nimport BtnBox from 'components/Button/BtnBox'\n\nimport { handleCompaniesStore } from 'services/api/empresas'\n\nimport { slugMask } from 'utils'\nimport { translate } from '../../../utils/translate';\n\nconst validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField')),\n slug: yup.string()\n .required(translate('validations.AllValidations.requiredField')),\n email: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nconst NewReportCollection = () => {\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n\n const history = useHistory()\n\n const formik = useFormik({\n initialValues: { \n name: '', \n slug: '', \n email: '', \n primary_color: '#ffffff', \n secondary_color: '#ffffff'\n },\n validationSchema: Yup.object(validation(Yup)),\n onSubmit: async () => handleCompaniesStore(history, formik.values, setMessages)\n })\n\n return (\n <>\n \n\n \n \n \n\n \n \n
    \n \n\n \n \n \n\n \n \n\n \n \n {formik.isSubmitting ? : translate('pages.CompaniesNew.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default NewReportCollection","import { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { useFormik } from 'formik'\n\nimport * as Yup from 'yup'\n\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport Upload from 'components/Form/Upload'\nimport CardTitle from 'components/CardTitle'\nimport Input from 'components/Form/LabelInput'\nimport BtnBlue from 'components/Button/BtnBlue'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport CardBody from 'components/CardBody'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnBox from 'components/Button/BtnBox'\nimport ColorPicker from 'components/Form/ColorPicker'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Modal from 'components/Modal'\n\nimport {\n handleCompanieshow,\n handleCompanyUpdate,\n handleCompanyDelete,\n handleCompanyUpdateLogo,\n handleCompanyUpdateBackground,\n} from 'services/api/empresas'\n\nimport { slugMask } from 'utils'\nimport { translate } from '../../../utils/translate';\n\nconst validation = yup => ({\n name: yup.string().required(translate('validations.AllValidations.requiredField')),\n slug: yup.string().required(translate('validations.AllValidations.requiredField')),\n email: yup.string().required(translate('validations.AllValidations.requiredField')),\n})\n\nconst NewReportCollection = () => {\n const [data, setData] = useState({})\n\n const [visibleModal, setVisibleModal] = useState(false)\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n\n const [messagesFile, setMessagesFile] = useState('')\n const [done, setDone] = useState(true)\n const [errors, setErrors] = useState([])\n\n const history = useHistory()\n const params = useParams()\n\n const formik = useFormik({\n initialValues: {\n name: data.name,\n slug: data.slug,\n email: data.email,\n primary_color: data.primary_color,\n secondary_color: data.secondary_color,\n },\n enableReinitialize: true,\n validationSchema: Yup.object(validation(Yup)),\n onSubmit: async () =>\n handleCompanyUpdate(history, formik.values, params.id, setMessages),\n })\n\n useEffect(() => {\n ;(async () => {\n try {\n setDone(true)\n setData(await handleCompanieshow(params.id))\n setDone(false)\n } catch (error) {}\n })()\n }, [params.id])\n\n const handleDelete = async () => handleCompanyDelete(params.id, history)\n\n const files = async files => {\n setMessagesFile('')\n setErrors([])\n setDone(true)\n await handleCompanyUpdateLogo(files[0], params.id)\n setData(await handleCompanieshow(params.id))\n setDone(false)\n }\n\n const filesFundo = async files => {\n setMessagesFile('')\n setErrors([])\n setDone(true)\n await handleCompanyUpdateBackground(files[0], params.id)\n setData(await handleCompanieshow(params.id))\n setDone(false)\n }\n\n return (\n <>\n \n\n \n \n \n setVisibleModal(true)}>{translate('pages.CompaniesUpdate.delete')}\n \n\n \n \n
    \n \n\n \n \n \n \n \n\n \n \n {formik.isSubmitting ? : translate('pages.CompaniesUpdate.submit')}\n \n \n \n
    \n
    \n
    \n\n \n \n \n \n \n

    {messagesFile}

    \n
    \n
    \n
    \n\n \n \n \n \n \n

    {messagesFile}

    \n
    \n
    \n
    \n
    \n\n \n \n \n \n \n

    {translate('pages.CompaniesUpdate.confirmDelete')}

    \n\n \n {translate('pages.CompaniesUpdate.delete')}\n setVisibleModal(false)}>\n Cancelar\n \n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default NewReportCollection\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string().required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { useFormik } from 'formik'\nimport { useState } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { handleOriginsStore } from 'services/api/origins'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const history = useHistory()\n const formik = useFormik({\n initialValues: { name: '' },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleOriginsStore(history, formik.values, setMessages)\n })\n\n return (\n <>\n \n \n \n \n \n \n
    \n \n \n \n \n {formik.isSubmitting ? : translate('pages.OriginsStore.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Messages from 'components/Messages'\nimport Modal from 'components/Modal'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { useFormik } from 'formik'\nimport { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { handleOriginsDelete, handleOriginsUpdate, handleOriginshow } from 'services/api/origins'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n const [visibleModal, setVisibleModal] = useState(false)\n\n useEffect(() => {\n (async () => {\n setData(await handleOriginshow(params.id))\n })()\n }, [params.id])\n\n const formik = useFormik({\n initialValues: {\n name: data.name\n },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleOriginsUpdate(history, formik.values, params.id, setMessages),\n enableReinitialize: true\n })\n\n const handleDelete = async () => await handleOriginsDelete(params.id, history)\n\n return (\n <>\n \n \n \n \n setVisibleModal(true)}>{translate('pages.OriginsUpdate.delete')}\n \n \n \n
    \n \n \n \n \n {formik.isSubmitting ? : translate('pages.OriginsUpdate.submit')}\n \n \n \n
    \n
    \n
    \n\n
    \n \n \n \n \n \n

    {translate('pages.OriginsUpdate.confirmDelete')}

    \n \n {translate('pages.OriginsUpdate.delete')}\n setVisibleModal(false)}>{translate('pages.OriginsUpdate.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string().required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { useFormik } from 'formik'\nimport { useState } from 'react'\nimport { useHistory } from 'react-router-dom'\nimport { handleStatusStore } from 'services/api/status'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const history = useHistory()\n const formik = useFormik({\n initialValues: { name: '' },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleStatusStore(history, formik.values, setMessages)\n })\n\n return (\n <>\n \n \n \n \n \n \n
    \n \n \n \n \n {formik.isSubmitting ? : translate('pages.StatusStore.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import { translate } from '../../utils/translate'; \n\nconst Validation = yup => ({\n name: yup.string()\n .required(translate('validations.AllValidations.requiredField'))\n})\n\nexport default Validation","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport BtnRed from 'components/Button/BtnRed'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Messages from 'components/Messages'\nimport Modal from 'components/Modal'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { useFormik } from 'formik'\nimport { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport { handleStatusDelete, handleStatusUpdate, handleStatushow } from 'services/api/status'\nimport * as Yup from 'yup'\nimport Validation from './validation'\nimport { translate } from '../../utils/translate';\n\nconst Page = () => {\n\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n const [visibleModal, setVisibleModal] = useState(false)\n\n\n useEffect(() => {\n (async () => {\n setData(await handleStatushow(params.id))\n })()\n }, [params.id])\n\n const formik = useFormik({\n initialValues: {\n name: data.name\n },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () => handleStatusUpdate(history, formik.values, params.id, setMessages),\n enableReinitialize: true\n })\n\n const handleDelete = async () => await handleStatusDelete(params.id, history)\n\n return (\n <>\n \n \n \n \n setVisibleModal(true)}>{translate('pages.StatusUpdate.delete')}\n \n \n \n
    \n \n \n \n \n {formik.isSubmitting ? : translate('pages.StatusUpdate.submit')}\n \n \n \n
    \n
    \n
    \n\n
    \n \n \n \n \n \n

    {translate('pages.StatusUpdate.confirmDelete')}

    \n \n {translate('pages.StatusUpdate.delete')}\n setVisibleModal(false)}>{translate('pages.StatusUpdate.cancel')}\n \n
    \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Page\n","import styled from 'styled-components'\n\nimport {\n CDropdown,\n CDropdownToggle,\n CDropdownMenu,\n CDropdownItem\n} from \"@coreui/react\"\n\nexport const Container = styled(CDropdown)``\n\nexport const Button = styled(CDropdownToggle)`\n background-color: var(--color-yellow) !important;\n border-radius: 30px;\n border: none;\n transition: all 0.3s;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n font-size: 18px;\n font-weight: bold;\n\n &:hover {\n opacity: 0.5;\n }\n\n &:focus {\n outline: 0;\n }\n\n @media (max-width: 400px) {\n font-size: 15px !important;\n } \n`\n\nexport const Menu = styled(CDropdownMenu)`\n margin-top: 8px;\n`\n\nexport const MenuItem = styled(CDropdownItem)``","import Spinner from 'components/Spinner'\n\nimport { Container, Button, Menu, MenuItem } from \"./styled\"\n\nexport default function Dropdown({ isLoading, text, items = [], btSize,...rest }) {\n return (\n \n \n\n \n {items.map((item, index) => (\n {item.text}\n ))}\n \n \n )\n}\n","import styled from 'styled-components'\n\nexport const Container = styled.section`\n display: flex;\n justify-content: center;\n align-items: center;\n\n max-width: 100%; \n`\n\nexport const PaginationContainer = styled.section`\n .pagination {\n display: flex;\n justify-content: space-between;\n list-style: none;\n cursor: pointer;\n }\n\n .pagination a {\n padding: 10px;\n border-radius: 10px;\n border: 1px solid var(--color-icons);\n color: var(--color-icons);\n margin: 0 5px;\n }\n\n .pagination__link {\n font-weight: bold; \n }\n\n .pagination__link--active a {\n color: #fff;\n background: var(--color-icons);\n }\n\n .pagination__link--disabled a {\n color: rgb(198, 197, 202);\n border: 1px solid rgb(198, 197, 202);\n }\n\n @media (max-width: 720px) {\n .pagination a {\n margin: 0 3px;\n font-size: 15px;\n }\n }\n`","import ReactPaginate from 'react-paginate';\n\nimport { Container, PaginationContainer } from './styled'\n\n\nconst Component = ({ pageCount, handlePageClick }) => {\n return (\n \n \n \n \n \n )\n}\n\nexport default Component\n","import Skeleton from 'react-loading-skeleton'\n\nimport 'react-loading-skeleton/dist/skeleton.css'\n\nconst AnalyticsSkeleton = () => {\n return (\n \n {Array.from({ length: 10 }).map(index => (\n \n \n \n \n \n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n \n ))}\n \n\n )\n}\n\nexport default AnalyticsSkeleton\n\n","import styled from 'styled-components'\n\nexport const InputsContainer = styled.div`\n padding: 0 30px 15px 50px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n max-width: 100%;\n\n .pickers {\n display: flex;\n }\n\n .pickers :first-child {\n margin-right: 8px;\n }\n\n .actions {\n display: flex;\n }\n\n .actions :first-child {\n margin-right: 8px;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n align-items: flex-start;\n\n padding-bottom: 32px;\n\n .pickers {\n flex-direction: column;\n width: 100%;\n }\n\n .actions {\n width: 100%;\n justify-content: space-between;\n }\n }\n`\n\nexport const AnalyticsContainer = styled.div`\n width: 100%;\n max-width: 100%;\n height: 300px;\n padding: 0 15px 15px 15px;\n margin-bottom: 16px;\n\n .recharts-wrapper, .recharts-surface {\n width: 100% !important;\n }\n\n .recharts-default-tooltip { \n overflow-y: auto; \n\n .recharts-tooltip-item-list { \n height: 100%;\n } \n }\n`\n\nexport const CustomTooltipContainer = styled.div`\n margin: 0;\n line-height: 24px;\n border: 1px solid #f5f5f5;\n background-color: hsla(0,0%,100%,.8);\n padding: 10px;\n max-width: 400px;\n max-height: 250px;\n overflow-x: hidden;\n overflow-y: auto;\n\n @media (max-width: 600px) {\n max-width: 200px;\n } \n`\n\nexport const CustomTooltipLabel = styled.p`\n margin: 0;\n margin-bottom: 10px;\n color: #666;\n font-weight: 700\n`\n\nexport const CustomTooltipIntro = styled.p`\n border-top: 1px solid #f5f5f5;\n margin: 0;\n margin-bottom: 10px;\n`\n\nexport const CustomTooltipDesc = styled.p`\n margin: 0;\n color: #999\n`\n\nexport const CustomSearchInputContainer = styled.div`\n padding: 15px 15px 0 15px;\n`","import React, { useEffect, useState } from 'react'\nimport { useFormik } from 'formik'\nimport { useDebouncedCallback } from 'use-debounce';\nimport Swal from \"sweetalert2\"\n\n\nimport {\n BarChart,\n Bar,\n XAxis,\n YAxis,\n CartesianGrid,\n Tooltip,\n ResponsiveContainer\n } from 'recharts';\n\nimport Input from 'components/Form/LabelInput'\nimport Dropdown from 'components/Dropdown'\nimport TitleBar from 'components/TitleBar'\nimport Content from 'components/Content'\nimport Card from 'components/Card'\nimport Table from 'components/Table'\nimport Pagination from 'components/Pagination'\nimport DatePicker from 'components/Form/DatePicker'\nimport BtnOrange from 'components/Button/BtnOrange'\nimport AnalyticsSkeleton from 'components/Skeleton/AnalyticsSkeleton'\n\nimport { formatDate, addDays, downloadFile } from \"utils/index\"\n\nimport { \n InputsContainer,\n AnalyticsContainer,\n CustomTooltipContainer, \n CustomTooltipDesc, \n CustomTooltipIntro,\n CustomTooltipLabel,\n CustomSearchInputContainer } \nfrom \"./styled\"\n\nimport { \n handleListUsersActionsReports,\n handleAnalyticsUsersActionsReports, \n handleAnalyticsUsersActionsReportsXlsx,\n handleAnalyticsUsersActionsReportsPdf\n} from \"services/api/usersActionsReports\"\n\nimport { translate } from '../../utils/translate';\n\nexport default function ReportsCollection() {\n const [analytics, setAnalytics] = useState([])\n const [rechartData, setRechartData] = useState([])\n\n const [initialDate, setInitialDate] = useState(addDays(new Date(), -7))\n const [endDate, setEndDate] = useState(new Date())\n\n const [usersActionReports, setUsersActionReports] = useState({ data: [] })\n\n const [page, setPage] = useState(1)\n const [search, setSearch] = useState('')\n\n const [isDownloading, setIsDownloading] = useState(false)\n const [isFiltering, setIsFiltering] = useState(false)\n\n const [tooltipPosition, setTooltipPosition] = useState({ x: 0, y: 0 })\n\n const debouncedSearch = useDebouncedCallback(\n (value) => {\n setSearch(value);\n },\n 1000\n );\n\n const formik = useFormik({ \n initialValues: { \n search: '' ,\n initial_date: initialDate,\n end_date: endDate\n }\n })\n\n useEffect(() => {\n (async () => {\n try {\n const data = await handleListUsersActionsReports({ \n term: search,\n currentPage: page,\n perPage: 10,\n initialDate: initialDate.toISOString(),\n endDate: endDate.toISOString()\n })\n\n setUsersActionReports(data)\n } catch(error) {}\n })()\n }, [page, search, initialDate, endDate])\n\n useEffect(() => {\n (async () => {\n try {\n const data = await handleAnalyticsUsersActionsReports({\n initialDate: initialDate.toISOString(),\n endDate: endDate.toISOString(),\n term: search\n })\n\n setAnalytics(data)\n } catch(error) {} finally {\n setIsFiltering(false)\n }\n })()\n }, [initialDate, endDate, search])\n\n useEffect(() => {\n const data = analytics.map(analytic => ({\n name: analytic.report.name,\n pv: analytic.quantity\n }))\n\n setRechartData(data)\n }, [analytics])\n\n useEffect(() => {\n debouncedSearch(formik.values.search)\n }, [formik.values.search, debouncedSearch])\n\n const handleFilterAnalytics = () => {\n setIsFiltering(true)\n\n setInitialDate(new Date(formik.values.initial_date))\n setEndDate(new Date(formik.values.end_date))\n }\n\n const handleDownloadXlsx = async () => {\n setIsDownloading(true)\n\n try {\n const data = await handleAnalyticsUsersActionsReportsXlsx({\n img: `${process.env.REACT_APP_URL_APP}/logo-nivel-3-2.png`,\n color: \"ff142030\",\n initialDate: initialDate.toISOString(),\n endDate: endDate.toISOString(),\n term: search\n })\n\n downloadFile(data, \"Analytics.xlsx\")\n\n Swal.fire(\n translate('validations.AllValidations.SwalSuccess'),\n translate('validations.AllValidations.SwalSuccessExpMsg'),\n 'success'\n )\n } catch(error) {\n Swal.fire(\n translate('validations.AllValidations.SwalError'),\n translate('validations.AllValidations.SwalErrorExpMsg'),\n 'error'\n )\n } finally {\n setIsDownloading(false)\n }\n }\n\n const handleDownloadPdf = async () => {\n setIsDownloading(true)\n\n try {\n const data = await handleAnalyticsUsersActionsReportsPdf({\n img: `${process.env.REACT_APP_URL_APP}/logo-nivel-3-2.png`,\n color: \"#142030\",\n initialDate: initialDate.toISOString(),\n endDate: endDate.toISOString(),\n term: search\n })\n\n downloadFile(data, \"Analytics.pdf\")\n\n Swal.fire(\n translate('validations.AllValidations.SwalSuccess'),\n translate('validations.AllValidations.SwalSuccessExpMsg'),\n 'success'\n )\n } catch(error) {\n Swal.fire(\n translate('validations.AllValidations.SwalError'),\n translate('validations.AllValidations.SwalErrorExpMsg'),\n 'error'\n )\n } finally {\n setIsDownloading(false)\n }\n }\n\n const CustomTooltip = ({ active, payload, label }) => {\n const users = analytics.find(analytic => analytic.report.name === label)?.users\n\n return active \n && payload \n && payload.length \n && \n {label}\n\n \n {users.length === 1 \n ? `${users.length}{translate('pages.Analytics.usermsg')}` \n : `${users.length}{translate('pages.Analytics.usermsg2')}` } \n \n \n \n {users.map(user => `${user.name} (${user.quantity})`).join(\", \")}\n \n \n };\n\n const onMouseEnter = event => {\n const tooltipSize = {\n x: event.x,\n y: event.y\n }\n\n if (window.innerWidth <= 350) {\n tooltipSize.x -= tooltipSize.x * 0.7\n } else if (window.innerWidth <= 400) {\n tooltipSize.x -= tooltipSize.x * 0.6\n } else if (window.innerWidth <= 500) {\n tooltipSize.x -= tooltipSize.x * 0.4\n } else if (window.innerWidth <= 600) {\n tooltipSize.x -= tooltipSize.x * 0.3\n } else if (window.innerWidth <= 900) {\n tooltipSize.x -= tooltipSize.x * 0.6\n } else if (window.innerWidth <= 1200) {\n tooltipSize.x -= tooltipSize.x * 0.35\n } else if (window.innerWidth <= 1300) {\n tooltipSize.x -= tooltipSize.x * 0.35\n } else {\n tooltipSize.x -= tooltipSize.x * 0.15\n }\n\n setTooltipPosition({ x: tooltipSize.x, y: tooltipSize.y })\n }\n\n return (\n <>\n \n\n \n \n
    \n \n \n
    \n\n
    \n \n {translate('pages.Analytics.filter')}\n \n\n \n
    \n
    \n\n \n \n \n \n\n \n \n\n } \n />\n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n {!!usersActionReports.pagination?.total &&\n \n{ usersActionReports.data.map(reportsCollection => (\n \n \n \n \n \n \n \n \n ))}\n \n } \n\n {usersActionReports.pagination === undefined && } \n
    #{translate('pages.Analytics.user')}{translate('pages.Analytics.report')}{translate('pages.Analytics.entrydate')}{translate('pages.Analytics.exitdate')}{translate('pages.Analytics.ip')}
    {reportsCollection.id}{reportsCollection.user.name}{reportsCollection.report.name}{formatDate(reportsCollection.arrival_date)}{formatDate(reportsCollection.departure_date)}{reportsCollection.ip}
    \n {usersActionReports.pagination?.total === 0 &&\n
    {translate('pages.Analytics.analyticsmsg')}
    }\n
    \n\n {!!usersActionReports.pagination?.total && (\n setPage(selected + 1)} \n /> \n )}\n
    \n \n )\n}","import styled from 'styled-components'\n\nexport const OverlayDiv = styled.div`\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: hidden;\n right: 0;\n background-color: #fff;\n opacity: 0.7;\n display: flex;\n align-items: center;\n justify-content: center;\n`\n","import SmLinkBlue from 'components/Button/SmLinkBlue'\nimport { BtnBlue } from 'components/Button/styled'\nimport Card from 'components/Card'\nimport CardTitle from 'components/CardTitle'\nimport Content from 'components/Content'\nimport { Spinner } from 'components/Spinner/styled'\nimport Table from 'components/Table'\nimport { TdWithTextLimit } from 'components/Table/styled'\nimport Td from 'components/Td'\nimport TitleBar from 'components/TitleBar'\nimport { useEffect, useState } from 'react'\nimport { FaCoins, FaEdit, FaPause, FaPlay } from 'react-icons/fa'\nimport {\n handleRefreshPowerBiCapacities,\n handleResumePowerBiCapacity,\n handleSuspendPowerBiCapacity,\n} from 'services/api/powerbi'\nimport { OverlayDiv } from './styled'\nimport { translate } from '../../utils/translate';\n\nconst Component = props => {\n const [list, setList] = useState([])\n const [disableActions, setDisableActions] = useState(false)\n const [refreshingCapacities, setRefreshingCapacities] = useState(false)\n\n useEffect(() => {\n setList(props.data)\n }, [props.data])\n\n async function handleWithResumeOrSuspendCapacity(capacityId, action) {\n try {\n setDisableActions(true)\n\n const capacity =\n action === 'resume'\n ? await handleResumePowerBiCapacity(capacityId)\n : await handleSuspendPowerBiCapacity(capacityId)\n\n setList(prev => {\n const getActualCapacity = prev.findIndex(\n capacity => capacity.id === capacityId,\n )\n\n prev[getActualCapacity] = { ...capacity }\n\n return prev\n })\n } catch (error) {\n console.log(error)\n } finally {\n setDisableActions(false)\n }\n }\n\n async function handleWithRefreshCapacities() {\n try {\n setRefreshingCapacities(true)\n\n const capacities = await handleRefreshPowerBiCapacities()\n\n setList(prev => {\n const capacitiesMapped = [...prev, ...capacities].reduce(\n (acc, current) => {\n const getExistentIndex = acc.findIndex(\n capacity => capacity.id === current.id,\n )\n\n if (getExistentIndex === -1) {\n acc.push({\n ...acc[getExistentIndex],\n ...current,\n })\n } else {\n acc[getExistentIndex] = {\n ...acc[getExistentIndex],\n ...current,\n }\n }\n\n return acc\n },\n [],\n )\n\n return capacitiesMapped\n })\n } catch (error) {\n console.log(error)\n } finally {\n setRefreshingCapacities(false)\n }\n }\n\n return (\n <>\n \n \n \n {refreshingCapacities && (\n \n \n \n )}\n \n {\n handleWithRefreshCapacities()\n }}\n disabled={refreshingCapacities}\n >\n {translate('pages.Capacities.updateCapabilities')}\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n {list.map(item => (\n \n \n \n {item.name}\n \n \n \n \n \n \n \n ))}\n \n
    #{translate('pages.Capacities.name')}{translate('pages.Capacities.sku')}{translate('pages.Capacities.status')}{translate('pages.Capacities.costOptimizationActive')}{translate('pages.Capacities.downtimeMinutes')}{translate('pages.Capacities.actions')}
    {`#${item.id}`}{item.sku}{item.state === 'Active' ? 'Ativa' : 'Suspensa'}{item.optimize_cost ? 'Sim' : 'Não'}{item.idle_suspend_period}\n \n \n \n {item.resource_group && item.subscription_id && (\n <>\n \n \n \n {item.state === 'Active' ? (\n {\n handleWithResumeOrSuspendCapacity(\n item.id,\n 'suspend',\n )\n }}\n >\n \n \n ) : (\n {\n handleWithResumeOrSuspendCapacity(\n item.id,\n 'resume',\n )\n }}\n >\n \n \n )}\n \n )}\n
    \n
    \n
    \n \n )\n}\n\nexport default Component\n","import { useEffect, useState } from 'react'\n\nimport { handleGetPowerBiCapacities } from 'services/api/powerbi'\n\nimport Component from './Component'\n\nconst Page = () => {\n const [data, setData] = useState([])\n\n useEffect(() => {\n ;(async () => {\n try {\n setData(await handleGetPowerBiCapacities())\n } catch (error) {}\n })()\n }, [])\n\n return \n}\n\nexport default Page\n","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport Content from 'components/Content'\nimport Input from 'components/Form/LabelInput'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { translate } from '../../utils/translate';\n\nconst Component = props => {\n return (\n <>\n \n \n \n \n \n
    \n \n \n \n \n \n \n \n \n \n {props.formik.isSubmitting ? : translate('pages.CapacitiesUpdate.submit')}\n \n \n \n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Component\n","const Validation = yup => ({\n resource_group: yup.string().nullable(true),\n subscription_id: yup.string().nullable(true),\n})\n\nexport default Validation\n","import { useFormik } from 'formik'\nimport { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport {\n handleGetPowerBiCapacity,\n handleUpdatePowerBiCapacity,\n} from 'services/api/powerbi'\nimport * as Yup from 'yup'\nimport Component from './Component'\nimport Validation from './validation'\n\nconst Page = () => {\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n\n useEffect(() => {\n ;(async () => setData(await handleGetPowerBiCapacity(params.id)))()\n }, [params.id])\n\n const formik = useFormik({\n initialValues: {\n resource_group: data.resource_group,\n subscription_id: data.subscription_id,\n },\n validationSchema: Yup.object(Validation(Yup)),\n onSubmit: () =>\n handleUpdatePowerBiCapacity(\n params.id,\n formik.values,\n setMessages,\n history,\n ),\n enableReinitialize: true,\n })\n\n return (\n \n )\n}\n\nexport default Page\n","import styled from 'styled-components'\n\nexport const IdleIntervalContainer = styled.div`\n margin-top: 15px;\n display: flex;\n flex-direction: column;\n row-gap: 10px;\n`\n\nexport const IdleIntervalItemsContainer = styled.div`\n display: flex;\n align-items: start;\n column-gap: 20px;\n\n .react-datepicker-wrapper {\n width: fit-content;\n }\n`\n\nexport const IdleIntervalItemContainer = styled.div`\n display: flex;\n flex-direction: column;\n\n column-gap: 20px;\n\n span {\n font-size: 14px;\n color: var(--color-red);\n }\n`\n","import BtnBlue from 'components/Button/BtnBlue'\nimport BtnBox from 'components/Button/BtnBox'\nimport BtnWhite from 'components/Button/BtnWhite'\nimport Card from 'components/Card'\nimport CardBody from 'components/CardBody'\nimport Content from 'components/Content'\nimport Select from 'components/Form/LabelSelect'\nimport Messages from 'components/Messages'\nimport Spinner from 'components/Spinner'\nimport TitleBar from 'components/TitleBar'\nimport { format } from 'date-fns'\nimport { FieldArray, Form, Formik } from 'formik'\nimport DatePicker from 'react-datepicker'\nimport { FaTrash } from 'react-icons/fa'\nimport { handleUpdateOrCreatePowerBiCapacityIdleIntervals } from 'services/api/powerbi'\nimport * as Yup from 'yup'\nimport {\n IdleIntervalContainer,\n IdleIntervalItemContainer,\n IdleIntervalItemsContainer,\n} from './styled'\nimport { idleIntervalsValidation } from './validation'\nimport { translate } from '../../utils/translate';\n\nconst Component = props => {\n return (\n <>\n \n \n \n \n \n
    \n \n \n \n \n \n \n {!!Number(props.formik.values.optimize_cost) && (\n <>\n \n \n \n \n \n \n \n \n \n )}\n \n \n {props.formik.isSubmitting ? : translate('pages.CapacitiesOptimizeCosts.save')}\n \n \n \n {!!Number(props.formik.values.optimize_cost) && (\n <>\n

    {translate('pages.CapacitiesOptimizeCosts.intervals')}

    \n \n {translate('pages.CapacitiesOptimizeCosts.createIntervals')}\n \n {\n await handleUpdateOrCreatePowerBiCapacityIdleIntervals(\n props.id,\n data,\n props.setMessages,\n )\n }}\n validationSchema={Yup.object(idleIntervalsValidation(Yup))}\n enableReinitialize\n >\n {({ values, setFieldValue, isSubmitting, errors }) => (\n
    \n \n {({ remove, push }) => (\n \n {values.idle_intervals.length\n ? values.idle_intervals.map(\n (interval, index) => {\n let startIntervalDate = null\n let endIntervalDate = null\n\n if (interval.start_time) {\n startIntervalDate = new Date()\n\n const [startHour, startMinute] =\n interval.start_time.split(':')\n\n startIntervalDate.setHours(\n startHour,\n startMinute,\n )\n }\n\n if (interval.end_time) {\n endIntervalDate = new Date()\n const [endHour, endMinute] =\n interval.end_time.split(':')\n\n endIntervalDate.setHours(\n endHour,\n endMinute,\n )\n }\n\n return (\n \n \n {\n if (e) {\n const timeFormatted = format(\n e,\n 'HH:mm',\n )\n\n setFieldValue(\n `idle_intervals.${index}.start_time`,\n timeFormatted,\n )\n }\n }}\n showTimeSelect\n showTimeSelectOnly\n selected={startIntervalDate}\n dateFormat={'HH:mm'}\n />\n {errors.idle_intervals?.[index]\n ?.start_time && (\n \n {\n errors.idle_intervals[index]\n .start_time\n }\n \n )}\n \n\n \n {\n const timeFormatted = format(\n e,\n 'HH:mm',\n )\n\n setFieldValue(\n `idle_intervals.${index}.end_time`,\n timeFormatted,\n )\n }}\n showTimeSelect\n showTimeSelectOnly\n selected={endIntervalDate}\n dateFormat={'HH:mm'}\n />\n {errors.idle_intervals?.[index]\n ?.end_time && (\n \n {\n errors.idle_intervals[index]\n .end_time\n }\n \n )}\n \n\n {\n if (interval.id) {\n const idleIntervalsToRemove = [\n ...(values.idle_intervals_to_remove\n ? values.idle_intervals_to_remove\n : []),\n interval.id,\n ]\n setFieldValue(\n 'idle_intervals_to_remove',\n idleIntervalsToRemove,\n )\n }\n remove(index)\n }}\n >\n \n \n \n )\n },\n )\n : null}\n \n push({ start_time: '', end_time: '' })\n }\n >\n {translate('pages.CapacitiesOptimizeCosts.addNewInterval')}\n \n \n )}\n \n \n \n {isSubmitting ? : translate('pages.CapacitiesOptimizeCosts.save')}\n \n \n
    \n )}\n \n \n )}\n
    \n
    \n
    \n
    \n \n )\n}\n\nexport default Component\n","import { translate } from '../../utils/translate';\n\nconst optimizeCostsValidation = yup => ({\n optimize_cost: yup.boolean(),\n idle_suspend_period: yup.number().when('optimize_cost', {\n is: true,\n then: yup\n .number()\n .moreThan(0, translate('pages.CapacitiesOptimizeCosts.selectIdlePeriod')),\n otherwise: yup.number(),\n }),\n})\n\n// import Yup from 'yup'\nconst idleIntervalsValidation = yup => ({\n idle_intervals: yup.array(\n yup.object({\n id: yup.string().optional(),\n start_time: yup\n .string()\n .matches(\n /([01]?[0-9]|2[0-3]):[0-5][0-9]/,\n translate('pages.CapacitiesOptimizeCosts.invalidTimeFormat'),\n )\n .required(translate('pages.CapacitiesOptimizeCosts.requiredTime')),\n end_time: yup\n .string()\n .matches(\n /([01]?[0-9]|2[0-3]):[0-5][0-9]/,\n translate('pages.CapacitiesOptimizeCosts.invalidTimeFormat'),\n )\n .required(translate('pages.CapacitiesOptimizeCosts.requiredTime')),\n }),\n ),\n idle_intervals_to_remove: yup.array(yup.number()).optional(),\n})\n\nexport { optimizeCostsValidation, idleIntervalsValidation }\n","import { useFormik } from 'formik'\nimport { useEffect, useState } from 'react'\nimport { useHistory, useParams } from 'react-router-dom'\nimport {\n handleGetPowerBiCapacity,\n handleUpdatePowerBiCapacity,\n} from 'services/api/powerbi'\nimport * as Yup from 'yup'\nimport Component from './Component'\nimport { optimizeCostsValidation } from './validation'\n\nconst Page = () => {\n const history = useHistory()\n const params = useParams()\n const [messages, setMessages] = useState({ messages: [], alert: '' })\n const [data, setData] = useState({})\n\n useEffect(() => {\n ;(async () => setData(await handleGetPowerBiCapacity(params.id)))()\n }, [params.id])\n\n const formik = useFormik({\n initialValues: {\n optimize_cost: data.optimize_cost,\n idle_suspend_period: data.idle_suspend_period,\n },\n validationSchema: Yup.object(optimizeCostsValidation(Yup)),\n onSubmit: ({ idle_suspend_period, optimize_cost }) => {\n handleUpdatePowerBiCapacity(\n params.id,\n {\n idle_suspend_period: !!Number(optimize_cost)\n ? idle_suspend_period\n : 0,\n optimize_cost: !!Number(optimize_cost),\n },\n setMessages,\n history,\n )\n },\n enableReinitialize: true,\n })\n\n return (\n \n )\n}\n\nexport default Page\n","const Page = () => {\n// if (user.roles === 'admin') return \n\n return

    OIE

    \n}\n\nexport default Page","import PersoanlizedTemplateLogin from 'components/PersoanlizedTemplateLogin'\nimport Private from 'components/Routes/Private'\nimport Public from 'components/Routes/Public'\nimport Template from 'components/Template'\nimport GlobalStyle from 'main/GlobalStyle'\nimport { BrowserRouter, Route, Switch } from 'react-router-dom'\n\nimport ContextProvider from 'contexts/context'\n\nimport ForgotPassword from 'pages/ForgotPassword'\nimport Login from 'pages/Login'\nimport NoMatch from 'pages/NoMatch'\nimport Profile from 'pages/Profile'\nimport RecoverPassword from 'pages/RecoverPassword'\n\nimport Index from 'pages/Index'\n\nimport Groups from 'pages/Groups'\nimport Home from 'pages/Home'\nimport HomeReports from 'pages/HomeReports'\nimport Page from 'pages/Page'\nimport Report from 'pages/Report'\nimport Reports from 'pages/Reports'\n\nimport Cards from 'pages/Cards'\nimport CardsStore from 'pages/CardsStore'\nimport CardsUpdate from 'pages/CardsUpdate'\nimport CardsUpdateImage from 'pages/CardsUpdateImage'\n\nimport Categories from 'pages/Categories'\nimport CategoriesStore from 'pages/CategoriesStore'\nimport CategoriesUpdate from 'pages/CategoriesUpdate'\nimport CategoriesUpdateImage from 'pages/CategoriesUpdateImage'\n\nimport ReportsUserStore from 'pages/ReportsUserStore'\nimport ReportsUserUpdate from 'pages/ReportsUserUpdate'\nimport UserAccessControl from 'pages/UserAccessControl'\nimport ReportsUser from 'pages/UserReports'\nimport Users from 'pages/Users'\nimport UsersStore from 'pages/UsersStore'\nimport UsersUpdate from 'pages/UsersUpdate'\n\nimport NewUserAccessControl from 'pages/UserAccessControl/New'\nimport NewUserReportsCollection from 'pages/UserReports/Collections/New'\n\nimport ReportsCollection from 'pages/ReportsCollection'\nimport NewReportsCollection from 'pages/ReportsCollection/New'\nimport ReportsCollectionItems from 'pages/ReportsCollection/Reports'\nimport UpdateReportsCollectionItems from 'pages/ReportsCollection/Reports/Update'\nimport UpdateReportsCollection from 'pages/ReportsCollection/Update'\n\nimport Companies from 'pages/Companies'\nimport NewCompany from 'pages/Companies/New'\nimport UpdateCompany from 'pages/Companies/Update'\n\nimport OriginsStore from 'pages/OriginsStore'\nimport OriginsUpdate from 'pages/OriginsUpdate'\nimport StatusStore from 'pages/StatusStore'\nimport StatusUpdate from 'pages/StatusUpdate'\n\nimport Analytics from 'pages/Analytics'\n\nimport Capacities from 'pages/Capacities'\nimport CapacitiesUpdate from 'pages/CapacitiesUpdate'\nimport CapacitiesOptimizeCosts from 'pages/CapacitiesOptimizeCosts'\n\nimport Error from 'pages/Error'\nimport { login } from 'services/auth'\n\nconst App = () => {\n\n const urlParams = new URLSearchParams(window.location.search)\n const token = urlParams.get('token')\n const uniqueId = urlParams.get('uniqueId')\n\n if(token && uniqueId) {\n login(token, uniqueId)\n urlParams.delete('token')\n urlParams.delete('uniqueId')\n window.history.replaceState({}, document.title, window.location.pathname + '?' + urlParams)\n }\n\n\n return (\n <>\n \n \n \n \n \n\n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n\n \n\n \n\n \n\n \n \n\n \n \n \n\n \n\n \n \n \n \n \n \n \n )\n}\n\nexport default App\n","import React from 'react'\nimport ReactDOM from 'react-dom'\nimport App from 'main/App'\n\nReactDOM.render(\n\t\n\t\t\n\t,\n\tdocument.getElementById('root')\n)"],"sourceRoot":""}