decord/source/modules/keyboard/native/PortalKeyboardFooterIOS.ios.tsx
2026-08-05 07:35:12 +00:00

96 lines
4 KiB
TypeScript

// Module ID: 8567
// Function ID: 8568
// Name: PortalKeyboardFooterIOS
// Dependencies: [19, 21, 4255, 712, 1581, 1595, 4121, 4116, 1579, 691, 4126, 2]
// Exports: default
// Module 8567 (PortalKeyboardFooterIOS)
import noop from "noop";
import { jsx } from "jsxProd";
import createCacheKey from "createCacheKey";
const require = arg1;
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);
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')}]};}" };
const result = require("createCacheKey").fileFinishedImporting("modules/keyboard/native/PortalKeyboardFooterIOS.ios.tsx");
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;
let bottom;
let height;
let progress;
let keyboardTypeSharedValue;
let animatedStyle;
const tmp = progress();
dependencyMap = tmp;
bottom = flag(1581)().bottom;
let obj = animatedSheetIndex(1595);
const reanimatedKeyboardAnimation = obj.useReanimatedKeyboardAnimation();
height = reanimatedKeyboardAnimation.height;
progress = reanimatedKeyboardAnimation.progress;
keyboardTypeSharedValue = animatedSheetIndex(4121).useKeyboardTypeSharedValue();
const obj2 = animatedSheetIndex(4121);
class S {
constructor() {
tmp = animatedSheetIndex;
tmp2 = c2;
tmp3 = animatedSheetIndex(c2[7]);
[0][1] = bottom;
tmp4 = bottom;
if (c1) {
tmp8 = animatedSheetIndex;
num = 0;
if (animatedSheetIndex.get() >= 0) {
obj = { transform: null };
obj1 = { translateY: null };
tmp10 = height;
obj1[0] = height.get() + tmp5;
items = [];
items[0] = obj1;
obj[0] = items;
}
return obj;
} else {
tmp6 = c6;
value = c6.get();
}
obj = { transform: null };
obj2 = { translateY: null };
tmpResult = tmp(tmp2[7]);
value1 = animatedSheetIndex.get();
items1 = [, ];
items1[0] = tmp(tmp2[9]).EXPRESSION_FOOTER_HEIGHT + tmp4;
items1[1] = 0;
obj2[0] = tmpResult.interpolate(value1, [-1, 0], items1, "clamp");
items2 = [];
items2[0] = obj2;
obj[0] = items2;
return;
}
}
obj = { interpolate: animatedSheetIndex(4116).interpolate, progress, bottom, followSystemKeyboard: flag, keyboardType: keyboardTypeSharedValue, KeyboardTypes: animatedSheetIndex(1579).KeyboardTypes, animatedSheetIndex, height, EXPRESSION_FOOTER_HEIGHT: animatedSheetIndex(691).EXPRESSION_FOOTER_HEIGHT };
S.__closure = obj;
S.__workletHash = 9444646970651;
S.__initData = keyboardTypeSharedValue;
animatedStyle = animatedSheetIndex(4116).useAnimatedStyle(S);
let items = [animatedStyle, tmp];
const memo = bottom.useMemo(() => {
const items = [_undefined.keyboardStickyFooter, animatedStyle];
return items;
}, items);
obj = { style: memo, children: null };
obj[1] = height(animatedSheetIndex(4126).PortalHost, { name: str });
return height(flag(4116).View, obj);
};