decord/source/1511_TabRouter.js

49 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 1511
// Function ID: 1512
2026-08-06 08:05:19 +00:00
// Name: TabRouter
2026-08-15 05:55:55 +00:00
// Dependencies: [1512]
2026-08-06 08:05:19 +00:00
2026-08-15 05:55:55 +00:00
// Module 1511 (TabRouter)
2026-08-24 06:08:38 +00:00
import getRouteHistory from "getRouteHistory" /* 1512 */;
require = arg1;
2026-08-06 08:05:19 +00:00
const dependencyMap = arg6;
let obj = {
jumpTo(name, params) {
const payload = { name, params };
return { type: "JUMP_TO", payload };
}
};
arg5.TabActions = obj;
arg5.TabRouter = function TabRouter(merged) {
2026-08-24 06:08:38 +00:00
obj = getRouteHistory;
2026-08-06 08:05:19 +00:00
const SwitchRouterResult = obj.SwitchRouter(merged);
require = SwitchRouterResult;
obj = {};
merged = Object.assign(SwitchRouterResult);
obj.type = "tab";
obj.getInitialState = function getInitialState(arg0) {
const initialState = SwitchRouterResult.getInitialState(arg0);
2026-08-24 06:08:38 +00:00
obj = {};
2026-08-06 08:05:19 +00:00
const merged = Object.assign(initialState);
obj.type = "tab";
obj.key = "tab-" + initialState.key;
return obj;
};
obj.getRehydratedState = function getRehydratedState(stale) {
if (false === stale.stale) {
return stale;
} else {
const rehydratedState = SwitchRouterResult.getRehydratedState(stale, arg1);
2026-08-24 06:08:38 +00:00
obj = {};
2026-08-06 08:05:19 +00:00
const merged = Object.assign(rehydratedState);
obj.type = "tab";
const _HermesInternal = HermesInternal;
obj.key = "tab-" + rehydratedState.key;
return obj;
}
};
obj.actionCreators = obj;
return obj;
};