51 lines
2.1 KiB
TypeScript
51 lines
2.1 KiB
TypeScript
// Module ID: 8370
|
|
// Function ID: 8371
|
|
// Dependencies: [32, 19, 17, 21, 3901, 8078, 8371, 4611, 2]
|
|
|
|
// Module 8370
|
|
import _slicedToArray from "_slicedToArray";
|
|
import get_ActivityIndicator from "get ActivityIndicator";
|
|
import { jsx } from "jsxProd";
|
|
import importAllResult from "noop";
|
|
|
|
let c4;
|
|
let c5;
|
|
const require = arg1;
|
|
({ StyleSheet: c4, View: c5 } = get_ActivityIndicator);
|
|
const memoResult = require("noop").memo((style) => {
|
|
let bannerHeight;
|
|
let gradientHeight;
|
|
let primaryColor;
|
|
let secondaryColor;
|
|
let theme;
|
|
style = style.style;
|
|
({ gradientHeight, bannerHeight } = style);
|
|
let obj = require(3901) /* ManaContext */;
|
|
const themeContext = obj.useThemeContext();
|
|
({ primaryColor, secondaryColor, theme } = themeContext);
|
|
const gradientFallbackBackground = require(8078) /* useUserProfileColors */.useUserProfileColors({ theme, primaryColor, secondaryColor }).gradientFallbackBackground;
|
|
const obj2 = require(8078) /* useUserProfileColors */;
|
|
const obj3 = require(8371) /* useUserProfileGradientColors */;
|
|
const first = callback(require(8371) /* useUserProfileGradientColors */.useUserProfileGradientColors(primaryColor, secondaryColor, gradientFallbackBackground), 2)[0];
|
|
if (null != primaryColor) {
|
|
if (null != secondaryColor) {
|
|
const _Math = Math;
|
|
const _Math2 = Math;
|
|
const bound = Math.min(1, Math.max(0, bannerHeight / gradientHeight));
|
|
obj = { colors: null, locations: null, style: null, pointerEvents: "none" };
|
|
const items = [first, first, tmp5];
|
|
obj[0] = items;
|
|
const items1 = [0, bound, 1];
|
|
obj[1] = items1;
|
|
const items2 = [closure_4.absoluteFill, style];
|
|
obj[2] = items2;
|
|
return jsx(importDefault(4611), { colors: null, locations: null, style: null, pointerEvents: "none" });
|
|
}
|
|
}
|
|
style = [closure_4.absoluteFill, { backgroundColor: gradientFallbackBackground }, ];
|
|
style[2] = style;
|
|
return <closure_5 style={style} pointerEvents="none" />;
|
|
});
|
|
const result = require("get ActivityIndicator").fileFinishedImporting("modules/user_profile/native/UserProfileFixedBackground.tsx");
|
|
|
|
export default memoResult;
|