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,45 +1,50 @@
/* Metro module 8758; source: modules/user_profile/native/UserProfileFixedBackground.tsx; dependencies: [57, 31, 27, 33, 3868, 8497, 8512, 4589, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
import * as UseUserProfileColorsModule from '../hooks/native/useUserProfileColors.tsx'; /* Metro dependency 8497 */
import * as UseUserProfileGradientColorsModule from '../hooks/native/useUserProfileGradientColors.tsx'; /* Metro dependency 8512 */
function _fun68543(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8943:6, offset: 0x01c52cbe, size: 195 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_4 = value2.StyleSheet;
const env0_5 = value2.View;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(_fun68544);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/UserProfileFixedBackground.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/native/UserProfileFixedBackground.tsx');
exports.default = value;
}
function _fun68544({gradientHeight, bannerHeight, style}) { // fn#68544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8943:174, offset: 0x01c52d81, size: 395 bytes, params: 2, frame: 25
var Math;
var min;
var Math2;
const {theme, primaryColor, secondaryColor} = (require(3868) /* metro dependency 3868: native */).useThemeContext();
const useUserProfileColorsModule = require(8497) /* metro dependency 8497: useUserProfileColors */;
const useUserProfileColors = useUserProfileColorsModule.useUserProfileColors;
const gradientFallbackBackground = Reflect.apply(useUserProfileColors, useUserProfileColorsModule, [{theme: theme,
primaryColor: primaryColor, secondaryColor: secondaryColor}]).gradientFallbackBackground;
const value4 = env0_3((require(8512) /* metro dependency 8512: useUserProfileGradientColors */).useUserProfileGradientColors(primaryColor,
secondaryColor, gradientFallbackBackground), 2);
const property = value4[0];
if (primaryColor != null) {
if (secondaryColor != null) {
Math = global.Math;
min = Math.min;
Math2 = global.Math;
return ((Component) => <Component colors={[property, property, value4[1]]} locations={[0, Reflect.apply(min,
Math,
[1, Math2.max(0,
bannerHeight / gradientHeight)]), 1]} style={[StyleSheet.absoluteFill, style]} pointerEvents="none" />)(importDefault(4589) /* metro dependency 4589 */);
function _fun68544({gradientHeight, bannerHeight, style}) { // fn#68544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8943:174, offset: 0x01c52d81, size: 395 bytes, params: 2, frame: 25
var Math;
var min;
var Math2;
const {theme, primaryColor, secondaryColor} = (NativeModule).useThemeContext();
const useUserProfileColors = UseUserProfileColorsModule.useUserProfileColors;
const gradientFallbackBackground = Reflect.apply(useUserProfileColors, UseUserProfileColorsModule, [{theme: theme,
primaryColor: primaryColor, secondaryColor: secondaryColor}]).gradientFallbackBackground;
const value4 = Module00057((UseUserProfileGradientColorsModule).useUserProfileGradientColors(primaryColor,
secondaryColor, gradientFallbackBackground), 2);
const property = value4[0];
if (primaryColor != null) {
if (secondaryColor != null) {
Math = global.Math;
min = Math.min;
Math2 = global.Math;
return ((Component) => <Component colors={[property, property, value4[1]]} locations={[0, Reflect.apply(min,
Math,
[1, Math2.max(0,
bannerHeight / gradientHeight)]), 1]} style={[StyleSheet.absoluteFill, style]} pointerEvents="none" />)(importDefault(4589) /* metro dependency 4589 */);
}
}
return (
<View style={[StyleSheet.absoluteFill, {backgroundColor: gradientFallbackBackground},
style]} pointerEvents="none" />
);
}
return (
<View style={[StyleSheet.absoluteFill, {backgroundColor: gradientFallbackBackground},
style]} pointerEvents="none" />
);
}
global.__d(_fun68543, 8758, [57, 31, 27, 33, 3868, 8497, 8512, 4589,
2]) /* metro module 8758, dependencies: [57, 31, 27, 33, 3868, 8497, 8512, 4589, 2] */;