69 lines
3.4 KiB
React
69 lines
3.4 KiB
React
/* Metro module 1802; source: unknown; dependencies: [5, 1600] */
|
|
function _fun19754(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1929:6, offset: 0x00eb318d, size: 361 bytes, params: 8, frame: 20
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
|
object2 = {'height': 0, 'duration': 0, 'timestamp': null, 'target': -1, 'type': 'default', 'appearance': 'light'};
|
|
const Date = global.Date;
|
|
let date = new Date();
|
|
object2.timestamp = date.getTime();
|
|
const KeyboardEvents = (require(1600) /* metro dependency 1600 */).KeyboardEvents;
|
|
KeyboardEvents.addListener('keyboardDidHide', function(a0) {
|
|
env0_3 = true;
|
|
env0_4 = a0;
|
|
});
|
|
KeyboardEvents.addListener('keyboardWillShow', function(a0) {
|
|
env0_3 = false;
|
|
env0_4 = a0;
|
|
});
|
|
date = _fun19757();
|
|
const KeyboardControllerNative = (require(1600) /* metro dependency 1600 */).KeyboardControllerNative;
|
|
exports.KeyboardController = {setDefaultMode: KeyboardControllerNative.setDefaultMode,
|
|
setInputMode: KeyboardControllerNative.setInputMode, setFocusTo: KeyboardControllerNative.setFocusTo,
|
|
preload: KeyboardControllerNative.preload, dismiss: date, isVisible: isVisible, state: state};
|
|
}
|
|
|
|
function _fun19757() { // fn#19757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1929:375, offset: 0x00eb331e, size: 32 bytes, params: 1, frame: 12
|
|
const env0_0 = env0_2(_fun19759);
|
|
return dismiss_19762;
|
|
}
|
|
|
|
function* _fun19759(a0) { // fn#19759, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1929:395, offset: 0x00eb3347, size: 123 bytes, params: 2, frame: 16
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
const keepFocus = a0 == null ? value : a0.keepFocus;
|
|
const env0_0 = keepFocus != null && keepFocus;
|
|
const animated = a0 == null ? value : a0.animated;
|
|
const env0_1 = animated == null || animated;
|
|
const Promise = global.Promise;
|
|
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun19760);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function _fun19760(a0) { // fn#19760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1929:519, offset: 0x00eb33c2, size: 124 bytes, params: 2, frame: 19
|
|
var binding;
|
|
var binding2;
|
|
var KeyboardControllerNative;
|
|
if (env3_3) {
|
|
a0();
|
|
} else {
|
|
binding = env3_0;
|
|
binding2 = env3_1;
|
|
var env0_1 = binding(binding2[1]).KeyboardEvents.addListener('keyboardDidHide', _fun19761);
|
|
KeyboardControllerNative = binding(binding2[1]).KeyboardControllerNative;
|
|
binding = a0;
|
|
KeyboardControllerNative.dismiss(binding, env0_1);
|
|
}
|
|
}
|
|
|
|
function _fun19761() { // fn#19761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1929:605, offset: 0x00eb343e, size: 30 bytes, params: 1, frame: 11
|
|
env0_0(undefined);
|
|
env0_1.remove();
|
|
}
|
|
|