71 lines
3.3 KiB
TypeScript
71 lines
3.3 KiB
TypeScript
/* Metro module 8831; source: modules/blocking/useDiscoverableApplicationStream.tsx; dependencies: [4492, 3793, 661, 566, 2] */
|
|
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 closure = getDiscoverableApplicationStream;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
|
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/blocking/useDiscoverableApplicationStream.tsx');
|
|
exports.default = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[3]).useStateFromStores([ApplicationStreamingStore, RelationshipStore], _fun68987,
|
|
[a0]);
|
|
};
|
|
exports.getDiscoverableApplicationStream = closure;
|
|
}
|
|
|
|
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 (require(566) /* metro dependency 566: flux */).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]);
|
|
}
|
|
|