76 lines
3.9 KiB
TypeScript
76 lines
3.9 KiB
TypeScript
/* Metro module 8831; source: modules/blocking/useDiscoverableApplicationStream.tsx; dependencies: [4492, 3793, 661, 566, 2] */
|
|
import RelationshipStore from '../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
|
|
import ApplicationStreamingStore from '../../stores/ApplicationStreamingStore.tsx'; /* Metro dependency 4492 */
|
|
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 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun68984(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9016:6, offset: 0x01c63ca2, size: 171 bytes, params: 8, frame: 20
|
|
let env0_0 = require;
|
|
const getDiscoverableApplicationStream2 = getDiscoverableApplicationStream;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/blocking/useDiscoverableApplicationStream.tsx');
|
|
exports.default = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[3]).useStateFromStores([ApplicationStreamingStore, RelationshipStore], _fun68987,
|
|
[a0]);
|
|
};
|
|
exports.getDiscoverableApplicationStream = getDiscoverableApplicationStream2;
|
|
function getDiscoverableApplicationStream(a0) { // fn#68985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9016:144, offset: 0x01c63d4d, size: 186 bytes, params: 2, frame: 16
|
|
var r1;
|
|
var r0;
|
|
var r3;
|
|
var item3;
|
|
let value = a1;
|
|
const value2 = undefined;
|
|
const iterator = (value !== value2 ? value : [ApplicationStreamingStore, RelationshipStore])[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let item2 = Reflect.apply(iterator2, iterator, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
const r4 = item2 === value2 ? value2 : item;
|
|
if (value) {
|
|
r0 = item2;
|
|
r1 = value2;
|
|
r3 = value;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value = item3 === value2;
|
|
if (value) {
|
|
r0 = item3;
|
|
r1 = value2;
|
|
r3 = value;
|
|
} else {
|
|
r0 = item3;
|
|
r1 = item;
|
|
r3 = value;
|
|
}
|
|
}
|
|
if (!r3) {
|
|
r0.return();
|
|
}
|
|
value = null;
|
|
const r5 = value != a0 ? r1.getRelationshipType(a0) : RelationshipTypes.NONE;
|
|
r1 = value != a0 ? r4.getAnyDiscoverableStreamForUser(a0) : value;
|
|
const BLOCKED = RelationshipTypes.BLOCKED;
|
|
return r5 === BLOCKED || value == a0 ? value : r1;
|
|
}
|
|
|
|
function useDiscoverableApplicationStream(a0) { // fn#68986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9016:433, offset: 0x01c63e07, size: 83 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
return (FluxModule).useStateFromStores([ApplicationStreamingStore,
|
|
RelationshipStore], _fun68987, [a0]);
|
|
function _fun68987() { // fn#68987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9016:519, offset: 0x01c63e5a, size: 44 bytes, params: 1, frame: 14
|
|
return getDiscoverableApplicationStream(env0_0, [ApplicationStreamingStore, RelationshipStore]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68984, 8831, [4492, 3793, 661, 566,
|
|
2]) /* metro module 8831, dependencies: [4492, 3793, 661, 566, 2] */;
|