decord/alpha/source/modules/chat/native/Chat.android.tsx

181 lines
6.4 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 11440
// Function ID: 11441
// Name: Chat
2026-10-09 10:00:15 +00:00
// Dependencies: [109, 19, 5080, 21, 5091, 558, 576, 11441, 6333, 11447, 11450, 504, 9571, 2]
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 11440 (Chat)
2026-10-03 08:58:59 +00:00
import react2 from "react" /* 576 */;
2026-10-09 10:00:15 +00:00
import ChatNativeComponentDefault from "ChatNativeComponent" /* 9571 */;
import useNavigationTTIContentPainted from "useNavigationTTIContentPainted" /* 11441 */;
import TTIFirstContentfulPaint from "TTIFirstContentfulPaint" /* 11447 */;
import ChatListNativeComponentDefault from "ChatListNativeComponent" /* 11450 */;
2026-10-08 09:57:35 +00:00
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
2026-10-03 08:58:59 +00:00
import react from "react" /* 19 */;
2026-10-09 10:00:15 +00:00
import AccessibilityStore from "AccessibilityStore" /* 5080 */;
2026-10-03 08:58:59 +00:00
import Fragment from "Fragment" /* 21 */;
2026-10-09 10:00:15 +00:00
import createStyles from "createStyles" /* 5091 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating_mod from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-08 09:57:35 +00:00
let metroImportAll;
let metroImportDefault;
2026-10-03 08:58:59 +00:00
let tmp;
const get_initialized = tmp(504);
2026-10-08 09:57:35 +00:00
let closure_3 = ["ref"];
({ jsx: metroImportDefault, jsxs: metroImportAll } = Fragment);
let closure_9 = createStyles.createStyles({ chatList: { flex: 1 } });
2026-10-03 08:58:59 +00:00
let ReactCompilerGating = ReactCompilerGating_mod;
2026-10-08 09:57:35 +00:00
let closure_10 = ReactCompilerGating.isReactCompilerEnabled() ? (function DCDChatList() {
2026-10-03 08:58:59 +00:00
let first;
2026-10-08 09:57:35 +00:00
let obj4;
let tmp8;
let tmp9;
2026-10-03 08:58:59 +00:00
const obj = react2;
2026-10-08 09:57:35 +00:00
const cResult = obj.c(7);
const tmp4 = closure_9();
const obj2 = useNavigationTTIContentPainted;
const navigationTTIContentPainted = obj2.useNavigationTTIContentPainted();
2026-10-03 08:58:59 +00:00
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
2026-10-09 10:00:15 +00:00
const Gesture = tmp(6333).Gesture;
2026-10-03 08:58:59 +00:00
const NativeResult = Gesture.Native();
const disallowInterruptionResult = NativeResult.disallowInterruption(true);
const result = disallowInterruptionResult.shouldCancelWhenOutside(false);
cResult[0] = result;
first = result;
} else {
first = cResult[0];
}
2026-10-08 09:57:35 +00:00
if (cResult[1] !== navigationTTIContentPainted) {
const fn = function s(nativeEvent) {
return navigationTTIContentPainted(nativeEvent.nativeEvent);
};
cResult[1] = navigationTTIContentPainted;
cResult[2] = fn;
tmp8 = fn;
2026-10-03 08:58:59 +00:00
} else {
2026-10-08 09:57:35 +00:00
tmp8 = cResult[2];
2026-10-03 08:58:59 +00:00
}
2026-10-08 09:57:35 +00:00
if (cResult[3] === Symbol.for("react.memo_cache_sentinel")) {
const tmp11 = metroImportDefault(TTIFirstContentfulPaint.TTIFirstContentfulPaint, { label: "chat_list_android" });
cResult[3] = tmp11;
tmp9 = tmp11;
2026-10-03 08:58:59 +00:00
} else {
2026-10-08 09:57:35 +00:00
tmp9 = cResult[3];
}
if (cResult[4] === tmp8) {
let tmp12;
if (cResult[5] === tmp4.chatList) {
tmp12 = cResult[6];
}
return tmp12;
2026-10-03 08:58:59 +00:00
}
2026-10-08 09:57:35 +00:00
const obj3 = { gesture: first, children: metroImportDefault(ChatListNativeComponentDefault, obj4) };
2026-10-09 10:00:15 +00:00
const GestureDetector = tmp(6333).GestureDetector;
2026-10-08 09:57:35 +00:00
obj4 = { style: tmp4.chatList, floatingChatInputEnabled: true, onContentPaintStateChange: tmp8, children: tmp9 };
const tmp13 = metroImportDefault(GestureDetector, obj3);
cResult[4] = tmp8;
cResult[5] = tmp4.chatList;
cResult[6] = tmp13;
tmp12 = tmp13;
}) : (function DCDChatList() {
let navigationTTIContentPainted;
let obj3;
let tmp5;
const tmp = closure_9();
2026-10-09 10:00:15 +00:00
const obj = navigationTTIContentPainted(11441);
2026-10-08 09:57:35 +00:00
navigationTTIContentPainted = obj.useNavigationTTIContentPainted();
const items = [navigationTTIContentPainted];
2026-10-03 08:58:59 +00:00
const memo = react.useMemo(() => {
2026-10-08 09:57:35 +00:00
const Gesture = navigationTTIContentPainted(dependencyMap[8]).Gesture;
2026-07-20 16:05:17 +00:00
const NativeResult = Gesture.Native();
2026-10-03 08:58:59 +00:00
const disallowInterruptionResult = NativeResult.disallowInterruption(true);
return disallowInterruptionResult.shouldCancelWhenOutside(false);
2026-07-20 16:05:17 +00:00
}, []);
2026-10-08 09:57:35 +00:00
const callback = react.useCallback((nativeEvent) => navigationTTIContentPainted(nativeEvent.nativeEvent), items);
const obj2 = { gesture: memo, children: closure_7(tmp5, obj3) };
2026-10-09 10:00:15 +00:00
const GestureDetector = navigationTTIContentPainted(6333).GestureDetector;
obj3 = { style: tmp.chatList, floatingChatInputEnabled: true, onContentPaintStateChange: callback, children: closure_7(navigationTTIContentPainted(11447).TTIFirstContentfulPaint, { label: "chat_list_android" }) };
2026-10-08 09:57:35 +00:00
tmp5 = ChatListNativeComponentDefault;
return closure_7(GestureDetector, obj2);
2026-10-03 08:58:59 +00:00
});
ReactCompilerGating = ReactCompilerGating_mod;
2026-10-08 09:57:35 +00:00
let tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function Chat(ref) {
2026-10-03 08:58:59 +00:00
let items1;
let roleStyle;
2026-10-08 09:57:35 +00:00
let tmp10;
let tmp13;
2026-10-03 08:58:59 +00:00
let tmp4;
let tmp5;
2026-10-08 09:57:35 +00:00
let tmp9;
2026-10-03 08:58:59 +00:00
const obj = react2;
2026-10-08 09:57:35 +00:00
const cResult = obj.c(10);
if (cResult[0] !== ref) {
const tmp8 = _objectWithoutProperties(ref, closure_3);
cResult[0] = ref;
cResult[1] = ref.ref;
cResult[2] = tmp8;
tmp5 = tmp8;
tmp4 = ref;
} else {
tmp4 = cResult[1];
tmp5 = cResult[2];
}
if (cResult[3] === Symbol.for("react.memo_cache_sentinel")) {
2026-10-03 08:58:59 +00:00
const items = [AccessibilityStore];
2026-10-08 09:57:35 +00:00
const fn = function v() {
2026-10-03 08:58:59 +00:00
return roleStyle.roleStyle;
};
2026-10-08 09:57:35 +00:00
cResult[3] = items;
cResult[4] = fn;
tmp10 = fn;
tmp9 = items;
2026-10-03 08:58:59 +00:00
} else {
2026-10-08 09:57:35 +00:00
tmp9 = cResult[3];
tmp10 = cResult[4];
2026-10-03 08:58:59 +00:00
}
const tmpResult = get_initialized;
2026-10-08 09:57:35 +00:00
const stateFromStores = tmpResult.useStateFromStores(tmp9, tmp10);
if (cResult[5] === Symbol.for("react.memo_cache_sentinel")) {
const tmp16 = metroImportDefault(closure_10, {});
cResult[5] = tmp16;
tmp13 = tmp16;
2026-10-03 08:58:59 +00:00
} else {
2026-10-08 09:57:35 +00:00
tmp13 = cResult[5];
2026-10-03 08:58:59 +00:00
}
2026-10-08 09:57:35 +00:00
if (cResult[6] === tmp4) {
if (cResult[7] === tmp5) {
let tmp17;
if (cResult[8] === stateFromStores) {
tmp17 = cResult[9];
2026-10-03 08:58:59 +00:00
}
2026-10-08 09:57:35 +00:00
return tmp17;
2026-10-03 08:58:59 +00:00
}
}
2026-10-08 09:57:35 +00:00
const obj2 = { roleStyle: stateFromStores, ref: tmp4, children: items1 };
const tmp18 = ChatNativeComponentDefault;
const merged = Object.assign(tmp5);
items1 = [tmp13, tmp5.children];
const tmp20 = metroImportAll(tmp18, obj2);
cResult[6] = tmp4;
cResult[7] = tmp5;
cResult[8] = stateFromStores;
cResult[9] = tmp20;
tmp17 = tmp20;
}) : (function Chat(ref) {
2026-10-03 08:58:59 +00:00
let items1;
let roleStyle;
2026-10-08 09:57:35 +00:00
ref = ref.ref;
const merged = Object.assign(ref, Object.assign({ ref: 0 }));
const items = [AccessibilityStore];
2026-10-03 08:58:59 +00:00
const obj = get_initialized;
const stateFromStores = obj.useStateFromStores(items, () => roleStyle.roleStyle);
const obj2 = { roleStyle: stateFromStores, ref, children: items1 };
2026-10-08 09:57:35 +00:00
const tmp3 = ChatNativeComponentDefault;
const merged1 = Object.assign(merged);
items1 = [metroImportDefault(closure_10, {}), merged.children];
return metroImportAll(tmp3, obj2);
});
2026-10-03 08:58:59 +00:00
let result = size.fileFinishedImporting("modules/chat/native/Chat.android.tsx");
2026-10-08 09:57:35 +00:00
export default tmp3;