Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,105 @@
|
||||
/* Metro module 1353; source: modules/themes/resolveTheme.native.tsx; dependencies: [1354, 1311, 1312, 1348, 1313, 1355, 1314, 1357, 2] */
|
||||
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');
|
||||
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) {
|
||||
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) {
|
||||
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];
|
||||
}
|
||||
}
|
||||
return r4;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user