decord/source/utils/native/AutocompleteUtils.tsx

42 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-27 16:17:25 +00:00
// Module ID: 5405
// Function ID: 5406
2026-08-04 08:36:32 +00:00
// Name: map
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 1236, 2]
2026-07-20 16:05:17 +00:00
2026-08-27 16:17:25 +00:00
// Module 5405 (map)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
ME.AutoCompleteResultTypes;
2026-08-04 08:36:32 +00:00
const items = [["game", "gameMentionInput"]];
const map = new Map(items);
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("utils/native/AutocompleteUtils.tsx");
2026-07-20 16:05:17 +00:00
export default {
MENTION_EVERYONE() {
2026-07-29 08:29:29 +00:00
const obj = { type: AutoCompleteResultTypes.GLOBAL, test: "everyone", text: "@everyone", description: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[3] = intl.string(getSystemLocale.t["5atMLZ"]);
2026-07-20 16:05:17 +00:00
return obj;
},
MENTION_HERE() {
2026-07-29 08:29:29 +00:00
const obj = { type: AutoCompleteResultTypes.GLOBAL, test: "here", text: "@here", description: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[3] = intl.string(getSystemLocale.t.iX9SFD);
2026-07-20 16:05:17 +00:00
return obj;
},
2026-07-24 07:16:23 +00:00
MENTION_GAME() {
2026-07-29 08:29:29 +00:00
const obj = { test: "game", text: "@game", inlineAutocompleteType: "gameMentionInput", description: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[3] = intl.string(getSystemLocale.t["1kR88y"]);
2026-07-24 07:16:23 +00:00
return obj;
},
2026-07-20 16:05:17 +00:00
LAUNCHABLE_APPLICATIONS() {
return [];
2026-08-04 08:36:32 +00:00
},
findAutoInsertOnSpaceMentionInlineAutocompleteType(trigger) {
return map.get(trigger.toLowerCase());
2026-07-20 16:05:17 +00:00
}
};