{"version":3,"sources":["util/UserUtils.js","services/FeedService.js","services/MessageService.js","services/AnnouncementService.js","helpers/AuthHeader.js","services/TwitterService.js","services/UserService.js","assets/images/logo.png","util/IntlMessages.js","services/AxiosHelper.js","lngProvider/entries/en-US.js","lngProvider/index.js","lngProvider/entries/es_ES.js","components/Layouts/Navigation.js","components/UserInfo/index.js","components/MailNotification/NotificationItem.js","components/MailNotification/index.js","components/Layouts/MasterLayout.js","app/routes/dashboard/index.js","app/routes/brands/index.js","app/routes/calendar/index.js","app/routes/content/index.js","app/routes/posts/index.js","app/routes/savedcontent/index.js","app/routes/settings/index.js","app/routes/stats/index.js","app/routes/preview/index.js","app/routes/manage/index.js","app/index.js","components/CircularProgress/index.js","containers/LoginConfig.js","containers/Oauth.js","containers/SignIn.js","containers/SignUp.js","containers/ThirdPartySignin.js","containers/TwitterAuth.js","containers/App.js","registerServiceWorker.js","index.js","util/asyncComponent.js","util/CustomScrollbars.js","helpers/HandleResponse.js"],"names":["updateSelf","userService","catch","err","console","log","setUser","user","localStorage","setItem","window","btoa","encodeURIComponent","JSON","stringify","getPropValue","props","name","Array","isArray","p","find","o","undefined","value","axios","interceptors","response","use","error","status","removeItem","location","reload","Promise","reject","FeedSevice","urlGet","process","urlPost","portalid","userid","isActive","requestOptions","headers","authHeader","resolve","get","then","handleResponse","res","items","data","feedData","id","put","url","description","userId","isSystem","post","delete","MessageSevice","isAdmin","length","messageData","ids","map","method","announcementService","getActive","postData","search","getById","portalId","getData","upsertData","deleteItem","deleteData","deleteMany","deleteMultipleData","parse","decodeURIComponent","atob","getItem","token","Authorization","twitterService","getAuthorizationUrl","authenticate","oauth_token","oauth_verifier","args","getUserInfo","verify","alias","idToken","keyword","page","pagesize","sorted","roleid","escape","item","getUserProperties","oldUser","d","systemName","idx","properties","findIndex","getUserRoles","addRoleToUser","roleId","startDate","expiryDate","deleteRoleFromUser","getAllRoles","module","exports","injectIntl","withRef","defaults","baseURL","instance","create","responseType","formatReject","join","request","info","needsAuth","putData","EnLang","messages","enMessages","locale","appLocaleData","AppLocale","en","enLang","es","saMessages","addLocaleData","Navigation","authUser","this","updateSelected","unlisten","history","listen","action","opens","document","querySelectorAll","i","classList","remove","that","pathname","subMenuLi","onclick","event","stopPropagation","menuLi","getElementsByClassName","j","parentLi","closest","contains","toggle","activeLink","querySelector","activeNav","add","el","selector","matchesFn","parent","some","fn","body","parentElement","e","CustomScrollbars","className","style","height","IntlMessages","NavLink","to","fitPostAdminAccess","Component","withRouter","UserInfo","href","preventDefault","src","thumbnailUrl","alt","fullName","accountType","onClick","userSignOut","React","NotificationItem","notification","badge","userFullName","createdOn","subject","thumbnail","moment","format","messageService","MessageService","MailNotification","state","isloading","notifications","loadData","bind","setState","index","key","Content","Layout","Header","Sider","cookies","Cookies","MasterLayout","innerWidth","collapsed","drawerVisible","resetJoyride","push","announcement","Date","setTime","getTime","set","path","expires","r","split","isRecurring","Modal","okText","maskClosable","content","dangerouslySetInnerHTML","__html","target","urlText","msgMenu","size","icon","UserOutlined","class","title","placement","closable","onClose","width","visible","trigger","collapsible","collapsedWidth","breakpoint","onBreakpoint","broken","MenuUnfoldOutlined","MenuFoldOutlined","overlay","children","Dashboard","match","Switch","Redirect","exact","from","Route","component","asyncComponent","Brands","Calendar","Posts","Manage","App","onToggleSideNav","boo","navOpen","isIOS","isMobile","SavedContent","Settings","Stats","Preview","CircularProgress","viewBox","cx","cy","fill","strokeWidth","strokeMiterlimit","LOGIN_URL","feedService","FeedService","Oauth","loading","errReason","q","qs","replace","code","port","hostname","handleLogin","consume","isNewUser","hash","SignIn","email","password","showMessage","loader","alertMessage","Link","img","placeholder","onChange","defaultValue","type","Button","color","NotificationManager","SignUp","setTimeout","hideMessage","userSignUp","ThirdPartySignIn","TwitterAuth","useState","errorMessage","setErrorMessage","values","useEffect","RestrictedRoute","rest","render","indexOf","getElementById","currentAppLocale","MainApp","ThirdPartySignin","LinkedInPopUp","Boolean","ReactDOM","BrowserRouter","navigator","serviceWorker","ready","registration","unregister","importComponent","Nprogress","start","mounted","default","done","rows","autoHide","renderTrackHorizontal","display","toString","substring","message","statusText"],"mappings":"qGAAA,kHAGO,SAASA,IACZC,IAAYD,aAAaE,OAAM,SAACC,GAC5BC,QAAQC,IAAIF,MAKb,SAASG,EAAQC,GACpBC,aAAaC,QAAQ,YAAaC,OAAOC,KAAKC,mBAAmBC,KAAKC,UAAUP,MAG7E,SAASQ,EAAaC,EAAOC,GAChC,IAAKC,MAAMC,QAAQH,GAAQ,MAAO,GAClC,IAAMI,EAAIJ,EAAMK,MAAK,SAACC,GAAD,OAAOA,EAAEL,OAASA,KACvC,YAAUM,IAANH,EAAwB,GACrBA,EAAEI,Q,oHCdbC,IAAMC,aAAaC,SAASC,KACxB,SAACD,GAAD,OAAcA,KACd,SAACE,GAMG,OAJe,MADIA,EAAMF,SAAjBG,SAEJtB,aAAauB,WAAW,aACxBrB,OAAOsB,SAASC,QAAO,IAEpBC,QAAQC,OAAON,M,IAITO,E,iDACjBC,OAASC,iD,KACTC,QAAUD,iD,gDAENE,EAAUC,EAAQC,GAAW,IAAD,OACtBC,EAAiB,CAAEC,QAASC,eAIlC,YAFiBtB,IAAbmB,IAAwBA,GAAW,GAEhC,IAAIR,SAAQ,SAACY,EAASX,GACzBV,IACKsB,IAAI,EAAKV,OAAS,aAAeG,EAAW,WAAaC,EAAS,WAAaC,EAAUC,GACzFK,KAAKC,KACLD,MAAK,SAACE,GACH,IAAIC,EAAQD,EAAIE,KAChBN,EAAQK,MAEXjD,OAAM,SAACgD,GACJf,EAAO,iB,2BAKlBkB,GAAW,IAAD,OACLV,EAAiB,CAAEC,QAASC,eAGlC,OAAIQ,EAASC,GAAK,EACP,IAAIpB,SAAQ,SAACY,EAASX,GACzBV,IACK8B,IAAI,EAAKhB,QAAU,IAAMc,EAASC,GAAID,EAAUV,GAChDK,KAAKC,KACLD,MAAK,SAACE,GACH,IAAIE,EAAOF,EAAIE,KACfN,EAAQM,MAEXlD,OAAM,SAACgD,GACJf,EAAO,e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L,UAAU,4B,+BCNzF,SAASxI,EAAetB,GAE3B,GAAkD,MAA9CA,EAASG,OAAOyV,WAAWC,UAAU,EAAE,GAAY,CAC3B,MAApB7V,EAASG,SAETtB,aAAauB,WAAW,aACxBrB,OAAOsB,SAASC,QAAO,IAG3B,IAAMJ,EAASF,EAASyB,MAAQzB,EAAS8V,SAAY9V,EAAS+V,WAC9D,OAAOxV,QAAQC,OAAON,GAG1B,OAAOF,EAbX,oC","file":"static/js/main.2789093e.chunk.js","sourcesContent":["import { userService } from \"../services/UserService\";\r\n\r\n// whenever the user needs a refresh(new social settings)\r\nexport function updateSelf() {\r\n userService.updateSelf().catch((err) => {\r\n console.log(err);\r\n });\r\n}\r\n\r\n// coming from the login (oauth.js)\r\nexport function setUser(user) {\r\n localStorage.setItem(\"user_info\", window.btoa(encodeURIComponent(JSON.stringify(user))));\r\n}\r\n\r\nexport function getPropValue(props, name) {\r\n if (!Array.isArray(props)) return \"\";\r\n const p = props.find((o) => o.name === name);\r\n if (p === undefined) return \"\";\r\n return p.value;\r\n}\r\n","import axios from \"axios\";\r\nimport { authHeader } from \"helpers/AuthHeader\";\r\nimport { handleResponse } from \"helpers/HandleResponse\";\r\n\r\naxios.interceptors.response.use(\r\n (response) => response,\r\n (error) => {\r\n const { status } = error.response;\r\n if (status === 401) {\r\n localStorage.removeItem(\"user_info\");\r\n window.location.reload(true);\r\n }\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\nexport default class FeedSevice {\r\n urlGet = process.env.REACT_APP_WEBAPI_URL + \"/api/feed\";\r\n urlPost = process.env.REACT_APP_WEBAPI_URL + \"/api/feed\";\r\n\r\n get(portalid, userid, isActive) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n if (isActive === undefined) isActive = false;\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(this.urlGet + \"?portalid=\" + portalid + \"&userid=\" + userid + \"&active=\" + isActive, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let items = res.data;\r\n resolve(items);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n }\r\n\r\n post(feedData) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n // check for update\r\n if (feedData.id > 0) {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .put(this.urlPost + \"/\" + feedData.id, feedData, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let data = res.data;\r\n resolve(data);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n }\r\n\r\n // new item\r\n return new Promise((resolve, reject) => {\r\n let data = {\r\n name: feedData.name,\r\n url: feedData.url,\r\n description: feedData.description,\r\n isActive: feedData.isActive,\r\n userId: feedData.userId,\r\n isSystem: false,\r\n };\r\n\r\n if (feedData.isSystem) {\r\n data.isSystem = true;\r\n data.userId = \"00000000-0000-0000-0000-000000000000\";\r\n } else {\r\n data.isSystem = false;\r\n }\r\n\r\n axios\r\n .post(this.urlPost, data, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let data = res.data;\r\n resolve(data);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n }\r\n\r\n delete(feedData) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .delete(this.urlPost + \"/\" + feedData.id, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n resolve();\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n }\r\n\r\n consume(userid) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(this.urlGet + \"/consume/\" + userid, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let items = res.data;\r\n resolve(items);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n }\r\n}\r\n","import axios from 'axios';\r\nimport { authHeader } from 'helpers/AuthHeader';\r\nimport { handleResponse } from 'helpers/HandleResponse';\r\n\r\naxios.interceptors.response.use(\r\n response => response,\r\n error => {\r\n const {status} = error.response;\r\n if (status === 401) {\r\n localStorage.removeItem('user_info');\r\n window.location.reload(true);\r\n }\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\nexport default class MessageSevice {\r\n\r\n urlGet = process.env.REACT_APP_WEBAPI_URL + \"/api/messageThread\";\r\n urlPost = process.env.REACT_APP_WEBAPI_URL + \"/api/messageThread\";\r\n\r\n get(portalid, userid, isAdmin) {\r\n const requestOptions = { headers: authHeader() };\r\n \r\n return new Promise((resolve, reject) => {\r\n\r\n let url = (userid.length > 0 && !isAdmin)\r\n ? this.urlGet + \"?portalid=\" + portalid + \"&userid=\" + userid\r\n : this.urlGet + \"?portalid=\" + portalid;\r\n\r\n axios.get(url, requestOptions)\r\n .then(handleResponse)\r\n .then(res => {\r\n let items = res.data;\r\n resolve(items);\r\n })\r\n .catch(res => {\r\n reject('Error');\r\n })\r\n }) \r\n }\r\n \r\n post(messageData) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n // check for update\r\n if(messageData.id > 0) {\r\n return new Promise((resolve, reject) => {\r\n axios.put(this.urlPost + \"/\" + messageData.id, messageData, requestOptions)\r\n .then(handleResponse)\r\n .then(res => {\r\n let data = res.data;\r\n resolve(data);\r\n })\r\n .catch(res => {\r\n reject('Error');\r\n })\r\n }); \r\n }\r\n\r\n // new item\r\n return new Promise((resolve, reject) => {\r\n \r\n axios.post(this.urlPost, messageData, requestOptions)\r\n .then(handleResponse)\r\n .then(res => {\r\n let data = res.data;\r\n resolve(data);\r\n })\r\n .catch(res => {\r\n reject('Error');\r\n })\r\n }); \r\n }\r\n\r\n postReply(messageData) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n // new item\r\n return new Promise((resolve, reject) => {\r\n \r\n axios.post(this.urlPost + \"/message\", messageData, requestOptions)\r\n .then(handleResponse)\r\n .then(res => {\r\n let data = res.data;\r\n resolve(data);\r\n })\r\n .catch(res => {\r\n reject('Error');\r\n })\r\n }); \r\n }\r\n\r\n delete(data) {\r\n\r\n // get ids in json\r\n let ids = JSON.stringify(data.map(o => o.id));\r\n \r\n return new Promise((resolve, reject) => {\r\n axios({\r\n method: 'delete',\r\n url: this.urlPost, \r\n data: ids, \r\n headers: authHeader() \r\n })\r\n .then(handleResponse)\r\n .then(res => { \r\n resolve(data);\r\n })\r\n .catch(res => {\r\n reject('Error');\r\n });\r\n });\r\n }\r\n}","import axios from './AxiosHelper';\r\n\r\n// define public methods\r\nexport const announcementService = { \r\n getActive,\r\n search,\r\n getById,\r\n post,\r\n deleteItem,\r\n deleteMany\r\n};\r\n\r\nfunction getActive(data) {\r\n // data: { portalId: 1, ids: [1,2,3] }\r\n return axios.postData(`/api/announcement/active`, data);\r\n}\r\n\r\nfunction search(data) { \r\n return axios.postData(`/api/announcement/search`, data, true);\r\n}\r\n\r\nfunction getById(portalId, id) {\r\n return axios.getData(`/api/announcement/${portalId}/${id}`, true);\r\n}\r\n\r\nfunction post(data) {\r\n return axios.upsertData(data.id, `/api/announcement`, data, true);\r\n}\r\n\r\nfunction deleteItem(id) {\r\n return axios.deleteData(`/api/announcement/${id}`);\r\n}\r\n\r\nfunction deleteMany(ids) {\r\n return axios.deleteMultipleData(`/api/announcement`, ids);\r\n}\r\n","export function authHeader() {\r\n // return authorization header with jwt token\r\n let user = JSON.parse(decodeURIComponent(window.atob(localStorage.getItem(\"user_info\"))));\r\n\r\n if (user && user.token) {\r\n return {\r\n Authorization: \"Bearer \" + user.token,\r\n \"Content-Type\": \"application/json\",\r\n };\r\n } else {\r\n return { \"Content-Type\": \"application/json\" };\r\n }\r\n}\r\n","import axios from \"./AxiosHelper\";\r\n\r\n// define public methods\r\nexport const twitterService = {\r\n getAuthorizationUrl,\r\n authenticate,\r\n};\r\n\r\nfunction getAuthorizationUrl() {\r\n return axios.getData(`/api/social/twitter/authorizeurl`, true);\r\n}\r\n\r\nfunction authenticate(oauth_token, oauth_verifier) {\r\n const args = {\r\n oauth_token,\r\n oauth_verifier,\r\n };\r\n return axios.postData(`/api/social/twitter/authenticate`, args, true);\r\n}\r\n","import axios from \"axios\";\r\nimport { authHeader } from \"helpers/AuthHeader\";\r\nimport { handleResponse } from \"helpers/HandleResponse\";\r\n\r\n// define public methods\r\nexport const userService = {\r\n getUserInfo,\r\n verify,\r\n get,\r\n getById,\r\n getUserProperties,\r\n updateSelf,\r\n post,\r\n put, // property update\r\n getUserRoles,\r\n addRoleToUser,\r\n deleteRoleFromUser,\r\n getAllRoles,\r\n};\r\n\r\naxios.interceptors.response.use(\r\n (response) => response,\r\n (error) => {\r\n const { status } = error.response;\r\n if (status === 401) {\r\n localStorage.removeItem(\"user_info\");\r\n window.location.reload(true);\r\n }\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\n// get the current user from local storage\r\nfunction getUserInfo() {\r\n try {\r\n const u = localStorage.getItem(\"user_info\") && JSON.parse(decodeURIComponent(window.atob(localStorage.getItem(\"user_info\"))));\r\n return u;\r\n } catch (err) {\r\n console.log(err);\r\n localStorage.removeItem(\"user_info\");\r\n return null;\r\n }\r\n}\r\n\r\nfunction verify(alias, idToken) {\r\n return new Promise((resolve, reject) => {\r\n let url = `${process.env.REACT_APP_WEBAPI_URL}/api/user/verify?alias=` + alias + \"&token=\" + idToken + \"&context=fitpost\";\r\n\r\n axios\r\n .get(url)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let items = res.data;\r\n resolve(items);\r\n })\r\n .catch((res) => {\r\n reject(res);\r\n });\r\n });\r\n}\r\n\r\nfunction get(portalid, keyword, page, pagesize, sorted, roleid) {\r\n const requestOptions = { headers: authHeader() };\r\n // console.log(arguments);\r\n return new Promise((resolve, reject) => {\r\n let url = `${process.env.REACT_APP_WEBAPI_URL}/api/user?portalid=${portalid}`;\r\n\r\n if (keyword.length > 0) {\r\n url += \"&keyword=\" + escape(keyword);\r\n }\r\n\r\n if (roleid > 0) url += \"&roleid=\" + roleid;\r\n\r\n if (page > 0 && pagesize > 0) url += \"&page=\" + page + \"&pagesize=\" + pagesize;\r\n\r\n if (sorted.length > 0) {\r\n url += \"&sort=\" + sorted + \"&desc=false\";\r\n }\r\n\r\n axios\r\n .get(url, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let item = res.data;\r\n resolve(item);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\nfunction getById(id) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n return new Promise((resolve, reject) => {\r\n let url = `${process.env.REACT_APP_WEBAPI_URL}/api/user/` + id;\r\n\r\n axios\r\n .get(url, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let item = res.data;\r\n resolve(item);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\nfunction getUserProperties(id) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n return new Promise((resolve, reject) => {\r\n let url = `${process.env.REACT_APP_WEBAPI_URL}/api/user/${id}/properties`;\r\n\r\n axios\r\n .get(url, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let item = res.data;\r\n resolve(item);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\nfunction updateSelf() {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n return new Promise((resolve, reject) => {\r\n let url = `${process.env.REACT_APP_WEBAPI_URL}/api/user/me`;\r\n\r\n axios\r\n .get(url, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n // get the token\r\n let oldUser = userService.getUserInfo();\r\n\r\n // copy over the token\r\n res.data.token = oldUser.token;\r\n\r\n // update the user in local storage with the new data\r\n localStorage.setItem(\"user_info\", window.btoa(encodeURIComponent(JSON.stringify(res.data))));\r\n\r\n resolve();\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\nfunction post(data) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n // add new\r\n if (data.id === 0) {\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`${process.env.REACT_APP_WEBAPI_URL}/api/user`, data, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let post = res.data;\r\n resolve(post);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n }\r\n\r\n // update\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .put(`${process.env.REACT_APP_WEBAPI_URL}/api/user/` + data.id, data, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n resolve(data);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\n/*\r\n // update one field in the user record\r\n Inputs:\r\n userid\r\n data: {\r\n name,\r\n systemName,\r\n value, \r\n fieldType\r\n }\r\n*/\r\nfunction put(userid, data) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n const d = {\r\n [data.systemName]: data.value,\r\n };\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`${process.env.REACT_APP_WEBAPI_URL}/api/user/${userid}/properties`, d, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n // console.log(\"res\", res);\r\n\r\n // get the stored user\r\n let oldUser = userService.getUserInfo();\r\n let idx = oldUser.properties.findIndex((o) => o.name === data.systemName);\r\n if (idx >= 0) oldUser.properties[idx].value = data.value;\r\n\r\n // update property\r\n // console.log(oldUser);\r\n\r\n // copy over the token\r\n //res.data.token = oldUser.token;\r\n\r\n // update the user in local storage with the new data\r\n localStorage.setItem(\"user_info\", window.btoa(encodeURIComponent(JSON.stringify(oldUser))));\r\n\r\n resolve(res);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\nfunction getUserRoles(id) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n return new Promise((resolve, reject) => {\r\n let url = `${process.env.REACT_APP_WEBAPI_URL}/api/user/` + id + `/roles`;\r\n\r\n axios\r\n .get(url, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let item = res.data;\r\n resolve(item);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\nfunction addRoleToUser(userId, roleId, startDate, expiryDate) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n let data = {\r\n userId,\r\n roleId,\r\n startDate,\r\n expiryDate,\r\n };\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(`${process.env.REACT_APP_WEBAPI_URL}/api/user/` + userId + `/role`, data, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n // get the token\r\n let oldUser = userService.getUserInfo();\r\n\r\n // if user is me, then update userinfo\r\n if (oldUser.id === userId) {\r\n // copy over the token\r\n res.data.token = oldUser.token;\r\n\r\n // update the user in local storage with the new data\r\n localStorage.setItem(\"user_info\", window.btoa(encodeURIComponent(JSON.stringify(res.data))));\r\n }\r\n\r\n resolve(res);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\nfunction deleteRoleFromUser(userId, roleId) {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .delete(`${process.env.REACT_APP_WEBAPI_URL}/api/user/` + userId + `/role/${roleId}`, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n // get the token\r\n let oldUser = userService.getUserInfo();\r\n\r\n // if user is me, then update userinfo\r\n if (oldUser.id === userId) {\r\n // copy over the token\r\n res.data.token = oldUser.token;\r\n\r\n // update the user in local storage with the new data\r\n localStorage.setItem(\"user_info\", window.btoa(encodeURIComponent(JSON.stringify(res.data))));\r\n }\r\n\r\n resolve(res);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n\r\nfunction getAllRoles() {\r\n const requestOptions = { headers: authHeader() };\r\n\r\n return new Promise((resolve, reject) => {\r\n let url = `${process.env.REACT_APP_WEBAPI_URL}/api/role`;\r\n\r\n axios\r\n .get(url, requestOptions)\r\n .then(handleResponse)\r\n .then((res) => {\r\n let item = res.data;\r\n resolve(item);\r\n })\r\n .catch((res) => {\r\n reject(\"Error\");\r\n });\r\n });\r\n}\r\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYoAAABuCAYAAAA53FQwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzZDQkMyNTgyODFDMTFFNUEzRDNGNkEwRDE3NEE5QkQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzZDQkMyNTkyODFDMTFFNUEzRDNGNkEwRDE3NEE5QkQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3R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kxqmvPl0Z0ie1IfaH3mTcWBi8Gjjnj9fg9XHt+myMAnraVxxe3tfJKWfqPKZQKBQVuELLwijAzbtE/H8sJQmFQqFQVCiaZjh+bgSTAHeBj+847UKFQqFofBIFdJILs/wHkgbyor+j3adQKBSVjzCvp2uylIdBZltlEgqFQtF4JYruJrNRGhGTJ2uXKRQKReOWKK7OUO40ZRIKhUKhEgWCV6aHlEHY9z+0qxQKhaJxQno9nRQ4h+hAbC70hnaTQqFQqEQBFRSSZPnRlcgBjzD2WdpFCoVCoRIFMEowibeMF5W9XLtHoVAoFL4x2096hSRdfZVJKBQKhcIHVE/Y/u89420aMkS7RKFQKBRBRoGUuMhw2EO7Q6FQKBRBQPUEdVNv7QqFQqFQhOH/BBgA1MyTwAkhzKYAAAAASUVORK5CYII=\"","import React from 'react';\r\nimport { FormattedMessage, injectIntl } from 'react-intl';\r\n\r\nconst InjectMassage = props => ;\r\nexport default injectIntl (InjectMassage, {\r\n withRef: false\r\n});\r\n","import axios from \"axios\";\r\n\r\n// set default baseURL\r\naxios.defaults.baseURL = process.env.REACT_APP_WEBAPI_URL;\r\n\r\n// create a response interceptor to check for 401s\r\naxios.interceptors.response.use(\r\n (response) => response,\r\n (error) => {\r\n if (error.response) {\r\n const { status } = error.response;\r\n if (status === 401) {\r\n localStorage.removeItem(\"user_info\");\r\n window.location.reload(true);\r\n }\r\n }\r\n\r\n return Promise.reject(error);\r\n }\r\n);\r\n\r\n// create a default instance of axios\r\nconst instance = axios.create({\r\n responseType: \"json\",\r\n});\r\n\r\n//#region generic crud methods\r\ninstance.getData = (url, needsAuth) => {\r\n const requestOptions = needsAuth === true || needsAuth === undefined ? { headers: authHeader() } : {};\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .get(url, requestOptions)\r\n .then((res) => {\r\n resolve(res.data);\r\n })\r\n .catch((res) => {\r\n reject(formatReject(res));\r\n });\r\n });\r\n};\r\n\r\ninstance.upsertData = (id, url, data, needsAuth) => {\r\n if (id === undefined || id === null || id === 0 || id === \"\") return instance.postData(url, data, needsAuth);\r\n else return instance.putData(`${url}/${id}`, data, needsAuth);\r\n};\r\n\r\ninstance.postData = (url, data, needsAuth) => {\r\n const requestOptions = needsAuth === true || needsAuth === undefined ? { headers: authHeader() } : {};\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .post(url, data, requestOptions)\r\n .then((res) => {\r\n resolve(res.data);\r\n })\r\n .catch((res) => {\r\n reject(formatReject(res));\r\n });\r\n });\r\n};\r\n\r\ninstance.putData = (url, data, needsAuth) => {\r\n const requestOptions = needsAuth === true || needsAuth === undefined ? { headers: authHeader() } : {};\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .put(url, data, requestOptions)\r\n .then((res) => {\r\n resolve(res.data);\r\n })\r\n .catch((res) => {\r\n reject(formatReject(res));\r\n });\r\n });\r\n};\r\n\r\ninstance.deleteData = (url) => {\r\n const requestOptions = { headers: authHeader() }; // deletes always need security\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .delete(url, requestOptions)\r\n .then((res) => {\r\n resolve(res.data);\r\n })\r\n .catch((res) => {\r\n reject(formatReject(res));\r\n });\r\n });\r\n};\r\n\r\ninstance.deleteMultipleData = (url, ids) => {\r\n const requestOptions = {\r\n headers: authHeader(), // deletes always need security\r\n data: { ids },\r\n };\r\n\r\n return new Promise((resolve, reject) => {\r\n axios\r\n .delete(url, requestOptions)\r\n .then((res) => {\r\n resolve(res.data);\r\n })\r\n .catch((res) => {\r\n reject(formatReject(res));\r\n });\r\n });\r\n};\r\n\r\nfunction formatReject(res) {\r\n if (res === null) return \"error\";\r\n\r\n // normal operation\r\n if (res.response) {\r\n if (Array.isArray(res.response.data)) {\r\n let m = res.response.data.map((o, idx) => {\r\n return o.description;\r\n });\r\n return m.join(\"\\n\");\r\n }\r\n\r\n return res.response.data;\r\n } else if (res.request) {\r\n return \"network error\";\r\n } else return \"error\";\r\n}\r\n//#endregion\r\n\r\nexport default instance;\r\n\r\nexport function authHeader() {\r\n // return authorization header with jwt token\r\n let info = localStorage.getItem(\"user_info\");\r\n let user = info !== null ? JSON.parse(decodeURIComponent(window.atob(info))) : null;\r\n\r\n if (user && user.token) {\r\n return {\r\n Authorization: \"Bearer \" + user.token,\r\n \"Content-Type\": \"application/json\",\r\n };\r\n } else {\r\n return { \"Content-Type\": \"application/json\" };\r\n }\r\n}\r\n","import appLocaleData from 'react-intl/locale-data/en';\r\nimport enMessages from '../locales/en_US.json';\r\n\r\nconst EnLang = {\r\n messages: {\r\n ...enMessages\r\n },\r\n locale: 'en-US',\r\n data: appLocaleData\r\n};\r\nexport default EnLang;\r\n","import enLang from './entries/en-US';\r\nimport esLang from './entries/es_ES';\r\nimport {addLocaleData} from 'react-intl';\r\n\r\nconst AppLocale = {\r\n en: enLang,\r\n es: esLang\r\n};\r\naddLocaleData (AppLocale.en.data);\r\naddLocaleData (AppLocale.es.data);\r\n\r\nexport default AppLocale;\r\n","import appLocaleData from 'react-intl/locale-data/es';\r\nimport saMessages from '../locales/es_ES.json';\r\n\r\nconst saLang = {\r\n messages: {\r\n ...saMessages\r\n },\r\n locale: 'es',\r\n data: appLocaleData\r\n};\r\nexport default saLang;\r\n","import React, {Component} from 'react';\r\nimport {NavLink, withRouter} from 'react-router-dom';\r\nimport { userService } from 'services/UserService.js';\r\nimport IntlMessages from 'util/IntlMessages';\r\nimport CustomScrollbars from \"util/CustomScrollbars\";\r\n\r\n\r\nclass Navigation extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.authUser = userService.getUserInfo();\r\n }\r\n \r\n componentDidMount() {\r\n this.updateSelected();\r\n\r\n // listen to nav updates\r\n this.unlisten = this.props.history.listen((location, action) => {\r\n \r\n // unselect anything\r\n const opens = document.querySelectorAll('.nav-menu .open'); \r\n for (let i = 0; i < opens.length; i++) {\r\n opens[i].classList.remove('open');\r\n }\r\n\r\n // select the new one\r\n this.updateSelected();\r\n });\r\n }\r\n \r\n componentWillUnmount() {\r\n this.unlisten();\r\n }\r\n\r\n updateSelected() {\r\n const {history} = this.props;\r\n const that = this;\r\n const pathname = `#${history.location.pathname}`;// get current path\r\n\r\n // catch submenu clicks\r\n const subMenuLi = document.querySelectorAll('.sub-menu > li');\r\n for (let i = 0; i < subMenuLi.length; i++) {\r\n subMenuLi[i].onclick = function (event) {\r\n event.stopPropagation();\r\n }\r\n }\r\n\r\n // toggle main nav items in case they have a sub-menu\r\n const menuLi = document.getElementsByClassName('menu');\r\n for (let i = 0; i < menuLi.length; i++) {\r\n menuLi[i].onclick = function (event) {\r\n for (let j = 0; j < menuLi.length; j++) {\r\n const parentLi = that.closest(this, 'li');\r\n if (menuLi[j] !== this && (parentLi === null || !parentLi.classList.contains('open'))) {\r\n menuLi[j].classList.remove('open')\r\n }\r\n }\r\n this.classList.toggle('open');\r\n event.stopPropagation();\r\n }\r\n }\r\n\r\n\r\n const activeLink = document.querySelector('.menu > a[href=\"' + pathname + '\"]');// select current a element \r\n try {\r\n const activeNav = this.closest(activeLink, 'ul'); // select closest ul\r\n if (activeNav.classList.contains('sub-menu')) { // for subnav\r\n this.closest(activeNav, 'li').classList.add('open');\r\n } else { // for primary nav\r\n this.closest(activeLink, 'li').classList.add('open');\r\n }\r\n } catch (error) {\r\n\r\n }\r\n }\r\n\r\n closest(el, selector) {\r\n try {\r\n let matchesFn;\r\n // find vendor prefix\r\n ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'].some(function (fn) {\r\n if (typeof document.body[fn] === 'function') {\r\n matchesFn = fn;\r\n return true;\r\n }\r\n return false;\r\n });\r\n\r\n let parent;\r\n\r\n // traverse parents\r\n while (el) {\r\n parent = el.parentElement; \r\n if (parent && parent[matchesFn](selector)) {\r\n return parent;\r\n }\r\n el = parent;\r\n }\r\n } catch (e) {\r\n\r\n }\r\n\r\n return null;\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n \r\n\r\n {\r\n this.authUser.fitPostAdminAccess && \r\n
    \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n { /* \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n */}\r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n\r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n \r\n
  • \r\n\r\n
  • \r\n  \r\n
  • \r\n
\r\n } \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default withRouter(Navigation);\r\n","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport { NavLink } from \"react-router-dom\";\r\nimport { userService } from \"services/UserService.js\";\r\n\r\nclass UserInfo extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.authUser = userService.getUserInfo();\r\n }\r\n\r\n userSignOut(e) {\r\n localStorage.removeItem(\"user_info\");\r\n window.location.href = \"//www.ideafit.com/wp-login.php?action=logout\";\r\n e.preventDefault();\r\n return false;\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n
\r\n \"User\"\r\n
\r\n

{this.authUser.fullName}

\r\n {this.authUser.accountType}\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default UserInfo;\r\n","import React from 'react';\r\nimport {NavLink} from 'react-router-dom';\r\nimport moment from 'moment';\r\n\r\n\r\nconst NotificationItem = ({notification}) => {\r\n const {user, badge, userFullName, createdOn, subject} = notification;\r\n return (\r\n
  • \r\n
    \r\n {userFullName}\r\n\r\n {badge}\r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n {userFullName}\r\n \r\n
    \r\n {moment(createdOn).format('LL')}\r\n
    \r\n

    {subject}

    \r\n
    \r\n
  • \r\n );\r\n};\r\n\r\nexport default NotificationItem;\r\n","import React from 'react';\r\nimport NotificationItem from \"./NotificationItem\";\r\nimport CustomScrollbars from '../../util/CustomScrollbars';\r\nimport MessageService from '../../services/MessageService';\r\n\r\nconst messageService = new MessageService();\r\n\r\n/*\r\nconst MailNotification = () => {\r\n return (\r\n \r\n
      \r\n {notifications.map((notification, index) => )}\r\n
    \r\n
    \r\n )\r\n};\r\n\r\nexport default MailNotification;\r\n*/\r\n\r\nexport default class MailNotification extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n isloading: false,\r\n notifications: []\r\n };\r\n\r\n this.loadData = this.loadData.bind(this);\r\n }\r\n\r\n componentDidMount() {\r\n this.loadData();\r\n }\r\n\r\n loadData() {\r\n this.setState ({\r\n isloading: true\r\n });\r\n\r\n // figure out if we need to show specific user's msgs or admin level\r\n messageService.get(this.props.user.portalId, this.props.user.id, this.props.isAdmin)\r\n .then(data => {\r\n this.setState ({\r\n isloading: false,\r\n notifications: data\r\n });\r\n })\r\n .catch(err => console.log(err));\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n
      \r\n {this.state.notifications.map((notification, index) => )}\r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n","import React from \"react\";\r\nimport { UserOutlined, MenuFoldOutlined, MenuUnfoldOutlined } from \"@ant-design/icons\";\r\nimport { Layout, Dropdown, Avatar, Drawer, Modal } from \"antd\";\r\nimport { withRouter, NavLink } from \"react-router-dom\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport Navigation from \"./Navigation.js\";\r\nimport { userService } from \"services/UserService.js\";\r\nimport UserInfo from \"../UserInfo\";\r\nimport MailNotification from \"../MailNotification/index\";\r\nimport { announcementService } from \"services/AnnouncementService.js\";\r\nimport Cookies from \"universal-cookie\";\r\n\r\nconst { Content, Header, Sider } = Layout;\r\nconst cookies = new Cookies();\r\n\r\nclass MasterLayout extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.authUser = userService.getUserInfo();\r\n\r\n this.state = {\r\n collapsed: false,\r\n drawerVisible: false,\r\n announcement: {},\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n // check for announcements\r\n let showAnnouncements = cookies.get(\"announcements\") === undefined;\r\n\r\n // don't show if already seen today\r\n if (!showAnnouncements) return;\r\n\r\n let d = new Date();\r\n d.setTime(d.getTime() + 1440 * 30 * 1000); // 1/2 day\r\n cookies.set(\"announcements\", \"1\", { path: \"/\", expires: d });\r\n\r\n // already seen these\r\n let r = localStorage.getItem(\"announcements\")?.split(\",\") || [];\r\n\r\n announcementService\r\n .getActive({ portalId: this.authUser.portalId, ids: r })\r\n .then((data) => {\r\n if (data.id !== undefined) {\r\n this.setState({\r\n announcement: data,\r\n });\r\n\r\n // if it's not recurring, save it to localstorage\r\n if (!data.isRecurring) {\r\n r.push(data.id);\r\n localStorage.setItem(\"announcements\", r);\r\n }\r\n\r\n // show the modal\r\n Modal.info({\r\n okText: \"close\",\r\n maskClosable: true,\r\n content: (\r\n \r\n
    \r\n {data.url && (\r\n \r\n )}\r\n
    \r\n ),\r\n });\r\n }\r\n })\r\n .catch((err) => {\r\n localStorage.removeItem(\"announcements\");\r\n });\r\n }\r\n\r\n toggle = () => {\r\n if (window.innerWidth >= 992)\r\n this.setState({\r\n collapsed: !this.state.collapsed,\r\n });\r\n else\r\n this.setState({\r\n drawerVisible: !this.state.drawerVisible,\r\n });\r\n };\r\n\r\n resetJoyride = () => {\r\n localStorage.removeItem(\"tutorial\");\r\n this.props.history.push(\"/app/dashboard/default\");\r\n };\r\n\r\n render() {\r\n let msgMenu = (\r\n
    \r\n \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n );\r\n\r\n let thumbnail = this.authUser.thumbnailUrl !== \"\" ? : } class=\"light\" />;\r\n\r\n let alertMessage = \"\";\r\n\r\n return (\r\n \r\n \r\n \"FitPost\"\r\n \r\n }\r\n placement=\"left\"\r\n closable={false}\r\n onClose={this.toggle}\r\n width={300}\r\n visible={this.state.drawerVisible}\r\n >\r\n \r\n \r\n\r\n {\r\n this.setState({ collapsed: broken });\r\n }}\r\n >\r\n \r\n \r\n \r\n
    \r\n \r\n \"FitPost\"\r\n \r\n\r\n \r\n {this.state.collapsed && }\r\n {!this.state.collapsed && }\r\n \r\n\r\n
    \r\n Take a Tour\r\n
    \r\n
    \r\n }>\r\n {thumbnail}\r\n \r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {this.props.children}\r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default withRouter(MasterLayout);\r\n","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from '../../../util/asyncComponent';\r\n\r\nconst Dashboard = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('../../../app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Dashboard;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from '../../../util/asyncComponent';\r\n\r\nconst Brands = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('../../../app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Brands;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from '../../../util/asyncComponent';\r\n\r\nconst Calendar = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('../../../app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Calendar;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from '../../../util/asyncComponent';\r\n\r\nconst Dashboard = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('../../../app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Dashboard;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from 'util/asyncComponent';\r\n\r\nconst Posts = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('./routes/Post'))}/>\r\n import('app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Posts;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from '../../../util/asyncComponent';\r\n\r\nconst Dashboard = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('../../../app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Dashboard;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from 'util/asyncComponent';\r\n\r\nconst Dashboard = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('./routes/Messages'))}/>\r\n import('./routes/Welcome'))}/>\r\n import('../../../app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Dashboard;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from 'util/asyncComponent';\r\n\r\nconst Dashboard = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('../../../app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Dashboard;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from 'util/asyncComponent';\r\n\r\nconst Posts = ({match}) => (\r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Posts;","import React from 'react';\r\nimport {Redirect, Route, Switch} from 'react-router-dom';\r\nimport asyncComponent from 'util/asyncComponent';\r\n\r\nconst Manage = ({match}) => ( \r\n
    \r\n \r\n \r\n import('./routes/Default'))}/>\r\n import('./routes/Content/create'))}/>\r\n import('./routes/Content'))}/>\r\n import('./routes/SavedContent'))}/>\r\n import('./routes/Feeds'))}/>\r\n import('./routes/Tags'))}/>\r\n import('./routes/Settings'))}/>\r\n import('./routes/Messages'))}/>\r\n import('./routes/Announcements/announcement'))}/>\r\n import('./routes/Announcements'))}/>\r\n import('./routes/Users'))}/>\r\n import('./routes/Reports'))}/>\r\n import('app/routes/extraPages/routes/404'))}/>\r\n \r\n
    \r\n);\r\n\r\nexport default Manage;","import React from 'react';\r\nimport {Route, Switch} from 'react-router-dom';\r\n//import Header from '../components/Header/index';\r\n//import Sidebar from 'containers/SideNav/index';\r\nimport Layout from 'components/Layouts/MasterLayout';\r\n\r\nimport Dashboard from './routes/dashboard';\r\nimport Brands from './routes/brands';\r\nimport Calendar from './routes/calendar';\r\nimport Content from './routes/content';\r\nimport Posts from './routes/posts';\r\nimport SavedContent from './routes/savedcontent';\r\nimport Settings from './routes/settings';\r\nimport Stats from './routes/stats';\r\nimport Preview from './routes/preview';\r\nimport Manage from './routes/manage';\r\n\r\nimport {NotificationContainer} from 'react-notifications';\r\nimport 'react-notifications/lib/notifications.css';\r\nimport {isIOS, isMobile} from 'react-device-detect';\r\nimport asyncComponent from 'util/asyncComponent';\r\n\r\nclass App extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n navOpen: true\r\n }\r\n }\r\n\r\n // handle sidenav hide/show toggle\r\n onToggleSideNav = (boo) => {\r\n let o = (boo !== undefined) ? boo : !this.state.navOpen;\r\n this.setState({\r\n navOpen: o\r\n })\r\n };\r\n\r\n render() {\r\n const {match} = this.props;\r\n\r\n // HACKY -> if not /app/content/default or /app/posts/post, dump the filter (would like to remove this)\r\n if(this.props.location.pathname !== \"/app/content/default\" && this.props.location.pathname !== \"/app/posts/post\")\r\n localStorage.removeItem(\"filter\");\r\n\r\n //set default height and overflow for iOS mobile Safari 10+ support.\r\n if (isIOS && isMobile) {\r\n document.body.classList.add('ios-mobile-view-height')\r\n }\r\n else if (document.body.classList.contains('ios-mobile-view-height')) {\r\n document.body.classList.remove('ios-mobile-view-height')\r\n }\r\n return (\r\n \r\n\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n import('app/routes/extraPages/routes/404'))}/>\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default App;","import React from 'react';\r\n\r\nconst CircularProgress = () =>
    \r\n \r\n \r\n \r\n
    ;\r\nexport default CircularProgress;","// let backendHost = 'https://pro.ideafit.com/authorize?response_type=code id_token&scope=openid+email+profile&state=mystate&client_id=aimdev&redirect_uri=' + process.env.REACT_APP_WEBHOST;\r\nlet backendHost = \"https://www.ideafit.com/oauth/authorize?response_type=code&client_id=mwDsTSyZnMIevZp14nLsc0DBl6KZdBfdtRJUz0iB&redirect_uri=\" + process.env.REACT_APP_WEBHOST;\r\nexport const LOGIN_URL = backendHost;\r\n","import React from \"react\";\r\nimport IntlMessages from \"util/IntlMessages\";\r\nimport CircularProgress from \"components/CircularProgress\";\r\nimport { userService } from \"services/UserService\";\r\nimport FeedService from \"services/FeedService\";\r\nimport qs from \"qs\";\r\nimport { LOGIN_URL } from \"./LoginConfig\";\r\nimport { setUser } from \"util/UserUtils\";\r\n\r\nconst feedService = new FeedService();\r\n\r\nclass Oauth extends React.Component {\r\n constructor() {\r\n super();\r\n this.state = {\r\n loading: true,\r\n errReason: \"\",\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n // make sure we have the id_token\r\n let q = qs.parse(window.location.search.replace(\"?\", \"\"));\r\n\r\n // if no value, then go home\r\n if (q.code === \"\") this.props.history.push(\"/\");\r\n\r\n const alias = window.location.port ? window.location.hostname + \":\" + window.location.port : window.location.hostname;\r\n\r\n // get the user's info\r\n userService\r\n .verify(alias, q.code)\r\n .then((data) => {\r\n this.handleLogin(data);\r\n })\r\n .catch((err) => {\r\n this.setState({\r\n loading: false,\r\n errReason: err.response,\r\n });\r\n });\r\n }\r\n\r\n handleLogin(data) {\r\n this.setState({\r\n isloading: true,\r\n });\r\n\r\n setUser(data);\r\n\r\n // update feeds\r\n feedService\r\n .consume(data.id)\r\n .then((res) => {\r\n this.setState({\r\n isloading: false,\r\n });\r\n\r\n // if new user, then go to welcome page\r\n\r\n if (data.isNewUser) window.location.hash = \"/app/settings/welcome\";\r\n else window.location.href = \"/\"; // go home\r\n })\r\n .catch((err) => console.log(err));\r\n }\r\n\r\n render() {\r\n return (\r\n
    \r\n
    \r\n {this.state.loading ? (\r\n
    \r\n
    \r\n

    \r\n Logging you in...\r\n

    \r\n\r\n \r\n
    \r\n
    \r\n ) : (\r\n
    \r\n
    \r\n

    \r\n \r\n

    \r\n
    \r\n\r\n
    \r\n
    \r\n  \r\n \r\n \r\n \r\n
    \r\n Reason: {this.state.errReason}\r\n
    \r\n\r\n
    \r\n
    \r\n

    \r\n \r\n \r\n \r\n

    \r\n
    \r\n
    \r\n

    \r\n \r\n \r\n \r\n

    \r\n
    \r\n
    \r\n
    \r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default Oauth;\r\n","import React from 'react';\r\nimport { Button } from 'reactstrap';\r\nimport { Link } from 'react-router-dom'\r\nimport { NotificationContainer, NotificationManager } from 'react-notifications';\r\nimport IntlMessages from '../util/IntlMessages';\r\nimport CircularProgress from '../components/CircularProgress'\r\nimport img from '../assets/images/logo.png';\r\n\r\nclass SignIn extends React.Component {\r\n constructor () {\r\n super ();\r\n this.state = {\r\n email: '',\r\n password: ''\r\n }\r\n\r\n this.handleLogin = this.handleLogin.bind(this);\r\n }\r\n\r\n componentDidMount () {\r\n // leave if already signed in\r\n if (localStorage.getItem('user_info') !== null) {\r\n this.props.history.push ('/');\r\n }\r\n }\r\n\r\n handleLogin() {\r\n\r\n // validate user here\r\n\r\n\r\n // fake it for now\r\n /*\r\n let userInfo = {\r\n id: 1,\r\n email: this.state.email,\r\n fullName: \"Fake User\",\r\n portalId: 1,\r\n roles: {\r\n administrator: true\r\n },\r\n settings: {\r\n useSystemPosts: true,\r\n defaultDeliveryTime: 8\r\n }\r\n }*/\r\n\r\n //localStorage.setItem('user_info', JSON.stringify(userInfo));\r\n this.props.history.push ('/');\r\n }\r\n\r\n render () {\r\n const {\r\n email,\r\n password\r\n } = this.state;\r\n const { showMessage, loader, alertMessage } = this.props;\r\n return (\r\n
    \r\n
    \r\n\r\n
    \r\n \r\n \"Login\"\r\n \r\n
    \r\n\r\n
    \r\n
    \r\n

    \r\n
    \r\n\r\n
    \r\n
    \r\n
    \r\n this.setState ({ email: event.target.value })}\r\n defaultValue={email}\r\n className=\"form-control form-control-lg\"\r\n />\r\n
    \r\n\r\n
    \r\n this.setState ({ password: event.target.value })}\r\n defaultValue={password}\r\n className=\"form-control form-control-lg\"\r\n />\r\n
    \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n {\r\n loader &&\r\n
    \r\n \r\n
    \r\n }\r\n {showMessage && NotificationManager.error (alertMessage)}\r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default SignIn;","import React from 'react';\r\nimport { Button } from 'reactstrap';\r\nimport { NotificationContainer, NotificationManager } from 'react-notifications';\r\nimport { Link } from 'react-router-dom';\r\nimport IntlMessages from '../util/IntlMessages';\r\n\r\nimport CircularProgress from '../components/CircularProgress'\r\n\r\nclass SignUp extends React.Component {\r\n constructor () {\r\n super ();\r\n this.state = {\r\n name: '',\r\n email: '',\r\n password: ''\r\n }\r\n }\r\n\r\n componentDidUpdate () {\r\n if (this.props.showMessage) {\r\n setTimeout (() => {\r\n this.props.hideMessage ();\r\n }, 3000);\r\n }\r\n if (this.props.authUser !== null) {\r\n this.props.history.push ('/');\r\n }\r\n }\r\n\r\n render () {\r\n const {\r\n name,\r\n email,\r\n password\r\n } = this.state;\r\n const { showMessage, loader, alertMessage } = this.props;\r\n return (\r\n \r\n
    \r\n
    \r\n \r\n \"jambo\"\r\n \r\n
    \r\n\r\n
    \r\n
    \r\n

    Sign Up

    \r\n
    \r\n\r\n
    \r\n

    \r\n
    \r\n\r\n
    \r\n
    \r\n\r\n
    \r\n this.setState ({ name: event.target.value })}\r\n defaultValue={name}\r\n className=\"form-control form-control-lg\"\r\n />\r\n
    \r\n\r\n\r\n
    \r\n this.setState ({ email: event.target.value })}\r\n placeholder=\"Email\"\r\n defaultValue={email}\r\n className=\"form-control form-control-lg\"\r\n />\r\n
    \r\n\r\n
    \r\n this.setState ({ password: event.target.value })}\r\n placeholder=\"Password\"\r\n defaultValue={password}\r\n className=\"form-control form-control-lg\"\r\n />\r\n
    \r\n\r\n
    \r\n \r\n \r\n \r\n \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n\r\n
    \r\n\r\n {\r\n loader &&\r\n
    \r\n \r\n
    \r\n }\r\n {showMessage && NotificationManager.error (alertMessage)}\r\n \r\n \r\n )\r\n }\r\n}\r\n\r\nexport default SignUp;\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom'\r\nimport { LOGIN_URL } from \"./LoginConfig\";\r\nimport { userService } from 'services/UserService.js';\r\nimport CircularProgress from 'components/CircularProgress'\r\n\r\n\r\nclass ThirdPartySignIn extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n\r\n // see if they have an account \r\n this.authUser = userService.getUserInfo();\r\n\r\n if (this.authUser === null) {\r\n window.location.href = LOGIN_URL;\r\n }\r\n }\r\n\r\n\r\n render () {\r\n if(this.authUser === null) {\r\n return (\r\n
    \r\n
    \r\n

    \r\n Forwarding to the sign in screen...\r\n

    \r\n \r\n \r\n
    \r\n
    \r\n );\r\n }\r\n else {\r\n return (\r\n
    \r\n
    \r\n

    \r\n You're already signed in.\r\n

    \r\n \r\n

    \r\n Go Home\r\n

    \r\n
    \r\n
    \r\n );\r\n }\r\n }\r\n}\r\n\r\nexport default ThirdPartySignIn;","import React, { useEffect, useState } from \"react\";\r\nimport { twitterService } from \"services/TwitterService\";\r\nimport qs from \"qs\";\r\n\r\nexport default function TwitterAuth() {\r\n const [errorMessage, setErrorMessage] = useState(\"\");\r\n const values = qs.parse(window.location.search.replace(\"?\", \"\"));\r\n console.log(values);\r\n /*const code = values.code;\r\n const state = values.state;*/\r\n const { oauth_token, oauth_verifier } = values;\r\n\r\n useEffect(() => {\r\n if (oauth_token && oauth_verifier) {\r\n twitterService\r\n .authenticate(oauth_token, oauth_verifier)\r\n .then((response) => {\r\n // redirect to the settings page\r\n window.location.href = \"/app/settings/default\";\r\n })\r\n .catch((error) => {\r\n setErrorMessage(\"An error occurred\");\r\n });\r\n } else {\r\n setErrorMessage(\"Invalid request\");\r\n }\r\n }, []);\r\n\r\n return (\r\n
    \r\n
    \r\n

    Connecting to Twitter...

    \r\n\r\n {errorMessage &&
    {errorMessage}
    }\r\n
    \r\n
    \r\n );\r\n}\r\n","import React, { Component } from \"react\";\r\nimport { Redirect, Route, Switch } from \"react-router-dom\";\r\nimport { IntlProvider } from \"react-intl\";\r\nimport \"react-toggle-switch/dist/css/switch.min.css\";\r\nimport AppLocale from \"../lngProvider\";\r\n\r\nimport MainApp from \"app/index\";\r\nimport Oauth from \"./Oauth\";\r\nimport SignIn from \"./SignIn\";\r\nimport SignUp from \"./SignUp\";\r\nimport ThirdPartySignin from \"./ThirdPartySignin\";\r\nimport TwitterAuth from \"./TwitterAuth\";\r\nimport asyncComponent from \"util/asyncComponent\";\r\nimport { userService } from \"services/UserService.js\";\r\nimport { LinkedInPopUp } from \"react-linkedin-login-oauth2\";\r\n\r\nconst RestrictedRoute = ({ component: Component, authUser, ...rest }) => (\r\n \r\n authUser ? (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n />\r\n);\r\n\r\nclass App extends Component {\r\n componentDidMount() {\r\n // if dev, then add class to change the bg color\r\n if (window.location.href.indexOf(\"localhost\") > -1) document.getElementById(\"body\").className += \" body-dev\";\r\n }\r\n\r\n render() {\r\n // get authUser from localStorage\r\n let authUser = userService.getUserInfo();\r\n // console.log(\"user\", authUser);\r\n\r\n const { match, location } = this.props;\r\n if (location.pathname === \"/\") {\r\n if (authUser === null) {\r\n // if we have an id_token, then they are trying to login\r\n if (window.location.search.indexOf(\"code\") > -1) {\r\n return ;\r\n } else {\r\n return ;\r\n }\r\n //} else if(window.location.pathname === \"/linkedin\") {\r\n // return ( );\r\n //this.props.location.pathname = \"/linkedin\"; // no idea why this doesn't match, but it doesn't\r\n } else {\r\n return ;\r\n }\r\n } else if (location.pathname.indexOf(\"app/manage\") > -1 && !authUser.fitPostAdminAccess) {\r\n // permissions check\r\n return ;\r\n }\r\n\r\n const currentAppLocale = AppLocale[\"en\"];\r\n\r\n return (\r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n import(\"../app/routes/extraPages/routes/404\"))} />\r\n \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default App;\r\n","// In production, we register a service worker to serve assets from local cache.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport default function register() {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Lets check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://goo.gl/SC7cgQ'\r\n );\r\n });\r\n } else {\r\n // Is not local host. Just register service worker\r\n registerValidSW(swUrl);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the old content will have been purged and\r\n // the fresh content will have been added to the cache.\r\n // It's the perfect time to display a \"New content is\r\n // available; please refresh.\" message in your web app.\r\n console.log('New content is available; please refresh.');\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').indexOf('javascript') === -1\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { BrowserRouter, Route } from 'react-router-dom';\r\nimport App from './containers/App';\r\n// import registerServiceWorker from './registerServiceWorker';\r\nimport * as serviceWorker from './registerServiceWorker';\r\nimport 'antd/dist/antd.css';\r\nimport \"./sass/index.scss\";\r\nimport \"./styles/app.scss\";\r\n// import './index.css';\r\n\r\nReactDOM.render(\r\n \r\n \r\n , document.getElementById('root'));\r\n\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n","import React, { Component } from 'react';\r\nimport Nprogress from 'nprogress';\r\nimport ReactPlaceholder from 'react-placeholder';\r\nimport 'nprogress/nprogress.css';\r\nimport 'react-placeholder/lib/reactPlaceholder.css';\r\n\r\nexport default function asyncComponent (importComponent) {\r\n class AsyncFunc extends Component {\r\n constructor (props) {\r\n super (props);\r\n this.state = {\r\n component: null\r\n };\r\n }\r\n\r\n componentWillMount () {\r\n Nprogress.start ();\r\n }\r\n\r\n componentWillUnmount () {\r\n this.mounted = false;\r\n }\r\n\r\n async componentDidMount () {\r\n this.mounted = true;\r\n const { default: Component } = await importComponent ();\r\n Nprogress.done ();\r\n if (this.mounted) {\r\n this.setState ({\r\n component: \r\n });\r\n }\r\n }\r\n\r\n render () {\r\n const Component = this.state.component ||
    ;\r\n return (\r\n \r\n {Component}\r\n \r\n );\r\n }\r\n }\r\n\r\n return AsyncFunc;\r\n}\r\n","import React from 'react'\r\nimport { Scrollbars } from 'react-custom-scrollbars';\r\n\r\nconst CustomScrollbars = (props) =>
    } />;\r\n\r\nexport default CustomScrollbars;","export function handleResponse(response) {\r\n \r\n if (response.status.toString().substring(0,1) !== \"2\") {\r\n if (response.status === 401) {\r\n // auto logout if 401 response returned from api\r\n localStorage.removeItem('user_info');\r\n window.location.reload(true);\r\n }\r\n \r\n const error = (response.data && response.message) || response.statusText;\r\n return Promise.reject(error);\r\n }\r\n\r\n return response; \r\n}"],"sourceRoot":""}