145 lines
8.2 KiB
JavaScript
145 lines
8.2 KiB
JavaScript
/* Metro module 1743; source: unknown; dependencies: [57, 6, 7, 15, 17, 18, 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 Module00057 from './module-00057.js'; /* Metro dependency 57 */
|
|
import * as Module01680Module from './module-01680.js'; /* Metro dependency 1680 */
|
|
|
|
function _fun19286(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1870:6, offset: 0x00ea552b, size: 220 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {code: 'function pnpm_LinearTransitionTs1(values){const{delayFunction,delay,animation,config,callback}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:delayFunction(delay,animation(values.targetOriginX,config)),originY:delayFunction(delay,animation(values.targetOriginY,config)),width:delayFunction(delay,animation(values.targetWidth,config)),height:delayFunction(delay,animation(values.targetHeight,config))},callback:callback};}'};
|
|
const ComplexAnimationBuilder = (Module01680Module).ComplexAnimationBuilder;
|
|
const value = _fun19290(ComplexAnimationBuilder);
|
|
value.presetName = 'LinearTransition';
|
|
exports.LinearTransition = value;
|
|
exports.Layout = value;
|
|
function _isNativeReflectConstruct_19287() { // fn#19287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1870:158, offset: 0x00ea5607, 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_19287_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun19290(a0) { // fn#19290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1870:941, offset: 0x00ea5665, size: 71 bytes, params: 2, frame: 16
|
|
const LinearTransition_192912 = LinearTransition_19291;
|
|
Inherits(LinearTransition_192912, a0);
|
|
return CreateClass(LinearTransition_192912, null, [{key: 'createInstance', value: value_19294}]);
|
|
function LinearTransition_19291() { // fn#19291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1870:953, offset: 0x00ea56ac, 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_1;
|
|
binding(this, LinearTransition_19291);
|
|
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_4(LinearTransition_19291);
|
|
binding = env1_3;
|
|
if (_isNativeReflectConstruct_19287()) {
|
|
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_4(this).constructor]);
|
|
} else {
|
|
r0 = value9.apply(this, value8);
|
|
}
|
|
value = binding(this, r0);
|
|
value.build = build_19292;
|
|
return value;
|
|
function LinearTransition_19291Build() { // fn#19292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1870:1268, owner: LinearTransition_19291.build, offset: 0x00ea5778, size: 174 bytes, params: 1, frame: 17
|
|
const delayFunction = delayFunction2.getDelayFunction();
|
|
var delayFunction2 = delayFunction;
|
|
const value5 = env2_0(delayFunction2.getAnimationAndConfig(), 2);
|
|
const property = value5[0];
|
|
const property2 = value5[1];
|
|
const callbackV = delayFunction2.callbackV;
|
|
const delay = delayFunction2.getDelay();
|
|
const pnpm_LinearTransitionTs12 = pnpm_LinearTransitionTs1;
|
|
pnpm_LinearTransitionTs12.__closure = {delayFunction: delayFunction, delay: delay, animation: property,
|
|
config: property2, callback: callbackV};
|
|
pnpm_LinearTransitionTs12.__workletHash = 16224579837767;
|
|
pnpm_LinearTransitionTs12.__initData = env2_6;
|
|
return pnpm_LinearTransitionTs12;
|
|
function pnpm_LinearTransitionTs1({currentOriginX, currentOriginY, currentWidth, currentHeight, targetOriginX, targetOriginY, targetWidth, targetHeight}) { // fn#19293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1870:1397, owner: LinearTransition_19291.build.pnpm_LinearTransitionTs1, offset: 0x00ea5826, size: 183 bytes, params: 2, frame: 19
|
|
const object = {};
|
|
object.initialValues = {originX: currentOriginX, originY: currentOriginY, width: currentWidth,
|
|
height: currentHeight};
|
|
const object3 = {};
|
|
object3.originX = Module00057(Module00017, ClassCallCheck(targetOriginX, CreateClass));
|
|
object3.originY = Module00057(Module00017, ClassCallCheck(targetOriginY, CreateClass));
|
|
object3.width = Module00057(Module00017, ClassCallCheck(targetWidth, CreateClass));
|
|
object3.height = Module00057(Module00017, ClassCallCheck(targetHeight, CreateClass));
|
|
object.animations = object3;
|
|
object.callback = callbackV;
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_19294() { // fn#19294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1870:1908, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
|
|
const value = Object.create(LinearTransition_19291.prototype, {constructor: {value: LinearTransition_19291}});
|
|
const linearTransition_19291 = new LinearTransition_19291();
|
|
return linearTransition_19291 instanceof Object ? linearTransition_19291 : value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun19286, 1743, [57, 6, 7, 15, 17, 18,
|
|
1680]) /* metro module 1743, dependencies: [57, 6, 7, 15, 17, 18, 1680] */;
|