decord/source/utils/native/AutocompleteUtils.tsx

48 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 5471
// Function ID: 5472
2026-08-04 08:36:32 +00:00
// Name: map
2026-09-02 09:53:35 +00:00
// Dependencies: [673, 1233, 2]
2026-07-20 16:05:17 +00:00
// Module 5471 (map)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
import getSystemLocale from "getSystemLocale" /* 1233 */;
2026-08-24 06:08:38 +00:00
ME.AutoCompleteResultTypes;
2026-09-02 09:53:35 +00:00
const items = [["game", "gameMentionInput"], ["time", "timestampMentionInput"]];
2026-08-04 08:36:32 +00:00
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-09-02 09:53:35 +00:00
MENTION_TIMESTAMP() {
const obj = { test: "time", text: "@time", inlineAutocompleteType: "timestampMentionInput", description: null };
const intl = getSystemLocale.intl;
obj[3] = intl.string(getSystemLocale.t.V6L3TV);
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
}
};