117 lines
5.3 KiB
React
117 lines
5.3 KiB
React
/* Metro module 5359; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 5360] */
|
|
function _fun47258(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5537:6, offset: 0x011bd5d9, size: 287 bytes, params: 8, frame: 19
|
|
var object2;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(102) /* metro dependency 102 */;
|
|
const env0_5 = importDefault(18) /* metro dependency 18 */;
|
|
object2 = {NONE: 0};
|
|
object2[0] = 'NONE';
|
|
object2.LIFT = 1;
|
|
object2[1] = 'LIFT';
|
|
object2.HIGHLIGHT = 2;
|
|
object2[2] = 'HIGHLIGHT';
|
|
const env0_6 = {code: 'function changeEventCalculator_Pnpm_hoverGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.x,changeY:current.y};}else{changePayload={changeX:current.x-previous.x,changeY:current.y-previous.y};}return{...current,...changePayload};}'};
|
|
const env0_7 = _fun47262();
|
|
const ContinousBaseGesture = (require(5360) /* metro dependency 5360 */).ContinousBaseGesture;
|
|
const value = _fun47264(ContinousBaseGesture);
|
|
exports.HoverEffect = object2;
|
|
exports.hoverGestureHandlerProps = ['hoverEffect'];
|
|
exports.HoverGesture = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_47259() { // fn#47259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5537:159, offset: 0x011bd6f8, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_47259_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun47262() { // fn#47262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5537:774, offset: 0x011bd756, size: 46 bytes, params: 1, frame: 2
|
|
const closure = function(a0, a1) {
|
|
var r3;
|
|
var object;
|
|
var property;
|
|
if (a1 === undefined) {
|
|
r3 = {changeX: a0.x, changeY: a0.y};
|
|
} else {
|
|
object = {};
|
|
property = a0.x;
|
|
object.changeX = property - a1.x;
|
|
property = a0.y;
|
|
object.changeY = property - a1.y;
|
|
r3 = object;
|
|
}
|
|
return global.Object.assign({}, a0, r3);
|
|
};
|
|
closure.__closure = {};
|
|
closure.__workletHash = 2074844346342;
|
|
closure.__initData = env0_6;
|
|
return closure;
|
|
}
|
|
|
|
function _fun47264(a0) { // fn#47264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5537:1010, offset: 0x011bd7eb, size: 91 bytes, params: 2, frame: 16
|
|
const closure = HoverGesture;
|
|
env0_5(closure, a0);
|
|
return env0_1(closure, [{key: 'effect', value: function(a0) {
|
|
this.config.hoverEffect = a0;
|
|
return this;
|
|
}}, {key: 'onChange', value: value_47267}]);
|
|
}
|
|
|
|
function HoverGesture() { // fn#47265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5537:1022, offset: 0x011bd846, size: 128 bytes, params: 1, frame: 19
|
|
let value = environment.__proto__;
|
|
env1_0(this, HoverGesture);
|
|
const value3 = env1_3(HoverGesture);
|
|
value = env1_2(this, _isNativeReflectConstruct_47259() ? global.Reflect.construct(value3, [],
|
|
env1_3(this).constructor) : value3.apply(this, undefined));
|
|
value.config = {};
|
|
value.handlerName = 'HoverGestureHandler';
|
|
return value;
|
|
}
|
|
|
|
function value_47267(a0) { // fn#47267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5537:1425, offset: 0x011bd8dc, size: 72 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const handlers = this.handlers;
|
|
const value = environment.__proto__;
|
|
handlers.changeEventCalculator = env1_7;
|
|
return value_47267_superPropGet(HoverGesture, 'onChange', this, 3)([a0]);
|
|
}
|
|
|
|
function value_47267_superPropGet(a0, a1, a2, a3) { // fn#47268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5537:1491, owner: value_47267._superPropGet, offset: 0x011bd924, size: 100 bytes, params: 5, frame: 18
|
|
let value = a0;
|
|
const env0_0 = a2;
|
|
const binding = env2_4;
|
|
value = env2_3(1 & 3 ? value.prototype : value);
|
|
value = binding(value, 'onChange', a2);
|
|
return 2 & 3 ? typeof value !== 'function' ? value : _fun47269 : value;
|
|
}
|
|
|