decord/beta/source/modules/vibegrations/lib/useVibegrationsPublishedChannelId.tsx

76 lines
2 KiB
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 16277
// Function ID: 16278
// Name: useVibegrationsPublishedChannelId
2026-10-02 13:37:24 +00:00
// Dependencies: [4470, 558, 576, 5371, 504, 2]
2026-10-02 13:37:24 +00:00
// Module 16277 (useVibegrationsPublishedChannelId)
import VibegrationsUtils from "VibegrationsUtils" /* 5371 */;
import GuildChannelStore from "GuildChannelStore" /* 4470 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
const require = globalThis.__r;
2026-10-01 14:13:23 +00:00
let _require, dependencyMap;
2026-10-02 13:37:24 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0, arg1) => {
let closure_0;
let closure_1;
let first;
_require = arg0;
dependencyMap = arg1;
const tmp = _require;
let obj = require("react");
const cResult = obj.c(5);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [GuildChannelStore];
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] === arg1) {
let tmp6;
let tmp7;
if (cResult[2] === arg0) {
tmp6 = cResult[3];
tmp7 = cResult[4];
}
const tmpResult = tmp(504);
return tmpResult.useStateFromStores(first, tmp6, tmp7);
}
const fn = function u() {
let result = null;
if (null != closure_1) {
const obj = VibegrationsUtils;
result = obj.findVibegrationChannelId(closure_0, tmp);
}
return result;
};
const items1 = [arg0, arg1];
cResult[1] = arg1;
cResult[2] = arg0;
cResult[3] = fn;
cResult[4] = items1;
tmp7 = items1;
tmp6 = fn;
}) : ((arg0, arg1) => {
2026-10-01 14:13:23 +00:00
let closure_0;
let closure_1;
_require = arg0;
dependencyMap = arg1;
2026-10-01 14:13:23 +00:00
let obj = require("get initialized");
const items = [GuildChannelStore];
const items1 = [arg0, arg1];
2026-10-01 14:13:23 +00:00
return obj.useStateFromStores(items, () => {
let result = null;
if (null != closure_1) {
2026-10-01 14:13:23 +00:00
const obj = VibegrationsUtils;
result = obj.findVibegrationChannelId(closure_0, tmp);
}
return result;
}, items1);
2026-10-02 13:37:24 +00:00
});
let result = size.fileFinishedImporting("modules/vibegrations/lib/useVibegrationsPublishedChannelId.tsx");
export default tmp2;