52 lines
1.7 KiB
TypeScript
52 lines
1.7 KiB
TypeScript
// Module ID: 9214
|
|
// Function ID: 9215
|
|
// Name: CreateChannelModalActionCreators
|
|
// Dependencies: [2055, 2051, 4901, 5093, 9209, 1987, 2]
|
|
|
|
// Module 9214 (CreateChannelModalActionCreators)
|
|
import ChannelRecord from "ChannelRecord" /* 2055 */;
|
|
import transitionToChannel from "transitionToChannel" /* 4901 */;
|
|
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5093 */;
|
|
import ChannelStore from "ChannelStore" /* 2051 */;
|
|
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(1987)(9209, 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;
|