decord/source/modules/user_profile/native/UserProfileGameFriendsCard.tsx

77 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12679
// Function ID: 12680
2026-07-20 16:05:17 +00:00
// Name: UserProfileGameFriendsCard
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 21, 4380, 5840, 1236, 12186, 5881, 4376, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 12679 (UserProfileGameFriendsCard)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
2026-08-25 06:04:03 +00:00
import useGetOrFetchApplicationsDefault from "useGetOrFetchApplications" /* 5840 */;
import DividerDefault from "Divider" /* 5881 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
let closure_4 = createCacheKey.createStyles({ card: { flexDirection: "column" } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileGameFriendsCard.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileGameFriendsCard(arg0) {
2026-07-29 08:29:29 +00:00
let found;
2026-08-24 06:08:38 +00:00
importDefault = undefined;
dependencyMap = undefined;
jsx = undefined;
2026-07-20 16:05:17 +00:00
({ applicationIds, style } = arg0);
const tmp = callback();
2026-07-29 08:29:29 +00:00
const tmp2 = importDefault;
2026-08-24 06:08:38 +00:00
found = useGetOrFetchApplicationsDefault(applicationIds).filter((arg0) => null != arg0);
2026-07-20 16:05:17 +00:00
if (0 === found.length) {
return null;
} else {
importDefault = "text-md/normal";
if (1 === found.length) {
2026-07-29 08:29:29 +00:00
const intl2 = found(1236).intl;
let obj = { applicationName: null };
obj[0] = function applicationName() {
2026-08-25 06:04:03 +00:00
return lib(textmdnormal(12186), { application: found[0], textVariant: textmdnormal, iconSize: 16 }, found[0].id);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
let formatResult = intl2.format(found(1236).t.wQ6urw, obj);
let tmp6 = found;
2026-07-20 16:05:17 +00:00
} else if (2 === found.length) {
2026-07-29 08:29:29 +00:00
const intl = found(1236).intl;
obj = { applicationName: null, applicationName2: null };
obj[0] = function applicationName() {
2026-08-25 06:04:03 +00:00
return lib(textmdnormal(12186), { application: found[0], textVariant: textmdnormal, iconSize: 16 }, found[0].id);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[1] = function applicationName2() {
2026-08-25 06:04:03 +00:00
return lib(textmdnormal(12186), { application: found[1], textVariant: textmdnormal, iconSize: 16 }, found[1].id);
2026-07-29 08:29:29 +00:00
};
formatResult = intl.format(found(1236).t.C98CSN, obj);
tmp6 = found;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
dependencyMap = found[found.length - 1];
2026-07-20 16:05:17 +00:00
jsx = found.slice(0, -1);
2026-07-29 08:29:29 +00:00
const intl4 = found(1236).intl;
obj = { applications: null, applicationNameLast: null };
obj[0] = function applications(arg0) {
2026-08-24 06:08:38 +00:00
return lib.map((application) => closure_1_3(closure_1_1(closure_1_2[5]), { application, useComma: true, textVariant: closure_1, iconSize: 16 }, application.id));
2026-07-29 08:29:29 +00:00
};
obj[1] = function applicationNameLast() {
2026-08-25 06:04:03 +00:00
return lib(textmdnormal(12186), { application: dependencyMap, textVariant: textmdnormal, iconSize: 16 });
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
formatResult = intl4.format(found(1236).t.UxpwAh, obj);
tmp6 = found;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj1 = { style: null, title: null, children: null };
2026-07-20 16:05:17 +00:00
const items = [tmp.card, style];
2026-07-29 08:29:29 +00:00
obj1[0] = items;
const intl3 = tmp6(1236).intl;
obj1[1] = intl3.string(tmp6(1236).t["Uv/eTx"]);
const obj2 = { variant: "text-md/normal", color: "text-default", children: null };
obj2[2] = formatResult;
2026-08-25 06:04:03 +00:00
obj1[2] = jsx(tmp6(4376).Text, { variant: "text-md/normal", color: "text-default", children: null });
2026-08-24 06:08:38 +00:00
return jsx(DividerDefault, { style: null, title: null, children: null });
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const arr = useGetOrFetchApplicationsDefault(applicationIds);
2026-07-20 16:05:17 +00:00
};