180 lines
8.4 KiB
React
180 lines
8.4 KiB
React
/* Metro module 1739; source: unknown; dependencies: [6, 7, 15, 17, 18, 1662, 1682, 1680] */
|
|
function _fun19234(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1866:6, offset: 0x00ea3806, 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_CurvedTransitionTs1(values){const{delayFunction,delay,withTiming,duration,easing,callback}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,withTiming(values.targetOriginX,{duration:duration,easing:easing.easingX})),originY:delayFunction(delay,withTiming(values.targetOriginY,{duration:duration,easing:easing.easingY})),width:delayFunction(delay,withTiming(values.targetWidth,{duration:duration,easing:easing.easingWidth})),height:delayFunction(delay,withTiming(values.targetHeight,{duration:duration,easing:easing.easingHeight}))},callback:callback};}'};
|
|
const BaseAnimationBuilder = (require(1680) /* metro dependency 1680 */).BaseAnimationBuilder;
|
|
const value = _fun19238(BaseAnimationBuilder);
|
|
value.presetName = 'CurvedTransition';
|
|
exports.CurvedTransition = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_19235() { // fn#19235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1866:148, offset: 0x00ea38d4, 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_19235_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun19238(a0) { // fn#19238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1866:1094, offset: 0x00ea3932, size: 241 bytes, params: 2, frame: 21
|
|
const closure = CurvedTransition_19239;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, [{key: 'easingX', value: function(a0) {
|
|
this.easingXV = a0;
|
|
return this;
|
|
}}, {key: 'easingY', value: function(a0) {
|
|
this.easingYV = a0;
|
|
return this;
|
|
}}, {key: 'easingWidth', value: function(a0) {
|
|
this.easingWidthV = a0;
|
|
return this;
|
|
}}, {key: 'easingHeight', value: function(a0) {
|
|
this.easingHeightV = a0;
|
|
return this;
|
|
}}], [{key: 'createInstance', value: value_19246}, {key: 'easingX', value: function(a0) {
|
|
return this.createInstance().easingX(a0);
|
|
}}, {key: 'easingY', value: function(a0) {
|
|
return this.createInstance().easingY(a0);
|
|
}}, {key: 'easingWidth', value: function(a0) {
|
|
return this.createInstance().easingWidth(a0);
|
|
}}, {key: 'easingHeight', value: function(a0) {
|
|
return this.createInstance().easingHeight(a0);
|
|
}}]);
|
|
}
|
|
|
|
function CurvedTransition_19239() { // fn#19239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1866:1106, offset: 0x00ea3a23, size: 430 bytes, params: 1, frame: 21
|
|
var r3;
|
|
var r7;
|
|
var r0;
|
|
var value7;
|
|
var Reflect;
|
|
var construct;
|
|
let binding = env1_2;
|
|
binding(this, CurvedTransition_19239);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value6 = 0;
|
|
if (value6 < length) {
|
|
r3 = value6;
|
|
reducibleLoop1: while (true) {
|
|
array[r3] = arguments[r3];
|
|
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value7 < length) {
|
|
r3 = value7;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const value8 = [].concat(array);
|
|
const value9 = env1_5(CurvedTransition_19239);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_19235()) {
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
reducibleJoin6: while (true) {
|
|
if (value8) {
|
|
r7 = value8;
|
|
break reducibleJoin6;
|
|
}
|
|
r7 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
r0 = Reflect.apply(construct, Reflect, [value9, r7, env1_5(this).constructor]);
|
|
} else {
|
|
r0 = value9.apply(this, value8);
|
|
}
|
|
const value12 = binding(this, r0);
|
|
const Easing = (require(1662) /* metro dependency 1662 */).Easing;
|
|
const Easing2 = (require(1662) /* metro dependency 1662 */).Easing;
|
|
value12.easingXV = Easing.in(Easing2.ease);
|
|
let out = Easing.out;
|
|
const Easing3 = (require(1662) /* metro dependency 1662 */).Easing;
|
|
value12.easingYV = Reflect.apply(out, Easing, [Easing3.ease]);
|
|
const Easing4 = (require(1662) /* metro dependency 1662 */).Easing;
|
|
value12.easingWidthV = Easing.in(Easing4.exp);
|
|
out = Easing.out;
|
|
const Easing5 = (require(1662) /* metro dependency 1662 */).Easing;
|
|
value12.easingHeightV = Reflect.apply(out, Easing, [Easing5.exp]);
|
|
value12.build = build;
|
|
return value12;
|
|
}
|
|
|
|
function CurvedTransition_19239Build() { // fn#19240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1866:1630, owner: CurvedTransition_19239.build, offset: 0x00ea3bd1, size: 252 bytes, params: 1, frame: 17
|
|
const delayFunction = env0_0.getDelayFunction();
|
|
var env0_0 = delayFunction;
|
|
const callbackV = env0_0.callbackV;
|
|
const delay = env0_0.getDelay();
|
|
const r5 = env0_0.durationV ?? 300;
|
|
const object3 = {};
|
|
object3.easingX = env0_0.easingXV;
|
|
object3.easingY = env0_0.easingYV;
|
|
object3.easingWidth = env0_0.easingWidthV;
|
|
object3.easingHeight = env0_0.easingHeightV;
|
|
const closure = pnpm_CurvedTransitionTs1;
|
|
const object4 = {delayFunction: delayFunction, delay: delay};
|
|
object4.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
|
|
object4.duration = r5;
|
|
object4.easing = object3;
|
|
object4.callback = callbackV;
|
|
closure.__closure = object4;
|
|
closure.__workletHash = 8113645568730;
|
|
closure.__initData = env2_7;
|
|
return closure;
|
|
}
|
|
|
|
function pnpm_CurvedTransitionTs1({currentOriginX, currentOriginY, currentWidth, currentHeight, targetOriginX, targetOriginY, targetWidth, targetHeight}) { // fn#19241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1866:1838, owner: CurvedTransition_19239.build.pnpm_CurvedTransitionTs1, offset: 0x00ea3ccd, size: 345 bytes, params: 2, frame: 24
|
|
const object2 = {};
|
|
object2.initialValues = {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 */;
|
|
object4.originX = binding(binding2, moduleValue.withTiming(targetOriginX, {duration: env0_3,
|
|
easing: env0_4.easingX}));
|
|
const moduleValue2 = moduleValue;
|
|
object4.originY = binding(binding2, moduleValue2.withTiming(targetOriginY, {duration: env0_3,
|
|
easing: env0_4.easingY}));
|
|
const moduleValue3 = moduleValue;
|
|
object4.width = binding(binding2, moduleValue3.withTiming(targetWidth, {duration: env0_3,
|
|
easing: env0_4.easingWidth}));
|
|
const moduleValue4 = moduleValue;
|
|
object4.height = binding(binding2, moduleValue4.withTiming(targetHeight, {duration: env0_3,
|
|
easing: env0_4.easingHeight}));
|
|
object2.animations = object4;
|
|
object2.callback = callbackV;
|
|
return object2;
|
|
}
|
|
|