Files
discord-decomp/sources/actions/native/CreateChannelModalActionCreators.tsx
2026-07-28 01:06:53 +03:00

44 lines
2.9 KiB
TypeScript

/* Metro module 9087; source: actions/native/CreateChannelModalActionCreators.tsx; dependencies: [1383, 1379, 4601, 5080, 9083, 1962, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import ModalActionCreators from '../ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ChannelRecordModule from '../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
function _fun71014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:6, offset: 0x01d1235e, size: 168 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {CREATE_CHANNEL_MODAL_KEY: 'CREATE_CHANNEL_MODAL_KEY', open: open_71015, close: close_71017};
(FileImportTrackerModule).fileFinishedImporting('actions/native/CreateChannelModalActionCreators.tsx');
exports.default = object;
function open_71015(a0, a1, a2, a3) { // fn#71015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:215, offset: 0x01d12406, size: 179 bytes, params: 5, frame: 23
var value5;
var defaultImport;
if (a1 != null) {
value5 = undefined;
defaultImport = importDefault(dependencyMap[3]);
defaultImport.pushLazy(require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths),
{channelType: a0 ?? value5,
guildId: a1, categoryId: a2 ?? value5, cloneChannelId: a3 ?? value5, onChannelCreated: onChannelCreated},
'CREATE_CHANNEL_MODAL_KEY');
}
function onChannelCreated(a0, a1) { // fn#71016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:397, owner: open_71015.onChannelCreated, offset: 0x01d124b9, size: 115 bytes, params: 3, frame: 14
env0_0.close();
const value = environment.__proto__;
const channel = ChannelStore.getChannel(a0);
if (a1 != null && channel != null && CREATEABLE_NON_VOCAL_CHANNEL_NAME_TYPES.has(channel.type)) {
(require(4601) /* metro dependency 4601: transitionToChannel */).transitionToChannel(a0);
}
}
}
function close_71017() { // fn#71017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:511, offset: 0x01d1252c, size: 42 bytes, params: 1, frame: 12
(ModalActionCreators).popWithKey('CREATE_CHANNEL_MODAL_KEY');
}
}
global.__d(_fun71014, 9087, [1383, 1379, 4601, 5080, 9083, 1962,
2]) /* metro module 9087, dependencies: [1383, 1379, 4601, 5080, 9083, 1962, 2] */;