Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
48 lines
1.6 KiB
TypeScript
48 lines
1.6 KiB
TypeScript
// Module ID: 9208
|
|
// Function ID: 9209
|
|
// Name: CreateChannelModalActionCreators
|
|
// Dependencies: [2048, 2044, 4856, 5048, 9203, 1981, 2]
|
|
|
|
// Module 9208 (CreateChannelModalActionCreators)
|
|
import ChannelRecord from "ChannelRecord" /* 2048 */;
|
|
import transitionToChannel from "transitionToChannel" /* 4856 */;
|
|
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5048 */;
|
|
import ChannelStore from "ChannelStore" /* 2044 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const isGuildReadableType = ChannelRecord.isGuildReadableType;
|
|
const CREATE_CHANNEL_MODAL_KEY = "CREATE_CHANNEL_MODAL_KEY";
|
|
const result = size.fileFinishedImporting("actions/native/CreateChannelModalActionCreators.tsx");
|
|
|
|
export default {
|
|
CREATE_CHANNEL_MODAL_KEY: "CREATE_CHANNEL_MODAL_KEY",
|
|
open(arg0, guildId, categoryId, cloneChannelId) {
|
|
const self = this;
|
|
if (null != guildId) {
|
|
const obj2 = ModalActionCreatorsDefault;
|
|
const tmp = arg0;
|
|
let obj = {
|
|
channelType: tmp,
|
|
guildId,
|
|
categoryId,
|
|
cloneChannelId,
|
|
onChannelCreated(id, arg1) {
|
|
self.close();
|
|
const channel = ChannelStore.getChannel(id);
|
|
let tmp3 = null != arg1 && null != channel;
|
|
if (tmp3) {
|
|
tmp3 = isGuildReadableType(channel.type);
|
|
}
|
|
if (tmp3) {
|
|
transitionToChannel.transitionToChannel(id);
|
|
}
|
|
}
|
|
};
|
|
obj2.pushLazy(self(1981)(9203, dependencyMap.paths), obj, CREATE_CHANNEL_MODAL_KEY);
|
|
const tmp9 = self(1981)(9203, dependencyMap.paths);
|
|
}
|
|
},
|
|
close() {
|
|
ModalActionCreatorsDefault.popWithKey(CREATE_CHANNEL_MODAL_KEY);
|
|
}
|
|
};
|