174 lines
8.3 KiB
React
174 lines
8.3 KiB
React
/* Metro module 1742; source: unknown; dependencies: [6, 7, 15, 17, 18, 1682, 1662, 1680] */
|
|
function _fun19277(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1869:6, offset: 0x00ea4fd8, size: 206 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
|
object = {code: 'function pnpm_JumpingTransitionTs1(values){const{delayFunction,delay,withTiming,config,withSequence,halfDuration,Easing,callback}=this.__closure;const d=Math.max(Math.abs(values.targetOriginX-values.currentOriginX),Math.abs(values.targetOriginY-values.currentOriginY));return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,withTiming(values.targetOriginX,config)),originY:delayFunction(delay,withSequence(withTiming(Math.min(values.targetOriginY,values.currentOriginY)-d,{duration:halfDuration,easing:Easing.out(Easing.exp)}),withTiming(values.targetOriginY,{...config,duration:halfDuration,easing:Easing.bounce}))),width:delayFunction(delay,withTiming(values.targetWidth,config)),height:delayFunction(delay,withTiming(values.targetHeight,config))},callback:callback};}'};
|
|
const BaseAnimationBuilder = (require(1680) /* metro dependency 1680 */).BaseAnimationBuilder;
|
|
const value = _fun19281(BaseAnimationBuilder);
|
|
value.presetName = 'JumpingTransition';
|
|
exports.JumpingTransition = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_19278() { // fn#19278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1869:154, offset: 0x00ea50a6, 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_19278_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun19281(a0) { // fn#19281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1869:1283, offset: 0x00ea5104, size: 71 bytes, params: 2, frame: 16
|
|
const closure = JumpingTransition_19282;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, null, [{key: 'createInstance', value: value_19285}]);
|
|
}
|
|
|
|
function JumpingTransition_19282() { // fn#19282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1869:1295, offset: 0x00ea514b, size: 204 bytes, params: 1, frame: 21
|
|
var environment;
|
|
var r2;
|
|
var r6;
|
|
var r0;
|
|
var value7;
|
|
var Reflect;
|
|
var construct;
|
|
let value = environment.__proto__;
|
|
let binding = env1_2;
|
|
binding(this, JumpingTransition_19282);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value6 = 0;
|
|
if (value6 < length) {
|
|
r2 = value6;
|
|
reducibleLoop1: while (true) {
|
|
array[r2] = arguments[r2];
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value7 < length) {
|
|
r2 = value7;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const value8 = [].concat(array);
|
|
const value9 = env1_5(JumpingTransition_19282);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_19278()) {
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
reducibleJoin6: while (true) {
|
|
if (value8) {
|
|
r6 = value8;
|
|
break reducibleJoin6;
|
|
}
|
|
r6 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
r0 = Reflect.apply(construct, Reflect, [value9, r6, env1_5(this).constructor]);
|
|
} else {
|
|
r0 = value9.apply(this, value8);
|
|
}
|
|
value = binding(this, r0);
|
|
value.build = build;
|
|
return value;
|
|
}
|
|
|
|
function JumpingTransition_19282Build() { // fn#19283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1869:1613, owner: JumpingTransition_19282.build, offset: 0x00ea5217, size: 247 bytes, params: 1, frame: 19
|
|
const delayFunction = env0_0.getDelayFunction();
|
|
var env0_0 = delayFunction;
|
|
const callbackV = env0_0.callbackV;
|
|
const delay = env0_0.getDelay();
|
|
const r2 = env0_0.durationV ?? 300;
|
|
const value = r2 / 2;
|
|
const object3 = {duration: r2};
|
|
const closure = pnpm_JumpingTransitionTs1;
|
|
const object4 = {delayFunction: delayFunction, delay: delay};
|
|
object4.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
|
|
object4.config = object3;
|
|
object4.withSequence = (require(1682) /* metro dependency 1682 */).withSequence;
|
|
object4.halfDuration = value;
|
|
const Easing = (require(1662) /* metro dependency 1662 */).Easing;
|
|
object4.Easing = Easing;
|
|
object4.callback = callbackV;
|
|
closure.__closure = object4;
|
|
closure.__workletHash = 11549153259849;
|
|
closure.__initData = env2_7;
|
|
return closure;
|
|
}
|
|
|
|
function pnpm_JumpingTransitionTs1(a0) { // fn#19284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1869:1744, owner: JumpingTransition_19282.build.pnpm_JumpingTransitionTs1, offset: 0x00ea530e, size: 541 bytes, params: 2, frame: 32
|
|
let Math = global.Math;
|
|
const max = Math.max;
|
|
const Math2 = global.Math;
|
|
let abs = Math2.abs;
|
|
let value = Reflect.apply(abs, Math2, [a0.targetOriginX - a0.currentOriginX]);
|
|
const Math3 = global.Math;
|
|
abs = Math3.abs;
|
|
let targetOriginY = a0.targetOriginY;
|
|
value = Reflect.apply(max, Math, [value, Reflect.apply(abs, Math3, [targetOriginY - a0.currentOriginY])]);
|
|
const object2 = {};
|
|
object2.initialValues = {originX: a0.currentOriginX, originY: a0.currentOriginY, width: a0.currentWidth,
|
|
height: a0.currentHeight};
|
|
const object5 = {};
|
|
const binding = env0_0;
|
|
const binding2 = env0_2;
|
|
const moduleValue = require(1682) /* metro dependency 1682 */;
|
|
let withTiming = moduleValue.withTiming;
|
|
object5.originX = binding(binding2, Reflect.apply(withTiming, moduleValue, [a0.targetOriginX, env0_4]));
|
|
const moduleValue2 = moduleValue;
|
|
const withSequence = moduleValue2.withSequence;
|
|
const moduleValue3 = moduleValue;
|
|
withTiming = moduleValue3.withTiming;
|
|
Math = global.Math;
|
|
value = Math.min(a0.targetOriginY, a0.currentOriginY) - value;
|
|
const object6 = {duration: env0_3};
|
|
const Easing = (require(1662) /* metro dependency 1662 */).Easing;
|
|
const out = Easing.out;
|
|
const Easing2 = (require(1662) /* metro dependency 1662 */).Easing;
|
|
object6.easing = Reflect.apply(out, Easing, [Easing2.exp]);
|
|
value = Reflect.apply(withTiming, moduleValue3, [value, object6]);
|
|
const moduleValue4 = moduleValue;
|
|
withTiming = moduleValue4.withTiming;
|
|
targetOriginY = a0.targetOriginY;
|
|
const Object = global.Object;
|
|
value = binding(binding2, Reflect.apply(withSequence, moduleValue2, [value, Reflect.apply(withTiming, moduleValue4,
|
|
[targetOriginY, Object.assign({}, env0_4, {duration: env0_3, easing: Easing.bounce})])]));
|
|
object5.originY = value;
|
|
value = moduleValue;
|
|
object5.width = binding(binding2, value.withTiming(a0.targetWidth, env0_4));
|
|
value = moduleValue;
|
|
object5.height = binding(binding2, value.withTiming(a0.targetHeight, env0_4));
|
|
object2.animations = object5;
|
|
object2.callback = callbackV;
|
|
return object2;
|
|
}
|
|
|