decord/source/modules/keyboard/native/PortalKeyboardInlineComponent.ios.tsx

129 lines
4.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12195
// Function ID: 12196
// Dependencies: [19, 17, 4372, 4244, 1895, 6113, 1627, 4831, 4245, 4242, 4248, 10399, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 12195
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import closure_6 from "maybeApplyNoTextColorForLightCustomTheme" /* 4372 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
({ NativeModules: c4, findNodeHandle: c5 } = get_ActivityIndicator);
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function InlinePortalKeyboard(messagesRef) {
messagesRef = messagesRef.messagesRef;
2026-07-29 08:29:29 +00:00
let id;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
importAllResult = undefined;
2026-07-29 08:29:29 +00:00
let keyboardContextForType;
let field;
let field1;
2026-08-24 06:08:38 +00:00
closure_7 = undefined;
2026-07-29 08:29:29 +00:00
id = importAllResult.useId();
2026-08-25 06:04:03 +00:00
const tmp2 = id(4244)();
2026-07-29 08:29:29 +00:00
dependencyMap = tmp2;
2026-08-25 06:04:03 +00:00
let tmp4 = id(6113)({ includeCustomKeyboard: false });
2026-07-29 08:29:29 +00:00
importAllResult = tmp4;
2026-08-15 05:55:55 +00:00
let tmp3 = id(1895)();
2026-08-25 06:04:03 +00:00
keyboardContextForType = messagesRef(4244).useKeyboardContextForType(messagesRef(1627).KeyboardTypes.SYSTEM);
id(4831)(() => () => {
2026-08-24 06:08:38 +00:00
const PortalKeyboardUIStore = closure_1_0(closure_1_2[8]).PortalKeyboardUIStore;
field = PortalKeyboardUIStore.getField("keyboard");
2026-07-29 08:29:29 +00:00
let tmp4 = null != field;
if (tmp4) {
tmp4 = field.handlerId === closure_1;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp4) {
let tmpResult = tmp(tmp2[9]);
tmpResult.dismissKeyboard();
tmpResult = tmp(tmp2[8]);
tmpResult.closePortalKeyboard();
2026-07-20 16:05:17 +00:00
}
});
2026-08-25 06:04:03 +00:00
let PortalKeyboardUIStore = messagesRef(4245).PortalKeyboardUIStore;
2026-07-29 08:29:29 +00:00
field = PortalKeyboardUIStore.useField("keyboard");
2026-08-25 06:04:03 +00:00
const PortalKeyboardUIStore2 = messagesRef(4245).PortalKeyboardUIStore;
2026-07-29 08:29:29 +00:00
field1 = PortalKeyboardUIStore2.useField("state");
closure_7 = importAllResult.useRef(false);
2026-07-20 16:05:17 +00:00
const items = [messagesRef.channelId, id, field, field1, tmp2, messagesRef, keyboardContextForType, tmp3, tmp4];
const layoutEffect = importAllResult.useLayoutEffect(() => {
2026-07-29 08:29:29 +00:00
const current = ref.current;
2026-07-20 16:05:17 +00:00
if (null != field) {
2026-07-29 08:29:29 +00:00
if (null == tmp2.handlerId) {
if (null != tmp2) {
2026-08-25 06:04:03 +00:00
if (field1 === messagesRef(4248).PortalKeyboardState.REQUEST_OPEN) {
2026-07-29 08:29:29 +00:00
const current4 = messagesRef.current;
let chatRef;
if (current4 != null) {
chatRef = current4.getChatRef();
}
if (null != chatRef) {
const tmp38 = field(chatRef.current);
if (null != tmp38) {
2026-08-25 06:04:03 +00:00
const result = messagesRef(4245).handlePortalKeyboardOpen(id);
2026-07-29 08:29:29 +00:00
tmp.current = true;
2026-08-25 06:04:03 +00:00
const obj2 = messagesRef(4245);
2026-07-29 08:29:29 +00:00
const DCDChatManager3 = keyboardContextForType.DCDChatManager;
2026-08-25 06:04:03 +00:00
const result1 = DCDChatManager3.customKeyboardWillShow(tmp38, messagesRef(10399).getKeyboardActionSheetHeight().minimum, 0.25, 7);
const obj3 = messagesRef(10399);
2026-07-29 08:29:29 +00:00
}
}
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
if (dependencyMap === messagesRef(1627).KeyboardTypes.SYSTEM) {
2026-07-20 16:05:17 +00:00
if (keyboardContextForType.keyboardWillOpen) {
2026-08-25 06:04:03 +00:00
if (field1 !== messagesRef(4248).PortalKeyboardState.REQUEST_CLOSE) {
2026-07-20 16:05:17 +00:00
const _setTimeout = setTimeout;
2026-08-25 06:04:03 +00:00
messagesRef = setTimeout(messagesRef(4245).closePortalKeyboardRequest, 250);
2026-07-20 16:05:17 +00:00
return () => clearTimeout(closure_0);
}
}
2026-08-25 06:04:03 +00:00
messagesRef(4245).closePortalKeyboard();
2026-07-29 08:29:29 +00:00
const current3 = messagesRef.current;
let chatRef1;
if (current3 != null) {
chatRef1 = current3.getChatRef();
}
if (null != chatRef1) {
const tmp21 = field(chatRef1.current);
if (null != tmp21) {
tmp.current = false;
const DCDChatManager = keyboardContextForType.DCDChatManager;
const result2 = DCDChatManager.customKeyboardWillHide(tmp21, 0.25, 7);
}
}
2026-08-25 06:04:03 +00:00
const obj = messagesRef(4245);
2026-07-20 16:05:17 +00:00
}
}
} else {
2026-08-24 06:08:38 +00:00
let tmp4 = closure_3;
if (!closure_3) {
2026-07-29 08:29:29 +00:00
let tmp3 = !current;
if (!current) {
tmp3 = !tmp28;
}
tmp4 = tmp3;
2026-07-20 16:05:17 +00:00
}
if (!tmp4) {
2026-07-29 08:29:29 +00:00
const current2 = messagesRef.current;
let chatRef2;
if (current2 != null) {
chatRef2 = current2.getChatRef();
}
if (null != chatRef2) {
const tmp30 = field(chatRef2.current);
if (null != tmp30) {
tmp.current = false;
const DCDChatManager2 = keyboardContextForType.DCDChatManager;
const result3 = DCDChatManager2.customKeyboardWillHide(tmp30, 0.25, 7);
}
}
2026-07-20 16:05:17 +00:00
}
}
}, items);
return null;
});
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/keyboard/native/PortalKeyboardInlineComponent.ios.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;