This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,11 +1,13 @@
/* Metro module 13895; source: modules/premium/FriendAnniversaryNotificationUtils.tsx; dependencies: [661, 3796, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../notifications/NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105571(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14092:6, offset: 0x022bcee5, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_4 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/FriendAnniversaryNotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/FriendAnniversaryNotificationUtils.tsx');
exports.onFriendAnniversaryNotificationSettingsChanged = function(a0) {
require(dependencyMap[2]).EnableFriendAnniversaryNotifications.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun105571(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105571, 13895, [661, 3796, 3829, 683,
2]) /* metro module 13895, dependencies: [661, 3796, 3829, 683, 2] */;
+62 -58
View File
@@ -1,73 +1,77 @@
/* Metro module 6823; source: modules/premium/GuildCapUpsellHooks.tsx; dependencies: [1867, 1878, 661, 566, 6824, 3802, 2] */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import PremiumUtils from '../../utils/PremiumUtils.tsx'; /* Metro dependency 3802 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as HotspotModule from '../hotspot/index.tsx'; /* Metro dependency 6824 */
function _fun53635(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:6, offset: 0x0135204c, size: 195 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = hasIncreasedGuildCap;
const hasIncreasedGuildCap2 = hasIncreasedGuildCap;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).MAX_USER_GUILDS;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/GuildCapUpsellHooks.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/GuildCapUpsellHooks.tsx');
exports.useShouldShowInlineGuildCapUpsell = useShouldShowInlineGuildCapUpsell;
exports.hideInlineGuildCapUpsell = hideInlineGuildCapUpsell;
exports.hasIncreasedGuildCap = closure;
exports.hasIncreasedGuildCap = hasIncreasedGuildCap2;
exports.isAtGuildCapAndNonPremium = isAtGuildCapAndNonPremium;
}
function hasIncreasedGuildCap(a0) { // fn#53636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:142, offset: 0x0135210f, size: 71 bytes, params: 2, frame: 12
var r0;
let value = undefined;
const canUseIncreasedGuildCap2 = (importDefault(3802) /* metro dependency 3802: PremiumUtils */).canUseIncreasedGuildCap(a0);
if (canUseIncreasedGuildCap2) {
r0 = canUseIncreasedGuildCap2;
} else {
value = (a0 == null ? value : a0.isStaff()) === true;
r0 = value;
function hasIncreasedGuildCap(a0) { // fn#53636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:142, offset: 0x0135210f, size: 71 bytes, params: 2, frame: 12
var r0;
let value = undefined;
const canUseIncreasedGuildCap2 = (PremiumUtils).canUseIncreasedGuildCap(a0);
if (canUseIncreasedGuildCap2) {
r0 = canUseIncreasedGuildCap2;
} else {
value = (a0 == null ? value : a0.isStaff()) === true;
r0 = value;
}
return r0;
}
return r0;
}
function useShouldShowInlineGuildCapUpsell() { // fn#53637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:361, offset: 0x01352156, size: 158 bytes, params: 1, frame: 20
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const value2 = Reflect.apply(useStateFromStores, fluxModule, [[GuildStore], _fun53638]);
const moduleValue2 = fluxModule;
useStateFromStores = moduleValue2.useStateFromStores;
let HotspotStore = (require(6824) /* metro dependency 6824: hotspot */).HotspotStore;
return value2 && Reflect.apply(useStateFromStores, moduleValue2, [[HotspotStore], function() {
var HotspotStore = require(dependencyMap[4]).HotspotStore;
return HotspotStore.hasHotspot(require(dependencyMap[4]).HotspotLocations.GUILD_CAP_INLINE_UPSELL);
}]) && fluxModule.useStateFromStoresObject([UserStore], function() {
return !importDefault(dependencyMap[5]).isPremium(UserStore.getCurrentUser());
});
}
function useShouldShowInlineGuildCapUpsell() { // fn#53637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:361, offset: 0x01352156, size: 158 bytes, params: 1, frame: 20
let useStateFromStores = FluxModule.useStateFromStores;
const value2 = Reflect.apply(useStateFromStores, FluxModule, [[GuildStore], _fun53638]);
useStateFromStores = FluxModule.useStateFromStores;
let HotspotStore = (HotspotModule).HotspotStore;
return value2 && Reflect.apply(useStateFromStores, FluxModule, [[HotspotStore], function() {
var HotspotStore = require(dependencyMap[4]).HotspotStore;
return HotspotStore.hasHotspot(require(dependencyMap[4]).HotspotLocations.GUILD_CAP_INLINE_UPSELL);
}]) && FluxModule.useStateFromStoresObject([UserStore], function() {
return !importDefault(dependencyMap[5]).isPremium(UserStore.getCurrentUser());
});
function _fun53638() { // fn#53638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:444, offset: 0x013521f4, size: 26 bytes, params: 1, frame: 9
const value = environment.__proto__;
return GuildStore.getGuildCount() >= 95;
}
function hideInlineGuildCapUpsell() { // fn#53641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:741, offset: 0x01352285, size: 59 bytes, params: 1, frame: 14
const value = require(6824) /* metro dependency 6824: hotspot */;
const hideHotspot = value.hideHotspot;
const HotspotLocations = (require(6824) /* metro dependency 6824: hotspot */).HotspotLocations;
const GUILD_CAP_INLINE_UPSELL = HotspotLocations.GUILD_CAP_INLINE_UPSELL;
Reflect.apply(hideHotspot, value, [GUILD_CAP_INLINE_UPSELL]);
}
function isAtGuildCapAndNonPremium() { // fn#53642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:920, offset: 0x013522c0, size: 57 bytes, params: 1, frame: 12
var r0;
var hasIncreasedGuildCapBinding;
var value;
const value3 = GuildStore.getGuildCount() >= MAX_USER_GUILDS;
if (value3) {
hasIncreasedGuildCapBinding = hasIncreasedGuildCap;
value = UserStore.getCurrentUser();
value = !hasIncreasedGuildCapBinding(value);
r0 = value;
} else {
r0 = value3;
}
return r0;
}
function _fun53638() { // fn#53638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:444, offset: 0x013521f4, size: 26 bytes, params: 1, frame: 9
const value = environment.__proto__;
return GuildStore.getGuildCount() >= 95;
function hideInlineGuildCapUpsell() { // fn#53641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:741, offset: 0x01352285, size: 59 bytes, params: 1, frame: 14
const hideHotspot = HotspotModule.hideHotspot;
const HotspotLocations = (HotspotModule).HotspotLocations;
const GUILD_CAP_INLINE_UPSELL = HotspotLocations.GUILD_CAP_INLINE_UPSELL;
Reflect.apply(hideHotspot, HotspotModule, [GUILD_CAP_INLINE_UPSELL]);
}
function isAtGuildCapAndNonPremium() { // fn#53642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7001:920, offset: 0x013522c0, size: 57 bytes, params: 1, frame: 12
var r0;
var hasIncreasedGuildCapBinding;
var value;
const value3 = GuildStore.getGuildCount() >= MAX_USER_GUILDS;
if (value3) {
hasIncreasedGuildCapBinding = hasIncreasedGuildCap;
value = UserStore.getCurrentUser();
value = !hasIncreasedGuildCapBinding(value);
r0 = value;
} else {
r0 = value3;
}
return r0;
}
}
global.__d(_fun53635, 6823, [1867, 1878, 661, 566, 6824, 3802,
2]) /* metro module 6823, dependencies: [1867, 1878, 661, 566, 6824, 3802, 2] */;
@@ -1,33 +1,37 @@
/* Metro module 14225; source: modules/premium/OverridePremiumTypeActions.tsx; dependencies: [1878, 694, 7141, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun107573(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14422:6, offset: 0x023013b9, size: 133 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/OverridePremiumTypeActions.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/OverridePremiumTypeActions.tsx');
exports.updateClientPremiumTypeOverride = updateClientPremiumTypeOverride;
exports.updateClientCreatedAtOverride = updateClientCreatedAtOverride;
}
function updateClientPremiumTypeOverride(a0, a1) { // fn#107574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14422:220, offset: 0x0230143e, size: 186 bytes, params: 3, frame: 18
let value = a1;
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
let object2 = {type: 'SET_PREMIUM_TYPE_OVERRIDE', premiumType: a0};
defaultImport.dispatch(object2);
const r6 = value ?? UserStore.getCurrentUser();
if (r6 != null) {
value = defaultImport;
value.dispatch({type: 'UPDATE_CLIENT_PREMIUM_TYPE', user: r6});
value = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = value.dispatch;
object2 = {type: 'CURRENT_USER_UPDATE'};
object2.user = (require(7141) /* metro dependency 7141: createMessage */).userRecordToServer(r6);
Reflect.apply(dispatch, value, [object2]);
function updateClientPremiumTypeOverride(a0, a1) { // fn#107574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14422:220, offset: 0x0230143e, size: 186 bytes, params: 3, frame: 18
let value = a1;
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
let object = {type: 'SET_PREMIUM_TYPE_OVERRIDE', premiumType: a0};
defaultImport.dispatch(object);
const r6 = value ?? UserStore.getCurrentUser();
if (r6 != null) {
value = defaultImport;
value.dispatch({type: 'UPDATE_CLIENT_PREMIUM_TYPE', user: r6});
value = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = value.dispatch;
object = {type: 'CURRENT_USER_UPDATE'};
object.user = (require(7141) /* metro dependency 7141: createMessage */).userRecordToServer(r6);
Reflect.apply(dispatch, value, [object]);
}
}
function updateClientCreatedAtOverride(a0) { // fn#107575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14422:517, offset: 0x023014f8, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'SET_CREATED_AT_OVERRIDE',
createdAt: a0});
}
}
function updateClientCreatedAtOverride(a0) { // fn#107575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14422:517, offset: 0x023014f8, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SET_CREATED_AT_OVERRIDE',
createdAt: a0});
}
global.__d(_fun107573, 14225, [1878, 694, 7141, 2]) /* metro module 14225, dependencies: [1878, 694, 7141, 2] */;
@@ -1,132 +1,154 @@
/* Metro module 1879; source: modules/premium/OverridePremiumTypeStore.tsx; dependencies: [6, 7, 15, 17, 18, 1880, 1883, 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 */
import * as PremiumConstantsModule from './PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun20415(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:6, offset: 0x00ec5fdf, size: 374 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = CURRENT_USER_UPDATE_20419;
const CURRENT_USER_UPDATE_204192 = CURRENT_USER_UPDATE_20419;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
let value = require(1880) /* metro dependency 1880: PremiumConstants */;
let value = PremiumConstantsModule;
const UNSELECTED_CREATED_AT_DATE = value.UNSELECTED_CREATED_AT_DATE;
const UNSELECTED_PREMIUM_TYPE_OVERRIDE = value.UNSELECTED_PREMIUM_TYPE_OVERRIDE;
object = {premiumTypeOverride: UNSELECTED_PREMIUM_TYPE_OVERRIDE,
premiumTypeActual: UNSELECTED_PREMIUM_TYPE_OVERRIDE, createdAtOverride: UNSELECTED_CREATED_AT_DATE};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
value = _fun20420(PersistedStore);
value.displayName = 'OverridePremiumTypeStore';
value.persistKey = 'OverridePremiumTypeStore';
value.migrations = [_fun20428];
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{SET_PREMIUM_TYPE_OVERRIDE: SET_PREMIUM_TYPE_OVERRIDE, SET_CREATED_AT_OVERRIDE: SET_CREATED_AT_OVERRIDE,
CURRENT_USER_UPDATE: closure, CONNECTION_OPEN: closure});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/OverridePremiumTypeStore.tsx');
CURRENT_USER_UPDATE: CURRENT_USER_UPDATE_204192, CONNECTION_OPEN: CURRENT_USER_UPDATE_204192});
(FileImportTrackerModule).fileFinishedImporting('modules/premium/OverridePremiumTypeStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_20416() { // fn#20416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:226, offset: 0x00ec6155, 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) {
function _isNativeReflectConstruct_20416() { // fn#20416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:226, offset: 0x00ec6155, 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_20416_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_20416_isNativeReflectConstruct = function() {
return !!result;
})();
}
function CONNECTION_OPEN_20419({user}) { // fn#20419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:518, offset: 0x00ec61b3, size: 62 bytes, params: 2, frame: 13
env0_9.premiumTypeActual = (require(1883) /* metro dependency 1883: UserStoreUtils */).getPremiumTypeFromRawValue(user.premium_type);
}
function _fun20420(a0) { // fn#20420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:635, offset: 0x00ec61f1, size: 187 bytes, params: 2, frame: 16
const closure = OverridePremiumTypeStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: value_20422}, {key: 'getPremiumTypeOverride',
value: value_20423}, {key: 'getPremiumTypeActual', value: value_20424}, {key: 'getCreatedAtOverride',
value: value_20425}, {key: 'getState', value: value_20426}, {key: 'premiumType', get: get_20427}]);
}
function _fun20428(a0) { // fn#20428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1688, offset: 0x00ec63f8, size: 58 bytes, params: 2, frame: 14
var object2;
const value = a0 == null;
const value2 = undefined;
if ((value ? value2 : a0.createdAtOverride) == null) {
object2 = {};
copyDataProperties(object2, a0, value);
object2['createdAtOverride'] = UNSELECTED_CREATED_AT_DATE;
return object2;
function CONNECTION_OPEN_20419({user}) { // fn#20419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:518, offset: 0x00ec61b3, size: 62 bytes, params: 2, frame: 13
env0_9.premiumTypeActual = (require(1883) /* metro dependency 1883: UserStoreUtils */).getPremiumTypeFromRawValue(user.premium_type);
}
return value2;
}
function SET_PREMIUM_TYPE_OVERRIDE({premiumType}) { // fn#20429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1820, offset: 0x00ec6432, size: 26 bytes, params: 2, frame: 2
env0_9.premiumTypeOverride = premiumType;
}
function _fun20420(a0) { // fn#20420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:635, offset: 0x00ec61f1, size: 187 bytes, params: 2, frame: 16
const OverridePremiumTypeStore2 = OverridePremiumTypeStore;
Inherits(OverridePremiumTypeStore2, a0);
return CreateClass(OverridePremiumTypeStore2, [{key: 'initialize', value: value_20422}, {key: 'getPremiumTypeOverride',
value: value_20423}, {key: 'getPremiumTypeActual', value: value_20424}, {key: 'getCreatedAtOverride',
value: value_20425}, {key: 'getState', value: value_20426}, {key: 'premiumType', get: get_20427}]);
function OverridePremiumTypeStore() { // fn#20421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:647, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, OverridePremiumTypeStore);
const value3 = env1_5(OverridePremiumTypeStore);
return env1_4(this, _isNativeReflectConstruct_20416() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function SET_CREATED_AT_OVERRIDE({createdAt}) { // fn#20430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1918, offset: 0x00ec644c, size: 26 bytes, params: 2, frame: 2
env0_9.createdAtOverride = createdAt;
}
function value_20422(a0) { // fn#20422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:985, offset: 0x00ec631d, size: 174 bytes, params: 2, frame: 15
var value;
var binding;
var value2;
var createdAtOverride;
var Date;
if (a0 != null) {
value = environment.__proto__;
binding = env1_9;
value2 = undefined;
binding.premiumTypeActual = a0 == null ? value2 : a0.premiumTypeActual;
binding = env1_9;
binding.premiumTypeOverride = a0 == null ? value2 : a0.premiumTypeOverride;
createdAtOverride = a0.createdAtOverride;
if (createdAtOverride != null) {
binding = env1_9;
Date = global.Date;
createdAtOverride = a0.createdAtOverride;
binding.createdAtOverride = new Date();
} else {
function value_20422(a0) { // fn#20422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:985, offset: 0x00ec631d, size: 174 bytes, params: 2, frame: 15
var value;
var binding;
var value2;
var createdAtOverride;
var Date;
if (a0 != null) {
value = environment.__proto__;
binding = env1_9;
value2 = undefined;
binding.premiumTypeActual = a0 == null ? value2 : a0.premiumTypeActual;
binding = env1_9;
binding.premiumTypeOverride = a0 == null ? value2 : a0.premiumTypeOverride;
createdAtOverride = a0.createdAtOverride;
if (createdAtOverride != null) {
binding = env1_9;
Date = global.Date;
createdAtOverride = a0.createdAtOverride;
binding.createdAtOverride = new Date();
} else {
env1_9.createdAtOverride = UNSELECTED_CREATED_AT_DATE;
}
return value2;
}
value = environment.__proto__;
env1_9.premiumTypeOverride = UNSELECTED_PREMIUM_TYPE_OVERRIDE;
env1_9.createdAtOverride = UNSELECTED_CREATED_AT_DATE;
}
function value_20423() { // fn#20423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1317, offset: 0x00ec63cb, size: 15 bytes, params: 1, frame: 1
return env1_9.premiumTypeOverride;
}
function value_20424() { // fn#20424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1393, offset: 0x00ec63da, size: 15 bytes, params: 1, frame: 1
return env1_9.premiumTypeActual;
}
function value_20425() { // fn#20425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1467, offset: 0x00ec63e9, size: 15 bytes, params: 1, frame: 1
return env1_9.createdAtOverride;
}
function value_20426() { // fn#20426, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function get_20427() { // fn#20427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1574, offset: 0x00ec63cb, size: 15 bytes, params: 1, frame: 1
return env1_9.premiumTypeOverride;
}
}
function _fun20428(a0) { // fn#20428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1688, offset: 0x00ec63f8, size: 58 bytes, params: 2, frame: 14
var object;
const value = a0 == null;
const value2 = undefined;
if ((value ? value2 : a0.createdAtOverride) == null) {
object = {};
copyDataProperties(object, a0, value);
object['createdAtOverride'] = UNSELECTED_CREATED_AT_DATE;
return object;
}
return value2;
}
value = environment.__proto__;
env1_9.premiumTypeOverride = UNSELECTED_PREMIUM_TYPE_OVERRIDE;
env1_9.createdAtOverride = UNSELECTED_CREATED_AT_DATE;
}
function value_20423() { // fn#20423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1317, offset: 0x00ec63cb, size: 15 bytes, params: 1, frame: 1
return env1_9.premiumTypeOverride;
}
function SET_PREMIUM_TYPE_OVERRIDE({premiumType}) { // fn#20429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1820, offset: 0x00ec6432, size: 26 bytes, params: 2, frame: 2
env0_9.premiumTypeOverride = premiumType;
}
function value_20424() { // fn#20424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1393, offset: 0x00ec63da, size: 15 bytes, params: 1, frame: 1
return env1_9.premiumTypeActual;
}
function SET_CREATED_AT_OVERRIDE({createdAt}) { // fn#20430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1918, offset: 0x00ec644c, size: 26 bytes, params: 2, frame: 2
env0_9.createdAtOverride = createdAt;
}
function value_20425() { // fn#20425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2006:1467, offset: 0x00ec63e9, size: 15 bytes, params: 1, frame: 1
return env1_9.createdAtOverride;
}
global.__d(_fun20415, 1879, [6, 7, 15, 17, 18, 1880, 1883, 566, 694,
2]) /* metro module 1879, dependencies: [6, 7, 15, 17, 18, 1880, 1883, 566, 694, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+62 -54
View File
@@ -1,66 +1,74 @@
/* Metro module 7643; source: modules/premium/PremiumGiftingUtils.tsx; dependencies: [5, 1379, 4503, 4603, 44, 4129, 7067, 7076, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MessageConstantsModule from '../messages/MessageConstants.tsx'; /* Metro dependency 4503 */
function _fun61195(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:6, offset: 0x0171db5e, size: 209 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_5 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation;
const value = _fun61196();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/PremiumGiftingUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/PremiumGiftingUtils.tsx');
exports.AnimationState = {ACTION: 'action', LOOP: 'loop', IDLE: 'idle'};
exports.sendGiftMessage = value;
exports.unhandledGiftIntent = function() {
};
function _fun61196() { // fn#61196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:222, offset: 0x0171dc2f, size: 32 bytes, params: 1, frame: 12
const env0_0 = Module00005(_fun61198);
return _fun61200;
function* _fun61198(a0, a1) { // fn#61198, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:242, offset: 0x0171dc58, size: 311 bytes, params: 3, frame: 22
var environment;
if (false) {
return undefined;
}
if (a1 == null) {
throw new global.Error('giftCode must be defined');
}
if (a0 == null) {
throw new global.Error('Recipient must be defined');
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value3 = binding(env2_2[3]);
const openPrivateChannel = value3.openPrivateChannel;
let id = a0.id;
const value4 = Reflect.apply(openPrivateChannel, value3, [{recipientIds: id}]);
yield value4.then(_fun61199);
const value5 = undefined;
if (false) {
return value5;
}
binding = env2_0;
const binding2 = env2_2;
const giftCodeURL = binding(binding2[5]).getGiftCodeURL(a1);
binding = env2_1;
const value9 = binding(binding2[6]);
const sendMessage = value9.sendMessage;
id = value5.id;
const value11 = binding(binding2[7]).parse(value5, giftCodeURL);
const GIFTING = env2_5.GIFTING;
return Reflect.apply(sendMessage, value9, [id, value11, undefined, {isGiftLinkSentOnBehalfOfUser: true,
location: GIFTING}]);
function _fun61199(a0) { // fn#61199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:434, offset: 0x0171dd8f, size: 102 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__.__proto__;
const channel = env3_4.getChannel(a0);
env3_1(env3_2[4])(channel != null, 'PrivateChannel is null');
if (channel == null) {
throw new global.Error('Channel must be defined');
}
return channel;
}
}
function _fun61200() { // fn#61200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:718, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
function _fun61196() { // fn#61196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:222, offset: 0x0171dc2f, size: 32 bytes, params: 1, frame: 12
const env0_0 = env0_3(_fun61198);
return _fun61200;
}
function* _fun61198(a0, a1) { // fn#61198, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:242, offset: 0x0171dc58, size: 311 bytes, params: 3, frame: 22
var environment;
if (false) {
return undefined;
}
if (a1 == null) {
throw new global.Error('giftCode must be defined');
}
if (a0 == null) {
throw new global.Error('Recipient must be defined');
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value3 = binding(env2_2[3]);
const openPrivateChannel = value3.openPrivateChannel;
let id = a0.id;
const value4 = Reflect.apply(openPrivateChannel, value3, [{recipientIds: id}]);
yield value4.then(_fun61199);
const value5 = undefined;
if (false) {
return value5;
}
binding = env2_0;
const binding2 = env2_2;
const giftCodeURL = binding(binding2[5]).getGiftCodeURL(a1);
binding = env2_1;
const value9 = binding(binding2[6]);
const sendMessage = value9.sendMessage;
id = value5.id;
const value11 = binding(binding2[7]).parse(value5, giftCodeURL);
const GIFTING = env2_5.GIFTING;
return Reflect.apply(sendMessage, value9, [id, value11, undefined, {isGiftLinkSentOnBehalfOfUser: true,
location: GIFTING}]);
}
function _fun61199(a0) { // fn#61199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:434, offset: 0x0171dd8f, size: 102 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__.__proto__;
const channel = env3_4.getChannel(a0);
env3_1(env3_2[4])(channel != null, 'PrivateChannel is null');
if (channel == null) {
throw new global.Error('Channel must be defined');
}
return channel;
}
global.__d(_fun61195, 7643, [5, 1379, 4503, 4603, 44, 4129, 7067, 7076,
2]) /* metro module 7643, dependencies: [5, 1379, 4503, 4603, 44, 4129, 7067, 7076, 2] */;
@@ -1,12 +1,12 @@
/* Metro module 10380; source: modules/premium/PremiumMarketingUtil.tsx; dependencies: [661, 7007, 5177, 1230, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun80407(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10566:6, offset: 0x01e79772, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_2 = constantsModule.Routes;
const env0_3 = constantsModule.UserSettingsSections;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/PremiumMarketingUtil.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/PremiumMarketingUtil.tsx');
exports.navigateToPremiumHomePage = function() {
require(dependencyMap[1]).openUserSettings({screen: UserSettingsSections.PREMIUM});
};
@@ -19,3 +19,5 @@ function _fun80407(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun80407, 10380, [661, 7007, 5177, 1230,
2]) /* metro module 10380, dependencies: [661, 7007, 5177, 1230, 2] */;
+16 -12
View File
@@ -1,20 +1,24 @@
/* Metro module 12707; source: modules/premium/PremiumSKUFeature.tsx; dependencies: [7, 6, 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun97361(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12897:6, offset: 0x0217dd2a, size: 127 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importDefault(7) /* metro dependency 7 */;
const env0_0 = importDefault(6) /* metro dependency 6 */;
let value = CreateClass;
value = value(PremiumSKUFeature);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/PremiumSKUFeature.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/PremiumSKUFeature.tsx');
exports.default = value;
function PremiumSKUFeature(a0, a1, a2) { // fn#97362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12897:121, offset: 0x0217dda9, size: 91 bytes, params: 4, frame: 16
ClassCallCheck(this, PremiumSKUFeature);
this.name = a0;
this.description = a2;
this.getFeatureValue = a1;
const Object = global.Object;
Object.defineProperty(this, 'getFeatureValue', {'value': null, 'configurable': false, 'writable': false, value: a1});
}
}
function PremiumSKUFeature(a0, a1, a2) { // fn#97362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12897:121, offset: 0x0217dda9, size: 91 bytes, params: 4, frame: 16
env0_0(this, PremiumSKUFeature);
this.name = a0;
this.description = a2;
this.getFeatureValue = a1;
const Object = global.Object;
Object.defineProperty(this, 'getFeatureValue', {'value': null, 'configurable': false, 'writable': false, value: a1});
}
global.__d(_fun97361, 12707, [7, 6, 2]) /* metro module 12707, dependencies: [7, 6, 2] */;
+31 -31
View File
@@ -1,17 +1,16 @@
/* Metro module 3814; source: modules/premium/PremiumSubscription.tsx; dependencies: [1880, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from './PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun29504(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:6, offset: 0x00fc3bc2, size: 172 bytes, params: 8, frame: 20
const closure = getNonePlanIdForIntervalType;
const getNonePlanIdForIntervalType2 = getNonePlanIdForIntervalType;
const closure2 = function(a0) {
return a0.find(_fun29508);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_0 = premiumConstantsModule.SubscriptionPlans;
const env0_1 = premiumConstantsModule.SubscriptionPlanInfo;
const env0_2 = premiumConstantsModule.PremiumSubscriptionSKUs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/PremiumSubscription.tsx');
exports.getNonePlanIdForIntervalType = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/PremiumSubscription.tsx');
exports.getNonePlanIdForIntervalType = getNonePlanIdForIntervalType2;
exports.getNonePlanIdForSubscription = function(a0) {
var property = SubscriptionPlanInfo[a0.items[0].planId];
return getNonePlanIdForIntervalType(property.interval, property.intervalCount);
@@ -40,29 +39,30 @@ function _fun29504(global, require, importDefault, importAll, module, exports, d
}
return value4.planId;
};
function getNonePlanIdForIntervalType(a0) { // fn#29505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:181, offset: 0x00fc3c6e, size: 84 bytes, params: 2, frame: 13
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 1;
const Object = global.Object;
return Object.keys(SubscriptionPlanInfo).find(_fun29506) ?? SubscriptionPlans.NONE_MONTH;
function _fun29506(a0) { // fn#29506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:269, offset: 0x00fc3cc2, size: 84 bytes, params: 2, frame: 4
const value = environment.__proto__;
const property = SubscriptionPlanInfo[a0];
return property != null && property.skuId === PremiumSubscriptionSKUs.NONE && property.interval === env0_0 && property.intervalCount === env0_1;
}
}
function getBaseSubscriptionItemForSubscriptionItems(a0) { // fn#29507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:373, offset: 0x00fc3d16, size: 23 bytes, params: 2, frame: 11
return a0.find(_fun29508);
function _fun29508({planId}) { // fn#29508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:444, offset: 0x00fc3d2d, size: 41 bytes, params: 2, frame: 4
const value = environment.__proto__;
const property = SubscriptionPlanInfo[planId];
return property != null && property.premiumType != null;
}
}
}
function getNonePlanIdForIntervalType(a0) { // fn#29505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:181, offset: 0x00fc3c6e, size: 84 bytes, params: 2, frame: 13
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 1;
const Object = global.Object;
return Object.keys(SubscriptionPlanInfo).find(_fun29506) ?? SubscriptionPlans.NONE_MONTH;
}
function getBaseSubscriptionItemForSubscriptionItems(a0) { // fn#29507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:373, offset: 0x00fc3d16, size: 23 bytes, params: 2, frame: 11
return a0.find(_fun29508);
}
function _fun29506(a0) { // fn#29506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:269, offset: 0x00fc3cc2, size: 84 bytes, params: 2, frame: 4
const value = environment.__proto__;
const property = SubscriptionPlanInfo[a0];
return property != null && property.skuId === PremiumSubscriptionSKUs.NONE && property.interval === env0_0 && property.intervalCount === env0_1;
}
function _fun29508({planId}) { // fn#29508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3941:444, offset: 0x00fc3d2d, size: 41 bytes, params: 2, frame: 4
const value = environment.__proto__;
const property = SubscriptionPlanInfo[planId];
return property != null && property.premiumType != null;
}
global.__d(_fun29504, 3814, [1880, 2]) /* metro module 3814, dependencies: [1880, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,8 +1,10 @@
/* Metro module 3812; source: modules/premium/PremiumSubscriptionInvoiceItem.tsx; dependencies: [22, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun29497(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:6, offset: 0x00fc3686, size: 110 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/PremiumSubscriptionInvoiceItem.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/PremiumSubscriptionInvoiceItem.tsx');
exports.coalesceInvoiceItems = function(a0) {
var Set = global.Set;
var env0_1 = new Set();
@@ -15,106 +17,107 @@ function _fun29497(global, require, importDefault, importAll, module, exports, d
amount: a0.amount, quantity: a0.quantity, discounts: a0.discounts, unitPrice: a0.unit_price, tax: a0.tax,
taxCode: a0.tax_code, nominalTaxRate: a0.nominal_tax_rate};
};
}
function coalesceInvoiceItems(a0) { // fn#29498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:199, offset: 0x00fc36f4, size: 77 bytes, params: 2, frame: 13
const Set = global.Set;
const set = new Set();
a0.map(_fun29499);
return [].map(_fun29500);
}
function _fun29499(a0) { // fn#29499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:265, offset: 0x00fc3741, size: 213 bytes, params: 2, frame: 21
var r11;
var r5;
var property;
var subscriptionPlanId;
var subscriptionPlanId2;
var subscriptionPlanPrice;
var subscriptionPlanPrice2;
var amount;
var amount2;
var defaultImport;
var isEqual;
var discounts;
var discounts2;
var value4;
var push;
var object2;
let binding = env0_0;
let length = binding.length;
const value2 = 0;
if (value2 < length) {
r5 = value2;
reducibleLoop1: while (true) {
property = binding[r5];
subscriptionPlanId = property.subscriptionPlanId;
subscriptionPlanId2 = a0.subscriptionPlanId;
if (subscriptionPlanId === subscriptionPlanId2) {
subscriptionPlanPrice = property.subscriptionPlanPrice;
subscriptionPlanPrice2 = a0.subscriptionPlanPrice;
reducibleJoin5: while (true) {
if (subscriptionPlanPrice !== subscriptionPlanPrice2) {
break reducibleJoin5;
function coalesceInvoiceItems(a0) { // fn#29498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:199, offset: 0x00fc36f4, size: 77 bytes, params: 2, frame: 13
const Set = global.Set;
const set = new Set();
a0.map(_fun29499);
return [].map(_fun29500);
function _fun29499(a0) { // fn#29499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:265, offset: 0x00fc3741, size: 213 bytes, params: 2, frame: 21
var r11;
var r5;
var property;
var subscriptionPlanId;
var subscriptionPlanId2;
var subscriptionPlanPrice;
var subscriptionPlanPrice2;
var amount;
var amount2;
var defaultImport;
var isEqual;
var discounts;
var discounts2;
var value4;
var push;
var object;
let binding = env0_0;
let length = binding.length;
const value2 = 0;
if (value2 < length) {
r5 = value2;
reducibleLoop1: while (true) {
property = binding[r5];
subscriptionPlanId = property.subscriptionPlanId;
subscriptionPlanId2 = a0.subscriptionPlanId;
if (subscriptionPlanId === subscriptionPlanId2) {
subscriptionPlanPrice = property.subscriptionPlanPrice;
subscriptionPlanPrice2 = a0.subscriptionPlanPrice;
reducibleJoin5: while (true) {
if (subscriptionPlanPrice !== subscriptionPlanPrice2) {
break reducibleJoin5;
}
amount = property.amount;
amount2 = a0.amount;
if (amount !== amount2) {
break reducibleJoin5;
}
defaultImport = importDefault(dependencyMap[value2]);
isEqual = defaultImport.isEqual;
discounts = property.discounts;
discounts2 = a0.discounts;
if (Reflect.apply(isEqual, defaultImport, [discounts, discounts2])) {
binding = env0_1;
binding.add(property.subscriptionPlanId);
property.quantity = property.quantity + a0.quantity;
return undefined;
}
r11 = defaultImport;
break reducibleJoin5;
}
}
amount = property.amount;
amount2 = a0.amount;
if (amount !== amount2) {
break reducibleJoin5;
}
defaultImport = importDefault(dependencyMap[value2]);
isEqual = defaultImport.isEqual;
discounts = property.discounts;
discounts2 = a0.discounts;
if (Reflect.apply(isEqual, defaultImport, [discounts, discounts2])) {
binding = env0_1;
binding.add(property.subscriptionPlanId);
property.quantity = property.quantity + a0.quantity;
value4 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
length = binding.length;
if (!(value4 < length)) {
binding = env0_0;
push = binding.push;
object = {};
copyDataProperties(object, a0, r11);
Reflect.apply(push, binding, [object]);
return undefined;
}
r11 = defaultImport;
break reducibleJoin5;
r5 = value4;
continue reducibleLoop1;
}
}
value4 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
length = binding.length;
if (!(value4 < length)) {
binding = env0_0;
push = binding.push;
object2 = {};
copyDataProperties(object2, a0, r11);
Reflect.apply(push, binding, [object2]);
return undefined;
binding = env0_0;
push = binding.push;
object = {};
copyDataProperties(object, a0, r11);
Reflect.apply(push, binding, [object]);
}
function _fun29500(a0) { // fn#29500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:578, offset: 0x00fc3816, size: 132 bytes, params: 2, frame: 14
const object = {};
copyDataProperties(object, a0, undefined);
const binding = env0_1;
if (binding.has(a0.subscriptionPlanId)) {
object.amount = object.amount * object.quantity;
object.discounts = object.discounts.map(_fun29501);
if (object.tax != null) {
object.tax = object.tax * object.quantity;
}
}
r5 = value4;
continue reducibleLoop1;
return object;
function _fun29501(a0) { // fn#29501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:690, offset: 0x00fc389a, size: 49 bytes, params: 2, frame: 12
const object = {};
copyDataProperties(object, a0, undefined);
object['amount'] = a0.amount * env0_0.quantity;
return object;
}
}
}
binding = env0_0;
push = binding.push;
object2 = {};
copyDataProperties(object2, a0, r11);
Reflect.apply(push, binding, [object2]);
}
function _fun29500(a0) { // fn#29500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:578, offset: 0x00fc3816, size: 132 bytes, params: 2, frame: 14
const object2 = {};
copyDataProperties(object2, a0, undefined);
const binding = env0_1;
if (binding.has(a0.subscriptionPlanId)) {
object2.amount = object2.amount * object2.quantity;
object2.discounts = object2.discounts.map(_fun29501);
if (object2.tax != null) {
object2.tax = object2.tax * object2.quantity;
}
}
return object2;
}
function _fun29501(a0) { // fn#29501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3939:690, offset: 0x00fc389a, size: 49 bytes, params: 2, frame: 12
const object2 = {};
copyDataProperties(object2, a0, undefined);
object2['amount'] = a0.amount * env0_0.quantity;
return object2;
}
global.__d(_fun29497, 3812, [22, 2]) /* metro module 3812, dependencies: [22, 2] */;
@@ -1,4 +1,15 @@
/* Metro module 7561; source: modules/premium/PremiumSubscriptionOfferUtil.tsx; dependencies: [57, 31, 3808, 1880, 7062, 7287, 7258, 566, 3738, 7259, 7507, 1909, 7288, 2] */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import SubscriptionStore from '../../stores/billing/SubscriptionStore.tsx'; /* Metro dependency 3808 */
import UseDiscountOffer from './hooks/useDiscountOffer.tsx'; /* Metro dependency 7259 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as PremiumConstantsModule from './PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as UsePremiumTrialOfferNativeModule from './hooks/usePremiumTrialOffer.native.tsx'; /* Metro dependency 7062 */
import * as UsePremiumDiscountOfferAndroidModule from './hooks/usePremiumDiscountOffer.android.tsx'; /* Metro dependency 7258 */
import * as PremiumSubscriptionTrialUtilModule from './PremiumSubscriptionTrialUtil.tsx'; /* Metro dependency 7287 */
import * as ReverseTrialUtilsNativeModule from './ReverseTrialUtils.native.tsx'; /* Metro dependency 7288 */
function _fun60777(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:6, offset: 0x0170e8ca, size: 381 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_60780 = function(a0, a1) {
@@ -46,280 +57,269 @@ function _fun60777(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_6 = premiumConstantsModule.PREMIUM_TIER_2_ANNUAL_20_PERCENT_DISCOUNT_ID;
const env0_7 = premiumConstantsModule.PREMIUM_TIER_2_ANNUAL_25_PERCENT_DISCOUNT_ID;
const env0_8 = premiumConstantsModule.PREMIUM_TIER_2_ANNUAL_V2_20_PERCENT_DISCOUNT_ID;
const env0_9 = premiumConstantsModule.PREMIUM_TIER_2_ANNUAL_V2_30_PERCENT_DISCOUNT_ID;
const env0_10 = premiumConstantsModule.PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID;
const env0_11 = premiumConstantsModule.PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID;
const env0_12 = premiumConstantsModule.PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_30_PERCENT_DISCOUNT_ID;
const env0_13 = premiumConstantsModule.PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID;
const env0_14 = premiumConstantsModule.PREMIUM_TIER_2_LIKELIHOOD_DISCOUNT_ID;
const env0_15 = premiumConstantsModule.PREMIUM_TIER_2_REACTIVATION_DISCOUNT_ID;
const env0_16 = premiumConstantsModule.PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID;
const env0_17 = premiumConstantsModule.PREMIUM_GROUP_30_PERCENT_3_MONTH_DISCOUNT_ID;
const closure = useHasDiscountApplied;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/PremiumSubscriptionOfferUtil.tsx');
const useHasDiscountApplied2 = useHasDiscountApplied;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/PremiumSubscriptionOfferUtil.tsx');
exports.useIsInPremiumOfferExperience = useIsInPremiumOfferExperience;
exports.useHasDiscountApplied = closure;
exports.useHasDiscountApplied = useHasDiscountApplied2;
exports.useActiveDiscountInfo = useActiveDiscountInfo;
exports.useFetchChurnUserDiscountOffer = useFetchChurnUserDiscountOffer;
exports.useShouldFetchChurnOffer = useShouldFetchChurnOffer;
exports.renewalInvoiceChurnDiscountInfo = renewalInvoiceChurnDiscountInfo;
exports.useIsNUXEligible = useIsNUXEligible;
}
function _createForOfIteratorHelperLoose_60778(a0, a1) { // fn#60778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:754, offset: 0x0170ea47, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_60778(a0, a1) { // fn#60778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:754, offset: 0x0170ea47, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun60779;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_60780(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun60779;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_60780(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_60780(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun60779;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function useHasDiscountApplied() { // fn#60781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:1690, offset: 0x0170ebb9, size: 156 bytes, params: 1, frame: 18
var r0;
var Date;
var value;
const value2 = undefined;
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const active_discount_expires_at = premiumTypeSubscription == null || premiumTypeSubscription.metadata == null ? value2 : premiumTypeSubscription.metadata.active_discount_expires_at;
const value3 = active_discount_expires_at != null;
if (value3) {
value = importDefault(3738) /* metro dependency 3738 */;
Date = global.Date;
value = value(Date.now());
value = value <= (importDefault(3738) /* metro dependency 3738 */)(active_discount_expires_at);
r0 = value;
} else {
r0 = value3;
}
return r0;
}
function useIsInPremiumOfferExperience() { // fn#60783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:2007, offset: 0x0170ec68, size: 140 bytes, params: 1, frame: 17
const value2 = (require(7062) /* metro dependency 7062: usePremiumTrialOfferNative */).usePremiumTrialOffer();
const value3 = (require(7287) /* metro dependency 7287: PremiumSubscriptionTrialUtil */).useHasActiveTrial();
const value4 = (require(7258) /* metro dependency 7258: usePremiumDiscountOfferAndroid */).usePremiumDiscountOffer();
const value5 = (require(7258) /* metro dependency 7258: usePremiumDiscountOfferAndroid */).usePremiumGroupDiscountOffer();
const value = useHasDiscountApplied();
let r0 = value2 != null || value3;
r0 = !r0 ? value4 != null : r0;
r0 = !r0 ? value5 != null : r0;
r0 = !r0 ? value : r0;
return r0;
}
function useActiveDiscountInfo() { // fn#60784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:2334, offset: 0x0170ecf4, size: 395 bytes, params: 1, frame: 15
const value2 = undefined;
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const active_discount_id = premiumTypeSubscription == null || premiumTypeSubscription.metadata == null ? value2 : premiumTypeSubscription.metadata.active_discount_id;
if (PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_30_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID === active_discount_id) {
return {'duration': 3, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_LIKELIHOOD_DISCOUNT_ID === active_discount_id) {
return {'duration': 3, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_REACTIVATION_DISCOUNT_ID === active_discount_id) {
return {'duration': 3, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 40, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_ANNUAL_20_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 20, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_ANNUAL_25_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 25, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_ANNUAL_V2_20_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 12, 'percentage': 20, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_ANNUAL_V2_30_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 12, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 40, discountId: active_discount_id};
}
if (PREMIUM_GROUP_30_PERCENT_3_MONTH_DISCOUNT_ID === active_discount_id) {
return {'duration': 3, 'percentage': 30, discountId: active_discount_id};
}
return value2;
}
function useFetchChurnUserDiscountOffer(a0) { // fn#60786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3038, offset: 0x0170ee7f, size: 321 bytes, params: 2, frame: 25
var value;
const value2 = (importDefault(7259) /* metro dependency 7259: useDiscountOffer */)(PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID);
const value3 = (importDefault(7259) /* metro dependency 7259: useDiscountOffer */)(PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID);
const binding = env0_4;
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_3;
const value5 = binding2(value4, 2);
const property = value5[0];
const env0_0 = value5[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value6[0];
const property3 = value6[1];
useState = binding.useState;
const value7 = null;
const value8 = binding2(Reflect.apply(useState, binding, [value7]), 2);
const property4 = value8[0];
const env0_2 = value8[1];
const r10 = value7 == value2 ? value3 : value2;
const r2 = value7 != r10 ? r10 : value7;
if (value7 != r2) {
return {churnUserDiscountOffer: r2, isFetchingChurnDiscountOffer: false};
}
if (!a0) {
if (!(property2 || property)) {
property3(true);
value = require(7507) /* metro dependency 7507: UserOfferActionCreators */;
value = value.fetchChurnDiscountOffer();
value = value.then(_fun60788);
value.catch(function() {
onFetchComplete();
});
}
}
return {churnUserDiscountOffer: property4, isFetchingChurnDiscountOffer: property2};
}
function useShouldFetchChurnOffer() { // fn#60790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3623, offset: 0x0170eff8, size: 113 bytes, params: 1, frame: 15
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const value = useHasDiscountApplied();
let r0 = premiumTypeSubscription !== null && premiumTypeSubscription.hasPremiumNitroMonthly;
r0 = r0 && !value && !!(premiumTypeSubscription == null || !premiumTypeSubscription.hasActiveTrial);
return r0;
}
function renewalInvoiceChurnDiscountInfo({invoiceItems}) { // fn#60792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3852, offset: 0x0170f069, size: 183 bytes, params: 2, frame: 17
var r3;
var value4;
var discounts;
var find;
var value5;
var discount_id;
var value6;
const value2 = _createForOfIteratorHelperLoose_60778(invoiceItems);
const value3 = value2();
let done = value3.done;
if (!done) {
r3 = value3;
reducibleLoop1: while (true) {
value4 = r3.value;
discounts = value4.discounts;
find = discounts.find;
value5 = Reflect.apply(find, discounts, [function({type}) {
return type === require(dependencyMap[11]).InvoiceDiscountTypes.SUBSCRIPTION_PLAN;
}]);
if (value5 != null) {
discount_id = value5.discount_id;
if (PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID === discount_id) {
return {duration: 1, percentage: value5.percentage_amount, discountId: value5.discount_id};
}
reducibleJoin4: while (true) {
if (PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID === discount_id) {
return {duration: 3, percentage: value5.percentage_amount, discountId: value5.discount_id};
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_60780(a0, value);
r6 = value;
} else {
r6 = value;
}
break reducibleJoin4;
}
r5 = r6;
}
value6 = value2();
done = value6.done;
if (done) {
return null;
}
r3 = value6;
continue reducibleLoop1;
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun60779;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun60779() { // fn#60779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:1325, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
return null;
}
function useIsNUXEligible() { // fn#60794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:4256, offset: 0x0170f153, size: 37 bytes, params: 1, frame: 11
return (require(7288) /* metro dependency 7288: ReverseTrialUtilsNative */).useIsInReverseTrial();
}
function useHasDiscountApplied() { // fn#60781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:1690, offset: 0x0170ebb9, size: 156 bytes, params: 1, frame: 18
var r0;
var Date;
var value;
const value2 = undefined;
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const active_discount_expires_at = premiumTypeSubscription == null || premiumTypeSubscription.metadata == null ? value2 : premiumTypeSubscription.metadata.active_discount_expires_at;
const value3 = active_discount_expires_at != null;
if (value3) {
value = importDefault(3738) /* metro dependency 3738 */;
Date = global.Date;
value = value(Date.now());
value = value <= (importDefault(3738) /* metro dependency 3738 */)(active_discount_expires_at);
r0 = value;
} else {
r0 = value3;
}
return r0;
}
function onFetchComplete() { // fn#60787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3392, owner: useFetchChurnUserDiscountOffer.onFetchComplete, offset: 0x0170efc0, size: 29 bytes, params: 1, frame: 12
env0_0(true);
env0_1(false);
}
function useIsInPremiumOfferExperience() { // fn#60783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:2007, offset: 0x0170ec68, size: 140 bytes, params: 1, frame: 17
const value2 = (UsePremiumTrialOfferNativeModule).usePremiumTrialOffer();
const value3 = (PremiumSubscriptionTrialUtilModule).useHasActiveTrial();
const value4 = (UsePremiumDiscountOfferAndroidModule).usePremiumDiscountOffer();
const value5 = (UsePremiumDiscountOfferAndroidModule).usePremiumGroupDiscountOffer();
const value = useHasDiscountApplied();
let r0 = value2 != null || value3;
r0 = !r0 ? value4 != null : r0;
r0 = !r0 ? value5 != null : r0;
r0 = !r0 ? value : r0;
return r0;
}
function useActiveDiscountInfo() { // fn#60784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:2334, offset: 0x0170ecf4, size: 395 bytes, params: 1, frame: 15
const value2 = undefined;
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const active_discount_id = premiumTypeSubscription == null || premiumTypeSubscription.metadata == null ? value2 : premiumTypeSubscription.metadata.active_discount_id;
if (PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_30_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID === active_discount_id) {
return {'duration': 3, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_LIKELIHOOD_DISCOUNT_ID === active_discount_id) {
return {'duration': 3, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_REACTIVATION_DISCOUNT_ID === active_discount_id) {
return {'duration': 3, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 40, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_ANNUAL_20_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 20, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_ANNUAL_25_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 25, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_ANNUAL_V2_20_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 12, 'percentage': 20, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_ANNUAL_V2_30_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 12, 'percentage': 30, discountId: active_discount_id};
}
if (PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID === active_discount_id) {
return {'duration': 1, 'percentage': 40, discountId: active_discount_id};
}
if (PREMIUM_GROUP_30_PERCENT_3_MONTH_DISCOUNT_ID === active_discount_id) {
return {'duration': 3, 'percentage': 30, discountId: active_discount_id};
}
return value2;
}
function useFetchChurnUserDiscountOffer(a0) { // fn#60786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3038, offset: 0x0170ee7f, size: 321 bytes, params: 2, frame: 25
var value;
const value2 = (UseDiscountOffer)(PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID);
const value3 = (UseDiscountOffer)(PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID);
let useState = ReactModule.useState;
const value4 = Reflect.apply(useState, ReactModule, [false]);
const value5 = Module00057(value4, 2);
const property = value5[0];
const env0_0 = value5[1];
useState = ReactModule.useState;
const value6 = Module00057(Reflect.apply(useState, ReactModule, [false]), 2);
const property2 = value6[0];
const property3 = value6[1];
useState = ReactModule.useState;
const value7 = null;
const value8 = Module00057(Reflect.apply(useState, ReactModule, [value7]), 2);
const property4 = value8[0];
const env0_2 = value8[1];
const r10 = value7 == value2 ? value3 : value2;
const r2 = value7 != r10 ? r10 : value7;
if (value7 != r2) {
return {churnUserDiscountOffer: r2, isFetchingChurnDiscountOffer: false};
}
if (!a0) {
if (!(property2 || property)) {
property3(true);
value = require(7507) /* metro dependency 7507: UserOfferActionCreators */;
value = value.fetchChurnDiscountOffer();
value = value.then(_fun60788);
value.catch(function() {
onFetchComplete();
});
}
}
return {churnUserDiscountOffer: property4, isFetchingChurnDiscountOffer: property2};
function onFetchComplete() { // fn#60787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3392, owner: useFetchChurnUserDiscountOffer.onFetchComplete, offset: 0x0170efc0, size: 29 bytes, params: 1, frame: 12
env0_0(true);
env0_1(false);
}
function _fun60788(a0) { // fn#60788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3472, offset: 0x0170efdd, size: 27 bytes, params: 2, frame: 12
env0_2(a0);
onFetchComplete();
}
}
function useShouldFetchChurnOffer() { // fn#60790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3623, offset: 0x0170eff8, size: 113 bytes, params: 1, frame: 15
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const value = useHasDiscountApplied();
let r0 = premiumTypeSubscription !== null && premiumTypeSubscription.hasPremiumNitroMonthly;
r0 = r0 && !value && !!(premiumTypeSubscription == null || !premiumTypeSubscription.hasActiveTrial);
return r0;
}
function renewalInvoiceChurnDiscountInfo({invoiceItems}) { // fn#60792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3852, offset: 0x0170f069, size: 183 bytes, params: 2, frame: 17
var r3;
var value4;
var discounts;
var find;
var value5;
var discount_id;
var value6;
const value2 = _createForOfIteratorHelperLoose_60778(invoiceItems);
const value3 = value2();
let done = value3.done;
if (!done) {
r3 = value3;
reducibleLoop1: while (true) {
value4 = r3.value;
discounts = value4.discounts;
find = discounts.find;
value5 = Reflect.apply(find, discounts, [function({type}) {
return type === require(dependencyMap[11]).InvoiceDiscountTypes.SUBSCRIPTION_PLAN;
}]);
if (value5 != null) {
discount_id = value5.discount_id;
if (PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID === discount_id) {
return {duration: 1, percentage: value5.percentage_amount, discountId: value5.discount_id};
}
reducibleJoin4: while (true) {
if (PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID === discount_id) {
return {duration: 3, percentage: value5.percentage_amount, discountId: value5.discount_id};
}
break reducibleJoin4;
}
}
value6 = value2();
done = value6.done;
if (done) {
return null;
}
r3 = value6;
continue reducibleLoop1;
}
}
return null;
}
function useIsNUXEligible() { // fn#60794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:4256, offset: 0x0170f153, size: 37 bytes, params: 1, frame: 11
return (ReverseTrialUtilsNativeModule).useIsInReverseTrial();
}
function _fun60788(a0) { // fn#60788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7739:3472, offset: 0x0170efdd, size: 27 bytes, params: 2, frame: 12
env0_2(a0);
onFetchComplete();
}
global.__d(_fun60777, 7561, [57, 31, 3808, 1880, 7062, 7287, 7258, 566, 3738, 7259, 7507, 1909, 7288,
2]) /* metro module 7561, dependencies: [57, 31, 3808, 1880, 7062, 7287, 7258, 566, 3738, 7259, 7507, 1909, 7288, 2] */;
@@ -1,84 +1,83 @@
/* Metro module 7287; source: modules/premium/PremiumSubscriptionTrialUtil.tsx; dependencies: [1878, 3808, 7064, 1880, 566, 7063, 2] */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SubscriptionStore from '../../stores/billing/SubscriptionStore.tsx'; /* Metro dependency 3808 */
import UserOfferStore from '../../stores/billing/UserOfferStore.tsx'; /* Metro dependency 7064 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from './PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun58791(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:6, offset: 0x016d70a4, size: 256 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
const userOfferStore = importDefault(7064) /* metro dependency 7064: UserOfferStore */;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_5 = premiumConstantsModule.PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID;
const env0_6 = premiumConstantsModule.PREMIUM_TIER_2_REACTIVATION_TRIAL_ID;
const env0_7 = premiumConstantsModule.PREMIUM_TIER_2_3P_ONE_MONTH_TRIAL_ID;
const env0_8 = premiumConstantsModule.PREMIUM_TIER_2_REFERRAL_TRIAL_ID;
const env0_9 = premiumConstantsModule.PREMIUM_TRIAL_IDS_ALL;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/PremiumSubscriptionTrialUtil.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/PremiumSubscriptionTrialUtil.tsx');
exports.useHasActiveTrial = useHasActiveTrial;
exports.hasActiveTrial = hasActiveTrial;
exports.isEligibleTrialSub = isEligibleTrialSub;
exports.useCurrentPremiumTrialTier = useCurrentPremiumTrialTier;
exports.getPremiumTrialOffer = getPremiumTrialOffer;
}
function useHasActiveTrial() { // fn#58792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:422, offset: 0x016d71a4, size: 78 bytes, params: 1, frame: 13
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
return !(premiumTypeSubscription == null || !premiumTypeSubscription.hasActiveTrial);
}
function hasActiveTrial() { // fn#58794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:556, offset: 0x016d7205, size: 40 bytes, params: 1, frame: 11
return SubscriptionStore.getPremiumTypeSubscription()?.trialId != null;
}
function isEligibleTrialSub(a0) { // fn#58795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:662, offset: 0x016d722d, size: 100 bytes, params: 2, frame: 6
var r1;
var r0;
value = a0?.trialId != null;
if (value) {
r1 = a0.trialId === PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID || a0.trialId === PREMIUM_TIER_2_REACTIVATION_TRIAL_ID;
r1 = !r1 ? a0.trialId === PREMIUM_TIER_2_3P_ONE_MONTH_TRIAL_ID : r1;
r1 = !r1 ? a0.trialId === PREMIUM_TIER_2_REFERRAL_TRIAL_ID : r1;
r0 = r1;
} else {
r0 = value;
function useHasActiveTrial() { // fn#58792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:422, offset: 0x016d71a4, size: 78 bytes, params: 1, frame: 13
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
return !(premiumTypeSubscription == null || !premiumTypeSubscription.hasActiveTrial);
}
return r0;
}
function useCurrentPremiumTrialTier() { // fn#58796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:789, offset: 0x016d7291, size: 134 bytes, params: 1, frame: 19
const value2 = undefined;
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value = null;
return value != premiumTypeSubscription && premiumTypeSubscription.hasActiveTrial ? value == currentUser ? value2 : currentUser.premiumType : value;
}
function getPremiumTrialOffer() { // fn#58799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:1052, offset: 0x016d7329, size: 51 bytes, params: 1, frame: 12
let value = PREMIUM_TRIAL_IDS_ALL.map(function(a0) {
return UserOfferStore.getUserTrialOffer(a0);
});
value = value.filter(_fun58801);
return value.shift();
}
function _fun58801(a0) { // fn#58801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:1134, offset: 0x016d7373, size: 53 bytes, params: 2, frame: 13
var r0;
let value = a0 != null;
if (value) {
value = environment.__proto__;
value = require(7063) /* metro dependency 7063: useTrialOffer */;
value = !value.hasUserTrialOfferExpired(a0);
r0 = value;
} else {
r0 = value;
function hasActiveTrial() { // fn#58794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:556, offset: 0x016d7205, size: 40 bytes, params: 1, frame: 11
return SubscriptionStore.getPremiumTypeSubscription()?.trialId != null;
}
return r0;
function isEligibleTrialSub(a0) { // fn#58795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:662, offset: 0x016d722d, size: 100 bytes, params: 2, frame: 6
var r1;
var r0;
value = a0?.trialId != null;
if (value) {
r1 = a0.trialId === PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID || a0.trialId === PREMIUM_TIER_2_REACTIVATION_TRIAL_ID;
r1 = !r1 ? a0.trialId === PREMIUM_TIER_2_3P_ONE_MONTH_TRIAL_ID : r1;
r1 = !r1 ? a0.trialId === PREMIUM_TIER_2_REFERRAL_TRIAL_ID : r1;
r0 = r1;
} else {
r0 = value;
}
return r0;
}
function useCurrentPremiumTrialTier() { // fn#58796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:789, offset: 0x016d7291, size: 134 bytes, params: 1, frame: 19
const value2 = undefined;
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value = null;
return value != premiumTypeSubscription && premiumTypeSubscription.hasActiveTrial ? value == currentUser ? value2 : currentUser.premiumType : value;
}
function getPremiumTrialOffer() { // fn#58799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:1052, offset: 0x016d7329, size: 51 bytes, params: 1, frame: 12
let value = PREMIUM_TRIAL_IDS_ALL.map(function(a0) {
return UserOfferStore.getUserTrialOffer(a0);
});
value = value.filter(_fun58801);
return value.shift();
function _fun58801(a0) { // fn#58801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7465:1134, offset: 0x016d7373, size: 53 bytes, params: 2, frame: 13
var r0;
let value = a0 != null;
if (value) {
value = environment.__proto__;
value = require(7063) /* metro dependency 7063: useTrialOffer */;
value = !value.hasUserTrialOfferExpired(a0);
r0 = value;
} else {
r0 = value;
}
return r0;
}
}
}
global.__d(_fun58791, 7287, [1878, 3808, 7064, 1880, 566, 7063,
2]) /* metro module 7287, dependencies: [1878, 3808, 7064, 1880, 566, 7063, 2] */;
+345 -338
View File
@@ -1,22 +1,30 @@
/* Metro module 12706; source: modules/premium/ProductCatalog.tsx; dependencies: [7, 6, 16, 15, 17, 18, 1880, 3, 12707, 7892, 7937, 12708, 1895, 12709, 1893, 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 Module00016 from '../../by-id/module-00016.js'; /* Metro dependency 16 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import SKUListing from './SKUListing.tsx'; /* Metro dependency 12708 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from './PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as UserModule from '../../external/discord_common/js/packages/protos/discord_protos/users/v1/user.tsx'; /* Metro dependency 1895 */
import * as EntitlementFeatureNamesModule from '../../external/discord_common/js/shared/shared-constants/EntitlementFeatureNames.tsx'; /* Metro dependency 7892 */
import * as PremiumFeatureUtilsModule from '../../utils/PremiumFeatureUtils.tsx'; /* Metro dependency 7937 */
import * as DenormalizedPerksReadExperimentModule from './experiments/DenormalizedPerksReadExperiment.tsx'; /* Metro dependency 12709 */
function _fun97353(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:6, offset: 0x0217ce13, size: 2900 bytes, params: 8, frame: 56
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(16) /* metro dependency 16 */;
const env0_6 = importDefault(15) /* metro dependency 15 */;
const env0_7 = importDefault(17) /* metro dependency 17 */;
const env0_8 = importDefault(18) /* metro dependency 18 */;
let value = require(1880) /* metro dependency 1880: PremiumConstants */;
let value = PremiumConstantsModule;
const PremiumSubscriptionSKUs = value.PremiumSubscriptionSKUs;
const env0_9 = value.PremiumTypeToActivePremiumSubscriptionSKU;
value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('ProductCatalog.tsx');
value = importDefault(12707) /* metro dependency 12707: PremiumSKUFeature */;
value = _fun97357(value);
const EntitlementFeatureNames = (require(7892) /* metro dependency 7892: EntitlementFeatureNames */).EntitlementFeatureNames;
const EntitlementFeatureNames = (EntitlementFeatureNamesModule).EntitlementFeatureNames;
let ANIMATED_EMOJIS = EntitlementFeatureNames.ANIMATED_EMOJIS;
const value4 = new value(ANIMATED_EMOJIS);
let EMOJIS_EVERYWHERE = EntitlementFeatureNames.EMOJIS_EVERYWHERE;
@@ -57,7 +65,7 @@ function _fun97353(global, require, importDefault, importAll, module, exports, d
const value70 = new value(VIDEO_FILTER_ASSETS);
const premiumSKUFeature = importDefault(12707) /* metro dependency 12707: PremiumSKUFeature */;
let INCREASED_FILE_UPLOAD_SIZE = EntitlementFeatureNames.INCREASED_FILE_UPLOAD_SIZE;
const getUserMaxFileSize = (require(7937) /* metro dependency 7937: PremiumFeatureUtils */).getUserMaxFileSize;
const getUserMaxFileSize = (PremiumFeatureUtilsModule).getUserMaxFileSize;
const premiumSKUFeature2 = new premiumSKUFeature(INCREASED_FILE_UPLOAD_SIZE, getUserMaxFileSize);
let INCREASED_GUILD_LIMIT = EntitlementFeatureNames.INCREASED_GUILD_LIMIT;
const value77 = new value(INCREASED_GUILD_LIMIT);
@@ -71,27 +79,24 @@ function _fun97353(global, require, importDefault, importAll, module, exports, d
const freeze = Object.freeze;
object = {};
const TIER_0 = PremiumSubscriptionSKUs.TIER_0;
const skuListing = importDefault(12708) /* metro dependency 12708: SKUListing */;
const TIER_02 = PremiumSubscriptionSKUs.TIER_0;
const items4 = [value4, value7, value10, value31, value70, value83, value86, value40];
const value90 = Object.create(skuListing.prototype, {constructor: {value: skuListing}});
const skuListing2 = new skuListing(TIER_02, items4);
const value90 = Object.create(SKUListing.prototype, {constructor: {value: SKUListing}});
const skuListing2 = new SKUListing(TIER_02, items4);
object[TIER_0] = skuListing2 instanceof Object ? skuListing2 : value90;
const TIER_1 = PremiumSubscriptionSKUs.TIER_1;
const value93 = skuListing;
const TIER_12 = PremiumSubscriptionSKUs.TIER_1;
const items2 = [value4, value7, value22, value25, value31, value46, value52, value61, value83, value86, value40];
const value94 = Object.create(value93.prototype, {constructor: {value: value93}});
const value95 = new value93(TIER_12, items2);
const value94 = Object.create(SKUListing.prototype, {constructor: {value: SKUListing}});
const value95 = new SKUListing(TIER_12, items2);
object[TIER_1] = value95 instanceof Object ? value95 : value94;
const TIER_2 = PremiumSubscriptionSKUs.TIER_2;
const value97 = skuListing;
const TIER_22 = PremiumSubscriptionSKUs.TIER_2;
const items3 = [value4, value7, value10, value13, value16, value22, value25, value28, value31, value34, value43,
value46, value49, value52, value55, value61, value64, value67, value70, value77, value80, value83, value86,
value40, value37, value58, value19, value];
const value98 = Object.create(value97.prototype, {constructor: {value: value97}});
const value99 = new value97(TIER_22, items3);
const value98 = Object.create(SKUListing.prototype, {constructor: {value: SKUListing}});
const value99 = new SKUListing(TIER_22, items3);
object[TIER_2] = value99 instanceof Object ? value99 : value98;
const value101 = Reflect.apply(freeze, Object, [object]);
object = [value46, value49];
@@ -99,7 +104,7 @@ function _fun97353(global, require, importDefault, importAll, module, exports, d
const env0_14 = [];
const Map = global.Map;
object = [value4];
const Perk = (require(1895) /* metro dependency 1895: user */).Perk;
const Perk = (UserModule).Perk;
ANIMATED_EMOJIS = Perk.ANIMATED_EMOJIS;
object[1] = ANIMATED_EMOJIS;
EMOJIS_EVERYWHERE = Perk.EMOJIS_EVERYWHERE;
@@ -133,7 +138,7 @@ function _fun97353(global, require, importDefault, importAll, module, exports, d
INCREASED_GUILD_LIMIT], [value80, INCREASED_MESSAGE_LENGTH], [value86, INCREASED_FILE_UPLOAD_SIZE], [value31,
PROFILE_BADGES], [value40, APP_ICONS], [value46, BOOST_DISCOUNT], [value49, FREE_BOOSTS], [value64,
INSTALL_PREMIUM_APPLICATIONS], [value83, INCREASED_VIDEO_UPLOAD_QUALITY]]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/ProductCatalog.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/ProductCatalog.tsx');
exports.ANIMATED_EMOJIS = value4;
exports.EMOJIS_EVERYWHERE = value7;
exports.STICKERS_EVERYWHERE = value10;
@@ -165,345 +170,347 @@ function _fun97353(global, require, importDefault, importAll, module, exports, d
exports.QUEST_ORB_MULTIPLIER = value;
exports.PRODUCT_CATALOG = value101;
exports.canUserUse = canUserUse;
}
function _isNativeReflectConstruct_97354() { // fn#97354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:242, offset: 0x0217d967, 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) {
function _isNativeReflectConstruct_97354() { // fn#97354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:242, offset: 0x0217d967, 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_97354_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_97354_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun97357(a0) { // fn#97357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:482, offset: 0x0217d9c9, size: 42 bytes, params: 2, frame: 14
const closure = ProductCatalogFeature;
env0_8(closure, a0);
return env0_3(closure);
}
function _fun97357(a0) { // fn#97357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:482, offset: 0x0217d9c9, size: 42 bytes, params: 2, frame: 14
const ProductCatalogFeature2 = ProductCatalogFeature;
Inherits(ProductCatalogFeature2, a0);
return CreateClass(ProductCatalogFeature2);
function ProductCatalogFeature(a0, a1) { // fn#97358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:494, offset: 0x0217d9f3, size: 139 bytes, params: 3, frame: 20
var environment;
const value = environment.__proto__;
env1_4(this, ProductCatalogFeature);
const items2 = [a0, _fun97359, a1];
const value3 = env1_7(ProductCatalogFeature);
return env1_6(this, _isNativeReflectConstruct_97354() ? global.Reflect.construct(value3, items2,
env1_7(this).constructor) : value3.apply(this, items2));
function _fun97359(a0) { // fn#97359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:737, offset: 0x0217da7e, size: 330 bytes, params: 2, frame: 25
var r6;
var r0;
var value;
var binding;
var value2;
var value3;
var value4;
var premiumType;
var property;
var value5;
var property2;
var value6;
var skuFeatures;
var includes;
var value7;
var warn;
var HermesInternal;
var concat;
var value8;
var value9;
var error;
var error2;
var message;
var JSON;
var stringify;
reduciblePort41: while (true) {
exceptionLanding38: while (true) {
value = environment.__proto__.__proto__;
binding = env2_5;
value2 = environment;
value3 = binding(env0_0);
value4 = false;
if (a0 == null) {
r0 = value4;
break reduciblePort41;
}
premiumType = a0.premiumType;
if (premiumType == null) {
r0 = value4;
break reduciblePort41;
}
try {
} catch (error) {
break exceptionLanding38;
}
try {
premiumType = a0.premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
property = PremiumTypeToActivePremiumSubscriptionSKU[premiumType];
} catch (error) {
break exceptionLanding38;
}
try {
value5 = property == null;
} catch (error) {
break exceptionLanding38;
}
if (value5) {
try {
binding = env2_10;
} catch (error) {
break exceptionLanding38;
}
try {
warn = binding.warn;
} catch (error) {
break exceptionLanding38;
}
try {
premiumType = a0.premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
HermesInternal = global.HermesInternal;
} catch (error) {
break exceptionLanding38;
}
try {
concat = HermesInternal.concat;
} catch (error) {
break exceptionLanding38;
}
try {
value9 = "Cannot find the corresponding SKU to the user's premium type " + premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
Reflect.apply(warn, binding, [value9]);
} catch (error) {
break exceptionLanding38;
}
r0 = value4;
break reduciblePort41;
}
try {
binding = env2_11;
} catch (error) {
break exceptionLanding38;
}
try {
property2 = binding[property];
} catch (error) {
break exceptionLanding38;
}
try {
value6 = property2 == null;
} catch (error) {
break exceptionLanding38;
}
if (value6) {
try {
binding = env2_10;
} catch (error) {
break exceptionLanding38;
}
try {
warn = binding.warn;
} catch (error) {
break exceptionLanding38;
}
try {
premiumType = a0.premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
HermesInternal = global.HermesInternal;
} catch (error) {
break exceptionLanding38;
}
try {
concat = HermesInternal.concat;
} catch (error) {
break exceptionLanding38;
}
try {
value8 = "Cannot find the corresponding product catalog entry to the user's SKU " + property + ' and premium type ' + premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
Reflect.apply(warn, binding, [value8]);
} catch (error) {
break exceptionLanding38;
}
r6 = value4;
} else {
try {
skuFeatures = property2.skuFeatures;
} catch (error) {
break exceptionLanding38;
}
try {
includes = skuFeatures.includes;
} catch (error) {
break exceptionLanding38;
}
try {
value7 = Reflect.apply(includes, skuFeatures, [value3]);
} catch (error) {
break exceptionLanding38;
}
r6 = value7;
}
r0 = r6;
break reduciblePort41;
}
binding = env2_10;
error2 = binding.error;
message = error.message;
reducibleJoin40: while (true) {
if (message != null) {
r6 = message;
break reducibleJoin40;
}
JSON = global.JSON;
stringify = JSON.stringify;
value = Reflect.apply(stringify, JSON, [error]);
r6 = value;
break reducibleJoin40;
}
HermesInternal = global.HermesInternal;
concat = HermesInternal.concat;
Reflect.apply(error2, binding, ["Error while retrieving user's feature access: " + r6]);
r0 = value4;
break reduciblePort41;
}
return r0;
}
function canUserUse(a0, a1, a2) { // fn#97360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:4915, offset: 0x0217dbc8, size: 354 bytes, params: 4, frame: 21
var perks;
var r0;
var value;
var binding;
var includes;
var value3;
var defaultImport;
var getConfig;
var value4;
const DenormalizedPerksReadConfig = (require(12709) /* metro dependency 12709: DenormalizedPerksReadExperiment */).DenormalizedPerksReadConfig;
var CONTROL;
var getFeatureValue;
var value5;
var moduleValue;
var hasPerk;
var hasPerk2;
var DUAL_READ_RETURN_NEW;
if (a1 != null) {
reducibleJoin3: while (true) {
if (a1.isPremiumWithFractionalPremiumOnly()) {
value = environment;
binding = env0_12;
includes = binding.includes;
if (Reflect.apply(includes, binding, [a0])) {
return false;
}
}
function canUserUse(a0, a1, a2) { // fn#97360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:4915, offset: 0x0217dbc8, size: 354 bytes, params: 4, frame: 21
var perks;
var r0;
var value;
var binding;
var includes;
var value3;
var defaultImport;
var getConfig;
var value4;
const DenormalizedPerksReadConfig = (DenormalizedPerksReadExperimentModule).DenormalizedPerksReadConfig;
var CONTROL;
var getFeatureValue;
var value5;
var moduleValue;
var hasPerk;
var hasPerk2;
var DUAL_READ_RETURN_NEW;
if (a1 != null) {
reducibleJoin3: while (true) {
if (a1.isPremiumWithFractionalPremiumOnly()) {
value = environment;
binding = env0_12;
includes = binding.includes;
if (Reflect.apply(includes, binding, [a0])) {
return false;
}
break reducibleJoin3;
}
break reducibleJoin3;
}
break reducibleJoin3;
}
}
if (a1 != null) {
reducibleJoin6: while (true) {
if (a1.isFractionalPremiumWithNoStandardSub()) {
value = environment;
binding = env0_13;
includes = binding.includes;
if (Reflect.apply(includes, binding, [a0])) {
return false;
if (a1 != null) {
reducibleJoin6: while (true) {
if (a1.isFractionalPremiumWithNoStandardSub()) {
value = environment;
binding = env0_13;
includes = binding.includes;
if (Reflect.apply(includes, binding, [a0])) {
return false;
}
break reducibleJoin6;
}
break reducibleJoin6;
}
break reducibleJoin6;
}
}
if (a2) {
binding = env0_14;
reducibleJoin8: while (true) {
if (binding.includes(a0)) {
return false;
if (a2) {
binding = env0_14;
reducibleJoin8: while (true) {
if (binding.includes(a0)) {
return false;
}
break reducibleJoin8;
}
break reducibleJoin8;
}
}
const value2 = env0_15.get(a0);
if (value2 != null) {
value3 = undefined;
reducibleJoin11: while (true) {
if (a1 == null) {
perks = value3;
const value2 = env0_15.get(a0);
if (value2 != null) {
value3 = undefined;
reducibleJoin11: while (true) {
if (a1 == null) {
perks = value3;
break reducibleJoin11;
}
perks = a1.perks;
break reducibleJoin11;
}
perks = a1.perks;
break reducibleJoin11;
}
reducibleJoin13: while (true) {
if (perks == null) {
break reducibleJoin13;
}
defaultImport = importDefault(12709) /* metro dependency 12709: DenormalizedPerksReadExperiment */;
getConfig = defaultImport.getConfig;
value4 = Reflect.apply(getConfig, defaultImport, [{location: 'product_catalog_can_user_use'}]);
CONTROL = DenormalizedPerksReadConfig.CONTROL;
if (value4 !== CONTROL) {
getFeatureValue = a0.getFeatureValue;
value5 = Reflect.apply(getFeatureValue, a0, [a1]);
moduleValue = require(1893) /* metro dependency 1893: PerksStateUtils */;
hasPerk = moduleValue.hasPerk;
reducibleJoin16: while (true) {
if (a1 == null) {
perks = value3;
reducibleJoin13: while (true) {
if (perks == null) {
break reducibleJoin13;
}
defaultImport = importDefault(12709) /* metro dependency 12709: DenormalizedPerksReadExperiment */;
getConfig = defaultImport.getConfig;
value4 = Reflect.apply(getConfig, defaultImport, [{location: 'product_catalog_can_user_use'}]);
CONTROL = DenormalizedPerksReadConfig.CONTROL;
if (value4 !== CONTROL) {
getFeatureValue = a0.getFeatureValue;
value5 = Reflect.apply(getFeatureValue, a0, [a1]);
moduleValue = require(1893) /* metro dependency 1893: PerksStateUtils */;
hasPerk = moduleValue.hasPerk;
reducibleJoin16: while (true) {
if (a1 == null) {
perks = value3;
break reducibleJoin16;
}
perks = a1.perks;
break reducibleJoin16;
}
perks = a1.perks;
break reducibleJoin16;
hasPerk2 = Reflect.apply(hasPerk, moduleValue, [perks, value2]);
DUAL_READ_RETURN_NEW = DenormalizedPerksReadConfig.DUAL_READ_RETURN_NEW;
r0 = value4 !== DUAL_READ_RETURN_NEW ? value5 : hasPerk2;
return r0;
}
hasPerk2 = Reflect.apply(hasPerk, moduleValue, [perks, value2]);
DUAL_READ_RETURN_NEW = DenormalizedPerksReadConfig.DUAL_READ_RETURN_NEW;
r0 = value4 !== DUAL_READ_RETURN_NEW ? value5 : hasPerk2;
return r0;
break reducibleJoin13;
}
break reducibleJoin13;
}
return a0.getFeatureValue(a1);
}
return a0.getFeatureValue(a1);
}
function ProductCatalogFeature(a0, a1) { // fn#97358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:494, offset: 0x0217d9f3, size: 139 bytes, params: 3, frame: 20
var environment;
const value = environment.__proto__;
env1_4(this, ProductCatalogFeature);
const items2 = [a0, _fun97359, a1];
const value3 = env1_7(ProductCatalogFeature);
return env1_6(this, _isNativeReflectConstruct_97354() ? global.Reflect.construct(value3, items2,
env1_7(this).constructor) : value3.apply(this, items2));
}
function _fun97359(a0) { // fn#97359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12896:737, offset: 0x0217da7e, size: 330 bytes, params: 2, frame: 25
var r6;
var r0;
var value;
var binding;
var value2;
var value3;
var value4;
var premiumType;
var property;
var value5;
var property2;
var value6;
var skuFeatures;
var includes;
var value7;
var warn;
var HermesInternal;
var concat;
var value8;
var value9;
var error;
var error2;
var message;
var JSON;
var stringify;
reduciblePort41: while (true) {
exceptionLanding38: while (true) {
value = environment.__proto__.__proto__;
binding = env2_5;
value2 = environment;
value3 = binding(env0_0);
value4 = false;
if (a0 == null) {
r0 = value4;
break reduciblePort41;
}
premiumType = a0.premiumType;
if (premiumType == null) {
r0 = value4;
break reduciblePort41;
}
try {
} catch (error) {
break exceptionLanding38;
}
try {
premiumType = a0.premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
property = PremiumTypeToActivePremiumSubscriptionSKU[premiumType];
} catch (error) {
break exceptionLanding38;
}
try {
value5 = property == null;
} catch (error) {
break exceptionLanding38;
}
if (value5) {
try {
binding = env2_10;
} catch (error) {
break exceptionLanding38;
}
try {
warn = binding.warn;
} catch (error) {
break exceptionLanding38;
}
try {
premiumType = a0.premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
HermesInternal = global.HermesInternal;
} catch (error) {
break exceptionLanding38;
}
try {
concat = HermesInternal.concat;
} catch (error) {
break exceptionLanding38;
}
try {
value9 = "Cannot find the corresponding SKU to the user's premium type " + premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
Reflect.apply(warn, binding, [value9]);
} catch (error) {
break exceptionLanding38;
}
r0 = value4;
break reduciblePort41;
}
try {
binding = env2_11;
} catch (error) {
break exceptionLanding38;
}
try {
property2 = binding[property];
} catch (error) {
break exceptionLanding38;
}
try {
value6 = property2 == null;
} catch (error) {
break exceptionLanding38;
}
if (value6) {
try {
binding = env2_10;
} catch (error) {
break exceptionLanding38;
}
try {
warn = binding.warn;
} catch (error) {
break exceptionLanding38;
}
try {
premiumType = a0.premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
HermesInternal = global.HermesInternal;
} catch (error) {
break exceptionLanding38;
}
try {
concat = HermesInternal.concat;
} catch (error) {
break exceptionLanding38;
}
try {
value8 = "Cannot find the corresponding product catalog entry to the user's SKU " + property + ' and premium type ' + premiumType;
} catch (error) {
break exceptionLanding38;
}
try {
Reflect.apply(warn, binding, [value8]);
} catch (error) {
break exceptionLanding38;
}
r6 = value4;
} else {
try {
skuFeatures = property2.skuFeatures;
} catch (error) {
break exceptionLanding38;
}
try {
includes = skuFeatures.includes;
} catch (error) {
break exceptionLanding38;
}
try {
value7 = Reflect.apply(includes, skuFeatures, [value3]);
} catch (error) {
break exceptionLanding38;
}
r6 = value7;
}
r0 = r6;
break reduciblePort41;
}
binding = env2_10;
error2 = binding.error;
message = error.message;
reducibleJoin40: while (true) {
if (message != null) {
r6 = message;
break reducibleJoin40;
}
JSON = global.JSON;
stringify = JSON.stringify;
value = Reflect.apply(stringify, JSON, [error]);
r6 = value;
break reducibleJoin40;
}
HermesInternal = global.HermesInternal;
concat = HermesInternal.concat;
Reflect.apply(error2, binding, ["Error while retrieving user's feature access: " + r6]);
r0 = value4;
break reduciblePort41;
}
return r0;
}
global.__d(_fun97353, 12706, [7, 6, 16, 15, 17, 18, 1880, 3, 12707, 7892, 7937, 12708, 1895, 12709, 1893,
2]) /* metro module 12706, dependencies: [7, 6, 16, 15, 17, 18, 1880, 3, 12707, 7892, 7937, 12708, 1895, 12709, 1893, 2] */;
File diff suppressed because it is too large. Load diff
+334 -269
View File
@@ -1,4 +1,16 @@
/* Metro module 7065; source: modules/premium/ReferralTrialStore.tsx; dependencies: [6, 7, 15, 17, 18, 1878, 661, 7066, 694, 671, 566, 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 UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as MessageTypesModule from '../../external/discord_common/js/shared/shared-constants/MessageTypes.tsx'; /* Metro dependency 671 */
import * as ReferralTrialActionCreatorsModule from './ReferralTrialActionCreators.tsx'; /* Metro dependency 7066 */
function _fun56062(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:6, offset: 0x013bc338, size: 713 bytes, params: 8, frame: 23
const env0_0 = require;
const _arrayLikeToArray_56068 = function(a0, a1) {
@@ -49,13 +61,6 @@ function _fun56062(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_9 = (require(661) /* metro dependency 661: Constants */).NOOP_NULL;
let Set = global.Set;
const set = new Set();
let Map = global.Map;
@@ -70,7 +75,7 @@ function _fun56062(global, require, importDefault, importAll, module, exports, d
const emitChanges_56074 = function() {
return true;
};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun56075(Store).displayName = 'ReferralTrialStore';
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */,
{BILLING_REFERRAL_TRIAL_OFFER_UPDATE: BILLING_REFERRAL_TRIAL_OFFER_UPDATE,
@@ -109,287 +114,347 @@ function _fun56062(global, require, importDefault, importAll, module, exports, d
}, LOAD_MESSAGES_SUCCESS: closure, MESSAGE_CREATE: function({message}) {
resolveUserReferralTrialId(message);
}, LOAD_MESSAGES_AROUND_SUCCESS: closure, LOGOUT: LOGOUT_56106});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/ReferralTrialStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/ReferralTrialStore.tsx');
exports.default = map;
}
function _isNativeReflectConstruct_56063() { // fn#56063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:181, offset: 0x013bc601, 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_56063_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _createForOfIteratorHelperLoose_56066(a0, a1) { // fn#56066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:374, offset: 0x013bc65f, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
function _isNativeReflectConstruct_56063() { // fn#56063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:181, offset: 0x013bc601, 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 _fun56067;
return (_isNativeReflectConstruct_56063_isNativeReflectConstruct = function() {
return !!result;
})();
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_56068(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
function _createForOfIteratorHelperLoose_56066(a0, a1) { // fn#56066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:374, offset: 0x013bc65f, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun56067;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_56068(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_56068(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_56068(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun56067;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun56067() { // fn#56067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:945, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function handleReferralTrialResolve(a0) { // fn#56069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1422, offset: 0x013bc7d1, size: 24 bytes, params: 2, frame: 11
env0_14.add(a0);
}
function LOAD_MESSAGES_AROUND_SUCCESS_56070({messages}) { // fn#56070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1470, offset: 0x013bc7e9, size: 30 bytes, params: 2, frame: 11
messages.forEach(function(a0) {
return resolveUserReferralTrialId(a0);
});
function _fun56071(a0) { // fn#56071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1523, offset: 0x013bc807, size: 19 bytes, params: 2, frame: 11
return resolveUserReferralTrialId(a0);
}
}
function resolveUserReferralTrialId(a0) { // fn#56072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1558, offset: 0x013bc81a, size: 153 bytes, params: 2, frame: 16
const type = a0.type;
const MessageTypes = (MessageTypesModule).MessageTypes;
const PREMIUM_REFERRAL = MessageTypes.PREMIUM_REFERRAL;
const value2 = null;
const content = type !== PREMIUM_REFERRAL ? value2 : a0.content;
if (value2 == content) {
return false;
}
if (!(env0_15.has(content) || env0_14.has(content))) {
handleReferralTrialResolve(content);
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(function() {
return require(dependencyMap[7]).resolveReferralTrialOffer(content).catch(NOOP_NULL);
});
}
}
function _fun56075(a0) { // fn#56075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1811, offset: 0x013bc8ef, size: 435 bytes, params: 2, frame: 16
const ReferralTrialStore2 = ReferralTrialStore;
Inherits(ReferralTrialStore2, a0);
return CreateClass(ReferralTrialStore2, [{key: 'initialize', value: function() {
var userStoreBinding = UserStore;
this.waitFor(userStoreBinding);
this.syncWith([userStoreBinding], emitChanges_56074);
}}, {key: 'checkAndFetchReferralsRemaining', value: value_56078}, {key: 'getReferralsRemaining',
value: value_56079}, {key: 'getSentUserIds', value: value_56080}, {key: 'isFetchingReferralsRemaining',
value: value_56081}, {key: 'getRelevantUserTrialOffer', value: value_56082}, {key: 'isResolving',
value: value_56083}, {key: 'getEligibleUsers', value: value_56084}, {key: 'getFetchingEligibleUsers',
value: value_56085}, {key: 'getNextIndexOfEligibleUsers', value: value_56086},
{key: 'getIsEligibleToSendReferrals', value: value_56087}, {key: 'getHasEligibleFriends', value: value_56088},
{key: 'getRefreshAt', value: value_56089}, {key: 'getAllRelevantReferralTrialOffers', value: value_56090},
{key: 'getRecipientStatus', value: value_56091}, {key: 'getReminderStateId', value: value_56092}]);
function ReferralTrialStore() { // fn#56076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1823, offset: 0x01161b4e, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, ReferralTrialStore);
const value3 = env1_6(ReferralTrialStore);
return env1_5(this, _isNativeReflectConstruct_56063() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function value_56078() { // fn#56078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2236, offset: 0x013bcad3, size: 118 bytes, params: 1, frame: 14
const value = environment.__proto__;
if (env1_10 == null && !env1_13 && env1_17 < 6 && (env1_18 == null || env1_18 < global.Date.now())) {
(require(7066) /* metro dependency 7066: ReferralTrialActionCreators */).fetchReferralsRemaining();
}
}
function value_56079() { // fn#56079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2362, offset: 0x013bcb49, size: 48 bytes, params: 1, frame: 11
let value = a0;
let bypassFetch = (value !== undefined ? value : {}).bypassFetch;
bypassFetch = !(bypassFetch === undefined) && bypassFetch;
if (!bypassFetch) {
this.checkAndFetchReferralsRemaining();
}
value = environment.__proto__;
return env1_10;
}
function value_56080() { // fn#56080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2475, offset: 0x013bcb79, size: 49 bytes, params: 1, frame: 12
this.checkAndFetchReferralsRemaining();
const Array = global.Array;
const from = Array.from;
const binding = env1_11;
return Reflect.apply(from, Array, [binding.values()]);
}
function value_56081() { // fn#56081, offset: 0x00e2f9d5, size: 9 bytes, params: 1, frame: 1
return env1_13;
}
function value_56082(a0) { // fn#56082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2660, offset: 0x013bcbaa, size: 22 bytes, params: 2, frame: 11
return env1_16.get(a0);
}
function value_56083(a0) { // fn#56083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2715, offset: 0x011578f1, size: 22 bytes, params: 2, frame: 11
return env1_14.has(a0);
}
function value_56084() { // fn#56084, offset: 0x00d406a2, size: 9 bytes, params: 1, frame: 1
return env1_19;
}
function value_56085() { // fn#56085, offset: 0x00e4253a, size: 9 bytes, params: 1, frame: 1
return env1_20;
}
function value_56086() { // fn#56086, offset: 0x00f854d6, size: 9 bytes, params: 1, frame: 1
return env1_21;
}
function value_56087() { // fn#56087, offset: 0x00e425c8, size: 9 bytes, params: 1, frame: 1
return env1_22;
}
function value_56088() { // fn#56088, offset: 0x00df3ac4, size: 9 bytes, params: 1, frame: 1
return env1_23;
}
function value_56089() { // fn#56089, offset: 0x00df3acd, size: 9 bytes, params: 1, frame: 1
return env1_24;
}
function value_56090() { // fn#56090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:3136, offset: 0x013bcbc0, size: 36 bytes, params: 1, frame: 12
const Array = global.Array;
const from = Array.from;
const binding = env1_16;
return Reflect.apply(from, Array, [binding.values()]);
}
function value_56091() { // fn#56091, offset: 0x00e2f9de, size: 9 bytes, params: 1, frame: 1
return env1_12;
}
function value_56092() { // fn#56092, offset: 0x00df3ad6, size: 9 bytes, params: 1, frame: 1
return env1_25;
}
}
function BILLING_REFERRAL_TRIAL_OFFER_UPDATE({userTrialOfferId}) { // fn#56093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:3398, offset: 0x013bcbe4, size: 125 bytes, params: 2, frame: 14
if (!env0_13) {
(require(7066) /* metro dependency 7066: ReferralTrialActionCreators */).fetchReferralsRemaining();
}
const binding = env0_14;
if (!binding.has(userTrialOfferId)) {
handleReferralTrialResolve(userTrialOfferId);
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(function() {
return require(dependencyMap[7]).resolveReferralTrialOffer(userTrialOfferId).catch(NOOP_NULL);
});
}
}
function BILLING_REFERRALS_REMAINING_FETCH_FAIL(a0) { // fn#56097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4007, offset: 0x013bcd06, size: 204 bytes, params: 2, frame: 16
var r6;
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r6);
throw undefined;
}
const value2 = env0_17 + 1;
env0_17 = value2;
r6 = value2 <= 3 ? 1000 * global.Math.pow(2, env0_17) : 8000 * global.Math.pow(4, env0_17 - 3);
const Date = global.Date;
const value7 = Date.now();
const Math = global.Math;
env0_18 = value7 + Math.min(300000, r6);
}
function BILLING_CREATE_REFERRAL_SUCCESS({userTrialOffer}) { // fn#56098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4192, offset: 0x013bcdd2, size: 86 bytes, params: 2, frame: 15
(ReferralTrialActionCreatorsModule).fetchReferralsRemaining();
let binding = env0_16;
binding.set(userTrialOffer.id, userTrialOffer);
binding = env0_11;
const add = binding.add;
const user_id = userTrialOffer.user_id;
Reflect.apply(add, binding, [user_id]);
}
function CREATE_REFERRALS_SUCCESS({userTrialOffers}) { // fn#56099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4341, offset: 0x013bce28, size: 127 bytes, params: 2, frame: 17
var r2;
var value4;
var binding;
var set;
var id;
var add;
var user_id;
var value5;
(ReferralTrialActionCreatorsModule).fetchReferralsRemaining();
const value2 = _createForOfIteratorHelperLoose_56066(userTrialOffers);
const value3 = value2();
let done = value3.done;
if (!done) {
for (r2 = value3; true; r2 = value5) {
value4 = r2.value;
binding = env0_16;
set = binding.set;
id = value4.id;
Reflect.apply(set, binding, [id, value4]);
binding = env0_11;
add = binding.add;
user_id = value4.user_id;
Reflect.apply(add, binding, [user_id]);
value5 = value2();
done = value5.done;
if (done) {
break;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun56067;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function handleReferralTrialResolve(a0) { // fn#56069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1422, offset: 0x013bc7d1, size: 24 bytes, params: 2, frame: 11
env0_14.add(a0);
}
function LOAD_MESSAGES_AROUND_SUCCESS_56070({messages}) { // fn#56070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1470, offset: 0x013bc7e9, size: 30 bytes, params: 2, frame: 11
messages.forEach(function(a0) {
return resolveUserReferralTrialId(a0);
});
}
function resolveUserReferralTrialId(a0) { // fn#56072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1558, offset: 0x013bc81a, size: 153 bytes, params: 2, frame: 16
const type = a0.type;
const MessageTypes = (require(671) /* metro dependency 671: MessageTypes */).MessageTypes;
const PREMIUM_REFERRAL = MessageTypes.PREMIUM_REFERRAL;
const value2 = null;
const content = type !== PREMIUM_REFERRAL ? value2 : a0.content;
if (value2 == content) {
return false;
}
if (!(env0_15.has(content) || env0_14.has(content))) {
handleReferralTrialResolve(content);
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(function() {
return require(dependencyMap[7]).resolveReferralTrialOffer(content).catch(NOOP_NULL);
});
}
}
function _fun56075(a0) { // fn#56075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:1811, offset: 0x013bc8ef, size: 435 bytes, params: 2, frame: 16
const closure = ReferralTrialStore;
env0_7(closure, a0);
return env0_4(closure, [{key: 'initialize', value: function() {
this.waitFor(UserStore);
this.syncWith([UserStore], emitChanges_56074);
}}, {key: 'checkAndFetchReferralsRemaining', value: value_56078}, {key: 'getReferralsRemaining',
value: value_56079}, {key: 'getSentUserIds', value: value_56080}, {key: 'isFetchingReferralsRemaining',
value: value_56081}, {key: 'getRelevantUserTrialOffer', value: value_56082}, {key: 'isResolving',
value: value_56083}, {key: 'getEligibleUsers', value: value_56084}, {key: 'getFetchingEligibleUsers',
value: value_56085}, {key: 'getNextIndexOfEligibleUsers', value: value_56086},
{key: 'getIsEligibleToSendReferrals', value: value_56087}, {key: 'getHasEligibleFriends', value: value_56088},
{key: 'getRefreshAt', value: value_56089}, {key: 'getAllRelevantReferralTrialOffers', value: value_56090},
{key: 'getRecipientStatus', value: value_56091}, {key: 'getReminderStateId', value: value_56092}]);
}
function BILLING_REFERRAL_TRIAL_OFFER_UPDATE({userTrialOfferId}) { // fn#56093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:3398, offset: 0x013bcbe4, size: 125 bytes, params: 2, frame: 14
if (!env0_13) {
(require(7066) /* metro dependency 7066: ReferralTrialActionCreators */).fetchReferralsRemaining();
}
const binding = env0_14;
if (!binding.has(userTrialOfferId)) {
handleReferralTrialResolve(userTrialOfferId);
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(function() {
return require(dependencyMap[7]).resolveReferralTrialOffer(userTrialOfferId).catch(NOOP_NULL);
});
}
}
function BILLING_REFERRALS_REMAINING_FETCH_FAIL(a0) { // fn#56097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4007, offset: 0x013bcd06, size: 204 bytes, params: 2, frame: 16
var r6;
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r6);
throw undefined;
}
const value2 = env0_17 + 1;
env0_17 = value2;
r6 = value2 <= 3 ? 1000 * global.Math.pow(2, env0_17) : 8000 * global.Math.pow(4, env0_17 - 3);
const Date = global.Date;
const value7 = Date.now();
const Math = global.Math;
env0_18 = value7 + Math.min(300000, r6);
}
function BILLING_CREATE_REFERRAL_SUCCESS({userTrialOffer}) { // fn#56098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4192, offset: 0x013bcdd2, size: 86 bytes, params: 2, frame: 15
(require(7066) /* metro dependency 7066: ReferralTrialActionCreators */).fetchReferralsRemaining();
let binding = env0_16;
binding.set(userTrialOffer.id, userTrialOffer);
binding = env0_11;
const add = binding.add;
const user_id = userTrialOffer.user_id;
Reflect.apply(add, binding, [user_id]);
}
function CREATE_REFERRALS_SUCCESS({userTrialOffers}) { // fn#56099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4341, offset: 0x013bce28, size: 127 bytes, params: 2, frame: 17
var r2;
var value4;
var binding;
var set;
var id;
var add;
var user_id;
var value5;
(require(7066) /* metro dependency 7066: ReferralTrialActionCreators */).fetchReferralsRemaining();
const value2 = _createForOfIteratorHelperLoose_56066(userTrialOffers);
const value3 = value2();
let done = value3.done;
if (!done) {
for (r2 = value3; true; r2 = value5) {
value4 = r2.value;
function BILLING_REFERRAL_RESOLVE_SUCCESS({userTrialOffer}) { // fn#56100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4578, offset: 0x013bcea7, size: 80 bytes, params: 2, frame: 14
var binding;
var id;
var add;
var set;
if (userTrialOffer != null) {
binding = env0_14;
id = userTrialOffer.id;
binding.delete(id);
binding = env0_15;
add = binding.add;
id = userTrialOffer.id;
Reflect.apply(add, binding, [id]);
binding = env0_16;
set = binding.set;
id = value4.id;
Reflect.apply(set, binding, [id, value4]);
binding = env0_11;
add = binding.add;
user_id = value4.user_id;
Reflect.apply(add, binding, [user_id]);
value5 = value2();
done = value5.done;
if (done) {
break;
}
id = userTrialOffer.id;
Reflect.apply(set, binding, [id, userTrialOffer]);
}
}
}
function BILLING_REFERRAL_RESOLVE_SUCCESS({userTrialOffer}) { // fn#56100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4578, offset: 0x013bcea7, size: 80 bytes, params: 2, frame: 14
var binding;
var id;
var add;
var set;
if (userTrialOffer != null) {
binding = env0_14;
id = userTrialOffer.id;
binding.delete(id);
binding = env0_15;
add = binding.add;
id = userTrialOffer.id;
Reflect.apply(add, binding, [id]);
binding = env0_16;
set = binding.set;
id = userTrialOffer.id;
Reflect.apply(set, binding, [id, userTrialOffer]);
function BILLING_REFERRAL_RESOLVE_FAIL({userTrialOfferId}) { // fn#56101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4724, offset: 0x013bcef7, size: 44 bytes, params: 2, frame: 12
env0_14.delete(userTrialOfferId);
env0_15.add(userTrialOfferId);
}
}
function BILLING_REFERRAL_RESOLVE_FAIL({userTrialOfferId}) { // fn#56101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:4724, offset: 0x013bcef7, size: 44 bytes, params: 2, frame: 12
env0_14.delete(userTrialOfferId);
env0_15.add(userTrialOfferId);
}
function LOGOUT_56106() { // fn#56106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:5293, offset: 0x013bcf5f, size: 213 bytes, params: 1, frame: 13
let Set = global.Set;
let set = new Set();
Set = global.Set;
set = new Set();
Set = global.Set;
set = new Set();
let Map = global.Map;
let map = new Map();
env0_19 = [];
Map = global.Map;
map = new Map();
}
function value_56078() { // fn#56078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2236, offset: 0x013bcad3, size: 118 bytes, params: 1, frame: 14
const value = environment.__proto__;
if (env1_10 == null && !env1_13 && env1_17 < 6 && (env1_18 == null || env1_18 < global.Date.now())) {
(require(7066) /* metro dependency 7066: ReferralTrialActionCreators */).fetchReferralsRemaining();
function LOGOUT_56106() { // fn#56106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:5293, offset: 0x013bcf5f, size: 213 bytes, params: 1, frame: 13
let Set = global.Set;
let set = new Set();
Set = global.Set;
set = new Set();
Set = global.Set;
set = new Set();
let Map = global.Map;
let map = new Map();
env0_19 = [];
Map = global.Map;
map = new Map();
}
}
function value_56079() { // fn#56079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2362, offset: 0x013bcb49, size: 48 bytes, params: 1, frame: 11
let value = a0;
let bypassFetch = (value !== undefined ? value : {}).bypassFetch;
bypassFetch = !(bypassFetch === undefined) && bypassFetch;
if (!bypassFetch) {
this.checkAndFetchReferralsRemaining();
}
value = environment.__proto__;
return env1_10;
}
function value_56080() { // fn#56080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2475, offset: 0x013bcb79, size: 49 bytes, params: 1, frame: 12
this.checkAndFetchReferralsRemaining();
const Array = global.Array;
const from = Array.from;
const binding = env1_11;
return Reflect.apply(from, Array, [binding.values()]);
}
function value_56082(a0) { // fn#56082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:2660, offset: 0x013bcbaa, size: 22 bytes, params: 2, frame: 11
return env1_16.get(a0);
}
function value_56090() { // fn#56090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7243:3136, offset: 0x013bcbc0, size: 36 bytes, params: 1, frame: 12
const Array = global.Array;
const from = Array.from;
const binding = env1_16;
return Reflect.apply(from, Array, [binding.values()]);
}
global.__d(_fun56062, 7065, [6, 7, 15, 17, 18, 1878, 661, 7066, 694, 671, 566,
2]) /* metro module 7065, dependencies: [6, 7, 15, 17, 18, 1878, 661, 7066, 694, 671, 566, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 7288; source: modules/premium/ReverseTrialUtils.native.tsx; dependencies: [1878, 566, 2] */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun58802(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7466:6, offset: 0x016d73a8, size: 151 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/ReverseTrialUtils.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/ReverseTrialUtils.native.tsx');
exports.useIsInReverseTrial = function() {
return require(dependencyMap[1]).useStateFromStores([UserStore], _fun58804);
};
@@ -15,22 +18,23 @@ function _fun58802(global, require, importDefault, importAll, module, exports, d
};
exports.maybeShowReverseTrialFollowupUpsellModal = function() {
};
}
function useIsInReverseTrial() { // fn#58803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7466:206, offset: 0x016d743f, size: 57 bytes, params: 1, frame: 13
return (FluxModule).useStateFromStores([UserStore], _fun58804);
function _fun58804() { // fn#58804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7466:276, offset: 0x016d7478, size: 49 bytes, params: 1, frame: 11
var r1;
let value = environment.__proto__;
value = UserStore.getCurrentUser();
if (value == null) {
r1 = undefined;
} else {
value = value.isOnReverseTrial();
r1 = value;
}
return r1 != null && r1;
}
function useIsInReverseTrial() { // fn#58803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7466:206, offset: 0x016d743f, size: 57 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun58804);
}
function _fun58804() { // fn#58804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7466:276, offset: 0x016d7478, size: 49 bytes, params: 1, frame: 11
var r1;
let value = environment.__proto__;
value = UserStore.getCurrentUser();
if (value == null) {
r1 = undefined;
} else {
value = value.isOnReverseTrial();
r1 = value;
}
return r1 != null && r1;
}
global.__d(_fun58802, 7288, [1878, 566, 2]) /* metro module 7288, dependencies: [1878, 566, 2] */;
+13 -9
View File
@@ -1,17 +1,21 @@
/* Metro module 12708; source: modules/premium/SKUListing.tsx; dependencies: [7, 6, 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun97363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12898:6, offset: 0x0217de04, size: 127 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importDefault(7) /* metro dependency 7 */;
const env0_0 = importDefault(6) /* metro dependency 6 */;
let value = CreateClass;
value = value(SKUListing);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/SKUListing.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/SKUListing.tsx');
exports.default = value;
function SKUListing(a0, a1) { // fn#97364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12898:121, offset: 0x0217de83, size: 42 bytes, params: 3, frame: 13
ClassCallCheck(this, SKUListing);
this.skuId = a0;
this.skuFeatures = a1;
}
}
function SKUListing(a0, a1) { // fn#97364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12898:121, offset: 0x0217de83, size: 42 bytes, params: 3, frame: 13
env0_0(this, SKUListing);
this.skuId = a0;
this.skuFeatures = a1;
}
global.__d(_fun97363, 12708, [7, 6, 2]) /* metro module 12708, dependencies: [7, 6, 2] */;
+173 -168
View File
@@ -1,189 +1,194 @@
/* Metro module 15832; source: modules/premium/SubscriptionManager.tsx; dependencies: [5, 7, 6, 15, 17, 18, 1878, 3804, 3808, 5181, 1880, 1900, 4223, 5182, 4860, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
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 UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import BillingInfoStore from '../../stores/billing/BillingInfoStore.tsx'; /* Metro dependency 3804 */
import SubscriptionStore from '../../stores/billing/SubscriptionStore.tsx'; /* Metro dependency 3808 */
import EntitlementStore from '../../stores/game_store/EntitlementStore.tsx'; /* Metro dependency 5181 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from './PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as PremiumTypeUtilsModule from '../../utils/PremiumTypeUtils.tsx'; /* Metro dependency 1900 */
function _fun121666(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:6, offset: 0x0254d736, size: 338 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const billingInfoStore = importDefault(3804) /* metro dependency 3804: BillingInfoStore */;
const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
const entitlementStore = importDefault(5181) /* metro dependency 5181: EntitlementStore */;
let value = require(1880) /* metro dependency 1880: PremiumConstants */;
let value = PremiumConstantsModule;
const env0_12 = value.PREMIUM_SUBSCRIPTION_APPLICATION;
const env0_13 = value.PremiumTypes;
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
value = _fun121670(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/SubscriptionManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/SubscriptionManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_121667() { // fn#121667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:263, offset: 0x0254d888, 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) {
function _isNativeReflectConstruct_121667() { // fn#121667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:263, offset: 0x0254d888, 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_121667_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_121667_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun121670(a0) { // fn#121670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:466, offset: 0x0254d8ea, size: 42 bytes, params: 2, frame: 14
const closure = SubscriptionManager;
env0_7(closure, a0);
return env0_3(closure);
}
function _fun121670(a0) { // fn#121670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:466, offset: 0x0254d8ea, size: 42 bytes, params: 2, frame: 14
const SubscriptionManager2 = SubscriptionManager;
Inherits(SubscriptionManager2, a0);
return CreateClass(SubscriptionManager2);
function SubscriptionManager(a0) { // fn#121671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:478, offset: 0x0254d914, size: 223 bytes, params: 2, frame: 21
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, SubscriptionManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(SubscriptionManager);
binding = env1_5;
if (_isNativeReflectConstruct_121667()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121672};
binding = env1_2;
value.maybeFetchSubscriptions = binding(_fun121674);
value.maybeFetchMostRecentSubscription = maybeFetchMostRecentSubscription;
value.maybeFetchCountryCode = binding(_fun121677);
value.fetchCountryCode = binding(_fun121679);
return value;
function SubscriptionManagerPOST_CONNECTION_OPEN() { // fn#121672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:753, owner: SubscriptionManager.POST_CONNECTION_OPEN, offset: 0x0254d9f3, size: 41 bytes, params: 1, frame: 9
const binding = env0_0;
binding.maybeFetchSubscriptions();
binding.maybeFetchCountryCode();
binding.maybeFetchMostRecentSubscription();
}
function SubscriptionManager(a0) { // fn#121671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:478, offset: 0x0254d914, size: 223 bytes, params: 2, frame: 21
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, SubscriptionManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_6(SubscriptionManager);
binding = env1_5;
if (_isNativeReflectConstruct_121667()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121672};
binding = env1_2;
value.maybeFetchSubscriptions = binding(_fun121674);
value.maybeFetchMostRecentSubscription = maybeFetchMostRecentSubscription;
value.maybeFetchCountryCode = binding(_fun121677);
value.fetchCountryCode = binding(_fun121679);
return value;
}
function SubscriptionManagerPOST_CONNECTION_OPEN() { // fn#121672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:753, owner: SubscriptionManager.POST_CONNECTION_OPEN, offset: 0x0254d9f3, size: 41 bytes, params: 1, frame: 9
const binding = env0_0;
binding.maybeFetchSubscriptions();
binding.maybeFetchCountryCode();
binding.maybeFetchMostRecentSubscription();
}
function* _fun121674() { // fn#121674, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:880, offset: 0x0254da27, size: 260 bytes, params: 1, frame: 15
var r3;
var value6;
var premiumSubscription;
var value12;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__.__proto__;
let binding = env3_8;
const currentUser = binding.getCurrentUser();
const isSubscriptionFetching = env3_9.isSubscriptionFetching;
binding = env3_0;
const value4 = undefined;
const value5 = binding(env3_1[11]);
if (value5.isPremium(currentUser)) {
binding = env3_10;
r3 = binding.hasFetchedSubscriptions() || isSubscriptionFetching;
if (r3) {
binding = env3_10;
premiumSubscription = binding.getPremiumSubscription();
if ((premiumSubscription == null ? value4 : premiumSubscription.paymentSourceId) != null || env3_11.applicationIdsFetched.has(env3_12)) {
function* _fun121674() { // fn#121674, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:880, offset: 0x0254da27, size: 260 bytes, params: 1, frame: 15
var r3;
var value6;
var premiumSubscription;
var value12;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__.__proto__;
let binding = env3_8;
const currentUser = binding.getCurrentUser();
const isSubscriptionFetching = env3_9.isSubscriptionFetching;
binding = env3_0;
const value4 = undefined;
const value5 = binding(env3_1[11]);
if (value5.isPremium(currentUser)) {
binding = env3_10;
r3 = binding.hasFetchedSubscriptions() || isSubscriptionFetching;
if (r3) {
binding = env3_10;
premiumSubscription = binding.getPremiumSubscription();
if ((premiumSubscription == null ? value4 : premiumSubscription.paymentSourceId) != null || env3_11.applicationIdsFetched.has(env3_12)) {
return value4;
}
binding = env3_0;
value12 = binding(env3_1[13]);
yield value12.fetchUserEntitlementsForApplication(env3_12);
return value4;
}
binding = env3_0;
value6 = binding(env3_1[12]);
yield value6.fetchSubscriptions();
if (false) {
return undefined;
}
binding = env3_10;
premiumSubscription = binding.getPremiumSubscription();
r3 = (premiumSubscription == null ? value4 : premiumSubscription.paymentSourceId) != null || env3_11.applicationIdsFetched.has(env3_12);
if (r3) {
return value4;
}
binding = env3_0;
value12 = binding(env3_1[13]);
yield value12.fetchUserEntitlementsForApplication(env3_12);
}
return value4;
}
binding = env3_0;
value12 = binding(env3_1[13]);
yield value12.fetchUserEntitlementsForApplication(env3_12);
return value4;
function maybeFetchMostRecentSubscription() { // fn#121675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:1242, owner: SubscriptionManager.maybeFetchMostRecentSubscription, offset: 0x0254db2b, size: 169 bytes, params: 1, frame: 18
const value = environment.__proto__.__proto__;
const currentUser = UserStore.getCurrentUser();
const value3 = undefined;
const isPremiumAtMost = PremiumTypeUtilsModule.isPremiumAtMost;
const value4 = null;
const premiumType = value4 == currentUser ? value3 : currentUser.premiumType;
const r4 = value4 != premiumType ? premiumType : value4;
const TIER_1 = PremiumTypes.TIER_1;
if (value4 != currentUser && Reflect.apply(isPremiumAtMost, PremiumTypeUtilsModule, [r4,
TIER_1]) && currentUser.hasHadPremium() && !SubscriptionStore.getIsFetchingMostRecentSubscription()) {
(require(4223) /* metro dependency 4223: BillingActionCreators */).fetchMostRecentSubscription();
}
return value3;
}
function* _fun121677() { // fn#121677, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:1501, offset: 0x0254dbdf, size: 111 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__.__proto__.__proto__;
if (env3_0(env3_1[11]).isPremium(env3_8.getCurrentUser()) && !env3_9.ipCountryCodeLoaded) {
value = environment.__proto__;
yield SubscriptionManager.fetchCountryCode();
value = undefined;
return undefined;
}
}
}
function* _fun121679() { // fn#121679, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:1639, offset: 0x0254dc59, size: 117 bytes, params: 1, frame: 15
if (true) {
value = environment.__proto__.__proto__.__proto__;
var value3 = env3_0(env3_1[12]);
yield value3.fetchIpCountryCode();
if (false) {
return undefined;
}
if (env3_9.ipCountryCode == null) {
return undefined;
}
value = env3_0(env3_1[12]);
yield value.fetchPaymentSources();
}
}
}
binding = env3_0;
value6 = binding(env3_1[12]);
yield value6.fetchSubscriptions();
if (false) {
return undefined;
}
binding = env3_10;
premiumSubscription = binding.getPremiumSubscription();
r3 = (premiumSubscription == null ? value4 : premiumSubscription.paymentSourceId) != null || env3_11.applicationIdsFetched.has(env3_12);
if (r3) {
return value4;
}
binding = env3_0;
value12 = binding(env3_1[13]);
yield value12.fetchUserEntitlementsForApplication(env3_12);
}
return value4;
}
function maybeFetchMostRecentSubscription() { // fn#121675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:1242, owner: SubscriptionManager.maybeFetchMostRecentSubscription, offset: 0x0254db2b, size: 169 bytes, params: 1, frame: 18
const value = environment.__proto__.__proto__;
const currentUser = UserStore.getCurrentUser();
const value3 = undefined;
const premiumTypeUtilsModule = require(1900) /* metro dependency 1900: PremiumTypeUtils */;
const isPremiumAtMost = premiumTypeUtilsModule.isPremiumAtMost;
const value4 = null;
const premiumType = value4 == currentUser ? value3 : currentUser.premiumType;
const r4 = value4 != premiumType ? premiumType : value4;
const TIER_1 = PremiumTypes.TIER_1;
if (value4 != currentUser && Reflect.apply(isPremiumAtMost, premiumTypeUtilsModule, [r4,
TIER_1]) && currentUser.hasHadPremium() && !SubscriptionStore.getIsFetchingMostRecentSubscription()) {
(require(4223) /* metro dependency 4223: BillingActionCreators */).fetchMostRecentSubscription();
}
return value3;
}
function* _fun121677() { // fn#121677, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:1501, offset: 0x0254dbdf, size: 111 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__.__proto__.__proto__;
if (env3_0(env3_1[11]).isPremium(env3_8.getCurrentUser()) && !env3_9.ipCountryCodeLoaded) {
value = environment.__proto__;
yield SubscriptionManager.fetchCountryCode();
value = undefined;
return undefined;
}
}
}
function* _fun121679() { // fn#121679, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16040:1639, offset: 0x0254dc59, size: 117 bytes, params: 1, frame: 15
if (true) {
value = environment.__proto__.__proto__.__proto__;
var value3 = env3_0(env3_1[12]);
yield value3.fetchIpCountryCode();
if (false) {
return undefined;
}
if (env3_9.ipCountryCode == null) {
return undefined;
}
value = env3_0(env3_1[12]);
yield value.fetchPaymentSources();
}
}
global.__d(_fun121666, 15832, [5, 7, 6, 15, 17, 18, 1878, 3804, 3808, 5181, 1880, 1900, 4223, 5182, 4860,
2]) /* metro module 15832, dependencies: [5, 7, 6, 15, 17, 18, 1878, 3804, 3808, 5181, 1880, 1900, 4223, 5182, 4860, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,389 +1,389 @@
/* Metro module 7506; source: modules/premium/UserTrialActionCreators.android.tsx; dependencies: [5, 661, 507, 694, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun60541(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7684:6, offset: 0x01705419, size: 155 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.Endpoints;
const env0_5 = constantsModule.PaymentGateways;
object2 = {acknowledgeUserTrialOffer: acknowledgeUserTrialOffer};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/UserTrialActionCreators.android.tsx');
exports.default = object2;
}
function acknowledgeUserTrialOffer(a0) { // fn#60542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7684:181, offset: 0x017054b4, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return env0_3(_fun60544)();
}
function* _fun60544() { // fn#60544, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7684:187, offset: 0x017054df, size: 269 bytes, params: 1, frame: 17
var binding;
var binding2;
var property;
var value4;
var HTTP;
var post;
var object3;
var USER_TRIAL_OFFER_ACKNOWLEDGED;
var id;
var object4;
var GOOGLE;
var value5;
var body;
var binding3;
var dispatch;
var error;
var status;
if (true) {
value = environment.__proto__;
if (require.expires_at == null) {
try {
binding = env2_0;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
property = binding2[2];
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
value4 = binding(property);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
HTTP = value4.HTTP;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
post = HTTP.post;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object3 = {};
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding = env2_4;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
USER_TRIAL_OFFER_ACKNOWLEDGED = binding.USER_TRIAL_OFFER_ACKNOWLEDGED;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
id = require.id;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
value = Reflect.apply(USER_TRIAL_OFFER_ACKNOWLEDGED, binding, [id]);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object3.url = value;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object4 = {};
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding = env2_5;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
GOOGLE = binding.GOOGLE;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object4.payment_gateway = GOOGLE;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object3.body = object4;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object3.rejectWithError = false;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
value = Reflect.apply(post, HTTP, [object3]);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
yield value;
try {
value = undefined;
value5 = false;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
if (value5) {
return value;
}
try {
body = value.body;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding = env2_1;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
property = binding3[3];
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
value = binding(property);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
dispatch = value.dispatch;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object3 = {};
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object3.type = 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS';
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object3.userTrialOffer = body;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
Reflect.apply(dispatch, value, [object3]);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
object = {acknowledgeUserTrialOffer: acknowledgeUserTrialOffer};
(FileImportTrackerModule).fileFinishedImporting('modules/premium/UserTrialActionCreators.android.tsx');
exports.default = object;
function acknowledgeUserTrialOffer(a0) { // fn#60542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7684:181, offset: 0x017054b4, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0;
return Module00005(_fun60544)();
function* _fun60544() { // fn#60544, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7684:187, offset: 0x017054df, size: 269 bytes, params: 1, frame: 17
var binding;
var binding2;
var property;
var value4;
var HTTP;
var post;
var object;
var USER_TRIAL_OFFER_ACKNOWLEDGED;
var id;
var object2;
var GOOGLE;
var value5;
var body;
var binding3;
var dispatch;
var error;
var status;
if (true) {
value = environment.__proto__;
if (require.expires_at == null) {
try {
binding = env2_0;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
property = binding2[2];
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
value4 = binding(property);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
HTTP = value4.HTTP;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
post = HTTP.post;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object = {};
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding = env2_4;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
USER_TRIAL_OFFER_ACKNOWLEDGED = binding.USER_TRIAL_OFFER_ACKNOWLEDGED;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
id = require.id;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
value = Reflect.apply(USER_TRIAL_OFFER_ACKNOWLEDGED, binding, [id]);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object.url = value;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object2 = {};
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding = env2_5;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
GOOGLE = binding.GOOGLE;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object2.payment_gateway = GOOGLE;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object.body = object2;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object.rejectWithError = false;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
value = Reflect.apply(post, HTTP, [object]);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
yield value;
try {
value = undefined;
value5 = false;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
if (value5) {
return value;
}
try {
body = value.body;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding = env2_1;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
property = binding3[3];
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
value = binding(property);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
dispatch = value.dispatch;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object = {};
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object.type = 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS';
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
object.userTrialOffer = body;
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
return undefined;
}
try {
Reflect.apply(dispatch, value, [object]);
} catch (error) {
status = error.status;
if (status === 404) {
binding = env2_1;
value = binding(env2_2[3]);
value.dispatch({'type': 'BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS', 'userTrialOffer': null});
}
}
}
}
}
}
}
global.__d(_fun60541, 7506, [5, 661, 507, 694, 2]) /* metro module 7506, dependencies: [5, 661, 507, 694, 2] */;
@@ -1,10 +1,12 @@
/* Metro module 1941; source: modules/premium/enhanced_role_colors/EnhancedRoleColorUtils.tsx; dependencies: [661, 673, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun21565(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2068:6, offset: 0x00ef3c77, size: 139 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).DEFAULT_ROLE_COLOR_HEX;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/enhanced_role_colors/EnhancedRoleColorUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/enhanced_role_colors/EnhancedRoleColorUtils.tsx');
exports.extractColorStringsFromServerColors = extractColorStringsFromServerColors;
exports.getAuthorHasGradientRole = function(a0) {
var r1;
@@ -22,39 +24,40 @@ function _fun21565(global, require, importDefault, importAll, module, exports, d
exports.getIsDefaultErc = function(a0) {
return a0.color === 0 || a0.colors != null && a0.colors.primary_color === 0 && a0.colors.secondary_color == null && a0.colors.tertiary_color == null;
};
function extractColorStringsFromServerColors(a0) { // fn#21566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2068:264, offset: 0x00ef3d02, size: 201 bytes, params: 2, frame: 15
var r1;
var r3;
var value;
var moduleValue;
const object = {};
if (a0.primary_color === 0) {
r1 = DEFAULT_ROLE_COLOR_HEX;
} else {
value = require(673) /* metro dependency 673: ColorUtils */;
value = value.int2hex(a0.primary_color);
r1 = value;
}
object.primaryColor = r1;
const secondary_color = a0.secondary_color;
value = null;
if (value == secondary_color) {
r3 = value;
} else {
moduleValue = require(673) /* metro dependency 673: ColorUtils */;
r3 = moduleValue.int2hex(a0.secondary_color);
}
object.secondaryColor = r3;
if (value == a0.tertiary_color) {
r1 = value;
} else {
value = require(673) /* metro dependency 673: ColorUtils */;
value = value.int2hex(a0.tertiary_color);
r1 = value;
}
object.tertiaryColor = r1;
return object;
}
}
function extractColorStringsFromServerColors(a0) { // fn#21566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2068:264, offset: 0x00ef3d02, size: 201 bytes, params: 2, frame: 15
var r1;
var r3;
var value;
var moduleValue;
const object2 = {};
if (a0.primary_color === 0) {
r1 = DEFAULT_ROLE_COLOR_HEX;
} else {
value = require(673) /* metro dependency 673: ColorUtils */;
value = value.int2hex(a0.primary_color);
r1 = value;
}
object2.primaryColor = r1;
const secondary_color = a0.secondary_color;
value = null;
if (value == secondary_color) {
r3 = value;
} else {
moduleValue = require(673) /* metro dependency 673: ColorUtils */;
r3 = moduleValue.int2hex(a0.secondary_color);
}
object2.secondaryColor = r3;
if (value == a0.tertiary_color) {
r1 = value;
} else {
value = require(673) /* metro dependency 673: ColorUtils */;
value = value.int2hex(a0.tertiary_color);
r1 = value;
}
object2.tertiaryColor = r1;
return object2;
}
global.__d(_fun21565, 1941, [661, 673, 2]) /* metro module 1941, dependencies: [661, 673, 2] */;
@@ -1,7 +1,16 @@
/* Metro module 8206; source: modules/premium/enhanced_role_colors/native/EnhancedRoleColorUtils.tsx; dependencies: [57, 31, 27, 1310, 482, 674, 1360, 6630, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ThemeStore from '../../../user_settings/ThemeStore.tsx'; /* Metro dependency 1310 */
import UseHasEnhancedRoleColors from '../../powerups/hooks/useHasEnhancedRoleColors.tsx'; /* Metro dependency 6630 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as UseHasEnhancedRoleColorsModule from '../../powerups/hooks/useHasEnhancedRoleColors.tsx'; /* Metro dependency 6630 */
function _fun65746(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:6, offset: 0x01bdcf86, size: 270 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = processColorStrings;
const processColorStrings2 = processColorStrings;
const closure2 = function(a0) {
if (a0 == null) {
return [];
@@ -12,69 +21,69 @@ function _fun65746(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).processColor;
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
const env0_7 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/enhanced_role_colors/native/EnhancedRoleColorUtils.tsx');
exports.processColorStrings = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/enhanced_role_colors/native/EnhancedRoleColorUtils.tsx');
exports.processColorStrings = processColorStrings2;
exports.processColorStringsArray = closure2;
exports.useProcessColorStringsArray = useProcessColorStringsArray;
exports.isNativeMessageEligibleForEnhancedRoleColors = isNativeMessageEligibleForEnhancedRoleColors;
exports.useIsRoleStyleAndRoleColorsEligibleForERC = useIsRoleStyleAndRoleColorsEligibleForERC;
}
function processColorStringsInternal(a0) { // fn#65747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:170, offset: 0x01bdd094, size: 195 bytes, params: 2, frame: 20
let value = a0;
const theme = ThemeStore.theme;
const LIGHT = ThemeTypes.LIGHT;
if (theme !== LIGHT) {
return processColor(value ?? undefined);
function processColorStringsInternal(a0) { // fn#65747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:170, offset: 0x01bdd094, size: 195 bytes, params: 2, frame: 20
let value = a0;
const theme = ThemeStore.theme;
const LIGHT = ThemeTypes.LIGHT;
if (theme !== LIGHT) {
return processColor(value ?? undefined);
}
if (value == null) {
return processColor(value ?? undefined);
}
value = (importDefault(674) /* metro dependency 674 */)(value);
value = value.hsl();
value = Module00057(value, 3);
const property = value[0];
const property2 = value[1];
const property3 = value[2];
const processColorBinding = processColor;
value = importDefault(674) /* metro dependency 674 */;
value = value.hsl(property, property2, 0.85 * property3);
return processColorBinding(value.hex());
}
if (value == null) {
return processColor(value ?? undefined);
function processColorStrings(a0) { // fn#65748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:359, offset: 0x01bdd157, size: 74 bytes, params: 2, frame: 13
var object;
var processColorStringsInternalBinding;
if (a0 != null) {
object = {};
processColorStringsInternalBinding = processColorStringsInternal;
object.primaryColor = processColorStringsInternalBinding(a0.primaryColor);
object.secondaryColor = processColorStringsInternalBinding(a0.secondaryColor);
object.tertiaryColor = processColorStringsInternalBinding(a0.tertiaryColor);
return object;
}
}
value = (importDefault(674) /* metro dependency 674 */)(value);
value = value.hsl();
value = env0_3(value, 3);
const property = value[0];
const property2 = value[1];
const property3 = value[2];
const processColorBinding = processColor;
value = importDefault(674) /* metro dependency 674 */;
value = value.hsl(property, property2, 0.85 * property3);
return processColorBinding(value.hex());
}
function processColorStrings(a0) { // fn#65748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:359, offset: 0x01bdd157, size: 74 bytes, params: 2, frame: 13
var object2;
var processColorStringsInternalBinding;
if (a0 != null) {
object2 = {};
processColorStringsInternalBinding = processColorStringsInternal;
object2.primaryColor = processColorStringsInternalBinding(a0.primaryColor);
object2.secondaryColor = processColorStringsInternalBinding(a0.secondaryColor);
object2.tertiaryColor = processColorStringsInternalBinding(a0.tertiaryColor);
return object2;
function useProcessColorStringsArray(a0) { // fn#65750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:986, offset: 0x01bdd206, size: 99 bytes, params: 2, frame: 18
const env0_0 = a0;
const value = undefined;
return ReactModule.useMemo(_fun65751, [a0 == null ? value : a0.primaryColor, a0 == null ? value : a0.secondaryColor,
a0 == null ? value : a0.tertiaryColor]);
function _fun65751() { // fn#65751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:1044, offset: 0x01bdd269, size: 23 bytes, params: 1, frame: 11
return processColorStringsArray(env0_0);
}
}
function isNativeMessageEligibleForEnhancedRoleColors(a0, a1) { // fn#65752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:1221, offset: 0x01bdd280, size: 45 bytes, params: 3, frame: 13
return (UseHasEnhancedRoleColorsModule).getHasEnhancedRoleColors(a0, a1);
}
function useIsRoleStyleAndRoleColorsEligibleForERC(a0, a1, a2, a3) { // fn#65753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:1370, offset: 0x01bdd2ad, size: 71 bytes, params: 5, frame: 13
let value = UseHasEnhancedRoleColors;
value = value(a0, a1);
return value && a2 === 'username' && a3.length > 1;
}
}
function useProcessColorStringsArray(a0) { // fn#65750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:986, offset: 0x01bdd206, size: 99 bytes, params: 2, frame: 18
const env0_0 = a0;
const binding = env0_4;
const value = undefined;
return binding.useMemo(_fun65751, [a0 == null ? value : a0.primaryColor, a0 == null ? value : a0.secondaryColor,
a0 == null ? value : a0.tertiaryColor]);
}
function isNativeMessageEligibleForEnhancedRoleColors(a0, a1) { // fn#65752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:1221, offset: 0x01bdd280, size: 45 bytes, params: 3, frame: 13
return (require(6630) /* metro dependency 6630: useHasEnhancedRoleColors */).getHasEnhancedRoleColors(a0, a1);
}
function useIsRoleStyleAndRoleColorsEligibleForERC(a0, a1, a2, a3) { // fn#65753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8391:1370, offset: 0x01bdd2ad, size: 71 bytes, params: 5, frame: 13
let value = importDefault(6630) /* metro dependency 6630: useHasEnhancedRoleColors */;
value = value(a0, a1);
return value && a2 === 'username' && a3.length > 1;
}
global.__d(_fun65746, 8206, [57, 31, 27, 1310, 482, 674, 1360, 6630,
2]) /* metro module 8206, dependencies: [57, 31, 27, 1310, 482, 674, 1360, 6630, 2] */;
@@ -1,20 +1,30 @@
/* Metro module 7249; source: modules/premium/experiments/AndroidTwoWeekTrialsExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun58269(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7427:6, offset: 0x016c35ca, size: 207 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-06-android-two-week-trials', 'kind': 'user',
defaultConfig: {'enabled': false, 'trialCTAEnabled': false}, variations: {[1]: {'enabled': true,
'trialCTAEnabled': true}, [2]: {'enabled': true, 'trialCTAEnabled': false}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/AndroidTwoWeekTrialsExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/AndroidTwoWeekTrialsExperiment.tsx');
exports.AndroidTwoWeekTrialsExperiment = value;
exports.isAndroidTwoWeekTrialsExperimentEnabled = isAndroidTwoWeekTrialsExperimentEnabled;
exports.isAndroidTwoWeekTrialsTrialCTAEnabled = isAndroidTwoWeekTrialsTrialCTAEnabled;
function isAndroidTwoWeekTrialsExperimentEnabled({location}) { // fn#58270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7427:481, offset: 0x01195c54, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: location}]).enabled;
}
function isAndroidTwoWeekTrialsTrialCTAEnabled({location}) { // fn#58271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7427:626, offset: 0x016c3699, size: 40 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: location}]).trialCTAEnabled;
}
}
function isAndroidTwoWeekTrialsTrialCTAEnabled({location}) { // fn#58271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7427:626, offset: 0x016c3699, size: 40 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: location}]).trialCTAEnabled;
}
global.__d(_fun58269, 7249, [1854, 2]) /* metro module 7249, dependencies: [1854, 2] */;
@@ -1,13 +1,25 @@
/* Metro module 7293; source: modules/premium/experiments/BOGOPromotionMarketingMaterialsExperiments.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun58837(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7471:6, offset: 0x016d7e96, size: 154 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-03-bogo-promotion-marketing-materials-v2', 'kind': 'user',
'defaultConfig': false, variations: {[1]: true}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/BOGOPromotionMarketingMaterialsExperiments.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/BOGOPromotionMarketingMaterialsExperiments.tsx');
exports.default = value;
exports.useBogoMarketingMaterialsEnabled = useBogoMarketingMaterialsEnabled;
exports.getBogoMarketingMaterialsEnabled = getBogoMarketingMaterialsEnabled;
function useBogoMarketingMaterialsEnabled(a0) { // fn#58838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7471:393, offset: 0x01373b1d, size: 29 bytes, params: 2, frame: 12
return env0_0.useConfig({location: a0});
}
function getBogoMarketingMaterialsEnabled(a0) { // fn#58839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7471:507, offset: 0x0101fed4, size: 29 bytes, params: 2, frame: 12
return env0_0.getConfig({location: a0});
}
}
global.__d(_fun58837, 7293, [1854, 2]) /* metro module 7293, dependencies: [1854, 2] */;
@@ -1,13 +1,25 @@
/* Metro module 7291; source: modules/premium/experiments/BogoPromotionExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun58829(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7469:6, offset: 0x016d7cb7, size: 154 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-03-bogo-promotion-gate-v2', 'kind': 'user',
'defaultConfig': false, variations: {[1]: true}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/BogoPromotionExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/BogoPromotionExperiment.tsx');
exports.default = value;
exports.useBogoPromotionGateEnabled = useBogoPromotionGateEnabled;
exports.getBogoPromotionGateEnabled = getBogoPromotionGateEnabled;
function useBogoPromotionGateEnabled(a0) { // fn#58830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7469:354, offset: 0x01373b1d, size: 29 bytes, params: 2, frame: 12
return env0_0.useConfig({location: a0});
}
function getBogoPromotionGateEnabled(a0) { // fn#58831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7469:458, offset: 0x0101fed4, size: 29 bytes, params: 2, frame: 12
return env0_0.getConfig({location: a0});
}
}
global.__d(_fun58829, 7291, [1854, 2]) /* metro module 7291, dependencies: [1854, 2] */;
@@ -1,26 +1,29 @@
/* Metro module 12709; source: modules/premium/experiments/DenormalizedPerksReadExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun97365(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12899:6, offset: 0x0217dead, size: 216 bytes, params: 8, frame: 21
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object3 = {CONTROL: 0};
object3[0] = 'CONTROL';
object3.DUAL_READ_RETURN_OLD = 1;
object3[1] = 'DUAL_READ_RETURN_OLD';
object3.DUAL_READ_RETURN_NEW = 2;
object3[2] = 'DUAL_READ_RETURN_NEW';
let value = require(1854) /* metro dependency 1854: apex */;
object = {CONTROL: 0};
object[0] = 'CONTROL';
object.DUAL_READ_RETURN_OLD = 1;
object[1] = 'DUAL_READ_RETURN_OLD';
object.DUAL_READ_RETURN_NEW = 2;
object[2] = 'DUAL_READ_RETURN_NEW';
let value = ApexModule;
const createApexExperiment = value.createApexExperiment;
const object4 = {'name': '2026-03-denormalized-perks-access-read', 'kind': 'user'};
let CONTROL = object3.CONTROL;
object4.defaultConfig = CONTROL;
CONTROL = object3.CONTROL;
const DUAL_READ_RETURN_OLD = object3.DUAL_READ_RETURN_OLD;
const DUAL_READ_RETURN_NEW = object3.DUAL_READ_RETURN_NEW;
object4.variations = {[0]: CONTROL, [1]: DUAL_READ_RETURN_OLD, [2]: DUAL_READ_RETURN_NEW};
value = Reflect.apply(createApexExperiment, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/DenormalizedPerksReadExperiment.tsx');
const object2 = {'name': '2026-03-denormalized-perks-access-read', 'kind': 'user'};
let CONTROL = object.CONTROL;
object2.defaultConfig = CONTROL;
CONTROL = object.CONTROL;
const DUAL_READ_RETURN_OLD = object.DUAL_READ_RETURN_OLD;
const DUAL_READ_RETURN_NEW = object.DUAL_READ_RETURN_NEW;
object2.variations = {[0]: CONTROL, [1]: DUAL_READ_RETURN_OLD, [2]: DUAL_READ_RETURN_NEW};
value = Reflect.apply(createApexExperiment, value, [object2]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/DenormalizedPerksReadExperiment.tsx');
exports.default = value;
exports.DenormalizedPerksReadConfig = object3;
exports.DenormalizedPerksReadConfig = object;
}
global.__d(_fun97365, 12709, [1854, 2]) /* metro module 12709, dependencies: [1854, 2] */;
@@ -1,14 +1,24 @@
/* Metro module 8328; source: modules/premium/experiments/FriendAnniversariesExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun66346(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8513:6, offset: 0x01bf7774, size: 212 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2025-10-friendship-anniversary-gifting',
defaultConfig: {'enabled': false, 'showDmPrompts': false}, variations: {[0]: {'enabled': false,
'showDmPrompts': false}, [1]: {'enabled': true, 'showDmPrompts': true}, [2]: {'enabled': true,
'showDmPrompts': false}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/FriendAnniversariesExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/FriendAnniversariesExperiment.tsx');
exports.FriendAnniversariesExperiment = value;
exports.isFriendAnniversaryExperimentEnabled = isFriendAnniversaryExperimentEnabled;
function isFriendAnniversaryExperimentEnabled(a0) { // fn#66347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8513:509, offset: 0x00e3651f, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).enabled;
}
}
global.__d(_fun66346, 8328, [1854, 2]) /* metro module 8328, dependencies: [1854, 2] */;
@@ -1,13 +1,29 @@
/* Metro module 7557; source: modules/premium/experiments/MobileNitroManageSubscriptionsSettingsExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun60765(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7735:6, offset: 0x0170e348, size: 173 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-06-macaron', 'kind': 'user', defaultConfig: {enabled: false},
variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/MobileNitroManageSubscriptionsSettingsExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/MobileNitroManageSubscriptionsSettingsExperiment.tsx');
exports.default = value;
exports.useMobileNitroManageSubscriptionsSettingsExperiment = useMobileNitroManageSubscriptionsSettingsExperiment;
exports.getMobileNitroManageSubscriptionsSettingsExperiment = getMobileNitroManageSubscriptionsSettingsExperiment;
function useMobileNitroManageSubscriptionsSettingsExperiment({location}) { // fn#60766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7735:408, offset: 0x01195c7b, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: location}]).enabled;
}
function getMobileNitroManageSubscriptionsSettingsExperiment({location}) { // fn#60767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7735:579, offset: 0x01195c54, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: location}]).enabled;
}
}
global.__d(_fun60765, 7557, [1854, 2]) /* metro module 7557, dependencies: [1854, 2] */;
@@ -1,12 +1,22 @@
/* Metro module 7248; source: modules/premium/experiments/PremiumOfferReminderExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun58267(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7426:6, offset: 0x016c3526, size: 164 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-02-premium-offer-reminder-xp', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/PremiumOfferReminderExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/PremiumOfferReminderExperiment.tsx');
exports.PremiumOfferReminderExperiment = value;
exports.isPremiumOfferReminderExperimentEnabled = isPremiumOfferReminderExperimentEnabled;
function isPremiumOfferReminderExperimentEnabled({location}) { // fn#58268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7426:411, offset: 0x01195c54, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: location}]).enabled;
}
}
global.__d(_fun58267, 7248, [1854, 2]) /* metro module 7248, dependencies: [1854, 2] */;
@@ -1,11 +1,15 @@
/* Metro module 15306; source: modules/premium/experiments/PremiumTrialOfferActionSheetKillSwitchExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun117018(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15503:6, offset: 0x024a0754, size: 145 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2025-09-premium-trial-offer-action-sheet-ks', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/PremiumTrialOfferActionSheetKillSwitchExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/PremiumTrialOfferActionSheetKillSwitchExperiment.tsx');
exports.PremiumTrialOfferActionSheetKillSwitchExperiment = value;
}
global.__d(_fun117018, 15306, [1854, 2]) /* metro module 15306, dependencies: [1854, 2] */;
@@ -1,12 +1,22 @@
/* Metro module 8315; source: modules/premium/experiments/ReferralReminderDCExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun66233(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8500:6, offset: 0x01bf3ee1, size: 166 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-02-referral-reminder-dc', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/experiments/ReferralReminderDCExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/experiments/ReferralReminderDCExperiment.tsx');
exports.ReferralReminderDCExperiment = value;
exports.useIsReferralReminderDCExperimentEnabled = useIsReferralReminderDCExperimentEnabled;
function useIsReferralReminderDCExperimentEnabled({location}) { // fn#66234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8500:403, offset: 0x01195c7b, size: 39 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: location}]).enabled;
}
}
global.__d(_fun66233, 8315, [1854, 2]) /* metro module 8315, dependencies: [1854, 2] */;
@@ -1,10 +1,14 @@
/* Metro module 12244; source: modules/premium/fractional/native/BoostingCountDownPill.tsx; dependencies: [27, 33, 4501, 697, 4080, 12245, 1962, 1244, 4573, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun93682(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12430:6, offset: 0x020becfb, size: 426 bytes, params: 8, frame: 23
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_3 = value.TouchableOpacity;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
@@ -12,63 +16,65 @@ function _fun93682(global, require, importDefault, importAll, module, exports, d
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {};
const object5 = {'backgroundColor': null, 'flexDirection': 'row', 'gap': 12, 'padding': 12,
object = {};
const object2 = {'backgroundColor': null, 'flexDirection': 'row', 'gap': 12, 'padding': 12,
'justifyContent': 'center', 'borderColor': null, 'borderWidth': 1, 'borderRadius': null, 'marginBottom': 12};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
object5.borderColor = STATUS_WARNING;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object4.fractionalPremiumBanner = object5;
const object6 = {'flex': 1, 'paddingVertical': 12, 'paddingHorizontal': 27, 'backgroundColor': null,
object2.borderColor = STATUS_WARNING;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.fractionalPremiumBanner = object2;
const object3 = {'flex': 1, 'paddingVertical': 12, 'paddingHorizontal': 27, 'backgroundColor': null,
'borderRadius': null, 'justifyContent': 'center'};
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
object6.backgroundColor = BACKGROUND_MOD_STRONG;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
object4.fpDurationPill = object6;
object4.fpDurationText = {'textAlign': 'center', 'color': '#FFEAA0'};
object4.fpUnavailable = {'flex': 1, 'justifyContent': 'center'};
object4.fpUnavailableTextNoCountdown = {textAlign: 'center'};
const env0_7 = Reflect.apply(createStyles, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/fractional/native/BoostingCountDownPill.tsx');
object3.backgroundColor = BACKGROUND_MOD_STRONG;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
object.fpDurationPill = object3;
object.fpDurationText = {'textAlign': 'center', 'color': '#FFEAA0'};
object.fpUnavailable = {'flex': 1, 'justifyContent': 'center'};
object.fpUnavailableTextNoCountdown = {textAlign: 'center'};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/fractional/native/BoostingCountDownPill.tsx');
exports.default = BoostingCountDownPill;
}
function handlePress_93683() { // fn#93683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12430:755, offset: 0x020beea5, size: 136 bytes, params: 1, frame: 20
const defaultImport = importDefault(dependencyMap[4]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[6]);
value = value(dependencyMap[5], dependencyMap.paths);
const object = {};
const intl = require(dependencyMap[7]).intl;
object.aboutText = intl.string(require(dependencyMap[7]).t['07lzz7']);
Reflect.apply(openLazy, defaultImport, [value, 'NitroCreditEducationActionSheet', object]);
}
function handlePress_93683() { // fn#93683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12430:755, offset: 0x020beea5, size: 136 bytes, params: 1, frame: 20
const defaultImport = importDefault(dependencyMap[4]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[6]);
value = value(dependencyMap[5], dependencyMap.paths);
const object2 = {};
const intl = require(dependencyMap[7]).intl;
object2.aboutText = intl.string(require(dependencyMap[7]).t['07lzz7']);
Reflect.apply(openLazy, defaultImport, [value, 'NitroCreditEducationActionSheet', object2]);
}
function BoostingCountDownPill({fpDurationText, isInReverseTrial, style}) { // fn#93684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12430:1008, offset: 0x020bef2d, size: 389 bytes, params: 2, frame: 27
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const styles = useStyles();
const handlePress_936832 = isInReverseTrial ? undefined : handlePress_93683;
const items2 = [styles.fractionalPremiumBanner, style];
const r8 = !isInReverseTrial && <View style={styles.fpDurationPill}><Text variant="text-sm/bold" style={styles.fpDurationText}>{fpDurationText.toUpperCase()}</Text></View>;
const fpUnavailableTextNoCountdown = isInReverseTrial ? styles.fpUnavailableTextNoCountdown : undefined;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<TouchableOpacity activeOpacity={0.7} onPress={handlePress_936832}>
<View style={items2}>
{r8}
<View style={styles.fpUnavailable}>
<Text
variant="text-md/normal"
color="interactive-text-active"
style={fpUnavailableTextNoCountdown}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5nrJDO'])}
</Text>
function BoostingCountDownPill({fpDurationText, isInReverseTrial, style}) { // fn#93684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12430:1008, offset: 0x020bef2d, size: 389 bytes, params: 2, frame: 27
const Text = (TextModule).Text;
const styles = useStyles();
const handlePress_936832 = isInReverseTrial ? undefined : handlePress_93683;
const items2 = [styles.fractionalPremiumBanner, style];
const r8 = !isInReverseTrial && <View style={styles.fpDurationPill}><Text variant="text-sm/bold" style={styles.fpDurationText}>{fpDurationText.toUpperCase()}</Text></View>;
const fpUnavailableTextNoCountdown = isInReverseTrial ? styles.fpUnavailableTextNoCountdown : undefined;
const intl = (IndexNativeModule).intl;
return (
<TouchableOpacity activeOpacity={0.7} onPress={handlePress_936832}>
<View style={items2}>
{r8}
<View style={styles.fpUnavailable}>
<Text
variant="text-md/normal"
color="interactive-text-active"
style={fpUnavailableTextNoCountdown}
>
{intl.string((IndexNativeModule).t['5nrJDO'])}
</Text>
</View>
</View>
</View>
</TouchableOpacity>
);
</TouchableOpacity>
);
}
}
global.__d(_fun93682, 12244, [27, 33, 4501, 697, 4080, 12245, 1962, 1244, 4573,
2]) /* metro module 12244, dependencies: [27, 33, 4501, 697, 4080, 12245, 1962, 1244, 4573, 2] */;
@@ -1,10 +1,16 @@
/* Metro module 12194; source: modules/premium/fractional/native/LargeCountDownPill.tsx; dependencies: [27, 33, 4501, 697, 3857, 1244, 4068, 4573, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ToastActionCreators from '../../../toast/native/ToastActionCreators.tsx'; /* Metro dependency 3857 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as CircleInformationIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleInformationIcon.tsx'; /* Metro dependency 4068 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun93409(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:6, offset: 0x020b298e, size: 302 bytes, params: 8, frame: 22
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_3 = value.TouchableOpacity;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
@@ -12,53 +18,59 @@ function _fun93409(global, require, importDefault, importAll, module, exports, d
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center', 'borderRadius': null,
object = {};
const object2 = {'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center', 'borderRadius': null,
'backgroundColor': 'rgba(255, 255, 255, 0.1)', 'alignSelf': 'center', 'paddingHorizontal': 16,
'marginBottom': 10};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object3.largeCountdownPill = object4;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.largeCountdownPill = object2;
const TEXT_STATUS_IDLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_IDLE;
object3.largeCountdownPillText = {'paddingVertical': 8, 'color': null, 'fontSize': 14, 'lineHeight': 16,
object.largeCountdownPillText = {'paddingVertical': 8, 'color': null, 'fontSize': 14, 'lineHeight': 16,
'marginRight': 8, color: TEXT_STATUS_IDLE};
object3.iconStyle = {'width': 16, 'height': 16};
const env0_7 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/fractional/native/LargeCountDownPill.tsx');
object.iconStyle = {'width': 16, 'height': 16};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/fractional/native/LargeCountDownPill.tsx');
exports.default = LargeCountDownPill;
function LargeCountDownPill({countdownText}) { // fn#93410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:658, offset: 0x020b2abc, size: 237 bytes, params: 2, frame: 24
const styles = useStyles();
const object = {onPress: onPress_93411};
const Text = (TextModule).Text;
const text = (
<Text variant="text-xs/bold" style={styles.largeCountdownPillText}>
{countdownText.toUpperCase()}
</Text>
);
const CircleInformationIcon = (CircleInformationIconModule).CircleInformationIcon;
const TEXT_STATUS_IDLE = (Native).colors.TEXT_STATUS_IDLE;
return (
<TouchableOpacity {...object}>
<View style={styles.largeCountdownPill}>
{text}
<CircleInformationIcon style={styles.iconStyle} color={TEXT_STATUS_IDLE} />
</View>
</TouchableOpacity>
);
function LargeCountDownPillOnPress() { // fn#93411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:735, owner: LargeCountDownPill.onPress, offset: 0x020b2ba9, size: 148 bytes, params: 1, frame: 18
const defaultImport = ToastActionCreators;
const open = defaultImport.open;
const object = {key: 'LARGE_COUNTDOWN_PILL_TOAST'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Mv4E/M']);
object.icon = icon_93412;
const STATUS_WARNING = (Native).colors.STATUS_WARNING;
object.iconColor = STATUS_WARNING;
Reflect.apply(open, defaultImport, [object]);
function onPressIcon_93412() { // fn#93412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:841, owner: LargeCountDownPill.onPress.icon, offset: 0x020b2c3d, size: 93 bytes, params: 1, frame: 16
const CircleInformationIcon = (CircleInformationIconModule).CircleInformationIcon;
const STATUS_WARNING = (Native).colors.STATUS_WARNING;
return <CircleInformationIcon style={styles.iconStyle} color={STATUS_WARNING} />;
}
}
}
}
function LargeCountDownPill({countdownText}) { // fn#93410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:658, offset: 0x020b2abc, size: 237 bytes, params: 2, frame: 24
const styles = useStyles();
const object2 = {onPress: onPress_93411};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text variant="text-xs/bold" style={styles.largeCountdownPillText}>{countdownText.toUpperCase()}</Text>;
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
const TEXT_STATUS_IDLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_IDLE;
return (
<TouchableOpacity {...object2}>
<View style={styles.largeCountdownPill}>
{text}
<CircleInformationIcon style={styles.iconStyle} color={TEXT_STATUS_IDLE} />
</View>
</TouchableOpacity>
);
}
function LargeCountDownPillOnPress() { // fn#93411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:735, owner: LargeCountDownPill.onPress, offset: 0x020b2ba9, size: 148 bytes, params: 1, frame: 18
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'LARGE_COUNTDOWN_PILL_TOAST'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Mv4E/M']);
object2.icon = icon_93412;
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
object2.iconColor = STATUS_WARNING;
Reflect.apply(open, defaultImport, [object2]);
}
function onPressIcon_93412() { // fn#93412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12380:841, owner: LargeCountDownPill.onPress.icon, offset: 0x020b2c3d, size: 93 bytes, params: 1, frame: 16
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
return <CircleInformationIcon style={styles.iconStyle} color={STATUS_WARNING} />;
}
global.__d(_fun93409, 12194, [27, 33, 4501, 697, 3857, 1244, 4068, 4573,
2]) /* metro module 12194, dependencies: [27, 33, 4501, 697, 3857, 1244, 4068, 4573, 2] */;
@@ -1,55 +1,75 @@
/* Metro module 12245; source: modules/premium/fractional/native/NitroCreditEducationActionSheet.tsx; dependencies: [27, 661, 33, 4501, 697, 6275, 7684, 4573, 6766, 1244, 1948, 2] */
import HelpdeskUtils from '../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as TextWithIOSLinkWorkaroundModule from '../../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as CircleErrorIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleErrorIcon.tsx'; /* Metro dependency 7684 */
function _fun93685(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12431:6, offset: 0x020bf0b2, size: 348 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'flexDirection': 'row', 'backgroundColor': null, 'justifyContent': 'center', 'borderRadius': null,
const object2 = {'flexDirection': 'row', 'backgroundColor': null, 'justifyContent': 'center', 'borderRadius': null,
'marginBottom': 12};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object.backgroundColor = BACKGROUND_MOD_SUBTLE;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.backgroundColor = BACKGROUND_MOD_SUBTLE;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_7 = Reflect.apply(createStyles, value, [{container: {'marginTop': 32, 'marginHorizontal': 30},
aboutContainer: object, warningIcon: {margin: 16}, aboutTextContainer: {'justifyContent': 'center', 'flex': 1,
aboutContainer: object2, warningIcon: {margin: 16}, aboutTextContainer: {'justifyContent': 'center', 'flex': 1,
'marginRight': 30}, helpdeskText: {'textAlign': 'center', 'marginBottom': 24}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/fractional/native/NitroCreditEducationActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/fractional/native/NitroCreditEducationActionSheet.tsx');
exports.default = NitroCreditEducationActionSheet;
}
function NitroCreditEducationActionSheet({aboutText}) { // fn#93686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12431:651, offset: 0x020bf20e, size: 394 bytes, params: 2, frame: 27
const styles = useStyles();
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
const circleErrorIcon = <CircleErrorIcon size="lg" style={styles.warningIcon} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const view = <View style={styles.aboutContainer}>{circleErrorIcon}<View style={styles.aboutTextContainer}><Text variant="text-sm/medium" color="always-white">{aboutText}</Text></View></View>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const bg3jBj = (require(1244) /* metro dependency 1244: indexNative */).t.bg3jBj;
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const FRACTIONAL_PREMIUM_ABOUT = HelpdeskArticles.FRACTIONAL_PREMIUM_ABOUT;
return (
<BottomSheet>
<View style={styles.container}>
{view}
<TextWithIOSLinkWorkaround
variant="text-sm/medium"
color="always-white"
style={styles.helpdeskText}
>
{Reflect.apply(format, intl, [bg3jBj, {helpCenterLink: Reflect.apply(getArticleURL, defaultImport,
[FRACTIONAL_PREMIUM_ABOUT])}])}
</TextWithIOSLinkWorkaround>
function NitroCreditEducationActionSheet({aboutText}) { // fn#93686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12431:651, offset: 0x020bf20e, size: 394 bytes, params: 2, frame: 27
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const CircleErrorIcon = (CircleErrorIconModule).CircleErrorIcon;
const circleErrorIcon = <CircleErrorIcon size="lg" style={styles.warningIcon} />;
const Text = (TextModule).Text;
const view = (
<View style={styles.aboutContainer}>
{circleErrorIcon}
<View style={styles.aboutTextContainer}>
<Text variant="text-sm/medium" color="always-white">
{aboutText}
</Text>
</View>
</View>
</BottomSheet>
);
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
const intl = (IndexNativeModule).intl;
const format = intl.format;
const bg3jBj = (IndexNativeModule).t.bg3jBj;
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const FRACTIONAL_PREMIUM_ABOUT = HelpdeskArticles.FRACTIONAL_PREMIUM_ABOUT;
return (
<BottomSheet>
<View style={styles.container}>
{view}
<TextWithIOSLinkWorkaround
variant="text-sm/medium"
color="always-white"
style={styles.helpdeskText}
>
{Reflect.apply(format, intl, [bg3jBj, {helpCenterLink: Reflect.apply(getArticleURL, defaultImport,
[FRACTIONAL_PREMIUM_ABOUT])}])}
</TextWithIOSLinkWorkaround>
</View>
</BottomSheet>
);
}
}
global.__d(_fun93685, 12245, [27, 661, 33, 4501, 697, 6275, 7684, 4573, 6766, 1244, 1948,
2]) /* metro module 12245, dependencies: [27, 661, 33, 4501, 697, 6275, 7684, 4573, 6766, 1244, 1948, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2646; source: modules/premium/game_server/GameServer.messages.js; dependencies: [1247, 2647, 2648, 2649, 2650, 2651, 2652, 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, 2671, 2672, 2673, 2674, 2675, 2676, 2677, 1282, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun23928(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#23928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:6, offset: 0x00f13bb0, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_23929, cs: cs_23931, da: da_23933, de: de_23935, el: el_23937};
object2['en-GB'] = _fun23939;
object2['es-419'] = _fun23941;
object2['es-ES'] = _fun23943;
object2.fi = fi_23945;
object2.fr = fr_23947;
object2.hi = hi_23949;
object2.hr = hr_23951;
object2.hu = hu_23953;
object2.it = it_23955;
object2.ja = ja_23957;
object2.ko = ko_23959;
object2.lt = lt_23961;
object2.nl = nl_23963;
object2.no = no_23965;
object2.pl = pl_23967;
object2['pt-BR'] = _fun23969;
object2.ro = ro_23971;
object2.ru = ru_23973;
object2['sv-SE'] = _fun23975;
object2.th = th_23977;
object2.tr = tr_23979;
object2.uk = uk_23981;
object2.vi = vi_23983;
object2['zh-CN'] = _fun23985;
object2['zh-TW'] = _fun23987;
object2['en-US'] = _fun23989;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServer.messages.js');
object = {bg: bg_23929, cs: cs_23931, da: da_23933, de: de_23935, el: el_23937};
object['en-GB'] = _fun23939;
object['es-419'] = _fun23941;
object['es-ES'] = _fun23943;
object.fi = fi_23945;
object.fr = fr_23947;
object.hi = hi_23949;
object.hr = hr_23951;
object.hu = hu_23953;
object.it = it_23955;
object.ja = ja_23957;
object.ko = ko_23959;
object.lt = lt_23961;
object.nl = nl_23963;
object.no = no_23965;
object.pl = pl_23967;
object['pt-BR'] = _fun23969;
object.ro = ro_23971;
object.ru = ru_23973;
object['sv-SE'] = _fun23975;
object.th = th_23977;
object.tr = tr_23979;
object.uk = uk_23981;
object.vi = vi_23983;
object['zh-CN'] = _fun23985;
object['zh-TW'] = _fun23987;
object['en-US'] = _fun23989;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/GameServer.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_23929() { // fn#23929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:102, offset: 0x00f13d75, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2647) /* metro dependency 2647 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23931() { // fn#23931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:165, offset: 0x00f13db6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2648) /* metro dependency 2648 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23933() { // fn#23933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:228, offset: 0x00f13df7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2649) /* metro dependency 2649 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23935() { // fn#23935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:291, offset: 0x00f13e38, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2650) /* metro dependency 2650 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23937() { // fn#23937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:354, offset: 0x00f13e79, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2651) /* metro dependency 2651 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23939() { // fn#23939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:422, offset: 0x00f13eba, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2652) /* metro dependency 2652 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23941() { // fn#23941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:491, offset: 0x00f13efb, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2653) /* metro dependency 2653 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23943() { // fn#23943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:559, offset: 0x00f13f3c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2654) /* metro dependency 2654 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23945() { // fn#23945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:622, offset: 0x00f13f7d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2655) /* metro dependency 2655 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23947() { // fn#23947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:685, offset: 0x00f13fbe, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2656) /* metro dependency 2656 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23949() { // fn#23949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:749, offset: 0x00f13fff, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2657) /* metro dependency 2657 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23951() { // fn#23951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:813, offset: 0x00f14040, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2658) /* metro dependency 2658 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23953() { // fn#23953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:877, offset: 0x00f14081, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2659) /* metro dependency 2659 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23955() { // fn#23955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:941, offset: 0x00f140c2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2660) /* metro dependency 2660 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23957() { // fn#23957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1005, offset: 0x00f14103, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2661) /* metro dependency 2661 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23959() { // fn#23959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1069, offset: 0x00f14144, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2662) /* metro dependency 2662 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23961() { // fn#23961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1133, offset: 0x00f14185, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2663) /* metro dependency 2663 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23963() { // fn#23963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1197, offset: 0x00f141c6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2664) /* metro dependency 2664 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23965() { // fn#23965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1261, offset: 0x00f14207, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2665) /* metro dependency 2665 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23967() { // fn#23967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1325, offset: 0x00f14248, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2666) /* metro dependency 2666 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23969() { // fn#23969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1394, offset: 0x00f14289, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2667) /* metro dependency 2667 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23971() { // fn#23971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1458, offset: 0x00f142ca, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2668) /* metro dependency 2668 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23973() { // fn#23973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1522, offset: 0x00f1430b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2669) /* metro dependency 2669 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23975() { // fn#23975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1591, offset: 0x00f1434c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2670) /* metro dependency 2670 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23977() { // fn#23977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1655, offset: 0x00f1438d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2671) /* metro dependency 2671 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23979() { // fn#23979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1719, offset: 0x00f143ce, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2672) /* metro dependency 2672 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23981() { // fn#23981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1783, offset: 0x00f1440f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2673) /* metro dependency 2673 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23983() { // fn#23983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1847, offset: 0x00f14450, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2674) /* metro dependency 2674 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23985() { // fn#23985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1916, offset: 0x00f14491, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2675) /* metro dependency 2675 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23987() { // fn#23987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1985, offset: 0x00f144d2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2676) /* metro dependency 2676 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23989() { // fn#23989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:2054, offset: 0x00f14513, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2677) /* metro dependency 2677 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_23929() { // fn#23929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:102, offset: 0x00f13d75, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2647) /* metro dependency 2647 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_23931() { // fn#23931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:165, offset: 0x00f13db6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2648) /* metro dependency 2648 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_23933() { // fn#23933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:228, offset: 0x00f13df7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2649) /* metro dependency 2649 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_23935() { // fn#23935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:291, offset: 0x00f13e38, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2650) /* metro dependency 2650 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_23937() { // fn#23937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:354, offset: 0x00f13e79, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2651) /* metro dependency 2651 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23939() { // fn#23939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:422, offset: 0x00f13eba, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2652) /* metro dependency 2652 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23941() { // fn#23941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:491, offset: 0x00f13efb, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2653) /* metro dependency 2653 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23943() { // fn#23943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:559, offset: 0x00f13f3c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2654) /* metro dependency 2654 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_23945() { // fn#23945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:622, offset: 0x00f13f7d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2655) /* metro dependency 2655 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_23947() { // fn#23947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:685, offset: 0x00f13fbe, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2656) /* metro dependency 2656 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_23949() { // fn#23949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:749, offset: 0x00f13fff, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2657) /* metro dependency 2657 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_23951() { // fn#23951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:813, offset: 0x00f14040, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2658) /* metro dependency 2658 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_23953() { // fn#23953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:877, offset: 0x00f14081, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2659) /* metro dependency 2659 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_23955() { // fn#23955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:941, offset: 0x00f140c2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2660) /* metro dependency 2660 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_23957() { // fn#23957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1005, offset: 0x00f14103, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2661) /* metro dependency 2661 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_23959() { // fn#23959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1069, offset: 0x00f14144, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2662) /* metro dependency 2662 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_23961() { // fn#23961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1133, offset: 0x00f14185, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2663) /* metro dependency 2663 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_23963() { // fn#23963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1197, offset: 0x00f141c6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2664) /* metro dependency 2664 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_23965() { // fn#23965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1261, offset: 0x00f14207, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2665) /* metro dependency 2665 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_23967() { // fn#23967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1325, offset: 0x00f14248, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2666) /* metro dependency 2666 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23969() { // fn#23969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1394, offset: 0x00f14289, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2667) /* metro dependency 2667 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_23971() { // fn#23971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1458, offset: 0x00f142ca, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2668) /* metro dependency 2668 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_23973() { // fn#23973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1522, offset: 0x00f1430b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2669) /* metro dependency 2669 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23975() { // fn#23975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1591, offset: 0x00f1434c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2670) /* metro dependency 2670 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_23977() { // fn#23977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1655, offset: 0x00f1438d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2671) /* metro dependency 2671 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_23979() { // fn#23979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1719, offset: 0x00f143ce, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2672) /* metro dependency 2672 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_23981() { // fn#23981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1783, offset: 0x00f1440f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2673) /* metro dependency 2673 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_23983() { // fn#23983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1847, offset: 0x00f14450, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2674) /* metro dependency 2674 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23985() { // fn#23985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1916, offset: 0x00f14491, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2675) /* metro dependency 2675 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23987() { // fn#23987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:1985, offset: 0x00f144d2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2676) /* metro dependency 2676 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun23989() { // fn#23989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2773:2054, offset: 0x00f14513, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2677) /* metro dependency 2677 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun23928, 2646, [1247, 2647, 2648, 2649, 2650, 2651, 2652, 2653, 2654, 2655, 2656, 2657, 2658, 2659,
2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, 2671, 2672, 2673, 2674, 2675, 2676, 2677,
1282,
2]) /* metro module 2646, dependencies: [1247, 2647, 2648, 2649, 2650, 2651, 2652, 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, 2671, 2672, 2673, 2674, 2675, 2676, 2677, 1282, 2] */;
@@ -1,15 +1,19 @@
/* Metro module 14602; source: modules/premium/game_server/GameServerActionCreators.tsx; dependencies: [1949, 1878, 8260, 661, 694, 14603, 4141, 14605, 507, 8257, 683, 14606, 2] */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import LocaleStore from '../../user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as StoreUtilsModule from '../../../utils/StoreUtils.tsx'; /* Metro dependency 4141 */
import * as GameServerConstantsModule from './GameServerConstants.tsx'; /* Metro dependency 8260 */
import * as GameServerMocksModule from './mocks/GameServerMocks.tsx'; /* Metro dependency 14603 */
function _fun110389(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:6, offset: 0x02377dbc, size: 353 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_5 = (require(8260) /* metro dependency 8260: GameServerConstants */).GAME_SERVER_COLLECTION_ID;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_6 = constantsModule.AnalyticEvents;
const env0_7 = constantsModule.Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServerActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/GameServerActionCreators.tsx');
exports.fetchGameServerCatalog = fetchGameServerCatalog;
exports.fetchGameServerGlobalCatalog = fetchGameServerGlobalCatalog;
exports.fetchGameServerInstances = fetchGameServerInstances;
@@ -46,220 +50,227 @@ function _fun110389(global, require, importDefault, importAll, module, exports,
};
exports.fetchGameServerRegions = fetchGameServerRegions;
exports.wakeGameServer = wakeGameServer;
}
function fetchGameServerCatalog(a0) { // fn#110390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:312, offset: 0x02377f1d, size: 228 bytes, params: 2, frame: 20
const value = a1;
const env0_0 = a0;
const value2 = undefined;
let r2 = value !== value2 ? value : false;
if (r2) {
global.setTimeout(_fun110393, 5000);
return value2;
}
const currentUser = UserStore.getCurrentUser();
r2 = currentUser == null ? value2 : currentUser.isStaff();
const r6 = r2 != null && r2;
const httpGetWithCountryCodeQuery = StoreUtilsModule.httpGetWithCountryCodeQuery;
const object = {'url': null, 'query': null, 'oldFormErrors': true, 'rejectWithError': false, 'retries': 2};
object.url = Endpoints.STOREFRONT_COLLECTION_WITH_PRODUCTS(GAME_SERVER_COLLECTION_ID);
object.query = {locale: LocaleStore.locale, guild_id: a0, include_unpublished_products: r6,
include_unpublished_collection: r6};
return Reflect.apply(httpGetWithCountryCodeQuery, StoreUtilsModule, [object]).then(_fun110391);
function _fun110391({body}) { // fn#110391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:676, offset: 0x02378001, size: 102 bytes, params: 2, frame: 15
(Dispatcher).dispatch({type: 'GAME_SERVER_FETCH_CATALOG_SUCCESS',
guildId: env0_0, catalog: body.products.reduce(_fun110392, {})});
function _fun110392(a0, a1) { // fn#110392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:710, offset: 0x02378067, size: 53 bytes, params: 3, frame: 12
let value = environment.__proto__.__proto__;
value = require(14605) /* metro dependency 14605: productToGameServerGame */;
value = value.productToGameServerGame(a1);
a0[value.id] = value;
return a0;
}
}
function _fun110393() { // fn#110393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:880, offset: 0x0237809c, size: 110 bytes, params: 1, frame: 17
const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch;
const object = {type: 'GAME_SERVER_FETCH_CATALOG_SUCCESS'};
object.guildId = env0_0;
const GAME_SERVER_GAME_MOCKS = (GameServerMocksModule).GAME_SERVER_GAME_MOCKS;
object.catalog = GAME_SERVER_GAME_MOCKS.reduce(function(a0, a1) {
a0[a1.id] = a1;
return a0;
}, {});
Reflect.apply(dispatch, defaultImport, [object]);
}
function fetchGameServerCatalog(a0) { // fn#110390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:312, offset: 0x02377f1d, size: 228 bytes, params: 2, frame: 20
const value = a1;
const env0_0 = a0;
const value2 = undefined;
let r2 = value !== value2 ? value : false;
if (r2) {
global.setTimeout(_fun110393, 5000);
return value2;
}
const currentUser = UserStore.getCurrentUser();
r2 = currentUser == null ? value2 : currentUser.isStaff();
const r6 = r2 != null && r2;
const storeUtilsModule = require(4141) /* metro dependency 4141: StoreUtils */;
const httpGetWithCountryCodeQuery = storeUtilsModule.httpGetWithCountryCodeQuery;
const object2 = {'url': null, 'query': null, 'oldFormErrors': true, 'rejectWithError': false, 'retries': 2};
object2.url = Endpoints.STOREFRONT_COLLECTION_WITH_PRODUCTS(GAME_SERVER_COLLECTION_ID);
object2.query = {locale: LocaleStore.locale, guild_id: a0, include_unpublished_products: r6,
include_unpublished_collection: r6};
return Reflect.apply(httpGetWithCountryCodeQuery, storeUtilsModule, [object2]).then(_fun110391);
}
function fetchGameServerGlobalCatalog() { // fn#110395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1068, offset: 0x0237810a, size: 173 bytes, params: 1, frame: 16
const isStaff = UserStore.getCurrentUser()?.isStaff();
const r4 = isStaff != null && isStaff;
const storeUtilsModule = require(4141) /* metro dependency 4141: StoreUtils */;
const httpGetWithCountryCodeQuery = storeUtilsModule.httpGetWithCountryCodeQuery;
const object2 = {'url': null, 'query': null, 'oldFormErrors': true, 'rejectWithError': false, 'retries': 2};
object2.url = Endpoints.STOREFRONT_COLLECTION_WITH_PRODUCTS(GAME_SERVER_COLLECTION_ID);
object2.query = {locale: LocaleStore.locale, include_unpublished_products: r4, include_unpublished_collection: r4};
return Reflect.apply(httpGetWithCountryCodeQuery, storeUtilsModule, [object2]).then(function(a0) {
importDefault(dependencyMap[4]).dispatch({type: 'GAME_SERVER_FETCH_GLOBAL_CATALOG_SUCCESS',
catalog: a0.body.products.reduce(_fun110397, {})});
});
}
function fetchGameServerGlobalCatalog() { // fn#110395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1068, offset: 0x0237810a, size: 173 bytes, params: 1, frame: 16
const isStaff = UserStore.getCurrentUser()?.isStaff();
const r4 = isStaff != null && isStaff;
const httpGetWithCountryCodeQuery = StoreUtilsModule.httpGetWithCountryCodeQuery;
const object = {'url': null, 'query': null, 'oldFormErrors': true, 'rejectWithError': false, 'retries': 2};
object.url = Endpoints.STOREFRONT_COLLECTION_WITH_PRODUCTS(GAME_SERVER_COLLECTION_ID);
object.query = {locale: LocaleStore.locale, include_unpublished_products: r4, include_unpublished_collection: r4};
return Reflect.apply(httpGetWithCountryCodeQuery, StoreUtilsModule, [object]).then(function(a0) {
importDefault(dependencyMap[4]).dispatch({type: 'GAME_SERVER_FETCH_GLOBAL_CATALOG_SUCCESS',
catalog: a0.body.products.reduce(_fun110397, {})});
});
function _fun110396({body}) { // fn#110396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1410, offset: 0x023781b7, size: 91 bytes, params: 2, frame: 15
const value = body.products.reduce(_fun110397, {});
const defaultImport = Dispatcher;
defaultImport.dispatch({type: 'GAME_SERVER_FETCH_GLOBAL_CATALOG_SUCCESS', catalog: value});
function _fun110397(a0, a1) { // fn#110397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1444, offset: 0x02378067, size: 53 bytes, params: 3, frame: 12
let value = environment.__proto__.__proto__;
value = require(14605) /* metro dependency 14605: productToGameServerGame */;
value = value.productToGameServerGame(a1);
a0[value.id] = value;
return a0;
}
}
function fetchGameServerInstances(a0) { // fn#110398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1627, offset: 0x02378212, size: 167 bytes, params: 2, frame: 17
var HTTP;
var get;
var object2;
let value = a1;
const env0_0 = a0;
let r0 = value !== undefined ? value : false;
if (r0) {
global.setTimeout(_fun110399, 5000);
r0 = global.Promise.resolve();
} else {
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get;
object2 = {'url': null, 'rejectWithError': true, 'retries': 2};
object2.url = Endpoints.GAME_SERVERS(a0);
object2.signal = a2;
value = Reflect.apply(get, HTTP, [object2]);
value = value.then(_fun110401);
r0 = value;
}
return r0;
}
function fetchGameServerInstructions(a0, a1) { // fn#110403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2159, offset: 0x023783bf, size: 128 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
const storeUtilsModule = require(4141) /* metro dependency 4141: StoreUtils */;
const httpGetWithCountryCodeQuery = storeUtilsModule.httpGetWithCountryCodeQuery;
const object2 = {};
object2.url = Endpoints.STOREFRONT_PRODUCT_BY_SKU_ID(a1);
object2.query = {locale: LocaleStore.locale};
object2.rejectWithError = true;
object2.retries = 3;
return Reflect.apply(httpGetWithCountryCodeQuery, storeUtilsModule, [object2]).then(_fun110404);
}
function fetchGameServerInstances(a0) { // fn#110398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1627, offset: 0x02378212, size: 167 bytes, params: 2, frame: 17
var HTTP;
var get;
var object;
let value = a1;
const env0_0 = a0;
let r0 = value !== undefined ? value : false;
if (r0) {
global.setTimeout(_fun110399, 5000);
r0 = global.Promise.resolve();
} else {
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get;
object = {'url': null, 'rejectWithError': true, 'retries': 2};
object.url = Endpoints.GAME_SERVERS(a0);
object.signal = a2;
value = Reflect.apply(get, HTTP, [object]);
value = value.then(_fun110401);
r0 = value;
}
return r0;
function _fun110399() { // fn#110399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1693, offset: 0x023782b9, size: 108 bytes, params: 1, frame: 17
const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch;
const object = {type: 'GAME_SERVER_FETCH_INSTANCES_SUCCESS'};
object.guildId = env0_0;
const GAME_SERVER_INSTANCE_MOCKS = (GameServerMocksModule).GAME_SERVER_INSTANCE_MOCKS;
object.instances = GAME_SERVER_INSTANCE_MOCKS.reduce(function(a0, a1) {
a0[a1.id] = a1;
return a0;
}, {});
Reflect.apply(dispatch, defaultImport, [object]);
}
function _fun110401(a0) { // fn#110401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1962, offset: 0x02378325, size: 107 bytes, params: 2, frame: 14
var environment;
var value;
var value2;
if (a0.body != null) {
value = a0.body.reduce(function(a0, a1) {
a0[a1.id] = importDefault(dependencyMap[9])(a1);
return a0;
}, {});
value2 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_FETCH_INSTANCES_SUCCESS',
guildId: env0_0, instances: value});
}
}
function acceptGameServerToS(a0, a1) { // fn#110405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2636, offset: 0x023784e3, size: 98 bytes, params: 3, frame: 16
var currentUser;
var value2;
var defaultImport;
var track;
var GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED;
if (a0) {
value2 = undefined;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport.track;
GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED = AnalyticEvents.GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED;
currentUser = UserStore.getCurrentUser();
Reflect.apply(track, defaultImport, [GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED,
{user_id: currentUser == null ? value2 : currentUser.id, provider: a1}]);
}
}
function resetGameServerRegionState() { // fn#110406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2838, offset: 0x02378545, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_REGION_PING_STATE_RESET'});
}
function fetchGameServerInstructions(a0, a1) { // fn#110403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2159, offset: 0x023783bf, size: 128 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
const httpGetWithCountryCodeQuery = StoreUtilsModule.httpGetWithCountryCodeQuery;
const object = {};
object.url = Endpoints.STOREFRONT_PRODUCT_BY_SKU_ID(a1);
object.query = {locale: LocaleStore.locale};
object.rejectWithError = true;
object.retries = 3;
return Reflect.apply(httpGetWithCountryCodeQuery, StoreUtilsModule, [object]).then(_fun110404);
function _fun110404(a0) { // fn#110404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2344, offset: 0x0237843f, size: 164 bytes, params: 2, frame: 14
var r3;
var tenant_metadata;
var value;
var value2;
if (a0.body != null) {
tenant_metadata = a0.body.tenant_metadata;
value = undefined;
r3 = (tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value : tenant_metadata.guild_monetization.game_server.instructions.pc) ?? [];
value2 = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS', guildId: env0_0, skuId: require,
instructions: r3});
}
}
function updateGameServerRegionPingState(a0, a1) { // fn#110407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2974, offset: 0x02378576, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_REGION_PING_STATE_UPDATE',
pingUrl: a0, state: a1});
}
function fetchGameServerRegions(a0) { // fn#110411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:3736, offset: 0x023786e9, size: 99 bytes, params: 2, frame: 14
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const object2 = {'url': null, 'rejectWithError': true, 'oldFormErrors': true, 'retries': 3};
object2.url = Endpoints.GAME_SERVER_REGIONS(a0);
return Reflect.apply(get, HTTP, [object2]).then(_fun110412);
}
function wakeGameServer(a0, a1) { // fn#110414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:4038, offset: 0x023787b4, size: 100 bytes, params: 3, frame: 17
const env0_0 = a0;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
const object2 = {};
object2.url = Endpoints.GAME_SERVER_WAKE(a0, a1);
object2.rejectWithError = true;
return Reflect.apply(post, HTTP, [object2]).then(_fun110415);
}
function _fun110391({body}) { // fn#110391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:676, offset: 0x02378001, size: 102 bytes, params: 2, frame: 15
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_FETCH_CATALOG_SUCCESS',
guildId: env0_0, catalog: body.products.reduce(_fun110392, {})});
}
function _fun110393() { // fn#110393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:880, offset: 0x0237809c, size: 110 bytes, params: 1, frame: 17
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = defaultImport.dispatch;
const object2 = {type: 'GAME_SERVER_FETCH_CATALOG_SUCCESS'};
object2.guildId = env0_0;
const GAME_SERVER_GAME_MOCKS = (require(14603) /* metro dependency 14603: GameServerMocks */).GAME_SERVER_GAME_MOCKS;
object2.catalog = GAME_SERVER_GAME_MOCKS.reduce(function(a0, a1) {
a0[a1.id] = a1;
return a0;
}, {});
Reflect.apply(dispatch, defaultImport, [object2]);
}
function _fun110396({body}) { // fn#110396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1410, offset: 0x023781b7, size: 91 bytes, params: 2, frame: 15
const value = body.products.reduce(_fun110397, {});
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
defaultImport.dispatch({type: 'GAME_SERVER_FETCH_GLOBAL_CATALOG_SUCCESS', catalog: value});
}
function _fun110399() { // fn#110399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1693, offset: 0x023782b9, size: 108 bytes, params: 1, frame: 17
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = defaultImport.dispatch;
const object2 = {type: 'GAME_SERVER_FETCH_INSTANCES_SUCCESS'};
object2.guildId = env0_0;
const GAME_SERVER_INSTANCE_MOCKS = (require(14603) /* metro dependency 14603: GameServerMocks */).GAME_SERVER_INSTANCE_MOCKS;
object2.instances = GAME_SERVER_INSTANCE_MOCKS.reduce(function(a0, a1) {
a0[a1.id] = a1;
return a0;
}, {});
Reflect.apply(dispatch, defaultImport, [object2]);
}
function _fun110401(a0) { // fn#110401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:1962, offset: 0x02378325, size: 107 bytes, params: 2, frame: 14
var environment;
var value;
var value2;
if (a0.body != null) {
value = a0.body.reduce(function(a0, a1) {
a0[a1.id] = importDefault(dependencyMap[9])(a1);
return a0;
}, {});
value2 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GAME_SERVER_FETCH_INSTANCES_SUCCESS',
guildId: env0_0, instances: value});
}
}
function _fun110404(a0) { // fn#110404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2344, offset: 0x0237843f, size: 164 bytes, params: 2, frame: 14
var r3;
var tenant_metadata;
var value;
var value2;
if (a0.body != null) {
tenant_metadata = a0.body.tenant_metadata;
value = undefined;
r3 = (tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value : tenant_metadata.guild_monetization.game_server.instructions.pc) ?? [];
value2 = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS', guildId: env0_0, skuId: require,
instructions: r3});
function acceptGameServerToS(a0, a1) { // fn#110405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2636, offset: 0x023784e3, size: 98 bytes, params: 3, frame: 16
var currentUser;
var value2;
var defaultImport;
var track;
var GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED;
if (a0) {
value2 = undefined;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport.track;
GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED = AnalyticEvents.GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED;
currentUser = UserStore.getCurrentUser();
Reflect.apply(track, defaultImport, [GAME_SERVER_HOSTING_THIRD_PARTY_CONSENT_ACCEPTED,
{user_id: currentUser == null ? value2 : currentUser.id, provider: a1}]);
}
}
function resetGameServerRegionState() { // fn#110406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2838, offset: 0x02378545, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'GAME_SERVER_REGION_PING_STATE_RESET'});
}
function updateGameServerRegionPingState(a0, a1) { // fn#110407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:2974, offset: 0x02378576, size: 64 bytes, params: 3, frame: 13
(Dispatcher).dispatch({type: 'GAME_SERVER_REGION_PING_STATE_UPDATE',
pingUrl: a0, state: a1});
}
function fetchGameServerRegions(a0) { // fn#110411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:3736, offset: 0x023786e9, size: 99 bytes, params: 2, frame: 14
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const object = {'url': null, 'rejectWithError': true, 'oldFormErrors': true, 'retries': 3};
object.url = Endpoints.GAME_SERVER_REGIONS(a0);
return Reflect.apply(get, HTTP, [object]).then(_fun110412);
function _fun110412({body}) { // fn#110412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:3879, offset: 0x0237874c, size: 104 bytes, params: 2, frame: 17
var environment;
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object = {type: 'GAME_SERVER_FETCH_REGIONS_SUCCESS'};
object.regions = body.map(importDefault(14606) /* metro dependency 14606: regionResponseToRegion */).sort(function({name},
a1) {
return name.localeCompare(a1.name);
});
Reflect.apply(dispatch, value, [object]);
}
}
function wakeGameServer(a0, a1) { // fn#110414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:4038, offset: 0x023787b4, size: 100 bytes, params: 3, frame: 17
const env0_0 = a0;
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
const object = {};
object.url = Endpoints.GAME_SERVER_WAKE(a0, a1);
object.rejectWithError = true;
return Reflect.apply(post, HTTP, [object]).then(_fun110415);
function _fun110415({body}) { // fn#110415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:4148, offset: 0x02378818, size: 90 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object = {type: 'GAME_SERVER_UPDATE_INSTANCE_SUCCESS'};
object.guildId = env0_0;
object.instance = (importDefault(8257) /* metro dependency 8257: gameServerResponseToInstance */)(body);
Reflect.apply(dispatch, value, [object]);
}
}
}
function _fun110412({body}) { // fn#110412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:3879, offset: 0x0237874c, size: 104 bytes, params: 2, frame: 17
var environment;
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object2 = {type: 'GAME_SERVER_FETCH_REGIONS_SUCCESS'};
object2.regions = body.map(importDefault(14606) /* metro dependency 14606: regionResponseToRegion */).sort(function({name},
a1) {
return name.localeCompare(a1.name);
});
Reflect.apply(dispatch, value, [object2]);
}
function _fun110415({body}) { // fn#110415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:4148, offset: 0x02378818, size: 90 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object2 = {type: 'GAME_SERVER_UPDATE_INSTANCE_SUCCESS'};
object2.guildId = env0_0;
object2.instance = (importDefault(8257) /* metro dependency 8257: gameServerResponseToInstance */)(body);
Reflect.apply(dispatch, value, [object2]);
}
function _fun110392(a0, a1) { // fn#110392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14799:710, offset: 0x02378067, size: 53 bytes, params: 3, frame: 12
let value = environment.__proto__.__proto__;
value = require(14605) /* metro dependency 14605: productToGameServerGame */;
value = value.productToGameServerGame(a1);
a0[value.id] = value;
return a0;
}
global.__d(_fun110389, 14602, [1949, 1878, 8260, 661, 694, 14603, 4141, 14605, 507, 8257, 683, 14606,
2]) /* metro module 14602, dependencies: [1949, 1878, 8260, 661, 694, 14603, 4141, 14605, 507, 8257, 683, 14606, 2] */;
@@ -1,21 +1,25 @@
/* Metro module 8260; source: modules/premium/game_server/GameServerConstants.tsx; dependencies: [7, 6, 1884, 8261, 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 * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UserStoreConstantsModule from '../../user/UserStoreConstants.tsx'; /* Metro dependency 1884 */
import * as GameServerProviderTypeModule from '../../../external/discord_common/js/shared/shared-constants/GameServerProviderType.tsx'; /* Metro dependency 8261 */
function _fun66090(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8445:6, offset: 0x01beb84a, size: 954 bytes, params: 8, frame: 29
var object4;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importDefault(7) /* metro dependency 7 */;
const env0_0 = importDefault(6) /* metro dependency 6 */;
const Environments = (require(1884) /* metro dependency 1884: UserStoreConstants */).Environments;
object4 = {SELECT_GAME: 'select-game', SERVER_SETTINGS: 'server-settings'};
const object5 = {};
const object6 = {};
let SELECT_GAME = object4.SELECT_GAME;
let SERVER_SETTINGS = object4.SERVER_SETTINGS;
object6[SELECT_GAME] = {onBack: {type: 'close'}, onNext: {type: 'go-to-step', step: SERVER_SETTINGS}};
SERVER_SETTINGS = object4.SERVER_SETTINGS;
SELECT_GAME = object4.SELECT_GAME;
object6[SERVER_SETTINGS] = {onBack: {type: 'go-to-step', step: SELECT_GAME}, onNext: {type: 'save'}};
object5.steps = object6;
let value = CreateClass;
const Environments = (UserStoreConstantsModule).Environments;
object = {SELECT_GAME: 'select-game', SERVER_SETTINGS: 'server-settings'};
const object2 = {};
const object3 = {};
let SELECT_GAME = object.SELECT_GAME;
let SERVER_SETTINGS = object.SERVER_SETTINGS;
object3[SELECT_GAME] = {onBack: {type: 'close'}, onNext: {type: 'go-to-step', step: SERVER_SETTINGS}};
SERVER_SETTINGS = object.SERVER_SETTINGS;
SELECT_GAME = object.SELECT_GAME;
object3[SERVER_SETTINGS] = {onBack: {type: 'go-to-step', step: SELECT_GAME}, onNext: {type: 'save'}};
object2.steps = object3;
let GLOBAL_ENV = global.window.GLOBAL_ENV;
let PROJECT_ENV = GLOBAL_ENV.PROJECT_ENV;
const r10 = PROJECT_ENV === 'production' ? '1425215263548117002' : global.window.GLOBAL_ENV.PROJECT_ENV !== 'staging' ? '1415025086791942144' : '1415044199572832256';
@@ -38,21 +42,21 @@ function _fun66090(global, require, importDefault, importAll, module, exports, d
value.FEATURED_GAME_NAME = 'Windrose';
value.SECOND_GAME_NAME = 'Factorio';
value.THIRD_GAME_NAME = 'V Rising';
const object7 = {SHOCKBYTE: 0};
object7[0] = 'SHOCKBYTE';
const object8 = {};
const GameServerProviderType = (require(8261) /* metro dependency 8261: GameServerProviderType */).GameServerProviderType;
const object10 = {SHOCKBYTE: 0};
object10[0] = 'SHOCKBYTE';
const object11 = {};
const GameServerProviderType = (GameServerProviderTypeModule).GameServerProviderType;
let SHOCKBYTE = GameServerProviderType.SHOCKBYTE;
GLOBAL_ENV = global.window.GLOBAL_ENV;
const RELEASE_CHANNEL = GLOBAL_ENV.RELEASE_CHANNEL;
const STAGING = Environments.STAGING;
object8[SHOCKBYTE] = RELEASE_CHANNEL !== STAGING ? 'https://discord.shockbyte.com/support' : 'https://purple-prod.shockbyte.dev/support';
const object9 = {};
object11[SHOCKBYTE] = RELEASE_CHANNEL !== STAGING ? 'https://discord.shockbyte.com/support' : 'https://purple-prod.shockbyte.dev/support';
const object12 = {};
SHOCKBYTE = GameServerProviderType.SHOCKBYTE;
object9[SHOCKBYTE] = 'https://shockbyte.com/legal/acceptable-use-policy';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServerConstants.tsx');
exports.GameServerSetupStep = object4;
exports.GAME_SERVER_DEFAULT_STEP_CONFIG = object5;
object12[SHOCKBYTE] = 'https://shockbyte.com/legal/acceptable-use-policy';
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/GameServerConstants.tsx');
exports.GameServerSetupStep = object;
exports.GAME_SERVER_DEFAULT_STEP_CONFIG = object2;
exports.GAME_SERVER_SLIDE_PADDING = 24;
exports.GAME_SERVER_SLIDE_WIDTH = 680;
exports.GAME_SERVER_SLIDE_CONTENT_WIDTH = 632;
@@ -64,12 +68,17 @@ function _fun66090(global, require, importDefault, importAll, module, exports, d
exports.MINECRAFT_GAME_ID = r8;
exports.HYTALE_GAME_ID = r7;
exports.NewGamesCoachmarkContent = value;
exports.GameServerGameProvider = object7;
exports.GAME_SERVER_SUPPORT_URLS = object8;
exports.GAME_SERVER_TOS = object9;
exports.GameServerGameProvider = object10;
exports.GAME_SERVER_SUPPORT_URLS = object11;
exports.GAME_SERVER_TOS = object12;
exports.GAME_SERVER_SURVEY_URL = function(a0, a1) {
return 'https://discord.sjc1.qualtrics.com/jfe/form/SV_2h34PnQLPTCjTTM?user_id=' + a0 + '&guild_id=' + a1;
};
exports.GAME_SERVER_POWERUP_SKU_ID = '0';
function NewGamesCoachmarkContent() { // fn#66091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8445:946, offset: 0x00e6141e, size: 24 bytes, params: 1, frame: 13
ClassCallCheck(this, NewGamesCoachmarkContent);
}
}
global.__d(_fun66090, 8260, [7, 6, 1884, 8261, 2]) /* metro module 8260, dependencies: [7, 6, 1884, 8261, 2] */;
@@ -1,14 +1,30 @@
/* Metro module 6857; source: modules/premium/game_server/GameServerExperiment.tsx; dependencies: [4620, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ExperimentsModule from '../../experiments/index.tsx'; /* Metro dependency 4620 */
function _fun54090(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7035:6, offset: 0x0135c6dd, size: 194 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(4620) /* metro dependency 4620: experiments */;
let value = ExperimentsModule;
value = value.createExperiment({'kind': 'guild', 'id': '2025-08_portkey_enabled', 'label': 'GameServer Enabled',
defaultConfig: {enabled: false}, treatments: [{'id': 1, 'label': 'Enable GameServer',
config: {enabled: true}}]});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServerExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/GameServerExperiment.tsx');
exports.GameServerExperiment = value;
exports.getGameServerEnabled = getGameServerEnabled;
exports.useGameServerEnabled = useGameServerEnabled;
function getGameServerEnabled(a0, a1) { // fn#54091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7035:422, offset: 0x0135c79f, size: 51 bytes, params: 3, frame: 14
const binding = env0_0;
const getCurrentConfig = binding.getCurrentConfig;
return Reflect.apply(getCurrentConfig, binding, [{guildId: a0, location: a1}, {autoTrackExposure: false}]).enabled;
}
function useGameServerEnabled(a0, a1) { // fn#54092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7035:562, offset: 0x0135c7d2, size: 51 bytes, params: 3, frame: 14
const binding = env0_0;
const useExperiment = binding.useExperiment;
return Reflect.apply(useExperiment, binding, [{guildId: a0, location: a1}, {autoTrackExposure: false}]).enabled;
}
}
global.__d(_fun54090, 6857, [4620, 2]) /* metro module 6857, dependencies: [4620, 2] */;
@@ -1,20 +1,23 @@
/* Metro module 8255; source: modules/premium/game_server/GameServerStore.tsx; dependencies: [6, 7, 15, 17, 18, 8256, 8257, 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 _fun66017(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:6, offset: 0x01be92f0, size: 482 bytes, params: 8, frame: 19
const recalculateAppliedBoosts = function(a0, a1) {
var Object = global.Object;
return Object.values(a1).reduce(_fun66023, 0);
};
const closure = GAME_SERVER_CREATE;
const GAME_SERVER_CREATE2 = GAME_SERVER_CREATE;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
let env0_7 = {};
object = {catalog: {}, hasFetchedCatalog: false, catalogLastFetchedAt: undefined};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun66026(PersistedStore);
value.displayName = 'GameServerStore';
value.persistKey = 'GameServerStore';
@@ -29,9 +32,9 @@ function _fun66017(global, require, importDefault, importAll, module, exports, d
}, GAME_SERVER_FETCH_INSTANCES_SUCCESS: GAME_SERVER_FETCH_INSTANCES_SUCCESS,
GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS: GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS,
GAME_SERVER_UPDATE_INSTANCE_SUCCESS: GAME_SERVER_UPDATE_INSTANCE_SUCCESS,
GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS: GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS, GAME_SERVER_CREATE: closure,
GAME_SERVER_UPDATE: closure, GAME_SERVER_DELETE: GAME_SERVER_DELETE,
GUILD_POWERUP_ENTITLEMENTS_CREATE: function({guildId, entitlements}) {
GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS: GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS,
GAME_SERVER_CREATE: GAME_SERVER_CREATE2, GAME_SERVER_UPDATE: GAME_SERVER_CREATE2,
GAME_SERVER_DELETE: GAME_SERVER_DELETE, GUILD_POWERUP_ENTITLEMENTS_CREATE: function({guildId, entitlements}) {
var value2 = getStateForGuild(guildId);
var env0_0 = value2;
entitlements.filter(_fun66050).forEach(_fun66051);
@@ -42,322 +45,344 @@ function _fun66017(global, require, importDefault, importAll, module, exports, d
entitlements.forEach(_fun66053);
handleGameServerEntitlementsChanged(guildId, value2);
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/GameServerStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/GameServerStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_66018() { // fn#66018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:148, offset: 0x01be94d2, 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) {
function _isNativeReflectConstruct_66018() { // fn#66018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:148, offset: 0x01be94d2, 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_66018_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_66018_isNativeReflectConstruct = function() {
return !!result;
})();
}
function getStateForGuild(a0) { // fn#66021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:422, offset: 0x01be9534, size: 68 bytes, params: 2, frame: 5
if (env0_7[a0] == null) {
env0_7[a0] = {catalog: {}, instances: {}, instructions: {}, entitlements: {}};
function getStateForGuild(a0) { // fn#66021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:422, offset: 0x01be9534, size: 68 bytes, params: 2, frame: 5
if (env0_7[a0] == null) {
env0_7[a0] = {catalog: {}, instances: {}, instructions: {}, entitlements: {}};
}
return env0_7[a0];
}
return env0_7[a0];
}
function recalculateAppliedBoosts(a0, a1) { // fn#66022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:540, offset: 0x01be9578, size: 46 bytes, params: 3, frame: 13
const Object = global.Object;
return Object.values(a1).reduce(_fun66023, 0);
}
function recalculateAppliedBoosts(a0, a1) { // fn#66022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:540, offset: 0x01be9578, size: 46 bytes, params: 3, frame: 13
const Object = global.Object;
return Object.values(a1).reduce(_fun66023, 0);
function _fun66023(a0, a1) { // fn#66023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:611, offset: 0x01be95a6, size: 56 bytes, params: 3, frame: 11
let value = environment.__proto__;
value = importDefault(8256) /* metro dependency 8256: getPowerupEntitlementPrice */;
value = value(a1);
return a0 + (value ?? 0);
}
function GAME_SERVER_CREATE({guildId, gameServer}) { // fn#66024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:666, offset: 0x01be95de, size: 123 bytes, params: 2, frame: 20
const stateForGuild = getStateForGuild(guildId);
const object4 = {};
copyDataProperties(object4, env0_7, undefined);
const object5 = {};
copyDataProperties(object5, stateForGuild, undefined);
const object6 = {};
copyDataProperties(object6, stateForGuild.instances, undefined);
object6[gameServer.id] = (importDefault(8257) /* metro dependency 8257: gameServerResponseToInstance */)(gameServer);
object5['instances'] = object6;
object4[guildId] = object5;
}
function handleGameServerEntitlementsChanged(a0, a1) { // fn#66025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:824, offset: 0x01be9659, size: 72 bytes, params: 3, frame: 15
const value2 = recalculateAppliedBoosts(undefined, a1.entitlements);
const object3 = {};
copyDataProperties(object3, env0_7, value2);
const object4 = {};
copyDataProperties(object4, a1, value2);
object4['appliedBoosts'] = value2;
object3[a0] = object4;
}
function _fun66026(a0) { // fn#66026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:965, offset: 0x01be96a1, size: 332 bytes, params: 2, frame: 16
const closure = GameServerStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: value_66028}, {key: 'getState', value: value_66029},
{key: 'getStateForGuild', value: value_66030}, {key: 'getGlobalCatalogState', value: value_66031},
{key: 'getGlobalCatalogGame', value: value_66032}, {key: 'getLowestGameCostForGuild', value: value_66034},
{key: 'hasFetchedCatalog', value: value_66036}, {key: 'hasFetchedInstances', value: value_66037},
{key: 'shouldFetchCatalogForGuild', value: value_66038}, {key: 'shouldFetchInstancesForGuild',
value: value_66039}, {key: 'shouldFetchGlobalCatalog', value: value_66040}]);
}
function GAME_SERVER_FETCH_CATALOG_SUCCESS({guildId, catalog}) { // fn#66042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2660, offset: 0x01be9a4b, size: 107 bytes, params: 2, frame: 16
const object3 = {};
copyDataProperties(object3, env0_7, catalog);
const object4 = {};
copyDataProperties(object4, getStateForGuild(guildId), catalog);
object4['catalog'] = catalog;
object4['hasFetchedCatalog'] = true;
const Date = global.Date;
object4['catalogLastFetchedAt'] = Date.now();
object3[guildId] = object4;
}
function GAME_SERVER_FETCH_INSTANCES_SUCCESS({guildId, instances}) { // fn#66044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3019, offset: 0x01be9aee, size: 111 bytes, params: 2, frame: 16
const object3 = {};
copyDataProperties(object3, env0_7, instances);
const object4 = {};
copyDataProperties(object4, getStateForGuild(guildId), instances);
object4['instances'] = instances;
object4['hasFetchedInstances'] = true;
const Date = global.Date;
object4['instancesLastFetchedAt'] = Date.now();
object3[guildId] = object4;
}
function GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS({guildId, skuId, instructions}) { // fn#66045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3233, offset: 0x01be9b5d, size: 100 bytes, params: 2, frame: 18
const object4 = {};
copyDataProperties(object4, env0_7, undefined);
const object5 = {};
const getStateForGuildBinding = getStateForGuild;
copyDataProperties(object5, getStateForGuildBinding(guildId), getStateForGuildBinding);
const object6 = {};
const stateForGuildBinding = getStateForGuildBinding(guildId);
copyDataProperties(object6, stateForGuildBinding.instructions, stateForGuildBinding);
object6[skuId] = instructions;
object5['instructions'] = object6;
object4[guildId] = object5;
}
function GAME_SERVER_UPDATE_INSTANCE_SUCCESS({guildId, instance}) { // fn#66046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3436, offset: 0x01be9bc1, size: 98 bytes, params: 2, frame: 17
const stateForGuild = getStateForGuild(guildId);
const object4 = {};
copyDataProperties(object4, env0_7, instance);
const object5 = {};
copyDataProperties(object5, stateForGuild, instance);
const object6 = {};
copyDataProperties(object6, stateForGuild.instances, instance);
object6[instance.id] = instance;
object5['instances'] = object6;
object4[guildId] = object5;
}
function GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS({guildId, unlockedGameServers}) { // fn#66047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3619, offset: 0x01be9c23, size: 89 bytes, params: 2, frame: 17
const value2 = recalculateAppliedBoosts(undefined, unlockedGameServers);
const object3 = {};
copyDataProperties(object3, env0_7, unlockedGameServers);
const object4 = {};
copyDataProperties(object4, getStateForGuild(guildId), unlockedGameServers);
object4['entitlements'] = unlockedGameServers;
object4['appliedBoosts'] = value2;
object3[guildId] = object4;
}
function GAME_SERVER_DELETE({guildId, gameServerId}) { // fn#66048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3926, offset: 0x01be9c7c, size: 74 bytes, params: 2, frame: 15
const stateForGuild = getStateForGuild(guildId);
delete stateForGuild.instances[gameServerId];
const object3 = {};
copyDataProperties(object3, env0_7, stateForGuild);
const object4 = {};
copyDataProperties(object4, stateForGuild, stateForGuild);
object3[guildId] = object4;
}
function GUILD_POWERUP_ENTITLEMENTS_CREATE({guildId, entitlements}) { // fn#66049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4098, offset: 0x01be9cc6, size: 80 bytes, params: 2, frame: 17
const stateForGuild = getStateForGuild(guildId);
entitlements.filter(function({sku}) {
return (sku == null || sku.tenant_metadata == null || sku.tenant_metadata.guild_monetization == null ? undefined : sku.tenant_metadata.guild_monetization.game_server) != null;
}).forEach(_fun66051);
handleGameServerEntitlementsChanged(guildId, stateForGuild);
}
function GUILD_POWERUP_ENTITLEMENTS_DELETE({guildId, entitlements}) { // fn#66052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4447, offset: 0x01be9d71, size: 63 bytes, params: 2, frame: 16
const stateForGuild = getStateForGuild(guildId);
entitlements.forEach(_fun66053);
handleGameServerEntitlementsChanged(guildId, stateForGuild);
}
function _fun66023(a0, a1) { // fn#66023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:611, offset: 0x01be95a6, size: 56 bytes, params: 3, frame: 11
let value = environment.__proto__;
value = importDefault(8256) /* metro dependency 8256: getPowerupEntitlementPrice */;
value = value(a1);
return a0 + (value ?? 0);
}
function value_66028(a0) { // fn#66028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1270, offset: 0x01be97ed, size: 20 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
env1_7 = a0;
}
}
function value_66030(a0) { // fn#66030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1373, offset: 0x01be9801, size: 27 bytes, params: 2, frame: 3
return a0 != null ? env1_7[a0] : undefined;
}
function value_66032(a0) { // fn#66032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1505, offset: 0x01be981c, size: 60 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const Object = global.Object;
const values = Object.values;
const value = environment.__proto__;
return Reflect.apply(values, Object, [env1_8.catalog]).find(_fun66033);
}
function value_66034(a0) { // fn#66034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1614, offset: 0x01be986e, size: 135 bytes, params: 2, frame: 18
var r1;
var items;
var Math;
var min;
let value = null;
if (value == a0) {
return value;
function GAME_SERVER_CREATE({guildId, gameServer}) { // fn#66024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:666, offset: 0x01be95de, size: 123 bytes, params: 2, frame: 20
const stateForGuild = getStateForGuild(guildId);
const object = {};
copyDataProperties(object, env0_7, undefined);
const object2 = {};
copyDataProperties(object2, stateForGuild, undefined);
const object3 = {};
copyDataProperties(object3, stateForGuild.instances, undefined);
object3[gameServer.id] = (importDefault(8257) /* metro dependency 8257: gameServerResponseToInstance */)(gameServer);
object2['instances'] = object3;
object[guildId] = object2;
}
const property = env1_7[a0];
const Object = global.Object;
const values = Object.values;
const catalog = value == property ? undefined : property.catalog;
const value4 = Reflect.apply(values, Object, [value != catalog ? catalog : {}]);
if (value4.length === 0) {
r1 = value;
} else {
Math = global.Math;
min = Math.min;
value = value4.map(function(a0) {
return a0.baseCost;
});
items = [];
arraySpread(items, value, 0, value4);
value = apply(min, items, Math, value4);
r1 = value;
function handleGameServerEntitlementsChanged(a0, a1) { // fn#66025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:824, offset: 0x01be9659, size: 72 bytes, params: 3, frame: 15
const value2 = recalculateAppliedBoosts(undefined, a1.entitlements);
const object = {};
copyDataProperties(object, env0_7, value2);
const object2 = {};
copyDataProperties(object2, a1, value2);
object2['appliedBoosts'] = value2;
object[a0] = object2;
}
return r1;
}
function value_66036(a0) { // fn#66036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1817, offset: 0x01be9900, size: 46 bytes, params: 2, frame: 4
var r0;
var property;
let value = a0 != null;
if (value) {
value = environment.__proto__;
property = env1_7[a0];
value = undefined;
value = (property == null ? value : property.hasFetchedCatalog) === true;
r0 = value;
} else {
r0 = value;
function _fun66026(a0) { // fn#66026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:965, offset: 0x01be96a1, size: 332 bytes, params: 2, frame: 16
const GameServerStore2 = GameServerStore;
Inherits(GameServerStore2, a0);
return CreateClass(GameServerStore2, [{key: 'initialize', value: value_66028}, {key: 'getState', value: value_66029},
{key: 'getStateForGuild', value: value_66030}, {key: 'getGlobalCatalogState', value: value_66031},
{key: 'getGlobalCatalogGame', value: value_66032}, {key: 'getLowestGameCostForGuild', value: value_66034},
{key: 'hasFetchedCatalog', value: value_66036}, {key: 'hasFetchedInstances', value: value_66037},
{key: 'shouldFetchCatalogForGuild', value: value_66038}, {key: 'shouldFetchInstancesForGuild',
value: value_66039}, {key: 'shouldFetchGlobalCatalog', value: value_66040}]);
function GameServerStore() { // fn#66027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:977, offset: 0x01081bdc, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, GameServerStore);
const value3 = env1_5(GameServerStore);
return env1_4(this, _isNativeReflectConstruct_66018() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_66028(a0) { // fn#66028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1270, offset: 0x01be97ed, size: 20 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
env1_7 = a0;
}
}
function value_66029() { // fn#66029, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
return env1_7;
}
function value_66030(a0) { // fn#66030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1373, offset: 0x01be9801, size: 27 bytes, params: 2, frame: 3
return a0 != null ? env1_7[a0] : undefined;
}
function value_66031() { // fn#66031, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_66032(a0) { // fn#66032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1505, offset: 0x01be981c, size: 60 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const Object = global.Object;
const values = Object.values;
const value = environment.__proto__;
return Reflect.apply(values, Object, [env1_8.catalog]).find(_fun66033);
function _fun66033({gameId}) { // fn#66033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1555, offset: 0x01be9858, size: 22 bytes, params: 2, frame: 2
return gameId === env0_0;
}
}
function value_66034(a0) { // fn#66034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1614, offset: 0x01be986e, size: 135 bytes, params: 2, frame: 18
var r1;
var items2;
var Math;
var min;
let value = null;
if (value == a0) {
return value;
}
const property = env1_7[a0];
const Object = global.Object;
const values = Object.values;
const catalog = value == property ? undefined : property.catalog;
const value4 = Reflect.apply(values, Object, [value != catalog ? catalog : {}]);
if (value4.length === 0) {
r1 = value;
} else {
Math = global.Math;
min = Math.min;
value = value4.map(function(a0) {
return a0.baseCost;
});
items2 = [];
arraySpread(items2, value, 0, value4);
value = apply(min, items2, Math, value4);
r1 = value;
}
return r1;
}
function value_66036(a0) { // fn#66036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1817, offset: 0x01be9900, size: 46 bytes, params: 2, frame: 4
var r0;
var property;
let value = a0 != null;
if (value) {
value = environment.__proto__;
property = env1_7[a0];
value = undefined;
value = (property == null ? value : property.hasFetchedCatalog) === true;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function value_66037(a0) { // fn#66037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1935, offset: 0x01be992e, size: 48 bytes, params: 2, frame: 4
var r0;
var property;
let value = a0 != null;
if (value) {
value = environment.__proto__;
property = env1_7[a0];
value = undefined;
value = (property == null ? value : property.hasFetchedInstances) === true;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function value_66038(a0) { // fn#66038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2062, offset: 0x01be995e, size: 71 bytes, params: 2, frame: 11
var r0;
var Date;
let value = environment.__proto__;
const catalogLastFetchedAt = env1_7[a0]?.catalogLastFetchedAt;
value = catalogLastFetchedAt == null;
if (value) {
r0 = value;
} else {
value = catalogLastFetchedAt + 86400000;
Date = global.Date;
value = value < Date.now();
r0 = value;
}
return r0;
}
function value_66039(a0) { // fn#66039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2202, offset: 0x01be99a5, size: 73 bytes, params: 2, frame: 11
var r0;
var Date;
let value = environment.__proto__;
const instancesLastFetchedAt = env1_7[a0]?.instancesLastFetchedAt;
value = instancesLastFetchedAt == null;
if (value) {
r0 = value;
} else {
value = instancesLastFetchedAt + 300000;
Date = global.Date;
value = value < Date.now();
r0 = value;
}
return r0;
}
function value_66040() { // fn#66040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2342, offset: 0x01be99ee, size: 55 bytes, params: 1, frame: 11
var r0;
var Date;
let value = environment.__proto__;
const catalogLastFetchedAt = env1_8.catalogLastFetchedAt;
value = catalogLastFetchedAt == null;
if (value) {
r0 = value;
} else {
value = catalogLastFetchedAt + 86400000;
Date = global.Date;
value = value < Date.now();
r0 = value;
}
return r0;
}
}
return r0;
}
function value_66037(a0) { // fn#66037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1935, offset: 0x01be992e, size: 48 bytes, params: 2, frame: 4
var r0;
var property;
let value = a0 != null;
if (value) {
value = environment.__proto__;
property = env1_7[a0];
value = undefined;
value = (property == null ? value : property.hasFetchedInstances) === true;
r0 = value;
} else {
r0 = value;
function GAME_SERVER_FETCH_CATALOG_SUCCESS({guildId, catalog}) { // fn#66042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2660, offset: 0x01be9a4b, size: 107 bytes, params: 2, frame: 16
const object = {};
copyDataProperties(object, env0_7, catalog);
const object2 = {};
copyDataProperties(object2, getStateForGuild(guildId), catalog);
object2['catalog'] = catalog;
object2['hasFetchedCatalog'] = true;
const Date = global.Date;
object2['catalogLastFetchedAt'] = Date.now();
object[guildId] = object2;
}
return r0;
}
function value_66038(a0) { // fn#66038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2062, offset: 0x01be995e, size: 71 bytes, params: 2, frame: 11
var r0;
var Date;
let value = environment.__proto__;
const catalogLastFetchedAt = env1_7[a0]?.catalogLastFetchedAt;
value = catalogLastFetchedAt == null;
if (value) {
r0 = value;
} else {
value = catalogLastFetchedAt + 86400000;
Date = global.Date;
value = value < Date.now();
r0 = value;
function GAME_SERVER_FETCH_INSTANCES_SUCCESS({guildId, instances}) { // fn#66044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3019, offset: 0x01be9aee, size: 111 bytes, params: 2, frame: 16
const object = {};
copyDataProperties(object, env0_7, instances);
const object2 = {};
copyDataProperties(object2, getStateForGuild(guildId), instances);
object2['instances'] = instances;
object2['hasFetchedInstances'] = true;
const Date = global.Date;
object2['instancesLastFetchedAt'] = Date.now();
object[guildId] = object2;
}
return r0;
}
function value_66039(a0) { // fn#66039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2202, offset: 0x01be99a5, size: 73 bytes, params: 2, frame: 11
var r0;
var Date;
let value = environment.__proto__;
const instancesLastFetchedAt = env1_7[a0]?.instancesLastFetchedAt;
value = instancesLastFetchedAt == null;
if (value) {
r0 = value;
} else {
value = instancesLastFetchedAt + 300000;
Date = global.Date;
value = value < Date.now();
r0 = value;
function GAME_SERVER_FETCH_GAME_INSTRUCTIONS_SUCCESS({guildId, skuId, instructions}) { // fn#66045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3233, offset: 0x01be9b5d, size: 100 bytes, params: 2, frame: 18
const object = {};
copyDataProperties(object, env0_7, undefined);
const object2 = {};
const getStateForGuildBinding = getStateForGuild;
copyDataProperties(object2, getStateForGuildBinding(guildId), getStateForGuildBinding);
const object3 = {};
const stateForGuildBinding = getStateForGuildBinding(guildId);
copyDataProperties(object3, stateForGuildBinding.instructions, stateForGuildBinding);
object3[skuId] = instructions;
object2['instructions'] = object3;
object[guildId] = object2;
}
return r0;
}
function value_66040() { // fn#66040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:2342, offset: 0x01be99ee, size: 55 bytes, params: 1, frame: 11
var r0;
var Date;
let value = environment.__proto__;
const catalogLastFetchedAt = env1_8.catalogLastFetchedAt;
value = catalogLastFetchedAt == null;
if (value) {
r0 = value;
} else {
value = catalogLastFetchedAt + 86400000;
Date = global.Date;
value = value < Date.now();
r0 = value;
function GAME_SERVER_UPDATE_INSTANCE_SUCCESS({guildId, instance}) { // fn#66046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3436, offset: 0x01be9bc1, size: 98 bytes, params: 2, frame: 17
const stateForGuild = getStateForGuild(guildId);
const object = {};
copyDataProperties(object, env0_7, instance);
const object2 = {};
copyDataProperties(object2, stateForGuild, instance);
const object3 = {};
copyDataProperties(object3, stateForGuild.instances, instance);
object3[instance.id] = instance;
object2['instances'] = object3;
object[guildId] = object2;
}
return r0;
function GUILD_BOOST_ENTITLEMENTS_FETCH_SUCCESS({guildId, unlockedGameServers}) { // fn#66047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3619, offset: 0x01be9c23, size: 89 bytes, params: 2, frame: 17
const value2 = recalculateAppliedBoosts(undefined, unlockedGameServers);
const object = {};
copyDataProperties(object, env0_7, unlockedGameServers);
const object2 = {};
copyDataProperties(object2, getStateForGuild(guildId), unlockedGameServers);
object2['entitlements'] = unlockedGameServers;
object2['appliedBoosts'] = value2;
object[guildId] = object2;
}
function GAME_SERVER_DELETE({guildId, gameServerId}) { // fn#66048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:3926, offset: 0x01be9c7c, size: 74 bytes, params: 2, frame: 15
const stateForGuild = getStateForGuild(guildId);
delete stateForGuild.instances[gameServerId];
const object = {};
copyDataProperties(object, env0_7, stateForGuild);
const object2 = {};
copyDataProperties(object2, stateForGuild, stateForGuild);
object[guildId] = object2;
}
function GUILD_POWERUP_ENTITLEMENTS_CREATE({guildId, entitlements}) { // fn#66049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4098, offset: 0x01be9cc6, size: 80 bytes, params: 2, frame: 17
const stateForGuild = getStateForGuild(guildId);
entitlements.filter(function({sku}) {
return (sku == null || sku.tenant_metadata == null || sku.tenant_metadata.guild_monetization == null ? undefined : sku.tenant_metadata.guild_monetization.game_server) != null;
}).forEach(_fun66051);
handleGameServerEntitlementsChanged(guildId, stateForGuild);
function _fun66051(a0) { // fn#66051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4341, offset: 0x01be9d54, size: 29 bytes, params: 2, frame: 3
env0_0.entitlements[a0.id] = a0;
}
}
function GUILD_POWERUP_ENTITLEMENTS_DELETE({guildId, entitlements}) { // fn#66052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4447, offset: 0x01be9d71, size: 63 bytes, params: 2, frame: 16
const stateForGuild = getStateForGuild(guildId);
entitlements.forEach(_fun66053);
handleGameServerEntitlementsChanged(guildId, stateForGuild);
function _fun66053({id}) { // fn#66053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4556, offset: 0x01be9db0, size: 29 bytes, params: 2, frame: 2
delete env0_0.entitlements[id];
}
}
}
function _fun66051(a0) { // fn#66051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4341, offset: 0x01be9d54, size: 29 bytes, params: 2, frame: 3
env0_0.entitlements[a0.id] = a0;
}
function _fun66053({id}) { // fn#66053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4556, offset: 0x01be9db0, size: 29 bytes, params: 2, frame: 2
delete env0_0.entitlements[id];
}
function _fun66033({gameId}) { // fn#66033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:1555, offset: 0x01be9858, size: 22 bytes, params: 2, frame: 2
return gameId === env0_0;
function _fun66050({sku}) { // fn#66050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8440:4206, offset: 0x01be9d16, size: 62 bytes, params: 2, frame: 5
return (sku == null || sku.tenant_metadata == null ? undefined : sku.tenant_metadata.guild_monetization?.game_server) != null;
}
global.__d(_fun66017, 8255, [6, 7, 15, 17, 18, 8256, 8257, 566, 694,
2]) /* metro module 8255, dependencies: [6, 7, 15, 17, 18, 8256, 8257, 566, 694, 2] */;
@@ -1,22 +1,27 @@
/* Metro module 14618; source: modules/premium/game_server/experiments/GameServerPricingExperiment.tsx; dependencies: [4620, 6857, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ExperimentsModule from '../../../experiments/index.tsx'; /* Metro dependency 4620 */
import * as GameServerExperimentModule from '../GameServerExperiment.tsx'; /* Metro dependency 6857 */
function _fun110522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14815:6, offset: 0x0237beff, size: 193 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(4620) /* metro dependency 4620: experiments */;
let value = ExperimentsModule;
value = value.createExperiment({'kind': 'guild', 'id': '2026-03_game_server_pricing',
'label': 'Game Server Pricing', defaultConfig: {enabled: false}, treatments: [{'id': 1,
'label': 'Enable Game Server Pricing', config: {enabled: true}}]});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/experiments/GameServerPricingExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/experiments/GameServerPricingExperiment.tsx');
exports.GameServerPricingExperiment = value;
exports.useIsGameServerPricingEnabled = useIsGameServerPricingEnabled;
function useIsGameServerPricingEnabled(a0, a1) { // fn#110523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14815:471, offset: 0x0237bfc0, size: 91 bytes, params: 3, frame: 15
const value2 = (GameServerExperimentModule).useGameServerEnabled(a0, a1);
const binding = env0_2;
const useExperiment = binding.useExperiment;
return value2 && Reflect.apply(useExperiment, binding, [{guildId: a0, location: a1},
{autoTrackExposure: false}]).enabled;
}
}
function useIsGameServerPricingEnabled(a0, a1) { // fn#110523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14815:471, offset: 0x0237bfc0, size: 91 bytes, params: 3, frame: 15
const value2 = (require(6857) /* metro dependency 6857: GameServerExperiment */).useGameServerEnabled(a0, a1);
const binding = env0_2;
const useExperiment = binding.useExperiment;
return value2 && Reflect.apply(useExperiment, binding, [{guildId: a0, location: a1},
{autoTrackExposure: false}]).enabled;
}
global.__d(_fun110522, 14618, [4620, 6857, 2]) /* metro module 14618, dependencies: [4620, 6857, 2] */;
@@ -1,10 +1,20 @@
/* Metro module 14727; source: modules/premium/game_server/experiments/GameServerTabAlwaysOnExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun111039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14924:6, offset: 0x02391244, size: 158 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-02-game-server-tab-always-on',
const env0_0 = (ApexModule).createApexExperiment({'name': '2026-02-game-server-tab-always-on',
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/experiments/GameServerTabAlwaysOnExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/experiments/GameServerTabAlwaysOnExperiment.tsx');
exports.useIsGameServerTabAlwaysOnEnabled = useIsGameServerTabAlwaysOnEnabled;
function useIsGameServerTabAlwaysOnEnabled(a0) { // fn#111040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14924:383, offset: 0x00e364db, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: a0}]).enabled;
}
}
global.__d(_fun111039, 14727, [1854, 2]) /* metro module 14727, dependencies: [1854, 2] */;
@@ -1,10 +1,20 @@
/* Metro module 14617; source: modules/premium/game_server/experiments/NewGamesCoachmarkExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun110520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14814:6, offset: 0x0237be61, size: 158 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-04-new-games-coachmark',
const env0_0 = (ApexModule).createApexExperiment({'name': '2026-04-new-games-coachmark',
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/experiments/NewGamesCoachmarkExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/experiments/NewGamesCoachmarkExperiment.tsx');
exports.useIsNewGamesCoachmarkEnabled = useIsNewGamesCoachmarkEnabled;
function useIsNewGamesCoachmarkEnabled(a0) { // fn#110521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14814:369, offset: 0x00e364db, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const useConfig = binding.useConfig;
return Reflect.apply(useConfig, binding, [{location: a0}]).enabled;
}
}
global.__d(_fun110520, 14617, [1854, 2]) /* metro module 14617, dependencies: [1854, 2] */;
@@ -1,24 +1,24 @@
/* Metro module 12305; source: modules/premium/game_server/hooks/useGameServerFeaturedGameNames.tsx; dependencies: [8260, 5198, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseGameModule from '../../../games/hooks/useGame.tsx'; /* Metro dependency 5198 */
import * as GameServerConstantsModule from '../GameServerConstants.tsx'; /* Metro dependency 8260 */
function _fun93977(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12491:6, offset: 0x020cd6b4, size: 127 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const gameServerConstantsModule = require(8260) /* metro dependency 8260: GameServerConstants */;
const env0_2 = gameServerConstantsModule.MINECRAFT_GAME_ID;
const env0_3 = gameServerConstantsModule.HYTALE_GAME_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerFeaturedGameNames.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerFeaturedGameNames.tsx');
exports.default = useGameServerFeaturedGameNames;
function useGameServerFeaturedGameNames() { // fn#93978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12491:259, offset: 0x020cd733, size: 150 bytes, params: 1, frame: 16
const value2 = undefined;
let useGame = UseGameModule.useGame;
const data = Reflect.apply(useGame, UseGameModule, [MINECRAFT_GAME_ID]).data;
useGame = UseGameModule.useGame;
const data2 = Reflect.apply(useGame, UseGameModule, [HYTALE_GAME_ID]).data;
return {gameName: (data == null ? value2 : data.name) ?? 'Minecraft',
gameName2: (data2 == null ? value2 : data2.name) ?? 'Hytale'};
}
}
function useGameServerFeaturedGameNames() { // fn#93978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12491:259, offset: 0x020cd733, size: 150 bytes, params: 1, frame: 16
const value2 = undefined;
const useGameModule = require(5198) /* metro dependency 5198: useGame */;
let useGame = useGameModule.useGame;
const data = Reflect.apply(useGame, useGameModule, [MINECRAFT_GAME_ID]).data;
const moduleValue2 = useGameModule;
useGame = moduleValue2.useGame;
const data2 = Reflect.apply(useGame, moduleValue2, [HYTALE_GAME_ID]).data;
return {gameName: (data == null ? value2 : data.name) ?? 'Minecraft',
gameName2: (data2 == null ? value2 : data2.name) ?? 'Hytale'};
}
global.__d(_fun93977, 12305, [8260, 5198, 2]) /* metro module 12305, dependencies: [8260, 5198, 2] */;
@@ -1,35 +1,44 @@
/* Metro module 14626; source: modules/premium/game_server/hooks/useGameServerGetExpiringEntitlements.tsx; dependencies: [31, 8255, 566, 14609, 2] */
import GameServerStore from '../GameServerStore.tsx'; /* Metro dependency 8255 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun110563(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:6, offset: 0x0237d542, size: 133 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const gameServerStore = importDefault(8255) /* metro dependency 8255: GameServerStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerGetExpiringEntitlements.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerGetExpiringEntitlements.tsx');
exports.default = useGameServerGetExpiringEntitlements;
}
function useGameServerGetExpiringEntitlements(a0) { // fn#110564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:234, offset: 0x0237d5c7, size: 115 bytes, params: 2, frame: 16
const env0_0 = a0;
const value2 = undefined;
const stateForGuild = (FluxModule).useStateFromStores([GameServerStore],
_fun110565);
return ReactModule.useMemo(_fun110566, [stateForGuild == null ? value2 : stateForGuild.entitlements]);
function _fun110565() { // fn#110565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:321, offset: 0x0237bb76, size: 27 bytes, params: 1, frame: 11
return GameServerStore.getStateForGuild(env0_0);
}
function useGameServerGetExpiringEntitlements(a0) { // fn#110564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:234, offset: 0x0237d5c7, size: 115 bytes, params: 2, frame: 16
const env0_0 = a0;
const value2 = undefined;
const stateForGuild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameServerStore],
_fun110565);
return env0_2.useMemo(_fun110566, [stateForGuild == null ? value2 : stateForGuild.entitlements]);
}
function _fun110566() { // fn#110566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:367, offset: 0x0237d63a, size: 107 bytes, params: 1, frame: 15
var value3;
const Object = global.Object;
const values = Object.values;
var expiringGuildEntitlements;
let r0 = stateForGuild?.entitlements ?? ({});
if (Reflect.apply(values, Object, [r0]).length === 0) {
r0 = [];
} else {
value3 = environment.__proto__;
expiringGuildEntitlements = (require(14609) /* metro dependency 14609: getExpiringGuildEntitlements */).getExpiringGuildEntitlements(expiringGuildEntitlements);
r0 = expiringGuildEntitlements;
}
return r0;
}
function _fun110566() { // fn#110566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14823:367, offset: 0x0237d63a, size: 107 bytes, params: 1, frame: 15
var value3;
const Object = global.Object;
const values = Object.values;
var expiringGuildEntitlements;
let r0 = stateForGuild?.entitlements ?? ({});
if (Reflect.apply(values, Object, [r0]).length === 0) {
r0 = [];
} else {
value3 = environment.__proto__;
expiringGuildEntitlements = (require(14609) /* metro dependency 14609: getExpiringGuildEntitlements */).getExpiringGuildEntitlements(expiringGuildEntitlements);
r0 = expiringGuildEntitlements;
}
return r0;
}
global.__d(_fun110563, 14626, [31, 8255, 566, 14609,
2]) /* metro module 14626, dependencies: [31, 8255, 566, 14609, 2] */;
@@ -1,59 +1,67 @@
/* Metro module 12304; source: modules/premium/game_server/hooks/useGameServerPerk.tsx; dependencies: [31, 8255, 8259, 8260, 6857, 566, 12305, 1244, 2646, 12306, 2] */
import GameServerStore from '../GameServerStore.tsx'; /* Metro dependency 8255 */
import UseGameServerFeaturedGameNames from './useGameServerFeaturedGameNames.tsx'; /* Metro dependency 12305 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as GameServerExperimentModule from '../GameServerExperiment.tsx'; /* Metro dependency 6857 */
import * as GuildPowerupsConstantsModule from '../../powerups/constants/GuildPowerupsConstants.tsx'; /* Metro dependency 8259 */
import * as GameServerConstantsModule from '../GameServerConstants.tsx'; /* Metro dependency 8260 */
function _fun93973(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:6, offset: 0x020cd437, size: 181 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const gameServerStore = importDefault(8255) /* metro dependency 8255: GameServerStore */;
const env0_5 = (require(8259) /* metro dependency 8259: GuildPowerupsConstants */).GuildPowerupType;
const env0_6 = (require(8260) /* metro dependency 8260: GameServerConstants */).GAME_SERVER_POWERUP_SKU_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerPerk.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerPerk.tsx');
exports.default = useGameServerPerk;
}
function useGameServerPerk(a0) { // fn#93974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:280, offset: 0x020cd4ec, size: 186 bytes, params: 2, frame: 18
const env0_0 = a0;
const value2 = (require(6857) /* metro dependency 6857: GameServerExperiment */).useGameServerEnabled(a0,
'useGameServerPerk');
const lowestGameCostForGuild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameServerStore],
_fun93975);
const value3 = (importDefault(12305) /* metro dependency 12305: useGameServerFeaturedGameNames */)();
const gameName = value3.gameName;
return gameName.useMemo(_fun93976, [value2, lowestGameCostForGuild, gameName, value3.gameName2]);
}
function _fun93975() { // fn#93975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:402, offset: 0x020cd5a6, size: 27 bytes, params: 1, frame: 11
return GameServerStore.getLowestGameCostForGuild(env0_0);
}
function _fun93976() { // fn#93976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:496, offset: 0x020cd5c1, size: 243 bytes, params: 1, frame: 22
var r0;
var object2;
var value3;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value2 = null;
if (env0_1) {
if (value2 != lowestGameCostForGuild) {
object2 = {};
value3 = environment.__proto__;
object2.skuId = GAME_SERVER_POWERUP_SKU_ID;
object2.title = intl.string((importDefault(2646) /* metro dependency 2646: GameServerMessages */)['B3OfL/']);
object2.description = intl.format((importDefault(2646) /* metro dependency 2646: GameServerMessages */)['+UqyGU'],
{gameName: gameName, gameName2: gameName2});
object2.cost = lowestGameCostForGuild;
object2.dependencies = [];
object2.type = GuildPowerupType.PERK;
object2.animatedImageUrl = importDefault(12306) /* metro dependency 12306: game_server_tilePng */;
object2.staticImageUrl = importDefault(12306) /* metro dependency 12306: game_server_tilePng */;
r0 = object2;
} else {
r0 = value2;
function useGameServerPerk(a0) { // fn#93974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:280, offset: 0x020cd4ec, size: 186 bytes, params: 2, frame: 18
const env0_0 = a0;
const value2 = (GameServerExperimentModule).useGameServerEnabled(a0,
'useGameServerPerk');
const lowestGameCostForGuild = (FluxModule).useStateFromStores([GameServerStore],
_fun93975);
const value3 = (UseGameServerFeaturedGameNames)();
const gameName = value3.gameName;
return gameName.useMemo(_fun93976, [value2, lowestGameCostForGuild, gameName, value3.gameName2]);
function _fun93975() { // fn#93975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:402, offset: 0x020cd5a6, size: 27 bytes, params: 1, frame: 11
return GameServerStore.getLowestGameCostForGuild(env0_0);
}
} else {
r0 = value2;
function _fun93976() { // fn#93976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12490:496, offset: 0x020cd5c1, size: 243 bytes, params: 1, frame: 22
var r0;
var object;
var value3;
const intl = (IndexNativeModule).intl;
const value2 = null;
if (env0_1) {
if (value2 != lowestGameCostForGuild) {
object = {};
value3 = environment.__proto__;
object.skuId = GAME_SERVER_POWERUP_SKU_ID;
object.title = intl.string((importDefault(2646) /* metro dependency 2646: GameServerMessages */)['B3OfL/']);
object.description = intl.format((importDefault(2646) /* metro dependency 2646: GameServerMessages */)['+UqyGU'],
{gameName: gameName, gameName2: gameName2});
object.cost = lowestGameCostForGuild;
object.dependencies = [];
object.type = GuildPowerupType.PERK;
object.animatedImageUrl = importDefault(12306) /* metro dependency 12306: game_server_tilePng */;
object.staticImageUrl = importDefault(12306) /* metro dependency 12306: game_server_tilePng */;
r0 = object;
} else {
r0 = value2;
}
} else {
r0 = value2;
}
return r0;
}
}
return r0;
}
global.__d(_fun93973, 12304, [31, 8255, 8259, 8260, 6857, 566, 12305, 1244, 2646, 12306,
2]) /* metro module 12304, dependencies: [31, 8255, 8259, 8260, 6857, 566, 12305, 1244, 2646, 12306, 2] */;
@@ -1,43 +1,49 @@
/* Metro module 14672; source: modules/premium/game_server/hooks/useGameServerPowerupStatus.tsx; dependencies: [31, 8255, 566, 14626, 1244, 2256, 2] */
import GameServerStore from '../GameServerStore.tsx'; /* Metro dependency 8255 */
import UseGameServerGetExpiringEntitlements from './useGameServerGetExpiringEntitlements.tsx'; /* Metro dependency 14626 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun110757(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:6, offset: 0x02386032, size: 137 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const gameServerStore = importDefault(8255) /* metro dependency 8255: GameServerStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerPowerupStatus.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/hooks/useGameServerPowerupStatus.tsx');
exports.default = useGameServerPowerupStatus;
}
function useGameServerPowerupStatus(a0) { // fn#110758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:224, offset: 0x023860bb, size: 138 bytes, params: 2, frame: 20
const env0_0 = a0;
return env0_3.useMemo(_fun110760,
[(importDefault(14626) /* metro dependency 14626: useGameServerGetExpiringEntitlements */)(a0),
(require(566) /* metro dependency 566: flux */).useStateFromStores([GameServerStore], _fun110759, [a0])]);
}
function _fun110759() { // fn#110759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:301, offset: 0x02386145, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return GameServerStore.getStateForGuild(env0_0)?.entitlements;
}
function _fun110760() { // fn#110760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:411, offset: 0x02386171, size: 182 bytes, params: 1, frame: 17
var object2;
var intl;
const Object = global.Object;
const values = Object.values;
let r0 = env0_1 ?? ({});
if (Reflect.apply(values, Object, [r0]).length !== 0) {
if (env0_2.length > 0) {
r0 = {type: 'expiring', expiringAt: env0_2[0].ends_at};
} else {
object2 = {type: 'active'};
value = environment.__proto__;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.statusText = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).FFLkmx);
r0 = object2;
function useGameServerPowerupStatus(a0) { // fn#110758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:224, offset: 0x023860bb, size: 138 bytes, params: 2, frame: 20
const env0_0 = a0;
return ReactModule.useMemo(_fun110760,
[(UseGameServerGetExpiringEntitlements)(a0),
(FluxModule).useStateFromStores([GameServerStore], _fun110759, [a0])]);
function _fun110759() { // fn#110759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:301, offset: 0x02386145, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return GameServerStore.getStateForGuild(env0_0)?.entitlements;
}
return r0;
function _fun110760() { // fn#110760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14869:411, offset: 0x02386171, size: 182 bytes, params: 1, frame: 17
var object;
var intl;
const Object = global.Object;
const values = Object.values;
let r0 = env0_1 ?? ({});
if (Reflect.apply(values, Object, [r0]).length !== 0) {
if (env0_2.length > 0) {
r0 = {type: 'expiring', expiringAt: env0_2[0].ends_at};
} else {
object = {type: 'active'};
value = environment.__proto__;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.statusText = intl.string((importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).FFLkmx);
r0 = object;
}
return r0;
}
}
}
}
global.__d(_fun110757, 14672, [31, 8255, 566, 14626, 1244, 2256,
2]) /* metro module 14672, dependencies: [31, 8255, 566, 14626, 1244, 2256, 2] */;
@@ -1,7 +1,11 @@
/* Metro module 14603; source: modules/premium/game_server/mocks/GameServerMocks.tsx; dependencies: [8261, 14604, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as GameServerProviderTypeModule from '../../../../external/discord_common/js/shared/shared-constants/GameServerProviderType.tsx'; /* Metro dependency 8261 */
import * as GameServerStatusModule from '../../../../external/discord_common/js/shared/shared-constants/GameServerStatus.tsx'; /* Metro dependency 14604 */
function _fun110416(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14800:6, offset: 0x02378872, size: 1078 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = createMockGame;
const createMockGame2 = createMockGame;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const items2 = [{'id': '1', 'name': 'GameServer #1', 'cost': 3, specifications: [{'title': '2',
@@ -10,21 +14,22 @@ function _fun110416(global, require, importDefault, importAll, module, exports,
{'title': '1', 'description': 'vCPU'}, {'title': '25', 'description': 'GB'}]};
items2[2] = {'id': '3', 'name': 'GameServer #3', 'cost': 12, specifications: [{'title': '2', 'description': 'GB'},
{'title': '1', 'description': 'vCPU'}, {'title': '25', 'description': 'GB'}]};
items = [closure('1', 'GameServer Test #1'), closure('2', 'GameServer Test #2'), closure('3', 'GameServer Test #3'),
closure('4', 'GameServer Test #4'), closure('5', 'GameServer Test #5'), closure('6', 'GameServer Test #6'),
closure('7', 'GameServer Test #7'), closure('8', 'GameServer Test #8'), closure('9', 'GameServer Test #9'),
closure('10', 'GameServer Test #10'), closure('11', 'GameServer Test #11'), closure('12',
items3 = [createMockGame2('1', 'GameServer Test #1'), createMockGame2('2', 'GameServer Test #2'),
createMockGame2('3', 'GameServer Test #3'), createMockGame2('4', 'GameServer Test #4'), createMockGame2('5',
'GameServer Test #5'), createMockGame2('6', 'GameServer Test #6'), createMockGame2('7', 'GameServer Test #7'),
createMockGame2('8', 'GameServer Test #8'), createMockGame2('9', 'GameServer Test #9'), createMockGame2('10',
'GameServer Test #10'), createMockGame2('11', 'GameServer Test #11'), createMockGame2('12',
'GameServer Test #12')];
const object3 = {'id': '1', 'gameId': '1', 'name': 'GameServer Test #1', 'port': '25565', 'regionId': 'us-east',
const object = {'id': '1', 'gameId': '1', 'name': 'GameServer Test #1', 'port': '25565', 'regionId': 'us-east',
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
'entitlementId': '1'};
object3.planId = items2[1].id;
object3.planName = items2[1].name;
const GameServerStatus = (require(14604) /* metro dependency 14604: GameServerStatus */).GameServerStatus;
object.planId = items2[1].id;
object.planName = items2[1].name;
const GameServerStatus = (GameServerStatusModule).GameServerStatus;
let ONLINE = GameServerStatus.ONLINE;
object3.status = ONLINE;
const items5 = [object3];
object.status = ONLINE;
const items5 = [object];
ONLINE = GameServerStatus.ONLINE;
items5[1] = {'id': '2', 'gameId': '2', 'name': 'GameServer Test #2', 'port': '25565', 'regionId': 'us-east',
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
@@ -50,27 +55,28 @@ function _fun110416(global, require, importDefault, importAll, module, exports,
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
'entitlementId': '6', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/mocks/GameServerMocks.tsx');
exports.GAME_SERVER_GAME_MOCKS = items;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/mocks/GameServerMocks.tsx');
exports.GAME_SERVER_GAME_MOCKS = items3;
exports.GAME_SERVER_INSTANCE_MOCKS = items5;
function createMockGame(a0, a1) { // fn#110417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14800:533, offset: 0x02378ca8, size: 146 bytes, params: 3, frame: 17
const object = {id: a0, name: a1};
const GameServerProviderType = (GameServerProviderTypeModule).GameServerProviderType;
const SHOCKBYTE = GameServerProviderType.SHOCKBYTE;
object.provider = SHOCKBYTE;
object.plans = env0_2;
const Math = global.Math;
const min = Math.min;
const binding = env0_2;
const value = binding.map(function(a0) {
return a0.cost;
});
const items2 = [];
arraySpread(items2, value, 0, binding);
object.baseCost = apply(min, items2, Math, binding);
object.gameId = '1';
return object;
}
}
function createMockGame(a0, a1) { // fn#110417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14800:533, offset: 0x02378ca8, size: 146 bytes, params: 3, frame: 17
const object2 = {id: a0, name: a1};
const GameServerProviderType = (require(8261) /* metro dependency 8261: GameServerProviderType */).GameServerProviderType;
const SHOCKBYTE = GameServerProviderType.SHOCKBYTE;
object2.provider = SHOCKBYTE;
object2.plans = env0_2;
const Math = global.Math;
const min = Math.min;
const binding = env0_2;
const value = binding.map(function(a0) {
return a0.cost;
});
const items2 = [];
arraySpread(items2, value, 0, binding);
object2.baseCost = apply(min, items2, Math, binding);
object2.gameId = '1';
return object2;
}
global.__d(_fun110416, 14603, [8261, 14604, 2]) /* metro module 14603, dependencies: [8261, 14604, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 8257; source: modules/premium/game_server/utils/gameServerResponseToInstance.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun66056(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8442:6, offset: 0x01be9f03, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/utils/gameServerResponseToInstance.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/utils/gameServerResponseToInstance.tsx');
exports.default = gameServerResponseToInstance;
}
@@ -13,3 +15,4 @@ function gameServerResponseToInstance({id, name, region_id, region_name, sku_id,
gameId: game_id, gameConfig: game_config};
}
global.__d(_fun66056, 8257, [2]) /* metro module 8257, dependencies: [2] */;
@@ -1,61 +1,68 @@
/* Metro module 14605; source: modules/premium/game_server/utils/productToGameServerGame.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun110420(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:6, offset: 0x02378df7, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/utils/productToGameServerGame.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/utils/productToGameServerGame.tsx');
exports.productToGameServerGame = productToGameServerGame;
}
function productToGameServerGame(a0) { // fn#110421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:214, offset: 0x02378e4e, size: 444 bytes, params: 2, frame: 19
var r2;
var Math;
var min;
var value3;
var object;
let value = a0.skus.map(function(a0) {
return {id: a0.id, name: a0.name, cost: a0.tenant_metadata.boost_price,
specifications: a0.tenant_metadata.plan_features.map(_fun110423)};
});
value = value.sort(function(a0, {cost}) {
return cost - a0.cost;
});
const length = value.length;
const value2 = 0;
if (length > value2) {
Math = global.Math;
min = Math.min;
value3 = value.map(function(a0) {
return a0.cost;
function productToGameServerGame(a0) { // fn#110421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:214, offset: 0x02378e4e, size: 444 bytes, params: 2, frame: 19
var r2;
var Math;
var min;
var value3;
var object;
let value = a0.skus.map(function(a0) {
return {id: a0.id, name: a0.name, cost: a0.tenant_metadata.boost_price,
specifications: a0.tenant_metadata.plan_features.map(_fun110423)};
});
object = [];
arraySpread(object, value3, value2, undefined);
r2 = apply(min, object, Math, undefined);
} else {
r2 = value2;
value = value.sort(function(a0, {cost}) {
return cost - a0.cost;
});
const length = value.length;
const value2 = 0;
if (length > value2) {
Math = global.Math;
min = Math.min;
value3 = value.map(function(a0) {
return a0.cost;
});
object = [];
arraySpread(object, value3, value2, undefined);
r2 = apply(min, object, Math, undefined);
} else {
r2 = value2;
}
object = {};
object.id = a0.id;
object.name = a0.name;
let tenant_metadata = a0.tenant_metadata;
const value5 = undefined;
object.gameId = (tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.game_application_id) ?? '';
tenant_metadata = a0.tenant_metadata;
object.provider = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.provider;
object.plans = value;
object.baseCost = r2;
tenant_metadata = a0.tenant_metadata;
object.disabled = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.disabled;
tenant_metadata = a0.tenant_metadata;
object.early_access = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.early_access;
tenant_metadata = a0.tenant_metadata;
object.can_market = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.can_market;
return object;
function _fun110422(a0) { // fn#110422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:280, offset: 0x0237900a, size: 80 bytes, params: 2, frame: 12
return {id: a0.id, name: a0.name, cost: a0.tenant_metadata.boost_price,
specifications: a0.tenant_metadata.plan_features.map(function(a0) {
return {title: a0.title, description: a0.description};
})};
}
}
object = {};
object.id = a0.id;
object.name = a0.name;
let tenant_metadata = a0.tenant_metadata;
const value5 = undefined;
object.gameId = (tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.game_application_id) ?? '';
tenant_metadata = a0.tenant_metadata;
object.provider = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.provider;
object.plans = value;
object.baseCost = r2;
tenant_metadata = a0.tenant_metadata;
object.disabled = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.disabled;
tenant_metadata = a0.tenant_metadata;
object.early_access = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.early_access;
tenant_metadata = a0.tenant_metadata;
object.can_market = tenant_metadata == null || tenant_metadata.guild_monetization == null || tenant_metadata.guild_monetization.game_server == null ? value5 : tenant_metadata.guild_monetization.game_server.can_market;
return object;
}
function _fun110422(a0) { // fn#110422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:280, offset: 0x0237900a, size: 80 bytes, params: 2, frame: 12
return {id: a0.id, name: a0.name, cost: a0.tenant_metadata.boost_price,
specifications: a0.tenant_metadata.plan_features.map(function(a0) {
return {title: a0.title, description: a0.description};
})};
function _fun110423({title, description}) { // fn#110423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14802:327, offset: 0x0237905a, size: 25 bytes, params: 2, frame: 3
return {title: title, description: description};
}
global.__d(_fun110420, 14605, [2]) /* metro module 14605, dependencies: [2] */;
@@ -1,10 +1,13 @@
/* Metro module 14606; source: modules/premium/game_server/utils/regionResponseToRegion.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun110426(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14803:6, offset: 0x0237908b, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/utils/regionResponseToRegion.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/game_server/utils/regionResponseToRegion.tsx');
exports.default = function(a0) {
return {id: a0.id, name: a0.name, countryCode: a0.country_code, pingUrl: a0.ping_url, enabled: a0.enabled};
};
}
global.__d(_fun110426, 14606, [2]) /* metro module 14606, dependencies: [2] */;
@@ -1,8 +1,10 @@
/* Metro module 8247; source: modules/premium/getNumSubscriptionsPurchasedFromSystemMessage.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun65909(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8432:6, offset: 0x01be514d, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/getNumSubscriptionsPurchasedFromSystemMessage.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/getNumSubscriptionsPurchasedFromSystemMessage.tsx');
exports.default = function(a0) {
var Number = global.Number;
var value = Number(a0.content);
@@ -10,3 +12,4 @@ function _fun65909(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun65909, 8247, [2]) /* metro module 8247, dependencies: [2] */;
@@ -1,14 +1,17 @@
/* Metro module 7038; source: modules/premium/gifting/GiftPromotionStore.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 _fun55839(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:6, offset: 0x013b4c2c, size: 321 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 */;
object = {giftOptionsReceiptMap: {}};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun55843(PersistedStore);
value.displayName = 'GiftPromotionStore';
value.persistKey = 'GiftPromotionStore';
@@ -21,69 +24,83 @@ function _fun55839(global, require, importDefault, importAll, module, exports, d
env0_5 = {giftOptionsReceiptMap: {}};
}, GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION: GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION,
GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION: GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/GiftPromotionStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftPromotionStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_55840() { // fn#55840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:148, offset: 0x013b4d6d, 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) {
function _isNativeReflectConstruct_55840() { // fn#55840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:148, offset: 0x013b4d6d, 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_55840_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_55840_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun55843(a0) { // fn#55843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:380, offset: 0x013b4dcb, size: 114 bytes, params: 2, frame: 16
const closure = GiftPromotionStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: value_55845}, {key: 'getState', value: value_55846},
{key: 'getGiftOptionsForKey', value: value_55847}]);
}
function _fun55843(a0) { // fn#55843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:380, offset: 0x013b4dcb, size: 114 bytes, params: 2, frame: 16
const GiftPromotionStore2 = GiftPromotionStore;
Inherits(GiftPromotionStore2, a0);
return CreateClass(GiftPromotionStore2, [{key: 'initialize', value: value_55845}, {key: 'getState', value: value_55846},
{key: 'getGiftOptionsForKey', value: value_55847}]);
function GiftPromotionStore() { // fn#55844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:392, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, GiftPromotionStore);
const value3 = env1_3(GiftPromotionStore);
return env1_2(this, _isNativeReflectConstruct_55840() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION({key, giftOptions}) { // fn#55850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1231, offset: 0x013b4eba, size: 35 bytes, params: 2, frame: 3
env0_5.giftOptionsReceiptMap[key] = giftOptions;
}
function value_55845(a0) { // fn#55845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:700, offset: 0x013b4e3d, size: 41 bytes, params: 2, frame: 12
var value;
var binding;
var object;
if (a0 != null) {
value = environment.__proto__;
binding = env1_5;
object = {};
copyDataProperties(object, a0.giftOptionsReceiptMap, a0);
binding.giftOptionsReceiptMap = object;
}
}
function GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION({key}) { // fn#55851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1363, offset: 0x013b4edd, size: 29 bytes, params: 2, frame: 2
delete env0_5.giftOptionsReceiptMap[key];
}
function value_55846() { // fn#55846, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
function value_55847(a0) { // fn#55847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:856, offset: 0x013b4e66, size: 22 bytes, params: 2, frame: 2
return env1_5.giftOptionsReceiptMap[a0];
}
function value_55845(a0) { // fn#55845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:700, offset: 0x013b4e3d, size: 41 bytes, params: 2, frame: 12
var value;
var binding;
var object2;
if (a0 != null) {
value = environment.__proto__;
binding = env1_5;
object2 = {};
copyDataProperties(object2, a0.giftOptionsReceiptMap, a0);
binding.giftOptionsReceiptMap = object2;
}
function GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION({key, giftOptions}) { // fn#55850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1231, offset: 0x013b4eba, size: 35 bytes, params: 2, frame: 3
env0_5.giftOptionsReceiptMap[key] = giftOptions;
}
function GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION({key}) { // fn#55851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1363, offset: 0x013b4edd, size: 29 bytes, params: 2, frame: 2
delete env0_5.giftOptionsReceiptMap[key];
}
}
function value_55847(a0) { // fn#55847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:856, offset: 0x013b4e66, size: 22 bytes, params: 2, frame: 2
return env1_5.giftOptionsReceiptMap[a0];
}
global.__d(_fun55839, 7038, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 7038, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2320; source: modules/premium/gifting/GiftingBadge.messages.js; dependencies: [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2321, 1282, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22916(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:6, offset: 0x00f07a56, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_22917, cs: cs_22919, da: da_22921, de: de_22923, el: el_22925};
object2['en-GB'] = _fun22927;
object2['es-419'] = _fun22929;
object2['es-ES'] = _fun22931;
object2.fi = fi_22933;
object2.fr = fr_22935;
object2.hi = hi_22937;
object2.hr = hr_22939;
object2.hu = hu_22941;
object2.it = it_22943;
object2.ja = ja_22945;
object2.ko = ko_22947;
object2.lt = lt_22949;
object2.nl = nl_22951;
object2.no = no_22953;
object2.pl = pl_22955;
object2['pt-BR'] = _fun22957;
object2.ro = ro_22959;
object2.ru = ru_22961;
object2['sv-SE'] = _fun22963;
object2.th = th_22965;
object2.tr = tr_22967;
object2.uk = uk_22969;
object2.vi = vi_22971;
object2['zh-CN'] = _fun22973;
object2['zh-TW'] = _fun22975;
object2['en-US'] = _fun22977;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/GiftingBadge.messages.js');
object = {bg: bg_22917, cs: cs_22919, da: da_22921, de: de_22923, el: el_22925};
object['en-GB'] = _fun22927;
object['es-419'] = _fun22929;
object['es-ES'] = _fun22931;
object.fi = fi_22933;
object.fr = fr_22935;
object.hi = hi_22937;
object.hr = hr_22939;
object.hu = hu_22941;
object.it = it_22943;
object.ja = ja_22945;
object.ko = ko_22947;
object.lt = lt_22949;
object.nl = nl_22951;
object.no = no_22953;
object.pl = pl_22955;
object['pt-BR'] = _fun22957;
object.ro = ro_22959;
object.ru = ru_22961;
object['sv-SE'] = _fun22963;
object.th = th_22965;
object.tr = tr_22967;
object.uk = uk_22969;
object.vi = vi_22971;
object['zh-CN'] = _fun22973;
object['zh-TW'] = _fun22975;
object['en-US'] = _fun22977;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftingBadge.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_22917() { // fn#22917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:102, offset: 0x00f07c1b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2289) /* metro dependency 2289 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22919() { // fn#22919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:165, offset: 0x00f07c5c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2290) /* metro dependency 2290 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22921() { // fn#22921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:228, offset: 0x00f07c9d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2291) /* metro dependency 2291 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22923() { // fn#22923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:291, offset: 0x00f07cde, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2292) /* metro dependency 2292 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22925() { // fn#22925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:354, offset: 0x00f07d1f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2293) /* metro dependency 2293 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22927() { // fn#22927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:422, offset: 0x00f07d60, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2294) /* metro dependency 2294 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22929() { // fn#22929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:491, offset: 0x00f07da1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2295) /* metro dependency 2295 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22931() { // fn#22931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:559, offset: 0x00f07de2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2296) /* metro dependency 2296 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22933() { // fn#22933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:622, offset: 0x00f07e23, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2297) /* metro dependency 2297 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22935() { // fn#22935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:685, offset: 0x00f07e64, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2298) /* metro dependency 2298 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22937() { // fn#22937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:749, offset: 0x00f07ea5, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2299) /* metro dependency 2299 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22939() { // fn#22939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:813, offset: 0x00f07ee6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2300) /* metro dependency 2300 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22941() { // fn#22941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:877, offset: 0x00f07f27, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2301) /* metro dependency 2301 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22943() { // fn#22943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:941, offset: 0x00f07f68, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2302) /* metro dependency 2302 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22945() { // fn#22945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1005, offset: 0x00f07fa9, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2303) /* metro dependency 2303 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22947() { // fn#22947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1069, offset: 0x00f07fea, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2304) /* metro dependency 2304 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22949() { // fn#22949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1133, offset: 0x00f0802b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2305) /* metro dependency 2305 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22951() { // fn#22951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1197, offset: 0x00f0806c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2306) /* metro dependency 2306 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22953() { // fn#22953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1261, offset: 0x00f080ad, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2307) /* metro dependency 2307 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22955() { // fn#22955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1325, offset: 0x00f080ee, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2308) /* metro dependency 2308 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22957() { // fn#22957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1394, offset: 0x00f0812f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2309) /* metro dependency 2309 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22959() { // fn#22959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1458, offset: 0x00f08170, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2310) /* metro dependency 2310 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22961() { // fn#22961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1522, offset: 0x00f081b1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2311) /* metro dependency 2311 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22963() { // fn#22963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1591, offset: 0x00f081f2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2312) /* metro dependency 2312 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22965() { // fn#22965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1655, offset: 0x00f08233, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2313) /* metro dependency 2313 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22967() { // fn#22967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1719, offset: 0x00f08274, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2314) /* metro dependency 2314 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22969() { // fn#22969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1783, offset: 0x00f082b5, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2315) /* metro dependency 2315 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22971() { // fn#22971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1847, offset: 0x00f082f6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2316) /* metro dependency 2316 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22973() { // fn#22973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1916, offset: 0x00f08337, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2317) /* metro dependency 2317 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22975() { // fn#22975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1985, offset: 0x00f08378, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2318) /* metro dependency 2318 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22977() { // fn#22977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:2054, offset: 0x00f083b9, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2321) /* metro dependency 2321 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_22917() { // fn#22917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:102, offset: 0x00f07c1b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2289) /* metro dependency 2289 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22919() { // fn#22919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:165, offset: 0x00f07c5c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2290) /* metro dependency 2290 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22921() { // fn#22921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:228, offset: 0x00f07c9d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2291) /* metro dependency 2291 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22923() { // fn#22923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:291, offset: 0x00f07cde, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2292) /* metro dependency 2292 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22925() { // fn#22925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:354, offset: 0x00f07d1f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2293) /* metro dependency 2293 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22927() { // fn#22927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:422, offset: 0x00f07d60, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2294) /* metro dependency 2294 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22929() { // fn#22929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:491, offset: 0x00f07da1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2295) /* metro dependency 2295 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22931() { // fn#22931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:559, offset: 0x00f07de2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2296) /* metro dependency 2296 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22933() { // fn#22933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:622, offset: 0x00f07e23, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2297) /* metro dependency 2297 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22935() { // fn#22935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:685, offset: 0x00f07e64, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2298) /* metro dependency 2298 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22937() { // fn#22937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:749, offset: 0x00f07ea5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2299) /* metro dependency 2299 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22939() { // fn#22939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:813, offset: 0x00f07ee6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2300) /* metro dependency 2300 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22941() { // fn#22941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:877, offset: 0x00f07f27, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2301) /* metro dependency 2301 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22943() { // fn#22943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:941, offset: 0x00f07f68, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2302) /* metro dependency 2302 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22945() { // fn#22945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1005, offset: 0x00f07fa9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2303) /* metro dependency 2303 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22947() { // fn#22947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1069, offset: 0x00f07fea, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2304) /* metro dependency 2304 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22949() { // fn#22949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1133, offset: 0x00f0802b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2305) /* metro dependency 2305 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22951() { // fn#22951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1197, offset: 0x00f0806c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2306) /* metro dependency 2306 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22953() { // fn#22953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1261, offset: 0x00f080ad, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2307) /* metro dependency 2307 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22955() { // fn#22955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1325, offset: 0x00f080ee, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2308) /* metro dependency 2308 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22957() { // fn#22957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1394, offset: 0x00f0812f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2309) /* metro dependency 2309 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22959() { // fn#22959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1458, offset: 0x00f08170, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2310) /* metro dependency 2310 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22961() { // fn#22961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1522, offset: 0x00f081b1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2311) /* metro dependency 2311 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22963() { // fn#22963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1591, offset: 0x00f081f2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2312) /* metro dependency 2312 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22965() { // fn#22965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1655, offset: 0x00f08233, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2313) /* metro dependency 2313 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22967() { // fn#22967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1719, offset: 0x00f08274, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2314) /* metro dependency 2314 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22969() { // fn#22969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1783, offset: 0x00f082b5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2315) /* metro dependency 2315 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22971() { // fn#22971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1847, offset: 0x00f082f6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2316) /* metro dependency 2316 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22973() { // fn#22973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1916, offset: 0x00f08337, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2317) /* metro dependency 2317 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22975() { // fn#22975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:1985, offset: 0x00f08378, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2318) /* metro dependency 2318 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22977() { // fn#22977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2447:2054, offset: 0x00f083b9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2321) /* metro dependency 2321 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22916, 2320, [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301,
2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2321,
1282,
2]) /* metro module 2320, dependencies: [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2321, 1282, 2] */;
@@ -1,4 +1,7 @@
/* Metro module 10469; source: modules/premium/gifting/GiftingBadgeConstants.tsx; dependencies: [7670, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BadgeDirectoryStoreModule from '../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun81014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:6, offset: 0x01e956e8, size: 139 bytes, params: 8, frame: 19
const closure = function(a0, a1) {
var env0_0 = a1;
@@ -6,39 +9,54 @@ function _fun81014(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let env0_0 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/GiftingBadgeConstants.tsx');
let env0_0 = (BadgeDirectoryStoreModule).getSingleRequirementThreshold;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftingBadgeConstants.tsx');
exports.getTierForProgress = function(a0, a1) {
var env0_0 = a1;
return a0.reduce(_fun81018, null);
};
exports.getNextTierForProgress = closure;
exports.getRemainingGiftsToNextTier = getRemainingGiftsToNextTier;
function getNextTierForProgress(a0, a1) { // fn#81015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:136, offset: 0x01e95773, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require >= value4 ? value : value == null || value4 < getSingleRequirementThreshold(value) ? value2 : value;
}, null);
function _fun81016(a0, a1) { // fn#81016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:190, offset: 0x01e95796, size: 61 bytes, params: 3, frame: 15
const value = a0;
const value2 = a1;
const singleRequirementThreshold = getSingleRequirementThreshold(value2);
return require >= singleRequirementThreshold ? value : value == null || singleRequirementThreshold < getSingleRequirementThreshold(value) ? value2 : value;
}
}
function getTierForProgress(a0, a1) { // fn#81017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:355, offset: 0x01e957d3, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require < value4 ? value : value == null || value4 > getSingleRequirementThreshold(value) ? value2 : value;
}, null);
function _fun81018(a0, a1) { // fn#81018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:405, offset: 0x01e957f6, size: 61 bytes, params: 3, frame: 15
const value = a0;
const value2 = a1;
const singleRequirementThreshold = getSingleRequirementThreshold(value2);
return require < singleRequirementThreshold ? value : value == null || singleRequirementThreshold > getSingleRequirementThreshold(value) ? value2 : value;
}
}
function getRemainingGiftsToNextTier(a0, a1) { // fn#81019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:544, offset: 0x01e95833, size: 45 bytes, params: 3, frame: 15
const nextTierForProgress = getNextTierForProgress(a0, a1);
const value3 = null;
return value3 == nextTierForProgress ? value3 : getSingleRequirementThreshold(nextTierForProgress) - a1;
}
}
function getNextTierForProgress(a0, a1) { // fn#81015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:136, offset: 0x01e95773, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require >= value4 ? value : value == null || value4 < getSingleRequirementThreshold(value) ? value2 : value;
}, null);
}
function getTierForProgress(a0, a1) { // fn#81017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:355, offset: 0x01e957d3, size: 35 bytes, params: 3, frame: 13
const env0_0 = a1;
return a0.reduce(function(a0, a1) {
var value = a0;
var value2 = a1;
var value4 = getSingleRequirementThreshold(value2);
return require < value4 ? value : value == null || value4 > getSingleRequirementThreshold(value) ? value2 : value;
}, null);
}
function getRemainingGiftsToNextTier(a0, a1) { // fn#81019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10655:544, offset: 0x01e95833, size: 45 bytes, params: 3, frame: 15
const nextTierForProgress = getNextTierForProgress(a0, a1);
const value3 = null;
return value3 == nextTierForProgress ? value3 : getSingleRequirementThreshold(nextTierForProgress) - a1;
}
global.__d(_fun81014, 10469, [7670, 2]) /* metro module 10469, dependencies: [7670, 2] */;
@@ -1,24 +1,28 @@
/* Metro module 2322; source: modules/premium/gifting/GiftingBadgeTier.messages.js; dependencies: [1247, 2323, 1282, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22980(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2449:6, offset: 0x00f08440, size: 155 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {};
object2['en-US'] = _fun22981;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/GiftingBadgeTier.messages.js');
object = {};
object['en-US'] = _fun22981;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftingBadgeTier.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function _fun22981() { // fn#22981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2449:107, offset: 0x00f084db, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2323) /* metro dependency 2323 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function _fun22981() { // fn#22981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2449:107, offset: 0x00f084db, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2323) /* metro dependency 2323 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22980, 2322, [1247, 2323, 1282, 2]) /* metro module 2322, dependencies: [1247, 2323, 1282, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2288; source: modules/premium/gifting/PremiumGifting.messages.js; dependencies: [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 1282, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22822(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:6, offset: 0x00f06838, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_22823, cs: cs_22825, da: da_22827, de: de_22829, el: el_22831};
object2['en-GB'] = _fun22833;
object2['es-419'] = _fun22835;
object2['es-ES'] = _fun22837;
object2.fi = fi_22839;
object2.fr = fr_22841;
object2.hi = hi_22843;
object2.hr = hr_22845;
object2.hu = hu_22847;
object2.it = it_22849;
object2.ja = ja_22851;
object2.ko = ko_22853;
object2.lt = lt_22855;
object2.nl = nl_22857;
object2.no = no_22859;
object2.pl = pl_22861;
object2['pt-BR'] = _fun22863;
object2.ro = ro_22865;
object2.ru = ru_22867;
object2['sv-SE'] = _fun22869;
object2.th = th_22871;
object2.tr = tr_22873;
object2.uk = uk_22875;
object2.vi = vi_22877;
object2['zh-CN'] = _fun22879;
object2['zh-TW'] = _fun22881;
object2['en-US'] = _fun22883;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/PremiumGifting.messages.js');
object = {bg: bg_22823, cs: cs_22825, da: da_22827, de: de_22829, el: el_22831};
object['en-GB'] = _fun22833;
object['es-419'] = _fun22835;
object['es-ES'] = _fun22837;
object.fi = fi_22839;
object.fr = fr_22841;
object.hi = hi_22843;
object.hr = hr_22845;
object.hu = hu_22847;
object.it = it_22849;
object.ja = ja_22851;
object.ko = ko_22853;
object.lt = lt_22855;
object.nl = nl_22857;
object.no = no_22859;
object.pl = pl_22861;
object['pt-BR'] = _fun22863;
object.ro = ro_22865;
object.ru = ru_22867;
object['sv-SE'] = _fun22869;
object.th = th_22871;
object.tr = tr_22873;
object.uk = uk_22875;
object.vi = vi_22877;
object['zh-CN'] = _fun22879;
object['zh-TW'] = _fun22881;
object['en-US'] = _fun22883;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/PremiumGifting.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_22823() { // fn#22823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:102, offset: 0x00f069fd, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2289) /* metro dependency 2289 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22825() { // fn#22825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:165, offset: 0x00f06a3e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2290) /* metro dependency 2290 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22827() { // fn#22827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:228, offset: 0x00f06a7f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2291) /* metro dependency 2291 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22829() { // fn#22829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:291, offset: 0x00f06ac0, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2292) /* metro dependency 2292 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22831() { // fn#22831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:354, offset: 0x00f06b01, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2293) /* metro dependency 2293 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22833() { // fn#22833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:422, offset: 0x00f06b42, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2294) /* metro dependency 2294 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22835() { // fn#22835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:491, offset: 0x00f06b83, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2295) /* metro dependency 2295 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22837() { // fn#22837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:559, offset: 0x00f06bc4, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2296) /* metro dependency 2296 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22839() { // fn#22839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:622, offset: 0x00f06c05, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2297) /* metro dependency 2297 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22841() { // fn#22841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:685, offset: 0x00f06c46, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2298) /* metro dependency 2298 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22843() { // fn#22843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:749, offset: 0x00f06c87, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2299) /* metro dependency 2299 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22845() { // fn#22845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:813, offset: 0x00f06cc8, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2300) /* metro dependency 2300 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22847() { // fn#22847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:877, offset: 0x00f06d09, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2301) /* metro dependency 2301 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22849() { // fn#22849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:941, offset: 0x00f06d4a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2302) /* metro dependency 2302 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22851() { // fn#22851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1005, offset: 0x00f06d8b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2303) /* metro dependency 2303 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22853() { // fn#22853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1069, offset: 0x00f06dcc, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2304) /* metro dependency 2304 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22855() { // fn#22855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1133, offset: 0x00f06e0d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2305) /* metro dependency 2305 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22857() { // fn#22857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1197, offset: 0x00f06e4e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2306) /* metro dependency 2306 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22859() { // fn#22859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1261, offset: 0x00f06e8f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2307) /* metro dependency 2307 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22861() { // fn#22861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1325, offset: 0x00f06ed0, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2308) /* metro dependency 2308 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22863() { // fn#22863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1394, offset: 0x00f06f11, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2309) /* metro dependency 2309 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22865() { // fn#22865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1458, offset: 0x00f06f52, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2310) /* metro dependency 2310 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22867() { // fn#22867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1522, offset: 0x00f06f93, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2311) /* metro dependency 2311 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22869() { // fn#22869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1591, offset: 0x00f06fd4, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2312) /* metro dependency 2312 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22871() { // fn#22871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1655, offset: 0x00f07015, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2313) /* metro dependency 2313 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22873() { // fn#22873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1719, offset: 0x00f07056, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2314) /* metro dependency 2314 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22875() { // fn#22875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1783, offset: 0x00f07097, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2315) /* metro dependency 2315 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22877() { // fn#22877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1847, offset: 0x00f070d8, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2316) /* metro dependency 2316 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22879() { // fn#22879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1916, offset: 0x00f07119, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2317) /* metro dependency 2317 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22881() { // fn#22881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1985, offset: 0x00f0715a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2318) /* metro dependency 2318 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22883() { // fn#22883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:2054, offset: 0x00f0719b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2319) /* metro dependency 2319 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_22823() { // fn#22823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:102, offset: 0x00f069fd, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2289) /* metro dependency 2289 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22825() { // fn#22825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:165, offset: 0x00f06a3e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2290) /* metro dependency 2290 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22827() { // fn#22827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:228, offset: 0x00f06a7f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2291) /* metro dependency 2291 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22829() { // fn#22829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:291, offset: 0x00f06ac0, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2292) /* metro dependency 2292 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22831() { // fn#22831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:354, offset: 0x00f06b01, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2293) /* metro dependency 2293 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22833() { // fn#22833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:422, offset: 0x00f06b42, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2294) /* metro dependency 2294 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22835() { // fn#22835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:491, offset: 0x00f06b83, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2295) /* metro dependency 2295 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22837() { // fn#22837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:559, offset: 0x00f06bc4, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2296) /* metro dependency 2296 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22839() { // fn#22839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:622, offset: 0x00f06c05, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2297) /* metro dependency 2297 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22841() { // fn#22841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:685, offset: 0x00f06c46, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2298) /* metro dependency 2298 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22843() { // fn#22843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:749, offset: 0x00f06c87, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2299) /* metro dependency 2299 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22845() { // fn#22845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:813, offset: 0x00f06cc8, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2300) /* metro dependency 2300 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22847() { // fn#22847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:877, offset: 0x00f06d09, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2301) /* metro dependency 2301 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22849() { // fn#22849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:941, offset: 0x00f06d4a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2302) /* metro dependency 2302 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22851() { // fn#22851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1005, offset: 0x00f06d8b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2303) /* metro dependency 2303 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22853() { // fn#22853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1069, offset: 0x00f06dcc, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2304) /* metro dependency 2304 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22855() { // fn#22855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1133, offset: 0x00f06e0d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2305) /* metro dependency 2305 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22857() { // fn#22857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1197, offset: 0x00f06e4e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2306) /* metro dependency 2306 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22859() { // fn#22859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1261, offset: 0x00f06e8f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2307) /* metro dependency 2307 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22861() { // fn#22861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1325, offset: 0x00f06ed0, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2308) /* metro dependency 2308 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22863() { // fn#22863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1394, offset: 0x00f06f11, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2309) /* metro dependency 2309 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22865() { // fn#22865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1458, offset: 0x00f06f52, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2310) /* metro dependency 2310 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22867() { // fn#22867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1522, offset: 0x00f06f93, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2311) /* metro dependency 2311 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22869() { // fn#22869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1591, offset: 0x00f06fd4, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2312) /* metro dependency 2312 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22871() { // fn#22871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1655, offset: 0x00f07015, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2313) /* metro dependency 2313 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22873() { // fn#22873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1719, offset: 0x00f07056, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2314) /* metro dependency 2314 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22875() { // fn#22875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1783, offset: 0x00f07097, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2315) /* metro dependency 2315 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22877() { // fn#22877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1847, offset: 0x00f070d8, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2316) /* metro dependency 2316 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22879() { // fn#22879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1916, offset: 0x00f07119, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2317) /* metro dependency 2317 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22881() { // fn#22881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:1985, offset: 0x00f0715a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2318) /* metro dependency 2318 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22883() { // fn#22883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2415:2054, offset: 0x00f0719b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2319) /* metro dependency 2319 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22822, 2288, [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301,
2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319,
1282,
2]) /* metro module 2288, dependencies: [1247, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2319, 1282, 2] */;
@@ -1,40 +1,43 @@
/* Metro module 12159; source: modules/premium/gifting/PremiumGiftingConstants.tsx; dependencies: [1880, 2288, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun93252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12345:6, offset: 0x020ac83a, size: 440 bytes, params: 8, frame: 20
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PremiumGiftStyles = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumGiftStyles;
object2 = {};
const PremiumGiftStyles = (PremiumConstantsModule).PremiumGiftStyles;
object = {};
const SNOWGLOBE = PremiumGiftStyles.SNOWGLOBE;
const M6cPwB = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).M6cPwB;
object2[SNOWGLOBE] = M6cPwB;
object[SNOWGLOBE] = M6cPwB;
const BOX = PremiumGiftStyles.BOX;
const B9XqQk = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).B9XqQk;
object2[BOX] = B9XqQk;
object[BOX] = B9XqQk;
const CUP = PremiumGiftStyles.CUP;
object2[CUP] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['6dCq/u'];
object[CUP] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['6dCq/u'];
const STANDARD_BOX = PremiumGiftStyles.STANDARD_BOX;
const GzPel1 = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).GzPel1;
object2[STANDARD_BOX] = GzPel1;
object[STANDARD_BOX] = GzPel1;
const CAKE = PremiumGiftStyles.CAKE;
const AJ4iir = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).AJ4iir;
object2[CAKE] = AJ4iir;
object[CAKE] = AJ4iir;
const CHEST = PremiumGiftStyles.CHEST;
const P5keo3 = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).P5keo3;
object2[CHEST] = P5keo3;
object[CHEST] = P5keo3;
const COFFEE = PremiumGiftStyles.COFFEE;
object2[COFFEE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).w84vET;
object[COFFEE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).w84vET;
const SEASONAL_STANDARD_BOX = PremiumGiftStyles.SEASONAL_STANDARD_BOX;
object2[SEASONAL_STANDARD_BOX] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['vd1fu/'];
object[SEASONAL_STANDARD_BOX] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['vd1fu/'];
const SEASONAL_CAKE = PremiumGiftStyles.SEASONAL_CAKE;
object2[SEASONAL_CAKE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).aubYGR;
object[SEASONAL_CAKE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).aubYGR;
const SEASONAL_CHEST = PremiumGiftStyles.SEASONAL_CHEST;
object2[SEASONAL_CHEST] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).vjxYqU;
object[SEASONAL_CHEST] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).vjxYqU;
const SEASONAL_COFFEE = PremiumGiftStyles.SEASONAL_COFFEE;
object2[SEASONAL_COFFEE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).bHuJLa;
object[SEASONAL_COFFEE] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */).bHuJLa;
const NITROWEEN_STANDARD = PremiumGiftStyles.NITROWEEN_STANDARD;
object2[NITROWEEN_STANDARD] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['+HMF8k'];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/PremiumGiftingConstants.tsx');
exports.GIFT_STYLE_DESCRIPTIONS = object2;
object[NITROWEEN_STANDARD] = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['+HMF8k'];
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/PremiumGiftingConstants.tsx');
exports.GIFT_STYLE_DESCRIPTIONS = object;
}
global.__d(_fun93252, 12159, [1880, 2288, 2]) /* metro module 12159, dependencies: [1880, 2288, 2] */;
@@ -1,76 +1,82 @@
/* Metro module 7677; source: modules/premium/gifting/PremiumGiftingIntentActionCreators.tsx; dependencies: [1226, 661, 507, 694, 2] */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun61337(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:6, offset: 0x01b3bb64, size: 203 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/PremiumGiftingIntentActionCreators.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/PremiumGiftingIntentActionCreators.tsx');
exports.fetchAndReconcileGiftIntentDismissals = fetchAndReconcileGiftIntentDismissals;
exports.logFriendsListGiftIntentsShown = logFriendsListGiftIntentsShown;
exports.logMessageGiftIntentShown = logMessageGiftIntentShown;
exports.logGiftIntentFlowPurchasedGift = logGiftIntentFlowPurchasedGift;
exports.logGiftIntentUnreadNotificationDismiss = logGiftIntentUnreadNotificationDismiss;
exports.logProfilePopoutGiftIntentsDismiss = logProfilePopoutGiftIntentsDismiss;
}
function fetchAndReconcileGiftIntentDismissals(a0) { // fn#61338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:262, offset: 0x01b3bc2f, size: 116 bytes, params: 2, frame: 14
const env0_0 = a0;
const env0_1 = AuthenticationStore.getId();
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const GIFT_INTENT_DISMISSALS = Endpoints.GIFT_INTENT_DISMISSALS;
return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true,
url: GIFT_INTENT_DISMISSALS}]).then(_fun61339, _fun61341);
function _fun61339(a0) { // fn#61339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:426, offset: 0x01b3bca3, size: 177 bytes, params: 2, frame: 15
var environment;
var dispatch;
var object;
let value = environment.__proto__;
if (AuthenticationStore.getId() === env0_1) {
value = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = value.dispatch;
object = {type: 'GIFT_INTENT_DISMISSALS_FETCH_SUCCESS'};
object.dismissals = (a0.body.dismissals ?? []).map(function(a0) {
var object = {targetId: a0.target_id};
var Number = global.Number;
object.dismissedAtMs = Number(a0.dismissed_at_ms);
return object;
});
object.settingsTimestampMs = env0_0;
Reflect.apply(dispatch, value, [object]);
} else {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_INTENT_DISMISSALS_FETCH_FAILURE'});
}
}
function fetchAndReconcileGiftIntentDismissals(a0) { // fn#61338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:262, offset: 0x01b3bc2f, size: 116 bytes, params: 2, frame: 14
const env0_0 = a0;
const env0_1 = AuthenticationStore.getId();
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const GIFT_INTENT_DISMISSALS = Endpoints.GIFT_INTENT_DISMISSALS;
return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true,
url: GIFT_INTENT_DISMISSALS}]).then(_fun61339, _fun61341);
}
function _fun61341() { // fn#61341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:724, offset: 0x01b3bd82, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GIFT_INTENT_DISMISSALS_FETCH_FAILURE'});
}
function logFriendsListGiftIntentsShown() { // fn#61342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:830, offset: 0x01b3bdb3, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRIENDS_LIST_GIFT_INTENTS_SHOWN'});
}
function logMessageGiftIntentShown(a0) { // fn#61343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:960, offset: 0x01b3bde4, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MESSAGE_GIFT_INTENT_SHOWN',
recipientUserId: a0});
}
function logGiftIntentFlowPurchasedGift(a0) { // fn#61344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1103, offset: 0x01b3be1d, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_INTENT_FLOW_PURCHASED_GIFT',
recipientUserId: a0});
}
function logGiftIntentUnreadNotificationDismiss() { // fn#61345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1265, offset: 0x01b3be56, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_UNREAD_NOTIFICATION_DISMISS'});
}
function logProfilePopoutGiftIntentsDismiss(a0) { // fn#61346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1413, offset: 0x01b3be87, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PROFILE_POPOUT_GIFT_INTENTS_DISMISS',
recipientUserId: a0});
}
function _fun61339(a0) { // fn#61339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:426, offset: 0x01b3bca3, size: 177 bytes, params: 2, frame: 15
var environment;
var dispatch;
var object2;
let value = environment.__proto__;
if (AuthenticationStore.getId() === env0_1) {
value = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = value.dispatch;
object2 = {type: 'GIFT_INTENT_DISMISSALS_FETCH_SUCCESS'};
object2.dismissals = (a0.body.dismissals ?? []).map(function(a0) {
var object = {targetId: a0.target_id};
var Number = global.Number;
object.dismissedAtMs = Number(a0.dismissed_at_ms);
return object;
});
object2.settingsTimestampMs = env0_0;
Reflect.apply(dispatch, value, [object2]);
} else {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_INTENT_DISMISSALS_FETCH_FAILURE'});
}
function logFriendsListGiftIntentsShown() { // fn#61342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:830, offset: 0x01b3bdb3, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'FRIENDS_LIST_GIFT_INTENTS_SHOWN'});
}
function logMessageGiftIntentShown(a0) { // fn#61343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:960, offset: 0x01b3bde4, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'MESSAGE_GIFT_INTENT_SHOWN',
recipientUserId: a0});
}
function logGiftIntentFlowPurchasedGift(a0) { // fn#61344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1103, offset: 0x01b3be1d, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'GIFT_INTENT_FLOW_PURCHASED_GIFT',
recipientUserId: a0});
}
function logGiftIntentUnreadNotificationDismiss() { // fn#61345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1265, offset: 0x01b3be56, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'GIFT_UNREAD_NOTIFICATION_DISMISS'});
}
function logProfilePopoutGiftIntentsDismiss(a0) { // fn#61346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:1413, offset: 0x01b3be87, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'PROFILE_POPOUT_GIFT_INTENTS_DISMISS',
recipientUserId: a0});
}
}
function _fun61341() { // fn#61341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7855:724, offset: 0x01b3bd82, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIFT_INTENT_DISMISSALS_FETCH_FAILURE'});
}
global.__d(_fun61337, 7677, [1226, 661, 507, 694,
2]) /* metro module 7677, dependencies: [1226, 661, 507, 694, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,12 +1,16 @@
/* Metro module 7676; source: modules/premium/gifting/experiments/GiftPromotionReminderExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun61336(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7854:6, offset: 0x01b3bacd, size: 151 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-04-gift-promotion-reminder', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/experiments/GiftPromotionReminderExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/experiments/GiftPromotionReminderExperiment.tsx');
exports.default = value;
exports.GiftPromotionReminderExperiment = value;
}
global.__d(_fun61336, 7676, [1854, 2]) /* metro module 7676, dependencies: [1854, 2] */;
@@ -1,12 +1,16 @@
/* Metro module 7633; source: modules/premium/gifting/experiments/GiftingBadgeExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun61142(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7811:6, offset: 0x0171b983, size: 151 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-04-gifting-badge', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/experiments/GiftingBadgeExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/experiments/GiftingBadgeExperiment.tsx');
exports.default = value;
exports.GiftingBadgeExperiment = value;
}
global.__d(_fun61142, 7633, [1854, 2]) /* metro module 7633, dependencies: [1854, 2] */;
@@ -1,14 +1,18 @@
/* Metro module 7672; source: modules/premium/gifting/experiments/NitroGiftPriceCopyExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun61303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7850:6, offset: 0x01b3ac66, size: 195 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-06-nitro-gifting-price-copy-tweaks', 'kind': 'user',
defaultConfig: {'showGiftPrice': true, 'useNewCopy': false, 'monthlyDefaultSelected': false},
variations: {[1]: {'showGiftPrice': false, 'useNewCopy': false, 'monthlyDefaultSelected': false},
[2]: {'showGiftPrice': true, 'useNewCopy': true, 'monthlyDefaultSelected': false}, [3]: {'showGiftPrice': true,
'useNewCopy': true, 'monthlyDefaultSelected': true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/experiments/NitroGiftPriceCopyExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/experiments/NitroGiftPriceCopyExperiment.tsx');
exports.default = value;
}
global.__d(_fun61303, 7672, [1854, 2]) /* metro module 7672, dependencies: [1854, 2] */;
@@ -1,12 +1,15 @@
/* Metro module 7640; source: modules/premium/gifting/hooks/useGiftStyles.tsx; dependencies: [1880, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from '../../PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun61178(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7818:6, offset: 0x0171cf68, size: 107 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumGiftStyles;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/hooks/useGiftStyles.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/hooks/useGiftStyles.tsx');
exports.useGiftStyles = function() {
var STANDARD_BOX = PremiumGiftStyles.STANDARD_BOX;
return [STANDARD_BOX];
};
}
global.__d(_fun61178, 7640, [1880, 2]) /* metro module 7640, dependencies: [1880, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 10464; source: modules/premium/gifting/hooks/useGiftingPromotionConfig.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun80986(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10650:6, offset: 0x01e936c9, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionConfig.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionConfig.tsx');
exports.default = function() {
return null;
};
}
global.__d(_fun80986, 10464, [2]) /* metro module 10464, dependencies: [2] */;
@@ -1,8 +1,10 @@
/* Metro module 10459; source: modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun80956(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10645:6, offset: 0x01e9168c, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/hooks/useGiftingPromotionDefaultSelection.tsx');
exports.useGiftingPromotionDefaultSelectionV2 = function(a0, a1) {
var value = a1;
if (a0 != null) {
@@ -13,3 +15,4 @@ function _fun80956(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun80956, 10459, [2]) /* metro module 10459, dependencies: [2] */;
@@ -1,74 +1,84 @@
/* Metro module 11433; source: modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx; dependencies: [31, 1244, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun87500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:6, offset: 0x01fc0ef7, size: 256 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = function() {
return require(dependencyMap[1]).intl.string(require(dependencyMap[1]).t['7vWJmY']);
};
const closure2 = useGiftIntentExpressionPickerConfig;
const useGiftIntentExpressionPickerConfig2 = useGiftIntentExpressionPickerConfig;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const Set = global.Set;
const set = new Set();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/GiftIntentExpressionPickerState.tsx');
exports.setGiftIntentExpressionPickerConfig = function(a0) {
env0_3 = a0;
emitChange();
};
exports.getGiftIntentCustomMessagePlaceholder = closure;
exports.useGiftIntentExpressionPickerConfig = closure2;
exports.useGiftIntentExpressionPickerConfig = useGiftIntentExpressionPickerConfig2;
exports.clearGiftIntentExpressionPickerConfig = clearGiftIntentExpressionPickerConfig;
exports.useGiftIntentExpressionPickerActive = useGiftIntentExpressionPickerActive;
exports.useGiftIntentExpressionPickerPlaceholder = useGiftIntentExpressionPickerPlaceholder;
}
function emitChange() { // fn#87501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:123, offset: 0x01fc0ff7, size: 30 bytes, params: 1, frame: 11
env0_4.forEach(function(a0) {
return a0();
});
}
function subscribe_87503(a0) { // fn#87503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:165, offset: 0x01fc1015, size: 35 bytes, params: 2, frame: 12
const env0_0 = a0;
env0_4.add(a0);
return _fun87504;
}
function useGiftIntentExpressionPickerConfig(a0) { // fn#87507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:380, offset: 0x01fc1092, size: 67 bytes, params: 2, frame: 16
const binding = env0_2;
const useSyncExternalStore = binding.useSyncExternalStore;
const subscribe_87503Binding = subscribe_87503;
const getGiftIntentExpressionPickerConfigSnapshotBinding = getGiftIntentExpressionPickerConfigSnapshot;
const value = Reflect.apply(useSyncExternalStore, binding, [subscribe_87503Binding,
getGiftIntentExpressionPickerConfigSnapshotBinding, getGiftIntentExpressionPickerConfigSnapshotBinding]);
const value2 = null;
return value2 == a0 || (value2 == value ? undefined : value.channelId) !== a0 ? value2 : value;
}
function clearGiftIntentExpressionPickerConfig(a0) { // fn#87509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1008, offset: 0x01fc10eb, size: 61 bytes, params: 2, frame: 13
var r0;
var binding;
let value = a0 != null;
if (value) {
binding = env0_3;
value = undefined;
value = (binding == null ? value : binding.channelId) !== a0;
r0 = value;
} else {
r0 = value;
function emitChange() { // fn#87501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:123, offset: 0x01fc0ff7, size: 30 bytes, params: 1, frame: 11
env0_4.forEach(function(a0) {
return a0();
});
}
if (!r0) {
emitChange();
function subscribe_87503(a0) { // fn#87503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:165, offset: 0x01fc1015, size: 35 bytes, params: 2, frame: 12
const env0_0 = a0;
env0_4.add(a0);
return _fun87504;
function _fun87504() { // fn#87504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:203, offset: 0x01fc1038, size: 26 bytes, params: 1, frame: 11
return env1_4.delete(env0_0);
}
}
function getGiftIntentExpressionPickerConfigSnapshot() { // fn#87505, offset: 0x00c7c381, size: 9 bytes, params: 1, frame: 1
return env0_3;
}
function useGiftIntentExpressionPickerConfig(a0) { // fn#87507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:380, offset: 0x01fc1092, size: 67 bytes, params: 2, frame: 16
const useSyncExternalStore = ReactModule.useSyncExternalStore;
const subscribe_87503Binding = subscribe_87503;
const getGiftIntentExpressionPickerConfigSnapshotBinding = getGiftIntentExpressionPickerConfigSnapshot;
const value = Reflect.apply(useSyncExternalStore, ReactModule, [subscribe_87503Binding,
getGiftIntentExpressionPickerConfigSnapshotBinding, getGiftIntentExpressionPickerConfigSnapshotBinding]);
const value2 = null;
return value2 == a0 || (value2 == value ? undefined : value.channelId) !== a0 ? value2 : value;
}
function clearGiftIntentExpressionPickerConfig(a0) { // fn#87509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1008, offset: 0x01fc10eb, size: 61 bytes, params: 2, frame: 13
var r0;
var binding;
let value = a0 != null;
if (value) {
binding = env0_3;
value = undefined;
value = (binding == null ? value : binding.channelId) !== a0;
r0 = value;
} else {
r0 = value;
}
if (!r0) {
emitChange();
}
}
function useGiftIntentExpressionPickerActive(a0) { // fn#87510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1172, offset: 0x0102b252, size: 25 bytes, params: 2, frame: 11
return useGiftIntentExpressionPickerConfig(a0) != null;
}
function useGiftIntentExpressionPickerPlaceholder(a0) { // fn#87511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1316, offset: 0x01fc1128, size: 36 bytes, params: 2, frame: 12
const value2 = useGiftIntentExpressionPickerConfig(a0);
const value3 = null;
return value3 == value2 ? value3 : getGiftIntentCustomMessagePlaceholder();
}
}
function useGiftIntentExpressionPickerPlaceholder(a0) { // fn#87511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:1316, offset: 0x01fc1128, size: 36 bytes, params: 2, frame: 12
const value2 = useGiftIntentExpressionPickerConfig(a0);
const value3 = null;
return value3 == value2 ? value3 : getGiftIntentCustomMessagePlaceholder();
}
function _fun87504() { // fn#87504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11619:203, offset: 0x01fc1038, size: 26 bytes, params: 1, frame: 11
return env1_4.delete(env0_0);
}
global.__d(_fun87500, 11433, [31, 1244, 2]) /* metro module 11433, dependencies: [31, 1244, 2] */;
@@ -1,113 +1,156 @@
/* Metro module 10387; source: modules/premium/gifting/native/GiftingBadgeInfoActionSheet.tsx; dependencies: [31, 27, 4502, 7670, 661, 33, 4501, 697, 1585, 566, 7635, 683, 6275, 4573, 1244, 2320, 10388, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import BadgeDirectoryStore from '../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as BadgeDirectoryStoreModule from '../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun80468(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:6, offset: 0x01e7c2a7, size: 519 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const badgeDirectoryStore = importDefault(7670) /* metro dependency 7670: BadgeDirectoryStore */;
const env0_7 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {alignItems: 'center'};
object = {};
const object2 = {alignItems: 'center'};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingTop = PX_16;
object2.paddingTop = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object3.container = object4;
object2.paddingHorizontal = PX_16;
object.container = object2;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.title = {textAlign: 'center', marginBottom: PX_8};
object.title = {textAlign: 'center', marginBottom: PX_8};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.description = {textAlign: 'center', marginBottom: PX_16};
object.description = {textAlign: 'center', marginBottom: PX_16};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.tierCards = {'flexDirection': 'row', 'flexWrap': 'wrap', rowGap: PX_8};
object.tierCards = {'flexDirection': 'row', 'flexWrap': 'wrap', rowGap: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.tierCard = {'width': '33.33%', 'alignItems': 'center', padding: PX_8};
object.tierCard = {'width': '33.33%', 'alignItems': 'center', padding: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.iconWrapper = {paddingVertical: PX_8};
const env0_11 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/GiftingBadgeInfoActionSheet.tsx');
object.iconWrapper = {paddingVertical: PX_8};
const env0_11 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/GiftingBadgeInfoActionSheet.tsx');
exports.default = GiftingBadgeInfoActionSheet;
}
function GiftingBadgeInfoActionSheet() { // fn#80469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:788, offset: 0x01e7c4ae, size: 555 bytes, params: 1, frame: 30
const value2 = undefined;
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const badgeById = (require(566) /* metro dependency 566: flux */).useStateFromStores([BadgeDirectoryStore],
function() {
return BadgeDirectoryStore.getBadgeById(require(dependencyMap[10]).BadgeId.GIFTING);
});
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.useReducedMotion;
});
env0_3.useEffect(function() {
importDefault(dependencyMap[11]).track(AnalyticEvents.GIFTING_BADGE_INFO_ACTION_SHEET_OPENED);
}, []);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const items3 = [styles.container];
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
items3[1] = {paddingBottom: bottom + PX_16};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const items2 = [<Text style={styles.title} variant="heading-xl/semibold" color="text-strong" accessibilityRole="header">{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['0MB2C6'])}</Text>];
items2[1] = <Text style={styles.description} variant="text-md/medium" color="text-default">{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).k9sNVH)}</Text>;
items2[2] = <View style={styles.tierCards}>{badgeById == null || badgeById.tiers == null ? value2 : badgeById.tiers.map(_fun80473)}</View>;
return (
<BottomSheet scrollable={false} startExpanded>
<View style={items3}>
{items2}
function GiftingBadgeInfoActionSheet() { // fn#80469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:788, offset: 0x01e7c4ae, size: 555 bytes, params: 1, frame: 30
const value2 = undefined;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const badgeById = (require(566) /* metro dependency 566: flux */).useStateFromStores([BadgeDirectoryStore],
function() {
return BadgeDirectoryStore.getBadgeById(require(dependencyMap[10]).BadgeId.GIFTING);
});
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return AccessibilityStore.useReducedMotion;
});
ReactModule.useEffect(function() {
importDefault(dependencyMap[11]).track(AnalyticEvents.GIFTING_BADGE_INFO_ACTION_SHEET_OPENED);
}, []);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const items3 = [styles.container];
const PX_16 = (Native).space.PX_16;
items3[1] = {paddingBottom: bottom + PX_16};
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const items2 = [
<Text
style={styles.title}
variant="heading-xl/semibold"
color="text-strong"
accessibilityRole="header"
>
{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['0MB2C6'])}
</Text>,
];
items2[1] = (
<Text
style={styles.description}
variant="text-md/medium"
color="text-default"
>
{intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).k9sNVH)}
</Text>
);
items2[2] = (
<View style={styles.tierCards}>
{badgeById == null || badgeById.tiers == null ? value2 : badgeById.tiers.map(_fun80473)}
</View>
</BottomSheet>
);
}
);
return (
<BottomSheet scrollable={false} startExpanded>
<View style={items3}>
{items2}
</View>
</BottomSheet>
);
function _fun80473(a0) { // fn#80473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:1588, offset: 0x01e7c73e, size: 391 bytes, params: 2, frame: 26
var r13;
var r7;
var r6;
var intl;
var value;
if (useReducedMotion) {
r13 = a0.complex_icon_static_url ?? a0.simple_icon_url;
} else {
r13 = a0.complex_icon_animated_url ?? a0.complex_icon_static_url;
r13 = r13 ?? a0.simple_icon_url;
}
const singleRequirementThreshold = getSingleRequirementThreshold(a0);
const value4 = r13 != null;
if (value4) {
var viewBinding2Props = {style: styles.iconWrapper};
value = importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */;
value = (
<View {...viewBinding2Props}>
{((Component) => <Component icon={r13} size={58} />)(value)}
</View>
);
r7 = value;
} else {
r7 = value4;
}
const items2 = [r7];
const Text = (TextModule).Text;
items2[1] = (
<Text variant="text-lg/semibold" color="text-strong">
{a0.name}
</Text>
);
value = singleRequirementThreshold != null;
if (value) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r6 = (
<Text variant="text-md/normal" color="text-subtle">
{intl.formatToPlainString((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).qvx9E4,
{count: singleRequirementThreshold})}
</Text>
);
} else {
r6 = value;
}
items2[2] = r6;
return (
<View style={styles.tierCard} key={a0.key}>
{items2}
</View>
);
}
function _fun80473(a0) { // fn#80473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10573:1588, offset: 0x01e7c73e, size: 391 bytes, params: 2, frame: 26
var r13;
var r7;
var r6;
var intl;
var value;
if (useReducedMotion) {
r13 = a0.complex_icon_static_url ?? a0.simple_icon_url;
} else {
r13 = a0.complex_icon_animated_url ?? a0.complex_icon_static_url;
r13 = r13 ?? a0.simple_icon_url;
}
const singleRequirementThreshold = getSingleRequirementThreshold(a0);
const value4 = r13 != null;
if (value4) {
var viewBinding2Props = {style: styles.iconWrapper};
value = importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */;
value = <View {...viewBinding2Props}>{((Component) => <Component icon={r13} size={58} />)(value)}</View>;
r7 = value;
} else {
r7 = value4;
}
const items2 = [r7];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text variant="text-lg/semibold" color="text-strong">{a0.name}</Text>;
value = singleRequirementThreshold != null;
if (value) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r6 = <Text variant="text-md/normal" color="text-subtle">{intl.formatToPlainString((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).qvx9E4,
{count: singleRequirementThreshold})}</Text>;
} else {
r6 = value;
}
items2[2] = r6;
return (
<View style={styles.tierCard} key={a0.key}>
{items2}
</View>
);
}
global.__d(_fun80468, 10387, [31, 27, 4502, 7670, 661, 33, 4501, 697, 1585, 566, 7635, 683, 6275, 4573, 1244, 2320,
10388,
2]) /* metro module 10387, dependencies: [31, 27, 4502, 7670, 661, 33, 4501, 697, 1585, 566, 7635, 683, 6275, 4573, 1244, 2320, 10388, 2] */;
@@ -1,11 +1,15 @@
/* Metro module 13896; source: modules/premium/gifting/native/MobileFriendAnniversaryExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun105573(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14093:6, offset: 0x022bcfe3, size: 145 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-06-mobile-friendship-anniversary', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/MobileFriendAnniversaryExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/MobileFriendAnniversaryExperiment.tsx');
exports.default = value;
}
global.__d(_fun105573, 13896, [1854, 2]) /* metro module 13896, dependencies: [1854, 2] */;
@@ -1,16 +1,20 @@
/* Metro module 10392; source: modules/premium/gifting/native/hooks/useShouldShowGiftingPromotionDeco.tsx; dependencies: [1880, 7669, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from '../../../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as NativeGiftContextModule from '../../../../payments/native/NativeGiftContext.tsx'; /* Metro dependency 7669 */
function _fun80487(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10578:6, offset: 0x01e7d90c, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/hooks/useShouldShowGiftingPromotionDeco.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/hooks/useShouldShowGiftingPromotionDeco.tsx');
exports.default = useShouldShowGiftingPromotionDeco;
function useShouldShowGiftingPromotionDeco(a0) { // fn#80488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10578:237, offset: 0x01e7d981, size: 112 bytes, params: 2, frame: 14
const value2 = (NativeGiftContextModule).useNativeGiftContext();
const claimableRewards = value2.claimableRewards;
return claimableRewards != null && claimableRewards.length > 0 && (a0 != null ? a0 === PremiumTypes.TIER_2 : value2.premiumType === PremiumTypes.TIER_2);
}
}
function useShouldShowGiftingPromotionDeco(a0) { // fn#80488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10578:237, offset: 0x01e7d981, size: 112 bytes, params: 2, frame: 14
const value2 = (require(7669) /* metro dependency 7669: NativeGiftContext */).useNativeGiftContext();
const claimableRewards = value2.claimableRewards;
return claimableRewards != null && claimableRewards.length > 0 && (a0 != null ? a0 === PremiumTypes.TIER_2 : value2.premiumType === PremiumTypes.TIER_2);
}
global.__d(_fun80487, 10392, [1880, 7669, 2]) /* metro module 10392, dependencies: [1880, 7669, 2] */;
@@ -1,17 +1,20 @@
/* Metro module 10386; source: modules/premium/gifting/native/openGiftingBadgeInfoActionSheet.tsx; dependencies: [4080, 10387, 1962, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun80466(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10572:6, offset: 0x01e7c1f2, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/openGiftingBadgeInfoActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/openGiftingBadgeInfoActionSheet.tsx');
exports.default = openGiftingBadgeInfoActionSheet;
function openGiftingBadgeInfoActionSheet() { // fn#80467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10572:202, offset: 0x01e7c259, size: 78 bytes, params: 1, frame: 15
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'GiftingBadgeInfoActionSheet']);
}
}
function openGiftingBadgeInfoActionSheet() { // fn#80467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10572:202, offset: 0x01e7c259, size: 78 bytes, params: 1, frame: 15
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'GiftingBadgeInfoActionSheet']);
}
global.__d(_fun80466, 10386, [4080, 10387, 1962, 2]) /* metro module 10386, dependencies: [4080, 10387, 1962, 2] */;
@@ -1,15 +1,19 @@
/* Metro module 10388; source: modules/premium/gifting/native/views/GiftingBadgeIcon.tsx; dependencies: [31, 27, 33, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun80474(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10574:6, offset: 0x01e7c8c5, size: 145 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_0 = (require(27) /* metro dependency 27 */).Image;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeIcon.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeIcon.tsx');
exports.default = GiftingBadgeIcon;
function GiftingBadgeIcon({icon, size, style}) { // fn#80475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10574:235, offset: 0x01e7c956, size: 77 bytes, params: 2, frame: 16
return <Image source={{uri: icon}} style={[{width: size, height: size}, style]} />;
}
}
function GiftingBadgeIcon({icon, size, style}) { // fn#80475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10574:235, offset: 0x01e7c956, size: 77 bytes, params: 2, frame: 16
return <Image source={{uri: icon}} style={[{width: size, height: size}, style]} />;
}
global.__d(_fun80474, 10388, [31, 27, 33, 2]) /* metro module 10388, dependencies: [31, 27, 33, 2] */;
@@ -1,60 +1,78 @@
/* Metro module 10471; source: modules/premium/gifting/native/views/GiftingBadgeLevelUpProgress.tsx; dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */
import GiftingBadgeMessages from '../../GiftingBadge.messages.js'; /* Metro dependency 2320 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BadgeDirectoryStoreModule from '../../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun81023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10657:6, offset: 0x01e95d44, size: 453 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.container = {gap: PX_4, width: '100%'};
object.container = {gap: PX_4, width: '100%'};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.barRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
const object3 = {'flex': 1, 'height': 6, 'borderRadius': null, 'backgroundColor': null, 'overflow': 'hidden'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.barRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
const object4 = {'flex': 1, 'height': 6, 'borderRadius': null, 'backgroundColor': null, 'overflow': 'hidden'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object3.backgroundColor = BACKGROUND_MOD_NORMAL;
object2.progressBarTrack = object3;
const object6 = {height: 6};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object4.backgroundColor = BACKGROUND_MOD_NORMAL;
object.progressBarTrack = object4;
const object5 = {height: 6};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object6.backgroundColor = BACKGROUND_BRAND;
object2.progressBarFill = object6;
object2.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end'};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeLevelUpProgress.tsx');
object5.backgroundColor = BACKGROUND_BRAND;
object.progressBarFill = object5;
object.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end'};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeLevelUpProgress.tsx');
exports.default = GiftingBadgeLevelUpProgress;
}
function GiftingBadgeLevelUpProgress({progress, currentTier, newTier, style}) { // fn#81024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10657:747, offset: 0x01e95f09, size: 568 bytes, params: 2, frame: 31
const styles = useStyles();
const singleRequirementThreshold = getSingleRequirementThreshold(newTier);
const r21 = singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
const items3 = [styles.container, style];
const items2 = [currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)];
items2[1] = <View style={styles.progressBarTrack}><View style={[styles.progressBarFill,
{width: '' + r21 + '%'}]} /></View>;
items2[2] = newTier.simple_icon_url != null && ((Component) => <Component icon={newTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
const view = <View style={styles.barRow}>{items2}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={items3}>
{view}
<View style={styles.labels}>
<Text variant="text-xs/normal" color="text-muted">
{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).iIpfQe,
{count: progress, threshold: singleRequirementThreshold})}
</Text>
function GiftingBadgeLevelUpProgress({progress, currentTier, newTier, style}) { // fn#81024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10657:747, offset: 0x01e95f09, size: 568 bytes, params: 2, frame: 31
const styles = useStyles();
const singleRequirementThreshold = getSingleRequirementThreshold(newTier);
const r21 = singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
const items3 = [styles.container, style];
const items2 = [
currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */),
];
items2[1] = (
<View style={styles.progressBarTrack}>
<View style={[styles.progressBarFill, {width: '' + r21 + '%'}]} />
</View>
</View>
);
);
items2[2] = newTier.simple_icon_url != null && ((Component) => <Component icon={newTier.simple_icon_url} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
const view = (
<View style={styles.barRow}>
{items2}
</View>
);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<View style={items3}>
{view}
<View style={styles.labels}>
<Text variant="text-xs/normal" color="text-muted">
{intl.format((GiftingBadgeMessages).iIpfQe,
{count: progress, threshold: singleRequirementThreshold})}
</Text>
</View>
</View>
);
}
}
global.__d(_fun81023, 10471, [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320,
2]) /* metro module 10471, dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */;
@@ -1,87 +1,109 @@
/* Metro module 10470; source: modules/premium/gifting/native/views/GiftingBadgeProgress.tsx; dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BadgeDirectoryStoreModule from '../../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
function _fun81020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:6, offset: 0x01e95860, size: 501 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(7670) /* metro dependency 7670: BadgeDirectoryStore */).getSingleRequirementThreshold;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {'flexDirection': 'row', 'alignItems': 'center', padding: PX_16};
const object6 = {flex: 1};
object.container = {'flexDirection': 'row', 'alignItems': 'center', padding: PX_16};
const object3 = {flex: 1};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.paddingHorizontal = PX_8;
object3.paddingHorizontal = PX_8;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object6.gap = PX_4;
object2.content = object6;
const object7 = {height: 6};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object3.gap = PX_4;
object.content = object3;
const object4 = {height: 6};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object7.backgroundColor = BACKGROUND_MOD_NORMAL;
object7.overflow = 'hidden';
object2.progressBarTrack = object7;
const object8 = {height: 6};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object4.backgroundColor = BACKGROUND_MOD_NORMAL;
object4.overflow = 'hidden';
object.progressBarTrack = object4;
const object5 = {height: 6};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object8.backgroundColor = BACKGROUND_BRAND;
object2.progressBarFill = object8;
object5.backgroundColor = BACKGROUND_BRAND;
object.progressBarFill = object5;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end', 'alignItems': 'center', minHeight: PX_16};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgress.tsx');
object.labels = {'flexDirection': 'row', 'justifyContent': 'flex-end', 'alignItems': 'center', minHeight: PX_16};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgress.tsx');
exports.default = GiftingBadgeProgress;
}
function GiftingBadgeProgressBar({percent}) { // fn#81021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:186, offset: 0x01e95a55, size: 164 bytes, params: 2, frame: 25
const styles = useStyles();
const items2 = [styles.progressBarFill];
const Math = global.Math;
const min = Math.min;
const Math2 = global.Math;
let value = Math2.max(percent, 0);
value = Reflect.apply(min, Math, [value, 100]);
items2[1] = {width: '' + value + '%'};
return (
<View style={styles.progressBarTrack}>
<View style={items2} />
</View>
);
}
function GiftingBadgeProgress({progress, currentTier, nextTier, iconSize, title}) { // fn#81022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:1003, offset: 0x01e95af9, size: 587 bytes, params: 2, frame: 36
var r16;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var intl;
iconSize = iconSize === undefined ? 24 : iconSize;
const styles = useStyles();
const singleRequirementThreshold = getSingleRequirementThreshold(nextTier);
const r17 = nextTier != null && singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
const items3 = [currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)];
const items2 = [title != null && <Text variant="text-md/semibold">{title}</Text>];
items2[1] = <GiftingBadgeProgressBar percent={r17} />;
const value13 = nextTier != null;
if (value13) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r16 = <Text variant="text-xs/normal" color="text-muted">{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).iIpfQe,
{count: progress, threshold: singleRequirementThreshold})}</Text>;
} else {
r16 = value13;
function GiftingBadgeProgressBar({percent}) { // fn#81021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:186, offset: 0x01e95a55, size: 164 bytes, params: 2, frame: 25
const styles = useStyles();
const items2 = [styles.progressBarFill];
const Math = global.Math;
const min = Math.min;
const Math2 = global.Math;
let value = Math2.max(percent, 0);
value = Reflect.apply(min, Math, [value, 100]);
items2[1] = {width: '' + value + '%'};
return (
<View style={styles.progressBarTrack}>
<View style={items2} />
</View>
);
}
items2[2] = <View style={styles.labels}>{r16}</View>;
items3[1] = <View style={styles.content}>{items2}</View>;
items3[2] = nextTier?.simple_icon_url != null && ((Component) => <Component icon={nextTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
return (
<View style={styles.container}>
{items3}
</View>
);
function GiftingBadgeProgress({progress, currentTier, nextTier, iconSize, title}) { // fn#81022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10656:1003, offset: 0x01e95af9, size: 587 bytes, params: 2, frame: 36
var r16;
const Text = (TextModule).Text;
var intl;
iconSize = iconSize === undefined ? 24 : iconSize;
const styles = useStyles();
const singleRequirementThreshold = getSingleRequirementThreshold(nextTier);
const r17 = nextTier != null && singleRequirementThreshold > 0 ? global.Math.min(global.Math.max(progress / singleRequirementThreshold * 100, 0), 100) : 100;
const items3 = [
currentTier?.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */),
];
const items2 = [
title != null && <Text variant="text-md/semibold">{title}</Text>,
];
items2[1] = <GiftingBadgeProgressBar percent={r17} />;
const value13 = nextTier != null;
if (value13) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r16 = (
<Text variant="text-xs/normal" color="text-muted">
{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).iIpfQe,
{count: progress, threshold: singleRequirementThreshold})}
</Text>
);
} else {
r16 = value13;
}
items2[2] = (
<View style={styles.labels}>
{r16}
</View>
);
items3[1] = (
<View style={styles.content}>
{items2}
</View>
);
items3[2] = nextTier?.simple_icon_url != null && ((Component) => <Component icon={nextTier.simple_icon_url} size={iconSize} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */);
return (
<View style={styles.container}>
{items3}
</View>
);
}
}
global.__d(_fun81020, 10470, [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320,
2]) /* metro module 10470, dependencies: [31, 27, 7670, 33, 4501, 697, 10388, 4573, 1244, 2320, 2] */;
@@ -1,69 +1,84 @@
/* Metro module 10396; source: modules/premium/gifting/native/views/GiftingBadgeProgressBanner.tsx; dependencies: [31, 27, 33, 4501, 697, 6771, 8742, 480, 10388, 4573, 1244, 2320, 2] */
import GiftingBadgeMessages from '../../GiftingBadge.messages.js'; /* Metro dependency 2320 */
import UseAnalyticsLocations from '../../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import UseTrackImpression from '../../../../app_analytics/useTrackImpression.tsx'; /* Metro dependency 8742 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AnalyticsUtilsModule from '../../../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun80503(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10582:6, offset: 0x01e7e2b1, size: 409 bytes, params: 8, frame: 22
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {};
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'padding': null, 'backgroundColor': null,
object = {};
const object2 = {'flexDirection': 'row', 'alignItems': 'center', 'padding': null, 'backgroundColor': null,
'borderRadius': null, 'borderWidth': 1, 'borderStyle': 'solid'};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object5.padding = PX_8;
object2.padding = PX_8;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
object5.borderColor = BORDER_MUTED;
object2.borderColor = BORDER_MUTED;
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
copyDataProperties(object5, SHADOW_LOW, undefined);
object4.container = object5;
const object6 = {'alignItems': 'center', 'justifyContent': 'center'};
copyDataProperties(object2, SHADOW_LOW, undefined);
object.container = object2;
const object3 = {'alignItems': 'center', 'justifyContent': 'center'};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.padding = PX_8;
object3.padding = PX_8;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.marginInlineEnd = PX_8;
object4.iconContainer = object6;
const env0_6 = Reflect.apply(createStyles, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgressBanner.tsx');
object3.marginInlineEnd = PX_8;
object.iconContainer = object3;
const env0_6 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgeProgressBanner.tsx');
exports.default = GiftingBadgeProgressBanner;
function GiftingBadgeProgressBanner({giftsToNextTier, nextTierName, nextTierIcon, analyticsLocation}) { // fn#80504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10582:674, offset: 0x01e7e44a, size: 467 bytes, params: 2, frame: 25
const styles = useStyles();
const defaultImport = UseAnalyticsLocations;
const r4 = analyticsLocation != null ? [analyticsLocation] : [];
let object = [];
arraySpread(object, r4, 0, undefined);
const analyticsLocations = apply(defaultImport, object, undefined, undefined).analyticsLocations;
const defaultImport2 = UseTrackImpression;
object = {};
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const GIFTING_BADGE_PROGRESS_BANNER = ImpressionNames.GIFTING_BADGE_PROGRESS_BANNER;
object.name = GIFTING_BADGE_PROGRESS_BANNER;
const ImpressionTypes = (AnalyticsUtilsModule).ImpressionTypes;
const VIEW = ImpressionTypes.VIEW;
object.type = VIEW;
object.properties = {gifts_to_next_tier: giftsToNextTier, next_tier: nextTierName,
location_stack: analyticsLocations};
defaultImport2(object, {trackOnInitialLoad: true});
const view = (
<View style={styles.iconContainer}>
{nextTierIcon != null && ((Component) => <Component icon={nextTierIcon} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}
</View>
);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<View style={styles.container}>
{view}
<Text variant="text-md/semibold">
{intl.formatToPlainString((GiftingBadgeMessages)['0+xfd9'],
{giftsRemaining: giftsToNextTier, nextTier: nextTierName})}
</Text>
</View>
);
}
}
function GiftingBadgeProgressBanner({giftsToNextTier, nextTierName, nextTierIcon, analyticsLocation}) { // fn#80504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10582:674, offset: 0x01e7e44a, size: 467 bytes, params: 2, frame: 25
const styles = useStyles();
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const r4 = analyticsLocation != null ? [analyticsLocation] : [];
let object = [];
arraySpread(object, r4, 0, undefined);
const analyticsLocations = apply(defaultImport, object, undefined, undefined).analyticsLocations;
const defaultImport2 = importDefault(8742) /* metro dependency 8742: useTrackImpression */;
object = {};
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const GIFTING_BADGE_PROGRESS_BANNER = ImpressionNames.GIFTING_BADGE_PROGRESS_BANNER;
object.name = GIFTING_BADGE_PROGRESS_BANNER;
const ImpressionTypes = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes;
const VIEW = ImpressionTypes.VIEW;
object.type = VIEW;
object.properties = {gifts_to_next_tier: giftsToNextTier, next_tier: nextTierName,
location_stack: analyticsLocations};
defaultImport2(object, {trackOnInitialLoad: true});
const view = <View style={styles.iconContainer}>{nextTierIcon != null && ((Component) => <Component icon={nextTierIcon} size={24} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.container}>
{view}
<Text variant="text-md/semibold">
{intl.formatToPlainString((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['0+xfd9'],
{giftsRemaining: giftsToNextTier, nextTier: nextTierName})}
</Text>
</View>
);
}
global.__d(_fun80503, 10396, [31, 27, 33, 4501, 697, 6771, 8742, 480, 10388, 4573, 1244, 2320,
2]) /* metro module 10396, dependencies: [31, 27, 33, 4501, 697, 6771, 8742, 480, 10388, 4573, 1244, 2320, 2] */;
@@ -1,145 +1,229 @@
/* Metro module 15293; source: modules/premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet.tsx; dependencies: [31, 27, 7670, 1376, 33, 4501, 697, 4080, 4008, 6275, 10388, 4573, 1244, 2320, 4578, 10381, 6789, 15294, 10112, 566, 7635, 2] */
import Native from '../../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import AnalyticsLocation from '../../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import BadgeDirectoryStore from '../../../../badges/BadgeDirectoryStore.tsx'; /* Metro dependency 7670 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as DismissibleContentConstantsModule from '../../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as BottomSheetNativeModule from '../../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as BadgeIdModule from '../../../../../external/discord_common/js/shared/shared-constants/BadgeId.tsx'; /* Metro dependency 7635 */
import * as GiftIconModule from '../../../../../design/components/Icon/native/redesign/generated/GiftIcon.tsx'; /* Metro dependency 10112 */
function _fun116950(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:6, offset: 0x0249d24d, size: 437 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_4 = value.Image;
const env0_5 = value.View;
const badgeDirectoryStore = importDefault(7670) /* metro dependency 7670: BadgeDirectoryStore */;
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.container = {'alignItems': 'center', 'paddingHorizontal': 20, 'paddingBottom': 20, gap: PX_24};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.graphicContainer = {'height': 188, 'width': 335, 'alignItems': 'center', 'justifyContent': 'center',
object = {};
const PX_24 = (Native).space.PX_24;
object.container = {'alignItems': 'center', 'paddingHorizontal': 20, 'paddingBottom': 20, gap: PX_24};
const PX_16 = (Native).space.PX_16;
object.graphicContainer = {'height': 188, 'width': 335, 'alignItems': 'center', 'justifyContent': 'center',
padding: PX_16};
object2.newBadgeImage = {'width': '100%', 'height': '100%', 'objectFit': 'contain'};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.textContainer = {gap: PX_8};
object2.text = {textAlign: 'center'};
object2.footer = {width: '100%'};
const env0_10 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet.tsx');
object.newBadgeImage = {'width': '100%', 'height': '100%', 'objectFit': 'contain'};
const PX_8 = (Native).space.PX_8;
object.textContainer = {gap: PX_8};
object.text = {textAlign: 'center'};
object.footer = {width: '100%'};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingBadgesCoachmarkActionSheet.tsx');
exports.default = GiftingBadgesCoachmarkActionSheet;
}
function HasBadgeCoachmark({markAsDismissed, currentTier, giftCount}) { // fn#116951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:589, offset: 0x0249d402, size: 729 bytes, params: 2, frame: 39
const styles = useStyles();
const value2 = env0_3.useCallback(_fun116952, [markAsDismissed]);
const value3 = env0_3.useCallback(function() {
markAsDismissed(ContentDismissActionType.USER_DISMISS);
}, [markAsDismissed]);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const items2 = [<View style={styles.graphicContainer}>{currentTier.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={120} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}</View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let text = styles.text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const text2 = <Text style={text} variant="heading-xl/bold" color="text-strong">{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['a+jfuy'],
{tierName: currentTier.name ?? ''})}</Text>;
text = styles.text;
const formatToPlainString = intl.formatToPlainString;
const QxRA6w = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).QxRA6w;
items2[1] = <View style={styles.textContainer}>{text2}<Text style={text} variant="text-sm/medium" color="text-default">{Reflect.apply(formatToPlainString,
intl, [QxRA6w, {giftCount: giftCount ?? 0}])}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const string = intl.string;
const RzWDqY = (require(1244) /* metro dependency 1244: indexNative */).t.RzWDqY;
items2[2] = <View style={styles.footer}><Button grow text={Reflect.apply(string, intl,
[RzWDqY])} onPress={value2} /></View>;
return (
<BottomSheet startExpanded onDismiss={value3}>
<View style={styles.container}>
{items2}
function HasBadgeCoachmark({markAsDismissed, currentTier, giftCount}) { // fn#116951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:589, offset: 0x0249d402, size: 729 bytes, params: 2, frame: 39
const styles = useStyles();
const value2 = ReactModule.useCallback(_fun116952, [markAsDismissed]);
const value3 = ReactModule.useCallback(function() {
markAsDismissed(ContentDismissActionType.USER_DISMISS);
}, [markAsDismissed]);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const items2 = [
<View style={styles.graphicContainer}>
{currentTier.simple_icon_url != null && ((Component) => <Component icon={currentTier.simple_icon_url} size={120} />)(importDefault(10388) /* metro dependency 10388: GiftingBadgeIcon */)}
</View>,
];
const Text = (TextModule).Text;
let text = styles.text;
const intl = (IndexNativeModule).intl;
const text2 = (
<Text
style={text}
variant="heading-xl/bold"
color="text-strong"
>
{intl.format((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['a+jfuy'],
{tierName: currentTier.name ?? ''})}
</Text>
);
text = styles.text;
const formatToPlainString = intl.formatToPlainString;
const QxRA6w = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).QxRA6w;
items2[1] = (
<View style={styles.textContainer}>
{text2}
<Text
style={text}
variant="text-sm/medium"
color="text-default"
>
{Reflect.apply(formatToPlainString, intl, [QxRA6w, {giftCount: giftCount ?? 0}])}
</Text>
</View>
</BottomSheet>
);
}
function NewBadgeCoachmark({markAsDismissed}) { // fn#116954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1556, offset: 0x0249d745, size: 690 bytes, params: 2, frame: 36
const styles = useStyles();
const value2 = env0_3.useCallback(_fun116955, [markAsDismissed]);
const value3 = env0_3.useCallback(function() {
markAsDismissed(ContentDismissActionType.USER_DISMISS);
}, [markAsDismissed]);
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const object = {};
object.uri = importDefault(15294) /* metro dependency 15294: new_gifting_badgesPng */;
const items2 = [<View style={styles.graphicContainer}><Image source={object} style={styles.newBadgeImage} /></View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Q2RQka = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).Q2RQka;
items2[1] = <View style={styles.textContainer}><Text style={styles.text} variant="heading-xl/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl,
[Q2RQka])}</Text><Text style={styles.text} variant="text-sm/medium" color="text-muted">{(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['3EQnkg'])}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const DZnomS = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).DZnomS;
const GiftIcon = (require(10112) /* metro dependency 10112: GiftIcon */).GiftIcon;
const CONTROL_PRIMARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_PRIMARY_TEXT_DEFAULT;
items2[2] = <View style={styles.footer}><Button grow text={Reflect.apply(string, intl,
[DZnomS])} icon={<GiftIcon size="sm" color={CONTROL_PRIMARY_TEXT_DEFAULT} />} onPress={value2} /></View>;
return (
<BottomSheet startExpanded onDismiss={value3}>
<View style={styles.container}>
{items2}
);
const Button = (ButtonNativeModule).Button;
const string = intl.string;
const RzWDqY = (IndexNativeModule).t.RzWDqY;
items2[2] = (
<View style={styles.footer}>
<Button
grow
text={Reflect.apply(string, intl, [RzWDqY])}
onPress={value2}
/>
</View>
</BottomSheet>
);
}
);
return (
<BottomSheet startExpanded onDismiss={value3}>
<View style={styles.container}>
{items2}
</View>
</BottomSheet>
);
function _fun116952() { // fn#116952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:692, offset: 0x0249d6db, size: 106 bytes, params: 1, frame: 13
let value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
value = value.getRootNavigationRef();
if (value != null) {
value.navigate('you');
}
}
function GiftingBadgesCoachmarkActionSheet({markAsDismissed}) { // fn#116957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2638, offset: 0x0249da6e, size: 141 bytes, params: 2, frame: 18
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([BadgeDirectoryStore],
_fun116958);
const currentTier = value2.currentTier;
return currentTier != null ? <HasBadgeCoachmark markAsDismissed={markAsDismissed} currentTier={currentTier} giftCount={value2.giftCount} /> : <NewBadgeCoachmark markAsDismissed={markAsDismissed} />;
}
function _fun116952() { // fn#116952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:692, offset: 0x0249d6db, size: 106 bytes, params: 1, frame: 13
let value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
value = value.getRootNavigationRef();
if (value != null) {
value.navigate('you');
}
function NewBadgeCoachmark({markAsDismissed}) { // fn#116954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1556, offset: 0x0249d745, size: 690 bytes, params: 2, frame: 36
const styles = useStyles();
const value2 = ReactModule.useCallback(_fun116955, [markAsDismissed]);
const value3 = ReactModule.useCallback(function() {
markAsDismissed(ContentDismissActionType.USER_DISMISS);
}, [markAsDismissed]);
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const object2 = {};
object2.uri = importDefault(15294) /* metro dependency 15294: new_gifting_badgesPng */;
const items2 = [
<View style={styles.graphicContainer}>
<Image source={object2} style={styles.newBadgeImage} />
</View>,
];
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Q2RQka = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).Q2RQka;
items2[1] = (
<View style={styles.textContainer}>
<Text
style={styles.text}
variant="heading-xl/bold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [Q2RQka])}
</Text>
<Text
style={styles.text}
variant="text-sm/medium"
color="text-muted"
>
{(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */)['3EQnkg'])}
</Text>
</View>
);
const Button = (ButtonNativeModule).Button;
string = intl.string;
const DZnomS = (importDefault(2320) /* metro dependency 2320: GiftingBadgeMessages */).DZnomS;
const GiftIcon = (GiftIconModule).GiftIcon;
const CONTROL_PRIMARY_TEXT_DEFAULT = (Native).colors.CONTROL_PRIMARY_TEXT_DEFAULT;
items2[2] = (
<View style={styles.footer}>
<Button
grow
text={Reflect.apply(string, intl, [DZnomS])}
icon={<GiftIcon size="sm" color={CONTROL_PRIMARY_TEXT_DEFAULT} />}
onPress={value2}
/>
</View>
);
return (
<BottomSheet startExpanded onDismiss={value3}>
<View style={styles.container}>
{items2}
</View>
</BottomSheet>
);
function _fun116955() { // fn#116955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1631, offset: 0x0249d9f7, size: 119 bytes, params: 1, frame: 15
let value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
value = require(10381) /* metro dependency 10381: openGiftModal */;
const openGiftModal = value.openGiftModal;
const GIFTING_BADGE_COACHMARK = (AnalyticsLocation).GIFTING_BADGE_COACHMARK;
Reflect.apply(openGiftModal, value, [{analyticsLocations: [GIFTING_BADGE_COACHMARK]}]);
}
}
function GiftingBadgesCoachmarkActionSheet({markAsDismissed}) { // fn#116957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2638, offset: 0x0249da6e, size: 141 bytes, params: 2, frame: 18
const value2 = (FluxModule).useStateFromStoresObject([BadgeDirectoryStore],
_fun116958);
const currentTier = value2.currentTier;
return (
currentTier != null
? (
<HasBadgeCoachmark
markAsDismissed={markAsDismissed}
currentTier={currentTier}
giftCount={value2.giftCount}
/>
)
: (
<NewBadgeCoachmark markAsDismissed={markAsDismissed} />
)
);
function _fun116958() { // fn#116958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2747, offset: 0x0249dafb, size: 112 bytes, params: 1, frame: 16
const object = {};
let value = environment.__proto__;
const badgeDirectoryStoreBinding = BadgeDirectoryStore;
const getCurrentTier = badgeDirectoryStoreBinding.getCurrentTier;
value = undefined;
const BadgeId = (BadgeIdModule).BadgeId;
let GIFTING = BadgeId.GIFTING;
object.currentTier = Reflect.apply(getCurrentTier, badgeDirectoryStoreBinding, [GIFTING]);
const getSingleRequirementProgress = badgeDirectoryStoreBinding.getSingleRequirementProgress;
GIFTING = BadgeId.GIFTING;
const value2 = Reflect.apply(getSingleRequirementProgress, badgeDirectoryStoreBinding, [GIFTING]);
object.giftCount = value2 == null ? value : value2.current;
return object;
}
}
}
function _fun116955() { // fn#116955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:1631, offset: 0x0249d9f7, size: 119 bytes, params: 1, frame: 15
let value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
value = require(10381) /* metro dependency 10381: openGiftModal */;
const openGiftModal = value.openGiftModal;
const GIFTING_BADGE_COACHMARK = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GIFTING_BADGE_COACHMARK;
Reflect.apply(openGiftModal, value, [{analyticsLocations: [GIFTING_BADGE_COACHMARK]}]);
}
function _fun116958() { // fn#116958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15490:2747, offset: 0x0249dafb, size: 112 bytes, params: 1, frame: 16
const object2 = {};
let value = environment.__proto__;
const getCurrentTier = BadgeDirectoryStore.getCurrentTier;
value = undefined;
const BadgeId = (require(7635) /* metro dependency 7635: BadgeId */).BadgeId;
let GIFTING = BadgeId.GIFTING;
object2.currentTier = Reflect.apply(getCurrentTier, BadgeDirectoryStore, [GIFTING]);
const getSingleRequirementProgress = BadgeDirectoryStore.getSingleRequirementProgress;
GIFTING = BadgeId.GIFTING;
const value2 = Reflect.apply(getSingleRequirementProgress, BadgeDirectoryStore, [GIFTING]);
object2.giftCount = value2 == null ? value : value2.current;
return object2;
}
global.__d(_fun116950, 15293, [31, 27, 7670, 1376, 33, 4501, 697, 4080, 4008, 6275, 10388, 4573, 1244, 2320, 4578,
10381, 6789, 15294, 10112, 566, 7635,
2]) /* metro module 15293, dependencies: [31, 27, 7670, 1376, 33, 4501, 697, 4080, 4008, 6275, 10388, 4573, 1244, 2320, 4578, 10381, 6789, 15294, 10112, 566, 7635, 2] */;
@@ -1,35 +1,41 @@
/* Metro module 10462; source: modules/premium/gifting/native/views/GiftingRewardPreviewAvatar.tsx; dependencies: [31, 4502, 1878, 33, 566, 1305, 2] */
import UserStore from '../../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import AccessibilityStore from '../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../../design/void/native.tsx'; /* Metro dependency 1305 */
function _fun80977(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10648:6, offset: 0x01e93073, size: 166 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/GiftingRewardPreviewAvatar.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/GiftingRewardPreviewAvatar.tsx');
exports.default = GiftingRewardPreviewAvatar;
function GiftingRewardPreviewAvatar(a0) { // fn#80978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10648:249, offset: 0x01e93119, size: 203 bytes, params: 2, frame: 20
const value2 = undefined;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r6 = a0.asset != null ? {asset: a0.asset} : value2;
const Avatar = (NativeModule).Avatar;
return (
<Avatar
user={currentUser}
guildId={value2}
avatarDecoration={r6}
animate={!useReducedMotion}
{...a0}
/>
);
}
}
function GiftingRewardPreviewAvatar(a0) { // fn#80978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10648:249, offset: 0x01e93119, size: 203 bytes, params: 2, frame: 20
const value2 = undefined;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r6 = a0.asset != null ? {asset: a0.asset} : value2;
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
return (
<Avatar
user={currentUser}
guildId={value2}
avatarDecoration={r6}
animate={!useReducedMotion}
{...a0}
/>
);
}
global.__d(_fun80977, 10462, [31, 4502, 1878, 33, 566, 1305,
2]) /* metro module 10462, dependencies: [31, 4502, 1878, 33, 566, 1305, 2] */;
@@ -1,126 +1,171 @@
/* Metro module 15280; source: modules/premium/gifting/native/views/promotions/GiftingPromotionCoachmark.tsx; dependencies: [31, 27, 4502, 661, 1376, 33, 4501, 697, 566, 10390, 6771, 6789, 4080, 10381, 6275, 477, 7601, 5475, 4573, 4578, 1244, 2] */
import ActionSheetActionCreators from '../../../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import AccessibilityStore from '../../../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import UseAnalyticsLocations from '../../../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AnalyticsLocation from '../../../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as DismissibleContentConstantsModule from '../../../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as OpenGiftModalModule from '../../../../native/utils/openGiftModal.tsx'; /* Metro dependency 10381 */
function _fun116880(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:6, offset: 0x0249972b, size: 467 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_6 = value.AnalyticsSections;
const env0_7 = value.AnalyticsObjects;
const env0_8 = value.AnalyticsPages;
const env0_9 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {alignItems: 'center', padding: PX_16};
const object4 = {};
object.container = {alignItems: 'center', padding: PX_16};
const object3 = {};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_8;
object3.gap = PX_8;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object3.paddingHorizontal = PX_16;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.paddingVertical = PX_24;
object2.textContainer = object4;
object2.text = {textAlign: 'center'};
const object6 = {'height': 188, 'width': 335};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.imageShared = object6;
object2.imageWrapperAndroid = {overflow: 'hidden'};
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingPromotionCoachmark.tsx');
object3.paddingVertical = PX_24;
object.textContainer = object3;
object.text = {textAlign: 'center'};
const object5 = {'height': 188, 'width': 335};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.imageShared = object5;
object.imageWrapperAndroid = {overflow: 'hidden'};
const env0_12 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingPromotionCoachmark.tsx');
exports.default = GiftingPromotionCoachmarkActionSheet;
}
function GiftingPromotionCoachmarkActionSheet({coachmarkComponent, markAsDismissed}) { // fn#116881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:717, offset: 0x024998fe, size: 778 bytes, params: 2, frame: 32
var r8;
var r9;
var r0;
var BottomSheet;
var value6;
var moduleValue3;
var object;
var imageShared;
var APNGDecorationNativeComponent;
var items2;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var text;
var items3;
var Button;
var intl;
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value4 = (require(10390) /* metro dependency 10390: MarketingComponentHooks */).useThemeAndReducedMotionAwareAssetUrl(coachmarkComponent?.asset);
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const GIFTING_PROMOTION_COACHMARK = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GIFTING_PROMOTION_COACHMARK;
const analyticsLocations = defaultImport(GIFTING_PROMOTION_COACHMARK).analyticsLocations;
const binding = env0_3;
const useCallback = binding.useCallback;
if (coachmarkComponent == null) {
r0 = null;
} else {
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
var viewBindingProps = {style: styles.container};
value6 = value4 != null;
if (value6) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue3.isAndroid()) {
if (useReducedMotion) {
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
} else {
object = {};
imageShared = styles.imageShared;
object.style = [imageShared, styles.imageWrapperAndroid];
APNGDecorationNativeComponent = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
imageShared = styles.imageShared;
r8 = <View {...object}><APNGDecorationNativeComponent url={value4} style={imageShared} /></View>;
}
} else {
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
}
r9 = r8;
function GiftingPromotionCoachmarkActionSheet({coachmarkComponent, markAsDismissed}) { // fn#116881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:717, offset: 0x024998fe, size: 778 bytes, params: 2, frame: 32
var r8;
var r9;
var r0;
var BottomSheet;
var value6;
var moduleValue3;
var object2;
var imageShared;
var APNGDecorationNativeComponent;
var items2;
const Text = (TextModule).Text;
var text;
var items3;
var Button;
var intl;
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value4 = (require(10390) /* metro dependency 10390: MarketingComponentHooks */).useThemeAndReducedMotionAwareAssetUrl(coachmarkComponent?.asset);
const defaultImport = UseAnalyticsLocations;
const GIFTING_PROMOTION_COACHMARK = (AnalyticsLocation).GIFTING_PROMOTION_COACHMARK;
const analyticsLocations = defaultImport(GIFTING_PROMOTION_COACHMARK).analyticsLocations;
const useCallback = ReactModule.useCallback;
if (coachmarkComponent == null) {
r0 = null;
} else {
r9 = value6;
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
var viewBindingProps = {style: styles.container};
value6 = value4 != null;
if (value6) {
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue3.isAndroid()) {
if (useReducedMotion) {
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
} else {
object2 = {};
imageShared = styles.imageShared;
object2.style = [imageShared, styles.imageWrapperAndroid];
APNGDecorationNativeComponent = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
imageShared = styles.imageShared;
r8 = (
<View {...object2}>
<APNGDecorationNativeComponent url={value4} style={imageShared} />
</View>
);
}
} else {
r8 = ((Component) => <Component source={{uri: value4}} style={styles.imageShared} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
}
r9 = r8;
} else {
r9 = value6;
}
items2 = [r9];
var viewBinding3Props = {style: styles.textContainer};
text = styles.text;
items3 = [
<Text
style={text}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{coachmarkComponent.header}
</Text>,
];
text = styles.text;
items3[1] = (
<Text
style={text}
variant="text-md/normal"
color="text-default"
>
{coachmarkComponent.body}
</Text>
);
items2[1] = (
<View {...viewBinding3Props}>
{items3}
</View>
);
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[2] = (
<Button
grow
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.RzWDqY)}
onPress={Reflect.apply(useCallback, ReactModule, [_fun116883, [analyticsLocations, markAsDismissed]])}
/>
);
r0 = (
<BottomSheet
startExpanded
onDismiss={function() {
return markAsDismissed(ContentDismissActionType.USER_DISMISS);
}}
>
<View {...viewBindingProps}>
{items2}
</View>
</BottomSheet>
);
}
items2 = [r9];
var viewBinding3Props = {style: styles.textContainer};
text = styles.text;
items3 = [<Text style={text} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{coachmarkComponent.header}</Text>];
text = styles.text;
items3[1] = <Text style={text} variant="text-md/normal" color="text-default">{coachmarkComponent.body}</Text>;
items2[1] = <View {...viewBinding3Props}>{items3}</View>;
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[2] = <Button grow text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.RzWDqY)} onPress={Reflect.apply(useCallback,
binding, [_fun116883, [analyticsLocations, markAsDismissed]])} />;
r0 = <BottomSheet startExpanded onDismiss={function() {
return markAsDismissed(ContentDismissActionType.USER_DISMISS);
}}><View {...viewBindingProps}>{items2}</View></BottomSheet>;
return r0;
function _fun116883() { // fn#116883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:1031, offset: 0x02499c08, size: 149 bytes, params: 1, frame: 16
(ActionSheetActionCreators).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
const openGiftModal = OpenGiftModalModule.openGiftModal;
const PREMUIM_UPSELL_GIFTING_PROMOTION = AnalyticsPages.PREMUIM_UPSELL_GIFTING_PROMOTION;
const FOOTER = AnalyticsSections.FOOTER;
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
Reflect.apply(openGiftModal, OpenGiftModalModule, [{analyticsLocation: {page: PREMUIM_UPSELL_GIFTING_PROMOTION,
section: FOOTER, object: BUTTON_CTA}, analyticsLocations: analyticsLocations}]);
}
}
return r0;
}
function _fun116883() { // fn#116883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15477:1031, offset: 0x02499c08, size: 149 bytes, params: 1, frame: 16
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const markAsDismissedBinding = markAsDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
markAsDismissedBinding(TAKE_ACTION);
const openGiftModalModule = require(10381) /* metro dependency 10381: openGiftModal */;
const openGiftModal = openGiftModalModule.openGiftModal;
const PREMUIM_UPSELL_GIFTING_PROMOTION = AnalyticsPages.PREMUIM_UPSELL_GIFTING_PROMOTION;
const FOOTER = AnalyticsSections.FOOTER;
const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA;
Reflect.apply(openGiftModal, openGiftModalModule, [{analyticsLocation: {page: PREMUIM_UPSELL_GIFTING_PROMOTION,
section: FOOTER, object: BUTTON_CTA}, analyticsLocations: analyticsLocations}]);
}
global.__d(_fun116880, 15280, [31, 27, 4502, 661, 1376, 33, 4501, 697, 566, 10390, 6771, 6789, 4080, 10381, 6275,
477, 7601, 5475, 4573, 4578, 1244,
2]) /* metro module 15280, dependencies: [31, 27, 4502, 661, 1376, 33, 4501, 697, 566, 10390, 6771, 6789, 4080, 10381, 6275, 477, 7601, 5475, 4573, 4578, 1244, 2] */;
@@ -1,115 +1,146 @@
/* Metro module 10457; source: modules/premium/gifting/native/views/promotions/GiftingSKUCardsGrid.tsx; dependencies: [31, 27, 5126, 1902, 33, 4501, 697, 7594, 3874, 8461, 5278, 10050, 7596, 9294, 4573, 1244, 2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NameplateRecordModule from '../../../../../collectibles/records/NameplateRecord.tsx'; /* Metro dependency 1902 */
import * as UseA11yRolesNativeModule from '../../../../../../external/discord_common/js/packages/design/hooks/useA11yRolesNative.tsx'; /* Metro dependency 3874 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as AvatarDecorationRecordModule from '../../../../../collectibles/records/AvatarDecorationRecord.tsx'; /* Metro dependency 5126 */
import * as PressablesModule from '../../../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as UseCurrentUserModule from '../../../../../collectibles/hooks/useCurrentUser.tsx'; /* Metro dependency 7594 */
import * as UseFetchCollectiblesProductModule from '../../../../../collectibles/hooks/useFetchCollectiblesProduct.tsx'; /* Metro dependency 8461 */
function _fun80944(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:6, offset: 0x01e90adb, size: 561 bytes, params: 8, frame: 24
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(5126) /* metro dependency 5126: AvatarDecorationRecord */).isAvatarDecorationRecord;
const env0_6 = (require(1902) /* metro dependency 1902: NameplateRecord */).isNameplateRecord;
const value2 = require(33) /* metro dependency 33 */;
const env0_7 = value2.jsx;
const env0_8 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'height': 178, 'width': 150, 'display': 'flex', 'flexDirection': 'column', 'alignItems': 'center',
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'height': 178, 'width': 150, 'display': 'flex', 'flexDirection': 'column', 'alignItems': 'center',
'justifyContent': 'center', 'borderWidth': 1, 'borderRadius': null, 'overflow': 'hidden'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.borderColor = BORDER_SUBTLE;
object2.borderColor = BORDER_SUBTLE;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object4.margin = PX_4;
object3.card = object4;
object3.overlayContainer = {'position': 'absolute', 'top': 10, 'zIndex': 2, 'display': 'flex',
object2.margin = PX_4;
object.card = object2;
object.overlayContainer = {'position': 'absolute', 'top': 10, 'zIndex': 2, 'display': 'flex',
'justifyContent': 'center', 'alignItems': 'center', 'width': '100%', 'height': '75%'};
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object3.selected = {borderColor: BACKGROUND_BRAND};
object3.claimed = {opacity: 0.4};
object3.checkmark = {'position': 'absolute', 'opacity': 1, 'fontWeight': 'bold'};
object3.checkmarkContainer = {'position': 'absolute', 'top': 10, 'zIndex': 3, 'display': 'flex',
object.selected = {borderColor: BACKGROUND_BRAND};
object.claimed = {opacity: 0.4};
object.checkmark = {'position': 'absolute', 'opacity': 1, 'fontWeight': 'bold'};
object.checkmarkContainer = {'position': 'absolute', 'top': 10, 'zIndex': 3, 'display': 'flex',
'justifyContent': 'center', 'alignItems': 'center', 'width': '100%', 'height': '75%'};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.textContainer = {'position': 'absolute', 'bottom': 20, 'left': 0, 'right': 0, 'paddingHorizontal': null,
object.textContainer = {'position': 'absolute', 'bottom': 20, 'left': 0, 'right': 0, 'paddingHorizontal': null,
'alignItems': 'flex-start', paddingHorizontal: PX_16};
const env0_9 = Reflect.apply(createStyles, createStylesModule, [object3]);
const env0_10 = value.memo(_fun80945);
const env0_11 = createStylesModule.createStyles({grid: {'flexDirection': 'row', 'flexWrap': 'wrap',
const env0_9 = Reflect.apply(createStyles, CreateStylesModule, [object]);
const env0_10 = ReactModule.memo(_fun80945);
const env0_11 = CreateStylesModule.createStyles({grid: {'flexDirection': 'row', 'flexWrap': 'wrap',
'justifyContent': 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUCardsGrid.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUCardsGrid.tsx');
exports.default = GiftingSKUCardsGrid;
}
function _fun80945({rewardSkuId, claimed, onSelect, isSelected}) { // fn#80945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1027, offset: 0x01e90d0c, size: 823 bytes, params: 2, frame: 29
const styles = useStyles();
const value3 = (require(7594) /* metro dependency 7594: useCurrentUser */).useCurrentUser();
const env0_3 = value3;
const {accessibilityRole,
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: isSelected});
const useFetchCollectiblesProductModule = require(8461) /* metro dependency 8461: useFetchCollectiblesProduct */;
const useFetchCollectiblesProduct = useFetchCollectiblesProductModule.useFetchCollectiblesProduct;
const product = Reflect.apply(useFetchCollectiblesProduct, useFetchCollectiblesProductModule, [rewardSkuId]).product;
const value5 = env0_3.useMemo(_fun80946, [isSelected, value3]);
if (product == null) {
return null;
}
const property = product.items[0];
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const items2 = [styles.card];
items2[1] = isSelected && styles.selected;
const view = <View style={[styles.overlayContainer,
claimed && styles.claimed]}>{isNameplateRecord(property) ? ((Component) => <Component item={property} animate={isSelected} />)(importDefault(10050) /* metro dependency 10050: NameplateCardPreview */) : isAvatarDecorationRecord(property) ? ((Component) => <Component item={property} size={100} animate={isSelected} avatarSource={value5} />)(importDefault(7596) /* metro dependency 7596: AvatarDecorationSampleV2 */) : undefined}</View>;
const r6 = claimed && <View style={styles.checkmarkContainer}>{((CheckmarkLargeBoldIcon) => <CheckmarkLargeBoldIcon size="lg" style={styles.checkmark} />)((require(9294) /* metro dependency 9294: CheckmarkLargeBoldIcon */).CheckmarkLargeBoldIcon)}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text variant="heading-sm/bold" color="mobile-text-heading-primary" lineClamp={1} accessibilityRole="header">{product.name}</Text>;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return (
<PressableOpacity
style={items2}
onPress={function() {
return onSelect(rewardSkuId);
}}
activeOpacity={0.8}
disabled={claimed}
accessibilityRole={accessibilityRole}
accessibilityState={accessibilityState}
>
{view}
{r6}
<View style={styles.textContainer}>
{text}
<Text
variant="text-xs/semibold"
color="mobile-text-heading-primary"
lineClamp={1}
>
{claimed ? Reflect.apply(string, intl, [t['6cfuDj']]) : Reflect.apply(string, intl, [t.QQsaCc])}
</Text>
function _fun80945({rewardSkuId, claimed, onSelect, isSelected}) { // fn#80945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1027, offset: 0x01e90d0c, size: 823 bytes, params: 2, frame: 29
const styles = useStyles();
const value3 = (UseCurrentUserModule).useCurrentUser();
const env0_3 = value3;
const {accessibilityRole,
accessibilityState} = (UseA11yRolesNativeModule).useRadioA11yNative({selected: isSelected});
const useFetchCollectiblesProduct = UseFetchCollectiblesProductModule.useFetchCollectiblesProduct;
const product = Reflect.apply(useFetchCollectiblesProduct, UseFetchCollectiblesProductModule, [rewardSkuId]).product;
const value5 = env0_3.useMemo(_fun80946, [isSelected, value3]);
if (product == null) {
return null;
}
const property = product.items[0];
const PressableOpacity = (PressablesModule).PressableOpacity;
const items2 = [styles.card];
items2[1] = isSelected && styles.selected;
const view = (
<View style={[styles.overlayContainer, claimed && styles.claimed]}>
{
isNameplateRecord(property)
? ((Component) => <Component item={property} animate={isSelected} />)(importDefault(10050) /* metro dependency 10050: NameplateCardPreview */)
: (
isAvatarDecorationRecord(property)
? ((Component) => <Component item={property} size={100} animate={isSelected} avatarSource={value5} />)(importDefault(7596) /* metro dependency 7596: AvatarDecorationSampleV2 */)
: undefined
)
}
</View>
</PressableOpacity>
);
}
);
const r6 = claimed && <View style={styles.checkmarkContainer}>{((CheckmarkLargeBoldIcon) => <CheckmarkLargeBoldIcon size="lg" style={styles.checkmark} />)((require(9294) /* metro dependency 9294: CheckmarkLargeBoldIcon */).CheckmarkLargeBoldIcon)}</View>;
const Text = (TextModule).Text;
const text = (
<Text
variant="heading-sm/bold"
color="mobile-text-heading-primary"
lineClamp={1}
accessibilityRole="header"
>
{product.name}
</Text>
);
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
return (
<PressableOpacity
style={items2}
onPress={function() {
return onSelect(rewardSkuId);
}}
activeOpacity={0.8}
disabled={claimed}
accessibilityRole={accessibilityRole}
accessibilityState={accessibilityState}
>
{view}
{r6}
<View style={styles.textContainer}>
{text}
<Text
variant="text-xs/semibold"
color="mobile-text-heading-primary"
lineClamp={1}
>
{claimed ? Reflect.apply(string, intl, [t['6cfuDj']]) : Reflect.apply(string, intl, [t.QQsaCc])}
</Text>
</View>
</PressableOpacity>
);
function _fun80946() { // fn#80946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1274, offset: 0x01e91043, size: 38 bytes, params: 1, frame: 16
return isSelected ? env0_3.getAvatarSource(null, true, 100) : undefined;
}
function GiftingSKUCardsGrid({rewardsToDisplay, claimableRewards, onSelect, highlightedSkuId}) { // fn#80948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2376, offset: 0x01e91069, size: 103 bytes, params: 2, frame: 16
const styles = useStyles();
return (
<View style={styles.grid}>
{rewardsToDisplay.map(_fun80949)}
</View>
);
}
}
function _fun80946() { // fn#80946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:1274, offset: 0x01e91043, size: 38 bytes, params: 1, frame: 16
return isSelected ? env0_3.getAvatarSource(null, true, 100) : undefined;
}
function GiftingSKUCardsGrid({rewardsToDisplay, claimableRewards, onSelect, highlightedSkuId}) { // fn#80948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2376, offset: 0x01e91069, size: 103 bytes, params: 2, frame: 16
const styles = useStyles();
return (
<View style={styles.grid}>
{rewardsToDisplay.map(_fun80949)}
</View>
);
function _fun80949(a0) { // fn#80949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2527, offset: 0x01e910d0, size: 93 bytes, params: 2, frame: 18
const env0_0 = a0;
const binding = env1_10;
const claimableRewardsBinding = claimableRewards;
return ((Component) => <Component rewardSkuId={a0} claimed={!claimableRewardsBinding.some(_fun80950)} isSelected={highlightedSkuId === a0} onSelect={onSelect} key={a0} />)(binding);
function _fun80950(a0) { // fn#80950, offset: 0x00fcba1c, size: 16 bytes, params: 2, frame: 2
return a0 === env0_0;
}
}
}
function _fun80949(a0) { // fn#80949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10643:2527, offset: 0x01e910d0, size: 93 bytes, params: 2, frame: 18
const env0_0 = a0;
const binding = env1_10;
const claimableRewardsBinding = claimableRewards;
return ((Component) => <Component rewardSkuId={a0} claimed={!claimableRewardsBinding.some(_fun80950)} isSelected={highlightedSkuId === a0} onSelect={onSelect} key={a0} />)(binding);
}
global.__d(_fun80944, 10457, [31, 27, 5126, 1902, 33, 4501, 697, 7594, 3874, 8461, 5278, 10050, 7596, 9294, 4573,
1244,
2]) /* metro module 10457, dependencies: [31, 27, 5126, 1902, 33, 4501, 697, 7594, 3874, 8461, 5278, 10050, 7596, 9294, 4573, 1244, 2] */;
@@ -1,12 +1,18 @@
/* Metro module 10456; source: modules/premium/gifting/native/views/promotions/GiftingSKUSelectScreen.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 1585, 4573, 1244, 10457, 4578, 2] */
import Module00057 from '../../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseSafeAreaInsetsNative from '../../../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import GiftingSKUCardsGrid from './GiftingSKUCardsGrid.tsx'; /* Metro dependency 10457 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun80934(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:6, offset: 0x01e904d6, size: 451 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.View;
const env0_6 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
@@ -14,109 +20,155 @@ function _fun80934(global, require, importDefault, importAll, module, exports, d
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
object2.scroll = {flex: 1};
object.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
object.scroll = {flex: 1};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.contentContainer = {'display': 'flex', 'flexDirection': 'column', padding: PX_24};
object.contentContainer = {'display': 'flex', 'flexDirection': 'column', padding: PX_24};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.header = {textAlign: 'center', padding: PX_8};
object2.subtitle = {textAlign: 'center'};
const object3 = {};
object.header = {textAlign: 'center', padding: PX_8};
object.subtitle = {textAlign: 'center'};
const object4 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.marginHorizontal = PX_16;
object4.marginHorizontal = PX_16;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.marginBottom = PX_24;
object2.buttonContainer = object3;
object4.marginBottom = PX_24;
object.buttonContainer = object4;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.headerContainer = {marginBottom: PX_24};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUSelectScreen.tsx');
object.headerContainer = {marginBottom: PX_24};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/native/views/promotions/GiftingSKUSelectScreen.tsx');
exports.default = GiftingSKUSelectScreen;
}
function GiftingSKUSelectScreen({defaultHighlightedReward, allRewards, claimableRewards, onSelect}) { // fn#80935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:717, offset: 0x01e90699, size: 804 bytes, params: 2, frame: 35
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const binding = env0_4;
let useState = binding.useState;
let value2 = Reflect.apply(useState, binding, [defaultHighlightedReward]);
const value3 = Module00057(value2, 2);
const property = value3[0];
var env0_4 = value3[1];
useState = binding.useState;
const value4 = Module00057(Reflect.apply(useState, binding, [false]), 2);
const property2 = value4[0];
const env0_6 = value4[1];
const value5 = binding.useCallback(function() {
var value2 = claimableRewards.find(_fun80937);
if (value2 != null) {
onSelect(value2);
}
}, [onSelect, property, claimableRewards]);
const value6 = binding.useCallback(_fun80938, []);
const value7 = binding.useMemo(_fun80939, [property, claimableRewards]);
binding.useEffect(_fun80941, [property, claimableRewards, property2, defaultHighlightedReward, value7]);
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let value = (
<Text
style={styles.header}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
accessibilityRole="header"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+ByEeM'])}
</Text>
);
value = (
<View style={styles.headerContainer}>
{value}
<Text
style={styles.subtitle}
variant="text-md/medium"
color="text-default"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vPeaOS)}
</Text>
</View>
);
const items3 = [
<ScrollView style={styles.scroll} contentContainerStyle={styles.contentContainer}>
{value}
{((Component) => <Component rewardsToDisplay={allRewards} claimableRewards={claimableRewards} onSelect={value6} highlightedSkuId={property} />)(GiftingSKUCardsGrid)}
</ScrollView>,
];
const items4 = [styles.buttonContainer];
items4[1] = {paddingBottom: bottom};
const Button = (ButtonNativeModule).Button;
items3[1] = (
<View style={items4}>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3d0Nmb'])}
onPress={value5}
disabled={property == null || !value7}
/>
</View>
);
return (
<View style={styles.container}>
{items3}
</View>
);
function _fun80936() { // fn#80936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:947, offset: 0x01e909bd, size: 48 bytes, params: 1, frame: 12
const value2 = claimableRewards.find(_fun80937);
if (value2 != null) {
onSelect(value2);
}
function _fun80937(a0) { // fn#80937, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
return a0 === env1_3;
}
function GiftingSKUSelectScreen({defaultHighlightedReward, allRewards, claimableRewards, onSelect}) { // fn#80935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:717, offset: 0x01e90699, size: 804 bytes, params: 2, frame: 35
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const binding = env0_4;
let useState = binding.useState;
let value2 = Reflect.apply(useState, binding, [defaultHighlightedReward]);
const binding2 = env0_3;
const value3 = binding2(value2, 2);
const property = value3[0];
var env0_4 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value4[0];
const env0_6 = value4[1];
const value5 = binding.useCallback(function() {
var value2 = claimableRewards.find(_fun80937);
if (value2 != null) {
onSelect(value2);
}
}, [onSelect, property, claimableRewards]);
const value6 = binding.useCallback(_fun80938, []);
const value7 = binding.useMemo(_fun80939, [property, claimableRewards]);
binding.useEffect(_fun80941, [property, claimableRewards, property2, defaultHighlightedReward, value7]);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let value = <Text style={styles.header} variant="heading-xl/extrabold" color="mobile-text-heading-primary" accessibilityRole="header">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+ByEeM'])}</Text>;
value = <View style={styles.headerContainer}>{value}<Text style={styles.subtitle} variant="text-md/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vPeaOS)}</Text></View>;
const items3 = [<ScrollView style={styles.scroll} contentContainerStyle={styles.contentContainer}>{value}{((Component) => <Component rewardsToDisplay={allRewards} claimableRewards={claimableRewards} onSelect={value6} highlightedSkuId={property} />)(importDefault(10457) /* metro dependency 10457: GiftingSKUCardsGrid */)}</ScrollView>];
const items4 = [styles.buttonContainer];
items4[1] = {paddingBottom: bottom};
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items3[1] = <View style={items4}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3d0Nmb'])} onPress={value5} disabled={property == null || !value7} /></View>;
return (
<View style={styles.container}>
{items3}
</View>
);
}
function _fun80936() { // fn#80936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:947, offset: 0x01e909bd, size: 48 bytes, params: 1, frame: 12
const value2 = claimableRewards.find(_fun80937);
if (value2 != null) {
onSelect(value2);
}
}
function _fun80938(a0) { // fn#80938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1019, offset: 0x01e909fd, size: 30 bytes, params: 2, frame: 12
env0_4(a0);
env0_6(true);
}
function _fun80938(a0) { // fn#80938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1019, offset: 0x01e909fd, size: 30 bytes, params: 2, frame: 12
env0_4(a0);
env0_6(true);
}
function _fun80939() { // fn#80939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1053, offset: 0x01e90a1b, size: 42 bytes, params: 1, frame: 12
return Module00057 != null && claimableRewards.some(_fun80940);
function _fun80940(a0) { // fn#80940, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
return a0 === env1_3;
}
function _fun80939() { // fn#80939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1053, offset: 0x01e90a1b, size: 42 bytes, params: 1, frame: 12
return env0_3 != null && claimableRewards.some(_fun80940);
}
}
function _fun80941() { // fn#80941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1113, offset: 0x01e90a45, size: 134 bytes, params: 1, frame: 13
var r4;
var binding;
if (claimableRewards.length === 0) {
env0_4(undefined);
} else if (env0_7) {
claimableRewardsBinding = claimableRewards;
if (!claimableRewardsBinding.some(_fun80942)) {
binding = env0_5;
r4 = !binding && defaultHighlightedReward != null;
r4 = r4 && claimableRewards.some(function(a0) {
function _fun80941() { // fn#80941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10642:1113, offset: 0x01e90a45, size: 134 bytes, params: 1, frame: 13
var r4;
var binding;
if (claimableRewards.length === 0) {
env0_4(undefined);
} else if (env0_7) {
claimableRewardsBinding = claimableRewards;
if (!claimableRewardsBinding.some(_fun80942)) {
binding = env0_5;
r4 = !binding && defaultHighlightedReward != null;
r4 = r4 && claimableRewards.some(function(a0) {
return a0 === defaultHighlightedReward;
});
binding = env0_4;
binding(r4 ? defaultHighlightedReward : undefined);
}
} else {
binding = env0_5;
r4 = !binding && defaultHighlightedReward != null;
r4 = r4 && claimableRewards.some(_fun80943);
binding = env0_4;
binding(r4 ? defaultHighlightedReward : undefined);
}
function _fun80942(a0) { // fn#80942, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
return a0 === env1_3;
}
function _fun80943(a0) { // fn#80943, offset: 0x01e90acb, size: 16 bytes, params: 2, frame: 2
return a0 === defaultHighlightedReward;
});
binding = env0_4;
binding(r4 ? defaultHighlightedReward : undefined);
}
}
} else {
binding = env0_5;
r4 = !binding && defaultHighlightedReward != null;
r4 = r4 && claimableRewards.some(_fun80943);
binding = env0_4;
binding(r4 ? defaultHighlightedReward : undefined);
}
}
function _fun80937(a0) { // fn#80937, offset: 0x01e909ed, size: 16 bytes, params: 2, frame: 2
return a0 === env1_3;
}
global.__d(_fun80934, 10456, [57, 31, 27, 33, 4501, 697, 1585, 4573, 1244, 10457, 4578,
2]) /* metro module 10456, dependencies: [57, 31, 27, 33, 4501, 697, 1585, 4573, 1244, 10457, 4578, 2] */;
@@ -1,4 +1,7 @@
/* Metro module 8327; source: modules/premium/gifting/shared/FriendAnniversaryUtils.tsx; dependencies: [3381, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module03381Module from '../../../../by-id/module-03381.js'; /* Metro dependency 3381 */
function _fun66336(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:6, offset: 0x01bf72a9, size: 166 bytes, params: 8, frame: 18
const env0_0 = require;
const _arrayLikeToArray_66339 = function(a0, a1) {
@@ -46,7 +49,7 @@ function _fun66336(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/shared/FriendAnniversaryUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/shared/FriendAnniversaryUtils.tsx');
exports.FRIEND_ANNIVERSARY_ELIGIBILITY_WINDOW_DAYS = 7;
exports.isFriendAnniversary = isFriendAnniversary;
exports.yearsSince = yearsSince;
@@ -68,198 +71,212 @@ function _fun66336(global, require, importDefault, importAll, module, exports, d
}
return object;
};
}
function _createForOfIteratorHelperLoose_66337(a0, a1) { // fn#66337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:46, offset: 0x01bf734f, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_66337(a0, a1) { // fn#66337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:46, offset: 0x01bf734f, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun66338;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_66339(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun66338;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_66339(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_66339(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun66338;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function isFriendAnniversary(a0) { // fn#66340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1169, offset: 0x01bf74c3, size: 224 bytes, params: 2, frame: 24
var r1;
var property;
var moduleValue;
var setYear;
var value5;
var moduleValue2;
var isSameDay;
var Math;
var abs;
var moduleValue3;
var differenceInDays;
var value6;
const Date = global.Date;
const date = new Date();
const fullYear = date.getFullYear();
const items2 = [-1];
const value3 = 0;
items2[1] = value3;
items2[2] = 1;
let length = items2.length;
if (value3 < length) {
r1 = value3;
reducibleLoop1: while (true) {
property = items2[r1];
moduleValue = require(dependencyMap[value3]);
setYear = moduleValue.setYear;
value5 = Reflect.apply(setYear, moduleValue, [a0, fullYear + property]);
moduleValue2 = require(dependencyMap[value3]);
isSameDay = moduleValue2.isSameDay;
if (!Reflect.apply(isSameDay, moduleValue2, [value5, a0])) {
Math = global.Math;
abs = Math.abs;
moduleValue3 = require(dependencyMap[value3]);
differenceInDays = moduleValue3.differenceInDays;
reducibleJoin4: while (true) {
if (Reflect.apply(abs, Math, [Reflect.apply(differenceInDays, moduleValue3, [date,
value5])]) <= 7) {
return true;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_66339(a0, value);
r6 = value;
} else {
r6 = value;
}
break reducibleJoin4;
}
r5 = r6;
}
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
length = items2.length;
if (!(value6 < length)) {
return false;
}
r1 = value6;
continue reducibleLoop1;
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun66338;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun66338() { // fn#66338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:617, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
return false;
}
function yearsSince(a0) { // fn#66341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1412, offset: 0x01bf75a3, size: 92 bytes, params: 2, frame: 15
const Math = global.Math;
const round = Math.round;
var value;
const differenceInMonths = (require(3381) /* metro dependency 3381 */).differenceInMonths;
const Date = global.Date;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date();
value = Reflect.apply(differenceInMonths, value, [date instanceof Object ? date : value2, a0]);
return Reflect.apply(round, Math, [value / 12]);
}
function categorizeFriendAnniversariesByAffinity(a0, a1, a2) { // fn#66342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1541, offset: 0x01bf75ff, size: 295 bytes, params: 4, frame: 25
var r6;
var r5;
var value5;
var value6;
var done;
var value7;
var value8;
var value9;
var value10;
var value11;
var value12;
var value13;
var Math;
let Set = global.Set;
let set = new Set();
Set = global.Set;
set = new Set();
if (a2) {
Math = global.Math;
a0.slice(0, Math.ceil(a0.length / 2)).forEach(_fun66343);
a0.forEach(_fun66344);
} else {
value5 = _createForOfIteratorHelperLoose_66337(a0);
value6 = value5();
done = value6.done;
if (!done) {
r6 = value6;
while (true) {
value7 = r6.value;
value8 = a1(value7);
value9 = value8 != null;
if (value9) {
value10 = value8 > 0.7;
r5 = value10;
} else {
r5 = value9;
function isFriendAnniversary(a0) { // fn#66340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1169, offset: 0x01bf74c3, size: 224 bytes, params: 2, frame: 24
var r1;
var property;
var moduleValue;
var setYear;
var value5;
var moduleValue2;
var isSameDay;
var Math;
var abs;
var moduleValue3;
var differenceInDays;
var value6;
const Date = global.Date;
const date = new Date();
const fullYear = date.getFullYear();
const items2 = [-1];
const value3 = 0;
items2[1] = value3;
items2[2] = 1;
let length = items2.length;
if (value3 < length) {
r1 = value3;
reducibleLoop1: while (true) {
property = items2[r1];
moduleValue = require(dependencyMap[value3]);
setYear = moduleValue.setYear;
value5 = Reflect.apply(setYear, moduleValue, [a0, fullYear + property]);
moduleValue2 = require(dependencyMap[value3]);
isSameDay = moduleValue2.isSameDay;
if (!Reflect.apply(isSameDay, moduleValue2, [value5, a0])) {
Math = global.Math;
abs = Math.abs;
moduleValue3 = require(dependencyMap[value3]);
differenceInDays = moduleValue3.differenceInDays;
reducibleJoin4: while (true) {
if (Reflect.apply(abs, Math, [Reflect.apply(differenceInDays, moduleValue3, [date,
value5])]) <= 7) {
return true;
}
break reducibleJoin4;
}
}
if (!r5) {
continue;
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
length = items2.length;
if (!(value6 < length)) {
return false;
}
set.add(value7);
value11 = value8 != null;
if (!value11) {
r5 = value11;
continue;
}
value12 = value8 > 0.5;
r5 = value12;
if (!r5) {
continue;
}
set.add(value7);
value13 = value5();
done = value13.done;
if (done) {
break;
}
r6 = value13;
continue;
r1 = value6;
continue reducibleLoop1;
}
}
return false;
}
return {highestAffinity: set, highAffinity: set};
function yearsSince(a0) { // fn#66341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1412, offset: 0x01bf75a3, size: 92 bytes, params: 2, frame: 15
const Math = global.Math;
const round = Math.round;
var value;
const differenceInMonths = (Module03381Module).differenceInMonths;
const Date = global.Date;
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date();
value = Reflect.apply(differenceInMonths, value, [date instanceof Object ? date : value2, a0]);
return Reflect.apply(round, Math, [value / 12]);
}
function categorizeFriendAnniversariesByAffinity(a0, a1, a2) { // fn#66342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1541, offset: 0x01bf75ff, size: 295 bytes, params: 4, frame: 25
var r6;
var r5;
var value5;
var value6;
var done;
var value7;
var value8;
var value9;
var value10;
var value11;
var value12;
var value13;
var Math;
let Set = global.Set;
let set = new Set();
Set = global.Set;
set = new Set();
if (a2) {
Math = global.Math;
a0.slice(0, Math.ceil(a0.length / 2)).forEach(_fun66343);
a0.forEach(_fun66344);
} else {
value5 = _createForOfIteratorHelperLoose_66337(a0);
value6 = value5();
done = value6.done;
if (!done) {
r6 = value6;
while (true) {
value7 = r6.value;
value8 = a1(value7);
value9 = value8 != null;
if (value9) {
value10 = value8 > 0.7;
r5 = value10;
} else {
r5 = value9;
}
if (!r5) {
continue;
}
set.add(value7);
value11 = value8 != null;
if (!value11) {
r5 = value11;
continue;
}
value12 = value8 > 0.5;
r5 = value12;
if (!r5) {
continue;
}
set.add(value7);
value13 = value5();
done = value13.done;
if (done) {
break;
}
r6 = value13;
continue;
}
}
}
return {highestAffinity: set, highAffinity: set};
function _fun66343(a0) { // fn#66343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1677, offset: 0x00c38a0f, size: 24 bytes, params: 2, frame: 11
env0_0.add(a0);
}
function _fun66344(a0) { // fn#66344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8512:1704, offset: 0x01bf7726, size: 24 bytes, params: 2, frame: 11
env0_1.add(a0);
}
}
}
global.__d(_fun66336, 8327, [3381, 2]) /* metro module 8327, dependencies: [3381, 2] */;
@@ -1,16 +1,19 @@
/* Metro module 11432; source: modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx; dependencies: [1880, 661, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as PremiumConstantsModule from '../../PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun87496(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11618:6, offset: 0x01fc0dab, size: 228 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1880) /* metro dependency 1880: PremiumConstants */).GiftIntentType;
const AnalyticsLocations = (require(661) /* metro dependency 661: Constants */).AnalyticsLocations;
const AnalyticsLocations = (ConstantsModule).AnalyticsLocations;
const Set = global.Set;
const FRIEND_ANNIVERSARIES_CHAT = AnalyticsLocations.FRIEND_ANNIVERSARIES_CHAT;
const FRIEND_ANNIVERSARIES_ACTION_BUTTON = AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON;
const FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK = AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK;
const set = new Set([FRIEND_ANNIVERSARIES_CHAT, FRIEND_ANNIVERSARIES_ACTION_BUTTON,
FRIEND_ANNIVERSARIES_ACTION_BUTTON_COACHMARK]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/utils/PremiumGiftingIntentUtils.tsx');
exports.getPremiumGiftingIntentAnalyticsLocation = function(a0) {
return a0 === GiftIntentType.FRIEND_ANNIVERSARY ? {chat: AnalyticsLocations.FRIEND_ANNIVERSARIES_CHAT,
actionButton: AnalyticsLocations.FRIEND_ANNIVERSARIES_ACTION_BUTTON,
@@ -20,9 +23,10 @@ function _fun87496(global, require, importDefault, importAll, module, exports, d
exports.parseGiftIntentType = function(a0) {
return a0 !== GiftIntentType.FRIEND_ANNIVERSARY ? null : GiftIntentType.FRIEND_ANNIVERSARY;
};
function isGiftingIntentLocation(a0) { // fn#87498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11618:680, offset: 0x00d715d9, size: 22 bytes, params: 2, frame: 11
return env0_2.has(a0);
}
}
function isGiftingIntentLocation(a0) { // fn#87498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11618:680, offset: 0x00d715d9, size: 22 bytes, params: 2, frame: 11
return env0_2.has(a0);
}
global.__d(_fun87496, 11432, [1880, 661, 2]) /* metro module 11432, dependencies: [1880, 661, 2] */;
@@ -1,99 +1,105 @@
/* Metro module 10436; source: modules/premium/gifting/utils/WishlistBannerUtils.tsx; dependencies: [31, 1244, 10034, 6829, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseWishlistHooksModule from '../../../wishlists/hooks/useWishlistHooks.tsx'; /* Metro dependency 10034 */
function _fun80777(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:6, offset: 0x01e88dc8, size: 507 bytes, params: 8, frame: 25
const env0_0 = require;
const closure = getBannerMode;
const getBannerMode2 = getBannerMode;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(31) /* metro dependency 31 */).useMemo;
const object = {};
let intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const object2 = {};
let intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object.FULL_WISHLIST = {title: Reflect.apply(string, intl, [t['7lZ31J']]), getSubtitle: function(a0) {
const t = (IndexNativeModule).t;
object2.FULL_WISHLIST = {title: Reflect.apply(string, intl, [t['7lZ31J']]), getSubtitle: function(a0) {
var intl = require(dependencyMap[1]).intl;
var BjEX38 = require(dependencyMap[1]).t.BjEX38;
return intl.formatToPlainString(BjEX38, {username: a0});
}, showIcons: false};
object.MIXED = {title: intl.string(t.pWG4ze), getSubtitle: function(a0) {
object2.MIXED = {title: intl.string(t.pWG4ze), getSubtitle: function(a0) {
return require(dependencyMap[1]).intl.formatToPlainString(require(dependencyMap[1]).t.dIDKgi, {username: a0});
}, showIcons: true};
string = intl.string;
const SK5rmi = t.SK5rmi;
object.SHOP_ONLY = {title: Reflect.apply(string, intl, [SK5rmi]), getSubtitle: function(a0) {
object2.SHOP_ONLY = {title: Reflect.apply(string, intl, [SK5rmi]), getSubtitle: function(a0) {
return require(dependencyMap[1]).intl.formatToPlainString(require(dependencyMap[1]).t.wyMp1j, {username: a0});
}, showIcons: false};
string = intl.string;
const BCi1gT = t.BCi1gT;
object.SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY = {title: Reflect.apply(string, intl, [BCi1gT]),
object2.SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY = {title: Reflect.apply(string, intl, [BCi1gT]),
getSubtitle: function(a0) {
var intl = require(dependencyMap[1]).intl;
var BjEX38 = require(dependencyMap[1]).t.BjEX38;
return intl.formatToPlainString(BjEX38, {username: a0});
}, showIcons: false};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/utils/WishlistBannerUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/utils/WishlistBannerUtils.tsx');
exports.BannerMode = {FULL_WISHLIST: 'FULL_WISHLIST', MIXED: 'MIXED', SHOP_ONLY: 'SHOP_ONLY',
SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY: 'SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY'};
exports.BANNER_CONFIG_MOBILE = object;
exports.BANNER_CONFIG_MOBILE = object2;
exports.getBannerModeFromDisplayItems = getBannerModeFromDisplayItems;
exports.getBannerMode = closure;
exports.getBannerMode = getBannerMode2;
exports.useWishlistBannerConfig = useWishlistBannerConfig;
}
function getBannerMode({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems}) { // fn#80778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:942, offset: 0x01e88fc3, size: 123 bytes, params: 2, frame: 11
return totalUnownedWishlistItemCount >= wishlistInDmLength ? env0_3.FULL_WISHLIST : totalUnownedWishlistItemCount > 0 ? env0_3.MIXED : displayItems.length > 0 && displayItems.every(_fun80779) ? env0_3.SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY : env0_3.SHOP_ONLY;
function _fun80779({sku, source}) { // fn#80779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1097, offset: 0x01e8903e, size: 91 bytes, params: 2, frame: 14
var r0;
let value = environment.__proto__;
const WishlistItemSource = (UseWishlistHooksModule).WishlistItemSource;
const POPULAR = WishlistItemSource.POPULAR;
const value2 = source === POPULAR;
if (value2) {
value = require(6829) /* metro dependency 6829: SlayerStorefrontUtils */;
value = value.isGameItemSKU(sku);
r0 = value;
} else {
r0 = value2;
}
return r0;
}
function getBannerMode({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems}) { // fn#80778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:942, offset: 0x01e88fc3, size: 123 bytes, params: 2, frame: 11
return totalUnownedWishlistItemCount >= wishlistInDmLength ? env0_3.FULL_WISHLIST : totalUnownedWishlistItemCount > 0 ? env0_3.MIXED : displayItems.length > 0 && displayItems.every(_fun80779) ? env0_3.SOCIAL_LAYER_STOREFRONT_RECOMMENDATIONS_ONLY : env0_3.SHOP_ONLY;
}
function getBannerModeFromDisplayItems({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems}) { // fn#80784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1402, offset: 0x01e89176, size: 90 bytes, params: 2, frame: 14
const getBannerModeBinding = getBannerMode;
const object2 = {totalUnownedWishlistItemCount: totalUnownedWishlistItemCount,
wishlistInDmLength: wishlistInDmLength};
object2.displayItems = displayItems.filter(function(a0) {
return a0.item.sku != null;
}).map(function({item, source}) {
return {sku: item.sku, source: source};
});
return getBannerModeBinding(object2);
}
function useWishlistBannerConfig({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems, recipientName}) { // fn#80787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1742, offset: 0x01e89206, size: 114 bytes, params: 2, frame: 16
let items2 = [totalUnownedWishlistItemCount, wishlistInDmLength, displayItems];
items2 = [useMemo(function() {
return getBannerMode({totalUnownedWishlistItemCount: totalUnownedWishlistItemCount,
wishlistInDmLength: wishlistInDmLength, displayItems: displayItems});
}, items2), recipientName];
return useMemo(_fun80789, items2);
}
function _fun80779({sku, source}) { // fn#80779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1097, offset: 0x01e8903e, size: 91 bytes, params: 2, frame: 14
var r0;
let value = environment.__proto__;
const WishlistItemSource = (require(10034) /* metro dependency 10034: useWishlistHooks */).WishlistItemSource;
const POPULAR = WishlistItemSource.POPULAR;
const value2 = source === POPULAR;
if (value2) {
value = require(6829) /* metro dependency 6829: SlayerStorefrontUtils */;
value = value.isGameItemSKU(sku);
r0 = value;
} else {
r0 = value2;
}
return r0;
}
function _fun80789() { // fn#80789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1980, offset: 0x01e892a8, size: 283 bytes, params: 1, frame: 18
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const binding = env0_4;
const FULL_WISHLIST = env1_3.FULL_WISHLIST;
if (FULL_WISHLIST === binding) {
return {title: intl.formatToPlainString(t['YcL/Vr'], {username: recipientName}), showIcons: false};
function getBannerModeFromDisplayItems({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems}) { // fn#80784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1402, offset: 0x01e89176, size: 90 bytes, params: 2, frame: 14
const getBannerModeBinding = getBannerMode;
const object = {totalUnownedWishlistItemCount: totalUnownedWishlistItemCount,
wishlistInDmLength: wishlistInDmLength};
object.displayItems = displayItems.filter(function(a0) {
return a0.item.sku != null;
}).map(function({item, source}) {
return {sku: item.sku, source: source};
});
return getBannerModeBinding(object);
}
const MIXED = env1_3.MIXED;
if (MIXED === binding) {
return {title: intl.formatToPlainString(t.dIDKgi, {username: recipientName}), showIcons: true};
function useWishlistBannerConfig({totalUnownedWishlistItemCount, wishlistInDmLength, displayItems, recipientName}) { // fn#80787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1742, offset: 0x01e89206, size: 114 bytes, params: 2, frame: 16
let items2 = [totalUnownedWishlistItemCount, wishlistInDmLength, displayItems];
items2 = [useMemo(function() {
return getBannerMode({totalUnownedWishlistItemCount: totalUnownedWishlistItemCount,
wishlistInDmLength: wishlistInDmLength, displayItems: displayItems});
}, items2), recipientName];
return useMemo(_fun80789, items2);
function _fun80789() { // fn#80789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10622:1980, offset: 0x01e892a8, size: 283 bytes, params: 1, frame: 18
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const binding = env0_4;
const FULL_WISHLIST = env1_3.FULL_WISHLIST;
if (FULL_WISHLIST === binding) {
return {title: intl.formatToPlainString(t['YcL/Vr'], {username: recipientName}), showIcons: false};
}
const MIXED = env1_3.MIXED;
if (MIXED === binding) {
return {title: intl.formatToPlainString(t.dIDKgi, {username: recipientName}), showIcons: true};
}
const string = intl.string;
const BCi1gT = t.BCi1gT;
return {title: Reflect.apply(string, intl, [BCi1gT]), showIcons: false};
}
}
const string = intl.string;
const BCi1gT = t.BCi1gT;
return {title: Reflect.apply(string, intl, [BCi1gT]), showIcons: false};
}
global.__d(_fun80777, 10436, [31, 1244, 10034, 6829,
2]) /* metro module 10436, dependencies: [31, 1244, 10034, 6829, 2] */;
@@ -1,14 +1,19 @@
/* Metro module 7674; source: modules/premium/gifting/utils/promotions/GiftingPromotionUtils.tsx; dependencies: [57, 31, 7261, 1880, 566, 7675, 7676, 7583, 3968, 1365, 2] */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import PromotionsStore from '../../../promotions/PromotionsStore.tsx'; /* Metro dependency 7261 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as Dismissible_contentModule from '../../../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as PremiumConstantsModule from '../../../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as UseFetchCollectiblesCategoriesAndPurchasesModule from '../../../../collectibles/hooks/useFetchCollectiblesCategoriesAndPurchases.tsx'; /* Metro dependency 7675 */
import * as GiftPromotionReminderExperimentModule from '../../experiments/GiftPromotionReminderExperiment.tsx'; /* Metro dependency 7676 */
function _fun61309(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:6, offset: 0x01b3aef3, size: 277 bytes, params: 8, frame: 20
let env0_0 = require;
const closure = useIsPlanEligibleForGiftingPromotion;
const useIsPlanEligibleForGiftingPromotion2 = useIsPlanEligibleForGiftingPromotion;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
const promotionsStore = importDefault(7261) /* metro dependency 7261: PromotionsStore */;
const env0_5 = (require(1880) /* metro dependency 1880: PremiumConstants */).SubscriptionPlans;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/gifting/utils/promotions/GiftingPromotionUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/utils/promotions/GiftingPromotionUtils.tsx');
exports.useFetchClaimableGiftingPromotionRewardSkuIds = useFetchClaimableGiftingPromotionRewardSkuIds;
exports.getRewardAssetIdMap = function(a0) {
var Map = global.Map;
@@ -23,7 +28,7 @@ function _fun61309(global, require, importDefault, importAll, module, exports, d
exports.useShouldAutoSelectGiftingPromotionReward = function(a0, a1, a2) {
return a2 != null && a2.length === 1 && useIsPlanEligibleForGiftingPromotion(a0) && a1;
};
exports.useIsPlanEligibleForGiftingPromotion = closure;
exports.useIsPlanEligibleForGiftingPromotion = useIsPlanEligibleForGiftingPromotion2;
exports.createGradientStyle = createGradientStyle;
exports.createBackgroundStyle = function(a0) {
if (a0 != null) {
@@ -33,76 +38,143 @@ function _fun61309(global, require, importDefault, importAll, module, exports, d
};
exports.combinePromotionStyles = combinePromotionStyles;
exports.shouldShowGiftPromotionReminderNotice = shouldShowGiftPromotionReminderNotice;
}
function useIsPlanEligibleForGiftingPromotion(a0) { // fn#61310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:154, offset: 0x01b3b008, size: 66 bytes, params: 2, frame: 13
const PREMIUM_YEAR_TIER_2 = SubscriptionPlans.PREMIUM_YEAR_TIER_2;
const items2 = [PREMIUM_YEAR_TIER_2];
const PREMIUM_MONTH_TIER_2 = SubscriptionPlans.PREMIUM_MONTH_TIER_2;
items2[1] = PREMIUM_MONTH_TIER_2;
return items2.includes(a0?.id);
}
function useFetchClaimableGiftingPromotionRewardSkuIds() { // fn#61311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:435, offset: 0x01b3b04a, size: 209 bytes, params: 1, frame: 19
const binding = env0_3;
const [property, env0_0] = env0_2(binding.useState(), 2);
const value = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([PromotionsStore],
function() {
return PromotionsStore.getGiftPromotionRewardSkuIds();
});
const {purchases, hasPreviouslyFetched,
fetchPurchasesError} = (require(7675) /* metro dependency 7675: useFetchCollectiblesCategoriesAndPurchases */).useFetchPurchases();
const env0_5 = binding.useRef(false);
binding.useEffect(_fun61313, [value, purchases, hasPreviouslyFetched, fetchPurchasesError]);
return property;
}
function getRewardAssetIdMap(a0) { // fn#61315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:879, offset: 0x01b3b1af, size: 54 bytes, params: 2, frame: 12
const Map = global.Map;
const map = new Map();
a0.forEach(_fun61316);
return map;
}
function createGradientStyle(a0, a1) { // fn#61319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:1423, offset: 0x01b3b27b, size: 272 bytes, params: 3, frame: 21
var r1;
var r0;
var r9;
var r4;
var r7;
var r6;
var r5;
var reverse;
var colorStops;
var defaultAngle;
var Array;
var isArray;
let value = a0;
if (value != null) {
r1 = a1 ?? ({});
reverse = r1.reverse;
r0 = reverse !== undefined && reverse;
colorStops = r1.colorStops;
defaultAngle = r1.defaultAngle;
r9 = defaultAngle === undefined ? 78.98 : defaultAngle;
Array = global.Array;
isArray = Array.isArray;
r4 = Reflect.apply(isArray, Array, [value]) ? value : value.gradient;
Array = global.Array;
isArray = Array.isArray;
r7 = Reflect.apply(isArray, Array, [value]) || value.angle == null ? r9 : value.angle;
r6 = r0 ? (r7 + 180) % 360 : r7;
if (colorStops != null) {
value = r4.map(function(a0, a1) {
return '' + a0 + ' ' + colorStops[a1] + '%';
});
value = value.join(', ');
r5 = value;
} else {
r5 = r4.join(', ');
}
return {background: 'linear-gradient(' + r6 + 'deg, ' + r5 + ')'};
function useIsPlanEligibleForGiftingPromotion(a0) { // fn#61310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:154, offset: 0x01b3b008, size: 66 bytes, params: 2, frame: 13
const PREMIUM_YEAR_TIER_2 = SubscriptionPlans.PREMIUM_YEAR_TIER_2;
const items2 = [PREMIUM_YEAR_TIER_2];
const PREMIUM_MONTH_TIER_2 = SubscriptionPlans.PREMIUM_MONTH_TIER_2;
items2[1] = PREMIUM_MONTH_TIER_2;
return items2.includes(a0?.id);
}
function useFetchClaimableGiftingPromotionRewardSkuIds() { // fn#61311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:435, offset: 0x01b3b04a, size: 209 bytes, params: 1, frame: 19
const [property, env0_0] = Module00057(ReactModule.useState(), 2);
const value = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([PromotionsStore],
function() {
return PromotionsStore.getGiftPromotionRewardSkuIds();
});
const {purchases, hasPreviouslyFetched,
fetchPurchasesError} = (UseFetchCollectiblesCategoriesAndPurchasesModule).useFetchPurchases();
const env0_5 = ReactModule.useRef(false);
ReactModule.useEffect(_fun61313, [value, purchases, hasPreviouslyFetched, fetchPurchasesError]);
return property;
function _fun61313() { // fn#61313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:740, offset: 0x01b3b12e, size: 101 bytes, params: 1, frame: 13
if (hasPreviouslyFetched) {
if (!env0_5.current) {
if (env0_1.length > 0) {
env0_0(fetchPurchasesError == null ? env0_1.filter(_fun61314) : []);
env0_5.current = true;
}
}
}
function _fun61314(a0) { // fn#61314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:799, offset: 0x01b3b193, size: 28 bytes, params: 2, frame: 11
const value = environment.__proto__;
return purchases.get(a0) == null;
}
}
}
function getRewardAssetIdMap(a0) { // fn#61315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:879, offset: 0x01b3b1af, size: 54 bytes, params: 2, frame: 12
const Map = global.Map;
const map = new Map();
a0.forEach(_fun61316);
return map;
function _fun61316({skuId, assetId}) { // fn#61316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:943, offset: 0x01b3b1e5, size: 34 bytes, params: 2, frame: 13
return env0_0.set(skuId, assetId);
}
}
function createGradientStyle(a0, a1) { // fn#61319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:1423, offset: 0x01b3b27b, size: 272 bytes, params: 3, frame: 21
var r1;
var r0;
var r9;
var r4;
var r7;
var r6;
var r5;
var reverse;
var colorStops;
var defaultAngle;
var Array;
var isArray;
let value = a0;
if (value != null) {
r1 = a1 ?? ({});
reverse = r1.reverse;
r0 = reverse !== undefined && reverse;
colorStops = r1.colorStops;
defaultAngle = r1.defaultAngle;
r9 = defaultAngle === undefined ? 78.98 : defaultAngle;
Array = global.Array;
isArray = Array.isArray;
r4 = Reflect.apply(isArray, Array, [value]) ? value : value.gradient;
Array = global.Array;
isArray = Array.isArray;
r7 = Reflect.apply(isArray, Array, [value]) || value.angle == null ? r9 : value.angle;
r6 = r0 ? (r7 + 180) % 360 : r7;
if (colorStops != null) {
value = r4.map(function(a0, a1) {
return '' + a0 + ' ' + colorStops[a1] + '%';
});
value = value.join(', ');
r5 = value;
} else {
r5 = r4.join(', ');
}
return {background: 'linear-gradient(' + r6 + 'deg, ' + r5 + ')'};
}
}
function shouldShowGiftPromotionReminderNotice() { // fn#61323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:2410, offset: 0x01b3b498, size: 299 bytes, params: 1, frame: 19
var id;
var r1;
var r0;
var promotionsStoreBinding;
var giftPromotion;
var value5;
var moduleValue;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
var isDismissed;
var value;
const value2 = undefined;
const GiftPromotionReminderExperiment = (GiftPromotionReminderExperimentModule).GiftPromotionReminderExperiment;
const getConfig = GiftPromotionReminderExperiment.getConfig;
if (Reflect.apply(getConfig, GiftPromotionReminderExperiment,
[{location: 'shouldShowGiftPromotionReminderNotice'}]).enabled) {
promotionsStoreBinding = PromotionsStore;
if (promotionsStoreBinding.getMarketingComponentByType((require(7583) /* metro dependency 7583: MarketingComponentType */).MarketingComponentType.GIFT_REMINDER_NAGBAR) == null) {
return false;
}
giftPromotion = PromotionsStore.getGiftPromotion();
id = giftPromotion == null ? value2 : giftPromotion.id;
value5 = id != null;
if (value5) {
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
isDismissed = moduleValue.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_DESKTOP_FIRST_TIME_COACHMARK,
id).isDismissed;
if (isDismissed) {
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
value = !value.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_REMINDER,
id).isDismissed;
r1 = value;
} else {
r1 = !!isDismissed;
}
r0 = r1;
} else {
r0 = value5;
}
return r0;
}
return false;
}
}
function combinePromotionStyles(a0, a1) { // fn#61322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:1992, offset: 0x01b3b3ff, size: 153 bytes, params: 3, frame: 17
@@ -125,69 +197,5 @@ function combinePromotionStyles(a0, a1) { // fn#61322, source: /ci/build/discord
return value ?? (value2 ?? ({}));
}
function shouldShowGiftPromotionReminderNotice() { // fn#61323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:2410, offset: 0x01b3b498, size: 299 bytes, params: 1, frame: 19
var id;
var r1;
var r0;
var giftPromotion;
var value5;
var moduleValue;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
var isDismissed;
var value;
const value2 = undefined;
const GiftPromotionReminderExperiment = (require(7676) /* metro dependency 7676: GiftPromotionReminderExperiment */).GiftPromotionReminderExperiment;
const getConfig = GiftPromotionReminderExperiment.getConfig;
if (Reflect.apply(getConfig, GiftPromotionReminderExperiment,
[{location: 'shouldShowGiftPromotionReminderNotice'}]).enabled) {
if (PromotionsStore.getMarketingComponentByType((require(7583) /* metro dependency 7583: MarketingComponentType */).MarketingComponentType.GIFT_REMINDER_NAGBAR) == null) {
return false;
}
giftPromotion = PromotionsStore.getGiftPromotion();
id = giftPromotion == null ? value2 : giftPromotion.id;
value5 = id != null;
if (value5) {
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
isDismissed = moduleValue.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_DESKTOP_FIRST_TIME_COACHMARK,
id).isDismissed;
if (isDismissed) {
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
value = !value.UNSAFE_isSnowflakeBoundDismissibleContentDismissed(DismissibleContent.GIFTING_PROMOTION_REMINDER,
id).isDismissed;
r1 = value;
} else {
r1 = !!isDismissed;
}
r0 = r1;
} else {
r0 = value5;
}
return r0;
}
return false;
}
function _fun61313() { // fn#61313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:740, offset: 0x01b3b12e, size: 101 bytes, params: 1, frame: 13
if (hasPreviouslyFetched) {
if (!env0_5.current) {
if (env0_1.length > 0) {
env0_0(fetchPurchasesError == null ? env0_1.filter(_fun61314) : []);
env0_5.current = true;
}
}
}
}
function _fun61316({skuId, assetId}) { // fn#61316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:943, offset: 0x01b3b1e5, size: 34 bytes, params: 2, frame: 13
return env0_0.set(skuId, assetId);
}
function _fun61314(a0) { // fn#61314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7852:799, offset: 0x01b3b193, size: 28 bytes, params: 2, frame: 11
const value = environment.__proto__;
return purchases.get(a0) == null;
}
global.__d(_fun61309, 7674, [57, 31, 7261, 1880, 566, 7675, 7676, 7583, 3968, 1365,
2]) /* metro module 7674, dependencies: [57, 31, 7261, 1880, 566, 7675, 7676, 7583, 3968, 1365, 2] */;
@@ -1,89 +1,95 @@
/* Metro module 7259; source: modules/premium/hooks/useDiscountOffer.tsx; dependencies: [57, 31, 1878, 7064, 1880, 566, 3802, 4041, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UserOfferStore from '../../../stores/billing/UserOfferStore.tsx'; /* Metro dependency 7064 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun58310(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:6, offset: 0x016c47f4, size: 195 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const userOfferStore = importDefault(7064) /* metro dependency 7064: UserOfferStore */;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_6 = premiumConstantsModule.PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID;
const env0_7 = premiumConstantsModule.PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useDiscountOffer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/useDiscountOffer.tsx');
exports.default = useDiscountOffer;
}
function useDiscountOffer(a0, a1) { // fn#58311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:322, offset: 0x016c48b7, size: 259 bytes, params: 3, frame: 21
const env0_0 = a0;
const value2 = undefined;
const userDiscountOffer = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserOfferStore],
_fun58312);
const binding = env0_3;
const useState = binding.useState;
const value3 = null;
const r10 = value3 == userDiscountOffer ? value2 : userDiscountOffer.hasExpired();
const value6 = env0_2(Reflect.apply(useState, binding, [value3 != r10 && r10]), 2);
const property = value6[0];
var env0_3 = value6[1];
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return require(dependencyMap[6]).isPremium(UserStore.getCurrentUser());
});
env0_3.useEffect(_fun58314, [property, userDiscountOffer]);
return property ? value3 : value7 ? a1 || a0 === PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID ? userDiscountOffer : a0 !== PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID ? value3 : userDiscountOffer : userDiscountOffer;
}
function _fun58312() { // fn#58312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:393, offset: 0x016c49ba, size: 29 bytes, params: 1, frame: 11
return UserOfferStore.getUserDiscountOffer(env0_0);
}
function _fun58314() { // fn#58314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:603, offset: 0x016c4a0a, size: 111 bytes, params: 1, frame: 12
var environment;
var timeout;
var value;
let userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding != null) {
userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding.hasAcknowledged()) {
value = environment.__proto__;
timeout = new (require(4041) /* metro dependency 4041: Timers */).Timeout();
startTimer_58315();
return _fun58317;
function useDiscountOffer(a0, a1) { // fn#58311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:322, offset: 0x016c48b7, size: 259 bytes, params: 3, frame: 21
const env0_0 = a0;
const value2 = undefined;
const userDiscountOffer = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserOfferStore],
_fun58312);
const binding = env0_3;
const useState = binding.useState;
const value3 = null;
const r10 = value3 == userDiscountOffer ? value2 : userDiscountOffer.hasExpired();
const value6 = Module00057(Reflect.apply(useState, binding, [value3 != r10 && r10]), 2);
const property = value6[0];
var env0_3 = value6[1];
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return require(dependencyMap[6]).isPremium(UserStore.getCurrentUser());
});
env0_3.useEffect(_fun58314, [property, userDiscountOffer]);
return property ? value3 : value7 ? a1 || a0 === PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID ? userDiscountOffer : a0 !== PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID ? value3 : userDiscountOffer : userDiscountOffer;
function _fun58312() { // fn#58312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:393, offset: 0x016c49ba, size: 29 bytes, params: 1, frame: 11
return UserOfferStore.getUserDiscountOffer(env0_0);
}
}
}
function startTimer_58315() { // fn#58315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:679, offset: 0x016c4a79, size: 102 bytes, params: 1, frame: 14
var environment;
var r3;
var Date;
let value = environment.__proto__;
if (userDiscountOffer.expiresAt != null) {
value = userDiscountOffer.expiresAt.getTime();
Date = global.Date;
value -= Date.now();
r3 = value;
} else {
r3 = 0;
}
if (env0_0 != null) {
env0_0.start(r3, _fun58316);
}
}
function _fun58314() { // fn#58314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:603, offset: 0x016c4a0a, size: 111 bytes, params: 1, frame: 12
var environment;
var timeout;
var value;
let userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding != null) {
userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding.hasAcknowledged()) {
value = environment.__proto__;
timeout = new (require(4041) /* metro dependency 4041: Timers */).Timeout();
startTimer_58315();
return _fun58317;
}
}
function startTimer_58315() { // fn#58315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:679, offset: 0x016c4a79, size: 102 bytes, params: 1, frame: 14
var environment;
var r3;
var Date;
let value = environment.__proto__;
if (userDiscountOffer.expiresAt != null) {
value = userDiscountOffer.expiresAt.getTime();
Date = global.Date;
value -= Date.now();
r3 = value;
} else {
r3 = 0;
}
if (env0_0 != null) {
env0_0.start(r3, _fun58316);
}
function _fun58316() { // fn#58316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:763, offset: 0x016c4adf, size: 59 bytes, params: 1, frame: 11
var userDiscountOfferBinding;
if (env2_2) {
value = environment.__proto__;
startTimer_58315();
} else {
userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding.hasExpired()) {
env2_3(true);
} else {
value = environment.__proto__;
startTimer_58315();
}
}
}
}
function _fun58317() { // fn#58317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:830, offset: 0x00dc92ce, size: 19 bytes, params: 1, frame: 9
return env0_0.stop();
}
function _fun58316() { // fn#58316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:763, offset: 0x016c4adf, size: 59 bytes, params: 1, frame: 11
var userDiscountOfferBinding;
if (env2_2) {
value = environment.__proto__;
startTimer_58315();
} else {
userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding.hasExpired()) {
env2_3(true);
} else {
value = environment.__proto__;
startTimer_58315();
}
}
}
global.__d(_fun58310, 7259, [57, 31, 1878, 7064, 1880, 566, 3802, 4041,
2]) /* metro module 7259, dependencies: [57, 31, 1878, 7064, 1880, 566, 3802, 4041, 2] */;
@@ -1,56 +1,62 @@
/* Metro module 7036; source: modules/premium/hooks/useGeoForUser.native.tsx; dependencies: [31, 1226, 3804, 5140, 566, 7033, 4223, 2] */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import BillingInfoStore from '../../../stores/billing/BillingInfoStore.tsx'; /* Metro dependency 3804 */
import IAPStoreAndroid from '../../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ProductIdsIosModule from '../native/ProductIds.ios.tsx'; /* Metro dependency 7033 */
function _fun55745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:6, offset: 0x013b0bf6, size: 167 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const billingInfoStore = importDefault(3804) /* metro dependency 3804: BillingInfoStore */;
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useGeoForUser.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/useGeoForUser.native.tsx');
exports.default = useGeoForUser;
}
function useGeoForUser() { // fn#55746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:226, offset: 0x013b0c9d, size: 218 bytes, params: 1, frame: 20
const value2 = undefined;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([IAPStoreAndroid], _fun55747);
const ipLocation = (require(566) /* metro dependency 566: flux */).useStateFromStores([BillingInfoStore],
function() {
return BillingInfoStore.ipLocation;
});
ReactModule.useEffect(_fun55750, [ipLocation,
(require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
return AuthenticationStore.isAuthenticated();
})]);
return {defaultBillingCountryCode: value3, ipCountryCode: ipLocation == null ? value2 : ipLocation.countryCode,
ipSubdivisionCode: ipLocation == null ? value2 : ipLocation.subdivisionCode};
function _fun55747() { // fn#55747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:289, offset: 0x013b0d77, size: 69 bytes, params: 1, frame: 13
let value = environment.__proto__;
const iapStoreAndroidBinding = IAPStoreAndroid;
const getProduct = iapStoreAndroidBinding.getProduct;
value = undefined;
const ProductIds = (ProductIdsIosModule).ProductIds;
const PREMIUM_TIER_2_MONTHLY = ProductIds.PREMIUM_TIER_2_MONTHLY;
const value2 = Reflect.apply(getProduct, iapStoreAndroidBinding, [PREMIUM_TIER_2_MONTHLY]);
return value2 == null ? value : value2.countryCode;
}
function useGeoForUser() { // fn#55746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:226, offset: 0x013b0c9d, size: 218 bytes, params: 1, frame: 20
const value2 = undefined;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([IAPStoreAndroid], _fun55747);
const ipLocation = (require(566) /* metro dependency 566: flux */).useStateFromStores([BillingInfoStore],
function() {
return BillingInfoStore.ipLocation;
});
env0_3.useEffect(_fun55750, [ipLocation,
(require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
return AuthenticationStore.isAuthenticated();
})]);
return {defaultBillingCountryCode: value3, ipCountryCode: ipLocation == null ? value2 : ipLocation.countryCode,
ipSubdivisionCode: ipLocation == null ? value2 : ipLocation.subdivisionCode};
}
function _fun55750() { // fn#55750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:530, offset: 0x013b0de0, size: 70 bytes, params: 1, frame: 11
var r0;
var value;
const binding = env0_0;
if (binding) {
value = environment.__proto__;
value = !BillingInfoStore.ipLocationLoaded;
r0 = value;
} else {
r0 = binding;
}
if (r0) {
value = environment.__proto__;
value = importAll(4223) /* metro dependency 4223: BillingActionCreators */;
value.fetchIpLocation();
}
}
function _fun55747() { // fn#55747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:289, offset: 0x013b0d77, size: 69 bytes, params: 1, frame: 13
let value = environment.__proto__;
const getProduct = IAPStoreAndroid.getProduct;
value = undefined;
const ProductIds = (require(7033) /* metro dependency 7033: ProductIdsIos */).ProductIds;
const PREMIUM_TIER_2_MONTHLY = ProductIds.PREMIUM_TIER_2_MONTHLY;
const value2 = Reflect.apply(getProduct, IAPStoreAndroid, [PREMIUM_TIER_2_MONTHLY]);
return value2 == null ? value : value2.countryCode;
}
function _fun55750() { // fn#55750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:530, offset: 0x013b0de0, size: 70 bytes, params: 1, frame: 11
var r0;
var value;
const binding = env0_0;
if (binding) {
value = environment.__proto__;
value = !BillingInfoStore.ipLocationLoaded;
r0 = value;
} else {
r0 = binding;
}
if (r0) {
value = environment.__proto__;
value = importAll(4223) /* metro dependency 4223: BillingActionCreators */;
value.fetchIpLocation();
}
}
global.__d(_fun55745, 7036, [31, 1226, 3804, 5140, 566, 7033, 4223,
2]) /* metro module 7036, dependencies: [31, 1226, 3804, 5140, 566, 7033, 4223, 2] */;
@@ -1,40 +1,44 @@
/* Metro module 12282; source: modules/premium/hooks/useOutboundPromotionRedemptionEndDate.tsx; dependencies: [31, 3738, 3826, 2] */
import Module03738 from '../../../by-id/module-03738.js'; /* Metro dependency 3738 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as DateUtilsModule from '../../../utils/DateUtils.tsx'; /* Metro dependency 3826 */
function _fun93844(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:6, offset: 0x020c68ca, size: 155 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (importDefault(3738) /* metro dependency 3738 */).duration(30, 'days');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useOutboundPromotionRedemptionEndDate.tsx');
const env0_4 = (Module03738).duration(30, 'days');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/useOutboundPromotionRedemptionEndDate.tsx');
exports.default = useOutboundPromotionRedemptionEndDate;
}
function useOutboundPromotionRedemptionEndDate(a0, a1) { // fn#93845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:243, offset: 0x020c6965, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_3.useMemo(_fun93846, [a0, a1]);
}
function _fun93846() { // fn#93846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:313, offset: 0x020c699c, size: 195 bytes, params: 1, frame: 18
var r0;
var r1;
let value = environment.__proto__;
const dateUtilsModule = require(3826) /* metro dependency 3826: DateUtils */;
const dateFormat = dateUtilsModule.dateFormat;
if (require) {
if (env0_0.outboundRedemptionEndDate != null) {
value = importDefault(3738) /* metro dependency 3738 */;
value = value(env0_0.outboundRedemptionEndDate);
r0 = value;
} else {
r0 = (importDefault(3738) /* metro dependency 3738 */)(env0_0.endDate).add(env1_4);
function useOutboundPromotionRedemptionEndDate(a0, a1) { // fn#93845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:243, offset: 0x020c6965, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return ReactModule.useMemo(_fun93846, [a0, a1]);
function _fun93846() { // fn#93846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:313, offset: 0x020c699c, size: 195 bytes, params: 1, frame: 18
var r0;
var r1;
let value = environment.__proto__;
const dateFormat = DateUtilsModule.dateFormat;
if (require) {
if (env0_0.outboundRedemptionEndDate != null) {
value = importDefault(3738) /* metro dependency 3738 */;
value = value(env0_0.outboundRedemptionEndDate);
r0 = value;
} else {
r0 = (importDefault(3738) /* metro dependency 3738 */)(env0_0.endDate).add(env1_4);
}
r1 = r0;
} else {
value = importDefault(3738) /* metro dependency 3738 */;
value = value(env0_0.endDate);
r1 = value;
}
return Reflect.apply(dateFormat, DateUtilsModule, [r1, 'LL']);
}
r1 = r0;
} else {
value = importDefault(3738) /* metro dependency 3738 */;
value = value(env0_0.endDate);
r1 = value;
}
return Reflect.apply(dateFormat, dateUtilsModule, [r1, 'LL']);
}
global.__d(_fun93844, 12282, [31, 3738, 3826, 2]) /* metro module 12282, dependencies: [31, 3738, 3826, 2] */;
@@ -1,43 +1,48 @@
/* Metro module 7258; source: modules/premium/hooks/usePremiumDiscountOffer.android.tsx; dependencies: [5140, 1880, 7259, 5143, 632, 2] */
import IAPStoreAndroid from '../../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */
import UseDiscountOffer from './useDiscountOffer.tsx'; /* Metro dependency 7259 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as ProductIdsAndroidModule from '../native/ProductIds.android.tsx'; /* Metro dependency 5143 */
function _fun58304(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7436:6, offset: 0x016c4642, size: 168 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_4 = premiumConstantsModule.PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID;
const env0_5 = premiumConstantsModule.PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/usePremiumDiscountOffer.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/usePremiumDiscountOffer.android.tsx');
exports.usePremiumDiscountOffer = usePremiumDiscountOffer;
exports.usePremiumGroupDiscountOffer = function() {
return null;
};
function useGetDiscountOffer(a0, a1) { // fn#58305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7436:240, offset: 0x016c46ea, size: 128 bytes, params: 3, frame: 17
const env0_0 = a1;
const value2 = (UseDiscountOffer)(a0);
const Object = global.Object;
const values = Object.values;
const DiscountIdToProductOfferId = (ProductIdsAndroidModule).DiscountIdToProductOfferId;
const value = Reflect.apply(values, Object, [DiscountIdToProductOfferId[a0]]);
const length = value.length;
const value3 = null;
return length === 0 ? value3 : value.every(function(a0) {
return require.has(a0);
}) ? value2 : value3;
}
function usePremiumDiscountOffer() { // fn#58307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7436:518, offset: 0x016c476a, size: 97 bytes, params: 1, frame: 15
const useStateFromStoresObject = UseStateFromStoresModule.useStateFromStoresObject;
const offerIds = Reflect.apply(useStateFromStoresObject, UseStateFromStoresModule, [[IAPStoreAndroid], function() {
var object = {};
var iapStoreAndroidBinding = IAPStoreAndroid;
object.isFetchingProducts = iapStoreAndroidBinding.isFetchingProducts();
object.offerIds = iapStoreAndroidBinding.getOfferIds();
return object;
}]).offerIds;
return useGetDiscountOffer(PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID,
offerIds) ?? useGetDiscountOffer(PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID, offerIds);
}
}
function useGetDiscountOffer(a0, a1) { // fn#58305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7436:240, offset: 0x016c46ea, size: 128 bytes, params: 3, frame: 17
const env0_0 = a1;
const value2 = (importDefault(7259) /* metro dependency 7259: useDiscountOffer */)(a0);
const Object = global.Object;
const values = Object.values;
const DiscountIdToProductOfferId = (require(5143) /* metro dependency 5143: ProductIdsAndroid */).DiscountIdToProductOfferId;
const value = Reflect.apply(values, Object, [DiscountIdToProductOfferId[a0]]);
const length = value.length;
const value3 = null;
return length === 0 ? value3 : value.every(function(a0) {
return require.has(a0);
}) ? value2 : value3;
}
function usePremiumDiscountOffer() { // fn#58307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7436:518, offset: 0x016c476a, size: 97 bytes, params: 1, frame: 15
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
const useStateFromStoresObject = useStateFromStoresModule.useStateFromStoresObject;
const offerIds = Reflect.apply(useStateFromStoresObject, useStateFromStoresModule, [[IAPStoreAndroid], function() {
var object = {};
object.isFetchingProducts = IAPStoreAndroid.isFetchingProducts();
object.offerIds = IAPStoreAndroid.getOfferIds();
return object;
}]).offerIds;
return useGetDiscountOffer(PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID,
offerIds) ?? useGetDiscountOffer(PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID, offerIds);
}
global.__d(_fun58304, 7258, [5140, 1880, 7259, 5143, 632,
2]) /* metro module 7258, dependencies: [5140, 1880, 7259, 5143, 632, 2] */;
@@ -1,11 +1,14 @@
/* Metro module 7257; source: modules/premium/hooks/usePremiumDiscountOffer.native.tsx; dependencies: [2, 7258] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun58303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7435:6, offset: 0x016c45c7, size: 123 bytes, params: 8, frame: 22
var propertyName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/usePremiumDiscountOffer.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/usePremiumDiscountOffer.native.tsx');
for (propertyName in require(7258) /* metro dependency 7258: usePremiumDiscountOfferAndroid */) {
exports[propertyName] = (require(7258) /* metro dependency 7258: usePremiumDiscountOfferAndroid */)[propertyName];
}
}
global.__d(_fun58303, 7257, [2, 7258]) /* metro module 7257, dependencies: [2, 7258] */;
@@ -1,50 +1,51 @@
/* Metro module 7062; source: modules/premium/hooks/usePremiumTrialOffer.native.tsx; dependencies: [5140, 1880, 7063, 5143, 632, 2] */
import IAPStoreAndroid from '../../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as ProductIdsAndroidModule from '../native/ProductIds.android.tsx'; /* Metro dependency 5143 */
import * as UseTrialOfferModule from '../useTrialOffer.tsx'; /* Metro dependency 7063 */
function _fun55988(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:6, offset: 0x013ba7e9, size: 193 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_3 = premiumConstantsModule.PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID;
const env0_4 = premiumConstantsModule.PREMIUM_TIER_2_REACTIVATION_TRIAL_ID;
const env0_5 = premiumConstantsModule.PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID;
const env0_6 = premiumConstantsModule.PREMIUM_TIER_2_TRIAL_FOR_EVERYONE_TRIAL_ID;
const env0_7 = premiumConstantsModule.PREMIUM_TIER_2_REFERRAL_TRIAL_ID;
const env0_8 = premiumConstantsModule.PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/usePremiumTrialOffer.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/usePremiumTrialOffer.native.tsx');
exports.usePremiumTrialOffer = usePremiumTrialOffer;
function useGetTrialOffer(a0, a1) { // fn#55989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:360, offset: 0x013ba8aa, size: 114 bytes, params: 3, frame: 17
const env0_0 = a1;
let value = UseTrialOfferModule;
value = value.useTrialOffer(a0);
const Object = global.Object;
const values = Object.values;
const TrialIdToProductOfferId = (ProductIdsAndroidModule).TrialIdToProductOfferId;
return Reflect.apply(values, Object, [TrialIdToProductOfferId[a0]]).every(function(a0) {
return require.has(a0);
}) ? value : null;
}
function usePremiumTrialOffer() { // fn#55991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:617, offset: 0x013ba91c, size: 172 bytes, params: 1, frame: 20
const useStateFromStoresObject = UseStateFromStoresModule.useStateFromStoresObject;
const offerIds = Reflect.apply(useStateFromStoresObject, UseStateFromStoresModule, [[IAPStoreAndroid], function() {
var object = {};
var iapStoreAndroidBinding = IAPStoreAndroid;
object.isFetchingProducts = iapStoreAndroidBinding.isFetchingProducts();
object.offerIds = iapStoreAndroidBinding.getOfferIds();
return object;
}]).offerIds;
const value2 = useGetTrialOffer(PREMIUM_TIER_2_TRIAL_FOR_EVERYONE_TRIAL_ID, offerIds);
const value3 = useGetTrialOffer(PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID, offerIds);
const value4 = useGetTrialOffer(PREMIUM_TIER_2_REACTIVATION_TRIAL_ID, offerIds);
const value5 = useGetTrialOffer(PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID, offerIds);
items2 = [useGetTrialOffer(PREMIUM_TIER_2_REFERRAL_TRIAL_ID, offerIds), value2, value3, value4];
items2[4] = useGetTrialOffer(PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID, offerIds);
items2[5] = value5;
return items2.find(function(a0) {
return a0 != null;
});
}
}
function useGetTrialOffer(a0, a1) { // fn#55989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:360, offset: 0x013ba8aa, size: 114 bytes, params: 3, frame: 17
const env0_0 = a1;
let value = require(7063) /* metro dependency 7063: useTrialOffer */;
value = value.useTrialOffer(a0);
const Object = global.Object;
const values = Object.values;
const TrialIdToProductOfferId = (require(5143) /* metro dependency 5143: ProductIdsAndroid */).TrialIdToProductOfferId;
return Reflect.apply(values, Object, [TrialIdToProductOfferId[a0]]).every(function(a0) {
return require.has(a0);
}) ? value : null;
}
function usePremiumTrialOffer() { // fn#55991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:617, offset: 0x013ba91c, size: 172 bytes, params: 1, frame: 20
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
const useStateFromStoresObject = useStateFromStoresModule.useStateFromStoresObject;
const offerIds = Reflect.apply(useStateFromStoresObject, useStateFromStoresModule, [[IAPStoreAndroid], function() {
var object = {};
object.isFetchingProducts = IAPStoreAndroid.isFetchingProducts();
object.offerIds = IAPStoreAndroid.getOfferIds();
return object;
}]).offerIds;
const value2 = useGetTrialOffer(PREMIUM_TIER_2_TRIAL_FOR_EVERYONE_TRIAL_ID, offerIds);
const value3 = useGetTrialOffer(PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID, offerIds);
const value4 = useGetTrialOffer(PREMIUM_TIER_2_REACTIVATION_TRIAL_ID, offerIds);
const value5 = useGetTrialOffer(PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID, offerIds);
items2 = [useGetTrialOffer(PREMIUM_TIER_2_REFERRAL_TRIAL_ID, offerIds), value2, value3, value4];
items2[4] = useGetTrialOffer(PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID, offerIds);
items2[5] = value5;
return items2.find(function(a0) {
return a0 != null;
});
}
global.__d(_fun55988, 7062, [5140, 1880, 7063, 5143, 632,
2]) /* metro module 7062, dependencies: [5140, 1880, 7063, 5143, 632, 2] */;
@@ -1,106 +1,120 @@
/* Metro module 7582; source: modules/premium/hooks/usePromotionMarketingComponent.tsx; dependencies: [57, 31, 7064, 7261, 7289, 566, 7263, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UserOfferStore from '../../../stores/billing/UserOfferStore.tsx'; /* Metro dependency 7064 */
import PromotionsStore from '../promotions/PromotionsStore.tsx'; /* Metro dependency 7261 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../promotions/constants.tsx'; /* Metro dependency 7263 */
import * as PromotionsActionCreatorsModule from '../promotions/PromotionsActionCreators.tsx'; /* Metro dependency 7289 */
function _fun60832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:6, offset: 0x01710f30, size: 163 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
const userOfferStore = importDefault(7064) /* metro dependency 7064: UserOfferStore */;
const promotionsStore = importDefault(7261) /* metro dependency 7261: PromotionsStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/usePromotionMarketingComponent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/usePromotionMarketingComponent.tsx');
exports.usePromotionMarketingComponent = usePromotionMarketingComponent;
}
function usePromotionMarketingComponent(a0) { // fn#60833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:259, offset: 0x01710fd3, size: 246 bytes, params: 2, frame: 20
const env0_0 = a0;
let binding = env0_3;
binding.useEffect(_fun60834, []);
const value2 = undefined;
const marketingComponentByType = (require(566) /* metro dependency 566: flux */).useStateFromStores([PromotionsStore,
UserOfferStore], _fun60835);
const promotionByTypeAndId = (require(566) /* metro dependency 566: flux */).useStateFromStores([PromotionsStore],
_fun60836);
const value3 = null;
const endDate = value3 == promotionByTypeAndId ? value2 : promotionByTypeAndId.endDate;
const env0_2 = endDate;
binding = env0_3;
const value = env0_2(binding.useState(false), 2);
const property = value[0];
var env0_3 = value[1];
const env0_4 = binding.useRef(value3);
binding.useEffect(_fun60837, [endDate]);
return property ? value3 : marketingComponentByType;
}
function _fun60834() { // fn#60834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:315, offset: 0x017110c9, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(require(7289) /* metro dependency 7289: PromotionsActionCreators */).maybeFetchActivePromotions();
}
function _fun60835() { // fn#60835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:403, offset: 0x017110ee, size: 192 bytes, params: 1, frame: 18
let value = environment.__proto__;
const marketingComponentByType = PromotionsStore.getMarketingComponentByType(env0_0);
if (marketingComponentByType == null) {
return null;
}
const promotionId = marketingComponentByType.promotionId;
const getPromotionByTypeAndId = PromotionsStore.getPromotionByTypeAndId;
const value4 = undefined;
const PromotionTypes = (require(7263) /* metro dependency 7263: constants */).PromotionTypes;
const MARKETING_MOMENT = PromotionTypes.MARKETING_MOMENT;
const value5 = Reflect.apply(getPromotionByTypeAndId, PromotionsStore, [MARKETING_MOMENT, promotionId]);
if ((value5 == null ? value4 : value5.trialId) == null) {
return marketingComponentByType;
}
value = UserOfferStore.getUserTrialOffer(value5.trialId);
if (value == null) {
return null;
}
if (value.expires_at == null) {
return marketingComponentByType;
}
let Date = global.Date;
value = Date.parse(value.expires_at);
Date = global.Date;
return value < Date.now() ? null : marketingComponentByType;
}
function _fun60836() { // fn#60836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:761, offset: 0x017111ae, size: 95 bytes, params: 1, frame: 16
let value = environment.__proto__;
const getPromotionByTypeAndId = PromotionsStore.getPromotionByTypeAndId;
value = undefined;
const PromotionTypes = (require(7263) /* metro dependency 7263: constants */).PromotionTypes;
const MARKETING_MOMENT = PromotionTypes.MARKETING_MOMENT;
return Reflect.apply(getPromotionByTypeAndId, PromotionsStore, [MARKETING_MOMENT,
(marketingComponentByType == null ? value : marketingComponentByType.promotionId) ?? '']);
}
function _fun60837() { // fn#60837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:997, offset: 0x0171120d, size: 189 bytes, params: 1, frame: 16
var time;
var Date;
var value3;
if (endDate != null) {
time = endDate.getTime();
Date = global.Date;
value3 = time - Date.now();
if (value3 > 0) {
if (value3 < 86400000) {
env0_3(false);
global.clearTimeout(env0_4.current);
env0_4.current = global.setTimeout(_fun60838, value3);
} else if (value3 <= 0) {
env0_3(true);
}
} else if (value3 <= 0) {
env0_3(true);
function usePromotionMarketingComponent(a0) { // fn#60833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:259, offset: 0x01710fd3, size: 246 bytes, params: 2, frame: 20
const env0_0 = a0;
let binding = env0_3;
binding.useEffect(_fun60834, []);
const value2 = undefined;
const useStateFromStores = FluxModule.useStateFromStores;
const promotionsStoreBinding = PromotionsStore;
const marketingComponentByType = Reflect.apply(useStateFromStores, FluxModule, [[promotionsStoreBinding,
UserOfferStore], _fun60835]);
const promotionByTypeAndId = FluxModule.useStateFromStores([promotionsStoreBinding], _fun60836);
const value3 = null;
const endDate = value3 == promotionByTypeAndId ? value2 : promotionByTypeAndId.endDate;
const endDate2 = endDate;
binding = env0_3;
const value = endDate2(binding.useState(false), 2);
const property = value[0];
var env0_3 = value[1];
const env0_4 = binding.useRef(value3);
binding.useEffect(_fun60837, [endDate]);
return property ? value3 : marketingComponentByType;
function _fun60834() { // fn#60834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:315, offset: 0x017110c9, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(PromotionsActionCreatorsModule).maybeFetchActivePromotions();
}
return _fun60839;
function _fun60835() { // fn#60835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:403, offset: 0x017110ee, size: 192 bytes, params: 1, frame: 18
let value = environment.__proto__;
const marketingComponentByType = PromotionsStore.getMarketingComponentByType(env0_0);
if (marketingComponentByType == null) {
return null;
}
const promotionId = marketingComponentByType.promotionId;
promotionsStoreBinding = PromotionsStore;
const getPromotionByTypeAndId = promotionsStoreBinding.getPromotionByTypeAndId;
const value4 = undefined;
const PromotionTypes = (ConstantsModule).PromotionTypes;
const MARKETING_MOMENT = PromotionTypes.MARKETING_MOMENT;
const value5 = Reflect.apply(getPromotionByTypeAndId, promotionsStoreBinding, [MARKETING_MOMENT, promotionId]);
if ((value5 == null ? value4 : value5.trialId) == null) {
return marketingComponentByType;
}
value = UserOfferStore.getUserTrialOffer(value5.trialId);
if (value == null) {
return null;
}
if (value.expires_at == null) {
return marketingComponentByType;
}
let Date = global.Date;
value = Date.parse(value.expires_at);
Date = global.Date;
return value < Date.now() ? null : marketingComponentByType;
}
function _fun60836() { // fn#60836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:761, offset: 0x017111ae, size: 95 bytes, params: 1, frame: 16
let value = environment.__proto__;
const promotionsStoreBinding = PromotionsStore;
const getPromotionByTypeAndId = promotionsStoreBinding.getPromotionByTypeAndId;
value = undefined;
const PromotionTypes = (ConstantsModule).PromotionTypes;
const MARKETING_MOMENT = PromotionTypes.MARKETING_MOMENT;
return Reflect.apply(getPromotionByTypeAndId, promotionsStoreBinding, [MARKETING_MOMENT,
(marketingComponentByType == null ? value : marketingComponentByType.promotionId) ?? '']);
}
function _fun60837() { // fn#60837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:997, offset: 0x0171120d, size: 189 bytes, params: 1, frame: 16
var time;
var Date;
var value3;
if (endDate != null) {
time = endDate.getTime();
Date = global.Date;
value3 = time - Date.now();
if (value3 > 0) {
if (value3 < 86400000) {
env0_3(false);
global.clearTimeout(env0_4.current);
env0_4.current = global.setTimeout(_fun60838, value3);
} else if (value3 <= 0) {
env0_3(true);
}
} else if (value3 <= 0) {
env0_3(true);
}
return _fun60839;
}
env0_3(false);
global.clearTimeout(env0_4.current);
function _fun60838() { // fn#60838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:1116, offset: 0x017112ca, size: 18 bytes, params: 1, frame: 11
env1_3(true);
}
function _fun60839() { // fn#60839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:1145, offset: 0x017112dc, size: 29 bytes, params: 1, frame: 11
global.clearTimeout(env1_4.current);
}
}
}
env0_3(false);
global.clearTimeout(env0_4.current);
}
function _fun60839() { // fn#60839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:1145, offset: 0x017112dc, size: 29 bytes, params: 1, frame: 11
global.clearTimeout(env1_4.current);
}
global.__d(_fun60832, 7582, [57, 31, 7064, 7261, 7289, 566, 7263,
2]) /* metro module 7582, dependencies: [57, 31, 7064, 7261, 7289, 566, 7263, 2] */;
@@ -1,36 +1,48 @@
/* Metro module 7292; source: modules/premium/hooks/useScheduledForcedUpdate.tsx; dependencies: [31, 7055, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as Module07055Module from '../../../by-id/module-07055.js'; /* Metro dependency 7055 */
function _fun58832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:6, offset: 0x016d7d51, size: 112 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useScheduledForcedUpdate.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/useScheduledForcedUpdate.tsx');
exports.default = useScheduledForcedUpdate;
}
function useScheduledForcedUpdate({delay, disable}) { // fn#58833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:200, offset: 0x016d7dc1, size: 112 bytes, params: 2, frame: 17
disable = !(disable === undefined) && disable;
const value2 = (Module07055Module).useForceUpdate();
value2.useEffect(function() {
if (delay <= 0) {
return undefined;
}
if (disable) {
return undefined;
}
var env0_0 = global.setTimeout(_fun58835, delay);
return _fun58836;
}, [delay, disable, value2]);
function _fun58834() { // fn#58834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:302, offset: 0x016d7e31, size: 62 bytes, params: 1, frame: 14
if (delay <= 0) {
return undefined;
}
if (disable) {
return undefined;
}
const env0_0 = global.setTimeout(_fun58835, delay);
return _fun58836;
function _fun58835() { // fn#58835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:340, offset: 0x016d7e6f, size: 15 bytes, params: 1, frame: 9
env1_2();
}
function _fun58836() { // fn#58836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:360, offset: 0x016d7e7e, size: 24 bytes, params: 1, frame: 11
return global.clearTimeout(env0_0);
}
function useScheduledForcedUpdate({delay, disable}) { // fn#58833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:200, offset: 0x016d7dc1, size: 112 bytes, params: 2, frame: 17
disable = !(disable === undefined) && disable;
const value2 = (require(7055) /* metro dependency 7055 */).useForceUpdate();
value2.useEffect(function() {
if (delay <= 0) {
return undefined;
}
if (disable) {
return undefined;
}
var env0_0 = global.setTimeout(_fun58835, delay);
return _fun58836;
}, [delay, disable, value2]);
}
function _fun58834() { // fn#58834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:302, offset: 0x016d7e31, size: 62 bytes, params: 1, frame: 14
if (delay <= 0) {
return undefined;
}
if (disable) {
return undefined;
}
const env0_0 = global.setTimeout(_fun58835, delay);
return _fun58836;
}
global.__d(_fun58832, 7292, [31, 7055, 2]) /* metro module 7292, dependencies: [31, 7055, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 3002; source: modules/premium/logitech_3pp/Logitech3PP.messages.js; dependencies: [1247, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, 3032, 3033, 1282, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun25030(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#25030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:6, offset: 0x00f20e06, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_25031, cs: cs_25033, da: da_25035, de: de_25037, el: el_25039};
object2['en-GB'] = _fun25041;
object2['es-419'] = _fun25043;
object2['es-ES'] = _fun25045;
object2.fi = fi_25047;
object2.fr = fr_25049;
object2.hi = hi_25051;
object2.hr = hr_25053;
object2.hu = hu_25055;
object2.it = it_25057;
object2.ja = ja_25059;
object2.ko = ko_25061;
object2.lt = lt_25063;
object2.nl = nl_25065;
object2.no = no_25067;
object2.pl = pl_25069;
object2['pt-BR'] = _fun25071;
object2.ro = ro_25073;
object2.ru = ru_25075;
object2['sv-SE'] = _fun25077;
object2.th = th_25079;
object2.tr = tr_25081;
object2.uk = uk_25083;
object2.vi = vi_25085;
object2['zh-CN'] = _fun25087;
object2['zh-TW'] = _fun25089;
object2['en-US'] = _fun25091;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/logitech_3pp/Logitech3PP.messages.js');
object = {bg: bg_25031, cs: cs_25033, da: da_25035, de: de_25037, el: el_25039};
object['en-GB'] = _fun25041;
object['es-419'] = _fun25043;
object['es-ES'] = _fun25045;
object.fi = fi_25047;
object.fr = fr_25049;
object.hi = hi_25051;
object.hr = hr_25053;
object.hu = hu_25055;
object.it = it_25057;
object.ja = ja_25059;
object.ko = ko_25061;
object.lt = lt_25063;
object.nl = nl_25065;
object.no = no_25067;
object.pl = pl_25069;
object['pt-BR'] = _fun25071;
object.ro = ro_25073;
object.ru = ru_25075;
object['sv-SE'] = _fun25077;
object.th = th_25079;
object.tr = tr_25081;
object.uk = uk_25083;
object.vi = vi_25085;
object['zh-CN'] = _fun25087;
object['zh-TW'] = _fun25089;
object['en-US'] = _fun25091;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/logitech_3pp/Logitech3PP.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_25031() { // fn#25031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:102, offset: 0x00f20fcb, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3003) /* metro dependency 3003 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_25033() { // fn#25033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:165, offset: 0x00f2100c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3004) /* metro dependency 3004 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_25035() { // fn#25035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:228, offset: 0x00f2104d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3005) /* metro dependency 3005 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_25037() { // fn#25037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:291, offset: 0x00f2108e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3006) /* metro dependency 3006 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_25039() { // fn#25039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:354, offset: 0x00f210cf, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3007) /* metro dependency 3007 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25041() { // fn#25041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:422, offset: 0x00f21110, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3008) /* metro dependency 3008 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25043() { // fn#25043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:491, offset: 0x00f21151, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3009) /* metro dependency 3009 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25045() { // fn#25045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:559, offset: 0x00f21192, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3010) /* metro dependency 3010 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_25047() { // fn#25047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:622, offset: 0x00f211d3, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3011) /* metro dependency 3011 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_25049() { // fn#25049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:685, offset: 0x00f21214, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3012) /* metro dependency 3012 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_25051() { // fn#25051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:749, offset: 0x00f21255, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3013) /* metro dependency 3013 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_25053() { // fn#25053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:813, offset: 0x00f21296, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3014) /* metro dependency 3014 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_25055() { // fn#25055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:877, offset: 0x00f212d7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3015) /* metro dependency 3015 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_25057() { // fn#25057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:941, offset: 0x00f21318, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3016) /* metro dependency 3016 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_25059() { // fn#25059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1005, offset: 0x00f21359, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3017) /* metro dependency 3017 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_25061() { // fn#25061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1069, offset: 0x00f2139a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3018) /* metro dependency 3018 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_25063() { // fn#25063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1133, offset: 0x00f213db, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3019) /* metro dependency 3019 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_25065() { // fn#25065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1197, offset: 0x00f2141c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3020) /* metro dependency 3020 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_25067() { // fn#25067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1261, offset: 0x00f2145d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3021) /* metro dependency 3021 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_25069() { // fn#25069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1325, offset: 0x00f2149e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3022) /* metro dependency 3022 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25071() { // fn#25071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1394, offset: 0x00f214df, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3023) /* metro dependency 3023 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_25073() { // fn#25073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1458, offset: 0x00f21520, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3024) /* metro dependency 3024 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_25075() { // fn#25075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1522, offset: 0x00f21561, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3025) /* metro dependency 3025 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25077() { // fn#25077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1591, offset: 0x00f215a2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3026) /* metro dependency 3026 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_25079() { // fn#25079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1655, offset: 0x00f215e3, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3027) /* metro dependency 3027 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_25081() { // fn#25081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1719, offset: 0x00f21624, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3028) /* metro dependency 3028 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_25083() { // fn#25083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1783, offset: 0x00f21665, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3029) /* metro dependency 3029 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_25085() { // fn#25085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1847, offset: 0x00f216a6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3030) /* metro dependency 3030 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25087() { // fn#25087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1916, offset: 0x00f216e7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3031) /* metro dependency 3031 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25089() { // fn#25089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1985, offset: 0x00f21728, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3032) /* metro dependency 3032 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25091() { // fn#25091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:2054, offset: 0x00f21769, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(3033) /* metro dependency 3033 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_25031() { // fn#25031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:102, offset: 0x00f20fcb, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3003) /* metro dependency 3003 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_25033() { // fn#25033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:165, offset: 0x00f2100c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3004) /* metro dependency 3004 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_25035() { // fn#25035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:228, offset: 0x00f2104d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3005) /* metro dependency 3005 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_25037() { // fn#25037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:291, offset: 0x00f2108e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3006) /* metro dependency 3006 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_25039() { // fn#25039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:354, offset: 0x00f210cf, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3007) /* metro dependency 3007 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25041() { // fn#25041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:422, offset: 0x00f21110, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3008) /* metro dependency 3008 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25043() { // fn#25043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:491, offset: 0x00f21151, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3009) /* metro dependency 3009 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25045() { // fn#25045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:559, offset: 0x00f21192, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3010) /* metro dependency 3010 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_25047() { // fn#25047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:622, offset: 0x00f211d3, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3011) /* metro dependency 3011 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_25049() { // fn#25049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:685, offset: 0x00f21214, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3012) /* metro dependency 3012 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_25051() { // fn#25051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:749, offset: 0x00f21255, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3013) /* metro dependency 3013 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_25053() { // fn#25053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:813, offset: 0x00f21296, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3014) /* metro dependency 3014 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_25055() { // fn#25055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:877, offset: 0x00f212d7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3015) /* metro dependency 3015 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_25057() { // fn#25057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:941, offset: 0x00f21318, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3016) /* metro dependency 3016 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_25059() { // fn#25059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1005, offset: 0x00f21359, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3017) /* metro dependency 3017 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_25061() { // fn#25061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1069, offset: 0x00f2139a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3018) /* metro dependency 3018 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_25063() { // fn#25063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1133, offset: 0x00f213db, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3019) /* metro dependency 3019 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_25065() { // fn#25065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1197, offset: 0x00f2141c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3020) /* metro dependency 3020 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_25067() { // fn#25067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1261, offset: 0x00f2145d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3021) /* metro dependency 3021 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_25069() { // fn#25069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1325, offset: 0x00f2149e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3022) /* metro dependency 3022 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25071() { // fn#25071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1394, offset: 0x00f214df, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3023) /* metro dependency 3023 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_25073() { // fn#25073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1458, offset: 0x00f21520, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3024) /* metro dependency 3024 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_25075() { // fn#25075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1522, offset: 0x00f21561, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3025) /* metro dependency 3025 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25077() { // fn#25077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1591, offset: 0x00f215a2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3026) /* metro dependency 3026 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_25079() { // fn#25079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1655, offset: 0x00f215e3, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3027) /* metro dependency 3027 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_25081() { // fn#25081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1719, offset: 0x00f21624, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3028) /* metro dependency 3028 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_25083() { // fn#25083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1783, offset: 0x00f21665, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3029) /* metro dependency 3029 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_25085() { // fn#25085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1847, offset: 0x00f216a6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3030) /* metro dependency 3030 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25087() { // fn#25087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1916, offset: 0x00f216e7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3031) /* metro dependency 3031 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25089() { // fn#25089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:1985, offset: 0x00f21728, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3032) /* metro dependency 3032 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun25091() { // fn#25091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3129:2054, offset: 0x00f21769, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(3033) /* metro dependency 3033 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun25030, 3002, [1247, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015,
3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, 3032, 3033,
1282,
2]) /* metro module 3002, dependencies: [1247, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, 3032, 3033, 1282, 2] */;
@@ -1,10 +1,17 @@
/* Metro module 12234; source: modules/premium/native/BoostedGuildTierProgressCircle.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 12235, 12239, 12240, 12241, 8254, 8249, 11939, 4573, 2] */
import ProgressCircle from './components/ProgressCircle.tsx'; /* Metro dependency 11939 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as GuildBoostingUtilsModule from '../../../utils/GuildBoostingUtils.tsx'; /* Metro dependency 8249 */
function _fun93661(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12420:6, offset: 0x020be08e, size: 397 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
value = require(661) /* metro dependency 661: Constants */;
@@ -15,73 +22,73 @@ function _fun93661(global, require, importDefault, importAll, module, exports, d
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'backgroundColor': null, 'width': 64, 'height': 64, 'alignItems': 'center',
const object2 = {'backgroundColor': null, 'width': 64, 'height': 64, 'alignItems': 'center',
'justifyContent': 'center'};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
const env0_9 = Reflect.apply(createStyles, value, [{guildTierProgressCircle: {'position': 'relative', 'width': 70,
'height': 70}, guildTierBackground: object, guildTierNoneIcon: {'width': 18, 'height': 30},
'height': 70}, guildTierBackground: object2, guildTierNoneIcon: {'width': 18, 'height': 30},
guildTierIcon: {'width': 24, 'height': 24}, guildTierName: {'lineHeight': 16, 'marginTop': 2}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/BoostedGuildTierProgressCircle.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/BoostedGuildTierProgressCircle.tsx');
exports.default = _default_93663;
}
function getTierIcon(a0, a1) { // fn#93662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12420:632, offset: 0x020be21b, size: 203 bytes, params: 3, frame: 12
if (a1 == null) {
return (require(12235) /* metro dependency 12235: Tier048Px */).getTier048PxSource(a0);
}
let premiumTier = a1.premiumTier;
const NONE = BoostedGuildTiers.NONE;
if (premiumTier === NONE) {
return (require(12235) /* metro dependency 12235: Tier048Px */).getTier048PxSource(a0);
}
premiumTier = a1.premiumTier;
const TIER_1 = BoostedGuildTiers.TIER_1;
if (TIER_1 === premiumTier) {
return importDefault(12239) /* metro dependency 12239 */;
}
const TIER_2 = BoostedGuildTiers.TIER_2;
if (TIER_2 === premiumTier) {
return importDefault(12240) /* metro dependency 12240 */;
}
const TIER_3 = BoostedGuildTiers.TIER_3;
if (TIER_3 === premiumTier) {
return importDefault(12241) /* metro dependency 12241 */;
}
}
function getTierIcon(a0, a1) { // fn#93662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12420:632, offset: 0x020be21b, size: 203 bytes, params: 3, frame: 12
if (a1 == null) {
return (require(12235) /* metro dependency 12235: Tier048Px */).getTier048PxSource(a0);
}
let premiumTier = a1.premiumTier;
const NONE = BoostedGuildTiers.NONE;
if (premiumTier === NONE) {
return (require(12235) /* metro dependency 12235: Tier048Px */).getTier048PxSource(a0);
}
premiumTier = a1.premiumTier;
const TIER_1 = BoostedGuildTiers.TIER_1;
if (TIER_1 === premiumTier) {
return importDefault(12239) /* metro dependency 12239 */;
}
const TIER_2 = BoostedGuildTiers.TIER_2;
if (TIER_2 === premiumTier) {
return importDefault(12240) /* metro dependency 12240 */;
}
const TIER_3 = BoostedGuildTiers.TIER_3;
if (TIER_3 === premiumTier) {
return importDefault(12241) /* metro dependency 12241 */;
}
}
function _default_93663({guild, theme}) { // fn#93663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12420:832, offset: 0x020be2e6, size: 448 bytes, params: 2, frame: 27
const styles = useStyles();
const available = (importDefault(8254) /* metro dependency 8254: useGuildPowerupsBoostCount */)(guild?.id).available;
if (guild == null) {
function _default_93663({guild, theme}) { // fn#93663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12420:832, offset: 0x020be2e6, size: 448 bytes, params: 2, frame: 27
const styles = useStyles();
const available = (importDefault(8254) /* metro dependency 8254: useGuildPowerupsBoostCount */)(guild?.id).available;
if (guild == null) {
return (
<View style={styles.guildTierBackground}>
<Image source={getTierIcon(theme)} style={styles.guildTierNoneIcon} />
</View>
);
}
const nextGuildTierFromGuild = (GuildBoostingUtilsModule).getNextGuildTierFromGuild(guild.id);
const r0 = nextGuildTierFromGuild != null ? AppliedGuildBoostsRequiredForBoostedGuildTier[nextGuildTierFromGuild] : null;
const r4 = r0 != null && r0 > 0 ? available / r0 * 100 : 100;
const image = <Image source={getTierIcon(theme, guild)} style={styles.guildTierIcon} />;
const Text = (TextModule).Text;
const getTierName = GuildBoostingUtilsModule.getTierName;
return (
<View style={styles.guildTierBackground}>
<Image source={getTierIcon(theme)} style={styles.guildTierNoneIcon} />
</View>
<ProgressCircle style={styles.guildTierProgressCircle} percent={r4}>
<View style={styles.guildTierBackground}>
{image}
<Text
style={styles.guildTierName}
variant="text-xs/semibold"
color="interactive-text-active"
>
{Reflect.apply(getTierName, GuildBoostingUtilsModule, [guild.premiumTier])}
</Text>
</View>
</ProgressCircle>
);
}
const nextGuildTierFromGuild = (require(8249) /* metro dependency 8249: GuildBoostingUtils */).getNextGuildTierFromGuild(guild.id);
const r0 = nextGuildTierFromGuild != null ? AppliedGuildBoostsRequiredForBoostedGuildTier[nextGuildTierFromGuild] : null;
const r4 = r0 != null && r0 > 0 ? available / r0 * 100 : 100;
const ProgressCircle = importDefault(11939) /* metro dependency 11939: ProgressCircle */;
const image = <Image source={getTierIcon(theme, guild)} style={styles.guildTierIcon} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const guildBoostingUtilsModule = require(8249) /* metro dependency 8249: GuildBoostingUtils */;
const getTierName = guildBoostingUtilsModule.getTierName;
return (
<ProgressCircle style={styles.guildTierProgressCircle} percent={r4}>
<View style={styles.guildTierBackground}>
{image}
<Text
style={styles.guildTierName}
variant="text-xs/semibold"
color="interactive-text-active"
>
{Reflect.apply(getTierName, guildBoostingUtilsModule, [guild.premiumTier])}
</Text>
</View>
</ProgressCircle>
);
}
global.__d(_fun93661, 12234, [31, 27, 661, 33, 4501, 697, 12235, 12239, 12240, 12241, 8254, 8249, 11939, 4573,
2]) /* metro module 12234, dependencies: [31, 27, 661, 33, 4501, 697, 12235, 12239, 12240, 12241, 8254, 8249, 11939, 4573, 2] */;
@@ -1,11 +1,16 @@
/* Metro module 8465; source: modules/premium/native/GiftModalEmojis.tsx; dependencies: [57, 31, 27, 33, 4501, 3801, 6739, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import EmojiUtils from '../../../utils/EmojiUtils.tsx'; /* Metro dependency 3801 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun67239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8650:6, offset: 0x01c1a94a, size: 400 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
ReactModule;
const items2 = [[100, 0, -40]];
items2[1] = [120, 40, -10];
items2[2] = [100, 80, 10];
@@ -16,44 +21,46 @@ function _fun67239(global, require, importDefault, importAll, module, exports, d
items2[7] = [400, 90, 10];
items2[8] = [400, 20, -20];
items2[9] = [410, 0, 40];
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({emojisContainer: {'alignItems': 'center',
const env0_6 = (CreateStylesModule).createStyles({emojisContainer: {'alignItems': 'center',
'justifyContent': 'center', 'height': 250, 'width': '100%', 'position': 'absolute', 'zIndex': 1,
'paddingBottom': 210}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/GiftModalEmojis.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/GiftModalEmojis.tsx');
exports.default = _default_67240;
}
function _default_67240({emojiName, randomizeSizing}) { // fn#67240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8650:437, offset: 0x01c1aada, size: 136 bytes, params: 2, frame: 17
if (randomizeSizing !== undefined) {
}
const styles = useStyles();
const env0_2 = (EmojiUtils).getURL(emojiName);
return (
<View style={styles.emojisContainer}>
{env0_5.map(_fun67241)}
</View>
);
function _fun67241(a0, a1) { // fn#67241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8650:515, offset: 0x01c1ab62, size: 302 bytes, params: 3, frame: 24
let value = environment.__proto__;
const value2 = env1_2(a0, 3);
const property = value2[0];
const value3 = 1;
const property2 = value2[value3];
const property3 = value2[2];
value = importDefault(6739) /* metro dependency 6739: Emoji */;
const valueProps2 = {src: env0_2, name: emojiName};
const object2 = {position: 'absolute'};
object2.top = '' + property + '%';
object2.left = '' + property2 + '%';
const items2 = [{rotate: '' + property3 + 'deg'}];
const object4 = {};
object4.scale = randomizeSizing ? 1.5 * global.Math.random() + 0.5 : value3;
items2[1] = object4;
object2.transform = items2;
valueProps2.style = object2;
valueProps2.forceTextEmoji = true;
return ((Component) => <Component {...valueProps2} key={'' + a1 + '-' + emojiName} />)(value);
}
function _default_67240({emojiName, randomizeSizing}) { // fn#67240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8650:437, offset: 0x01c1aada, size: 136 bytes, params: 2, frame: 17
if (randomizeSizing !== undefined) {
}
const styles = useStyles();
const env0_2 = (importDefault(3801) /* metro dependency 3801: EmojiUtils */).getURL(emojiName);
return (
<View style={styles.emojisContainer}>
{env0_5.map(_fun67241)}
</View>
);
}
function _fun67241(a0, a1) { // fn#67241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8650:515, offset: 0x01c1ab62, size: 302 bytes, params: 3, frame: 24
let value = environment.__proto__;
const value2 = env1_2(a0, 3);
const property = value2[0];
const value3 = 1;
const property2 = value2[value3];
const property3 = value2[2];
value = importDefault(6739) /* metro dependency 6739: Emoji */;
const valueProps2 = {src: env0_2, name: emojiName};
const object = {position: 'absolute'};
object.top = '' + property + '%';
object.left = '' + property2 + '%';
const items2 = [{rotate: '' + property3 + 'deg'}];
const object3 = {};
object3.scale = randomizeSizing ? 1.5 * global.Math.random() + 0.5 : value3;
items2[1] = object3;
object.transform = items2;
valueProps2.style = object;
valueProps2.forceTextEmoji = true;
return ((Component) => <Component {...valueProps2} key={'' + a1 + '-' + emojiName} />)(value);
}
global.__d(_fun67239, 8465, [57, 31, 27, 33, 4501, 3801, 6739,
2]) /* metro module 8465, dependencies: [57, 31, 27, 33, 4501, 3801, 6739, 2] */;
@@ -1,407 +1,519 @@
/* Metro module 12228; source: modules/premium/native/GuildBoostSlotsInventory.tsx; dependencies: [31, 27, 1310, 1867, 7020, 3808, 661, 33, 4501, 697, 6597, 7054, 4573, 1244, 21, 5278, 6522, 1305, 6819, 12229, 566, 1423, 12230, 12234, 4223, 8251, 22, 2] */
import ThemeStore from '../../user_settings/ThemeStore.tsx'; /* Metro dependency 1310 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import SubscriptionStore from '../../../stores/billing/SubscriptionStore.tsx'; /* Metro dependency 3808 */
import TextStyles from '../../rebrand/native/TextStyles.tsx'; /* Metro dependency 6597 */
import GuildBoostSlotStore from '../../../stores/billing/GuildBoostSlotStore.tsx'; /* Metro dependency 7020 */
import UseCountdown from '../../../hooks/useCountdown.tsx'; /* Metro dependency 7054 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as BillingActionCreatorsModule from '../../billing/actions/BillingActionCreators.tsx'; /* Metro dependency 4223 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as BoostingActionCreatorsModule from '../../../actions/native/BoostingActionCreators.tsx'; /* Metro dependency 6522 */
import * as BoostingActionCreatorsModule2 from '../../../actions/BoostingActionCreators.tsx'; /* Metro dependency 8251 */
function _fun93627(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:6, offset: 0x020bcc27, size: 995 bytes, params: 8, frame: 29
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.View;
const env0_6 = value.Image;
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const guildBoostSlotStore = importDefault(7020) /* metro dependency 7020: GuildBoostSlotStore */;
const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const Fonts = (ConstantsModule).Fonts;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
const env0_13 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.inventory = {marginBottom: 32};
object2.header = {'marginHorizontal': 16, 'marginBottom': 16};
const object4 = {};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object4.marginBottom = 16;
object2.boostedGuild = object4;
object = {};
object.inventory = {marginBottom: 32};
object.header = {'marginHorizontal': 16, 'marginBottom': 16};
const object3 = {};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object3.marginBottom = 16;
object.boostedGuild = object3;
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.subscriptionBody = {backgroundColor: BACKGROUND_BASE_LOWEST};
object.subscriptionBody = {backgroundColor: BACKGROUND_BASE_LOWEST};
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object2.subscriptionImageView = {'backgroundColor': null, 'width': '100%', 'height': 112, 'overflow': 'hidden',
object.subscriptionImageView = {'backgroundColor': null, 'width': '100%', 'height': 112, 'overflow': 'hidden',
'alignItems': 'center', 'justifyContent': 'center', backgroundColor: BACKGROUND_MOD_NORMAL};
object2.subscriptionImage = {'position': 'absolute', 'width': '100%', 'height': '100%'};
object2.subscriptionImageFallback = {opacity: 0.4};
object.subscriptionImage = {'position': 'absolute', 'width': '100%', 'height': '100%'};
object.subscriptionImageFallback = {opacity: 0.4};
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
object2.subscriptionImageOverlay = {'position': 'absolute', 'width': '100%', 'height': '100%',
object.subscriptionImageOverlay = {'position': 'absolute', 'width': '100%', 'height': '100%',
'backgroundColor': null, 'opacity': 0.4, backgroundColor: BLACK};
object2.guildInfo = {'flexDirection': 'row', 'padding': 16};
object2.guildInfoIcon = {marginRight: 8};
const object5 = {};
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
object.guildInfo = {'flexDirection': 'row', 'padding': 16};
object.guildInfoIcon = {marginRight: 8};
const object6 = {};
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
copyDataProperties(object5, textStyles(DISPLAY_EXTRABOLD, INTERACTIVE_TEXT_ACTIVE, 20), undefined);
object5['marginBottom'] = 4;
object2.guildInfoName = object5;
object2.guildInfoRowBottom = {'flexDirection': 'row', 'alignItems': 'center'};
object2.guildInfoRowIcon = {'height': 12, 'width': 8, 'marginLeft': 2, 'marginRight': 8};
object2.guildInfoSubscriptionCount = {lineHeight: 16};
copyDataProperties(object6, TextStyles(DISPLAY_EXTRABOLD, INTERACTIVE_TEXT_ACTIVE, 20), undefined);
object6['marginBottom'] = 4;
object.guildInfoName = object6;
object.guildInfoRowBottom = {'flexDirection': 'row', 'alignItems': 'center'};
object.guildInfoRowIcon = {'height': 12, 'width': 8, 'marginLeft': 2, 'marginRight': 8};
object.guildInfoSubscriptionCount = {lineHeight: 16};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object2.subscriptionSlot = {backgroundColor: BACKGROUND_SURFACE_HIGH, paddingLeft: 16};
object2.subscriptionSlotInner = {'alignItems': 'center', 'flexDirection': 'row', 'paddingRight': 16,
object.subscriptionSlot = {backgroundColor: BACKGROUND_SURFACE_HIGH, paddingLeft: 16};
object.subscriptionSlotInner = {'alignItems': 'center', 'flexDirection': 'row', 'paddingRight': 16,
'paddingVertical': 12};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.subscriptionSlotBorder = {backgroundColor: BORDER_SUBTLE, height: 1};
object2.subscriptionSlotInfo = {'flexShrink': 1, 'flexGrow': 1};
object2.subscriptionSlotInfoTitle = {lineHeight: 24};
object2.subscriptionSlotInfoCooldown = {lineHeight: 16};
object.subscriptionSlotBorder = {backgroundColor: BORDER_SUBTLE, height: 1};
object.subscriptionSlotInfo = {'flexShrink': 1, 'flexGrow': 1};
object.subscriptionSlotInfoTitle = {lineHeight: 24};
object.subscriptionSlotInfoCooldown = {lineHeight: 16};
const CONTROL_BRAND_FOREGROUND = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_BRAND_FOREGROUND;
object2.subscriptionSlotInfoTransferText = {'color': null, 'fontSize': 16, 'fontWeight': '500', 'lineHeight': 20,
object.subscriptionSlotInfoTransferText = {'color': null, 'fontSize': 16, 'fontWeight': '500', 'lineHeight': 20,
color: CONTROL_BRAND_FOREGROUND};
object2.unusedSlots = {marginBottom: 32};
object.unusedSlots = {marginBottom: 32};
const TEXT_LINK = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_LINK;
object2.subscribeButtonText = {'color': null, 'fontSize': 16, 'fontWeight': '500', 'lineHeight': 20,
object.subscribeButtonText = {'color': null, 'fontSize': 16, 'fontWeight': '500', 'lineHeight': 20,
color: TEXT_LINK};
const env0_14 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/GuildBoostSlotsInventory.tsx');
const env0_14 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/GuildBoostSlotsInventory.tsx');
exports.default = GuildBoostSlotsInventory;
}
function GuildBoostSlotCooldown({cooldownEndsAt}) { // fn#93628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:1868, offset: 0x020bd00a, size: 280 bytes, params: 2, frame: 22
var r0;
var Text;
var intl;
const styles = useStyles();
const value2 = env0_4.useMemo(_fun93629, [cooldownEndsAt]);
const {days, hours, minutes} = (importDefault(7054) /* metro dependency 7054: useCountdown */)(value2, 15000);
const value4 = value2.valueOf();
const Date = global.Date;
if (value4 <= Date.now()) {
r0 = null;
} else {
Text = (require(4573) /* metro dependency 4573: Text */).Text;
var textProps = {'style': null, 'variant': 'text-xs/medium', 'color': 'text-muted',
style: styles.subscriptionSlotInfoCooldown};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = <Text {...textProps}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.NffSH8,
{days: days, hours: hours, minutes: minutes})}</Text>;
}
return r0;
}
function GuildBoostSlotsInventoryRow({title, subtitle, action, isLast}) { // fn#93630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:2228, offset: 0x020bd147, size: 262 bytes, params: 2, frame: 29
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.subscriptionSlot}>
<View style={styles.subscriptionSlotInner}>
<View style={styles.subscriptionSlotInfo}>
<Text
style={styles.subscriptionSlotInfoTitle}
lineClamp={1}
variant="text-md/semibold"
color="interactive-text-active"
>
{title}
</Text>
{subtitle}
</View>
{action}
</View>
{isLast ? null : <View style={styles.subscriptionSlotBorder} />}
</View>
);
}
function GuildBoostSlot({guild, guildBoostSlot, isLast}) { // fn#93631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:2644, offset: 0x020bd24d, size: 469 bytes, params: 2, frame: 27
var r6;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
var property;
var Date;
var value4;
var date;
const styles = useStyles();
if (guild == null) {
return null;
}
const id = guildBoostSlot.premiumGuildSubscription != null ? guildBoostSlot.premiumGuildSubscription.id : null;
const r17 = id != null ? (importDefault(21) /* metro dependency 21: SnowflakeUtils */).extractTimestamp(id) : null;
if (r17 != null) {
formatToPlainString = intl.formatToPlainString;
property = (require(1244) /* metro dependency 1244: indexNative */).t['ePe+Xh'];
Date = global.Date;
value4 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(r17);
r6 = Reflect.apply(formatToPlainString, intl, [property, {date: date instanceof Object ? date : value4}]);
} else {
r6 = null;
}
return (
<GuildBoostSlotsInventoryRow
title={r6}
subtitle={guildBoostSlot.cooldownEndsAt != null ? <GuildBoostSlotCooldown cooldownEndsAt={guildBoostSlot.cooldownEndsAt} /> : null}
action={guildBoostSlot.isOnCooldown() ? null : ((PressableOpacity) => <PressableOpacity accessibilityRole="button" onPress={onPress_93632}>{((LegacyText) => <LegacyText style={styles.subscriptionSlotInfoTransferText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jqqLb6)}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
isLast={isLast}
/>
);
}
function UnusedGuildBoostSlots({unusedSlots}) { // fn#93633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:3370, offset: 0x020bd45e, size: 393 bytes, params: 2, frame: 31
var r6;
var object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var ewI23O;
const styles = useStyles();
let value2 = unusedSlots.filter(function({cooldownEndsAt}) {
function GuildBoostSlotCooldown({cooldownEndsAt}) { // fn#93628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:1868, offset: 0x020bd00a, size: 280 bytes, params: 2, frame: 22
var r0;
var value2;
var value = cooldownEndsAt != null;
if (value) {
value2 = new global.Date(cooldownEndsAt);
value2 = value2.valueOf();
cooldownEndsAt = global.Date;
value2 = value2 > cooldownEndsAt.now();
r0 = value2;
var Text;
var intl;
const styles = useStyles();
const value2 = ReactModule.useMemo(_fun93629, [cooldownEndsAt]);
const {days, hours, minutes} = (UseCountdown)(value2, 15000);
const value4 = value2.valueOf();
const Date = global.Date;
if (value4 <= Date.now()) {
r0 = null;
} else {
r0 = value;
Text = (require(4573) /* metro dependency 4573: Text */).Text;
var textProps = {'style': null, 'variant': 'text-xs/medium', 'color': 'text-muted',
style: styles.subscriptionSlotInfoCooldown};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = (
<Text {...textProps}>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.NffSH8, {days: days,
hours: hours,
minutes: minutes})}
</Text>
);
}
return r0;
});
const value3 = unusedSlots.filter(function({cooldownEndsAt}) {
var r0;
var value2;
var value = cooldownEndsAt == null;
if (value) {
r0 = value;
} else {
value2 = new global.Date(cooldownEndsAt);
value2 = value2.valueOf();
cooldownEndsAt = global.Date;
value2 = value2 <= cooldownEndsAt.now();
r0 = value2;
function _fun93629() { // fn#93629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:1943, offset: 0x020bd122, size: 37 bytes, params: 1, frame: 11
const Date = global.Date;
const cooldownEndsAtBinding = cooldownEndsAt;
const value = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(cooldownEndsAtBinding);
return date instanceof Object ? date : value;
}
return r0;
});
unusedSlots = styles.unusedSlots;
let length = value3.length;
if (length > 0) {
object = {};
formatToPlainString = intl.formatToPlainString;
ewI23O = t.ewI23O;
length = value3.length;
object.title = Reflect.apply(formatToPlainString, intl, [ewI23O, {numSubscriptions: length}]);
object.action = ((PressableOpacity) => <PressableOpacity accessibilityRole="button" onPress={onPress_93636}>{((LegacyText) => <LegacyText style={styles.subscribeButtonText}>{intl.string(t['7KyPor'])}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity);
length = value2.length;
object.isLast = length === 0;
r6 = <GuildBoostSlotsInventoryRow {...object} />;
} else {
r6 = null;
}
return (
<View style={unusedSlots}>
{[r6, value2.map(_fun93637)]}
</View>
);
}
function BoostedGuildInfo({guild, numGuildBoostSlots}) { // fn#93638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:4261, offset: 0x020bd75b, size: 474 bytes, params: 2, frame: 33
var r0;
var items4;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
var items3;
var intl;
const styles = useStyles();
if (guild == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.guildInfo};
items4 = [<View style={styles.guildInfoIcon}>{((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.NORMAL} selected={false} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)}</View>];
items2 = [<Text style={styles.guildInfoName} variant="heading-lg/extrabold" color="interactive-text-active">{guild.name}</Text>];
var viewBinding4Props = {style: styles.guildInfoRowBottom};
items3 = [<Image source={importDefault(12229) /* metro dependency 12229 */} style={styles.guildInfoRowIcon} />];
var textProps = {'style': null, 'variant': 'text-xs/semibold', 'color': 'interactive-text-active',
style: styles.guildInfoSubscriptionCount};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items3[1] = <Text {...textProps}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.bexfNy,
{numSubscriptions: numGuildBoostSlots})}</Text>;
items2[1] = <View {...viewBinding4Props}>{items3}</View>;
items4[1] = <View>{items2}</View>;
r0 = <View {...viewBindingProps}>{items4}</View>;
}
return r0;
}
function BoostedGuild({guildId, guildBoostSlots}) { // fn#93639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:4909, offset: 0x020bd935, size: 556 bytes, params: 2, frame: 33
const styles = useStyles();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
const theme = (require(566) /* metro dependency 566: flux */).useStateFromStores([ThemeStore], function() {
return ThemeStore.theme;
});
const r16 = guild != null && guild.banner != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildBannerSource(guild) : null;
return (
<View style={styles.boostedGuild}>
<View style={styles.subscriptionBody}>
<View style={styles.subscriptionImageView}>
<Image
source={r16 ?? (require(12230) /* metro dependency 12230: SubscriptionPlaceholderPattern */).useSubscriptionPlaceholderPatternSource()}
style={[styles.subscriptionImage, r16 == null ? styles.subscriptionImageFallback : null]}
/>
{r16 != null ? <View style={styles.subscriptionImageOverlay} /> : null}
{((Component) => <Component guild={guild} theme={theme} />)(importDefault(12234) /* metro dependency 12234: BoostedGuildTierProgressCircle */)}
function GuildBoostSlotsInventoryRow({title, subtitle, action, isLast}) { // fn#93630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:2228, offset: 0x020bd147, size: 262 bytes, params: 2, frame: 29
const styles = useStyles();
const Text = (TextModule).Text;
return (
<View style={styles.subscriptionSlot}>
<View style={styles.subscriptionSlotInner}>
<View style={styles.subscriptionSlotInfo}>
<Text
style={styles.subscriptionSlotInfoTitle}
lineClamp={1}
variant="text-md/semibold"
color="interactive-text-active"
>
{title}
</Text>
{subtitle}
</View>
{action}
</View>
<BoostedGuildInfo guild={guild} numGuildBoostSlots={guildBoostSlots.length} />
{
isLast
? null
: (
<View style={styles.subscriptionSlotBorder} />
)
}
</View>
<View>
{guildBoostSlots.map(_fun93642)}
</View>
</View>
);
}
);
}
function GuildBoostSlotsInventory() { // fn#93643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:5772, offset: 0x020bdbad, size: 525 bytes, params: 1, frame: 29
var r6;
var r0;
var value8;
var value9;
var items2;
var jsxRuntimeEnv0_13Binding;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var value;
const styles = useStyles();
env0_4.useEffect(_fun93644, []);
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const premiumTypeSubscription = Reflect.apply(useStateFromStores, fluxModule, [[SubscriptionStore], function() {
return SubscriptionStore.getPremiumTypeSubscription();
}]);
const moduleValue2 = fluxModule;
useStateFromStores = moduleValue2.useStateFromStores;
const value5 = (importDefault(22) /* metro dependency 22 */)(Reflect.apply(useStateFromStores, moduleValue2,
[[GuildBoostSlotStore], function() {
return GuildBoostSlotStore.boostSlots;
}])).groupBy(function({premiumGuildSubscription}) {
return premiumGuildSubscription != null ? premiumGuildSubscription.guildId : '0';
}).value();
const property = value5[0];
const Object = global.Object;
const value7 = Object.keys(value5).filter(function(a0) {
return a0 !== '0';
});
if (value7.length !== 0) {
value9 = null;
if (value9 == premiumTypeSubscription) {
r0 = value9;
function GuildBoostSlot({guild, guildBoostSlot, isLast}) { // fn#93631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:2644, offset: 0x020bd24d, size: 469 bytes, params: 2, frame: 27
var r6;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var formatToPlainString;
var property;
var Date;
var value4;
var date;
const styles = useStyles();
if (guild == null) {
return null;
}
const id = guildBoostSlot.premiumGuildSubscription != null ? guildBoostSlot.premiumGuildSubscription.id : null;
const r17 = id != null ? (importDefault(21) /* metro dependency 21: SnowflakeUtils */).extractTimestamp(id) : null;
if (r17 != null) {
formatToPlainString = intl.formatToPlainString;
property = (require(1244) /* metro dependency 1244: indexNative */).t['ePe+Xh'];
Date = global.Date;
value4 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date(r17);
r6 = Reflect.apply(formatToPlainString, intl, [property, {date: date instanceof Object ? date : value4}]);
} else {
var viewBindingProps = {style: styles.inventory};
items2 = [value9 != property && property.length > 0 ? <UnusedGuildBoostSlots unusedSlots={property} /> : value9];
if (value7.length > 0) {
jsxRuntimeEnv0_13Binding = jsxRuntimeEnv0_13;
value = <Text style={styles.header} variant="eyebrow" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gB9oQ7)}</Text>;
value = <>{[value, value7.map(_fun93649)]}</>;
r6 = value;
r6 = null;
}
return (
<GuildBoostSlotsInventoryRow
title={r6}
subtitle={guildBoostSlot.cooldownEndsAt != null
? (
<GuildBoostSlotCooldown cooldownEndsAt={guildBoostSlot.cooldownEndsAt} />
)
: null}
action={guildBoostSlot.isOnCooldown()
? null
: ((PressableOpacity) => <PressableOpacity accessibilityRole="button" onPress={onPress_93632}>{((LegacyText) => <LegacyText style={styles.subscriptionSlotInfoTransferText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jqqLb6)}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity)}
isLast={isLast}
/>
);
function GuildBoostSlotOnPress() { // fn#93632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:3179, owner: GuildBoostSlot.onPress, offset: 0x020bd422, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (BoostingActionCreatorsModule).openTransferModal({guildBoostSlots: [guildBoostSlot]});
}
}
function UnusedGuildBoostSlots({unusedSlots}) { // fn#93633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:3370, offset: 0x020bd45e, size: 393 bytes, params: 2, frame: 31
var r6;
var object2;
const intl = (IndexNativeModule).intl;
var formatToPlainString;
const t = (IndexNativeModule).t;
var ewI23O;
const styles = useStyles();
let value2 = unusedSlots.filter(function({cooldownEndsAt}) {
var r0;
var value2;
var value = cooldownEndsAt != null;
if (value) {
value2 = new global.Date(cooldownEndsAt);
value2 = value2.valueOf();
cooldownEndsAt = global.Date;
value2 = value2 > cooldownEndsAt.now();
r0 = value2;
} else {
r6 = value9;
r0 = value;
}
items2[1] = r6;
value = <View {...viewBindingProps}>{items2}</View>;
r0 = value;
}
} else {
value8 = null;
if (value8 == property) {
r0 = value8;
return r0;
});
const value3 = unusedSlots.filter(function({cooldownEndsAt}) {
var r0;
var value2;
var value = cooldownEndsAt == null;
if (value) {
r0 = value;
} else {
value2 = new global.Date(cooldownEndsAt);
value2 = value2.valueOf();
cooldownEndsAt = global.Date;
value2 = value2 <= cooldownEndsAt.now();
r0 = value2;
}
return r0;
});
unusedSlots = styles.unusedSlots;
let length = value3.length;
if (length > 0) {
object2 = {};
formatToPlainString = intl.formatToPlainString;
ewI23O = t.ewI23O;
length = value3.length;
object2.title = Reflect.apply(formatToPlainString, intl, [ewI23O, {numSubscriptions: length}]);
object2.action = ((PressableOpacity) => <PressableOpacity accessibilityRole="button" onPress={onPress_93636}>{((LegacyText) => <LegacyText style={styles.subscribeButtonText}>{intl.string(t['7KyPor'])}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity);
length = value2.length;
object2.isLast = length === 0;
r6 = <GuildBoostSlotsInventoryRow {...object2} />;
} else {
r6 = null;
}
return (
<View style={unusedSlots}>
{[r6, value2.map(_fun93637)]}
</View>
);
function UnusedGuildBoostSlotsOnPress() { // fn#93636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:3827, owner: UnusedGuildBoostSlots.onPress, offset: 0x020bd685, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (BoostingActionCreatorsModule).openApplyBoostModal();
}
function _fun93637(a0, a1) { // fn#93637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:4012, offset: 0x020bd6aa, size: 177 bytes, params: 3, frame: 22
const value = environment.__proto__;
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const gDsyB9 = (IndexNativeModule).t.gDsyB9;
const cooldownEndsAt = a0.cooldownEndsAt;
const value2 = null;
return (
<GuildBoostSlotsInventoryRow
title={Reflect.apply(formatToPlainString, intl, [gDsyB9, {numSubscriptions: 1}])}
subtitle={value2 != cooldownEndsAt
? (
<GuildBoostSlotCooldown cooldownEndsAt={a0.cooldownEndsAt} />
)
: value2}
isLast={a1 === env0_0.length - 1}
key={a0.id}
/>
);
}
}
function BoostedGuildInfo({guild, numGuildBoostSlots}) { // fn#93638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:4261, offset: 0x020bd75b, size: 474 bytes, params: 2, frame: 33
var r0;
var items4;
const Text = (TextModule).Text;
var items2;
var items3;
var intl;
const styles = useStyles();
if (guild == null) {
r0 = null;
} else {
var viewBindingProps = {style: styles.guildInfo};
items4 = [
<View style={styles.guildInfoIcon}>
{((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.NORMAL} selected={false} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)}
</View>,
];
items2 = [
<Text
style={styles.guildInfoName}
variant="heading-lg/extrabold"
color="interactive-text-active"
>
{guild.name}
</Text>,
];
var viewBinding4Props = {style: styles.guildInfoRowBottom};
items3 = [
<Image source={importDefault(12229) /* metro dependency 12229 */} style={styles.guildInfoRowIcon} />,
];
var textProps = {'style': null, 'variant': 'text-xs/semibold', 'color': 'interactive-text-active',
style: styles.guildInfoSubscriptionCount};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items3[1] = (
<Text {...textProps}>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.bexfNy,
{numSubscriptions: numGuildBoostSlots})}
</Text>
);
items2[1] = (
<View {...viewBinding4Props}>
{items3}
</View>
);
items4[1] = (
<View>
{items2}
</View>
);
r0 = (
<View {...viewBindingProps}>
{items4}
</View>
);
}
return r0;
}
function BoostedGuild({guildId, guildBoostSlots}) { // fn#93639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:4909, offset: 0x020bd935, size: 556 bytes, params: 2, frame: 33
const styles = useStyles();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
const theme = (require(566) /* metro dependency 566: flux */).useStateFromStores([ThemeStore], function() {
return ThemeStore.theme;
});
const r16 = guild != null && guild.banner != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildBannerSource(guild) : null;
return (
<View style={styles.boostedGuild}>
<View style={styles.subscriptionBody}>
<View style={styles.subscriptionImageView}>
<Image
source={r16 ?? (require(12230) /* metro dependency 12230: SubscriptionPlaceholderPattern */).useSubscriptionPlaceholderPatternSource()}
style={[styles.subscriptionImage, r16 == null ? styles.subscriptionImageFallback : null]}
/>
{
r16 != null
? (
<View style={styles.subscriptionImageOverlay} />
)
: null
}
{((Component) => <Component guild={guild} theme={theme} />)(importDefault(12234) /* metro dependency 12234: BoostedGuildTierProgressCircle */)}
</View>
<BoostedGuildInfo guild={guild} numGuildBoostSlots={guildBoostSlots.length} />
</View>
<View>
{guildBoostSlots.map(_fun93642)}
</View>
</View>
);
function _fun93642(a0, a1) { // fn#93642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:5590, offset: 0x020bdb61, size: 76 bytes, params: 3, frame: 16
return (
<GuildBoostSlot
guild={guild}
guildBoostSlot={a0}
isLast={a1 === guildBoostSlots.length - 1}
key={a0.id}
/>
);
}
}
function GuildBoostSlotsInventory() { // fn#93643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:5772, offset: 0x020bdbad, size: 525 bytes, params: 1, frame: 29
var r6;
var r0;
var value8;
var value9;
var items2;
var jsxRuntimeEnv0_13Binding;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var value;
const styles = useStyles();
ReactModule.useEffect(_fun93644, []);
let useStateFromStores = FluxModule.useStateFromStores;
const premiumTypeSubscription = Reflect.apply(useStateFromStores, FluxModule, [[SubscriptionStore], function() {
return SubscriptionStore.getPremiumTypeSubscription();
}]);
useStateFromStores = FluxModule.useStateFromStores;
const value5 = (importDefault(22) /* metro dependency 22 */)(Reflect.apply(useStateFromStores, FluxModule,
[[GuildBoostSlotStore], function() {
return GuildBoostSlotStore.boostSlots;
}])).groupBy(function({premiumGuildSubscription}) {
return premiumGuildSubscription != null ? premiumGuildSubscription.guildId : '0';
}).value();
const property = value5[0];
const Object = global.Object;
const value7 = Object.keys(value5).filter(function(a0) {
return a0 !== '0';
});
if (value7.length !== 0) {
value9 = null;
if (value9 == premiumTypeSubscription) {
r0 = value9;
} else {
var viewBindingProps = {style: styles.inventory};
items2 = [value9 != property && property.length > 0 ? <UnusedGuildBoostSlots unusedSlots={property} /> : value9];
items2 = [
value9 != property && property.length > 0
? (
<UnusedGuildBoostSlots unusedSlots={property} />
)
: value9,
];
if (value7.length > 0) {
jsxRuntimeEnv0_13Binding = jsxRuntimeEnv0_13;
value = <Text style={styles.header} variant="eyebrow" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gB9oQ7)}</Text>;
value = <>{[value, value7.map(_fun93649)]}</>;
value = (
<Text
style={styles.header}
variant="eyebrow"
color="text-default"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gB9oQ7)}
</Text>
);
value = (
<>
{[value, value7.map(_fun93649)]}
</>
);
r6 = value;
} else {
r6 = value9;
}
items2[1] = r6;
value = <View {...viewBindingProps}>{items2}</View>;
value = (
<View {...viewBindingProps}>
{items2}
</View>
);
r0 = value;
}
} else {
value8 = null;
if (value8 == property) {
r0 = value8;
} else {
value9 = null;
if (value9 == premiumTypeSubscription) {
r0 = value9;
} else {
var viewBindingProps = {style: styles.inventory};
items2 = [
value9 != property && property.length > 0
? (
<UnusedGuildBoostSlots unusedSlots={property} />
)
: value9,
];
if (value7.length > 0) {
jsxRuntimeEnv0_13Binding = jsxRuntimeEnv0_13;
value = (
<Text
style={styles.header}
variant="eyebrow"
color="text-default"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gB9oQ7)}
</Text>
);
value = (
<>
{[value, value7.map(_fun93649)]}
</>
);
r6 = value;
} else {
r6 = value9;
}
items2[1] = r6;
value = (
<View {...viewBindingProps}>
{items2}
</View>
);
r0 = value;
}
}
}
return r0;
function _fun93644() { // fn#93644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:5831, offset: 0x020bddba, size: 63 bytes, params: 1, frame: 13
const value = environment.__proto__;
(BillingActionCreatorsModule).fetchSubscriptions();
(BoostingActionCreatorsModule2).fetchGuildBoostSlots();
}
function _fun93649(a0) { // fn#93649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:6464, offset: 0x020bde36, size: 47 bytes, params: 2, frame: 15
return (
<BoostedGuild
guildId={a0}
guildBoostSlots={env0_0[a0]}
key={a0}
/>
);
}
}
return r0;
}
function _fun93629() { // fn#93629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:1943, offset: 0x020bd122, size: 37 bytes, params: 1, frame: 11
const Date = global.Date;
const cooldownEndsAtBinding = cooldownEndsAt;
const value = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(cooldownEndsAtBinding);
return date instanceof Object ? date : value;
}
function GuildBoostSlotOnPress() { // fn#93632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:3179, owner: GuildBoostSlot.onPress, offset: 0x020bd422, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (require(6522) /* metro dependency 6522: BoostingActionCreators */).openTransferModal({guildBoostSlots: [guildBoostSlot]});
}
function UnusedGuildBoostSlotsOnPress() { // fn#93636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:3827, owner: UnusedGuildBoostSlots.onPress, offset: 0x020bd685, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(6522) /* metro dependency 6522: BoostingActionCreators */).openApplyBoostModal();
}
function _fun93637(a0, a1) { // fn#93637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:4012, offset: 0x020bd6aa, size: 177 bytes, params: 3, frame: 22
const value = environment.__proto__;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const gDsyB9 = (require(1244) /* metro dependency 1244: indexNative */).t.gDsyB9;
const cooldownEndsAt = a0.cooldownEndsAt;
const value2 = null;
return (
<GuildBoostSlotsInventoryRow
title={Reflect.apply(formatToPlainString, intl, [gDsyB9, {numSubscriptions: 1}])}
subtitle={value2 != cooldownEndsAt ? <GuildBoostSlotCooldown cooldownEndsAt={a0.cooldownEndsAt} /> : value2}
isLast={a1 === env0_0.length - 1}
key={a0.id}
/>
);
}
function _fun93642(a0, a1) { // fn#93642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:5590, offset: 0x020bdb61, size: 76 bytes, params: 3, frame: 16
return (
<GuildBoostSlot
guild={guild}
guildBoostSlot={a0}
isLast={a1 === guildBoostSlots.length - 1}
key={a0.id}
/>
);
}
function _fun93644() { // fn#93644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:5831, offset: 0x020bddba, size: 63 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importAll(4223) /* metro dependency 4223: BillingActionCreators */).fetchSubscriptions();
(require(8251) /* metro dependency 8251: BoostingActionCreators */).fetchGuildBoostSlots();
}
function _fun93649(a0) { // fn#93649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12414:6464, offset: 0x020bde36, size: 47 bytes, params: 2, frame: 15
return (
<BoostedGuild
guildId={a0}
guildBoostSlots={env0_0[a0]}
key={a0}
/>
);
}
global.__d(_fun93627, 12228, [31, 27, 1310, 1867, 7020, 3808, 661, 33, 4501, 697, 6597, 7054, 4573, 1244, 21, 5278,
6522, 1305, 6819, 12229, 566, 1423, 12230, 12234, 4223, 8251, 22,
2]) /* metro module 12228, dependencies: [31, 27, 1310, 1867, 7020, 3808, 661, 33, 4501, 697, 6597, 7054, 4573, 1244, 21, 5278, 6522, 1305, 6819, 12229, 566, 1423, 12230, 12234, 4223, 8251, 22, 2] */;
@@ -1,77 +1,82 @@
/* Metro module 15733; source: modules/premium/native/IAPManager.android.tsx; dependencies: [7, 6, 15, 17, 18, 4860, 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 AutomaticLifecycleManager from '../../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun120798(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:6, offset: 0x02535e51, size: 218 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(7) /* metro dependency 7 */;
const env0_1 = importDefault(6) /* metro dependency 6 */;
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 value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
let value = AutomaticLifecycleManager;
value = _fun120802(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/IAPManager.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/IAPManager.android.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_120799() { // fn#120799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:148, offset: 0x02535f2b, 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) {
function _isNativeReflectConstruct_120799() { // fn#120799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:148, offset: 0x02535f2b, 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_120799_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_120799_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun120802(a0) { // fn#120802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:351, offset: 0x02535f8d, size: 42 bytes, params: 2, frame: 14
const closure = IAPManager;
env0_4(closure, a0);
return env0_0(closure);
}
function _fun120802(a0) { // fn#120802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:351, offset: 0x02535f8d, size: 42 bytes, params: 2, frame: 14
const IAPManager2 = IAPManager;
Inherits(IAPManager2, a0);
return CreateClass(IAPManager2);
function IAPManager(a0) { // fn#120803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:363, offset: 0x02535fb7, size: 160 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_1;
binding(this, IAPManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_3(IAPManager);
binding = env1_2;
if (_isNativeReflectConstruct_120799()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.actions = {POST_CONNECTION_OPEN: function() {
}, APP_STATE_UPDATE: function() {
}};
return value;
}
function IAPManager(a0) { // fn#120803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15941:363, offset: 0x02535fb7, size: 160 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_1;
binding(this, IAPManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_3(IAPManager);
binding = env1_2;
if (_isNativeReflectConstruct_120799()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_3(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
value.actions = {POST_CONNECTION_OPEN: function() {
}, APP_STATE_UPDATE: function() {
}};
return value;
}
global.__d(_fun120798, 15733, [7, 6, 15, 17, 18, 4860,
2]) /* metro module 15733, dependencies: [7, 6, 15, 17, 18, 4860, 2] */;
@@ -1,84 +1,117 @@
/* Metro module 14943; source: modules/premium/native/MobileTrialUserSettingsAvatarBadge.tsx; dependencies: [31, 27, 1878, 1880, 33, 4501, 697, 7062, 7061, 566, 14944, 14945, 14946, 14947, 10357, 1365, 1305, 10843, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as Dismissible_contentModule from '../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as MobileTrialUtilsModule from './MobileTrialUtils.tsx'; /* Metro dependency 7061 */
import * as UsePremiumTrialOfferNativeModule from '../hooks/usePremiumTrialOffer.native.tsx'; /* Metro dependency 7062 */
function _fun113050(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15140:6, offset: 0x023e74bd, size: 518 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_5 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumSubscriptionSKUs;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.Fragment;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
const MOBILE_TEXT_HEADING_PRIMARY = (Native).colors.MOBILE_TEXT_HEADING_PRIMARY;
const env0_9 = Reflect.apply(createStyles, value, [{sparkleContainer: {position: 'absolute'}, sparkle: {'width': 12,
'height': 12}, sparkle2: {'width': 4, 'height': 4, tintColor: MOBILE_TEXT_HEADING_PRIMARY}, star: {'width': 8,
'height': 8}, defaultSparklePosition: {'bottom': -6, 'left': -8}, defaultSparkle2Position: {'bottom': 16,
'left': -2}, defaultStarPosition: {'top': -4, 'right': -8}, avatarSparklePosition: {'bottom': -8, 'left': -10},
avatarSparkle2Position: {'bottom': 16, 'left': -2}, avatarStarPosition: {'top': -4, 'right': -10},
sparkle2Transform: {transform: [{rotate: '20deg'}]}, starTransform: {transform: [{rotate: '-165deg'}]}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/MobileTrialUserSettingsAvatarBadge.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/MobileTrialUserSettingsAvatarBadge.tsx');
exports.MobileTrialUserSettingsAvatarBadge = MobileTrialUserSettingsAvatarBadge;
}
function MobileTrialUserSettingsAvatarBadge() { // fn#113051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15140:880, offset: 0x023e76c3, size: 461 bytes, params: 1, frame: 20
var r7;
var r2;
var sku_id;
var value5;
var TIER_0;
const value2 = undefined;
const styles = useStyles();
const value3 = (UsePremiumTrialOfferNativeModule).usePremiumTrialOffer();
const subscription_trial = value3 == null ? value2 : value3.subscription_trial;
const value4 = (MobileTrialUtilsModule).useShouldShowPremiumTrialUserSettingsAvatarBadge();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
if (value4) {
value5 = (currentUser == null ? value2 : currentUser.avatar) != null;
r7 = value5 ? styles.avatarSparklePosition : styles.defaultSparklePosition;
r7 = value5 ? styles.avatarSparkle2Position : styles.defaultSparkle2Position;
r2 = value5 ? styles.avatarStarPosition : styles.defaultStarPosition;
sku_id = subscription_trial == null ? value2 : subscription_trial.sku_id;
TIER_0 = PremiumSubscriptionSKUs.TIER_0;
r2 = sku_id === TIER_0 ? importDefault(14944) /* metro dependency 14944 */ : importDefault(14945) /* metro dependency 14945 */;
sku_id = subscription_trial == null ? value2 : subscription_trial.sku_id;
TIER_0 = PremiumSubscriptionSKUs.TIER_0;
var env0_5 = sku_id === TIER_0 ? importDefault(14946) /* metro dependency 14946 */ : importDefault(14947) /* metro dependency 14947 */;
return ((Component) => <Component contentTypes={[(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE]}>{children_113053}</Component>)(importDefault(10357) /* metro dependency 10357: SelectedDismissibleContent */);
}
return null;
function MobileTrialUserSettingsAvatarBadgeChildren({visibleContent}) { // fn#113053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15140:1571, owner: MobileTrialUserSettingsAvatarBadge.children, offset: 0x023e7890, size: 399 bytes, params: 2, frame: 27
var jsxRuntimeEnv1_7Binding;
var stylesBinding;
var sparkleContainer;
const Icon = (NativeModule).Icon;
var items2;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE = DismissibleContent.PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE;
if (visibleContent === PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE) {
jsxRuntimeEnv1_7Binding = jsxRuntimeEnv1_7;
stylesBinding = styles;
sparkleContainer = stylesBinding.sparkleContainer;
items2 = [
<View style={[sparkleContainer, env0_1]}>
<Icon
source={env0_4}
style={stylesBinding.sparkle}
disableColor
/>
</View>,
];
sparkleContainer = stylesBinding.sparkleContainer;
items2[1] = (
<View style={[sparkleContainer, stylesBinding.starTransform, ReactNativeModule.View]}>
<Icon
source={env0_5}
style={stylesBinding.star}
disableColor
/>
</View>
);
sparkleContainer = stylesBinding.sparkleContainer;
items2[2] = (
<View style={[sparkleContainer, stylesBinding.sparkle2Transform, env0_2]}>
<Icon
source={importDefault(10843) /* metro dependency 10843 */}
style={stylesBinding.sparkle2}
disableColor
/>
</View>
);
return (
<>
{items2}
</>
);
}
}
function MobileTrialUserSettingsAvatarBadge() { // fn#113051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15140:880, offset: 0x023e76c3, size: 461 bytes, params: 1, frame: 20
var r7;
var r2;
var sku_id;
var value5;
var TIER_0;
const value2 = undefined;
const styles = useStyles();
const value3 = (require(7062) /* metro dependency 7062: usePremiumTrialOfferNative */).usePremiumTrialOffer();
const subscription_trial = value3 == null ? value2 : value3.subscription_trial;
const value4 = (require(7061) /* metro dependency 7061: MobileTrialUtils */).useShouldShowPremiumTrialUserSettingsAvatarBadge();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
if (value4) {
value5 = (currentUser == null ? value2 : currentUser.avatar) != null;
r7 = value5 ? styles.avatarSparklePosition : styles.defaultSparklePosition;
r7 = value5 ? styles.avatarSparkle2Position : styles.defaultSparkle2Position;
r2 = value5 ? styles.avatarStarPosition : styles.defaultStarPosition;
sku_id = subscription_trial == null ? value2 : subscription_trial.sku_id;
TIER_0 = PremiumSubscriptionSKUs.TIER_0;
r2 = sku_id === TIER_0 ? importDefault(14944) /* metro dependency 14944 */ : importDefault(14945) /* metro dependency 14945 */;
sku_id = subscription_trial == null ? value2 : subscription_trial.sku_id;
TIER_0 = PremiumSubscriptionSKUs.TIER_0;
var env0_5 = sku_id === TIER_0 ? importDefault(14946) /* metro dependency 14946 */ : importDefault(14947) /* metro dependency 14947 */;
return ((Component) => <Component contentTypes={[(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE]}>{children_113053}</Component>)(importDefault(10357) /* metro dependency 10357: SelectedDismissibleContent */);
}
return null;
}
function MobileTrialUserSettingsAvatarBadgeChildren({visibleContent}) { // fn#113053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15140:1571, owner: MobileTrialUserSettingsAvatarBadge.children, offset: 0x023e7890, size: 399 bytes, params: 2, frame: 27
var jsxRuntimeEnv1_7Binding;
var stylesBinding;
var sparkleContainer;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
var items2;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE = DismissibleContent.PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE;
if (visibleContent === PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE) {
jsxRuntimeEnv1_7Binding = jsxRuntimeEnv1_7;
stylesBinding = styles;
sparkleContainer = stylesBinding.sparkleContainer;
items2 = [<View style={[sparkleContainer,
env0_1]}><Icon source={env0_4} style={stylesBinding.sparkle} disableColor /></View>];
sparkleContainer = stylesBinding.sparkleContainer;
items2[1] = <View style={[sparkleContainer, stylesBinding.starTransform,
env0_3]}><Icon source={env0_5} style={stylesBinding.star} disableColor /></View>;
sparkleContainer = stylesBinding.sparkleContainer;
items2[2] = <View style={[sparkleContainer, stylesBinding.sparkle2Transform,
env0_2]}><Icon source={importDefault(10843) /* metro dependency 10843 */} style={stylesBinding.sparkle2} disableColor /></View>;
return (
<>
{items2}
</>
);
}
}
global.__d(_fun113050, 14943, [31, 27, 1878, 1880, 33, 4501, 697, 7062, 7061, 566, 14944, 14945, 14946, 14947,
10357, 1365, 1305, 10843,
2]) /* metro module 14943, dependencies: [31, 27, 1878, 1880, 33, 4501, 697, 7062, 7061, 566, 14944, 14945, 14946, 14947, 10357, 1365, 1305, 10843, 2] */;
@@ -1,10 +1,15 @@
/* Metro module 7061; source: modules/premium/native/MobileTrialUtils.tsx; dependencies: [1880, 7062, 3968, 1365, 7249, 3802, 1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Dismissible_contentModule from '../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as DismissibleContentUnsafeUtilsModule from '../../dismissible_content/DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
import * as UsePremiumTrialOfferNativeModule from '../hooks/usePremiumTrialOffer.native.tsx'; /* Metro dependency 7062 */
function _fun55984(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7239:6, offset: 0x013ba5c1, size: 137 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumSubscriptionSKUToPremiumType;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/MobileTrialUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/MobileTrialUtils.tsx');
exports.useShouldShowPremiumTrialUserSettingsAvatarBadge = useShouldShowPremiumTrialUserSettingsAvatarBadge;
exports.usePremiumTrialOfferPremiumType = function() {
var value2 = undefined;
@@ -12,38 +17,39 @@ function _fun55984(global, require, importDefault, importAll, module, exports, d
return PremiumSubscriptionSKUToPremiumType[value3 == null || value3.subscription_trial == null ? value2 : value3.subscription_trial.sku_id];
};
exports.useNitroTrialCtaOverride = useNitroTrialCtaOverride;
}
function useShouldShowPremiumTrialUserSettingsAvatarBadge() { // fn#55985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7239:270, offset: 0x013ba64a, size: 119 bytes, params: 1, frame: 15
let value = undefined;
const value2 = (require(7062) /* metro dependency 7062: usePremiumTrialOfferNative */).usePremiumTrialOffer();
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
const UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE = DismissibleContent.PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE;
const value3 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
[PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE]);
value = (value2 == null ? value : value2.expires_at) != null;
return value2 != null && !value && !value3;
}
function useNitroTrialCtaOverride(a0) { // fn#55987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7239:769, offset: 0x013ba70e, size: 219 bytes, params: 2, frame: 18
var intl;
var value;
const value2 = undefined;
const value3 = (require(7062) /* metro dependency 7062: usePremiumTrialOfferNative */).usePremiumTrialOffer();
const subscription_trial = value3 == null ? value2 : value3.subscription_trial;
if (subscription_trial != null) {
var moduleValue2 = require(7249) /* metro dependency 7249: AndroidTwoWeekTrialsExperiment */;
if (moduleValue2.isAndroidTwoWeekTrialsTrialCTAEnabled({location: a0})) {
value = require(3802) /* metro dependency 3802: PremiumUtils */;
value = value.formatIntervalDuration({intervalType: subscription_trial.interval,
intervalCount: subscription_trial.interval_count});
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['6xpY54'],
{duration: value});
}
function useShouldShowPremiumTrialUserSettingsAvatarBadge() { // fn#55985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7239:270, offset: 0x013ba64a, size: 119 bytes, params: 1, frame: 15
let value = undefined;
const value2 = (UsePremiumTrialOfferNativeModule).usePremiumTrialOffer();
const UNSAFE_useIsDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE = DismissibleContent.PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE;
const value3 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, DismissibleContentUnsafeUtilsModule,
[PREMIUM_MOBILE_TRIAL_USER_SETTINGS_AVATAR_BADGE]);
value = (value2 == null ? value : value2.expires_at) != null;
return value2 != null && !value && !value3;
}
return null;
function useNitroTrialCtaOverride(a0) { // fn#55987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7239:769, offset: 0x013ba70e, size: 219 bytes, params: 2, frame: 18
var intl;
var value;
const value2 = undefined;
const value3 = (UsePremiumTrialOfferNativeModule).usePremiumTrialOffer();
const subscription_trial = value3 == null ? value2 : value3.subscription_trial;
if (subscription_trial != null) {
var moduleValue2 = require(7249) /* metro dependency 7249: AndroidTwoWeekTrialsExperiment */;
if (moduleValue2.isAndroidTwoWeekTrialsTrialCTAEnabled({location: a0})) {
value = require(3802) /* metro dependency 3802: PremiumUtils */;
value = value.formatIntervalDuration({intervalType: subscription_trial.interval,
intervalCount: subscription_trial.interval_count});
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['6xpY54'],
{duration: value});
}
}
return null;
}
}
global.__d(_fun55984, 7061, [1880, 7062, 3968, 1365, 7249, 3802, 1244,
2]) /* metro module 7061, dependencies: [1880, 7062, 3968, 1365, 7249, 3802, 1244, 2] */;
Loaded 100 of 22448 files, more files were not shown because too many files have changed in this diff. Show more