2026-08-11 06:20:06 +00:00
|
|
|
// Module ID: 1550
|
|
|
|
|
// Function ID: 1551
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getFocusedRouteNameFromRoute
|
2026-08-11 06:20:06 +00:00
|
|
|
// Dependencies: [1551]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-11 06:20:06 +00:00
|
|
|
// Module 1550 (getFocusedRouteNameFromRoute)
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
|
|
|
|
const dependencyMap = arg6;
|
2026-08-06 08:05:19 +00:00
|
|
|
arg5.getFocusedRouteNameFromRoute = function getFocusedRouteNameFromRoute(state) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let index;
|
|
|
|
|
let routes;
|
2026-08-11 06:20:06 +00:00
|
|
|
state = state[require(undefined, 1551) /* CHILD_STATE */.CHILD_STATE];
|
2026-07-29 08:29:29 +00:00
|
|
|
if (state == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
state = state.state;
|
|
|
|
|
}
|
|
|
|
|
const params = state.params;
|
|
|
|
|
if (state) {
|
|
|
|
|
({ index, routes } = state);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (index == null) {
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof state.type !== "string") {
|
2026-07-29 08:29:29 +00:00
|
|
|
let num2 = state.routes.length - 1;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
num2 = 0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
index = num2;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let screen = routes[index].name;
|
|
|
|
|
} else {
|
|
|
|
|
screen = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (params != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
screen = params.screen;
|
|
|
|
|
}
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof screen === "string") {
|
2026-07-20 16:05:17 +00:00
|
|
|
screen = params.screen;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return screen;
|
|
|
|
|
};
|