decord/beta/source/modules/calls/native/useProfileTileGradient.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

111 lines
3.6 KiB
TypeScript

// Module ID: 8525
// Function ID: 8526
// Name: useProfileTileGradient
// Dependencies: [32, 19, 558, 568, 8460, 8526, 8461, 8527, 2]
// Module 8525 (useProfileTileGradient)
import maybeFetchUserProfileDefault from "maybeFetchUserProfile" /* 8461 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
const require = fn;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/calls/native/useProfileTileGradient.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? ((userId) => {
const cResult = userId(isVideoBackgroundProfileFetchEnabled[3]).c(7);
userId = userId.userId;
const guildId = userId.guildId;
const tmp4 = guildId(isVideoBackgroundProfileFetchEnabled[4])(userId, guildId);
let themeColors;
if (tmp4 != null) {
themeColors = tmp4.themeColors;
}
if (cResult[0] !== themeColors) {
let themeColors1;
if (tmp4 != null) {
themeColors1 = tmp4.themeColors;
}
if (themeColors1 == null) {
themeColors1 = [];
}
let themeColors2;
if (tmp4 != null) {
themeColors2 = tmp4.themeColors;
}
cResult[0] = themeColors2;
cResult[1] = themeColors1;
let tmp6 = themeColors1;
} else {
tmp6 = cResult[1];
}
let obj = userId(isVideoBackgroundProfileFetchEnabled[3]);
[tmp9, tmp10] = tmp6;
const tmp8 = _slicedToArray(tmp6, 2);
isVideoBackgroundProfileFetchEnabled = userId(isVideoBackgroundProfileFetchEnabled[5]).useIsVideoBackgroundProfileFetchEnabled(userId.location);
if (cResult[2] === guildId) {
if (cResult[3] === isVideoBackgroundProfileFetchEnabled) {
if (cResult[4] === userId) {
let tmp12 = cResult[5];
let tmp13 = cResult[6];
}
const effect = noop.useEffect(tmp12, tmp13);
return tmp(tmp2[7]).useVideoTileGradientColors(tmp9, tmp10);
}
}
class I {
constructor() {
tmp2 = null != userId;
tmp = userId;
if (tmp2) {
tmp2 = closure_2;
}
if (tmp2) {
tmp3 = closure_1;
tmp4 = closure_2;
obj = { guildId: null, dispatchWait: true };
tmp5 = guildId;
obj.guildId = guildId;
tmp6 = closure_1(closure_2[6])(tmp, undefined, obj);
}
return;
}
}
const items = [isVideoBackgroundProfileFetchEnabled, userId, guildId];
cResult[2] = guildId;
cResult[3] = isVideoBackgroundProfileFetchEnabled;
cResult[4] = userId;
cResult[5] = I;
cResult[6] = items;
tmp13 = items;
tmp12 = I;
}) : ((userId) => {
userId = userId.userId;
const guildId = userId.guildId;
let isVideoBackgroundProfileFetchEnabled;
let tmp2 = guildId(isVideoBackgroundProfileFetchEnabled[4])(userId, guildId);
let themeColors;
if (tmp2 != null) {
themeColors = tmp2.themeColors;
}
if (themeColors == null) {
themeColors = [];
}
[tmp5, tmp6] = themeColors;
const tmp3Result = _slicedToArray(themeColors, 2);
isVideoBackgroundProfileFetchEnabled = userId(isVideoBackgroundProfileFetchEnabled[5]).useIsVideoBackgroundProfileFetchEnabled(userId.location);
const items = [isVideoBackgroundProfileFetchEnabled, userId, guildId];
const effect = noop.useEffect(() => {
let tmp2 = null != userId;
if (tmp2) {
tmp2 = isVideoBackgroundProfileFetchEnabled;
}
if (tmp2) {
const obj = { guildId, dispatchWait: true };
maybeFetchUserProfileDefault(userId, undefined, obj);
}
}, items);
let obj = userId(isVideoBackgroundProfileFetchEnabled[5]);
return userId(isVideoBackgroundProfileFetchEnabled[7]).useVideoTileGradientColors(tmp5, tmp6);
});