2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 8263
|
|
|
|
|
// Function ID: 8264
|
|
|
|
|
// Name: UserProfileFixedBackground
|
|
|
|
|
// Dependencies: [32, 19, 17, 21, 4284, 8264, 8265, 5001, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 8263 (UserProfileFixedBackground)
|
|
|
|
|
import native from "native" /* 4284 */;
|
|
|
|
|
import LinearGradientDefault from "LinearGradient" /* 5001 */;
|
|
|
|
|
import useUserProfileColors from "useUserProfileColors" /* 8264 */;
|
|
|
|
|
import useUserProfileGradientColors from "useUserProfileGradientColors" /* 8265 */;
|
|
|
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
get_ActivityIndicator = fn(17);
|
|
|
|
|
({ StyleSheet: closure_4, View: hasOwnProperty } = get_ActivityIndicator);
|
|
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileFixedBackground.tsx");
|
|
|
|
|
|
|
|
|
|
export default noop.memo((style) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
style = style.style;
|
|
|
|
|
({ gradientHeight, bannerHeight } = style);
|
2026-09-10 05:38:07 +00:00
|
|
|
const themeContext = native.useThemeContext();
|
2026-07-29 08:29:29 +00:00
|
|
|
({ primaryColor, secondaryColor, theme } = themeContext);
|
2026-08-24 06:08:38 +00:00
|
|
|
const gradientFallbackBackground = useUserProfileColors.useUserProfileColors({ theme, primaryColor, secondaryColor }).gradientFallbackBackground;
|
2026-09-10 05:38:07 +00:00
|
|
|
const first = _slicedToArray(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-09-10 05:38:07 +00:00
|
|
|
const obj4 = { colors: null, locations: null, style: null, pointerEvents: "none" };
|
2026-07-29 08:29:29 +00:00
|
|
|
const items = [first, first, tmp5];
|
2026-09-10 05:38:07 +00:00
|
|
|
obj4.colors = items;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items1 = [0, bound, 1];
|
2026-09-10 05:38:07 +00:00
|
|
|
obj4.locations = items1;
|
|
|
|
|
const items2 = [React4.absoluteFill, style];
|
|
|
|
|
obj4.style = items2;
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(LinearGradientDefault, { colors: null, locations: null, style: null, pointerEvents: "none" });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj5 = { style: null, pointerEvents: "none" };
|
|
|
|
|
const items3 = [React4.absoluteFill, { backgroundColor: gradientFallbackBackground }, style];
|
|
|
|
|
obj5.style = items3;
|
|
|
|
|
return <hasOwnProperty style={null} pointerEvents="none" />;
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|