101 lines
3.6 KiB
TypeScript
101 lines
3.6 KiB
TypeScript
// Module ID: 12048
|
|
// Function ID: 12049
|
|
// Name: PortalKeyboardPlaceholderInner
|
|
// Dependencies: [19, 17, 21, 4478, 1234, 709, 1625, 1627, 7730, 1492, 5606, 7627, 4342, 1893, 2]
|
|
|
|
// Module 12048 (PortalKeyboardPlaceholderInner)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 709 */;
|
|
import set from "set" /* 1234 */;
|
|
import useWindowDimensionsDefault from "useWindowDimensions" /* 1492 */;
|
|
import KeyboardTypes from "KeyboardTypes" /* 1625 */;
|
|
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1627 */;
|
|
import useSystemKeyboardHeightDefault from "useSystemKeyboardHeight" /* 1893 */;
|
|
import useKeyboardTypeDefault from "useKeyboardType" /* 4342 */;
|
|
import useCustomKeyboardHeightDefault from "useCustomKeyboardHeight" /* 5606 */;
|
|
import useGradientBottom from "useGradientBottom" /* 7627 */;
|
|
import useIsWindowLargeDefault from "useIsWindowLarge" /* 7730 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4478 */;
|
|
|
|
require = arg1;
|
|
function PortalKeyboardPlaceholderInner(keyboardType) {
|
|
const rect = useSafeAreaInsetsDefault();
|
|
const tmp = useIsWindowLargeDefault();
|
|
const tmp2 = useWindowDimensionsDefault();
|
|
let obj = useGradientBottom;
|
|
obj = { style: null };
|
|
const items = [callback(keyboardType.keyboardType, useWindowDimensionsDefault().width - rect.left - rect.right, useCustomKeyboardHeightDefault(), tmp).container, obj.useGradientBottom()];
|
|
obj[0] = items;
|
|
return <closure_3 style={null} />;
|
|
}
|
|
noopAll;
|
|
({ View: c3, StyleSheet: c4 } = get_ActivityIndicator);
|
|
let closure_6 = createCacheKey.createStyles((arg0, arg1, arg2, arg3) => {
|
|
let container = set;
|
|
let absoluteFillObject = null;
|
|
if (container.isIOS()) {
|
|
absoluteFillObject = closure_4.absoluteFillObject;
|
|
}
|
|
container = {};
|
|
const merged = Object.assign(absoluteFillObject);
|
|
container.borderTopWidth = closure_4.hairlineWidth;
|
|
container.borderTopColor = ThemesDefault.colors.BORDER_SUBTLE;
|
|
let BORDER_SUBTLE;
|
|
if (arg3) {
|
|
BORDER_SUBTLE = tmp7(709).colors.BORDER_SUBTLE;
|
|
}
|
|
container.borderRightColor = BORDER_SUBTLE;
|
|
let hairlineWidth;
|
|
if (arg3) {
|
|
hairlineWidth = tmp6.hairlineWidth;
|
|
}
|
|
container.borderRightWidth = hairlineWidth;
|
|
let BORDER_SUBTLE1;
|
|
if (arg3) {
|
|
BORDER_SUBTLE1 = tmp7(709).colors.BORDER_SUBTLE;
|
|
}
|
|
container.borderLeftColor = BORDER_SUBTLE1;
|
|
let hairlineWidth1;
|
|
if (arg3) {
|
|
hairlineWidth1 = tmp6.hairlineWidth;
|
|
}
|
|
container.borderLeftWidth = hairlineWidth1;
|
|
const APP_LAUNCHER = tmp(1625).KeyboardTypes.APP_LAUNCHER;
|
|
container.backgroundColor = ThemesDefault.colors.BACKGROUND_BASE_LOW;
|
|
let tmpResult = tmp(1234);
|
|
if (tmpResult.isIOS()) {
|
|
const tmp12 = arg1;
|
|
}
|
|
container.width = tmp12;
|
|
tmpResult = tmp(1234);
|
|
if (tmpResult.isIOS()) {
|
|
const tmp13 = arg2;
|
|
}
|
|
container.height = tmp13;
|
|
return { container };
|
|
});
|
|
const jsxResult = jsx(function PortalKeyboardPlaceholder() {
|
|
const tmp2 = useKeyboardTypeDefault();
|
|
let isAndroidResult = useSystemKeyboardHeightDefault() > 0;
|
|
if (isAndroidResult) {
|
|
let obj = set;
|
|
isAndroidResult = obj.isAndroid();
|
|
}
|
|
if (tmp2 !== KeyboardTypes.KeyboardTypes.SYSTEM) {
|
|
let tmp6 = null;
|
|
if (!isAndroidResult) {
|
|
obj = { keyboardType: null };
|
|
obj[0] = tmp2;
|
|
tmp6 = <PortalKeyboardPlaceholderInner keyboardType={null} />;
|
|
}
|
|
} else {
|
|
tmp6 = null;
|
|
const tmp5Result = set;
|
|
}
|
|
return tmp6;
|
|
}, {});
|
|
const result = require("set").fileFinishedImporting("modules/keyboard/native/PortalKeyboardPlaceholder.tsx");
|
|
|
|
export const PORTAL_KEYBOARD_PLACEHOLDER_INSTANCE = jsxResult;
|