Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,110 @@
|
||||
/* Metro module 7713; source: modules/voice_panel/VoicePanelUtils.native.tsx; dependencies: [1379, 4294, 7710, 7711, 632, 2] */
|
||||
function _fun61652(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:6, offset: 0x01b473f5, size: 201 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const voicePanelStore = importDefault(7710) /* metro dependency 7710: VoicePanelStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/VoicePanelUtils.native.tsx');
|
||||
exports.isVoicePanelEnabled = isVoicePanelEnabled;
|
||||
exports.useIsVoicePanelShowing = function() {
|
||||
return require(dependencyMap[4]).useStateFromStores([ChannelStore, RTCConnectionStore], _fun61655);
|
||||
};
|
||||
exports.useIsVoicePanelFullscreen = function() {
|
||||
return VoicePanelStore(_fun61657);
|
||||
};
|
||||
exports.useIsVoicePanelOpen = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return VoicePanelStore(_fun61659);
|
||||
};
|
||||
exports.useIsAnyVoicePanelOpen = function() {
|
||||
return VoicePanelStore(_fun61661);
|
||||
};
|
||||
exports.useIsVoicePanelMounted = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return VoicePanelStore(_fun61663);
|
||||
};
|
||||
}
|
||||
|
||||
function isVoicePanelEnabled(a0) { // fn#61653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:228, offset: 0x01b474be, size: 92 bytes, params: 2, frame: 14
|
||||
var r2;
|
||||
var r0;
|
||||
var r1;
|
||||
let value = undefined;
|
||||
const isStageVoicePanelEnabled2 = (require(7711) /* metro dependency 7711: StageVoicePanelExperiment */).isStageVoicePanelEnabled('voice_panel_utils');
|
||||
if (isStageVoicePanelEnabled2) {
|
||||
r0 = !isStageVoicePanelEnabled2;
|
||||
r1 = value;
|
||||
} else {
|
||||
r2 = a0 == null ? value : a0.isGuildStageVoice();
|
||||
value = r2 != null;
|
||||
r0 = value;
|
||||
r1 = r2;
|
||||
}
|
||||
r0 = r0 && r1;
|
||||
return !r0;
|
||||
}
|
||||
|
||||
function useIsVoicePanelShowing() { // fn#61654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:407, offset: 0x01b4751a, size: 65 bytes, params: 1, frame: 14
|
||||
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChannelStore,
|
||||
RTCConnectionStore], _fun61655);
|
||||
}
|
||||
|
||||
function useIsVoicePanelFullscreen() { // fn#61656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:703, offset: 0x01b475cf, size: 23 bytes, params: 1, frame: 11
|
||||
return VoicePanelStore(function(a0) {
|
||||
return a0.isVoicePanelFullscreen();
|
||||
});
|
||||
}
|
||||
|
||||
function useIsVoicePanelOpen(a0) { // fn#61658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:805, offset: 0x01b475f5, size: 30 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return VoicePanelStore(_fun61659);
|
||||
}
|
||||
|
||||
function useIsAnyVoicePanelOpen() { // fn#61660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:897, offset: 0x01b4762a, size: 23 bytes, params: 1, frame: 11
|
||||
return VoicePanelStore(function(a0) {
|
||||
return a0.isAnyVoicePanelOpen();
|
||||
});
|
||||
}
|
||||
|
||||
function useIsVoicePanelMounted(a0) { // fn#61662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:996, offset: 0x01b47650, size: 30 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return VoicePanelStore(_fun61663);
|
||||
}
|
||||
|
||||
function _fun61655() { // fn#61655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:482, offset: 0x01b4755b, size: 116 bytes, params: 1, frame: 14
|
||||
var r1;
|
||||
var r0;
|
||||
var isGuildStageVoice2;
|
||||
let value = environment.__proto__;
|
||||
const ChannelStore2 = ChannelStore !== undefined ? ChannelStore : ChannelStore;
|
||||
const RTCConnectionStore2 = RTCConnectionStore !== undefined ? RTCConnectionStore : RTCConnectionStore;
|
||||
const getChannel = ChannelStore2.getChannel;
|
||||
const getChannelId = RTCConnectionStore2.getChannelId;
|
||||
const value2 = Reflect.apply(getChannel, ChannelStore2, [Reflect.apply(getChannelId, RTCConnectionStore2, [])]);
|
||||
const value3 = value2 != null;
|
||||
if (value3) {
|
||||
isGuildStageVoice2 = value2.isGuildStageVoice();
|
||||
if (isGuildStageVoice2) {
|
||||
value = require(7711) /* metro dependency 7711: StageVoicePanelExperiment */;
|
||||
value = value.isStageVoicePanelEnabled('voice_panel_utils');
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = !isGuildStageVoice2;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun61659(a0) { // fn#61659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:847, offset: 0x01b47613, size: 23 bytes, params: 2, frame: 11
|
||||
return a0.isChannelOpen(env0_0);
|
||||
}
|
||||
|
||||
function _fun61663(a0) { // fn#61663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7891:1041, offset: 0x01b4766e, size: 23 bytes, params: 2, frame: 11
|
||||
return a0.isMounted(env0_0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user