decord/beta/source/modules/voice_panel/VoicePanelUtils.native.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

110 lines
3.6 KiB
TypeScript

// Module ID: 10222
// Function ID: 10223
// Name: VoicePanelUtils
// Dependencies: [2045, 4813, 4998, 558, 568, 565, 2]
// Module 10222 (VoicePanelUtils)
import useStateFromStores from "useStateFromStores" /* 565 */;
import c from "c" /* 568 */;
import ChannelStore from "ChannelStore" /* 2045 */;
import RTCConnectionStore from "RTCConnectionStore" /* 4813 */;
import VoicePanelStore from "VoicePanelStore" /* 4998 */;
require = fn;
fn(558);
let ReactCompilerGating = fn(558);
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(2);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [ChannelStore, RTCConnectionStore];
const fn = function o() {
channel = channel.getChannel(channelId.getChannelId());
return null != channel && !channel.isGuildStageVoice();
};
cResult[0] = items;
cResult[1] = fn;
tmp4 = items;
tmp5 = fn;
} else {
[tmp4, tmp5] = cResult;
}
return useStateFromStores.useStateFromStores(tmp4, tmp5);
}) : (() => {
const items = [ChannelStore, RTCConnectionStore];
return useStateFromStores.useStateFromStores(items, () => {
channel = channel.getChannel(channelId.getChannelId());
return null != channel && !channel.isGuildStageVoice();
});
});
ReactCompilerGating = fn(558);
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(1);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const fn = function n(isVoicePanelFullscreen) {
return isVoicePanelFullscreen.isVoicePanelFullscreen();
};
cResult[0] = fn;
let first = fn;
} else {
first = cResult[0];
}
return VoicePanelStore(first);
}) : (() => VoicePanelStore((isVoicePanelFullscreen) => isVoicePanelFullscreen.isVoicePanelFullscreen()));
ReactCompilerGating = fn(558);
const tmp4 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
closure_0 = arg0;
const cResult = c.c(2);
if (cResult[0] !== arg0) {
const fn = function t(isChannelOpen) {
return isChannelOpen.isChannelOpen(closure_0);
};
cResult[0] = arg0;
cResult[1] = fn;
let tmp2 = fn;
} else {
tmp2 = cResult[1];
}
return VoicePanelStore(tmp2);
}) : ((arg0) => {
closure_0 = arg0;
return VoicePanelStore((isChannelOpen) => isChannelOpen.isChannelOpen(closure_0));
});
ReactCompilerGating = fn(558);
const tmp5 = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(1);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const fn = function n(isAnyVoicePanelOpen) {
return isAnyVoicePanelOpen.isAnyVoicePanelOpen();
};
cResult[0] = fn;
let first = fn;
} else {
first = cResult[0];
}
return VoicePanelStore(first);
}) : (() => VoicePanelStore((isAnyVoicePanelOpen) => isAnyVoicePanelOpen.isAnyVoicePanelOpen()));
const size = fn(2);
const result = size.fileFinishedImporting("modules/voice_panel/VoicePanelUtils.native.tsx");
export const useIsVoicePanelShowing = tmp2;
export const useIsVoicePanelFullscreen = tmp3;
export const useIsVoicePanelOpen = tmp4;
export const useIsAnyVoicePanelOpen = tmp5;
export const useIsVoicePanelMounted = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
closure_0 = arg0;
const cResult = c.c(2);
if (cResult[0] !== arg0) {
const fn = function t(isMounted) {
return isMounted.isMounted(closure_0);
};
cResult[0] = arg0;
cResult[1] = fn;
let tmp2 = fn;
} else {
tmp2 = cResult[1];
}
return VoicePanelStore(tmp2);
}) : ((arg0) => {
closure_0 = arg0;
return VoicePanelStore((isMounted) => isMounted.isMounted(closure_0));
});