decord/source/actions/native/CreateChannelModalActionCreators.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

48 lines
1.6 KiB
TypeScript

// Module ID: 9742
// Function ID: 9743
// Dependencies: [1961, 1957, 4571, 4763, 9737, 1896, 2]
// Module 9742
import set from "set" /* 2 */;
import createChannelRecord from "createChannelRecord" /* 1961 */;
import _modDef4763 from "module_4763" /* 4763 */;
import closure_4 from "ensureGuildLoaded" /* 1957 */;
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 = _modDef4763;
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(1896)(9737, dependencyMap.paths), obj, CREATE_CHANNEL_MODAL_KEY);
const tmp2 = arg2;
let tmp3 = arg3;
const tmp9 = self(1896)(9737, dependencyMap.paths);
}
},
close() {
_modDef4763.popWithKey(CREATE_CHANNEL_MODAL_KEY);
}
};