{"version":3,"file":"react-router-config-Bc4CcrR_.js","sources":["../../../client/app/bundles/Shared/components/shared/screenreaderInstructions.tsx","../../../client/node_modules/react-router-config/esm/react-router-config.js"],"sourcesContent":["import * as React from 'react'\n\n// disabling the tabIndex rule because setting a tabIndex seemed like the best way to ensure this line would always be read first, and I couldn't find a more appropriate aria-role.\n/* eslint-disable jsx-a11y/no-noninteractive-tabindex */\nexport const ScreenreaderInstructions = () => (\n

\n Screenreader users, please use your reading keys to navigate this activity.\n

\n)\n","import { matchPath, Router, Switch, Route } from 'react-router';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport React from 'react';\n\nfunction matchRoutes(routes, pathname,\n/*not public API*/\nbranch) {\n if (branch === void 0) {\n branch = [];\n }\n\n routes.some(function (route) {\n var match = route.path ? matchPath(pathname, route) : branch.length ? branch[branch.length - 1].match // use parent match\n : Router.computeRootMatch(pathname); // use default \"root\" match\n\n if (match) {\n branch.push({\n route: route,\n match: match\n });\n\n if (route.routes) {\n matchRoutes(route.routes, pathname, branch);\n }\n }\n\n return match;\n });\n return branch;\n}\n\nfunction renderRoutes(routes, extraProps, switchProps) {\n if (extraProps === void 0) {\n extraProps = {};\n }\n\n if (switchProps === void 0) {\n switchProps = {};\n }\n\n return routes ? React.createElement(Switch, switchProps, routes.map(function (route, i) {\n return React.createElement(Route, {\n key: route.key || i,\n path: route.path,\n exact: route.exact,\n strict: route.strict,\n render: function render(props) {\n return route.render ? route.render(_extends({}, props, {}, extraProps, {\n route: route\n })) : React.createElement(route.component, _extends({}, props, extraProps, {\n route: route\n }));\n }\n });\n })) : null;\n}\n\nexport { matchRoutes, renderRoutes };\n//# sourceMappingURL=react-router-config.js.map\n"],"names":["ScreenreaderInstructions","React.createElement","renderRoutes","routes","extraProps","switchProps","React","Switch","route","i","Route","props","_extends"],"mappings":"8GAIa,MAAAA,EAA2B,IACrCC,EAAA,cAAA,IAAA,CAAE,UAAU,4BAA4B,SAAU,GAAG,6EAEtD,ECwBF,SAASC,EAAaC,EAAQC,EAAYC,EAAa,CACrD,OAAID,IAAe,SACjBA,EAAa,CAAA,GAGXC,IAAgB,SAClBA,EAAc,CAAA,GAGTF,EAASG,EAAM,cAAcC,EAAQF,EAAaF,EAAO,IAAI,SAAUK,EAAOC,EAAG,CAC/E,OAAAH,EAAM,cAAcI,EAAO,CAChC,IAAKF,EAAM,KAAOC,EAClB,KAAMD,EAAM,KACZ,MAAOA,EAAM,MACb,OAAQA,EAAM,OACd,OAAQ,SAAgBG,EAAO,CACtB,OAAAH,EAAM,OAASA,EAAM,OAAOI,EAAS,GAAID,EAAO,CAAC,EAAGP,EAAY,CACrE,MAAAI,CAAA,CACD,CAAC,EAAIF,EAAM,cAAcE,EAAM,UAAWI,EAAS,CAAA,EAAID,EAAOP,EAAY,CACzE,MAAAI,CACD,CAAA,CAAC,CACJ,CAAA,CACD,CAAA,CACF,CAAC,EAAI,IACR","x_google_ignoreList":[1]}