100 lines
5.1 KiB
TypeScript
100 lines
5.1 KiB
TypeScript
/* Metro module 5218; source: stores/native/NUFStore.tsx; dependencies: [6, 7, 15, 17, 18, 1867, 3793, 566, 694, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import GuildStore from '../GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import RelationshipStore from '../RelationshipStore.tsx'; /* Metro dependency 3793 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun46136(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:6, offset: 0x011a0d3a, size: 335 bytes, params: 8, frame: 19
|
|
const closure = function() {
|
|
env0_7 = false;
|
|
return handleUpdate();
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const PersistedStore = (Flux).PersistedStore;
|
|
let value = _fun46142(PersistedStore);
|
|
value.displayName = 'NUFStore';
|
|
value.persistKey = 'NUFStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CACHE_LOADED: function() {
|
|
env0_7 = true;
|
|
}, CACHE_LOADED_LAZY: closure, CONNECTION_OPEN: closure});
|
|
(FileImportTrackerModule).fileFinishedImporting('stores/native/NUFStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_46137() { // fn#46137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:168, offset: 0x011a0e89, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_46137_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function handleUpdate() { // fn#46141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:444, offset: 0x011a0efc, size: 66 bytes, params: 1, frame: 11
|
|
if (env0_7) {
|
|
return false;
|
|
}
|
|
const value3 = GuildStore.getGuildCount() > 0;
|
|
let r0 = !(value3 === env0_8) && true;
|
|
r0 = value3 !== env0_9 || r0;
|
|
return r0;
|
|
}
|
|
|
|
function _fun46142(a0) { // fn#46142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:564, offset: 0x011a0f3e, size: 141 bytes, params: 2, frame: 16
|
|
const NUFStore2 = NUFStore;
|
|
Inherits(NUFStore2, a0);
|
|
return CreateClass(NUFStore2, [{key: 'initialize', value: function() {
|
|
var relationshipStoreBinding = RelationshipStore;
|
|
this.waitFor(relationshipStoreBinding, GuildStore);
|
|
this.syncWith([relationshipStoreBinding, GuildStore], handleUpdate);
|
|
}}, {key: 'getState', value: function() {
|
|
return {};
|
|
}}, {key: 'showMentionsInNotificationTab', get: get_46146}, {key: 'showQuickSwitcher', get: get_46147}]);
|
|
function NUFStore() { // fn#46143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5396:576, offset: 0x0113ed59, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, NUFStore);
|
|
const value3 = env1_3(NUFStore);
|
|
return env1_2(this, _isNativeReflectConstruct_46137() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function get_46146() { // fn#46146, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
|
|
return env1_9;
|
|
}
|
|
|
|
function get_46147() { // fn#46147, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
|
|
return env1_8;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun46136, 5218, [6, 7, 15, 17, 18, 1867, 3793, 566, 694,
|
|
2]) /* metro module 5218, dependencies: [6, 7, 15, 17, 18, 1867, 3793, 566, 694, 2] */;
|