// Module ID: 8992 // Function ID: 8993 // Name: CreateChannelModalActionCreators // Dependencies: [2055, 2051, 4848, 5040, 8987, 1987, 2] // Module 8992 (CreateChannelModalActionCreators) import ChannelRecord from "ChannelRecord" /* 2055 */; import transitionToChannel from "transitionToChannel" /* 4848 */; import ModalActionCreatorsDefault from "ModalActionCreators" /* 5040 */; 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)(8987, 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;