187 lines
11 KiB
JavaScript
187 lines
11 KiB
JavaScript
/* Metro module 1739; source: unknown; dependencies: [6, 7, 15, 17, 18, 1662, 1682, 1680] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import * as EasingModule from './module-01662-Easing.js'; /* Metro dependency 1662 */
|
|
import * as Module01680Module from './module-01680.js'; /* Metro dependency 1680 */
|
|
import * as Module01682Module from './module-01682.js'; /* Metro dependency 1682 */
|
|
|
|
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});
|
|
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 = (Module01680Module).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 CurvedTransition_192392 = CurvedTransition_19239;
|
|
Inherits(CurvedTransition_192392, a0);
|
|
return CreateClass(CurvedTransition_192392, [{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 = (EasingModule).Easing;
|
|
const Easing2 = (EasingModule).Easing;
|
|
value12.easingXV = Easing.in(Easing2.ease);
|
|
let out = Easing.out;
|
|
const Easing3 = (EasingModule).Easing;
|
|
value12.easingYV = Reflect.apply(out, Easing, [Easing3.ease]);
|
|
const Easing4 = (EasingModule).Easing;
|
|
value12.easingWidthV = Easing.in(Easing4.exp);
|
|
out = Easing.out;
|
|
const Easing5 = (EasingModule).Easing;
|
|
value12.easingHeightV = Reflect.apply(out, Easing, [Easing5.exp]);
|
|
value12.build = build_19240;
|
|
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 = delayFunction2.getDelayFunction();
|
|
var delayFunction2 = delayFunction;
|
|
const callbackV = delayFunction2.callbackV;
|
|
const delay = delayFunction2.getDelay();
|
|
const r5 = delayFunction2.durationV ?? 300;
|
|
const object = {};
|
|
object.easingX = delayFunction2.easingXV;
|
|
object.easingY = delayFunction2.easingYV;
|
|
object.easingWidth = delayFunction2.easingWidthV;
|
|
object.easingHeight = delayFunction2.easingHeightV;
|
|
const pnpm_CurvedTransitionTs12 = pnpm_CurvedTransitionTs1;
|
|
const object2 = {delayFunction: delayFunction, delay: delay};
|
|
object2.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
|
|
object2.duration = r5;
|
|
object2.easing = object;
|
|
object2.callback = callbackV;
|
|
pnpm_CurvedTransitionTs12.__closure = object2;
|
|
pnpm_CurvedTransitionTs12.__workletHash = 8113645568730;
|
|
pnpm_CurvedTransitionTs12.__initData = env2_7;
|
|
return pnpm_CurvedTransitionTs12;
|
|
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 object = {};
|
|
object.initialValues = {originX: currentOriginX, originY: currentOriginY, width: currentWidth,
|
|
height: currentHeight};
|
|
const object3 = {};
|
|
const binding = env0_0;
|
|
object3.originX = binding(ClassCallCheck, Module01682Module.withTiming(targetOriginX, {duration: CreateClass,
|
|
easing: PossibleConstructorReturn.easingX}));
|
|
object3.originY = binding(ClassCallCheck, Module01682Module.withTiming(targetOriginY, {duration: CreateClass,
|
|
easing: PossibleConstructorReturn.easingY}));
|
|
object3.width = binding(ClassCallCheck, Module01682Module.withTiming(targetWidth, {duration: CreateClass,
|
|
easing: PossibleConstructorReturn.easingWidth}));
|
|
object3.height = binding(ClassCallCheck, Module01682Module.withTiming(targetHeight, {duration: CreateClass,
|
|
easing: PossibleConstructorReturn.easingHeight}));
|
|
object.animations = object3;
|
|
object.callback = callbackV;
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_19246() { // fn#19246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1866:2875, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
|
|
const value = Object.create(CurvedTransition_19239.prototype, {constructor: {value: CurvedTransition_19239}});
|
|
const curvedTransition_19239 = new CurvedTransition_19239();
|
|
return curvedTransition_19239 instanceof Object ? curvedTransition_19239 : value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun19234, 1739, [6, 7, 15, 17, 18, 1662, 1682,
|
|
1680]) /* metro module 1739, dependencies: [6, 7, 15, 17, 18, 1662, 1682, 1680] */;
|