decord/alpha/source/modules/user_profile/UserProfileWidgetConstants.tsx

66 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 7317
// Function ID: 7318
// Name: UserProfileWidgetConstants
2026-10-09 10:00:15 +00:00
// Dependencies: [5437, 7315, 1126, 2]
2026-10-03 08:58:59 +00:00
// Exports: widgetSupportsComment, widgetSupportsTags
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 7317 (UserProfileWidgetConstants)
2026-10-03 08:58:59 +00:00
import intl2 from "intl" /* 1126 */;
2026-10-09 10:00:15 +00:00
import WidgetType from "WidgetType" /* 7315 */;
import ApplicationStore from "ApplicationStore" /* 5437 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const items = [WidgetType.WidgetType.PERSONAL, WidgetType.WidgetType.CLIPS_GALLERY, WidgetType.WidgetType.APPLICATION, WidgetType.WidgetType.FAVORITE_GAMES, WidgetType.WidgetType.PLAYED_GAMES, WidgetType.WidgetType.CURRENT_GAMES, WidgetType.WidgetType.WANT_TO_PLAY_GAMES];
const items1 = [];
const obj = {
[WidgetType.WidgetType.FAVORITE_GAMES]: () => {
const intl = intl2.intl;
return intl.string(intl2.t.Rpf6Ak);
2026-07-20 16:05:17 +00:00
},
2026-10-03 08:58:59 +00:00
[WidgetType.WidgetType.CURRENT_GAMES]: () => {
const intl = intl2.intl;
return intl.string(intl2.t.zs6NsE);
2026-07-20 16:05:17 +00:00
},
2026-10-03 08:58:59 +00:00
[WidgetType.WidgetType.WANT_TO_PLAY_GAMES]: () => {
const intl = intl2.intl;
return intl.string(intl2.t.I509Dl);
2026-07-20 16:05:17 +00:00
},
2026-10-03 08:58:59 +00:00
[WidgetType.WidgetType.PLAYED_GAMES]: () => {
const intl = intl2.intl;
return intl.string(intl2.t.QTq6Pf);
2026-07-20 16:05:17 +00:00
},
2026-10-03 08:58:59 +00:00
[WidgetType.WidgetType.APPLICATION]: (applicationId) => {
const application = ApplicationStore.getApplication(applicationId.applicationId);
2026-07-29 08:29:29 +00:00
let str;
if (application != null) {
str = application.name;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
return str;
},
2026-10-03 08:58:59 +00:00
[WidgetType.WidgetType.PERSONAL]: () => {
const intl = intl2.intl;
return intl.string(intl2.t.AVkYMx);
2026-07-28 08:39:19 +00:00
},
2026-10-03 08:58:59 +00:00
[WidgetType.WidgetType.CLIPS_GALLERY]: () => {
const intl = intl2.intl;
return intl.string(intl2.t.zY8Ghg);
2026-07-20 16:05:17 +00:00
}
};
2026-10-03 08:58:59 +00:00
items1[0] = WidgetType.WidgetType.FAVORITE_GAMES;
const items2 = [WidgetType.WidgetType.CURRENT_GAMES, WidgetType.WidgetType.FAVORITE_GAMES, WidgetType.WidgetType.CLIPS_GALLERY];
const result = size.fileFinishedImporting("modules/user_profile/UserProfileWidgetConstants.tsx");
export const WIDGET_SORT_ORDER = items;
export const WIDGET_TITLES_BY_TYPE = obj;
2026-07-20 16:05:17 +00:00
export const WIDGETS_SUPPORTING_COMMENT = items1;
export const WIDGETS_SUPPORTING_TAGS = items2;
2026-10-03 08:58:59 +00:00
export const widgetSupportsComment = function widgetSupportsComment(arg0) {
return items1.includes(arg0);
};
export const widgetSupportsTags = function widgetSupportsTags(arg0) {
return items2.includes(arg0);
};