166 lines
7.9 KiB
React
166 lines
7.9 KiB
React
/* Metro module 1741; source: unknown; dependencies: [6, 7, 15, 17, 18, 1682, 1680] */
|
|
function _fun19268(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1868:6, offset: 0x00ea4ae7, 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_FadingTransitionTs1(values){const{delayFunction,delay,withSequence,withTiming,halfDuration,withDelay,callback}=this.__closure;return{initialValues:{opacity:1,originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{opacity:delayFunction(delay,withSequence(withTiming(0,{duration:halfDuration}),withTiming(1,{duration:halfDuration}))),originX:withDelay(delay+halfDuration,withTiming(values.targetOriginX,{duration:0})),originY:withDelay(delay+halfDuration,withTiming(values.targetOriginY,{duration:0})),width:withDelay(delay+halfDuration,withTiming(values.targetWidth,{duration:0})),height:withDelay(delay+halfDuration,withTiming(values.targetHeight,{duration:0}))},callback:callback};}'};
|
|
const BaseAnimationBuilder = (require(1680) /* metro dependency 1680 */).BaseAnimationBuilder;
|
|
const value = _fun19272(BaseAnimationBuilder);
|
|
value.presetName = 'FadingTransition';
|
|
exports.FadingTransition = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_19269() { // fn#19269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1868:148, offset: 0x00ea4bb5, 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_19269_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun19272(a0) { // fn#19272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1868:1154, offset: 0x00ea4c13, size: 71 bytes, params: 2, frame: 16
|
|
const closure = FadingTransition_19273;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, null, [{key: 'createInstance', value: value_19276}]);
|
|
}
|
|
|
|
function FadingTransition_19273() { // fn#19273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1868:1166, offset: 0x00ea4c5a, 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, FadingTransition_19273);
|
|
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(FadingTransition_19273);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_19269()) {
|
|
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 FadingTransition_19273Build() { // fn#19274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1868:1481, owner: FadingTransition_19273.build, offset: 0x00ea4d26, size: 229 bytes, params: 1, frame: 18
|
|
const delayFunction = env0_0.getDelayFunction();
|
|
var env0_0 = delayFunction;
|
|
const callbackV = env0_0.callbackV;
|
|
const delay = env0_0.getDelay();
|
|
const value = (env0_0.durationV ?? 500) / 2;
|
|
const closure = pnpm_FadingTransitionTs1;
|
|
const object2 = {delayFunction: delayFunction, delay: delay};
|
|
object2.withSequence = (require(1682) /* metro dependency 1682 */).withSequence;
|
|
object2.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
|
|
object2.halfDuration = value;
|
|
object2.withDelay = (require(1682) /* metro dependency 1682 */).withDelay;
|
|
object2.callback = callbackV;
|
|
closure.__closure = object2;
|
|
closure.__workletHash = 3440645628303;
|
|
closure.__initData = env2_7;
|
|
return closure;
|
|
}
|
|
|
|
function pnpm_FadingTransitionTs1({currentOriginX, currentOriginY, currentWidth, currentHeight, targetOriginX, targetOriginY, targetWidth, targetHeight}) { // fn#19275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1868:1595, owner: FadingTransition_19273.build.pnpm_FadingTransitionTs1, offset: 0x00ea4e0b, size: 461 bytes, params: 2, frame: 28
|
|
const object2 = {};
|
|
object2.initialValues = {opacity: 1, originX: currentOriginX, originY: currentOriginY, width: currentWidth,
|
|
height: currentHeight};
|
|
const object4 = {};
|
|
const binding = env0_0;
|
|
const binding2 = env0_2;
|
|
const moduleValue = require(1682) /* metro dependency 1682 */;
|
|
const withSequence = moduleValue.withSequence;
|
|
const moduleValue2 = moduleValue;
|
|
const value3 = moduleValue2.withTiming(0, {duration: env0_3});
|
|
const moduleValue3 = moduleValue;
|
|
object4.opacity = binding(binding2, Reflect.apply(withSequence, moduleValue, [value3, moduleValue3.withTiming(1,
|
|
{duration: env0_3})]));
|
|
const moduleValue4 = moduleValue;
|
|
let withDelay = moduleValue4.withDelay;
|
|
const value4 = binding2 + env0_3;
|
|
const moduleValue5 = moduleValue;
|
|
object4.originX = Reflect.apply(withDelay, moduleValue4, [value4, moduleValue5.withTiming(targetOriginX,
|
|
{duration: 0})]);
|
|
const moduleValue6 = moduleValue;
|
|
withDelay = moduleValue6.withDelay;
|
|
const value5 = binding2 + env0_3;
|
|
const moduleValue7 = moduleValue;
|
|
object4.originY = Reflect.apply(withDelay, moduleValue6, [value5, moduleValue7.withTiming(targetOriginY,
|
|
{duration: 0})]);
|
|
const moduleValue8 = moduleValue;
|
|
withDelay = moduleValue8.withDelay;
|
|
const value6 = binding2 + env0_3;
|
|
const moduleValue9 = moduleValue;
|
|
object4.width = Reflect.apply(withDelay, moduleValue8, [value6, moduleValue9.withTiming(targetWidth,
|
|
{duration: 0})]);
|
|
const moduleValue10 = moduleValue;
|
|
withDelay = moduleValue10.withDelay;
|
|
const value7 = binding2 + env0_3;
|
|
const moduleValue11 = moduleValue;
|
|
object4.height = Reflect.apply(withDelay, moduleValue10, [value7, moduleValue11.withTiming(targetHeight,
|
|
{duration: 0})]);
|
|
object2.animations = object4;
|
|
object2.callback = callbackV;
|
|
return object2;
|
|
}
|
|
|