/* Metro module 11774; source: modules/keyboard/native/PortalKeyboardPlaceholder.tsx; dependencies: [31, 27, 33, 4501, 477, 697, 1583, 1585, 7556, 1478, 5466, 7701, 4022, 1851, 2] */ import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */ import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */ import UseKeyboardType from './useKeyboardType.tsx'; /* Metro dependency 4022 */ import UseCustomKeyboardHeight from './useCustomKeyboardHeight.tsx'; /* Metro dependency 5466 */ import UseIsWindowLarge from '../../screen/native/useIsWindowLarge.tsx'; /* Metro dependency 7556 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */ import * as KeyboardTypesModule from './KeyboardTypes.tsx'; /* Metro dependency 1583 */ import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as ClientThemesOverridesModule from '../../client_themes/native/ClientThemesOverrides.tsx'; /* Metro dependency 7701 */ function _fun90159(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11960:6, offset: 0x0202e6d9, size: 221 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = ReactNativeModule; const env0_3 = value.View; const env0_4 = value.StyleSheet; value = ; const env0_6 = (CreateStylesModule).createStyles(_fun90162); (FileImportTrackerModule).fileFinishedImporting('modules/keyboard/native/PortalKeyboardPlaceholder.tsx'); exports.PORTAL_KEYBOARD_PLACEHOLDER_INSTANCE = value; function PortalKeyboardPlaceholderInner({keyboardType}) { // fn#90160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11960:770, offset: 0x0202e7b6, size: 187 bytes, params: 2, frame: 20 const value2 = (UseSafeAreaInsetsNative)(); const styles = useStyles(keyboardType, (UseWindowDimensionsNative)().width - value2.left - value2.right, (UseCustomKeyboardHeight)(), (UseIsWindowLarge)()); return ( ); } function PortalKeyboardPlaceholder() { // fn#90161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11960:986, offset: 0x0202e871, size: 183 bytes, params: 1, frame: 16 const value2 = (UseKeyboardType)(); const r2 = (importDefault(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */)() > 0 && (require(477) /* metro dependency 477: PlatformUtils */).isAndroid(); const KeyboardTypes = (KeyboardTypesModule).KeyboardTypes; const SYSTEM = KeyboardTypes.SYSTEM; return ( value2 !== SYSTEM ? ( r2 ? null : ( ) ) : ( (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() || r2 ? null : ( ) ) ); } function _fun90162(a0, a1, a2, a3) { // fn#90162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11960:210, offset: 0x0202e928, size: 484 bytes, params: 5, frame: 22 let value = a1; const value2 = a2; const object2 = {}; const value4 = undefined; copyDataProperties(object2, PlatformUtilsModule.isIOS() ? StyleSheet.absoluteFillObject : null, undefined); object2['borderTopWidth'] = StyleSheet.hairlineWidth; let BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE; object2['borderTopColor'] = BORDER_SUBTLE; BORDER_SUBTLE = a3 ? (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE : value4; object2['borderRightColor'] = BORDER_SUBTLE; object2['borderRightWidth'] = a3 ? StyleSheet.hairlineWidth : value4; BORDER_SUBTLE = a3 ? (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE : value4; object2['borderLeftColor'] = BORDER_SUBTLE; object2['borderLeftWidth'] = a3 ? StyleSheet.hairlineWidth : value4; const KeyboardTypes = (KeyboardTypesModule).KeyboardTypes; KeyboardTypes.APP_LAUNCHER; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object2['backgroundColor'] = BACKGROUND_BASE_LOW; object2['width'] = PlatformUtilsModule.isIOS() ? value : a0 === KeyboardTypes.SYSTEM ? value4 : value; value = PlatformUtilsModule; object2['height'] = value.isIOS() ? value2 : a0 === KeyboardTypes.SYSTEM ? value4 : value2; return {container: object2}; } } global.__d(_fun90159, 11774, [31, 27, 33, 4501, 477, 697, 1583, 1585, 7556, 1478, 5466, 7701, 4022, 1851, 2]) /* metro module 11774, dependencies: [31, 27, 33, 4501, 477, 697, 1583, 1585, 7556, 1478, 5466, 7701, 4022, 1851, 2] */;