Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
97 lines
3.5 KiB
TypeScript
97 lines
3.5 KiB
TypeScript
// Module ID: 12347
|
|
// Function ID: 12348
|
|
// Name: PortalKeyboardPlaceholder
|
|
// Dependencies: [19, 17, 21, 4607, 1115, 576, 1609, 1611, 7017, 1477, 5631, 7946, 4474, 1877, 2]
|
|
|
|
// Module 12347 (PortalKeyboardPlaceholder)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import PlatformUtils from "PlatformUtils" /* 1115 */;
|
|
import useWindowDimensionsDefault from "useWindowDimensions" /* 1477 */;
|
|
import KeyboardTypes from "KeyboardTypes" /* 1609 */;
|
|
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1611 */;
|
|
import useSystemKeyboardHeightDefault from "useSystemKeyboardHeight" /* 1877 */;
|
|
import useKeyboardTypeDefault from "useKeyboardType" /* 4474 */;
|
|
import useCustomKeyboardHeightDefault from "useCustomKeyboardHeight" /* 5631 */;
|
|
import useIsWindowLargeDefault from "useIsWindowLarge" /* 7017 */;
|
|
import ClientThemesOverrides from "ClientThemesOverrides" /* 7946 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
function PortalKeyboardPlaceholderInner(keyboardType) {
|
|
const rect = useSafeAreaInsetsDefault();
|
|
const tmp = useIsWindowLargeDefault();
|
|
const tmp2 = useWindowDimensionsDefault();
|
|
const tmp3 = closure_6(keyboardType.keyboardType, useWindowDimensionsDefault().width - rect.left - rect.right, useCustomKeyboardHeightDefault(), tmp);
|
|
const obj2 = { style: null };
|
|
const items = [tmp3.container, ClientThemesOverrides.useGradientBottom()];
|
|
obj2.style = items;
|
|
return <React3 style={null} />;
|
|
}
|
|
get_ActivityIndicator = fn(17);
|
|
({ View: c3, StyleSheet: closure_4 } = get_ActivityIndicator);
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4607);
|
|
let closure_6 = createStyles.createStyles((arg0, arg1, arg2, arg3) => {
|
|
let absoluteFillObject = null;
|
|
if (obj.isIOS()) {
|
|
absoluteFillObject = React4.absoluteFillObject;
|
|
}
|
|
const obj2 = {};
|
|
const merged = Object.assign(absoluteFillObject);
|
|
obj2.borderTopWidth = React4.hairlineWidth;
|
|
obj2.borderTopColor = nativeDefault.colors.BORDER_SUBTLE;
|
|
let BORDER_SUBTLE;
|
|
if (arg3) {
|
|
BORDER_SUBTLE = tmp7(576).colors.BORDER_SUBTLE;
|
|
}
|
|
obj2.borderRightColor = BORDER_SUBTLE;
|
|
let hairlineWidth;
|
|
if (arg3) {
|
|
hairlineWidth = tmp6.hairlineWidth;
|
|
}
|
|
obj2.borderRightWidth = hairlineWidth;
|
|
let BORDER_SUBTLE1;
|
|
if (arg3) {
|
|
BORDER_SUBTLE1 = tmp7(576).colors.BORDER_SUBTLE;
|
|
}
|
|
obj2.borderLeftColor = BORDER_SUBTLE1;
|
|
let hairlineWidth1;
|
|
if (arg3) {
|
|
hairlineWidth1 = tmp6.hairlineWidth;
|
|
}
|
|
obj2.borderLeftWidth = hairlineWidth1;
|
|
const APP_LAUNCHER = tmp(1609).KeyboardTypes.APP_LAUNCHER;
|
|
obj2.backgroundColor = nativeDefault.colors.BACKGROUND_BASE_LOW;
|
|
obj = PlatformUtils;
|
|
if (tmpResult.isIOS()) {
|
|
const tmp12 = arg1;
|
|
}
|
|
obj2.width = tmp12;
|
|
tmpResult = PlatformUtils;
|
|
if (tmpResult2.isIOS()) {
|
|
const tmp13 = arg2;
|
|
}
|
|
obj2.height = tmp13;
|
|
return { container: obj2 };
|
|
});
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/keyboard/native/PortalKeyboardPlaceholder.tsx");
|
|
|
|
export const PORTAL_KEYBOARD_PLACEHOLDER_INSTANCE = jsx(function PortalKeyboardPlaceholder() {
|
|
const tmp2 = useKeyboardTypeDefault();
|
|
let isAndroidResult = useSystemKeyboardHeightDefault() > 0;
|
|
if (isAndroidResult) {
|
|
isAndroidResult = PlatformUtils.isAndroid();
|
|
}
|
|
if (tmp2 !== KeyboardTypes.KeyboardTypes.SYSTEM) {
|
|
let tmp6 = null;
|
|
if (!isAndroidResult) {
|
|
const obj2 = { keyboardType: tmp2 };
|
|
tmp6 = <PortalKeyboardPlaceholderInner keyboardType={tmp2} />;
|
|
}
|
|
} else {
|
|
tmp6 = null;
|
|
const tmp5Result = PlatformUtils;
|
|
}
|
|
return tmp6;
|
|
}, {});
|