decord/source/modules/keyboard/native/PortalKeyboardRendererComponent.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

57 lines
2.4 KiB
TypeScript

// Module ID: 16842
// Function ID: 16843
// Name: PortalKeyboardRendererComponent
// Dependencies: [19, 1957, 21, 7294, 1609, 12128, 9500, 16843, 16849, 2]
// Module 16842 (PortalKeyboardRendererComponent)
import FakePlaceholderPrivateChannel from "FakePlaceholderPrivateChannel" /* 7294 */;
import noop from "module_19" /* 19 */;
import ChannelStore from "ChannelStore" /* 1957 */;
require = fn;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/keyboard/native/PortalKeyboardRendererComponent.tsx");
export default noop.memo(function PortalKeyboardRendererComponent(item) {
item = item.item;
const channelId = item.channelId;
({ chatInputRef, type } = item);
({ state, cleanUp } = item);
const channel = ChannelStore.getChannel(channelId);
const items = [channel, channelId];
const memo = noop.useMemo(() => {
if (channelId !== FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
let FAKE_PLACEHOLDER_PRIVATE_CHANNEL = channel;
} else {
FAKE_PLACEHOLDER_PRIVATE_CHANNEL = FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL;
}
return FAKE_PLACEHOLDER_PRIVATE_CHANNEL;
}, items);
const items1 = [memo];
const memo1 = noop.useMemo(() => {
let tmp2;
if (null != memo) {
const obj = { channel: tmp, type: "channel" };
tmp2 = obj;
}
return tmp2;
}, items1);
if (null != memo) {
if (undefined !== memo1) {
if (channelId(memo[4]).KeyboardTypes.APP_LAUNCHER === type) {
const obj2 = { context: memo1, chatInputRef, onClose: cleanUp, transitionState: state, entrypoint: tmp11(tmp12[6]).AppLauncherEntrypoint.TEXT };
return jsx(channel(tmp12[5]), { context: memo1, chatInputRef, onClose: cleanUp, transitionState: state, entrypoint: tmp11(tmp12[6]).AppLauncherEntrypoint.TEXT });
} else if (tmp11(tmp12[4]).KeyboardTypes.MEDIA === type) {
const obj3 = { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state };
return jsx(channel(tmp12[7]), { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state });
} else if (tmp11(tmp12[4]).KeyboardTypes.EXPRESSION === type) {
let obj = { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state };
return jsx(channel(tmp12[8]), { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state });
} else {
return null;
}
}
}
return null;
});