88 lines
4.1 KiB
TypeScript
88 lines
4.1 KiB
TypeScript
/* Metro module 14576; source: modules/game_claim/UnclaimedGamesStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 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 env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
const Store = (importDefault(566) /* metro dependency 566: 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;
|
|
}});
|
|
(require(2) /* metro dependency 2 */).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 closure = UnclaimedGamesStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'getMap', value: value_110278}, {key: 'getUnclaimedGameIdsForGuild',
|
|
value: value_110279}, {key: 'hasUnclaimedGames', value: value_110280}, {key: 'getGuildIdsWithUnclaimedGames',
|
|
value: value_110281}]);
|
|
}
|
|
|
|
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 (env0_0[a0] ?? []).length > 0;
|
|
}
|
|
|