66 lines
3.3 KiB
TypeScript
66 lines
3.3 KiB
TypeScript
/* Metro module 9298; source: modules/rtc/hooks/useIsEmptyRTCConnection.tsx; dependencies: [1226, 4294, 4395, 566, 2] */
|
|
function _fun72687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:6, offset: 0x01d4e75b, size: 170 bytes, params: 8, frame: 19
|
|
let env0_0 = require;
|
|
const isEmpty_72688 = function(a0, a1) {
|
|
return a0.size === 0 || a0.size === 1 && a0.has(a1);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
|
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
|
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useIsEmptyRTCConnection.tsx');
|
|
exports.useIsStreamRTCConnectionEmpty = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[3]).useStateFromStores([StreamRTCConnectionStore, AuthenticationStore], _fun72690);
|
|
};
|
|
exports.useIsCallRTCConnectionEmpty = function() {
|
|
return require(dependencyMap[3]).useStateFromStores([RTCConnectionStore, AuthenticationStore], _fun72692);
|
|
};
|
|
}
|
|
|
|
function useIsStreamRTCConnectionEmpty(a0) { // fn#72689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:299, offset: 0x01d4e837, size: 74 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([StreamRTCConnectionStore,
|
|
AuthenticationStore], _fun72690);
|
|
}
|
|
|
|
function useIsCallRTCConnectionEmpty() { // fn#72691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:500, offset: 0x01d4e8cb, size: 67 bytes, params: 1, frame: 14
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore, AuthenticationStore],
|
|
_fun72692);
|
|
}
|
|
|
|
function _fun72690() { // fn#72690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:382, offset: 0x01d4e881, size: 74 bytes, params: 1, frame: 14
|
|
var r0;
|
|
var isEmpty_726882;
|
|
if (env0_0 == null) {
|
|
return true;
|
|
}
|
|
const value3 = StreamRTCConnectionStore.getUserIds(env0_0) == null;
|
|
if (value3) {
|
|
r0 = value3;
|
|
} else {
|
|
isEmpty_726882 = isEmpty_72688(isEmpty_726882, AuthenticationStore.getId());
|
|
r0 = isEmpty_726882;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun72692() { // fn#72692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:580, offset: 0x01d4e90e, size: 54 bytes, params: 1, frame: 14
|
|
var r0;
|
|
var isEmpty_72688Binding;
|
|
let value = environment.__proto__;
|
|
const userIds = RTCConnectionStore.getUserIds();
|
|
const value3 = userIds == null;
|
|
if (value3) {
|
|
r0 = value3;
|
|
} else {
|
|
isEmpty_72688Binding = isEmpty_72688;
|
|
value = AuthenticationStore.getId();
|
|
value = isEmpty_72688Binding(userIds, value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|