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

97 lines
4 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 9363
// Function ID: 9364
2026-07-20 16:05:17 +00:00
// Name: PortalKeyboardFooterIOS
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 21, 4193, 712, 1581, 1595, 4059, 4054, 1579, 691, 4064, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-31 08:44:05 +00:00
// Module 9363 (PortalKeyboardFooterIOS)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { keyboardStickyFooter: null };
createCacheKey = { position: "absolute", bottom: 0, left: 0, right: 0, zIndex: 1, flex: 1, backgroundColor: require("Themes").colors.MOBILE_KEYBOARD_PANEL_BACKGROUND };
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-20 16:05:17 +00:00
let closure_6 = { code: "function PortalKeyboardFooterIOSIosTsx1(){const{interpolate,progress,bottom,followSystemKeyboard,keyboardType,KeyboardTypes,animatedSheetIndex,height,EXPRESSION_FOOTER_HEIGHT}=this.__closure;const offset=interpolate(progress.get(),[0,1],[0,bottom]);const shouldFollowKeyboard=followSystemKeyboard||keyboardType.get()===KeyboardTypes.EXPRESSION;if(shouldFollowKeyboard&&animatedSheetIndex.get()>=0){return{transform:[{translateY:height.get()+offset}]};}return{transform:[{translateY:interpolate(animatedSheetIndex.get(),[-1,0],[EXPRESSION_FOOTER_HEIGHT+bottom,0],'clamp')}]};}" };
2026-07-29 08:29:29 +00:00
const result = require("createCacheKey").fileFinishedImporting("modules/keyboard/native/PortalKeyboardFooterIOS.ios.tsx");
2026-07-20 16:05:17 +00:00
export default function PortalKeyboardFooterIOS(animatedSheetIndex) {
animatedSheetIndex = animatedSheetIndex.animatedSheetIndex;
let str = animatedSheetIndex.portalHostName;
if (str === undefined) {
str = "expression-footer";
}
let flag = animatedSheetIndex.followSystemKeyboard;
if (flag === undefined) {
flag = false;
}
let dependencyMap;
2026-07-23 10:11:24 +00:00
let bottom;
let height;
let progress;
let keyboardTypeSharedValue;
2026-07-20 16:05:17 +00:00
let animatedStyle;
2026-07-23 10:11:24 +00:00
const tmp = progress();
2026-07-20 16:05:17 +00:00
dependencyMap = tmp;
2026-07-29 08:29:29 +00:00
bottom = flag(1581)().bottom;
let obj = animatedSheetIndex(1595);
2026-07-20 16:05:17 +00:00
const reanimatedKeyboardAnimation = obj.useReanimatedKeyboardAnimation();
2026-07-23 10:11:24 +00:00
height = reanimatedKeyboardAnimation.height;
progress = reanimatedKeyboardAnimation.progress;
2026-07-31 08:44:05 +00:00
keyboardTypeSharedValue = animatedSheetIndex(4059).useKeyboardTypeSharedValue();
const obj2 = animatedSheetIndex(4059);
2026-07-20 16:05:17 +00:00
class S {
constructor() {
2026-07-29 08:29:29 +00:00
tmp = animatedSheetIndex;
tmp2 = c2;
tmp3 = animatedSheetIndex(c2[7]);
2026-07-23 10:11:24 +00:00
[0][1] = bottom;
2026-07-29 08:29:29 +00:00
tmp4 = bottom;
2026-07-23 10:11:24 +00:00
if (c1) {
2026-07-29 08:29:29 +00:00
tmp8 = animatedSheetIndex;
num = 0;
2026-07-20 16:05:17 +00:00
if (animatedSheetIndex.get() >= 0) {
2026-07-29 08:29:29 +00:00
obj = { transform: null };
obj1 = { translateY: null };
tmp10 = height;
obj1[0] = height.get() + tmp5;
2026-07-20 16:05:17 +00:00
items = [];
items[0] = obj1;
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-07-20 16:05:17 +00:00
}
return obj;
} else {
2026-07-29 08:29:29 +00:00
tmp6 = c6;
2026-07-23 10:11:24 +00:00
value = c6.get();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { transform: null };
obj2 = { translateY: null };
tmpResult = tmp(tmp2[7]);
2026-07-20 16:05:17 +00:00
value1 = animatedSheetIndex.get();
items1 = [, ];
2026-07-29 08:29:29 +00:00
items1[0] = tmp(tmp2[9]).EXPRESSION_FOOTER_HEIGHT + tmp4;
2026-07-20 16:05:17 +00:00
items1[1] = 0;
2026-07-29 08:29:29 +00:00
obj2[0] = tmpResult.interpolate(value1, [-1, 0], items1, "clamp");
items2 = [];
items2[0] = obj2;
obj[0] = items2;
2026-07-20 16:05:17 +00:00
return;
}
}
2026-07-31 08:44:05 +00:00
obj = { interpolate: animatedSheetIndex(4054).interpolate, progress, bottom, followSystemKeyboard: flag, keyboardType: keyboardTypeSharedValue, KeyboardTypes: animatedSheetIndex(1579).KeyboardTypes, animatedSheetIndex, height, EXPRESSION_FOOTER_HEIGHT: animatedSheetIndex(691).EXPRESSION_FOOTER_HEIGHT };
2026-07-20 16:05:17 +00:00
S.__closure = obj;
S.__workletHash = 9444646970651;
2026-07-23 10:11:24 +00:00
S.__initData = keyboardTypeSharedValue;
2026-07-31 08:44:05 +00:00
animatedStyle = animatedSheetIndex(4054).useAnimatedStyle(S);
2026-07-23 10:11:24 +00:00
let items = [animatedStyle, tmp];
const memo = bottom.useMemo(() => {
const items = [_undefined.keyboardStickyFooter, animatedStyle];
2026-07-20 16:05:17 +00:00
return items;
}, items);
2026-07-29 08:29:29 +00:00
obj = { style: memo, children: null };
2026-07-31 08:44:05 +00:00
obj[1] = height(animatedSheetIndex(4064).PortalHost, { name: str });
return height(flag(4054).View, obj);
2026-07-20 16:05:17 +00:00
};