decord/source/modules/keyboard/native/PortalKeyboardRendererComponent.tsx

77 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 15687
// Function ID: 15688
// Dependencies: [19, 1372, 21, 5737, 1579, 11305, 9438, 15688, 15694, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 15687
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
import ensureGuildLoaded from "ensureGuildLoaded";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function PortalKeyboardRendererComponent(item) {
let chatInputRef;
let cleanUp;
let state;
let type;
item = item.item;
const channelId = item.channelId;
({ chatInputRef, type } = item);
({ state, cleanUp } = item);
2026-07-29 08:29:29 +00:00
let channel;
let memo;
2026-07-23 10:11:24 +00:00
channel = channel.getChannel(channelId);
2026-07-20 16:05:17 +00:00
const items = [channel, channelId];
2026-07-29 08:29:29 +00:00
memo = importAllResult.useMemo(() => {
2026-07-20 16:05:17 +00:00
if (channelId !== channelId(memo[3]).FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
let FAKE_PLACEHOLDER_PRIVATE_CHANNEL = channel;
} else {
FAKE_PLACEHOLDER_PRIVATE_CHANNEL = channelId(memo[3]).FAKE_PLACEHOLDER_PRIVATE_CHANNEL;
}
return FAKE_PLACEHOLDER_PRIVATE_CHANNEL;
}, items);
const items1 = [memo];
const memo1 = importAllResult.useMemo(() => {
2026-07-29 08:29:29 +00:00
let tmp2;
2026-07-20 16:05:17 +00:00
if (null != memo) {
2026-07-29 08:29:29 +00:00
const obj = { channel: null, type: "channel" };
obj[0] = tmp;
tmp2 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
}, items1);
if (null != memo) {
if (undefined !== memo1) {
2026-07-23 10:11:24 +00:00
if (channelId(memo[4]).KeyboardTypes.APP_LAUNCHER === type) {
2026-07-29 08:29:29 +00:00
let obj = { context: null, chatInputRef: null, onClose: null, transitionState: null, entrypoint: null };
obj[0] = memo1;
obj[1] = chatInputRef;
obj[2] = cleanUp;
obj[3] = state;
obj[4] = tmp11(tmp12[6]).AppLauncherEntrypoint.TEXT;
return jsx(channel(tmp12[5]), { context: null, chatInputRef: null, onClose: null, transitionState: null, entrypoint: null });
} else if (tmp11(tmp12[4]).KeyboardTypes.MEDIA === type) {
obj = { channel: null, chatInputRef: null, onClose: null, transitionState: null };
obj[0] = memo;
obj[1] = chatInputRef;
obj[2] = cleanUp;
obj[3] = state;
return jsx(channel(tmp12[7]), { channel: null, chatInputRef: null, onClose: null, transitionState: null });
} else if (tmp11(tmp12[4]).KeyboardTypes.EXPRESSION === type) {
obj = { channel: null, chatInputRef: null, onClose: null, transitionState: null };
obj[0] = memo;
obj[1] = chatInputRef;
obj[2] = cleanUp;
obj[3] = state;
return jsx(channel(tmp12[8]), { channel: null, chatInputRef: null, onClose: null, transitionState: null });
2026-07-20 16:05:17 +00:00
} else {
return null;
}
}
}
return null;
});
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/keyboard/native/PortalKeyboardRendererComponent.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;