decord/source/actions/native/CreateChannelModalActionCreators.tsx
2026-09-02 09:53:35 +00:00

48 lines
1.6 KiB
TypeScript

// Module ID: 9720
// Function ID: 9721
// Dependencies: [1390, 1386, 4489, 4723, 9715, 2008, 2]
// Module 9720
import set from "set" /* 2 */;
import createChannelRecord from "createChannelRecord" /* 1390 */;
import _modDef4723 from "module_4723" /* 4723 */;
import closure_4 from "ensureGuildLoaded" /* 1386 */;
const isGuildReadableType = createChannelRecord.isGuildReadableType;
const CREATE_CHANNEL_MODAL_KEY = "CREATE_CHANNEL_MODAL_KEY";
const result = set.fileFinishedImporting("actions/native/CreateChannelModalActionCreators.tsx");
export default {
CREATE_CHANNEL_MODAL_KEY: "CREATE_CHANNEL_MODAL_KEY",
open(arg0, arg1, arg2, arg3) {
const self = this;
if (null != arg1) {
const obj2 = _modDef4723;
const tmp = arg0;
let obj = { channelType: null, guildId: null, categoryId: null, cloneChannelId: null, onChannelCreated: null };
obj[0] = tmp;
obj[1] = arg1;
obj[2] = arg2;
obj[3] = arg3;
obj[4] = function onChannelCreated(id) {
self.close();
const channel = closure_1_4.getChannel(id);
let tmp3 = null != arg1 && null != channel;
if (tmp3) {
tmp3 = closure_1_3(channel.type);
}
if (tmp3) {
self(closure_1_2[2]).transitionToChannel(id);
const obj = self(closure_1_2[2]);
}
};
obj2.pushLazy(self(2008)(9715, dependencyMap.paths), obj, CREATE_CHANNEL_MODAL_KEY);
const tmp2 = arg2;
let tmp3 = arg3;
const tmp9 = self(2008)(9715, dependencyMap.paths);
}
},
close() {
_modDef4723.popWithKey(CREATE_CHANNEL_MODAL_KEY);
}
};