9a46e2f4c1b83f077b7cee82df620628.json
1.03 KB
{"ast":null,"code":"Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=getChildRouter;function getChildRouter(router,routeName){if(router.childRouters&&router.childRouters[routeName]){return router.childRouters[routeName];}var Component=router.getComponentForRouteName(routeName);return Component.router;}","map":{"version":3,"sources":["getChildRouter.ts"],"names":["router","Component"],"mappings":"wFAAe,QAAA,CAAA,cAAA,CAAA,MAAA,CAAA,SAAA,CAAwD,CACrE,GAAIA,MAAM,CAANA,YAAAA,EAAuBA,MAAM,CAANA,YAAAA,CAA3B,SAA2BA,CAA3B,CAA2D,CACzD,MAAOA,CAAAA,MAAM,CAANA,YAAAA,CAAP,SAAOA,CAAP,CAGF,IAAMC,CAAAA,SAAS,CAAGD,MAAM,CAANA,wBAAAA,CAAlB,SAAkBA,CAAlB,CAEA,MAAOC,CAAAA,SAAS,CAAhB,MAAA,CACD","sourcesContent":["export default function getChildRouter(router: any, routeName: string) {\n if (router.childRouters && router.childRouters[routeName]) {\n return router.childRouters[routeName];\n }\n\n const Component = router.getComponentForRouteName(routeName);\n\n return Component.router;\n}\n"]},"metadata":{},"sourceType":"script"}