Files
2026-07-28 01:06:53 +03:00

47 lines
2.8 KiB
TypeScript

/* Metro module 11574; source: modules/keyboard/native/openCustomKeyboard.android.tsx; dependencies: [1482, 5459, 4023, 11538, 2] */
import ChatInputNativeCommands from '../../chat_input/native/ChatInputNativeCommands.tsx'; /* Metro dependency 11538 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as KeyboardUIStoreNativeModule from './KeyboardUIStore.native.tsx'; /* Metro dependency 1482 */
import * as PortalKeyboardUIStoreNativeModule from './PortalKeyboardUIStore.native.tsx'; /* Metro dependency 4023 */
import * as RunAfterInteractionsUtilsModule from '../../../utils/native/RunAfterInteractionsUtils.tsx'; /* Metro dependency 5459 */
function _fun88631(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11760:6, offset: 0x01fec8e2, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/keyboard/native/openCustomKeyboard.android.tsx');
exports.default = openCustomKeyboard_88632;
function openCustomKeyboard_88632({channelId, chatInputRef, chatInputNativeRef, keyboardParams, secondaryTextFieldRef}) { // fn#88632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11760:190, offset: 0x01fec949, size: 121 bytes, params: 2, frame: 15
(KeyboardUIStoreNativeModule).setKeyboardType(keyboardParams);
(RunAfterInteractionsUtilsModule).runAfterInteractions(_fun88633);
function _fun88633() { // fn#88633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11760:367, offset: 0x01fec9c2, size: 159 bytes, params: 1, frame: 19
var r2;
var r3;
let current = chatInputRef.current;
current.blur();
const value2 = secondaryTextFieldRef == null;
const value3 = undefined;
if (value2) {
r2 = value2;
r3 = value3;
} else {
current = secondaryTextFieldRef.current;
r2 = current == null;
r3 = current;
}
if (!r2) {
r3.blur();
}
PortalKeyboardUIStoreNativeModule.openPortalKeyboard(keyboardParams.type, channelId, chatInputRef);
const defaultImport = ChatInputNativeCommands;
defaultImport.openCustomKeyboard(chatInputNativeRef.current);
return value3;
}
}
}
global.__d(_fun88631, 11574, [1482, 5459, 4023, 11538,
2]) /* metro module 11574, dependencies: [1482, 5459, 4023, 11538, 2] */;