decord/alpha/source/actions/native/CreateChannelModalActionCreators.tsx
2026-10-09 10:00:15 +00:00

52 lines
1.7 KiB
TypeScript

// Module ID: 8586
// Function ID: 8587
// Name: CreateChannelModalActionCreators
// Dependencies: [2068, 2064, 5102, 5941, 8562, 2000, 2]
// Module 8586 (CreateChannelModalActionCreators)
import ChannelRecord from "ChannelRecord" /* 2068 */;
import transitionToChannel from "transitionToChannel" /* 5102 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5941 */;
import ChannelStore from "ChannelStore" /* 2064 */;
import size from "module_2" /* 2 */;
const isGuildReadableType = ChannelRecord.isGuildReadableType;
const CREATE_CHANNEL_MODAL_KEY = "CREATE_CHANNEL_MODAL_KEY";
let obj = {
CREATE_CHANNEL_MODAL_KEY: "CREATE_CHANNEL_MODAL_KEY",
open(channelType, guildId, arg2, arg3) {
let tmp2;
let tmp3;
const self = this;
if (null != guildId) {
const pushLazy = ModalActionCreatorsDefault.pushLazy;
ModalActionCreatorsDefault;
let obj = {
channelType,
guildId,
categoryId: tmp2,
cloneChannelId: tmp3,
onChannelCreated(id, arg1) {
self.close();
const channel = ChannelStore.getChannel(id);
const tmp3 = null != arg1 && null != channel && isGuildReadableType(channel.type);
if (tmp3) {
const obj = transitionToChannel;
obj.transitionToChannel(id);
}
}
};
tmp3 = arg3;
const tmp10 = self(2000)(8562, dependencyMap.paths);
pushLazy(tmp10, obj, CREATE_CHANNEL_MODAL_KEY);
tmp2 = arg2;
}
},
close() {
const obj = ModalActionCreatorsDefault;
obj.popWithKey(CREATE_CHANNEL_MODAL_KEY);
}
};
const result = size.fileFinishedImporting("actions/native/CreateChannelModalActionCreators.tsx");
export default obj;