decord/source/actions/native/CreateChannelModalActionCreators.tsx

46 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 8890
// Function ID: 8891
// Dependencies: [1376, 1372, 4263, 4460, 8886, 1959, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 8890
2026-07-29 08:29:29 +00:00
import { CREATEABLE_NON_VOCAL_CHANNEL_NAME_TYPES as closure_3 } from "createChannelRecord";
import ensureGuildLoaded from "ensureGuildLoaded";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const CREATE_CHANNEL_MODAL_KEY = "CREATE_CHANNEL_MODAL_KEY";
2026-07-23 10:11:24 +00:00
const result = require("transitionToChannel").fileFinishedImporting("actions/native/CreateChannelModalActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
CREATE_CHANNEL_MODAL_KEY: "CREATE_CHANNEL_MODAL_KEY",
2026-07-29 08:29:29 +00:00
open(arg0, arg1, arg2, arg3) {
2026-07-23 10:11:24 +00:00
const self = this;
2026-07-29 08:29:29 +00:00
if (null != arg1) {
2026-08-05 07:35:12 +00:00
const obj2 = importDefault(4460);
2026-07-29 08:29:29 +00:00
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) {
2026-07-20 16:05:17 +00:00
self.close();
2026-07-29 08:29:29 +00:00
const channel = outer1_4.getChannel(id);
2026-07-20 16:05:17 +00:00
let hasItem = null != arg1 && null != channel;
if (hasItem) {
2026-07-23 10:11:24 +00:00
hasItem = outer1_3.has(channel.type);
2026-07-20 16:05:17 +00:00
}
if (hasItem) {
2026-07-29 08:29:29 +00:00
self(outer1_2[2]).transitionToChannel(id);
2026-07-23 10:11:24 +00:00
const obj = self(outer1_2[2]);
2026-07-20 16:05:17 +00:00
}
};
2026-08-05 07:35:12 +00:00
obj2.pushLazy(self(1959)(8886, dependencyMap.paths), obj, CREATE_CHANNEL_MODAL_KEY);
2026-07-29 08:29:29 +00:00
const tmp2 = arg2;
const tmp3 = arg3;
2026-08-05 07:35:12 +00:00
const tmp9 = self(1959)(8886, dependencyMap.paths);
2026-07-20 16:05:17 +00:00
}
},
close() {
2026-08-05 07:35:12 +00:00
importDefault(4460).popWithKey(CREATE_CHANNEL_MODAL_KEY);
2026-07-20 16:05:17 +00:00
}
};