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

+76 -75
View File
@@ -1,38 +1,59 @@
/* Metro module 1353; source: modules/themes/resolveTheme.native.tsx; dependencies: [1354, 1311, 1312, 1348, 1313, 1355, 1314, 1357, 2] */
import SelectivelySyncedUserSettingsStore from '../user_settings/SelectivelySyncedUserSettingsStore.tsx'; /* Metro dependency 1311 */
import UnsyncedUserSettingsStore from '../user_settings/UnsyncedUserSettingsStore.tsx'; /* Metro dependency 1312 */
import UserSettingsProtoStore from '../user_settings/UserSettingsProtoStore.tsx'; /* Metro dependency 1348 */
import CustomThemeMobileStore from '../client_themes/native/CustomThemeMobileStore.tsx'; /* Metro dependency 1354 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ThemeConstantsModule from '../user_settings/ThemeConstants.tsx'; /* Metro dependency 1313 */
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 AuthenticationUtilsModule from '../../utils/AuthenticationUtils.tsx'; /* Metro dependency 1355 */
function _fun15539(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1480:6, offset: 0x00e35a59, size: 212 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const customThemeMobileStore = importDefault(1354) /* metro dependency 1354: CustomThemeMobileStore */;
const selectivelySyncedUserSettingsStore = importDefault(1311) /* metro dependency 1311: SelectivelySyncedUserSettingsStore */;
const unsyncedUserSettingsStore = importDefault(1312) /* metro dependency 1312: UnsyncedUserSettingsStore */;
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
const themeConstantsModule = require(1313) /* metro dependency 1313: ThemeConstants */;
const env0_6 = themeConstantsModule.PROTO_THEME_MAP_MOBILE;
const env0_7 = themeConstantsModule.PROTO_THEME_MAP_MOBILE_REFRESH;
const env0_8 = themeConstantsModule.SystemTheme;
const env0_9 = themeConstantsModule.SystemThemeState;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/themes/resolveTheme.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/themes/resolveTheme.native.tsx');
exports.default = resolveTheme;
}
function resolveTheme(a0, a1) { // fn#15540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1480:327, offset: 0x00e35b2d, size: 341 bytes, params: 3, frame: 18
var theme;
var r5;
var r4;
var appearanceSettings;
var appearance;
const Theme = (require(1314) /* metro dependency 1314: preloaded_user_settings */).Theme;
var moduleValue2;
const previewTheme = CustomThemeMobileStore.getPreviewTheme();
const value3 = undefined;
if (value3 !== previewTheme) {
return previewTheme.baseTheme;
}
const useSystemTheme = UnsyncedUserSettingsStore.useSystemTheme;
const authenticationUtilsModule = require(1355) /* metro dependency 1355: AuthenticationUtils */;
if (authenticationUtilsModule.isAuthenticated()) {
if (useSystemTheme !== SystemThemeState.ON) {
function resolveTheme(a0, a1) { // fn#15540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1480:327, offset: 0x00e35b2d, size: 341 bytes, params: 3, frame: 18
var theme;
var r5;
var r4;
var appearanceSettings;
var appearance;
const Theme = (Preloaded_user_settingsModule).Theme;
var moduleValue2;
const previewTheme = CustomThemeMobileStore.getPreviewTheme();
const value3 = undefined;
if (value3 !== previewTheme) {
return previewTheme.baseTheme;
}
const useSystemTheme = UnsyncedUserSettingsStore.useSystemTheme;
if (AuthenticationUtilsModule.isAuthenticated()) {
if (useSystemTheme !== SystemThemeState.ON) {
appearanceSettings = SelectivelySyncedUserSettingsStore.getAppearanceSettings();
theme = appearanceSettings == null ? value3 : appearanceSettings.theme;
if (theme != null) {
return theme;
}
appearance = UserSettingsProtoStore.settings.appearance;
theme = appearance == null ? value3 : appearance.theme;
r5 = theme ?? Theme.UNSET;
if (r5 !== Theme.UNSET) {
moduleValue2 = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
} else if (a0 !== SystemTheme.NO_PREFERENCE) {
r4 = a1[a0];
} else {
moduleValue2 = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
}
return r4;
}
if (a0 !== SystemTheme.NO_PREFERENCE) {
return a1[a0];
}
appearanceSettings = SelectivelySyncedUserSettingsStore.getAppearanceSettings();
theme = appearanceSettings == null ? value3 : appearanceSettings.theme;
if (theme != null) {
@@ -52,54 +73,34 @@ function resolveTheme(a0, a1) { // fn#15540, source: /ci/build/discord/discord/d
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
}
return r4;
}
if (a0 !== SystemTheme.NO_PREFERENCE) {
return a1[a0];
}
appearanceSettings = SelectivelySyncedUserSettingsStore.getAppearanceSettings();
theme = appearanceSettings == null ? value3 : appearanceSettings.theme;
if (theme != null) {
return theme;
}
appearance = UserSettingsProtoStore.settings.appearance;
theme = appearance == null ? value3 : appearance.theme;
r5 = theme ?? Theme.UNSET;
if (r5 !== Theme.UNSET) {
moduleValue2 = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
} else if (a0 !== SystemTheme.NO_PREFERENCE) {
r4 = a1[a0];
} else {
moduleValue2 = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
}
} else {
if (a0 !== SystemTheme.NO_PREFERENCE) {
return a1[a0];
}
appearanceSettings = SelectivelySyncedUserSettingsStore.getAppearanceSettings();
theme = appearanceSettings == null ? value3 : appearanceSettings.theme;
if (theme != null) {
return theme;
}
appearance = UserSettingsProtoStore.settings.appearance;
theme = appearance == null ? value3 : appearance.theme;
r5 = theme ?? Theme.UNSET;
if (r5 !== Theme.UNSET) {
moduleValue2 = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
} else if (a0 !== SystemTheme.NO_PREFERENCE) {
r4 = a1[a0];
} else {
moduleValue2 = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
if (a0 !== SystemTheme.NO_PREFERENCE) {
return a1[a0];
}
appearanceSettings = SelectivelySyncedUserSettingsStore.getAppearanceSettings();
theme = appearanceSettings == null ? value3 : appearanceSettings.theme;
if (theme != null) {
return theme;
}
appearance = UserSettingsProtoStore.settings.appearance;
theme = appearance == null ? value3 : appearance.theme;
r5 = theme ?? Theme.UNSET;
if (r5 !== Theme.UNSET) {
moduleValue2 = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
} else if (a0 !== SystemTheme.NO_PREFERENCE) {
r4 = a1[a0];
} else {
moduleValue2 = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
r4 = moduleValue2.isMobileVisualRefreshEnabled('resolveTheme') ? PROTO_THEME_MAP_MOBILE_REFRESH : PROTO_THEME_MAP_MOBILE;
r4 = r4[r5];
}
}
return r4;
}
return r4;
}
global.__d(_fun15539, 1353, [1354, 1311, 1312, 1348, 1313, 1355, 1314, 1357,
2]) /* metro module 1353, dependencies: [1354, 1311, 1312, 1348, 1313, 1355, 1314, 1357, 2] */;