105 lines
5.7 KiB
TypeScript
105 lines
5.7 KiB
TypeScript
/* Metro module 14576; source: modules/game_claim/UnclaimedGamesStore.tsx; dependencies: [6, 7, 15, 17, 18, 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun110272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:6, offset: 0x023729fd, size: 285 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Store = (Flux).Store;
|
|
let value = _fun110276(Store);
|
|
value.displayName = 'UnclaimedGamesStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
|
|
env0_5 = null;
|
|
}, UNCLAIMED_GAMES_FETCH_SUCCESS: function(a0) {
|
|
env0_5 = a0.guildIdToGameIds;
|
|
}});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/game_claim/UnclaimedGamesStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_110273() { // fn#110273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:148, offset: 0x02372b1a, size: 98 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_110273_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun110276(a0) { // fn#110276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:358, offset: 0x02372b7c, size: 155 bytes, params: 2, frame: 16
|
|
const UnclaimedGamesStore2 = UnclaimedGamesStore;
|
|
Inherits(UnclaimedGamesStore2, a0);
|
|
return CreateClass(UnclaimedGamesStore2, [{key: 'getMap', value: value_110278}, {key: 'getUnclaimedGameIdsForGuild',
|
|
value: value_110279}, {key: 'hasUnclaimedGames', value: value_110280}, {key: 'getGuildIdsWithUnclaimedGames',
|
|
value: value_110281}]);
|
|
function UnclaimedGamesStore() { // fn#110277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:370, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, UnclaimedGamesStore);
|
|
const value3 = env1_3(UnclaimedGamesStore);
|
|
return env1_2(this, _isNativeReflectConstruct_110273() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_110278() { // fn#110278, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
|
|
return env1_5;
|
|
}
|
|
|
|
function value_110279(a0) { // fn#110279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:742, offset: 0x02372c17, size: 35 bytes, params: 2, frame: 4
|
|
const value = environment.__proto__;
|
|
let r0 = env1_5?.[a0];
|
|
r0 = r0 ?? [];
|
|
return r0;
|
|
}
|
|
|
|
function value_110280(a0) { // fn#110280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:841, offset: 0x02372c3a, size: 45 bytes, params: 2, frame: 4
|
|
const value = environment.__proto__;
|
|
const r1 = env1_5?.[a0];
|
|
return r1 != null && r1.length > 0;
|
|
}
|
|
|
|
function value_110281() { // fn#110281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:957, offset: 0x02372c67, size: 66 bytes, params: 1, frame: 12
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
if (env1_5 == null) {
|
|
return [];
|
|
}
|
|
const binding = env1_5;
|
|
const Object = global.Object;
|
|
return Object.keys(binding).filter(_fun110282);
|
|
function _fun110282(a0) { // fn#110282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:1026, offset: 0x02372ca9, size: 37 bytes, params: 2, frame: 2
|
|
return (ClassCallCheck[a0] ?? []).length > 0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun110272, 14576, [6, 7, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 14576, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
|