Files
discord-decomp/_bundle/changeEventCalculator_5333.js
T
2026-11-01 12:12:55 +02:00

55 lines
2.0 KiB
JavaScript

// Metro module 5333 (f5334).
import _classCallCheck from "./_classCallCheck";
import _createClass from "./_createClass";
import _possibleConstructorReturn from "./_possibleConstructorReturn";
import _getPrototypeOf from "./_getPrototypeOf";
import _get from "./_get";
import _inherits from "./_inherits";
import { ContinousBaseGesture } from "./Gesture";
let changeEventCalculator;
let ManualGesture;
let env3239 = {};
env3239[4] = function _isNativeReflectConstruct() {
let c14807_0;
try {
c14807_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
} catch ($e) {}
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
return !!c14807_0;
};
env3239[4] = _isNativeReflectConstruct2;
return _isNativeReflectConstruct2();
};
const changeEventCalculator2 = function changeEventCalculator(a0, a1) {
return a0;
};
changeEventCalculator2.__closure = {};
changeEventCalculator2.__workletHash = 12945462865583;
changeEventCalculator2.__initData = {
code: "function changeEventCalculator_Pnpm_manualGestureTs1(current,_previous){return current;}"
};
changeEventCalculator = changeEventCalculator2;
ManualGesture = function ManualGesture() {
_classCallCheck(this, ManualGesture);
const r8 = _getPrototypeOf(ManualGesture);
const r20 = _possibleConstructorReturn(this, (0, env3239[4])() ? Reflect.construct(r8, [], _getPrototypeOf(this).constructor) : r8.apply(this, void 0));
r20.handlerName = "ManualGestureHandler";
return r20;
};
_inherits(ManualGesture, ContinousBaseGesture);
exports.ManualGesture = _createClass(ManualGesture, [{
key: "onChange",
value: function onChange(a0) {
this.handlers.changeEventCalculator = changeEventCalculator;
const _this = this;
let r13 = _get(_getPrototypeOf(ManualGesture.prototype), "onChange", this);
let c25426_1 = r13;
if (typeof r13 === "function") {
r13 = function(a0) {
return c25426_1.apply(_this, a0);
};
}
return r13([a0]);
}
}]);