2026-09-14 20:04:03 +00:00
|
|
|
// Module ID: 12210
|
|
|
|
|
// Function ID: 12211
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useCustomKeyboardBottomSheetConfig
|
2026-09-14 20:04:03 +00:00
|
|
|
// Dependencies: [19, 4628, 1363, 1877, 4504, 1609, 1477, 11490, 5679, 11489, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-14 20:04:03 +00:00
|
|
|
// Module 12210 (useCustomKeyboardBottomSheetConfig)
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import AccessibilityStore from "AccessibilityStore" /* 4628 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
const require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/action_sheet/native/useCustomKeyboardBottomSheetConfig.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useCustomKeyboardBottomSheetConfig(forceMaxHeight) {
|
|
|
|
|
let flag = forceMaxHeight.forceMaxHeight;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
let flag2 = forceMaxHeight.enablePanDownToClose;
|
|
|
|
|
if (flag2 === undefined) {
|
|
|
|
|
flag2 = false;
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
importDefault = undefined;
|
2026-07-23 10:11:24 +00:00
|
|
|
let minimum;
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp2 = require("useWindowDimensions")({ ignoreKeyboard: true });
|
2026-07-29 08:29:29 +00:00
|
|
|
importDefault = tmp2;
|
2026-09-10 05:38:07 +00:00
|
|
|
let tmp3 = require("useKeyboardActionSheetHeight")();
|
2026-07-29 08:29:29 +00:00
|
|
|
minimum = tmp3.minimum;
|
2026-09-10 05:38:07 +00:00
|
|
|
const maximum = tmp3.maximum;
|
2026-07-23 10:11:24 +00:00
|
|
|
let items = [flag, maximum, minimum];
|
2026-09-10 05:38:07 +00:00
|
|
|
({ initialPosition, animateOnMount } = require("useInitialValue")(() => {
|
|
|
|
|
const obj = { initialPosition: styles.height - minimum, animateOnMount: false };
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp3 = obj;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!obj2.isAndroid()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp3 = obj;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (!AccessibilityStore.useReducedMotion) {
|
|
|
|
|
let obj3 = obj;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (0 === tmpResult.getSystemKeyboardHeight()) {
|
2026-09-12 13:45:10 +00:00
|
|
|
const keyboardTypePrevious = tmp(4504).getKeyboardTypePrevious();
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3 = obj;
|
|
|
|
|
if (keyboardTypePrevious === tmp(1609).KeyboardTypes.SYSTEM) {
|
|
|
|
|
obj3 = { animateOnMount: true };
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-12 13:45:10 +00:00
|
|
|
const tmpResult2 = tmp(4504);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp3 = obj3;
|
|
|
|
|
tmpResult = tmp(1877);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp3;
|
2026-07-20 16:05:17 +00:00
|
|
|
}));
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { animateOnMount, enablePanDownToClose: flag2, accessible: null, contentHeight: null, containerHeight: null, enableDynamicSizing: false, initialPosition: null, keyboardBehavior: "extend", android_keyboardInputMode: null, snapPoints: null };
|
2026-07-23 10:11:24 +00:00
|
|
|
const memo = maximum.useMemo(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (flag) {
|
|
|
|
|
const items = [maximum, maximum];
|
|
|
|
|
let items1 = items;
|
|
|
|
|
} else {
|
|
|
|
|
items1 = [minimum, maximum];
|
|
|
|
|
}
|
|
|
|
|
return items1;
|
|
|
|
|
}, items);
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp = minimum;
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp4 = require("useInitialValue")(() => {
|
|
|
|
|
const obj = { initialPosition: styles.height - minimum, animateOnMount: false };
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp3 = obj;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!obj2.isAndroid()) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp3 = obj;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (!AccessibilityStore.useReducedMotion) {
|
|
|
|
|
let obj3 = obj;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (0 === tmpResult.getSystemKeyboardHeight()) {
|
2026-09-12 13:45:10 +00:00
|
|
|
const keyboardTypePrevious = tmp(4504).getKeyboardTypePrevious();
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3 = obj;
|
|
|
|
|
if (keyboardTypePrevious === tmp(1609).KeyboardTypes.SYSTEM) {
|
|
|
|
|
obj3 = { animateOnMount: true };
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-12 13:45:10 +00:00
|
|
|
const tmpResult2 = tmp(4504);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp3 = obj3;
|
|
|
|
|
tmpResult = tmp(1877);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp3;
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp6 = flag;
|
|
|
|
|
const obj2 = flag(minimum[2]);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj.accessible = flag(minimum[2]).isAndroid() && undefined;
|
|
|
|
|
obj.contentHeight = maximum;
|
|
|
|
|
obj.containerHeight = tmp2.height;
|
|
|
|
|
obj.initialPosition = initialPosition;
|
2026-07-20 16:05:17 +00:00
|
|
|
let str;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp6(tmp[9]).IS_SYSTEM_KEYBOARD_EXTERNAL) {
|
2026-07-20 16:05:17 +00:00
|
|
|
str = "adjustResize";
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj.android_keyboardInputMode = str;
|
|
|
|
|
obj.snapPoints = memo;
|
2026-07-20 16:05:17 +00:00
|
|
|
return obj;
|
|
|
|
|
};
|