/* Metro module 5374; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 5360] */ function _fun47387(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5552:6, offset: 0x011c0932, size: 217 bytes, params: 8, frame: 18 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 */; object = {code: 'function changeEventCalculator_Pnpm_panGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.translationX,changeY:current.translationY};}else{changePayload={changeX:current.translationX-previous.translationX,changeY:current.translationY-previous.translationY};}return{...current,...changePayload};}'}; const env0_7 = _fun47391(); const ContinousBaseGesture = (require(5360) /* metro dependency 5360 */).ContinousBaseGesture; exports.PanGesture = _fun47393(ContinousBaseGesture); } function _isNativeReflectConstruct_47388() { // fn#47388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5552:159, offset: 0x011c0a0b, 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_47388_isNativeReflectConstruct = function() { return !!result; })(); } function _fun47391() { // fn#47391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5552:743, offset: 0x011c0a69, size: 46 bytes, params: 1, frame: 2 const closure = function(a0, a1) { var r3; var object; var property; if (a1 === undefined) { r3 = {changeX: a0.translationX, changeY: a0.translationY}; } else { object = {}; property = a0.translationX; object.changeX = property - a1.translationX; property = a0.translationY; object.changeY = property - a1.translationY; r3 = object; } return global.Object.assign({}, a0, r3); }; closure.__closure = {}; closure.__workletHash = 1947784830943; closure.__initData = env0_6; return closure; } function _fun47393(a0) { // fn#47393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5552:1045, offset: 0x011c0b04, size: 377 bytes, params: 2, frame: 16 const closure = PanGesture; env0_5(closure, a0); return env0_1(closure, [{key: 'activeOffsetY', value: function(a0) { var property = global.Array; if (property.isArray(a0)) { property = this.config; property.activeOffsetYStart = a0[0]; property = this.config; property.activeOffsetYEnd = a0[1]; } else if (a0 < 0) { this.config.activeOffsetYStart = a0; } else { this.config.activeOffsetYEnd = a0; } return this; }}, {key: 'activeOffsetX', value: function(a0) { var property = global.Array; if (property.isArray(a0)) { property = this.config; property.activeOffsetXStart = a0[0]; property = this.config; property.activeOffsetXEnd = a0[1]; } else if (a0 < 0) { this.config.activeOffsetXStart = a0; } else { this.config.activeOffsetXEnd = a0; } return this; }}, {key: 'failOffsetY', value: function(a0) { var property = global.Array; if (property.isArray(a0)) { property = this.config; property.failOffsetYStart = a0[0]; property = this.config; property.failOffsetYEnd = a0[1]; } else if (a0 < 0) { this.config.failOffsetYStart = a0; } else { this.config.failOffsetYEnd = a0; } return this; }}, {key: 'failOffsetX', value: function(a0) { var property = global.Array; if (property.isArray(a0)) { property = this.config; property.failOffsetXStart = a0[0]; property = this.config; property.failOffsetXEnd = a0[1]; } else if (a0 < 0) { this.config.failOffsetXStart = a0; } else { this.config.failOffsetXEnd = a0; } return this; }}, {key: 'minPointers', value: function(a0) { this.config.minPointers = a0; return this; }}, {key: 'maxPointers', value: function(a0) { this.config.maxPointers = a0; return this; }}, {key: 'minDistance', value: function(a0) { this.config.minDist = a0; return this; }}, {key: 'minVelocity', value: function(a0) { this.config.minVelocity = a0; return this; }}, {key: 'minVelocityX', value: function(a0) { this.config.minVelocityX = a0; return this; }}, {key: 'minVelocityY', value: function(a0) { this.config.minVelocityY = a0; return this; }}, {key: 'averageTouches', value: function(a0) { this.config.avgTouches = a0; return this; }}, {key: 'enableTrackpadTwoFingerGesture', value: function(a0) { this.config.enableTrackpadTwoFingerGesture = a0; return this; }}, {key: 'activateAfterLongPress', value: function(a0) { this.config.activateAfterLongPress = a0; return this; }}, {key: 'onChange', value: value_47408}]); } function PanGesture() { // fn#47394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5552:1057, offset: 0x011c0c7d, size: 126 bytes, params: 1, frame: 19 let value = environment.__proto__; env1_0(this, PanGesture); const value3 = env1_3(PanGesture); value = env1_2(this, _isNativeReflectConstruct_47388() ? global.Reflect.construct(value3, [], env1_3(this).constructor) : value3.apply(this, undefined)); value.config = {}; value.handlerName = 'PanGestureHandler'; return value; } function value_47408(a0) { // fn#47408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5552:3139, offset: 0x011c0f2f, size: 72 bytes, params: 2, frame: 17 var environment; const handlers = this.handlers; const value = environment.__proto__; handlers.changeEventCalculator = env1_7; return value_47408_superPropGet(PanGesture, 'onChange', this, 3)([a0]); } function value_47408_superPropGet(a0, a1, a2, a3) { // fn#47409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5552:3205, owner: value_47408._superPropGet, offset: 0x011c0f77, 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 : _fun47410 : value; }