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

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 6098
// Function ID: 6099
// Name: utils/AutocompleteUtils
2026-10-03 08:58:59 +00:00
// Dependencies: [1085, 1126, 2]
2026-07-20 16:05:17 +00:00
2026-10-08 09:57:35 +00:00
// Module 6098 (utils/AutocompleteUtils)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
import intl2 from "intl" /* 1126 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-10-03 08:58:59 +00:00
const AutoCompleteResultTypes = 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);
2026-10-03 08:58:59 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
MENTION_EVERYONE() {
2026-10-03 08:58:59 +00:00
let intl;
const obj = { type: AutoCompleteResultTypes.GLOBAL, test: "everyone", text: "@everyone", description: intl.string(intl2.t["5atMLZ"]) };
intl = intl2.intl;
2026-07-20 16:05:17 +00:00
return obj;
},
MENTION_HERE() {
2026-10-03 08:58:59 +00:00
let intl;
const obj = { type: AutoCompleteResultTypes.GLOBAL, test: "here", text: "@here", description: intl.string(intl2.t.iX9SFD) };
intl = intl2.intl;
2026-07-20 16:05:17 +00:00
return obj;
},
2026-07-24 07:16:23 +00:00
MENTION_GAME() {
2026-10-03 08:58:59 +00:00
let intl;
const obj = { test: "game", text: "@game", inlineAutocompleteType: "gameMentionInput", description: intl.string(intl2.t["1kR88y"]) };
intl = intl2.intl;
2026-07-24 07:16:23 +00:00
return obj;
},
2026-09-02 09:53:35 +00:00
MENTION_TIMESTAMP() {
2026-10-03 08:58:59 +00:00
let intl;
const obj = { test: "time", text: "@time", inlineAutocompleteType: "timestampMentionInput", description: intl.string(intl2.t.V6L3TV) };
intl = intl2.intl;
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
}
};
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("utils/native/AutocompleteUtils.tsx");
export default obj;