Files
discord-decomp/sources/modules/channel_following/native/showChannelFollowingActionSheet.tsx
T
2026-07-28 01:06:53 +03:00

64 lines
4.7 KiB
TypeScript

/* Metro module 11261; source: modules/channel_following/native/showChannelFollowingActionSheet.tsx; dependencies: [31, 33, 4080, 11262, 1962, 4496, 11266, 2] */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun86039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11447:6, offset: 0x01f85621, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/channel_following/native/showChannelFollowingActionSheet.tsx');
exports.showChannelFollowingActionSheet = showChannelFollowingActionSheet;
function showChannelFollowingActionSheet(a0, a1, a2, a3) { // fn#86040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11447:254, offset: 0x01f856af, size: 178 bytes, params: 5, frame: 19
const env0_0 = a0;
const env0_1 = a1;
const defaultImport = importDefault(dependencyMap[2]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[4]);
value = value(dependencyMap[3], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'NewChannelFollower.' + a0, {sourceChannelId: a0, sourceGuildId: a1,
targetChannelId: a2, targetGuildId: a3, reopenActionSheetWithTarget: reopenActionSheetWithTarget,
onSuccess: onSuccess_86042, onCancel: onCancel_86046}]);
function reopenActionSheetWithTarget(a0, a1) { // fn#86041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11447:466, owner: showChannelFollowingActionSheet.reopenActionSheetWithTarget, offset: 0x01f85761, size: 34 bytes, params: 3, frame: 17
showChannelFollowingActionSheet(env0_0, require, a1, a0);
}
function showChannelFollowingActionSheetOnSuccess() { // fn#86042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11447:526, owner: showChannelFollowingActionSheet.onSuccess, offset: 0x01f85783, size: 61 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
value.openLazy({importer: importer_86043, hideActionSheet: true});
function onSuccessImporter() { // fn#86043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11447:558, owner: showChannelFollowingActionSheet.onSuccess.importer, offset: 0x01f857c0, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__.__proto__;
value = require(dependencyMap[4]);
value = value(dependencyMap[6], dependencyMap.paths);
return value.then(function({default: env0_0}) {
return _fun86045;
});
function _fun86044({default: env0_0}) { // fn#86044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11447:590, offset: 0x01f85800, size: 23 bytes, params: 2, frame: 2
return _fun86045;
function _fun86045(a0) { // fn#86045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11447:605, offset: 0x01f85817, size: 36 bytes, params: 2, frame: 13
return ((Component) => <Component {...a0} />)(env0_0);
}
}
}
}
function showChannelFollowingActionSheetOnCancel() { // fn#86046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11447:653, owner: showChannelFollowingActionSheet.onCancel, offset: 0x01f8583b, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (ActionSheetActionCreators).hideActionSheet();
}
}
}
global.__d(_fun86039, 11261, [31, 33, 4080, 11262, 1962, 4496, 11266,
2]) /* metro module 11261, dependencies: [31, 33, 4080, 11262, 1962, 4496, 11266, 2] */;