decord/beta/source/actions/native/CreateChannelModalActionCreators.tsx

53 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 8606
// Function ID: 8607
// Name: CreateChannelModalActionCreators
2026-10-12 16:32:48 +00:00
// Dependencies: [2069, 2065, 5103, 5934, 8579, 2000, 2]
2026-10-12 16:32:48 +00:00
// Module 8606 (CreateChannelModalActionCreators)
import ChannelRecord from "ChannelRecord" /* 2069 */;
import transitionToChannel from "transitionToChannel" /* 5103 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5934 */;
import ChannelStore from "ChannelStore" /* 2065 */;
import size from "module_2" /* 2 */;
const isGuildReadableType = ChannelRecord.isGuildReadableType;
const CREATE_CHANNEL_MODAL_KEY = "CREATE_CHANNEL_MODAL_KEY";
2026-10-01 14:13:23 +00:00
let obj = {
CREATE_CHANNEL_MODAL_KEY: "CREATE_CHANNEL_MODAL_KEY",
2026-10-01 14:13:23 +00:00
open(channelType, guildId, arg2, arg3) {
let tmp2;
let tmp3;
const self = this;
if (null != guildId) {
2026-10-01 14:13:23 +00:00
const pushLazy = ModalActionCreatorsDefault.pushLazy;
ModalActionCreatorsDefault;
let obj = {
2026-10-01 14:13:23 +00:00
channelType,
guildId,
2026-10-01 14:13:23 +00:00
categoryId: tmp2,
cloneChannelId: tmp3,
onChannelCreated(id, arg1) {
self.close();
const channel = ChannelStore.getChannel(id);
2026-10-01 14:13:23 +00:00
const tmp3 = null != arg1 && null != channel && isGuildReadableType(channel.type);
if (tmp3) {
2026-10-01 14:13:23 +00:00
const obj = transitionToChannel;
obj.transitionToChannel(id);
}
}
};
2026-10-01 14:13:23 +00:00
tmp3 = arg3;
2026-10-12 16:32:48 +00:00
const tmp10 = self(2000)(8579, dependencyMap.paths);
2026-10-01 14:13:23 +00:00
pushLazy(tmp10, obj, CREATE_CHANNEL_MODAL_KEY);
tmp2 = arg2;
}
},
close() {
2026-10-01 14:13:23 +00:00
const obj = ModalActionCreatorsDefault;
obj.popWithKey(CREATE_CHANNEL_MODAL_KEY);
}
};
2026-10-01 14:13:23 +00:00
const result = size.fileFinishedImporting("actions/native/CreateChannelModalActionCreators.tsx");
export default obj;