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

97 lines
4.1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8820
// Function ID: 8821
2026-07-20 16:05:17 +00:00
// Name: PortalKeyboardFooterIOS
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 21, 4380, 712, 1629, 1643, 4244, 4120, 1627, 691, 4249, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 8820 (PortalKeyboardFooterIOS)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { keyboardStickyFooter: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { position: "absolute", bottom: 0, left: 0, right: 0, zIndex: 1, flex: 1, backgroundColor: ThemesDefault.colors.MOBILE_KEYBOARD_PANEL_BACKGROUND };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_5 = 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-08-24 06:08:38 +00:00
const result = require("set").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;
}
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
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-08-15 05:55:55 +00:00
bottom = flag(1629)().bottom;
let obj = animatedSheetIndex(1643);
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-08-25 06:04:03 +00:00
keyboardTypeSharedValue = animatedSheetIndex(4244).useKeyboardTypeSharedValue();
const obj2 = animatedSheetIndex(4244);
2026-07-20 16:05:17 +00:00
class S {
constructor() {
2026-07-29 08:29:29 +00:00
tmp = animatedSheetIndex;
2026-08-24 06:08:38 +00:00
tmp2 = closure_2;
tmp3 = animatedSheetIndex(closure_2[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-08-24 06:08:38 +00:00
tmp6 = closure_6;
value = closure_6.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-08-25 06:04:03 +00:00
obj = { interpolate: animatedSheetIndex(4120).interpolate, progress, bottom, followSystemKeyboard: flag, keyboardType: keyboardTypeSharedValue, KeyboardTypes: animatedSheetIndex(1627).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-08-25 06:04:03 +00:00
animatedStyle = animatedSheetIndex(4120).useAnimatedStyle(S);
2026-07-23 10:11:24 +00:00
let items = [animatedStyle, tmp];
const memo = bottom.useMemo(() => {
2026-08-24 06:08:38 +00:00
const items = [keyboardStickyFooter.keyboardStickyFooter, animatedStyle];
2026-07-20 16:05:17 +00:00
return items;
}, items);
2026-08-25 06:04:03 +00:00
obj = { style: memo, children: height(animatedSheetIndex(4249).PortalHost, { name: str }) };
return height(flag(4120).View, obj);
2026-07-20 16:05:17 +00:00
};