decord/beta/source/modules/games/hooks/useGameNameAndCoverImage.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

95 lines
2.3 KiB
TypeScript

// Module ID: 9196
// Function ID: 9197
// Name: useGameNameAndCoverImage
// Dependencies: [558, 568, 7553, 1119, 2]
// Module 9196 (useGameNameAndCoverImage)
import c from "c" /* 568 */;
import useGame from "useGame" /* 7553 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/games/hooks/useGameNameAndCoverImage.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0, arg1, c8) => {
const cResult = c.c(10);
const game = useGame.useGame(arg0);
({ data, isLoading } = game);
if (cResult[0] === data) {
if (cResult[1] === c8) {
let tmp5 = cResult[2];
}
let name;
if (data != null) {
name = data.name;
}
if (cResult[3] === name) {
if (cResult[4] === arg1) {
let tmp10 = cResult[5];
}
if (cResult[6] === isLoading) {
if (cResult[7] === tmp5) {
if (cResult[8] === tmp10) {
let tmp13 = cResult[9];
}
return tmp13;
}
}
const obj3 = { coverImageUrl: tmp5, gameName: tmp10, isLoading };
cResult[6] = isLoading;
cResult[7] = tmp5;
cResult[8] = tmp10;
cResult[9] = obj3;
tmp13 = obj3;
}
let name1;
if (data != null) {
name1 = data.name;
}
if (name1 == null) {
name1 = arg1;
}
if (name1 == null) {
const intl = tmp(1119).intl;
name1 = intl.string(tmp(1119).t.GIWFlF);
}
let name2;
if (data != null) {
name2 = data.name;
}
cResult[3] = name2;
cResult[4] = arg1;
cResult[5] = name1;
tmp10 = name1;
}
let coverURL;
if (data != null) {
coverURL = data.getCoverURL(c8);
}
cResult[0] = data;
cResult[1] = c8;
cResult[2] = coverURL;
tmp5 = coverURL;
}) : ((arg0, arg1, c8) => {
const game = useGame.useGame(arg0);
const data = game.data;
let coverURL;
if (data != null) {
coverURL = data.getCoverURL(c8);
}
const obj2 = { coverImageUrl: coverURL, gameName: null, isLoading: null };
let name;
if (data != null) {
name = data.name;
}
if (name == null) {
name = arg1;
}
if (name == null) {
const intl = tmp(1119).intl;
name = intl.string(tmp(1119).t.GIWFlF);
}
obj2.gameName = name;
obj2.isLoading = game.isLoading;
return obj2;
});