Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
// Module ID: 5735
|
|
// Function ID: 5736
|
|
// Name: utils/AutocompleteUtils
|
|
// Dependencies: [1078, 1119, 2]
|
|
|
|
// Module 5735 (utils/AutocompleteUtils)
|
|
import Constants from "Constants" /* 1078 */;
|
|
import util from "util" /* 1119 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
Constants.AutoCompleteResultTypes;
|
|
const items = [["game", "gameMentionInput"], ["time", "timestampMentionInput"]];
|
|
const map = new Map(items);
|
|
const result = size.fileFinishedImporting("utils/native/AutocompleteUtils.tsx");
|
|
|
|
export default {
|
|
MENTION_EVERYONE() {
|
|
const obj = { type: AutoCompleteResultTypes.GLOBAL, test: "everyone", text: "@everyone", description: null };
|
|
const intl = util.intl;
|
|
obj.description = intl.string(util.t["5atMLZ"]);
|
|
return obj;
|
|
},
|
|
MENTION_HERE() {
|
|
const obj = { type: AutoCompleteResultTypes.GLOBAL, test: "here", text: "@here", description: null };
|
|
const intl = util.intl;
|
|
obj.description = intl.string(util.t.iX9SFD);
|
|
return obj;
|
|
},
|
|
MENTION_GAME() {
|
|
const obj = { test: "game", text: "@game", inlineAutocompleteType: "gameMentionInput", description: null };
|
|
const intl = util.intl;
|
|
obj.description = intl.string(util.t["1kR88y"]);
|
|
return obj;
|
|
},
|
|
MENTION_TIMESTAMP() {
|
|
const obj = { test: "time", text: "@time", inlineAutocompleteType: "timestampMentionInput", description: null };
|
|
const intl = util.intl;
|
|
obj.description = intl.string(util.t.V6L3TV);
|
|
return obj;
|
|
},
|
|
LAUNCHABLE_APPLICATIONS() {
|
|
return [];
|
|
},
|
|
findAutoInsertOnSpaceMentionInlineAutocompleteType(trigger) {
|
|
return map.get(trigger.toLowerCase());
|
|
}
|
|
};
|