43 lines
2.5 KiB
TypeScript
43 lines
2.5 KiB
TypeScript
/* Metro module 4047; source: modules/client_themes/native/useCustomThemeDisplaySettings.tsx; dependencies: [57, 1354, 566, 2] */
|
|
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});
|
|
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
|
const customThemeMobileStore = importDefault(1354) /* metro dependency 1354: CustomThemeMobileStore */;
|
|
(require(2) /* metro dependency 2 */).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 fluxModule = require(566) /* metro dependency 566: flux */;
|
|
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
|
const value = env0_2(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 items2 = [CustomThemeMobileStore.getCustomTheme()];
|
|
const getBaseTheme = CustomThemeMobileStore.getBaseTheme;
|
|
items2[1] = Reflect.apply(getBaseTheme, CustomThemeMobileStore, []);
|
|
const getPreviewTheme = CustomThemeMobileStore.getPreviewTheme;
|
|
items2[2] = Reflect.apply(getPreviewTheme, CustomThemeMobileStore, []);
|
|
return items2;
|
|
}
|
|
|