decord/source/modules/user_profile/UserProfileWidgetConstants.tsx

57 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 7232
// Function ID: 7233
2026-07-20 16:05:17 +00:00
// Name: items
2026-08-25 06:04:03 +00:00
// Dependencies: [4421, 7228, 1236, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 7232 (items)
2026-08-24 06:08:38 +00:00
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import closure_2 from "addApplication" /* 4421 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-28 08:39:19 +00:00
const items = [require("WidgetType").WidgetType.PERSONAL, require("WidgetType").WidgetType.CLIPS_GALLERY, require("WidgetType").WidgetType.APPLICATION, require("WidgetType").WidgetType.FAVORITE_GAMES, require("WidgetType").WidgetType.PLAYED_GAMES, require("WidgetType").WidgetType.CURRENT_GAMES, require("WidgetType").WidgetType.WANT_TO_PLAY_GAMES];
2026-07-23 10:11:24 +00:00
const items1 = [require("WidgetType").WidgetType.FAVORITE_GAMES];
2026-07-28 08:39:19 +00:00
const items2 = [require("WidgetType").WidgetType.CURRENT_GAMES, require("WidgetType").WidgetType.FAVORITE_GAMES, require("WidgetType").WidgetType.CLIPS_GALLERY];
2026-07-20 16:05:17 +00:00
const obj = {
2026-08-25 06:04:03 +00:00
[arg1(7228).WidgetType.FAVORITE_GAMES]: () => {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.Rpf6Ak);
2026-07-20 16:05:17 +00:00
},
2026-08-25 06:04:03 +00:00
[arg1(7228).WidgetType.CURRENT_GAMES]: () => {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.zs6NsE);
2026-07-20 16:05:17 +00:00
},
2026-08-25 06:04:03 +00:00
[arg1(7228).WidgetType.WANT_TO_PLAY_GAMES]: () => {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.I509Dl);
2026-07-20 16:05:17 +00:00
},
2026-08-25 06:04:03 +00:00
[arg1(7228).WidgetType.PLAYED_GAMES]: () => {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.QTq6Pf);
2026-07-20 16:05:17 +00:00
},
2026-08-25 06:04:03 +00:00
[arg1(7228).WidgetType.APPLICATION]: (applicationId) => {
2026-07-23 10:11:24 +00:00
application = application.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-08-25 06:04:03 +00:00
[arg1(7228).WidgetType.PERSONAL]: () => {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.AVkYMx);
2026-07-28 08:39:19 +00:00
},
2026-08-25 06:04:03 +00:00
[arg1(7228).WidgetType.CLIPS_GALLERY]: () => {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.zY8Ghg);
2026-07-20 16:05:17 +00:00
}
};
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/user_profile/UserProfileWidgetConstants.tsx");
2026-07-20 16:05:17 +00:00
export const WIDGET_SORT_ORDER = items;
export const WIDGET_TITLES_BY_TYPE = obj;
export const WIDGETS_SUPPORTING_COMMENT = items1;
export const WIDGETS_SUPPORTING_TAGS = items2;