2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 17157
|
|
|
|
|
// Function ID: 17158
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: VoicePanelContainer
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [19, 1957, 4844, 21, 504, 17158, 17202, 4259, 4347, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 17157 (VoicePanelContainer)
|
|
|
|
|
import _mod4259 from "module_4259" /* 4259 */;
|
|
|
|
|
import native from "native" /* 4347 */;
|
|
|
|
|
import VoicePanelControllerDefault from "VoicePanelController" /* 17158 */;
|
|
|
|
|
import VoicePanelUIDefault from "VoicePanelUI" /* 17202 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import VoicePanelStore from "VoicePanelStore" /* 4844 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
2026-07-20 16:05:17 +00:00
|
|
|
function VoicePanel(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_require = arg0;
|
|
|
|
|
const items = [ChannelStore];
|
|
|
|
|
const stateFromStores = require("initialize").useStateFromStores(items, () => {
|
|
|
|
|
const channel = ChannelStore.getChannel(channelId.channelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let guild_id;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (channel != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
guild_id = channel.guild_id;
|
|
|
|
|
}
|
|
|
|
|
return guild_id;
|
|
|
|
|
});
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = {};
|
|
|
|
|
const obj = require("initialize");
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged = Object.assign(arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.guildId = stateFromStores;
|
|
|
|
|
obj2.children = noop.useMemo(() => jsx(VoicePanelUIDefault, {}), []);
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(VoicePanelControllerDefault, {});
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function getChannelKey(arg0) {
|
|
|
|
|
return arg0;
|
|
|
|
|
}
|
|
|
|
|
function renderVoicePanel(arg0, channelId, transitionState, transitionCleanUp) {
|
|
|
|
|
return <VoicePanel key={arg1} channelId={arg1} transitionState={arg2} transitionCleanUp={arg3} />;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/voice_panel/native/VoicePanelContainer.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
export default noop.memo(function VoicePanelContainer() {
|
2026-09-12 13:45:10 +00:00
|
|
|
const tmp = VoicePanelStore((channels) => Array.from(channels.channels), _mod4259.shallow);
|
|
|
|
|
return jsx(native.TransitionGroup, { items: VoicePanelStore((channels) => Array.from(channels.channels), _mod4259.shallow), getItemKey: getChannelKey, renderItem: renderVoicePanel });
|
2026-09-10 05:38:07 +00:00
|
|
|
});
|