{"version":3,"sources":["views/containers/gridColumn.tsx","assets/logo.svg","utils/routes.tsx","views/containers/navbar.tsx","views/routes/index.tsx","index.tsx","utils/constants.tsx","utils/browserHistory.tsx"],"names":["GridColumn","props","_jsx","MaxWidthGrid","_objectSpread","mobile","tablet","computer","largeScreen","widescreen","children","styled","Grid","Column","_templateObject","_taggedTemplateLiteral","ROUTE_PREFIX","ROUTE_HOME","ROUTE_EXPRESSION","ROUTE_ABOUT","ROUTE_ERROR","ROUTES","Home","name","show","routes","push","replace","match","currentRoute","Expression","Object","keys","ligandFromRoute","receptorFromRoute","tumorTypeFromRoute","join","arguments","length","undefined","startsWith","About","Error","ROUTES_ARRAY","values","CommonMenu","_jsxs","_Fragment","Menu","Item","href","Image","size","src","URL_NAVBAR_LOGO","alt","Responsive","maxWidth","Header","as","APP_TITLE","minWidth","APP_DESCRIPTION","ComputerMenu","fluid","borderless","position","map","val","active","MobileMenu","Dropdown","icon","text","selected","onClick","browserHistory","Navbar","Row","centered","className","onlyMobile","LazyImportedHomePage","React","lazy","LazyImportedExpressionPage","LazyImportedErrorPage","LazyImportedAboutPage","AppRouter","_React$Component","_inherits","_super","_createSuper","_this","_classCallCheck","call","state","window","location","pathname","_createClass","key","value","_this2","this","unlisten","listen","setState","StrictMode","Suspense","fallback","Icon","loading","Router","history","Switch","Route","exact","path","component","render","Redirect","from","to","Component","ReactDOM","document","getElementById","require","ExampleQueryParams","Members","imageUrl","header","subHeader","jobDescription","email","createBrowserHistory"],"mappings":"2LAIaA,EAAuD,SAACC,GAAK,OACzEC,cAACC,EAAYC,wBAAA,CACZC,OAAQ,GACRC,OAAQ,GACRC,SAAU,GACVC,YAAa,GACbC,WAAY,IACRR,GAAK,IAAAS,SAERT,EAAMS,WACO,EAGVP,EAAeQ,YAAOC,IAAKC,OAAZF,CAAmBG,MAAAC,YAAA,+B,yDCjBxC,OAAe,cAA0B,gC,kCCAzC,wEAAMC,EAAe,MAEfC,EAAaD,EACbE,EAAmBF,EAAe,cAClC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eACRC,UAAW,iBACXC,eAAgB,WAChBC,MAAO,8BAER,CACCJ,SACC,+DACDC,OAAQ,mBACRC,UAAW,iBACXC,eAAgB,yBAChBC,MAAO,kC,kCCpCT,8CACa3D,EAAiB4D,a","file":"static/js/main.d45eda86.chunk.js","sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Grid, GridColumnProps } from \"semantic-ui-react\";\n\nexport const GridColumn: React.FunctionComponent = (props) => (\n\t\n\t\t{props.children}\n\t\n);\n\nconst MaxWidthGrid = styled(Grid.Column)`\n\tmax-width: 1500px;\n`;\n","export default __webpack_public_path__ + \"static/media/logo.9f88d0ea.svg\";","const ROUTE_PREFIX = \"/ui\";\n\nconst ROUTE_HOME = ROUTE_PREFIX;\nconst ROUTE_EXPRESSION = ROUTE_PREFIX + \"/expression\";\nconst ROUTE_ABOUT = ROUTE_PREFIX + \"/about\";\nconst ROUTE_ERROR = ROUTE_PREFIX + \"/error\";\n\nconst PARAMS_EXPRESSION = {\n\tligandFromRoute: \"\",\n\treceptorFromRoute: \"\",\n\ttumorTypeFromRoute: \"\",\n};\nexport type ROUTER_PARAMS_EXPRESSION = typeof PARAMS_EXPRESSION;\n\nexport const ROUTES = {\n\tHome: {\n\t\tname: \"Home\",\n\t\tshow: true,\n\t\troutes: [ROUTE_HOME],\n\t\tpush: () => ROUTE_HOME.replace(/\\/+$/, \"\"),\n\t\tmatch: (currentRoute: string) =>\n\t\t\tcurrentRoute.replace(/\\/+$/, \"\") === ROUTE_HOME ||\n\t\t\tcurrentRoute.replace(/\\/+$/, \"\") === \"\",\n\t},\n\tExpression: {\n\t\tname: \"Browse Purities\",\n\t\tshow: false,\n\t\troutes: [\n\t\t\tROUTE_EXPRESSION + \"/:\" + Object.keys(PARAMS_EXPRESSION).join(\"/:\"),\n\t\t],\n\t\tpush: (\n\t\t\tligandFromRoute: string = \"\",\n\t\t\treceptorFromRoute: string = \"\",\n\t\t\tinteractiontypeFromRoute: string = \"\",\n\t\t\ttumorTypeFromRoute: string = \"\"\n\t\t) =>\n\t\t\t[\n\t\t\t\tROUTE_EXPRESSION,\n\t\t\t\tligandFromRoute,\n\t\t\t\treceptorFromRoute,\n\t\t\t\tinteractiontypeFromRoute,\n\t\t\t\ttumorTypeFromRoute,\n\t\t\t]\n\t\t\t\t.join(\"/\")\n\t\t\t\t.replace(/\\/+$/, \"\"),\n\t\tmatch: (currentRoute: string) =>\n\t\t\tcurrentRoute.replace(/\\/+$/, \"\").startsWith(ROUTE_EXPRESSION),\n\t},\n\tAbout: {\n\t\tname: \"About\",\n\t\tshow: true,\n\t\troutes: [ROUTE_ABOUT],\n\t\tpush: () => ROUTE_ABOUT.replace(/\\/+$/, \"\"),\n\t\tmatch: (currentRoute: string) =>\n\t\t\tcurrentRoute.replace(/\\/+$/, \"\").startsWith(ROUTE_ABOUT),\n\t},\n\tError: {\n\t\tname: \"Error\",\n\t\tshow: false,\n\t\troutes: [ROUTE_ERROR],\n\t\tpush: () => ROUTE_ERROR.replace(/\\/+$/, \"\"),\n\t\tmatch: (currentRoute: string) =>\n\t\t\tcurrentRoute.replace(/\\/+$/, \"\").startsWith(ROUTE_ERROR),\n\t},\n};\n\nexport const ROUTES_ARRAY = Object.values(ROUTES);\n","import React from \"react\";\nimport {\n\tGrid,\n\tMenu,\n\tHeader,\n\tImage,\n\tResponsive,\n\tDropdown,\n} from \"semantic-ui-react\";\n\nimport {\n\tURL_NAVBAR_LOGO,\n\tAPP_TITLE,\n\tAPP_DESCRIPTION,\n} from \"../../utils/constants\";\nimport { GridColumn } from \"./gridColumn\";\nimport { browserHistory } from \"../../utils/browserHistory\";\nimport { ROUTES_ARRAY, ROUTES } from \"../../utils/routes\";\n\ninterface Props {\n\tcurrentRoute: string;\n}\n\nconst CommonMenu = () => (\n\t<>\n\t\t\n\t\t\t\n\t\t\t\t\"cite-logo\"\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{APP_TITLE}\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{APP_TITLE} - {APP_DESCRIPTION}\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{APP_TITLE} - {APP_DESCRIPTION}\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\n);\n\nconst ComputerMenu = (props: { currentRoute: string }) => (\n\t\n\t\t\n\t\t\n\t\t\t{ROUTES_ARRAY.map(\n\t\t\t\t(val) =>\n\t\t\t\t\tval.show && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{val.name}\n\t\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t)}\n\t\t\n\t\n);\n\nconst MobileMenu = (props: { currentRoute: string }) => (\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{ROUTES_ARRAY.map(\n\t\t\t\t\t\t\t(val) =>\n\t\t\t\t\t\t\t\tval.show && (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tbrowserHistory.push(val.push())\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n);\n\nexport const Navbar = (props: Props) => (\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n);\n","import React from \"react\";\nimport { Grid, Icon } from \"semantic-ui-react\";\nimport { Router, Switch, Route, Redirect } from \"react-router-dom\";\n\nimport { Navbar } from \"../containers/navbar\";\n\nimport { browserHistory } from \"../../utils/browserHistory\";\nimport { ROUTES } from \"../../utils/routes\";\n\ninterface State {\n\tcurrentRoute: string;\n}\n\nconst LazyImportedHomePage = React.lazy(() => import(\"./pageHome\"));\nconst LazyImportedExpressionPage = React.lazy(() => import(\"./pageExpression\"));\nconst LazyImportedErrorPage = React.lazy(() => import(\"./pageError\"));\nconst LazyImportedAboutPage = React.lazy(() => import(\"./pageAbout\"));\n\nexport class AppRouter extends React.Component<{}, State> {\n\tconstructor(props: {}) {\n\t\tsuper(props);\n\n\t\tthis.state = {\n\t\t\tcurrentRoute: window.location.pathname,\n\t\t};\n\t}\n\n\tcomponentDidMount() {\n\t\t//@ts-ignore\n\t\tthis.unlisten = browserHistory.listen((location) => {\n\t\t\tthis.setState({ currentRoute: location.pathname });\n\t\t});\n\t}\n\n\tcomponentWillUnmount() {\n\t\t//@ts-ignore\n\t\tthis.unlisten();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t}>\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t (\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n}\n","import React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport \"semantic-ui-less/semantic.less\";\nimport \"./index.css\";\nimport { AppRouter } from \"./views/routes\";\n\nReactDOM.render(, document.getElementById(\"root\"));\n","export const APP_TITLE = \"CITE\";\nexport const APP_DESCRIPTION =\n\t\"Crosstalk Interactions within Tumor microEnvironment\";\n\nexport const URL_NAVBAR_LOGO = require(\"../assets/logo.svg\");\n\nexport const ExampleQueryParams = [\"AREG\", \"EGFR\", \"GBM\", \"LGG\"];\n\nexport const Members: {\n\timageUrl: string;\n\theader: string;\n\tsubHeader: string;\n\tjobDescription: string;\n\temail: string;\n}[] = [\n\t{\n\t\timageUrl:\n\t\t\t\"https://react.semantic-ui.com/images/avatar/large/matthew.png\",\n\t\theader: \"Probhonjon Baruah\",\n\t\tsubHeader: \"Joined in 2019\",\n\t\tjobDescription: \"Bioinformatics Specialist\",\n\t\temail: \"baruahp@gis.a-star.edu.sg\",\n\t},\n\t{\n\t\timageUrl: \"https://react.semantic-ui.com/images/avatar/large/molly.png\",\n\t\theader: \"Neha Rohatgi\",\n\t\tsubHeader: \"Joined in 2017\",\n\t\tjobDescription: \"Post-Doc\",\n\t\temail: \"rohatgin@gis.a-star.edu.sg\",\n\t},\n\t{\n\t\timageUrl:\n\t\t\t\"https://react.semantic-ui.com/images/avatar/large/daniel.jpg\",\n\t\theader: \"Anders Skanderup\",\n\t\tsubHeader: \"Joined in 2015\",\n\t\tjobDescription: \"Principal Investigator\",\n\t\temail: \"skanderupamj@gis.a-star.edu.sg\",\n\t},\n];\n","import { createBrowserHistory } from \"history\";\nexport const browserHistory = createBrowserHistory();\n"],"sourceRoot":""}