decord/source/334_KeyboardImpl.js
2026-07-23 10:11:24 +00:00

98 lines
2.4 KiB
JavaScript

// Module ID: 334
// Function ID: 4958
// Name: KeyboardImpl
// Dependencies: [6, 7, 209, 294, 333]
// Module 334 (KeyboardImpl)
import _classCallCheck from "_classCallCheck";
import _defineProperties from "_defineProperties";
let tmp2 = (() => {
class KeyboardImpl {
constructor() {
self = this;
tmp = outer1_2(this, self);
tmp2 = KeyboardImpl(outer1_1[2]);
tmp2 = new tmp2(null);
this._emitter = tmp2;
addListenerResult = this.addListener("keyboardDidShow", (_currentlyShowing) => {
self._currentlyShowing = _currentlyShowing;
});
addListenerResult1 = this.addListener("keyboardDidHide", (arg0) => {
self._currentlyShowing = null;
});
return;
}
}
let obj = {
key: "addListener",
value: function addListener(arg0, arg1, arg2) {
const _emitter = this._emitter;
return _emitter.addListener(arg0, arg1);
}
};
const items = [obj, , , , , ];
obj = {
key: "removeAllListeners",
value: function removeAllListeners(arg0) {
const _emitter = this._emitter;
_emitter.removeAllListeners(arg0);
}
};
items[1] = obj;
obj = {
key: "dismiss",
value: function dismiss() {
KeyboardImpl(outer1_1[3])();
}
};
items[2] = obj;
items[3] = {
key: "isVisible",
value: function isVisible() {
return this._currentlyShowing;
}
};
items[4] = {
key: "metrics",
value: function metrics() {
const _currentlyShowing = this._currentlyShowing;
let endCoordinates;
if (null != _currentlyShowing) {
endCoordinates = _currentlyShowing.endCoordinates;
}
return endCoordinates;
}
};
items[5] = {
key: "scheduleLayoutAnimation",
value: function scheduleLayoutAnimation(arg0) {
let duration;
let easing;
({ duration, easing } = arg0);
let tmp = null != duration;
if (tmp) {
tmp = 0 !== duration;
}
if (tmp) {
let obj = KeyboardImpl(outer1_1[4]);
obj = { duration };
obj = { duration };
let str = null != easing;
if (str) {
str = KeyboardImpl(outer1_1[4]).Types[easing];
}
if (!str) {
str = "keyboard";
}
obj.type = str;
obj.update = obj;
obj.configureNext(obj);
}
}
};
return callback(KeyboardImpl, items);
})();
tmp2 = new tmp2();
export default tmp2;