decord/source/modules/user_profile/native/UserProfileFixedBackground.tsx

52 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 8880
// Function ID: 8881
// Dependencies: [32, 19, 17, 21, 4072, 8881, 8882, 4766, 2]
2026-07-20 16:05:17 +00:00
2026-08-13 07:00:46 +00:00
// Module 8880
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import get_ActivityIndicator from "get ActivityIndicator";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ StyleSheet: c4, View: c5 } = get_ActivityIndicator);
const memoResult = require("noop").memo((style) => {
2026-07-20 16:05:17 +00:00
let bannerHeight;
let gradientHeight;
let primaryColor;
let secondaryColor;
2026-07-29 08:29:29 +00:00
let theme;
2026-07-20 16:05:17 +00:00
style = style.style;
({ gradientHeight, bannerHeight } = style);
2026-08-12 06:57:52 +00:00
let obj = require(4072) /* ManaContext */;
2026-07-20 16:05:17 +00:00
const themeContext = obj.useThemeContext();
2026-07-29 08:29:29 +00:00
({ primaryColor, secondaryColor, theme } = themeContext);
2026-08-13 07:00:46 +00:00
const gradientFallbackBackground = require(8881) /* useUserProfileColors */.useUserProfileColors({ theme, primaryColor, secondaryColor }).gradientFallbackBackground;
const obj2 = require(8881) /* useUserProfileColors */;
const obj3 = require(8882) /* useUserProfileGradientColors */;
const first = callback(require(8882) /* useUserProfileGradientColors */.useUserProfileGradientColors(primaryColor, secondaryColor, gradientFallbackBackground), 2)[0];
2026-07-20 16:05:17 +00:00
if (null != primaryColor) {
if (null != secondaryColor) {
const _Math = Math;
const _Math2 = Math;
const bound = Math.min(1, Math.max(0, bannerHeight / gradientHeight));
2026-07-29 08:29:29 +00:00
obj = { colors: null, locations: null, style: null, pointerEvents: "none" };
const items = [first, first, tmp5];
obj[0] = items;
2026-07-23 10:11:24 +00:00
const items1 = [0, bound, 1];
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-20 16:05:17 +00:00
const items2 = [closure_4.absoluteFill, style];
2026-07-29 08:29:29 +00:00
obj[2] = items2;
2026-08-13 07:00:46 +00:00
return jsx(importDefault(4766), { colors: null, locations: null, style: null, pointerEvents: "none" });
2026-07-20 16:05:17 +00:00
}
}
style = [closure_4.absoluteFill, { backgroundColor: gradientFallbackBackground }, ];
style[2] = style;
return <closure_5 style={style} pointerEvents="none" />;
});
2026-07-23 10:11:24 +00:00
const result = require("get ActivityIndicator").fileFinishedImporting("modules/user_profile/native/UserProfileFixedBackground.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;