91 lines
4.6 KiB
React
91 lines
4.6 KiB
React
/* Metro module 5376; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 5360] */
|
|
function _fun47422(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5554:6, offset: 0x011c12f3, 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_rotationGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={rotationChange:current.rotation};}else{changePayload={rotationChange:current.rotation-previous.rotation};}return{...current,...changePayload};}'};
|
|
const env0_7 = _fun47426();
|
|
const ContinousBaseGesture = (require(5360) /* metro dependency 5360 */).ContinousBaseGesture;
|
|
exports.RotationGesture = _fun47428(ContinousBaseGesture);
|
|
}
|
|
|
|
function _isNativeReflectConstruct_47423() { // fn#47423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5554:159, offset: 0x011c13cc, 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_47423_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun47426() { // fn#47426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5554:670, offset: 0x011c142a, size: 46 bytes, params: 1, frame: 2
|
|
const closure = function(a0, a1) {
|
|
return global.Object.assign({}, a0,
|
|
a1 === undefined ? {rotationChange: a0.rotation} : {rotationChange: a0.rotation - a1.rotation});
|
|
};
|
|
closure.__closure = {};
|
|
closure.__workletHash = 11988645380499;
|
|
closure.__initData = env0_6;
|
|
return closure;
|
|
}
|
|
|
|
function _fun47428(a0) { // fn#47428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5554:913, offset: 0x011c14a5, size: 68 bytes, params: 2, frame: 15
|
|
const closure = RotationGesture;
|
|
env0_5(closure, a0);
|
|
return env0_1(closure, [{key: 'onChange', value: value_47430}]);
|
|
}
|
|
|
|
function RotationGesture() { // fn#47429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5554:925, offset: 0x011c14e9, size: 118 bytes, params: 1, frame: 19
|
|
let value = environment.__proto__;
|
|
env1_0(this, RotationGesture);
|
|
const value3 = env1_3(RotationGesture);
|
|
value = env1_2(this, _isNativeReflectConstruct_47423() ? global.Reflect.construct(value3, [],
|
|
env1_3(this).constructor) : value3.apply(this, undefined));
|
|
value.handlerName = 'RotationGestureHandler';
|
|
return value;
|
|
}
|
|
|
|
function value_47430(a0) { // fn#47430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5554:1255, offset: 0x011c155f, size: 72 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const handlers = this.handlers;
|
|
const value = environment.__proto__;
|
|
handlers.changeEventCalculator = env1_7;
|
|
return value_47430_superPropGet(RotationGesture, 'onChange', this, 3)([a0]);
|
|
}
|
|
|
|
function value_47430_superPropGet(a0, a1, a2, a3) { // fn#47431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5554:1321, owner: value_47430._superPropGet, offset: 0x011c15a7, 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 : _fun47432 : value;
|
|
}
|
|
|