50 lines
1.0 KiB
JavaScript
50 lines
1.0 KiB
JavaScript
// Metro module 1499 (f1500).
|
|
export default function findFocusedRoute(a0) {
|
|
let r18;
|
|
const r2 = a0 == null;
|
|
let r3 = void 0;
|
|
if (!r2) {
|
|
const routes = a0.routes;
|
|
let index = a0.index;
|
|
if (index == null) {
|
|
index = 0;
|
|
}
|
|
r3 = routes[index].state;
|
|
}
|
|
let r11 = a0;
|
|
let r12 = a0;
|
|
if (r3 != null) {
|
|
do {
|
|
const routes3 = r11.routes;
|
|
let index3 = r11.index;
|
|
if (index3 == null) {
|
|
index3 = 0;
|
|
}
|
|
const state = routes3[index3].state;
|
|
const r17 = state == null;
|
|
r18 = void 0;
|
|
if (!r17) {
|
|
const routes2 = state.routes;
|
|
let index2 = state.index;
|
|
if (index2 == null) {
|
|
index2 = 0;
|
|
}
|
|
r18 = routes2[index2].state;
|
|
}
|
|
r11 = state;
|
|
r12 = r11;
|
|
} while (r18 != null);
|
|
}
|
|
const r20 = r12 == null;
|
|
let r21 = void 0;
|
|
if (!r20) {
|
|
const routes4 = r12.routes;
|
|
let r5 = r12?.index;
|
|
if (r5 == null) {
|
|
r5 = 0;
|
|
}
|
|
r21 = routes4[r5];
|
|
}
|
|
return r21;
|
|
};
|