116 lines
5.3 KiB
TypeScript
116 lines
5.3 KiB
TypeScript
/* Metro module 7020; source: stores/billing/GuildBoostSlotStore.tsx; dependencies: [6, 7, 15, 17, 18, 3808, 566, 694, 2] */
|
|
function _fun55622(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:6, offset: 0x013ac4a0, size: 350 bytes, params: 8, frame: 19
|
|
const closure = GUILD_BOOST_SLOT_UPDATE_SUCCESS;
|
|
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 subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
|
|
let env0_8 = {};
|
|
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
|
let value = _fun55628(Store);
|
|
value.displayName = 'GuildBoostSlotStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {GUILD_BOOST_SLOTS_FETCH: function() {
|
|
env0_7 = true;
|
|
}, GUILD_BOOST_SLOTS_FETCH_SUCCESS: function({guildBoostSlots}) {
|
|
env0_8 = {};
|
|
guildBoostSlots.forEach(_fun55637);
|
|
env0_7 = false;
|
|
env0_6 = true;
|
|
}, GUILD_BOOST_SLOT_UPDATE_SUCCESS: closure, GUILD_BOOST_SLOT_CREATE: closure, GUILD_BOOST_SLOT_UPDATE: closure,
|
|
LOGOUT: function() {
|
|
env0_8 = {};
|
|
env0_6 = false;
|
|
env0_7 = false;
|
|
}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/billing/GuildBoostSlotStore.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_55623() { // fn#55623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:158, offset: 0x013ac5fe, 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_55623_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function GUILD_BOOST_SLOT_CREATE({guildBoostSlot}) { // fn#55626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:370, offset: 0x013ac65c, size: 43 bytes, params: 2, frame: 13
|
|
const object2 = {};
|
|
copyDataProperties(object2, env0_8, guildBoostSlot);
|
|
object2[guildBoostSlot.id] = guildBoostSlot;
|
|
}
|
|
|
|
function handleSubscriptionStoreUpdate() { // fn#55627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:441, offset: 0x013ac687, size: 101 bytes, params: 1, frame: 16
|
|
var r3;
|
|
var property;
|
|
var id;
|
|
var getSubscriptionById;
|
|
var subscriptionId;
|
|
var value4;
|
|
const object2 = {};
|
|
const Object = global.Object;
|
|
const value2 = Object.values(env0_8);
|
|
let length = value2.length;
|
|
const value3 = 0;
|
|
if (value3 < length) {
|
|
for (r3 = value3; true; r3 = value4) {
|
|
property = value2[r3];
|
|
id = property.id;
|
|
object2[id] = property;
|
|
getSubscriptionById = SubscriptionStore.getSubscriptionById;
|
|
subscriptionId = property.subscriptionId;
|
|
property.subscription = Reflect.apply(getSubscriptionById, SubscriptionStore, [subscriptionId]);
|
|
value4 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = value2.length;
|
|
if (!(value4 < length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun55628(a0) { // fn#55628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:620, offset: 0x013ac6ec, size: 162 bytes, params: 2, frame: 16
|
|
const closure = GuildBoostSlotStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'initialize', value: function() {
|
|
this.syncWith([SubscriptionStore], handleSubscriptionStoreUpdate);
|
|
}}, {key: 'hasFetched', get: get_55631}, {key: 'isFetching', get: get_55632}, {key: 'boostSlots', get: get_55633},
|
|
{key: 'getGuildBoostSlot', value: value_55634}]);
|
|
}
|
|
|
|
function GUILD_BOOST_SLOTS_FETCH_SUCCESS({guildBoostSlots}) { // fn#55636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:1367, offset: 0x013ac7b4, size: 51 bytes, params: 2, frame: 12
|
|
env0_8 = {};
|
|
guildBoostSlots.forEach(_fun55637);
|
|
}
|
|
|
|
function _fun55637(a0) { // fn#55637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:1443, offset: 0x013ac7e7, size: 23 bytes, params: 2, frame: 3
|
|
env1_8[a0.id] = a0;
|
|
}
|
|
|