decord/source/modules/user_profile/native/UserProfileAboutMeCardCommand.tsx

94 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11895
// Function ID: 92066
// Dependencies: [31, 653, 33, 4131, 689, 4127, 3990, 10859, 675, 4325, 4099, 10864, 5674, 5676, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 11895
2026-07-23 10:11:24 +00:00
import { AnalyticEvents } from "ME";
import { jsxs } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import importAllResult from "result";
const require = arg1;
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { color: require("_createForOfIteratorHelperLoose").colors.MENTION_FOREGROUND, backgroundColor: require("_createForOfIteratorHelperLoose").colors.MENTION_BACKGROUND, marginEnd: require("_createForOfIteratorHelperLoose").space.PX_12, marginBottom: require("_createForOfIteratorHelperLoose").space.PX_12 };
2026-07-20 16:05:17 +00:00
obj.commandClickable = obj;
2026-07-23 10:11:24 +00:00
let closure_5 = _createForOfIteratorHelperLoose.createStyles(obj);
const memoResult = require("result").memo(function UserProfileAboutMeCardCommand(channel) {
2026-07-20 16:05:17 +00:00
let command;
2026-07-23 10:11:24 +00:00
let require;
({ application: require, command } = channel);
channel = channel.channel;
2026-07-20 16:05:17 +00:00
const tmp = callback();
2026-07-23 10:11:24 +00:00
const items = ["/", command.displayName];
return jsxs(require(channel[5]).Text, {
2026-07-20 16:05:17 +00:00
variant: "text-md/bold",
onPress() {
2026-07-23 10:11:24 +00:00
let obj = outer1_0(channel[6]);
2026-07-20 16:05:17 +00:00
const bestActiveInput = obj.getBestActiveInput();
obj = { channelId: channel.id };
let text;
if (null != bestActiveInput) {
text = bestActiveInput.getText();
}
let str = "";
if (null != text) {
str = text;
}
obj.currentText = str;
({ id: obj4.commandId, displayName: obj4.commandName } = command);
obj.onOpenCustomKeyboard = function onOpenCustomKeyboard(arg0) {
let openCustomKeyboardResult;
if (null != bestActiveInput) {
openCustomKeyboardResult = bestActiveInput.openCustomKeyboard(arg0);
}
return openCustomKeyboardResult;
};
obj.onSetCommand = function onSetCommand() {
2026-07-23 10:11:24 +00:00
let obj = command(channel[8]);
2026-07-20 16:05:17 +00:00
obj = {};
let id;
if (null != bestActiveInput) {
id = bestActiveInput.id;
}
obj.application_id = id;
2026-07-23 10:11:24 +00:00
obj.command_id = outer1_1.id;
obj.guild_id = outer1_2.getGuildId();
const merged = Object.assign(outer2_0(channel[9]).collectChannelAnalyticsMetadata(outer1_2));
obj.track(outer2_3.POPULAR_APPLICATION_COMMAND_CLICKED, obj);
const obj3 = outer2_0(channel[9]);
command(channel[10]).hideActionSheet();
command(channel[11])();
2026-07-20 16:05:17 +00:00
if (null != bestActiveInput) {
bestActiveInput.openSystemKeyboard();
}
let tmp9 = null == bestActiveInput;
if (!tmp9) {
const applicationCommandManager = bestActiveInput.getApplicationCommandManager();
tmp9 = null == applicationCommandManager;
const obj5 = applicationCommandManager;
}
if (!tmp9) {
2026-07-23 10:11:24 +00:00
obj = { channelId: outer1_2.id, command: outer1_1 };
2026-07-20 16:05:17 +00:00
let applicationCommandSection = null;
if (null != bestActiveInput) {
2026-07-23 10:11:24 +00:00
applicationCommandSection = outer2_0(channel[12]).getApplicationCommandSection(bestActiveInput);
const obj7 = outer2_0(channel[12]);
2026-07-20 16:05:17 +00:00
}
obj.section = applicationCommandSection;
2026-07-23 10:11:24 +00:00
obj.location = outer2_0(channel[13]).ApplicationCommandTriggerLocations.POPULAR_COMMANDS;
2026-07-20 16:05:17 +00:00
obj5.setCommand(obj);
}
};
2026-07-23 10:11:24 +00:00
const result = outer1_0(channel[7]).handleTapCommandMention(obj);
2026-07-20 16:05:17 +00:00
},
onLongPress() {
2026-07-23 10:11:24 +00:00
return outer1_0(channel[7]).handleLongPressCommandMention(command.displayName, command.id);
2026-07-20 16:05:17 +00:00
},
style: callback().commandClickable,
children: items
});
});
2026-07-23 10:11:24 +00:00
let result = require("jsxProd").fileFinishedImporting("modules/user_profile/native/UserProfileAboutMeCardCommand.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;