71 lines
3.9 KiB
TypeScript
71 lines
3.9 KiB
TypeScript
/* Metro module 9298; source: modules/rtc/hooks/useIsEmptyRTCConnection.tsx; dependencies: [1226, 4294, 4395, 566, 2] */
|
|
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
|
|
import RTCConnectionStore from '../../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
|
|
import StreamRTCConnectionStore from '../../../stores/StreamRTCConnectionStore.tsx'; /* Metro dependency 4395 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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 (FluxModule).useStateFromStores([StreamRTCConnectionStore,
|
|
AuthenticationStore], _fun72690);
|
|
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 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 (FluxModule).useStateFromStores([RTCConnectionStore, AuthenticationStore],
|
|
_fun72692);
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun72687, 9298, [1226, 4294, 4395, 566,
|
|
2]) /* metro module 9298, dependencies: [1226, 4294, 4395, 566, 2] */;
|