63 lines
3.8 KiB
TypeScript
63 lines
3.8 KiB
TypeScript
/* Metro module 15414; source: modules/video_calls/native/useChannelFloatingCTAContent.tsx; dependencies: [31, 4259, 4294, 632, 9324, 1365, 2] */
|
|
import MediaEngineStore from '../../../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */
|
|
import RTCConnectionStore from '../../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
|
|
import UseGameConsoleAccounts from '../../game_console/useGameConsoleAccounts.tsx'; /* Metro dependency 9324 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as Dismissible_contentModule from '../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
|
|
|
|
function _fun117912(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15611:6, offset: 0x024c4eba, size: 153 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/video_calls/native/useChannelFloatingCTAContent.tsx');
|
|
exports.default = useChannelFloatingCTAContent;
|
|
function useChannelFloatingCTAContent(a0) { // fn#117913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15611:229, offset: 0x024c4f53, size: 175 bytes, params: 2, frame: 19
|
|
const env0_0 = a0;
|
|
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([RTCConnectionStore],
|
|
_fun117914);
|
|
const value3 = (UseGameConsoleAccounts)();
|
|
const value4 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([MediaEngineStore],
|
|
function() {
|
|
return MediaEngineStore.isAnyLocalVideoAutoDisabled();
|
|
});
|
|
return value4.useMemo(_fun117916, [value4, value3, value2]);
|
|
function _fun117914() { // fn#117914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15611:308, offset: 0x024c5002, size: 43 bytes, params: 1, frame: 11
|
|
return env0_0 != null && RTCConnectionStore.getChannelId() === env0_0;
|
|
}
|
|
|
|
function _fun117916() { // fn#117916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15611:450, offset: 0x024c5042, size: 191 bytes, params: 1, frame: 14
|
|
var environment;
|
|
var push;
|
|
var value2;
|
|
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
|
|
var value3;
|
|
const items2 = [];
|
|
if (ReactModule) {
|
|
push = items2.push;
|
|
value2 = environment.__proto__;
|
|
Reflect.apply(push, items2, [DismissibleContent.VOICE_PANEL_BAD_CONNECTION_CTA]);
|
|
}
|
|
if (env0_2) {
|
|
push = items2.push;
|
|
value3 = environment.__proto__;
|
|
Reflect.apply(push, items2, [DismissibleContent.SOUNDBOARD_MOBILE_FLOATING_CTA]);
|
|
}
|
|
const binding = env0_1;
|
|
if (binding.some(function(a0) {
|
|
return a0.twoWayLink;
|
|
})) {
|
|
push = items2.push;
|
|
value = environment.__proto__;
|
|
Reflect.apply(push, items2, [DismissibleContent.DONUT_MOBILE_NUX]);
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun117912, 15414, [31, 4259, 4294, 632, 9324, 1365,
|
|
2]) /* metro module 15414, dependencies: [31, 4259, 4294, 632, 9324, 1365, 2] */;
|