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

+243 -202
View File
@@ -1,11 +1,23 @@
/* Metro module 3829; source: modules/user_settings/UserSettings.tsx; dependencies: [3830, 1348, 670, 3831, 661, 3832, 3833, 1345, 1314, 628, 3834, 22, 566, 3835, 3842, 1352, 2] */
import ShallowEqual from '../../external/discord_common/js/packages/shallow-equal/shallowEqual.tsx'; /* Metro dependency 628 */
import UserSettingsProtoStore from './UserSettingsProtoStore.tsx'; /* Metro dependency 1348 */
import UserSettingsOverridesStore from './UserSettingsOverridesStore.tsx'; /* Metro dependency 3830 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00022Module from '../../by-id/module-00022.js'; /* Metro dependency 22 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as UserSettingsConstantsModule from './UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as Preloaded_user_settingsModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/preloaded_user_settings.tsx'; /* Metro dependency 1314 */
import * as WrappersModule from '../../external/discord_common/js/packages/protos/google/protobuf/wrappers.tsx'; /* Metro dependency 1345 */
import * as StickersConstantsModule from '../stickers/StickersConstants.tsx'; /* Metro dependency 3832 */
import * as ChannelListLayoutTypesModule from '../main_tabs_v2/ChannelListLayoutTypes.tsx'; /* Metro dependency 3834 */
import * as RegionalFeatureConfigUtilsModule from '../regional_feature_config/RegionalFeatureConfigUtils.tsx'; /* Metro dependency 3835 */
import * as SettingsDefaultFeatureModule from '../../external/discord_common/js/shared/shared-constants/SettingsDefaultFeature.tsx'; /* Metro dependency 3842 */
function _fun31098(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:6, offset: 0x00ff3586, size: 6219 bytes, params: 8, frame: 140
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userSettingsOverridesStore = importDefault(3830) /* metro dependency 3830: UserSettingsOverridesStore */;
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
let value = require(670) /* metro dependency 670: UserSettingsConstants */;
let value = UserSettingsConstantsModule;
const UserSettingsDelay = value.UserSettingsDelay;
const ListDensityMode = value.ListDensityMode;
value = require(3831) /* metro dependency 3831: DMSafetyConstants */;
@@ -15,7 +27,6 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
const env0_6 = value.AllFriendSourceFlags;
const env0_7 = value.SpoilerRenderSetting;
const StatusTypes = value.StatusTypes;
const env0_9 = (require(3832) /* metro dependency 3832: StickersConstants */).StickerAnimationSettings;
let defineProtoSetting = (require(3833) /* metro dependency 3833: UserSettingDefinitions */).defineProtoSetting;
let closure = function(a0) {
var r1;
@@ -638,7 +649,7 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
const value159 = userSettingDefinitionsModule;
const value160 = Reflect.apply(wrapSettingWithSelectiveSyncing, value158,
[value159.defineProtoSetting('textAndImages', 'defaultReactionEmoji', _fun31249, _fun31250,
{comparator: importDefault(628) /* metro dependency 628: shallowEqual */}), 'text', 'defaultReactionEmoji']);
{comparator: ShallowEqual}), 'text', 'defaultReactionEmoji']);
const value162 = userSettingDefinitionsModule.defineProtoSetting('localization', 'timezoneOffset', function(a0) {
var r1;
var value = null;
@@ -652,7 +663,7 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
Set = global.Set;
const AUTO = ListDensityMode.AUTO;
object = [AUTO];
const ChannelListLayoutTypes = (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes;
const ChannelListLayoutTypes = (ChannelListLayoutTypesModule).ChannelListLayoutTypes;
const COZY = ChannelListLayoutTypes.COZY;
object[1] = COZY;
const COMPACT = ChannelListLayoutTypes.COMPACT;
@@ -664,7 +675,7 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
return StringValue.create({value: a0});
});
Set = global.Set;
const {ALL, UNREADS, NONE} = (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).MessagePreviewTypes;
const {ALL, UNREADS, NONE} = (ChannelListLayoutTypesModule).MessagePreviewTypes;
set = new Set([ALL, UNREADS, NONE]);
const value170 = userSettingDefinitionsModule.defineProtoSetting('appearance', 'messagePreviews', _fun31255,
function(a0) {
@@ -770,7 +781,7 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
});
object.isEligible = isEligible;
object.useIsEligible = useIsEligible;
const GuildActivityStatusRestrictionDefault = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildActivityStatusRestrictionDefault;
const GuildActivityStatusRestrictionDefault = (Preloaded_user_settingsModule).GuildActivityStatusRestrictionDefault;
const OFF = GuildActivityStatusRestrictionDefault.OFF;
object.ineligibleDefault = OFF;
object.eligibleDefault = function() {
@@ -790,7 +801,7 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
});
object.isEligible = isEligible_31291;
object.useIsEligible = useIsEligible_31292;
const GuildActivityStatusRestrictionDefaultV2 = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildActivityStatusRestrictionDefaultV2;
const GuildActivityStatusRestrictionDefaultV2 = (Preloaded_user_settingsModule).GuildActivityStatusRestrictionDefaultV2;
const ACTIVITY_STATUS_OFF = GuildActivityStatusRestrictionDefaultV2.ACTIVITY_STATUS_OFF;
object.ineligibleDefault = ACTIVITY_STATUS_OFF;
object.eligibleDefault = function() {
@@ -841,14 +852,14 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
};
const value216 = userSettingDefinitionsModule.defineProtoSetting('textAndImages', 'explicitContentSettings',
closure, closure2);
const closure3 = goreContentFromProto;
const goreContentFromProto2 = goreContentFromProto;
const closure4 = function({goreContentGuilds, goreContentFriendDm, goreContentNonFriendDm}) {
var value = undefined;
return {goreContentGuilds: goreContentGuilds ?? value, goreContentFriendDm: goreContentFriendDm ?? value,
goreContentNonFriendDm: goreContentNonFriendDm ?? value};
};
const value218 = userSettingDefinitionsModule.defineProtoSetting('textAndImages', 'goreContentSettings', closure3,
closure4);
const value218 = userSettingDefinitionsModule.defineProtoSetting('textAndImages', 'goreContentSettings',
goreContentFromProto2, closure4);
const value220 = userSettingDefinitionsModule.defineProtoSetting('appearance', 'searchResultExactCountEnabled',
function(a0) {
var r1;
@@ -943,7 +954,7 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
var BoolValue = require(dependencyMap[7]).BoolValue;
return BoolValue.create({value: a0});
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/UserSettings.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/UserSettings.tsx');
exports.UseLegacyChatInput = value;
exports.UseRichChatInput = value3;
exports.IncludeStickersInAutocomplete = value5;
@@ -1045,7 +1056,7 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
exports.explicitContentFromProto = closure;
exports.explicitContentToProto = closure2;
exports.ExplicitContentSettings = value216;
exports.goreContentFromProto = closure3;
exports.goreContentFromProto = goreContentFromProto2;
exports.goreContentToProto = closure4;
exports.GoreContentSettings = value218;
exports.SearchResultExactCountEnabled = value220;
@@ -1061,219 +1072,249 @@ function _fun31098(global, require, importDefault, importAll, module, exports, d
exports.IsCrossDMSearchEnabledSetting = value240;
exports.EnableDmReplyNudgeReminders = value242;
exports.HideFriendRequestNotes = value244;
}
function _fun31115(a0) { // fn#31115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:1750, offset: 0x00ff4ecd, size: 110 bytes, params: 2, frame: 15
const ReactionNotificationType = (Preloaded_user_settingsModule).ReactionNotificationType;
return a0 == null ? (UserSettingsProtoStore.settings == null || UserSettingsProtoStore.settings.notifications == null ? undefined : UserSettingsProtoStore.settings.notifications.reactionNotifications) !== ReactionNotificationType.NOTIFICATIONS_DISABLED : a0.value !== undefined ? a0.value : (UserSettingsProtoStore.settings == null || UserSettingsProtoStore.settings.notifications == null ? undefined : UserSettingsProtoStore.settings.notifications.reactionNotifications) !== ReactionNotificationType.NOTIFICATIONS_DISABLED;
}
function _fun31115(a0) { // fn#31115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:1750, offset: 0x00ff4ecd, size: 110 bytes, params: 2, frame: 15
const ReactionNotificationType = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ReactionNotificationType;
return a0 == null ? (UserSettingsProtoStore.settings == null || UserSettingsProtoStore.settings.notifications == null ? undefined : UserSettingsProtoStore.settings.notifications.reactionNotifications) !== ReactionNotificationType.NOTIFICATIONS_DISABLED : a0.value !== undefined ? a0.value : (UserSettingsProtoStore.settings == null || UserSettingsProtoStore.settings.notifications == null ? undefined : UserSettingsProtoStore.settings.notifications.reactionNotifications) !== ReactionNotificationType.NOTIFICATIONS_DISABLED;
}
function _fun31141(a0) { // fn#31141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:4128, offset: 0x00ff4fa5, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_10;
}
function _fun31141(a0) { // fn#31141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:4128, offset: 0x00ff4fa5, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_10;
}
function _fun31143(a0) { // fn#31143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:4231, offset: 0x00ff4fa5, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_10;
}
function _fun31171(a0) { // fn#31171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:6357, offset: 0x00ff4fcc, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_11;
}
function _fun31145(a0) { // fn#31145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:4337, offset: 0x00ff4fa5, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_10;
}
function _fun31171(a0) { // fn#31171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:6357, offset: 0x00ff4fcc, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_11;
}
function _fun31231(a0) { // fn#31231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:10892, offset: 0x00ff51ee, size: 56 bytes, params: 2, frame: 12
return a0 == null ? StatusTypes.UNKNOWN : env0_12.has(a0.value) ? a0.value : StatusTypes.UNKNOWN;
}
function _fun31250({emojiId, emojiName, animated, disableDoubleTap}) { // fn#31250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:12656, offset: 0x00ff52af, size: 191 bytes, params: 2, frame: 20
const object = {};
const UInt64Value = (WrappersModule).UInt64Value;
object.emojiId = UInt64Value.create({value: emojiId});
const StringValue = (WrappersModule).StringValue;
object.emojiName = StringValue.create({value: emojiName});
const BoolValue = (WrappersModule).BoolValue;
object.animated = BoolValue.create({value: animated});
object.disableDoubleTap = BoolValue.create({value: disableDoubleTap});
return object;
}
function _fun31253(a0) { // fn#31253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:13316, offset: 0x00ff53d1, size: 80 bytes, params: 2, frame: 12
const ChannelListLayoutTypes = (ChannelListLayoutTypesModule).ChannelListLayoutTypes;
return a0 == null ? ChannelListLayoutTypes.COZY : env0_13.has(a0.value) ? a0.value : ChannelListLayoutTypes.COZY;
}
function _fun31255(a0) { // fn#31255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:13614, offset: 0x00ff5421, size: 80 bytes, params: 2, frame: 12
const MessagePreviewTypes = (ChannelListLayoutTypesModule).MessagePreviewTypes;
return a0 == null ? MessagePreviewTypes.ALL : env0_14.has(a0.value) ? a0.value : MessagePreviewTypes.ALL;
}
function _fun31262(a0) { // fn#31262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:14421, offset: 0x00ff5500, size: 173 bytes, params: 2, frame: 17
var r1;
var object;
const object3 = {};
const backgroundGradientPresetId = a0.backgroundGradientPresetId;
const value = undefined;
object3.backgroundGradientPresetId = backgroundGradientPresetId != null ? (require(1345) /* metro dependency 1345: wrappers */).UInt32Value.create({value: a0.backgroundGradientPresetId}) : value;
let customUserThemeSettings = a0.customUserThemeSettings;
if (customUserThemeSettings != null) {
object = {};
customUserThemeSettings = a0.customUserThemeSettings;
object.colors = customUserThemeSettings.colors;
customUserThemeSettings = a0.customUserThemeSettings;
object.gradientColorStops = customUserThemeSettings.gradientColorStops;
customUserThemeSettings = a0.customUserThemeSettings;
object.gradientAngle = customUserThemeSettings.gradientAngle;
customUserThemeSettings = a0.customUserThemeSettings;
object.baseMix = customUserThemeSettings.baseMix;
r1 = object;
} else {
r1 = value;
}
object3.customUserThemeSettings = r1;
return object3;
}
function _fun31265() { // fn#31265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15126, offset: 0x00ff55ad, size: 40 bytes, params: 1, frame: 11
return UserSettingsOverridesStore.getOverride('gifAutoPlay')?.value;
}
function _fun31266() { // fn#31266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15201, offset: 0x00ff55d5, size: 57 bytes, params: 1, frame: 13
return (FluxModule).useStateFromStores([UserSettingsOverridesStore], _fun31267);
function _fun31267() { // fn#31267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15238, offset: 0x00ff560e, size: 40 bytes, params: 1, frame: 11
const value = environment.__proto__;
return UserSettingsOverridesStore.getOverride('gifAutoPlay')?.value;
}
}
function _fun31270() { // fn#31270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15585, offset: 0x00ff5636, size: 40 bytes, params: 1, frame: 11
return UserSettingsOverridesStore.getOverride('animateEmoji')?.value;
}
function _fun31271() { // fn#31271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15661, offset: 0x00ff565e, size: 57 bytes, params: 1, frame: 13
return (FluxModule).useStateFromStores([UserSettingsOverridesStore], _fun31272);
function _fun31272() { // fn#31272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15698, offset: 0x00ff5697, size: 40 bytes, params: 1, frame: 11
const value = environment.__proto__;
return UserSettingsOverridesStore.getOverride('animateEmoji')?.value;
}
}
function _fun31275() { // fn#31275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16073, offset: 0x00ff56e5, size: 40 bytes, params: 1, frame: 11
return UserSettingsOverridesStore.getOverride('animateStickers')?.value;
}
function _fun31276() { // fn#31276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16152, offset: 0x00ff570d, size: 57 bytes, params: 1, frame: 13
return (FluxModule).useStateFromStores([UserSettingsOverridesStore], _fun31277);
function _fun31277() { // fn#31277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16189, offset: 0x00ff5746, size: 40 bytes, params: 1, frame: 11
const value = environment.__proto__;
return UserSettingsOverridesStore.getOverride('animateStickers')?.value;
}
}
function _fun31278(a0) { // fn#31278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16346, offset: 0x00ff576e, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_15;
}
function _fun31280(a0) { // fn#31280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16441, offset: 0x00ff576e, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_15;
}
function _fun31282(a0) { // fn#31282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16580, offset: 0x00ff5780, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_16;
}
function isEligible() { // fn#31286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16818, offset: 0x00ff57c2, size: 62 bytes, params: 1, frame: 14
const isSettingTeenByDefault = RegionalFeatureConfigUtilsModule.isSettingTeenByDefault;
const SettingsDefaultFeature = (SettingsDefaultFeatureModule).SettingsDefaultFeature;
const GUILD_ACTIVITY_STATUS = SettingsDefaultFeature.GUILD_ACTIVITY_STATUS;
return Reflect.apply(isSettingTeenByDefault, RegionalFeatureConfigUtilsModule, [GUILD_ACTIVITY_STATUS]);
}
function useIsEligible() { // fn#31287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16923, offset: 0x00ff5800, size: 62 bytes, params: 1, frame: 14
const useIsSettingTeenByDefault = RegionalFeatureConfigUtilsModule.useIsSettingTeenByDefault;
const SettingsDefaultFeature = (SettingsDefaultFeatureModule).SettingsDefaultFeature;
const GUILD_ACTIVITY_STATUS = SettingsDefaultFeature.GUILD_ACTIVITY_STATUS;
return Reflect.apply(useIsSettingTeenByDefault, RegionalFeatureConfigUtilsModule, [GUILD_ACTIVITY_STATUS]);
}
function isEligible_31291() { // fn#31291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:17485, offset: 0x00ff57c2, size: 62 bytes, params: 1, frame: 14
const isSettingTeenByDefault = RegionalFeatureConfigUtilsModule.isSettingTeenByDefault;
const SettingsDefaultFeature = (SettingsDefaultFeatureModule).SettingsDefaultFeature;
const GUILD_ACTIVITY_STATUS = SettingsDefaultFeature.GUILD_ACTIVITY_STATUS;
return Reflect.apply(isSettingTeenByDefault, RegionalFeatureConfigUtilsModule, [GUILD_ACTIVITY_STATUS]);
}
function useIsEligible_31292() { // fn#31292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:17590, offset: 0x00ff5800, size: 62 bytes, params: 1, frame: 14
const useIsSettingTeenByDefault = RegionalFeatureConfigUtilsModule.useIsSettingTeenByDefault;
const SettingsDefaultFeature = (SettingsDefaultFeatureModule).SettingsDefaultFeature;
const GUILD_ACTIVITY_STATUS = SettingsDefaultFeature.GUILD_ACTIVITY_STATUS;
return Reflect.apply(useIsSettingTeenByDefault, RegionalFeatureConfigUtilsModule, [GUILD_ACTIVITY_STATUS]);
}
function explicitContentFromProto(a0) { // fn#31304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:18600, offset: 0x00ff591f, size: 171 bytes, params: 2, frame: 16
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
const {explicitContentGuilds, explicitContentFriendDm, explicitContentNonFriendDm} = a0 ?? ({});
return {explicitContentGuilds: explicitContentGuilds ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION,
explicitContentFriendDm: explicitContentFriendDm ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION,
explicitContentNonFriendDm: explicitContentNonFriendDm ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION};
}
function goreContentFromProto(a0) { // fn#31306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:19409, offset: 0x00ff5a18, size: 171 bytes, params: 2, frame: 16
const ExplicitContentRedaction = (Preloaded_user_settingsModule).ExplicitContentRedaction;
const {goreContentGuilds, goreContentFriendDm, goreContentNonFriendDm} = a0 ?? ({});
return {goreContentGuilds: goreContentGuilds ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION,
goreContentFriendDm: goreContentFriendDm ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION,
goreContentNonFriendDm: goreContentNonFriendDm ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION};
}
function _fun31325(a0) { // fn#31325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21434, offset: 0x00ff5c11, size: 57 bytes, params: 2, frame: 13
const value = a0;
return Module00022Module.mapValues(value ?? ({}), _fun31326);
function _fun31326(a0) { // fn#31326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21470, offset: 0x00ff5c4a, size: 49 bytes, params: 2, frame: 13
var environment;
let value = environment.__proto__;
return (require(22) /* metro dependency 22 */).mapValues(a0, function(a0) {
var r0;
var value = undefined;
r0 = a0 == null ? value : a0.value;
r0 = r0 != null ? global.Number(a0.value) : value;
return r0;
});
}
}
function _fun31328(a0) { // fn#31328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21558, offset: 0x00ff5cad, size: 49 bytes, params: 2, frame: 13
return (Module00022Module).mapValues(a0, _fun31329);
function _fun31329(a0) { // fn#31329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21583, offset: 0x00ff5cde, size: 49 bytes, params: 2, frame: 13
var environment;
const value = environment.__proto__;
return (Module00022Module).mapValues(a0, _fun31330);
function _fun31330(a0) { // fn#31330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21608, offset: 0x00ff5d0f, size: 76 bytes, params: 2, frame: 15
let value = environment.__proto__.__proto__;
value = undefined;
const UInt64Value = (WrappersModule).UInt64Value;
return UInt64Value.create({value: a0 != null ? global.String(a0) : value});
}
}
}
function _fun31231(a0) { // fn#31231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:10892, offset: 0x00ff51ee, size: 56 bytes, params: 2, frame: 12
return a0 == null ? StatusTypes.UNKNOWN : env0_12.has(a0.value) ? a0.value : StatusTypes.UNKNOWN;
}
function _fun31249(a0) { // fn#31249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:12400, offset: 0x00ff5226, size: 137 bytes, params: 2, frame: 9
const value = a0;
const {emojiId, emojiName, animated} = value ?? ({});
const object2 = {};
const object = {};
const value2 = undefined;
let r2 = emojiId == null ? value2 : emojiId.value;
object2.emojiId = r2;
object2.emojiName = emojiName == null ? value2 : emojiName.value;
object2.animated = animated == null ? value2 : animated.value;
object.emojiId = r2;
object.emojiName = emojiName == null ? value2 : emojiName.value;
object.animated = animated == null ? value2 : animated.value;
r2 = value == null || value.disableDoubleTap == null ? value2 : value.disableDoubleTap.value;
object2.disableDoubleTap = r2 != null && r2;
return object2;
}
function _fun31250({emojiId, emojiName, animated, disableDoubleTap}) { // fn#31250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:12656, offset: 0x00ff52af, size: 191 bytes, params: 2, frame: 20
const object2 = {};
const UInt64Value = (require(1345) /* metro dependency 1345: wrappers */).UInt64Value;
object2.emojiId = UInt64Value.create({value: emojiId});
const StringValue = (require(1345) /* metro dependency 1345: wrappers */).StringValue;
object2.emojiName = StringValue.create({value: emojiName});
const BoolValue = (require(1345) /* metro dependency 1345: wrappers */).BoolValue;
object2.animated = BoolValue.create({value: animated});
object2.disableDoubleTap = BoolValue.create({value: disableDoubleTap});
return object2;
}
function _fun31253(a0) { // fn#31253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:13316, offset: 0x00ff53d1, size: 80 bytes, params: 2, frame: 12
const ChannelListLayoutTypes = (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes;
return a0 == null ? ChannelListLayoutTypes.COZY : env0_13.has(a0.value) ? a0.value : ChannelListLayoutTypes.COZY;
}
function _fun31255(a0) { // fn#31255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:13614, offset: 0x00ff5421, size: 80 bytes, params: 2, frame: 12
const MessagePreviewTypes = (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).MessagePreviewTypes;
return a0 == null ? MessagePreviewTypes.ALL : env0_14.has(a0.value) ? a0.value : MessagePreviewTypes.ALL;
object.disableDoubleTap = r2 != null && r2;
return object;
}
function _fun31261(a0) { // fn#31261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:14028, offset: 0x00ff5471, size: 143 bytes, params: 2, frame: 7
var r1;
var object3;
const object4 = {};
var object;
const object2 = {};
const value = undefined;
object4.backgroundGradientPresetId = a0 == null || a0.backgroundGradientPresetId == null ? value : a0.backgroundGradientPresetId.value;
object2.backgroundGradientPresetId = a0 == null || a0.backgroundGradientPresetId == null ? value : a0.backgroundGradientPresetId.value;
let customUserThemeSettings = a0 == null ? value : a0.customUserThemeSettings;
if (customUserThemeSettings != null) {
object3 = {};
object = {};
customUserThemeSettings = a0.customUserThemeSettings;
object3.colors = customUserThemeSettings.colors;
object.colors = customUserThemeSettings.colors;
customUserThemeSettings = a0.customUserThemeSettings;
object3.gradientColorStops = customUserThemeSettings.gradientColorStops;
object.gradientColorStops = customUserThemeSettings.gradientColorStops;
customUserThemeSettings = a0.customUserThemeSettings;
object3.gradientAngle = customUserThemeSettings.gradientAngle;
object.gradientAngle = customUserThemeSettings.gradientAngle;
customUserThemeSettings = a0.customUserThemeSettings;
object3.baseMix = customUserThemeSettings.baseMix;
r1 = object3;
object.baseMix = customUserThemeSettings.baseMix;
r1 = object;
} else {
r1 = value;
}
object4.customUserThemeSettings = r1;
return object4;
}
function _fun31262(a0) { // fn#31262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:14421, offset: 0x00ff5500, size: 173 bytes, params: 2, frame: 17
var r1;
var object2;
const object4 = {};
const backgroundGradientPresetId = a0.backgroundGradientPresetId;
const value = undefined;
object4.backgroundGradientPresetId = backgroundGradientPresetId != null ? (require(1345) /* metro dependency 1345: wrappers */).UInt32Value.create({value: a0.backgroundGradientPresetId}) : value;
let customUserThemeSettings = a0.customUserThemeSettings;
if (customUserThemeSettings != null) {
object2 = {};
customUserThemeSettings = a0.customUserThemeSettings;
object2.colors = customUserThemeSettings.colors;
customUserThemeSettings = a0.customUserThemeSettings;
object2.gradientColorStops = customUserThemeSettings.gradientColorStops;
customUserThemeSettings = a0.customUserThemeSettings;
object2.gradientAngle = customUserThemeSettings.gradientAngle;
customUserThemeSettings = a0.customUserThemeSettings;
object2.baseMix = customUserThemeSettings.baseMix;
r1 = object2;
} else {
r1 = value;
}
object4.customUserThemeSettings = r1;
return object4;
}
function _fun31265() { // fn#31265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15126, offset: 0x00ff55ad, size: 40 bytes, params: 1, frame: 11
return UserSettingsOverridesStore.getOverride('gifAutoPlay')?.value;
}
function _fun31266() { // fn#31266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15201, offset: 0x00ff55d5, size: 57 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsOverridesStore], _fun31267);
}
function _fun31270() { // fn#31270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15585, offset: 0x00ff5636, size: 40 bytes, params: 1, frame: 11
return UserSettingsOverridesStore.getOverride('animateEmoji')?.value;
}
function _fun31271() { // fn#31271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15661, offset: 0x00ff565e, size: 57 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsOverridesStore], _fun31272);
}
function _fun31275() { // fn#31275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16073, offset: 0x00ff56e5, size: 40 bytes, params: 1, frame: 11
return UserSettingsOverridesStore.getOverride('animateStickers')?.value;
}
function _fun31276() { // fn#31276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16152, offset: 0x00ff570d, size: 57 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsOverridesStore], _fun31277);
}
function _fun31278(a0) { // fn#31278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16346, offset: 0x00ff576e, size: 18 bytes, params: 2, frame: 2
return a0 ?? env0_15;
}
function isEligible() { // fn#31286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16818, offset: 0x00ff57c2, size: 62 bytes, params: 1, frame: 14
const value = require(3835) /* metro dependency 3835: RegionalFeatureConfigUtils */;
const isSettingTeenByDefault = value.isSettingTeenByDefault;
const SettingsDefaultFeature = (require(3842) /* metro dependency 3842: SettingsDefaultFeature */).SettingsDefaultFeature;
const GUILD_ACTIVITY_STATUS = SettingsDefaultFeature.GUILD_ACTIVITY_STATUS;
return Reflect.apply(isSettingTeenByDefault, value, [GUILD_ACTIVITY_STATUS]);
}
function useIsEligible() { // fn#31287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16923, offset: 0x00ff5800, size: 62 bytes, params: 1, frame: 14
const value = require(3835) /* metro dependency 3835: RegionalFeatureConfigUtils */;
const useIsSettingTeenByDefault = value.useIsSettingTeenByDefault;
const SettingsDefaultFeature = (require(3842) /* metro dependency 3842: SettingsDefaultFeature */).SettingsDefaultFeature;
const GUILD_ACTIVITY_STATUS = SettingsDefaultFeature.GUILD_ACTIVITY_STATUS;
return Reflect.apply(useIsSettingTeenByDefault, value, [GUILD_ACTIVITY_STATUS]);
}
function explicitContentFromProto(a0) { // fn#31304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:18600, offset: 0x00ff591f, size: 171 bytes, params: 2, frame: 16
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
const {explicitContentGuilds, explicitContentFriendDm, explicitContentNonFriendDm} = a0 ?? ({});
return {explicitContentGuilds: explicitContentGuilds ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION,
explicitContentFriendDm: explicitContentFriendDm ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION,
explicitContentNonFriendDm: explicitContentNonFriendDm ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION};
}
function goreContentFromProto(a0) { // fn#31306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:19409, offset: 0x00ff5a18, size: 171 bytes, params: 2, frame: 16
const ExplicitContentRedaction = (require(1314) /* metro dependency 1314: preloaded_user_settings */).ExplicitContentRedaction;
const {goreContentGuilds, goreContentFriendDm, goreContentNonFriendDm} = a0 ?? ({});
return {goreContentGuilds: goreContentGuilds ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION,
goreContentFriendDm: goreContentFriendDm ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION,
goreContentNonFriendDm: goreContentNonFriendDm ?? ExplicitContentRedaction.UNSET_EXPLICIT_CONTENT_REDACTION};
}
function _fun31325(a0) { // fn#31325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21434, offset: 0x00ff5c11, size: 57 bytes, params: 2, frame: 13
const value = a0;
const moduleValue = require(22) /* metro dependency 22 */;
return moduleValue.mapValues(value ?? ({}), _fun31326);
}
function _fun31328(a0) { // fn#31328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21558, offset: 0x00ff5cad, size: 49 bytes, params: 2, frame: 13
return (require(22) /* metro dependency 22 */).mapValues(a0, _fun31329);
}
function _fun31267() { // fn#31267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15238, offset: 0x00ff560e, size: 40 bytes, params: 1, frame: 11
const value = environment.__proto__;
return UserSettingsOverridesStore.getOverride('gifAutoPlay')?.value;
}
function _fun31272() { // fn#31272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:15698, offset: 0x00ff5697, size: 40 bytes, params: 1, frame: 11
const value = environment.__proto__;
return UserSettingsOverridesStore.getOverride('animateEmoji')?.value;
}
function _fun31277() { // fn#31277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:16189, offset: 0x00ff5746, size: 40 bytes, params: 1, frame: 11
const value = environment.__proto__;
return UserSettingsOverridesStore.getOverride('animateStickers')?.value;
}
function _fun31326(a0) { // fn#31326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21470, offset: 0x00ff5c4a, size: 49 bytes, params: 2, frame: 13
var environment;
let value = environment.__proto__;
return (require(22) /* metro dependency 22 */).mapValues(a0, function(a0) {
var r0;
var value = undefined;
r0 = a0 == null ? value : a0.value;
r0 = r0 != null ? global.Number(a0.value) : value;
return r0;
});
}
function _fun31329(a0) { // fn#31329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21583, offset: 0x00ff5cde, size: 49 bytes, params: 2, frame: 13
var environment;
const value = environment.__proto__;
return (require(22) /* metro dependency 22 */).mapValues(a0, _fun31330);
}
function _fun31330(a0) { // fn#31330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3968:21608, offset: 0x00ff5d0f, size: 76 bytes, params: 2, frame: 15
let value = environment.__proto__.__proto__;
value = undefined;
const UInt64Value = (require(1345) /* metro dependency 1345: wrappers */).UInt64Value;
return UInt64Value.create({value: a0 != null ? global.String(a0) : value});
object2.customUserThemeSettings = r1;
return object2;
}
global.__d(_fun31098, 3829, [3830, 1348, 670, 3831, 661, 3832, 3833, 1345, 1314, 628, 3834, 22, 566, 3835, 3842,
1352,
2]) /* metro module 3829, dependencies: [3830, 1348, 670, 3831, 661, 3832, 3833, 1345, 1314, 628, 3834, 22, 566, 3835, 3842, 1352, 2] */;