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

53 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 8606
// Function ID: 8607
// Name: CreateChannelModalActionCreators
2026-10-12 06:59:38 +00:00
// Dependencies: [2069, 2065, 5103, 5934, 8579, 2000, 2]
2026-07-20 16:05:17 +00:00
2026-10-12 06:59:38 +00:00
// Module 8606 (CreateChannelModalActionCreators)
2026-10-10 08:08:14 +00:00
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 */;
2026-07-23 10:11:24 +00:00
const isGuildReadableType = ChannelRecord.isGuildReadableType;
2026-07-29 08:29:29 +00:00
const CREATE_CHANNEL_MODAL_KEY = "CREATE_CHANNEL_MODAL_KEY";
2026-10-03 08:58:59 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
CREATE_CHANNEL_MODAL_KEY: "CREATE_CHANNEL_MODAL_KEY",
2026-10-03 08:58:59 +00:00
open(channelType, guildId, arg2, arg3) {
let tmp2;
let tmp3;
2026-07-23 10:11:24 +00:00
const self = this;
if (null != guildId) {
2026-10-03 08:58:59 +00:00
const pushLazy = ModalActionCreatorsDefault.pushLazy;
ModalActionCreatorsDefault;
let obj = {
2026-10-03 08:58:59 +00:00
channelType,
guildId,
2026-10-03 08:58:59 +00:00
categoryId: tmp2,
cloneChannelId: tmp3,
onChannelCreated(id, arg1) {
self.close();
const channel = ChannelStore.getChannel(id);
2026-10-03 08:58:59 +00:00
const tmp3 = null != arg1 && null != channel && isGuildReadableType(channel.type);
if (tmp3) {
2026-10-03 08:58:59 +00:00
const obj = transitionToChannel;
obj.transitionToChannel(id);
}
}
2026-07-20 16:05:17 +00:00
};
2026-10-03 08:58:59 +00:00
tmp3 = arg3;
2026-10-12 06:59:38 +00:00
const tmp10 = self(2000)(8579, dependencyMap.paths);
2026-10-03 08:58:59 +00:00
pushLazy(tmp10, obj, CREATE_CHANNEL_MODAL_KEY);
tmp2 = arg2;
2026-07-20 16:05:17 +00:00
}
},
close() {
2026-10-03 08:58:59 +00:00
const obj = ModalActionCreatorsDefault;
obj.popWithKey(CREATE_CHANNEL_MODAL_KEY);
2026-07-20 16:05:17 +00:00
}
};
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("actions/native/CreateChannelModalActionCreators.tsx");
export default obj;