Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
76 lines
2.4 KiB
TypeScript
76 lines
2.4 KiB
TypeScript
// Module ID: 9968
|
|
// Function ID: 9969
|
|
// Name: useIsSecureFramesUIEnabled
|
|
// Dependencies: [2045, 4781, 9950, 558, 568, 504, 2]
|
|
|
|
// Module 9968 (useIsSecureFramesUIEnabled)
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4781 */;
|
|
|
|
const require = fn;
|
|
function isSecureFramesUIEnabled(isCallRTCConnectionEmpty, items) {
|
|
[obj, obj2] = items;
|
|
if (null == isCallRTCConnectionEmpty) {
|
|
return false;
|
|
} else if (obj.getChannelId() !== isCallRTCConnectionEmpty) {
|
|
return false;
|
|
} else {
|
|
const channel = obj2.getChannel(isCallRTCConnectionEmpty);
|
|
if (null != channel) {
|
|
if (!channel.isGuildStageVoice()) {
|
|
const secureFramesState = obj.getSecureFramesState();
|
|
let version;
|
|
if (secureFramesState != null) {
|
|
version = secureFramesState.version;
|
|
}
|
|
let tmp3 = null != version;
|
|
if (tmp3) {
|
|
tmp3 = version !== closure_4;
|
|
}
|
|
return tmp3;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
let closure_4 = fn(9950).END_TO_END_ENCRYPTION_DISABLED;
|
|
const ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/rtc/hooks/useIsSecureFramesUIEnabled.tsx");
|
|
|
|
export const useIsSecureFramesUIEnabled = ReactCompilerGating.isReactCompilerEnabled() ? ((channelId) => {
|
|
const cResult = channelId(568).c(4);
|
|
channelId = channelId.channelId;
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
let items = [RTCConnectionStore, ChannelStore];
|
|
cResult[0] = items;
|
|
let first = items;
|
|
} else {
|
|
first = cResult[0];
|
|
}
|
|
if (cResult[1] !== channelId) {
|
|
const fn = function l() {
|
|
const items = [RTCConnectionStore, ChannelStore];
|
|
return isSecureFramesUIEnabled(channelId, items);
|
|
};
|
|
const items1 = [channelId];
|
|
cResult[1] = channelId;
|
|
cResult[2] = fn;
|
|
cResult[3] = items1;
|
|
let tmp8 = items1;
|
|
let tmp7 = fn;
|
|
} else {
|
|
tmp7 = cResult[2];
|
|
tmp8 = cResult[3];
|
|
}
|
|
const obj = channelId(568);
|
|
return channelId(504).useStateFromStores(first, tmp7, tmp8);
|
|
}) : ((channelId) => {
|
|
channelId = channelId.channelId;
|
|
let items = [RTCConnectionStore, ChannelStore];
|
|
const items1 = [channelId];
|
|
return channelId(504).useStateFromStores(items, () => {
|
|
const items = [RTCConnectionStore, ChannelStore];
|
|
return isSecureFramesUIEnabled(channelId, items);
|
|
}, items1);
|
|
});
|