Files
discord-decomp/sources/by-id/module-00334.jsx
T
2026-07-27 16:20:00 +03:00

65 lines
3.2 KiB
React

/* Metro module 334; source: unknown; dependencies: [6, 7, 209, 294, 333] */
function _fun4955(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:375:6, offset: 0x00cd1a39, size: 121 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
let value = _fun4956();
value = new value();
exports.default = value;
}
function _fun4956() { // fn#4956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:375:122, offset: 0x00cd1ab2, size: 170 bytes, params: 1, frame: 15
return env0_3(KeyboardImpl, [{key: 'addListener', value: function(a0, a1, a2) {
return this._emitter.addListener(a0, a1);
}}, {key: 'removeAllListeners', value: function(a0) {
this._emitter.removeAllListeners(a0);
}}, {key: 'dismiss', value: function() {
importDefault(dependencyMap[3])();
}}, {key: 'isVisible', value: function() {
return !!this._currentlyShowing;
}}, {key: 'metrics', value: function() {
return this._currentlyShowing?.endCoordinates;
}}, {key: 'scheduleLayoutAnimation', value: value_4965}]);
}
function KeyboardImpl() { // fn#4957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:375:143, offset: 0x00cd1b5c, size: 127 bytes, params: 1, frame: 15
var environment;
let value = environment.__proto__;
env1_2(this, KeyboardImpl);
value = importDefault(209) /* metro dependency 209 */;
value = new value(null);
this._emitter = value;
this.addListener('keyboardDidShow', _fun4958);
this.addListener('keyboardDidHide', _fun4959);
}
function value_4965({duration, easing}) { // fn#4965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:375:856, offset: 0x00cd1c86, size: 134 bytes, params: 2, frame: 18
var r4;
var defaultImport;
var configureNext;
var object3;
var object4;
if (duration != null && duration !== 0) {
value = environment.__proto__;
defaultImport = importDefault(333) /* metro dependency 333 */;
configureNext = defaultImport.configureNext;
object3 = {duration: duration};
object4 = {duration: duration};
r4 = easing != null && (importDefault(333) /* metro dependency 333 */).Types[easing];
r4 = !r4 ? 'keyboard' : r4;
object4.type = r4;
object3.update = object4;
Reflect.apply(configureNext, defaultImport, [object3]);
}
}
function _fun4958(a0) { // fn#4958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:375:268, offset: 0x00cd1bdb, size: 20 bytes, params: 2, frame: 2
env0_0._currentlyShowing = a0;
}
function _fun4959(a0) { // fn#4959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:375:341, offset: 0x00cd1bef, size: 19 bytes, params: 2, frame: 2
env0_0._currentlyShowing = null;
}