2026-07-29 08:29:29 +00:00
|
|
|
// Module ID: 10531
|
|
|
|
|
// Function ID: 10532
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsFiveButtonLayout
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [1372, 1862, 589, 10239, 10532, 10534, 6049, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: useIsFiveButtonLayout
|
|
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
// Module 10531 (useIsFiveButtonLayout)
|
|
|
|
|
import ensureGuildLoaded from "ensureGuildLoaded";
|
|
|
|
|
import createGuildRecordFromRust from "createGuildRecordFromRust";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("initialize").fileFinishedImporting("modules/video_calls/native/useIsFiveButtonLayout.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useIsFiveButtonLayout = function useIsFiveButtonLayout(id) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = id;
|
2026-07-29 08:29:29 +00:00
|
|
|
const items = [ensureGuildLoaded];
|
|
|
|
|
const stateFromStores = _require(589).useStateFromStores(items, () => outer1_3.getChannel(closure_0));
|
|
|
|
|
const obj = _require(589);
|
|
|
|
|
const tmp = _require;
|
|
|
|
|
let isConnectedToVoiceChannel = _require(10239).useIsConnectedToVoiceChannel(stateFromStores);
|
2026-07-20 16:05:17 +00:00
|
|
|
let guild_id;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
guild_id = stateFromStores.guild_id;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (guild_id == null) {
|
|
|
|
|
guild_id = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let guild_id1;
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj3 = _require(10239);
|
|
|
|
|
if (stateFromStores != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
guild_id1 = stateFromStores.guild_id;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (guild_id1 == null) {
|
|
|
|
|
guild_id1 = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
id = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
id = stateFromStores.id;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp6 = guild_id(10532);
|
|
|
|
|
const tmp6Result = guild_id(10532)(guild_id1, id);
|
|
|
|
|
const items1 = [createGuildRecordFromRust];
|
|
|
|
|
const items2 = [guild_id];
|
|
|
|
|
const stateFromStores1 = tmp(589).useStateFromStores(items1, () => outer1_4.getGuild(guild_id), items2);
|
|
|
|
|
if (stateFromStores1 != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const afkChannelId = stateFromStores1.afkChannelId;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let flag;
|
|
|
|
|
if (stateFromStores != null) {
|
|
|
|
|
flag = stateFromStores.isGuildVoice();
|
|
|
|
|
}
|
|
|
|
|
if (flag == null) {
|
|
|
|
|
flag = false;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let id1;
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmpResult = tmp(589);
|
|
|
|
|
if (stateFromStores != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
id1 = stateFromStores.id;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp5Result = guild_id(10534);
|
|
|
|
|
const tmp5ResultResult = guild_id(10534)(id1);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isConnectedToVoiceChannel) {
|
2026-07-29 08:29:29 +00:00
|
|
|
isConnectedToVoiceChannel = tmp6Result;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (isConnectedToVoiceChannel) {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (!flag) {
|
|
|
|
|
flag = tmp5ResultResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
isConnectedToVoiceChannel = flag;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (isConnectedToVoiceChannel) {
|
2026-07-29 08:29:29 +00:00
|
|
|
isConnectedToVoiceChannel = !tmp14;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (isConnectedToVoiceChannel) {
|
|
|
|
|
isConnectedToVoiceChannel = afkChannelId !== id;
|
|
|
|
|
}
|
|
|
|
|
return isConnectedToVoiceChannel;
|
|
|
|
|
};
|