47 lines
2.8 KiB
TypeScript
47 lines
2.8 KiB
TypeScript
/* Metro module 15817; source: actions/FriendsActionCreators.tsx; dependencies: [661, 694, 1230, 15139, 2] */
|
|
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as Router_utilsModule from '../modules/routing/router_utils.tsx'; /* Metro dependency 1230 */
|
|
|
|
function _fun121559(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:6, offset: 0x0254adce, size: 161 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const setSection_1215602 = setSection_121560;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {transitionToSection: transitionToSection, setSection: setSection_1215602,
|
|
setInitialSection: setInitialSection};
|
|
(FileImportTrackerModule).fileFinishedImporting('actions/FriendsActionCreators.tsx');
|
|
exports.default = object;
|
|
function setSection_121560(a0) { // fn#121560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:113, offset: 0x0254ae6f, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'FRIENDS_SET_SECTION', section: a0});
|
|
}
|
|
|
|
function transitionToSection(a0) { // fn#121561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:200, offset: 0x0254aea8, size: 168 bytes, params: 2, frame: 15
|
|
var moduleValue2;
|
|
const value = a1;
|
|
let explicit = (value !== undefined ? value : {}).explicit;
|
|
explicit = !(explicit === undefined) && explicit;
|
|
const getHistory = Router_utilsModule.getHistory;
|
|
const pathname = Reflect.apply(getHistory, Router_utilsModule, []).location.pathname;
|
|
const FRIENDS = Routes.FRIENDS;
|
|
if (pathname !== FRIENDS) {
|
|
moduleValue2 = Router_utilsModule;
|
|
moduleValue2.transitionTo(Routes.FRIENDS);
|
|
}
|
|
setSection_121560(a0);
|
|
if (explicit) {
|
|
(importDefault(15139) /* metro dependency 15139: trackFriendListClicked */)({tab_opened: a0});
|
|
}
|
|
}
|
|
|
|
function setInitialSection(a0) { // fn#121562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:390, offset: 0x0254af50, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'FRIENDS_SET_INITIAL_SECTION',
|
|
section: a0});
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun121559, 15817, [661, 694, 1230, 15139,
|
|
2]) /* metro module 15817, dependencies: [661, 694, 1230, 15139, 2] */;
|