38 lines
925 B
JavaScript
38 lines
925 B
JavaScript
// Module ID: 1531
|
|
// Function ID: 1532
|
|
// Name: getFocusedRouteNameFromRoute
|
|
// Dependencies: [1532]
|
|
|
|
// Module 1531 (getFocusedRouteNameFromRoute)
|
|
const require = arg1;
|
|
const dependencyMap = arg6;
|
|
arg5.getFocusedRouteNameFromRoute = function getFocusedRouteNameFromRoute(state) {
|
|
let index;
|
|
let routes;
|
|
state = state[require(undefined, 1532) /* CHILD_STATE */.CHILD_STATE];
|
|
if (state == null) {
|
|
state = state.state;
|
|
}
|
|
const params = state.params;
|
|
if (state) {
|
|
({ index, routes } = state);
|
|
if (index == null) {
|
|
if (typeof state.type !== "string") {
|
|
let num2 = state.routes.length - 1;
|
|
} else {
|
|
num2 = 0;
|
|
}
|
|
index = num2;
|
|
}
|
|
let screen = routes[index].name;
|
|
} else {
|
|
screen = undefined;
|
|
if (params != null) {
|
|
screen = params.screen;
|
|
}
|
|
if (typeof screen === "string") {
|
|
screen = params.screen;
|
|
}
|
|
}
|
|
return screen;
|
|
};
|