Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,45 @@
|
||||
/* Metro module 8758; source: modules/user_profile/native/UserProfileFixedBackground.tsx; dependencies: [57, 31, 27, 33, 3868, 8497, 8512, 4589, 2] */
|
||||
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;
|
||||
value = value.memo(_fun68544);
|
||||
(require(2) /* metro dependency 2 */).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 */);
|
||||
}
|
||||
}
|
||||
return (
|
||||
<View style={[StyleSheet.absoluteFill, {backgroundColor: gradientFallbackBackground},
|
||||
style]} pointerEvents="none" />
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user