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,4 +1,11 @@
/* Metro module 4045; source: modules/client_themes/native/MobileThemesUtils.tsx; dependencies: [4046, 1354, 3965, 1244, 2422, 3966, 4047, 1357, 566, 2] */
import CustomThemeMobileStore from './CustomThemeMobileStore.tsx'; /* Metro dependency 1354 */
import MobileVisualRefreshExperiment from '../../themes/experiments/MobileVisualRefreshExperiment.tsx'; /* Metro dependency 1357 */
import SavedCustomThemeStore from '../SavedCustomThemeStore.tsx'; /* Metro dependency 4046 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MobileVisualRefreshExperimentModule from '../../themes/experiments/MobileVisualRefreshExperiment.tsx'; /* Metro dependency 1357 */
import * as ClientThemesConstantsModule from '../ClientThemesConstants.tsx'; /* Metro dependency 3965 */
function _fun33363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4203:6, offset: 0x0102d0e7, size: 250 bytes, params: 8, frame: 22
const env0_0 = require;
const getCustomThemesName = function() {
@@ -55,42 +62,37 @@ function _fun33363(global, require, importDefault, importAll, module, exports, d
}
return r0;
};
const closure3 = useSavedCustomTheme;
const useSavedCustomTheme2 = useSavedCustomTheme;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const savedCustomThemeStore = importDefault(4046) /* metro dependency 4046: SavedCustomThemeStore */;
const customThemeMobileStore = importDefault(1354) /* metro dependency 1354: CustomThemeMobileStore */;
const clientThemesConstantsModule = require(3965) /* metro dependency 3965: ClientThemesConstants */;
const env0_5 = clientThemesConstantsModule.BACKGROUND_GRADIENT_PRESETS_MOBILE;
const env0_6 = clientThemesConstantsModule.LEGACY_STANDARD_BACKGROUND_THEMES;
const env0_7 = clientThemesConstantsModule.REFRESH_STANDARD_BACKGROUND_THEMES;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/client_themes/native/MobileThemesUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/client_themes/native/MobileThemesUtils.tsx');
exports.getCustomBackgroundGradient = closure;
exports.useCustomBackgroundGradient = closure2;
exports.getAllMobileThemes = getAllMobileThemes;
exports.useAllMobileThemes = useAllMobileThemes;
exports.useSavedCustomTheme = closure3;
}
exports.useSavedCustomTheme = useSavedCustomTheme2;
function useSavedCustomTheme() { // fn#33368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4203:953, offset: 0x0102d362, size: 69 bytes, params: 1, frame: 13
const savedCustomTheme = (require(566) /* metro dependency 566: flux */).useStateFromStores([SavedCustomThemeStore],
function() {
return SavedCustomThemeStore.getSavedCustomTheme();
});
const value = null;
return value != savedCustomTheme ? savedCustomTheme : value;
}
function useSavedCustomTheme() { // fn#33368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4203:953, offset: 0x0102d362, size: 69 bytes, params: 1, frame: 13
const savedCustomTheme = (require(566) /* metro dependency 566: flux */).useStateFromStores([SavedCustomThemeStore],
function() {
return SavedCustomThemeStore.getSavedCustomTheme();
});
const value = null;
return value != savedCustomTheme ? savedCustomTheme : value;
}
function getAllMobileThemes() { // fn#33370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4203:1295, offset: 0x0102d3bc, size: 62 bytes, params: 1, frame: 15
const getMobileThemesArrayWithMaybeCustomThemeBinding = getMobileThemesArrayWithMaybeCustomTheme;
const customBackgroundGradient = getCustomBackgroundGradient();
return getMobileThemesArrayWithMaybeCustomThemeBinding(customBackgroundGradient,
MobileVisualRefreshExperimentModule.isMobileVisualRefreshEnabled('MobileThemesUtils'));
}
function getAllMobileThemes() { // fn#33370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4203:1295, offset: 0x0102d3bc, size: 62 bytes, params: 1, frame: 15
const getMobileThemesArrayWithMaybeCustomThemeBinding = getMobileThemesArrayWithMaybeCustomTheme;
const customBackgroundGradient = getCustomBackgroundGradient();
const value = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
return getMobileThemesArrayWithMaybeCustomThemeBinding(customBackgroundGradient,
value.isMobileVisualRefreshEnabled('MobileThemesUtils'));
}
function useAllMobileThemes() { // fn#33371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4203:1484, offset: 0x0102d3fa, size: 65 bytes, params: 1, frame: 15
return getMobileThemesArrayWithMaybeCustomTheme(useCustomBackgroundGradient(useSavedCustomTheme()),
(MobileVisualRefreshExperiment)('MobileThemesUtils'));
}
function useAllMobileThemes() { // fn#33371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4203:1484, offset: 0x0102d3fa, size: 65 bytes, params: 1, frame: 15
return getMobileThemesArrayWithMaybeCustomTheme(useCustomBackgroundGradient(useSavedCustomTheme()),
(importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('MobileThemesUtils'));
}
global.__d(_fun33363, 4045, [4046, 1354, 3965, 1244, 2422, 3966, 4047, 1357, 566,
2]) /* metro module 4045, dependencies: [4046, 1354, 3965, 1244, 2422, 3966, 4047, 1357, 566, 2] */;