decord/source/actions/FriendsActionCreators.tsx

51 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 17478
// Function ID: 17479
// Dependencies: [1074, 573, 1100, 16755, 2]
2026-07-23 10:11:24 +00:00
// Module 17478
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import ME from "ME" /* 1074 */;
import transitionTo from "transitionTo" /* 1100 */;
import trackFriendsListClickedDefault from "trackFriendsListClicked" /* 16755 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const Routes = ME.Routes;
const result = set.fileFinishedImporting("actions/FriendsActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
transitionToSection(PENDING, arg1) {
let obj = arg1;
if (arg1 === undefined) {
obj = {};
}
let flag = obj.explicit;
if (flag === undefined) {
flag = false;
}
if (obj2.getHistory().location.pathname !== Routes.FRIENDS) {
2026-08-24 06:08:38 +00:00
transitionTo.transitionTo(tmp3.FRIENDS);
const tmpResult = transitionTo;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj2 = transitionTo;
const tmp = require;
2026-07-29 08:29:29 +00:00
const tmp5 = importDefault;
obj = { type: "FRIENDS_SET_SECTION", section: PENDING };
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch(obj);
2026-07-20 16:05:17 +00:00
if (flag) {
2026-07-29 08:29:29 +00:00
obj = { tab_opened: null };
obj[0] = PENDING;
2026-08-24 06:08:38 +00:00
trackFriendsListClickedDefault(obj);
2026-07-20 16:05:17 +00:00
}
},
2026-07-29 08:29:29 +00:00
setSection(section) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
obj = { type: "FRIENDS_SET_SECTION", section };
obj.dispatch(obj);
},
2026-07-20 16:05:17 +00:00
setInitialSection(section) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "FRIENDS_SET_INITIAL_SECTION", section };
obj.dispatch(obj);
}
};