decord/source/actions/DefaultRouteActionCreators.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

64 lines
1.9 KiB
TypeScript

// Module ID: 12720
// Function ID: 12721
// Name: saveLastRoute
// Dependencies: [4121, 673, 4307, 4320, 706, 2]
// Exports: saveLastNonVoiceRoute, saveLastRoute
// Module 12720 (saveLastRoute)
import dispatcherDefault from "dispatcher" /* 706 */;
import matchPath from "matchPath" /* 4307 */;
import RouteParam2 from "RouteParam" /* 4320 */;
import closure_3 from "initialize" /* 4121 */;
import { Routes } from "ME" /* 673 */;
require = arg1;
const result = require("set").fileFinishedImporting("actions/DefaultRouteActionCreators.tsx");
export const saveLastRoute = function saveLastRoute(pathname) {
let obj = matchPath;
obj = { path: null };
const RouteParam = RouteParam2.RouteParam;
obj[0] = Routes.CHANNEL(RouteParam.guildId());
const matchPathResult = obj.matchPath(pathname, obj);
let guildId;
if (matchPathResult != null) {
const params = matchPathResult.params;
if (params != null) {
guildId = params.guildId;
}
}
let tmp4 = null == guildId;
if (!tmp4) {
tmp4 = !closure_3.isLurking(guildId);
}
if (tmp4) {
obj = { type: "SAVE_LAST_ROUTE", path: null };
obj[1] = pathname;
dispatcherDefault.dispatch(obj);
const obj3 = dispatcherDefault;
}
};
export const saveLastNonVoiceRoute = function saveLastNonVoiceRoute(Routes) {
let obj = matchPath;
obj = { path: null };
const RouteParam = RouteParam2.RouteParam;
obj[0] = Routes.CHANNEL(RouteParam.guildId());
const matchPathResult = obj.matchPath(Routes, obj);
let guildId;
if (matchPathResult != null) {
const params = matchPathResult.params;
if (params != null) {
guildId = params.guildId;
}
}
let tmp4 = null == guildId;
if (!tmp4) {
tmp4 = !closure_3.isLurking(guildId);
}
if (tmp4) {
obj = { type: "SAVE_LAST_NON_VOICE_ROUTE", path: null };
obj[1] = Routes;
dispatcherDefault.dispatch(obj);
const obj3 = dispatcherDefault;
}
};