Files
discord-decomp/sources/modules/guild_boosting/GuildBoostingProgressBarPersistedStore.tsx
T
2026-07-28 01:06:53 +03:00

96 lines
5.4 KiB
TypeScript

/* Metro module 14690; source: modules/guild_boosting/GuildBoostingProgressBarPersistedStore.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 _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});
let env0_5 = {};
const PersistedStore = (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 = {};
}});
(FileImportTrackerModule).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 GuildBoostingProgressBarPersistedStore2 = GuildBoostingProgressBarPersistedStore;
Inherits(GuildBoostingProgressBarPersistedStore2, a0);
return CreateClass(GuildBoostingProgressBarPersistedStore2, [{key: 'initialize', value: value_110847}, {key: 'getState',
value: value_110848}, {key: 'getCountForGuild', value: value_110849}]);
function GuildBoostingProgressBarPersistedStore() { // fn#110846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14887:368, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, GuildBoostingProgressBarPersistedStore);
const value3 = env1_3(GuildBoostingProgressBarPersistedStore);
return env1_2(this, _isNativeReflectConstruct_110842() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_110847(a0) { // fn#110847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14887:776, offset: 0x00e404db, size: 20 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
env1_5 = a0;
}
}
function value_110848() { // fn#110848, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
function value_110849(a0) { // fn#110849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14887:879, offset: 0x01e1641f, size: 16 bytes, params: 2, frame: 2
return env1_5[a0];
}
}
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 object = {};
copyDataProperties(object, env0_5, undefined);
object[guildId] = premiumCount;
}
}
global.__d(_fun110841, 14690, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 14690, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;