78 lines
4.0 KiB
JavaScript
78 lines
4.0 KiB
JavaScript
/* Metro module 143; source: unknown; dependencies: [117, 144] */
|
|
import * as Module00117Module from './module-00117.js'; /* Metro dependency 117 */
|
|
|
|
function _fun2328(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:6, offset: 0x00c7db3d, size: 217 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const focusInput2 = focusInput;
|
|
const blurInput2 = blurInput;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Set = global.Set;
|
|
const set = new Set();
|
|
exports.default = {currentlyFocusedInput: currentlyFocusedInput, focusInput: focusInput2, blurInput: blurInput2,
|
|
currentlyFocusedField: currentlyFocusedField, focusField: function(a0) {
|
|
}, blurField: function(a0) {
|
|
}, focusTextInput: focusTextInput, blurTextInput: blurTextInput, registerInput: registerInput,
|
|
unregisterInput: unregisterInput, isTextInput: isTextInput};
|
|
function focusInput(a0) { // fn#2329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:113, offset: 0x00c7dc16, size: 34 bytes, params: 2, frame: 4
|
|
if (env0_2 !== a0 && a0 != null) {
|
|
env0_2 = a0;
|
|
}
|
|
}
|
|
|
|
function blurInput(a0) { // fn#2330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:158, offset: 0x00c7dc38, size: 36 bytes, params: 2, frame: 4
|
|
if (env0_2 === a0 && a0 != null) {
|
|
}
|
|
}
|
|
|
|
function currentlyFocusedInput() { // fn#2331, offset: 0x00c36b39, size: 9 bytes, params: 1, frame: 1
|
|
return env0_2;
|
|
}
|
|
|
|
function currentlyFocusedField() { // fn#2332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:341, offset: 0x00c7dc5c, size: 41 bytes, params: 1, frame: 12
|
|
return (Module00117Module).findNodeHandle(env0_2);
|
|
}
|
|
|
|
function focusTextInput(a0) { // fn#2335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:493, offset: 0x00c7dc85, size: 114 bytes, params: 2, frame: 14
|
|
if (typeof a0 !== 'number') {
|
|
if (a0 == null) {
|
|
return undefined;
|
|
}
|
|
if (env0_2 === a0) {
|
|
return undefined;
|
|
}
|
|
if (a0.currentProps?.editable !== false) {
|
|
focusInput(a0);
|
|
(require(144) /* metro dependency 144 */).Commands.focus(a0);
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
function blurTextInput(a0) { // fn#2336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:684, offset: 0x00c7dcf7, size: 95 bytes, params: 2, frame: 13
|
|
if (typeof a0 !== 'number' && env0_2 === a0 && a0 != null) {
|
|
blurInput(a0);
|
|
(require(144) /* metro dependency 144 */).Commands.blur(a0);
|
|
}
|
|
}
|
|
|
|
function registerInput(a0) { // fn#2337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:801, offset: 0x00c7dd56, size: 35 bytes, params: 2, frame: 11
|
|
if (typeof a0 !== 'number') {
|
|
env0_3.add(a0);
|
|
}
|
|
}
|
|
|
|
function unregisterInput(a0) { // fn#2338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:873, offset: 0x00c7dd79, size: 35 bytes, params: 2, frame: 11
|
|
if (typeof a0 !== 'number') {
|
|
env0_3.delete(a0);
|
|
}
|
|
}
|
|
|
|
function isTextInput(a0) { // fn#2339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:168:946, offset: 0x00c7dd9c, size: 36 bytes, params: 2, frame: 12
|
|
return typeof a0 !== 'number' && env0_3.has(a0);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun2328, 143, [117, 144]) /* metro module 143, dependencies: [117, 144] */;
|