47 lines
3.0 KiB
TypeScript
47 lines
3.0 KiB
TypeScript
/* Metro module 4047; source: modules/client_themes/native/useCustomThemeDisplaySettings.tsx; dependencies: [57, 1354, 566, 2] */
|
|
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import CustomThemeMobileStore from './CustomThemeMobileStore.tsx'; /* Metro dependency 1354 */
|
|
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 _fun33391(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4205:6, offset: 0x0102d9b5, size: 128 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/client_themes/native/useCustomThemeDisplaySettings.tsx');
|
|
exports.useCustomThemeDisplaySettings = useCustomThemeDisplaySettings;
|
|
function useCustomThemeDisplaySettings(a0) { // fn#33392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4205:244, offset: 0x0102da35, size: 187 bytes, params: 2, frame: 17
|
|
const useStateFromStoresArray = FluxModule.useStateFromStoresArray;
|
|
const value = Module00057(Reflect.apply(useStateFromStoresArray, FluxModule, [[CustomThemeMobileStore], _fun33393]), 3);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
const property3 = value[2];
|
|
if (property3 !== undefined) {
|
|
return property3;
|
|
}
|
|
if (property !== undefined) {
|
|
if (property2 !== undefined) {
|
|
return {baseTheme: property2, customTheme: property};
|
|
}
|
|
}
|
|
if (a0 != null) {
|
|
return {baseTheme: a0.base_theme, customTheme: {colors: a0.colors, gradientAngle: a0.gradient_angle,
|
|
baseMix: a0.base_mix, gradientColorStops: []}};
|
|
}
|
|
function _fun33393() { // fn#33393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4205:291, offset: 0x0102daf0, size: 57 bytes, params: 1, frame: 10
|
|
const value = environment.__proto__;
|
|
const customThemeMobileStoreBinding = CustomThemeMobileStore;
|
|
const items2 = [customThemeMobileStoreBinding.getCustomTheme()];
|
|
const getBaseTheme = customThemeMobileStoreBinding.getBaseTheme;
|
|
items2[1] = Reflect.apply(getBaseTheme, customThemeMobileStoreBinding, []);
|
|
const getPreviewTheme = customThemeMobileStoreBinding.getPreviewTheme;
|
|
items2[2] = Reflect.apply(getPreviewTheme, customThemeMobileStoreBinding, []);
|
|
return items2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun33391, 4047, [57, 1354, 566, 2]) /* metro module 4047, dependencies: [57, 1354, 566, 2] */;
|