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

52 lines
1.7 KiB
TypeScript

// Module ID: 8578
// Function ID: 8579
// Name: CreateChannelModalActionCreators
// Dependencies: [2067, 2063, 5101, 5940, 8554, 1999, 2]
// Module 8578 (CreateChannelModalActionCreators)
import ChannelRecord from "ChannelRecord" /* 2067 */;
import transitionToChannel from "transitionToChannel" /* 5101 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5940 */;
import ChannelStore from "ChannelStore" /* 2063 */;
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(1999)(8554, 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;