Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
// Module ID: 17502
|
|
// Function ID: 17503
|
|
// Name: FriendsActionCreators
|
|
// Dependencies: [1074, 573, 1101, 16823, 2]
|
|
|
|
// Module 17502 (FriendsActionCreators)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import Constants from "Constants" /* 1074 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const router_utils = tmp(1101);
|
|
const trackFriendListClickedDefault = tmp5(16823);
|
|
const Routes = Constants.Routes;
|
|
const result = size.fileFinishedImporting("actions/FriendsActionCreators.tsx");
|
|
|
|
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) {
|
|
router_utils.transitionTo(tmp3.FRIENDS);
|
|
const tmpResult = router_utils;
|
|
}
|
|
obj2 = router_utils;
|
|
DispatcherDefault.dispatch({ type: "FRIENDS_SET_SECTION", section: PENDING });
|
|
if (flag) {
|
|
const obj5 = { tab_opened: PENDING };
|
|
trackFriendListClickedDefault(obj5);
|
|
}
|
|
},
|
|
setSection(section) {
|
|
DispatcherDefault.dispatch({ type: "FRIENDS_SET_SECTION", section });
|
|
},
|
|
setInitialSection(section) {
|
|
DispatcherDefault.dispatch({ type: "FRIENDS_SET_INITIAL_SECTION", section });
|
|
}
|
|
};
|