{"version":3,"sources":["components/Header/index.tsx","styles/global.ts","services/userApi.ts","hooks/auth.tsx","hooks/i18n.tsx","styles/theme/buzzmonitor.ts","utils/formatQuery.ts","hooks/search.tsx","hooks/index.tsx","utils/countOperators.ts","components/SearchForm/Input/index.tsx","components/SearchForm/MultipleSelect/index.tsx","components/Modals/ActiveCampaign/index.tsx","components/SearchForm/RangeDatePicker/styles.ts","components/SearchForm/RangeDatePicker/index.tsx","components/SearchForm/Select/index.tsx","components/SearchForm/styles.ts","components/SearchForm/index.tsx","services/twitterApi.ts","components/Widgets/Twitter/styles.ts","components/Widgets/Twitter/index.tsx","utils/emailUtils.ts","components/Widgets/Twitter/ExportTrendsModal.tsx","pages/Home/styles.ts","pages/Home/index.tsx","utils/formatParamsToObj.ts","components/SectionTitle/index.tsx","components/ResultsHeader/styles.ts","components/ResultsHeader/AddTermButton/styles.ts","components/ResultsHeader/AddTermButton/index.tsx","components/ResultsHeader/TermCard/styles.ts","components/ResultsHeader/TermCard/index.tsx","components/ResultsHeader/index.tsx","services/elasticsearchApi.ts","components/ChartContainers/TermsEvolutionContainer/TermEvolutionWrapper/EvolutionChart/index.tsx","components/ChartContainers/TermsEvolutionContainer/TermEvolutionWrapper/styles.ts","components/ChartContainers/TermsEvolutionContainer/TermEvolutionWrapper/index.tsx","components/ChartContainers/TermsEvolutionContainer/styles.ts","components/ChartContainers/TermsEvolutionContainer/TotalBuzzChart/index.tsx","components/ChartContainers/TermsEvolutionContainer/index.tsx","hooks/defaultChartsContainer.ts","components/ChartContainers/SharingByNetworkContainer/styles.ts","components/ChartContainers/SharingByNetworkContainer/SharingByNetworkChart/index.tsx","components/ChartContainers/SharingByNetworkContainer/index.tsx","components/ChartContainers/SentimentContainer/styles.ts","components/ChartContainers/SentimentContainer/SentimentChart/index.tsx","components/ChartContainers/SentimentContainer/index.tsx","components/ChartContainers/GenderContainer/GenderChart/index.tsx","components/ChartContainers/GenderContainer/styles.ts","components/ChartContainers/GenderContainer/index.tsx","utils/formatStringDate.ts","components/Modals/Download/index.tsx","components/Modals/Import/index.tsx","hooks/postsContainer.ts","components/TopPosts/Facebook/styles.ts","components/Post/style.ts","components/Post/index.tsx","components/TopPosts/PostContainer/styles.ts","components/TopPosts/PostContainer/index.tsx","components/TopPosts/Facebook/index.tsx","components/TopPosts/Instagram/styles.ts","components/TopPosts/Instagram/index.tsx","components/TopPosts/Twitter/styles.ts","components/TopPosts/Twitter/index.tsx","components/InfluencersWidget/styles.ts","services/influencersApi.ts","components/InfluencersWidget/PostContainer/styles.ts","components/SocialIcon/index.tsx","components/InfluencersWidget/PostContainer/Post/styles.ts","components/InfluencersWidget/PostContainer/Post/index.tsx","utils/formatNumber.ts","hooks/cldrTranslator.ts","components/InfluencersWidget/PostContainer/index.tsx","components/InfluencersWidget/index.tsx","pages/Results/styles.ts","pages/Results/index.tsx","routes.tsx","App.tsx","index.tsx","assets/images/broken-link.png","assets/images/lBlack.png","assets/images/bm-logo.png","assets/images/trends-logo.png","assets/images/fb-logo.png","assets/images/insta-logo.png","assets/images/tami.png"],"names":["Container","styled","header","Header","href","src","BuzzmonitorLogo","alt","createGlobalStyle","userApi","axios","create","baseURL","process","AuthContext","createContext","AuthProvider","children","useState","user","localStorage","getItem","tokenData","JSON","parse","token","expire_date","isPast","parseISO","removeItem","consumer_type","data","setData","authorizeUser","useCallback","a","Cookies","get","headers","then","res","setItem","stringify","addDays","Date","toISOString","catch","Provider","value","useAuth","context","useContext","Error","I18nProvider","language","useMemo","toString","messages","ptBRTranslation","ptPTTranslation","enTranslation","esTranslation","locale","buzzmonitorTheme","colors","primary","secondary","tertiary","primaryLight","primaryDark","primaryDarker","secondaryLight","secondaryDark","secondaryDarker","tertiaryLight","tertiaryDark","black","grey","lighgrey","success","error","background","size","borderRadius","booleanOperators","formatInfluencersQuery","obligatory","optional","banned","boolean","match","booleanSplitted","trim","replace","split","filter","term","map","includes","join","obligatoryQuery","optionalString","bannedQuery","optionalQuery","formatQuery","initialParams","languages","date","type","start","format","subDays","end","SearchContext","SearchProvider","history","useHistory","params","setParams","searchedTerms","setSearchedTerms","booleanMode","setBooleanMode","preview","setPreview","comparisonTerms","setComparisonTerms","termExists","termToCheck","findIndex","addNewTermToSearch","prevTerms","removeTermFromSearch","termObj","editTermToSearch","oldTerm","newTerm","index","newParam","newSearchedTerms","Array","from","splice","clearParams","resetParams","useEffect","handleObligatoryChange","queryBuilder","service","grouping","sort_by","customParams","authentication_params","bm_user","username","api_key","public_api_key","general_params","since","until","timezone","time_zone","undefined","query","length","searchedTerm","dateType","String","dateRange","compare","slice","x","urlParams","URLSearchParams","push","useSearch","AppProvider","theme","countOperators","Input","label","rest","intl","useIntl","opened","setOpened","booleanExplanation","Modal","info","width","icon","centered","title","formatMessage","id","onOk","content","dataSource","example","operator","finds","columns","dataIndex","key","pagination","extraContent","style","display","alignItems","justifyContent","padding","QuestionCircleOutlined","onClick","marginLeft","Item","visible","placeholder","suffix","InfoCircleOutlined","MultipleSelect","options","name","mode","onChange","e","Option","ActiveCampaign","setSuccess","handleSubmit","values","Axios","u","f","s","c","m","act","v","fullname","email","phone","jsonp","afterClose","footer","status","subTitle","extra","onFinish","labelCol","span","wrapperCol","rules","required","message","htmlType","block","FormItem","Form","RangePicker","generatePicker","dateFnsGenerateConfig","es","lang","RangeDatePicker","activeCampaign","setActiveCampaign","dates","setDates","hackValue","setHackValue","setValue","isGuestUser","pt","en","disabledDate","current","afterTomorrow","isAfter","startOfTomorrow","twoYearsLater","isBefore","subYears","startOfToday","dateA","dateB","afterRange","differenceInCalendarDays","onOpenChange","open","handleDateSelect","_","concat","startParsed","startOfDay","endParsed","endOfDay","prevParams","disabled","onCalendarChange","getPopupContainer","document","getElementById","onCancel","Select","handleDateChange","defaultValue","FormANT","attrs","layout","Card","CardANT","SearchForm","formValidationFormat","terms","operators","schema","Yup","shape","max","validate","abortEarly","gutter","xs","md","target","maxLength","Paragraph","ellipsis","rows","expandable","minHeight","margin","TwitterService","country","instance","emails","period","formattedEmails","Title","WidgetHeader","setCountry","displayExportModal","isUserLogged","countryMenu","i18n","countrySetter","items","getCountriesItems","justify","CloudDownloadOutlined","overlay","placement","arrow","SettingOutlined","loadingArray","tweet_volume","rel","Intl","NumberFormat","TwitterWidget","props","loading","setLoading","countryName","getTrendsByCoutry","response","body","trends","filtered","trend","orderBy","Promise","resolve","getTrends","pageSize","renderItem","item","active","paragraph","validateEmail","test","EmailSelector","validInput","React","setEmails","hasEmails","emailsAreValid","every","raw","tokenSeparators","tagRender","valueAsString","isValidEmail","closable","color","marginRight","onClose","DatetimeRangePicker","moment","subtract","range","setRange","timeFormat","dateFormat","allowClear","showTime","ExportTrendsModal","dispose","useForm","form","validEmail","setValidEmail","validDateRange","setValidDateRange","setPeriod","formatDatetime","datetime","cancelText","okText","okButtonProps","exportTrends","CheckCircleOutlined","CloseCircleOutlined","finally","confirmLoading","destroyOnClose","div","Home","displayExportTrends","setDisplayExportTrends","Twitter","formatDate","fdate","h4","SectionTitle","ContainerAddTerm","Grid","InputANT","AddTermButton","isClicked","setIsClicked","setTerm","onSubmit","PlusCircleOutlined","ContainerTerm","TermCardButton","Button","ButtonsContainer","Terms","TermCard","remove","edit","currentTerm","setCurrentTerm","termName","prevCurrentTerm","hoverable","initialValue","EditOutlined","CardHeader","handleNewSearch","handleEditSearch","flexDirection","direction","align","SearchOutlined","ResultsHeader","resume","setResume","handleScroll","window","pageYOffset","addEventListener","removeEventListener","reverse","offsetTop","apiElasticsearch","Authorization","memo","legend","XAxis","Facebook","Instagram","X","Total","magicTypeTranslations","line","bar","totalPosts","reduce","acc","sum","ref","getEchartsInstance","setOption","baseOption","show","text","textStyle","fontSize","fontFamily","grid","top","left","right","bottom","tooltip","trigger","axisPointer","graphic","image","TrendsLogo","height","toolbox","feature","magicType","option","stack","saveAsImage","excludeComponents","brush","xAxisIndex","brushLink","outOfBrush","colorAlpha","dataZoom","backgroundColor","xAxis","boundaryGap","axisLine","yAxis","axisLabel","formatter","numeral","series","smooth","symbolSize","lineStyle","areaStyle","opacity","itemStyle","media","maxWidth","prevProps","newProps","TermEvolutionWrapper","total","dataByNetwork","instagram","facebook","twitter","Object","find","arr","totalValues","isDataValid","metric","description","TotalBuzzChart","formattedData","perItem","totalPerItem","itemWidth","radius","avoidLabelOverlap","fontWeight","position","labelLine","TermEvolutionContainer","setTotalPosts","Map","paramsDatas","setParamsDatas","setTotal","totalBuzz","setTotalBuzz","keyToRemove","difference","keys","prevDatas","delete","totals","totalSum","prev","allPosts","apiRequest","all","elasticsearchApi","post","set","requestData","validateTermData","forEach","marginBottom","bordered","avatar","useDefaultChartsContainer","requestURL","requestBody","url","totalValue","sort","b","localeCompare","uuid","seriesLayoutBy","rich","lineHeight","verticalAlign","dataFormat","charAt","toUpperCase","percent","center","SharingByNetwork","ChartsContainer","sentiment","toLowerCase","SentimentContainer","ContainerBody","numberOfCharts","gender","GenderContainer","formatted","DownloadModal","quantity","parsed_data","post_id","author","profile","user_login","screenname","formatStringDate","likes","shares","comments_amounts","engagement","toFixed","sheetArrays","SheetName","toLocaleDateString","sheet","XLSX","utils","aoa_to_sheet","csvSheet","sheet_to_csv","blob","Blob","saveAs","workbook","book_new","Props","Subject","Author","CreatedDate","SheetNames","Sheets","writeFile","bookType","Group","min","ImportModal","maxImportNumber","requestObj","master_email","master_id","_id","export_type","posts_params","user_tags","max_posts","brand_name","brand","brand_searchable","formValidation","validateFields","brands","remote_name","usePostsContainer","maxImport","setMaxImport","count","Content","full","PostImage","BrokenLink","PostVideo","Metrics","Post","seeFullPost","dateFormatted","metrics","reactions","RiseOutlined","LikeOutlined","MessageOutlined","LinkOutlined","rts","impressions","UserOutlined","UsergroupAddOutlined","followers","tweets","link","picture_full_size","controls","profile_image_url","border","socialIcon","posts","setPosts","page","setPage","handleSeeMore","handleSeeFullPost","sm","lg","PostMenu","handleMenu","TopPostsFacebookHeader","FBLogo","TopPostsFacebook","downloadModal","setDownloadModal","importModal","setImportModal","handleImportModal","handleDownloadModal","PostLoading","FacebookFilled","Download","Import","TopPostsInstagramHeader","InstaLogo","TopPostsInstagram","InstagramFilled","TopPostsTwitterHeader","XLogo","TopPostsTwitter","TwitterOutlined","influencersApi","SocialIcon","social_network","className","YoutubeFilled","Label","SectionDivider","Divider","TagContainer","TagGroup","Social","SocialFollowers","SocialCount","PopOverText","TagSection","tags","SocialPreview","socials","socialsFormatted","social","number","formattedCount","translateLanguage","cldr","setCldr","version","pkg","dependencies","packurl","framework","CLDRFramework","asyncLoader","fetch","r","json","err","console","log","packCacheSize","resolveLocale","getAsync","tag","expanded","new_cldr","General","parseLanguageTag","getLanguageDisplayName","useCldrTranslator","photo","interests","formattedLanguages","flatMap","cover","DEFAULT_FILTERS","searchFor","socialNetworks","whereToSearch","min_followers","max_followers","age","countries","currentInfluencers","setCurrentInfluencers","pageRequest","setPageRequest","containerPage","setContainerPage","hasMore","setHasMore","prevPosts","prevpageRequest","TamiLogo","InfluencersWidget","Results","paramsObj","searchData","formatParamsToObj","location","search","newObligatoryQuery","newParamsObj","Routes","path","component","exact","App","ReactDOM","render","StrictMode","module","exports"],"mappings":"igCAMA,IAYMA,EAAYC,IAAOC,OAAV,KA2CAC,EAvDU,WACvB,OACE,kBAACH,EAAD,KACE,6BACE,uBAAGI,KAAK,yCACN,yBAAKC,IAAKC,IAAiBC,IAAI,oB,yoDCR1BC,kBAAf,K,iFCGeC,EAJCC,IAAMC,OAAO,CAC3BC,QAASC,6C,kBC2BLC,EAAcC,wBAA+B,IAE7CC,EAAyB,SAAC,GAAkB,IAAhBC,EAAe,EAAfA,SAAe,EACvBC,oBAAoB,WAC1C,IAAMC,EAAOC,aAAaC,QAAb,uBACKR,SADL,UAGPS,EAAYF,aAAaC,QAAb,uBACAR,SADA,WAGlB,GAAIS,GAAaH,EAAM,CAAC,IAAD,EACUI,KAAKC,MAAMF,GAAlCG,EADa,EACbA,MAAOC,EADM,EACNA,YACf,IAAKC,YAAOC,YAASF,IACnB,MAAO,CAAED,QAAON,KAAMI,KAAKC,MAAML,IAEnCC,aAAaS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AD,OAEF,kBAAC,KAAD,CAAKA,KAAM,IACT,kBAAC,GAAD,OAEF,kBAAC,KAAD,CAAKA,KAAM,IACT,kBAAC,GAAD,UC/DK6jB,GARU,WACvB,OACE,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAOC,KAAK,IAAIC,UAAW7Y,GAAM8Y,OAAK,IACtC,kBAAC,IAAD,CAAOF,KAAK,WAAWC,UAAWV,GAASW,OAAK,MCSvCC,GAZO,WACpB,OACE,kBAAC,IAAD,KACE,kBAAC,EAAD,KACE,kBAAC,EAAD,MACA,kBAAC,GAAD,OAEF,kBAAC,EAAD,QCTNC,IAASC,OACP,kBAAC,IAAMC,WAAP,KACE,kBAAC,GAAD,OAEFjhB,SAASC,eAAe,U,oBCT1BihB,EAAOC,QAAU,IAA0B,yC,oBCA3CD,EAAOC,QAAU,IAA0B,oC,wCCA3CD,EAAOC,QAAU,IAA0B,qC,ky/BCA3CD,EAAOC,QAAU,IAA0B,yC,kBCA3CD,EAAOC,QAAU,8jZ,kBCAjBD,EAAOC,QAAU,smM,kBCAjBD,EAAOC,QAAU,suV","file":"static/js/main.cd41fdee.chunk.js","sourcesContent":["import React from 'react';\n\nimport styled from 'styled-components';\n\nimport BuzzmonitorLogo from 'assets/images/bm-logo.png';\n\nconst Header: React.FC = () => {\n return (\n \n
\n \n \"Buzzmonitor\"\n \n
\n
\n );\n};\n\nconst Container = styled.header`\n max-width: 100vw;\n width: 100%;\n position: fixed;\n top: 0;\n height: 57px;\n background-color: black;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n div {\n max-width: 1080px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n a {\n img {\n margin: 0 auto;\n height: 80px;\n width: auto;\n }\n }\n @media (max-width: 900px) {\n display: flex;\n img {\n margin: 0 auto;\n }\n }\n @media (max-width: 420px) {\n max-width: 100vw;\n button {\n font-size: 15px;\n width: 65px;\n }\n span {\n width: 0px;\n }\n }\n }\n`;\n\nexport default Header;\n","import { createGlobalStyle } from 'styled-components';\nimport 'antd/dist/antd.css';\n\nexport default createGlobalStyle`\n * {\n padding: 0;\n margin: 0;\n outline: 0;\n box-sizing: border-box;\n }\n *:focus {\n outline: 0;\n }\n html, body, #root {\n height: 100vh;\n }\n body {\n background: #f5f5f5;\n -webkit-font-smoothing: antialiased;\n }\n body, input,button {\n font-family: 'Lato', sans-serif;\n font-size: 14px;\n }\n a {\n text-decoration: none;\n }\n ul {\n list-style: none;\n }\n button {\n cursor: pointer;\n }\n h1, h2,h3,h4,h5,h6 {\n margin: 0;\n }\n h1 {\n font-weight: 700;\n font-size: 43px;\n }\n h2 {\n font-weight: 700;\n font-size: 38px;\n }\n h3 {\n font-weight: 700;\n font-size: 34px;\n }\n h4 {\n font-weight: 700;\n font-size: 29px;\n }\n h5 {\n font-weight: 700;\n font-size: 25px;\n }\n h6 {\n font-weight: 700;\n font-size: 23px;\n }\n label {\n font-weight: 700;\n font-size: 15px;\n }\n p {\n font-weight: 400;\n line-height: 1.2rem;\n font-size: .9rem;\n }\n small {\n font-weight: 400;\n font-size: 12px;\n }\n div.ant-card, button {\n border-radius: 4px;\n }\n div.ant-card{\n border: 1px solid #e8e8e8;\n }\n button {\n svg {\n height: 0.8rem;\n width:auto;\n }\n }\n div.ant-card-head-title{\n padding: 8px 0;\n }\n @media (max-width: 480px){\n div.ant-card-head-title {\n img , svg {\n height: 1rem;\n width:auto;\n }\n h4 {\n font-size: 1.2rem;\n }\n }\n button {\n svg {\n height: 0.8rem;\n width:auto;\n }\n }\n }\n`;\n","import axios from 'axios';\n\nconst userApi = axios.create({\n baseURL: process.env.REACT_APP_USER_API_URL,\n});\n\nexport default userApi;\n","import React, { createContext, useState, useContext, useCallback } from 'react';\nimport { parseISO, addDays, isPast } from 'date-fns';\nimport userApi from 'services/userApi';\nimport Cookies from 'js-cookie';\n\ntype Language = 'pt-BR' | 'pt-PT' | 'en' | 'es';\n\ninterface User {\n _id: string;\n consumer_type: string;\n language: Language;\n time_zone: string;\n email: string;\n username: string;\n remote_name: string;\n public_api_key: string;\n name: string;\n brands: Array<{ name: string; remote_name: string }>;\n}\n\ninterface AuthState {\n token: string;\n user: User;\n}\n\ninterface AuthContextData {\n user: User;\n authorizeUser(): Promise;\n}\n\nconst AuthContext = createContext({} as AuthContextData);\n\nconst AuthProvider: React.FC = ({ children }) => {\n const [data, setData] = useState(() => {\n const user = localStorage.getItem(\n `@Buzzmonitor:${process.env.REACT_APP_APPLICATION_NAME}:user`,\n );\n const tokenData = localStorage.getItem(\n `@Buzzmonitor:${process.env.REACT_APP_APPLICATION_NAME}:token`,\n );\n if (tokenData && user) {\n const { token, expire_date } = JSON.parse(tokenData);\n if (!isPast(parseISO(expire_date))) {\n return { token, user: JSON.parse(user) };\n }\n localStorage.removeItem(\n `@Buzzmonitor:${process.env.REACT_APP_APPLICATION_NAME}:user`,\n );\n localStorage.removeItem(\n `@Buzzmonitor:${process.env.REACT_APP_APPLICATION_NAME}:token`,\n );\n }\n return {\n user: {\n consumer_type:\n process.env.REACT_APP_ENV === 'production'\n ? 'unassigned_costumer'\n : 'employee',\n },\n token: '',\n } as AuthState;\n });\n\n const authorizeUser = useCallback(async () => {\n const token = Cookies.get('token');\n if (token) {\n await userApi\n .get('', {\n headers: {\n 'access-token': process.env.REACT_APP_USER_API_ACCESS_TOKEN,\n token,\n },\n })\n .then(res => {\n localStorage.setItem(\n `@Buzzmonitor:${process.env.REACT_APP_APPLICATION_NAME}:user`,\n JSON.stringify(res.data[0]),\n );\n localStorage.setItem(\n `@Buzzmonitor:${process.env.REACT_APP_APPLICATION_NAME}:token`,\n JSON.stringify({\n token,\n expire_date: addDays(new Date(), 1).toISOString(),\n }),\n );\n setData({ token, user: res.data[0] });\n })\n .catch(() => {\n setData({ token: '', user: {} as User });\n localStorage.setItem(\n `@Buzzmonitor:${process.env.REACT_APP_APPLICATION_NAME}:user`,\n JSON.stringify(''),\n );\n localStorage.setItem(\n `@Buzzmonitor:${process.env.REACT_APP_APPLICATION_NAME}:token`,\n JSON.stringify({}),\n );\n });\n }\n }, []);\n\n return (\n \n {children}\n \n );\n};\n\nfunction useAuth(): AuthContextData {\n const context = useContext(AuthContext);\n\n if (!context) {\n throw new Error('useAuth must be used within an AuthProvider!');\n }\n\n return context;\n}\n\nexport { AuthProvider, useAuth };\n","import React from 'react';\nimport { IntlProvider } from 'react-intl';\nimport { useMemo } from 'react';\nimport { useAuth } from './auth';\nimport ptBRTranslation from '../translations/pt-BR.json';\nimport ptPTTranslation from '../translations/pt-PT.json';\nimport enTranslation from '../translations/en.json';\nimport esTranslation from '../translations/es.json';\n\nconst I18nProvider: React.FC = ({ children }) => {\n const { user } = useAuth();\n\n const language = useMemo(() => {\n if (user?.language?.toString() == 'pt_PT') {\n return 'pt-PT';\n } else if (user?.language?.toString() == 'pt_BR') {\n return 'pt-BR';\n } else {\n return user?.language;\n }\n }, [user]);\n\n const messages = useMemo(() => {\n const translations = {\n 'pt-BR': ptBRTranslation,\n 'pt-PT': ptPTTranslation,\n 'en': enTranslation,\n 'es': esTranslation,\n };\n return translations[language || 'en'];\n }, [user]);\n\n return (\n \n {children}\n \n );\n};\n\nexport { I18nProvider };\n","import { DefaultTheme } from 'styled-components';\n\nconst buzzmonitorTheme: DefaultTheme = {\n colors: {\n primary: '#008EED',\n secondary: '#FCB315',\n tertiary: '#969fb7',\n\n primaryLight: '#4DAEFF',\n primaryDark: '#478DDA',\n primaryDarker: '#327BDD',\n\n secondaryLight: '#FFCF67',\n secondaryDark: '#E9A256',\n secondaryDarker: '#FF992D',\n\n tertiaryLight: '#ECEBEB',\n tertiaryDark: '#CCCCCC',\n\n black: '#282828',\n grey: '#cccccc',\n lighgrey: '#ecebeb',\n\n success: '#59cb59',\n error: '#DD5b70',\n\n background: '#F5f5f5',\n },\n size: {\n borderRadius: '4px',\n },\n};\n\nexport default buzzmonitorTheme;\n","interface FormatQueryData {\n obligatory: string;\n optional: string;\n banned: string;\n}\n\nconst booleanOperators = ['AND', '&&', 'OR', '||', 'NOT', '(', ')'];\n\nconst formatQuery = ({\n obligatory,\n optional,\n banned,\n}: FormatQueryData): string => {\n let boolean = obligatory.match(\n /(\")|(OR)|(AND)|(NOT)|(\\()|(\\))|(^(-[a-zA-Z0-9]*)$)/g,\n )\n ? obligatory\n : '';\n\n if (boolean) {\n boolean = boolean.trim().replace(/\\(/g, '( ').replace(/\\)/g, ' )');\n const booleanSplitted = boolean\n .split(/ +(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/g)\n .filter(term => term !== '');\n\n const booleanFormatted = booleanSplitted.map(term => {\n if (!booleanOperators.includes(term) && !term.match('\"')) {\n if (term.match(/^-[a-zA-Z0-9]/gi)) {\n return `NOT(\"${term.replace('-', '')}\")`;\n }\n return `\"${term}\"`;\n }\n return term;\n });\n\n boolean = booleanFormatted.join(' ');\n boolean.replace(/\"\"/g, '\"');\n }\n\n const obligatoryQuery = obligatory\n .split(',')\n .map(term => term && `\"${term.trim()}\"`)\n .join(' ');\n const optionalString = optional\n .split(',')\n .map(term => term && `\"${term.trim()}\"`)\n .join(' OR ');\n\n const bannedQuery = banned\n .split(',')\n .map(term => term && `NOT(\"${term.trim()}\")`)\n .join(' ');\n\n const optionalQuery = optionalString ? `( ${optionalString} )` : '';\n return `${boolean || obligatoryQuery} ${optionalQuery} ${bannedQuery}`.trim();\n};\n\n/*\n Format a FormatQueryData to a Influencers query string.\n */\nexport const formatInfluencersQuery = ({\n obligatory,\n optional,\n banned,\n}: FormatQueryData): string => {\n let boolean = obligatory.match(/(\")|(OR)|(AND)|(NOT)|(^(-[a-zA-Z0-9]*)$)/g)\n ? obligatory\n : '';\n\n if (boolean) {\n boolean = boolean.trim().replace(/\\(/g, '( ').replace(/\\)/g, ' )');\n\n const booleanSplitted = boolean\n .split(/ +(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/g)\n .filter(term => term !== '');\n\n const booleanFormatted = booleanSplitted.map(term => {\n if (!booleanOperators.includes(term) && !term.match('\"')) {\n if (term.match(/^-[a-zA-Z0-9]/gi)) {\n return `NOT(\"${term.replace('-', '')}\")`;\n }\n }\n return term;\n });\n\n boolean = booleanFormatted.join(' ');\n }\n\n const obligatoryQuery = obligatory\n .split(',')\n .map(term => term.trim())\n .join(' ');\n const optionalString = optional\n .split(',')\n .map(term => term.trim())\n .join(' OR ');\n const bannedQuery = banned\n .split(',')\n .map(term => term && `NOT(${term.trim()})`)\n .join(' ');\n\n const optionalQuery = optionalString ? `( ${optionalString} )` : '';\n return `${boolean || obligatoryQuery} ${optionalQuery} ${bannedQuery}`\n .trim()\n .replace(/\"/g, '\"\"');\n};\n\nexport default formatQuery;\n","import React, {\n createContext,\n useState,\n useCallback,\n useContext,\n useEffect,\n} from 'react';\nimport { format, subDays, parseISO } from 'date-fns';\nimport formatQuery from 'utils/formatQuery';\nimport { useHistory } from 'react-router-dom';\nimport { useAuth } from './auth';\n\nexport type Language = 'pt-BR' | 'pt-PT' | 'en' | 'es';\nexport type DateType = 'today' | 'last30' | 'last7' | 'last24' | 'personalized';\nexport type IPost = {\n post_id: string;\n content: string;\n service: 'facebook' | 'instagram' | 'twitter';\n likes?: number;\n rts?: number;\n impressions?: number;\n shares?: number;\n comments_amounts?: number;\n page_id?: string;\n type: string;\n link?: string;\n reactions?: number;\n date: string;\n content_type?: string;\n picture_full_size?: string;\n sentiment?: string;\n engagement?: number;\n url?: string;\n user_login?: string;\n author: {\n name?: string;\n login?: string;\n profile?: string;\n profile_image_url?: string;\n followers?: number;\n tweets?: number;\n screenname?: string;\n };\n};\n\nexport type Params = {\n obligatory: string;\n optional: string;\n banned: string;\n languages: Language[];\n date: {\n type: DateType;\n start: string;\n end: string;\n };\n};\n\nexport type Metric = {\n label: string;\n value: number;\n};\ntype Results = {\n term_evolution?: Array;\n sentiments?: Array;\n services?: Array;\n genders?: Array;\n posts: {\n facebook?: Array;\n instagram?: Array;\n twitter?: Array;\n };\n};\n\nexport const allServices = [\n 'twitter',\n 'facebook',\n 'instagram',\n 'photos',\n 'videos',\n 'forums',\n 'blogs',\n 'news',\n 'miscellaneous',\n];\nexport interface QueryBuilderData {\n service?: string[];\n grouping?: string;\n size?: number;\n sort_by?: string;\n customParams?: Params;\n}\n\ninterface QueryBuilderResponse {\n authentication_params: {\n bm_user: string;\n api_key: string;\n };\n general_params: {\n since: string;\n until: string;\n language: string[];\n timezone: string;\n service?: string[];\n query: string;\n };\n sort_by?: string;\n size?: number;\n grouping?: string;\n}\n\ninterface SearchContextData {\n params: Params;\n setParams: React.Dispatch>;\n clearParams(): void;\n booleanMode: boolean;\n handleObligatoryChange(value: string): void;\n preview: string;\n queryBuilder(data: QueryBuilderData): QueryBuilderResponse;\n addNewTermToSearch(term: string): void;\n searchedTerms: Params[];\n setSearchedTerms: React.Dispatch>;\n resetParams(): void;\n removeTermFromSearch(term: string): void;\n editTermToSearch(oldTerm: string, newTerm: string): void;\n comparisonTerms: Params[];\n setComparisonTerms: React.Dispatch>;\n}\n\nconst initialParams = {\n obligatory: '',\n optional: '',\n banned: '',\n languages: [],\n date: {\n type: 'last30',\n start: format(subDays(new Date(), 30), 'yyyy-MM-dd hh:mm:ss').toString(),\n end: format(new Date(), 'yyyy-MM-dd hh:mm:ss').toString(),\n },\n} as Params;\n\nconst SearchContext = createContext({} as SearchContextData);\n\nconst SearchProvider: React.FC = ({ children }) => {\n const { user } = useAuth();\n const history = useHistory();\n const [params, setParams] = useState({ ...initialParams });\n const [searchedTerms, setSearchedTerms] = useState([]);\n const [booleanMode, setBooleanMode] = useState(false);\n const [preview, setPreview] = useState('');\n const [comparisonTerms, setComparisonTerms] = useState([]);\n\n const termExists = useCallback(\n (termToCheck: string): boolean => {\n return (\n searchedTerms.findIndex(term => term.obligatory === termToCheck) > -1\n );\n },\n [searchedTerms],\n );\n\n const addNewTermToSearch = useCallback(\n (term: string) => {\n if (termExists(term)) {\n return;\n }\n setParams({ ...params, obligatory: term, optional: '', banned: '' });\n setSearchedTerms(prevTerms => [\n ...prevTerms,\n { ...params, obligatory: term, optional: '', banned: '' },\n ]);\n },\n [params, termExists],\n );\n\n const removeTermFromSearch = useCallback((term: string) => {\n setSearchedTerms(prevTerms =>\n prevTerms.filter(termObj => termObj.obligatory !== term),\n );\n }, []);\n\n const editTermToSearch = useCallback(\n (oldTerm: string, newTerm: string) => {\n if (oldTerm === newTerm || termExists(newTerm)) {\n return;\n }\n const index = searchedTerms.findIndex(\n term => term.obligatory === oldTerm,\n );\n\n const newParam = {\n ...params,\n obligatory: newTerm,\n optional: '',\n banned: '',\n };\n\n const newSearchedTerms = Array.from(searchedTerms);\n newSearchedTerms.splice(index, 1, newParam);\n\n setSearchedTerms(newSearchedTerms);\n setParams(newParam);\n },\n [params, searchedTerms, termExists],\n );\n\n const clearParams = useCallback(() => {\n setParams({ ...initialParams });\n }, []);\n\n const resetParams = useCallback(() => {\n setParams(searchedTerms[0]);\n }, [searchedTerms]);\n\n useEffect(\n () =>\n setPreview(\n formatQuery({\n obligatory: params.obligatory,\n optional: params.optional,\n banned: params.banned,\n }),\n ),\n [params.obligatory, params.optional, params.banned],\n );\n\n const handleObligatoryChange = useCallback(\n (value: string) => {\n setParams({ ...params, obligatory: value });\n const hasBooleanSearch = !!value.match(/(\")|(OR)|(AND)|(NOT)/g);\n if (hasBooleanSearch) {\n if (!booleanMode) setBooleanMode(true);\n } else if (booleanMode) setBooleanMode(false);\n },\n [booleanMode, params],\n );\n\n const queryBuilder = useCallback(\n ({\n service,\n grouping,\n size,\n sort_by,\n customParams = params,\n }: QueryBuilderData): QueryBuilderResponse => ({\n authentication_params: {\n bm_user: user.username || 'guest',\n api_key:\n user.public_api_key ||\n 'MfcySfJ4jw8Wj3bSlxExD4UEnpDoiAfVDfhjlRdsdafk1g2cDw',\n },\n general_params: {\n since: format(\n parseISO(customParams.date.start),\n 'yyyyMMddHHmmss',\n ).toString(),\n until: format(\n parseISO(customParams.date.end),\n 'yyyyMMddHHmmss',\n ).toString(),\n language: customParams.languages || [],\n timezone: user.time_zone || '-3.0',\n service: service ? [...service] : undefined,\n query: customParams.obligatory,\n },\n sort_by,\n size,\n grouping,\n }),\n [params, user],\n );\n\n /*\n Updates the page URL when the searchedTerms are changed by adding, editing \n or deleting.\n */\n useEffect(() => {\n if (searchedTerms.length >= 1) {\n const { date } = searchedTerms[0];\n\n const searchedTerm = {\n obligatory: searchedTerms[0].obligatory,\n optional: searchedTerms[0].optional,\n banned: searchedTerms[0].banned,\n languages: JSON.stringify(searchedTerms[0].languages),\n dateType: String(date.type),\n dateRange: JSON.stringify([date.start, date.end]),\n compare: JSON.stringify(searchedTerms.slice(1).map(x => x.obligatory)),\n };\n\n const urlParams = new URLSearchParams(searchedTerm).toString();\n history.push(`/results?${urlParams}`);\n }\n }, [history, searchedTerms]);\n\n return (\n \n {children}\n \n );\n};\n\nfunction useSearch(): SearchContextData {\n const context = useContext(SearchContext);\n\n if (!context) {\n throw new Error('useAuth must be used within an AuthProvider!');\n }\n\n return context;\n}\n\nexport { SearchProvider, useSearch };\n","import React from 'react';\nimport { ThemeProvider } from 'styled-components';\nimport { AuthProvider } from './auth';\nimport { I18nProvider } from './i18n';\n\nimport buzzmonitorTheme from '../styles/theme/buzzmonitor';\nimport { SearchProvider } from './search';\n\nconst AppProvider: React.FC = ({ children }) => {\n return (\n \n \n \n {children}\n \n \n \n );\n};\n\nexport default AppProvider;\n","const countOperators = (query: string): number => {\n // eslint-disable-next-line no-useless-escape\n const re = /(\\\" \\\")|( OR [^\\(])|( && [^\\(])|( \\|\\| [^\\(])|(( AND [^\\(]))|(\\\" \\()|(\\( \\\")|(\\) \\\")|(\\) (NOT)|!)/g;\n return ((query || '').match(re) || []).length;\n};\n\nexport default countOperators;\n","import React, { useMemo, useCallback, useState } from 'react';\nimport { Form, Input as InputANT, Tooltip, Modal, Table, Popover } from 'antd';\nimport { useIntl } from 'react-intl';\nimport { InfoCircleOutlined, QuestionCircleOutlined } from '@ant-design/icons';\nimport { InputProps } from 'antd/lib/input';\n\ninterface Props extends InputProps {\n label: string;\n booleanMode?: boolean;\n}\nconst Input: React.FC = ({ label, booleanMode, ...rest }) => {\n const intl = useIntl();\n const [opened, setOpened] = useState(false);\n\n const booleanExplanation = useCallback(() => {\n setOpened(true);\n Modal.info({\n width: 650,\n icon: '',\n centered: true,\n title: intl.formatMessage({ id: 'boolean_operators.title' }),\n onOk: () => setOpened(false),\n content: (\n ({\n operator: intl.formatMessage({ id: `example${example}_operator` }),\n finds: intl.formatMessage({ id: `example${example}_finds` }),\n }))}\n columns={[\n {\n title: intl.formatMessage({ id: 'boolean_operators.operator' }),\n dataIndex: 'operator',\n key: 'operator',\n },\n {\n title: intl.formatMessage({ id: 'boolean_operators.finds' }),\n dataIndex: 'finds',\n key: 'finds',\n },\n ]}\n pagination={false}\n />\n ),\n });\n }, [intl]);\n\n const extraContent = useMemo(\n () =>\n booleanMode ? (\n \n {intl.formatMessage({ id: 'boolean.tooltip' })}\n \n \n ) : (\n ''\n ),\n [booleanExplanation, booleanMode, intl],\n );\n\n return (\n \n \n \n \n ,\n ]}\n />\n \n \n );\n};\n\nexport default Input;\n","import React, { useMemo } from 'react';\nimport { Form, Select } from 'antd';\nimport { useIntl } from 'react-intl';\nimport { useSearch, Language } from 'hooks/search';\n\ninterface Option {\n value: string;\n name: string;\n}\ninterface Props {\n label: string;\n}\n\nconst MultipleSelect: React.FC = ({ label }) => {\n const intl = useIntl();\n const { params, setParams } = useSearch();\n\n const options: Array