decord/source/actions/native/CreateChannelModalActionCreators.tsx

49 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 9742
// Function ID: 9743
// Dependencies: [1961, 1957, 4571, 4763, 9737, 1896, 2]
2026-07-20 16:05:17 +00:00
// Module 9742
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import createChannelRecord from "createChannelRecord" /* 1961 */;
import _modDef4763 from "module_4763" /* 4763 */;
import closure_4 from "ensureGuildLoaded" /* 1957 */;
2026-07-23 10:11:24 +00:00
2026-09-02 09:53:35 +00:00
const isGuildReadableType = createChannelRecord.isGuildReadableType;
2026-07-29 08:29:29 +00:00
const CREATE_CHANNEL_MODAL_KEY = "CREATE_CHANNEL_MODAL_KEY";
2026-08-24 06:08:38 +00:00
const result = set.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) {
const obj2 = _modDef4763;
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-08-24 06:08:38 +00:00
const channel = closure_1_4.getChannel(id);
2026-09-02 09:53:35 +00:00
let tmp3 = null != arg1 && null != channel;
if (tmp3) {
tmp3 = closure_1_3(channel.type);
2026-07-20 16:05:17 +00:00
}
2026-09-02 09:53:35 +00:00
if (tmp3) {
2026-08-24 06:08:38 +00:00
self(closure_1_2[2]).transitionToChannel(id);
const obj = self(closure_1_2[2]);
2026-07-20 16:05:17 +00:00
}
};
obj2.pushLazy(self(1896)(9737, dependencyMap.paths), obj, CREATE_CHANNEL_MODAL_KEY);
2026-07-29 08:29:29 +00:00
const tmp2 = arg2;
2026-09-02 09:53:35 +00:00
let tmp3 = arg3;
const tmp9 = self(1896)(9737, dependencyMap.paths);
2026-07-20 16:05:17 +00:00
}
},
close() {
_modDef4763.popWithKey(CREATE_CHANNEL_MODAL_KEY);
2026-07-20 16:05:17 +00:00
}
};