decord/alpha/source/utils/native/AutocompleteUtils.tsx

48 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 5821
// Function ID: 5822
// Name: utils/AutocompleteUtils
// Dependencies: [1074, 1115, 2]
2026-07-20 16:05:17 +00:00
// Module 5821 (utils/AutocompleteUtils)
import Constants from "Constants" /* 1074 */;
import util from "util" /* 1115 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
Constants.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);
const result = size.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 };
const intl = util.intl;
obj.description = intl.string(util.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 };
const intl = util.intl;
obj.description = intl.string(util.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 };
const intl = util.intl;
obj.description = intl.string(util.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 = util.intl;
obj.description = intl.string(util.t.V6L3TV);
2026-09-02 09:53:35 +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
}
};