decord/source/modules/activities/native/ActivityShelfBadge.tsx

64 lines
3.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11313
// Function ID: 11314
2026-07-20 16:05:17 +00:00
// Name: ActivityShelfBadge
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 676, 21, 4668, 712, 1297, 1954, 4739, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11313 (ActivityShelfBadge)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import PermissionOverwriteType from "PermissionOverwriteType" /* 1954 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
import Button from "Button" /* 1297 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
createCacheKey = { badge: null, newBadge: null, updatedBadge: null, elevationShadow: null, badgeText: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { position: "absolute", top: 4, right: 4, display: "flex", flexDirection: "row", alignItems: "center", backgroundColor: ThemesDefault.colors.STATUS_POSITIVE_BACKGROUND };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { paddingLeft: 4, paddingRight: 6, borderRadius: ThemesDefault.radii.sm, height: 16, backgroundColor: ThemesDefault.colors.BADGE_NOTIFICATION_BACKGROUND };
let obj1 = { paddingLeft: 4, paddingRight: 6, borderRadius: ThemesDefault.radii.sm, height: 16, backgroundColor: ThemesDefault.colors.BADGE_NOTIFICATION_BACKGROUND };
createCacheKey[2] = { paddingLeft: 4, paddingRight: 6, borderRadius: ThemesDefault.radii.sm, height: 16, backgroundColor: ThemesDefault.colors.BADGE_BACKGROUND_BRAND };
2026-07-29 08:29:29 +00:00
createCacheKey[3] = Button.generateBoxShadowStyle(require("Button").FOUR_DP_ELEVATION_SHADOW_PARAMS);
createCacheKey[4] = { textTransform: "uppercase", marginLeft: 2, fontFamily: require("ME").Fonts.DISPLAY_EXTRABOLD, lineHeight: 16, fontSize: 12 };
2026-08-24 06:08:38 +00:00
let closure_4 = createCacheKey.createStyles(createCacheKey);
const obj2 = { paddingLeft: 4, paddingRight: 6, borderRadius: ThemesDefault.radii.sm, height: 16, backgroundColor: ThemesDefault.colors.BADGE_BACKGROUND_BRAND };
const result = require("set").fileFinishedImporting("modules/activities/native/ActivityShelfBadge.tsx");
2026-07-20 16:05:17 +00:00
export default function ActivityShelfBadge(arg0) {
({ labelType, replacementStyles } = arg0);
2026-08-24 06:08:38 +00:00
const tmp = callback();
2026-07-29 08:29:29 +00:00
if (replacementStyles == null) {
2026-07-20 16:05:17 +00:00
replacementStyles = tmp.badge;
}
2026-08-24 06:08:38 +00:00
if (labelType === PermissionOverwriteType.EmbeddedActivityLabelTypes.NEW) {
2026-07-29 08:29:29 +00:00
let obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items = [replacementStyles, , ];
({ newBadge: arr[1], elevationShadow: arr[2] } = tmp);
2026-07-29 08:29:29 +00:00
obj[0] = items;
obj = { variant: "text-xs/semibold", style: null, color: "text-overlay-light", children: null };
obj[1] = tmp.badgeText;
const intl = tmp2(1236).intl;
obj[3] = intl.string(tmp2(1236).t.y2b7CA);
2026-08-24 06:08:38 +00:00
obj[1] = jsx(tmp2(4739).Text, { variant: "text-xs/semibold", style: null, color: "text-overlay-light", children: null });
2026-07-29 08:29:29 +00:00
let tmp6 = <View variant="text-xs/semibold" style={null} color="text-overlay-light">{null}</View>;
2026-07-20 16:05:17 +00:00
} else {
tmp6 = null;
2026-08-11 06:20:06 +00:00
if (labelType === tmp2(1954).EmbeddedActivityLabelTypes.UPDATED) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items1 = [replacementStyles, , ];
({ updatedBadge: arr2[1], elevationShadow: arr2[2] } = tmp);
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-08-24 06:08:38 +00:00
obj1 = { variant: "text-xs/semibold", style: null, color: "text-overlay-light", children: null };
2026-07-29 08:29:29 +00:00
obj1[1] = tmp.badgeText;
const intl2 = tmp2(1236).intl;
obj1[3] = intl2.string(tmp2(1236).t["/qdhkk"]);
2026-08-24 06:08:38 +00:00
obj[1] = jsx(tmp2(4739).Text, { variant: "text-xs/semibold", style: null, color: "text-overlay-light", children: null });
2026-07-29 08:29:29 +00:00
tmp6 = <View style={null}>{null}</View>;
2026-07-20 16:05:17 +00:00
}
}
return tmp6;
};