165 lines
9.9 KiB
JavaScript
165 lines
9.9 KiB
JavaScript
/* Metro module 1741; source: unknown; dependencies: [6, 7, 15, 17, 18, 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 Module01680Module from './module-01680.js'; /* Metro dependency 1680 */
|
|
import * as Module01682Module from './module-01682.js'; /* Metro dependency 1682 */
|
|
|
|
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});
|
|
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 = (Module01680Module).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 FadingTransition_192732 = FadingTransition_19273;
|
|
Inherits(FadingTransition_192732, a0);
|
|
return CreateClass(FadingTransition_192732, 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_19274;
|
|
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 = delayFunction2.getDelayFunction();
|
|
var delayFunction2 = delayFunction;
|
|
const callbackV = delayFunction2.callbackV;
|
|
const delay = delayFunction2.getDelay();
|
|
const value = (delayFunction2.durationV ?? 500) / 2;
|
|
const pnpm_FadingTransitionTs12 = pnpm_FadingTransitionTs1;
|
|
const object = {delayFunction: delayFunction, delay: delay};
|
|
object.withSequence = (require(1682) /* metro dependency 1682 */).withSequence;
|
|
object.withTiming = (require(1682) /* metro dependency 1682 */).withTiming;
|
|
object.halfDuration = value;
|
|
object.withDelay = (require(1682) /* metro dependency 1682 */).withDelay;
|
|
object.callback = callbackV;
|
|
pnpm_FadingTransitionTs12.__closure = object;
|
|
pnpm_FadingTransitionTs12.__workletHash = 3440645628303;
|
|
pnpm_FadingTransitionTs12.__initData = env2_7;
|
|
return pnpm_FadingTransitionTs12;
|
|
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 object = {};
|
|
object.initialValues = {opacity: 1, originX: currentOriginX, originY: currentOriginY, width: currentWidth,
|
|
height: currentHeight};
|
|
const object3 = {};
|
|
const binding = env0_0;
|
|
const withSequence = Module01682Module.withSequence;
|
|
const value3 = Module01682Module.withTiming(0, {duration: CreateClass});
|
|
object3.opacity = binding(ClassCallCheck, Reflect.apply(withSequence, Module01682Module, [value3, Module01682Module.withTiming(1,
|
|
{duration: CreateClass})]));
|
|
let withDelay = Module01682Module.withDelay;
|
|
const value4 = ClassCallCheck + CreateClass;
|
|
object3.originX = Reflect.apply(withDelay, Module01682Module, [value4, Module01682Module.withTiming(targetOriginX,
|
|
{duration: 0})]);
|
|
withDelay = Module01682Module.withDelay;
|
|
const value5 = ClassCallCheck + CreateClass;
|
|
object3.originY = Reflect.apply(withDelay, Module01682Module, [value5, Module01682Module.withTiming(targetOriginY,
|
|
{duration: 0})]);
|
|
withDelay = Module01682Module.withDelay;
|
|
const value6 = ClassCallCheck + CreateClass;
|
|
object3.width = Reflect.apply(withDelay, Module01682Module, [value6, Module01682Module.withTiming(targetWidth,
|
|
{duration: 0})]);
|
|
withDelay = Module01682Module.withDelay;
|
|
const value7 = ClassCallCheck + CreateClass;
|
|
object3.height = Reflect.apply(withDelay, Module01682Module, [value7, Module01682Module.withTiming(targetHeight,
|
|
{duration: 0})]);
|
|
object.animations = object3;
|
|
object.callback = callbackV;
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_19276() { // fn#19276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1868:2491, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
|
|
const value = Object.create(FadingTransition_19273.prototype, {constructor: {value: FadingTransition_19273}});
|
|
const fadingTransition_19273 = new FadingTransition_19273();
|
|
return fadingTransition_19273 instanceof Object ? fadingTransition_19273 : value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun19268, 1741, [6, 7, 15, 17, 18, 1682,
|
|
1680]) /* metro module 1741, dependencies: [6, 7, 15, 17, 18, 1682, 1680] */;
|