decord/source/modules/markup/native/MarkupReactGameMentionRule.tsx

103 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 13005
// Function ID: 13006
2026-07-20 16:05:17 +00:00
// Name: MarkupGameMention
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 21, 4193, 712, 1236, 4184, 6781, 5145, 8490, 8496, 4189, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-31 08:44:05 +00:00
// Module 13005 (MarkupGameMention)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsxs: c3, jsx: c4 } = jsxProd);
createCacheKey = { icon: null, chip: null, chipText: null };
createCacheKey = { width: 16, height: 16, borderRadius: require("Themes").radii.xs, marginRight: 2 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { backgroundColor: require("Themes").colors.BORDER_SUBTLE, borderRadius: require("Themes").radii.xs, paddingHorizontal: 2 };
let obj1 = { backgroundColor: require("Themes").colors.BORDER_SUBTLE, borderRadius: require("Themes").radii.xs, paddingHorizontal: 2 };
createCacheKey[2] = { color: require("Themes").unsafe_rawColors.BRAND_500 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
let obj2 = { color: require("Themes").unsafe_rawColors.BRAND_500 };
const result = require("createCacheKey").fileFinishedImporting("modules/markup/native/MarkupReactGameMentionRule.tsx");
2026-07-20 16:05:17 +00:00
export default function MarkupGameMention(arg0) {
2026-07-29 08:29:29 +00:00
let c1;
2026-07-20 16:05:17 +00:00
let gameName;
let icon;
let node;
let state;
({ node, state } = arg0);
2026-07-29 08:29:29 +00:00
let importDefault;
const tmp = createCacheKey();
({ gameId: c1, gameName, icon } = node);
const intl = state(1236).intl;
const stringResult = intl.string(state(1236).t["11pdXZ"]);
let tmp5 = null != gameName;
if (tmp5) {
tmp5 = "" !== gameName;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp6 = stringResult;
if (tmp5) {
tmp6 = gameName;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp5) {
let obj = { size: "sm", style: null };
obj[1] = tmp.icon;
let tmp11 = null != icon;
if (tmp11) {
tmp11 = "" !== icon;
2026-07-20 16:05:17 +00:00
}
2026-07-31 08:44:05 +00:00
let tmp9Result = callback(tmp2(6781).UnknownGameIcon, obj);
2026-07-29 08:29:29 +00:00
if (tmp11) {
obj = { style: null, source: null };
obj[0] = tmp.icon;
const obj1 = { uri: null };
obj1[0] = icon;
obj[1] = obj1;
2026-07-31 08:44:05 +00:00
tmp9Result = tmp9(importDefault(5145), obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let str3 = "button";
2026-07-20 16:05:17 +00:00
if (state.noStyleAndInteraction) {
2026-07-29 08:29:29 +00:00
str3 = "text";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = { accessibilityRole: null, style: null, color: null, onPress: null, children: null };
obj2[0] = str3;
obj2[1] = tmp.chip;
2026-07-20 16:05:17 +00:00
let textColor;
2026-07-29 08:29:29 +00:00
if (state != null) {
2026-07-20 16:05:17 +00:00
textColor = state.textColor;
}
2026-07-29 08:29:29 +00:00
obj2[2] = textColor;
2026-07-20 16:05:17 +00:00
let fn;
if (!state.noStyleAndInteraction) {
fn = () => {
2026-07-29 08:29:29 +00:00
let obj = _undefined(outer1_2[8]);
obj = { gameId: _undefined, gameProfileModalChecks: obj, source: state(outer1_2[9]).GameProfileSources.GameMention, sourceUserId: state.authorId };
obj = { shouldOpenGameProfile: true, gameId: _undefined };
2026-07-20 16:05:17 +00:00
obj.openGameProfileModal(obj);
};
}
2026-07-29 08:29:29 +00:00
obj2[3] = fn;
const items = [tmp9Result, ];
const obj3 = { variant: "text-sm/medium", style: null, children: null };
obj3[1] = tmp.chipText;
obj3[2] = tmp6;
2026-07-31 08:44:05 +00:00
items[1] = callback(tmp2(4189).Text, obj3);
2026-07-29 08:29:29 +00:00
obj2[4] = items;
2026-07-31 08:44:05 +00:00
return closure_3(tmp2(4184).MarkupText, obj2, state.key);
2026-07-20 16:05:17 +00:00
} else {
let textColor1;
2026-07-29 08:29:29 +00:00
if (state != null) {
2026-07-20 16:05:17 +00:00
textColor1 = state.textColor;
}
2026-07-29 08:29:29 +00:00
obj = { color: null, children: null };
obj[0] = textColor1;
2026-07-23 10:11:24 +00:00
const items1 = ["@", stringResult];
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-31 08:44:05 +00:00
return closure_3(tmp2(4184).MarkupText, obj, state.key);
2026-07-20 16:05:17 +00:00
}
};