67 lines
3.3 KiB
TypeScript
67 lines
3.3 KiB
TypeScript
/* Metro module 14690; source: modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
|
function _fun110841(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14887:6, offset: 0x02389586, size: 299 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 */;
|
|
let env0_5 = {};
|
|
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
|
let value = _fun110845(PersistedStore);
|
|
value.displayName = 'GuildBoostingProgressBarPersistedStore';
|
|
value.persistKey = 'PremiumGuildProgressBarPersistedStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{APPLIED_GUILD_BOOST_COUNT_UPDATE: APPLIED_GUILD_BOOST_COUNT_UPDATE,
|
|
APPLIED_GUILD_BOOST_COUNT_RESET: function() {
|
|
env0_5 = {};
|
|
}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_110842() { // fn#110842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14887:148, offset: 0x023896b1, 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_110842_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun110845(a0) { // fn#110845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14887:356, offset: 0x02389713, size: 124 bytes, params: 2, frame: 16
|
|
const closure = GuildBoostingProgressBarPersistedStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'initialize', value: value_110847}, {key: 'getState', value: value_110848},
|
|
{key: 'getCountForGuild', value: value_110849}]);
|
|
}
|
|
|
|
function APPLIED_GUILD_BOOST_COUNT_UPDATE({guildId, premiumCount}) { // fn#110850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14887:1094, offset: 0x0238978f, size: 43 bytes, params: 2, frame: 14
|
|
const object2 = {};
|
|
copyDataProperties(object2, env0_5, undefined);
|
|
object2[guildId] = premiumCount;
|
|
}
|
|
|