decord/source/modules/user_profile/native/UserProfileGameFriendsCard.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

77 lines
3.1 KiB
TypeScript

// Module ID: 13232
// Function ID: 13233
// Name: UserProfileGameFriendsCard
// Dependencies: [19, 21, 4638, 7278, 1115, 12771, 7317, 4634, 2]
// Exports: default
// Module 13232 (UserProfileGameFriendsCard)
import useGetOrFetchApplicationsDefault from "useGetOrFetchApplications" /* 7278 */;
import ApplicationIconAndNameDefault from "ApplicationIconAndName" /* 12771 */;
import noop from "module_19" /* 19 */;
const UserProfileCardDefault = tmp2(7317);
const require = fn;
let jsx = fn(21).jsx;
const createStyles = fn(4638);
let closure_4 = createStyles.createStyles({ card: { flexDirection: "column" } });
const size = fn(2);
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileGameFriendsCard.tsx");
export default function UserProfileGameFriendsCard(arg0) {
importDefault = undefined;
dependencyMap = undefined;
jsx = undefined;
({ applicationIds, style } = arg0);
const tmp = closure_4();
const found = useGetOrFetchApplicationsDefault(applicationIds).filter((item) => null != item);
if (0 === found.length) {
return null;
} else {
importDefault = "text-md/normal";
if (1 === found.length) {
const intl2 = found(1115).intl;
const obj2 = {
applicationName() {
return jsx(ApplicationIconAndNameDefault, { application: found[0], textVariant, iconSize: 16 }, found[0].id);
}
};
let formatResult = intl2.format(found(1115).t.wQ6urw, obj2);
let tmp6 = found;
} else if (2 === found.length) {
const intl = found(1115).intl;
const obj = {
applicationName() {
return jsx(ApplicationIconAndNameDefault, { application: found[0], textVariant, iconSize: 16 }, found[0].id);
},
applicationName2() {
return jsx(ApplicationIconAndNameDefault, { application: found[1], textVariant, iconSize: 16 }, found[1].id);
}
};
formatResult = intl.format(found(1115).t.C98CSN, obj);
tmp6 = found;
} else {
dependencyMap = found[found.length - 1];
jsx = found.slice(0, -1);
const intl4 = found(1115).intl;
const obj3 = {
applications() {
return closure_3.map((application) => closure_3(textVariant(closure_2[5]), { application, useComma: true, textVariant, iconSize: 16 }, application.id));
},
applicationNameLast() {
return jsx(ApplicationIconAndNameDefault, { application, textVariant, iconSize: 16 });
}
};
formatResult = intl4.format(found(1115).t.UxpwAh, obj3);
tmp6 = found;
}
const obj4 = { style: null, title: null, children: null };
const items = [tmp.card, style];
obj4.style = items;
const intl3 = tmp6(1115).intl;
obj4.title = intl3.string(tmp6(1115).t["Uv/eTx"]);
const obj5 = { variant: "text-md/normal", color: "text-default", children: formatResult };
obj4.children = jsx(tmp6(4634).Text, { variant: "text-md/normal", color: "text-default", children: formatResult });
return jsx(UserProfileCardDefault, { style: null, title: null, children: null });
}
const arr = useGetOrFetchApplicationsDefault(applicationIds);
};