Files
discord-decomp/sources/by-id/module-00334.js
T
2026-07-28 01:06:53 +03:00

67 lines
3.7 KiB
JavaScript

/* Metro module 334; source: unknown; dependencies: [6, 7, 209, 294, 333] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
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});
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 CreateClass(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 _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;
}
}
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 object;
var object2;
if (duration != null && duration !== 0) {
value = environment.__proto__;
defaultImport = importDefault(333) /* metro dependency 333 */;
configureNext = defaultImport.configureNext;
object = {duration: duration};
object2 = {duration: duration};
r4 = easing != null && (importDefault(333) /* metro dependency 333 */).Types[easing];
r4 = !r4 ? 'keyboard' : r4;
object2.type = r4;
object.update = object2;
Reflect.apply(configureNext, defaultImport, [object]);
}
}
}
}
global.__d(_fun4955, 334, [6, 7, 209, 294, 333]) /* metro module 334, dependencies: [6, 7, 209, 294, 333] */;