decord/source/modules/profile_customization/native/ProfileCustomizationUtils.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

56 lines
2 KiB
TypeScript

// Module ID: 8394
// Function ID: 8395
// Name: profile_customization/ProfileCustomizationUtils
// Dependencies: [1397, 8395, 1092, 2]
// Exports: getAvatarSource, useUserProfileBannerBackgroundColor
// Module 8394 (profile_customization/ProfileCustomizationUtils)
import utils_ColorUtils from "utils/ColorUtils" /* 1092 */;
import AvatarUtils from "AvatarUtils" /* 1397 */;
import VideoBackground from "VideoBackground" /* 8395 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/profile_customization/native/ProfileCustomizationUtils.tsx");
export const useUserProfileBannerBackgroundColor = function useUserProfileBannerBackgroundColor(arg0) {
({ user, pendingAvatarSrc, displayProfile } = arg0);
if (null == user) {
const memoizedImageSourceResult = VideoBackground.memoizedImageSource(null);
let primaryColor;
if (displayProfile != null) {
primaryColor = displayProfile.primaryColor;
}
if (primaryColor == null) {
primaryColor = rgb2intResult;
}
return primaryColor;
} else if (null == pendingAvatarSrc) {
pendingAvatarSrc = user.getAvatarURL(tmp, 80);
} else if (pendingAvatarSrc == null) {
const obj2 = {};
const merged = Object.assign(user);
obj2.avatar = null;
pendingAvatarSrc = AvatarUtils.getUserAvatarURL(obj2);
}
};
export const getAvatarSource = function getAvatarSource(getAvatarURL, arg1, arg2, arg3) {
if (null == getAvatarURL) {
return null;
} else {
let userAvatarURL = arg2;
if (undefined === arg2) {
let memoizedImageSourceResult = VideoBackground.memoizedImageSource(getAvatarURL.getAvatarURL(arg1, 80, !arg3));
const tmp2 = !arg3;
} else {
if (userAvatarURL == null) {
const obj2 = {};
const merged = Object.assign(getAvatarURL);
obj2.avatar = null;
userAvatarURL = tmp3(1397).getUserAvatarURL(obj2);
const tmp3Result = tmp3(1397);
}
memoizedImageSourceResult = VideoBackground.memoizedImageSource(userAvatarURL);
tmp3 = require;
}
}
};