148 lines
7.5 KiB
TypeScript
148 lines
7.5 KiB
TypeScript
/* Metro module 7020; source: stores/billing/GuildBoostSlotStore.tsx; dependencies: [6, 7, 15, 17, 18, 3808, 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 SubscriptionStore from './SubscriptionStore.tsx'; /* Metro dependency 3808 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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 GUILD_BOOST_SLOT_UPDATE_SUCCESS2 = GUILD_BOOST_SLOT_UPDATE_SUCCESS;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_8 = {};
|
|
const Store = (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: GUILD_BOOST_SLOT_UPDATE_SUCCESS2,
|
|
GUILD_BOOST_SLOT_CREATE: GUILD_BOOST_SLOT_UPDATE_SUCCESS2,
|
|
GUILD_BOOST_SLOT_UPDATE: GUILD_BOOST_SLOT_UPDATE_SUCCESS2, LOGOUT: function() {
|
|
env0_8 = {};
|
|
env0_6 = false;
|
|
env0_7 = false;
|
|
}});
|
|
(FileImportTrackerModule).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 object = {};
|
|
copyDataProperties(object, env0_8, guildBoostSlot);
|
|
object[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 subscriptionStoreBinding;
|
|
var getSubscriptionById;
|
|
var subscriptionId;
|
|
var value4;
|
|
const object = {};
|
|
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;
|
|
object[id] = property;
|
|
subscriptionStoreBinding = SubscriptionStore;
|
|
getSubscriptionById = subscriptionStoreBinding.getSubscriptionById;
|
|
subscriptionId = property.subscriptionId;
|
|
property.subscription = Reflect.apply(getSubscriptionById, subscriptionStoreBinding, [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 GuildBoostSlotStore2 = GuildBoostSlotStore;
|
|
Inherits(GuildBoostSlotStore2, a0);
|
|
return CreateClass(GuildBoostSlotStore2, [{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 GuildBoostSlotStore() { // fn#55629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:632, offset: 0x00fbdfd6, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, GuildBoostSlotStore);
|
|
const value3 = env1_3(GuildBoostSlotStore);
|
|
return env1_2(this, _isNativeReflectConstruct_55623() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function get_55631() { // fn#55631, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
|
|
return env1_6;
|
|
}
|
|
|
|
function get_55632() { // fn#55632, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
|
|
return env1_7;
|
|
}
|
|
|
|
function get_55633() { // fn#55633, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
|
|
return env1_8;
|
|
}
|
|
|
|
function value_55634(a0) { // fn#55634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7198:1170, offset: 0x00ff623a, size: 16 bytes, params: 2, frame: 2
|
|
return env1_8[a0];
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun55622, 7020, [6, 7, 15, 17, 18, 3808, 566, 694,
|
|
2]) /* metro module 7020, dependencies: [6, 7, 15, 17, 18, 3808, 566, 694, 2] */;
|