Files
discord-decomp/sources/by-id/module-01732-Pinwheel.js
T
2026-07-28 01:06:53 +03:00

204 lines
12 KiB
JavaScript

/* Metro module 1732; 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 _fun18993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:6, offset: 0x00e9c710, size: 280 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {code: "function pnpm_PinwheelTs1(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(1,config)),transform:[{scale:delayFunction(delay,animation(1,config))},{rotate:delayFunction(delay,animation('0rad',config))}]},initialValues:{opacity:0,transform:[{scale:0},{rotate:'5rad'}],...initialValues},callback:callback};}"};
const ComplexAnimationBuilder = (Module01680Module).ComplexAnimationBuilder;
const value = _fun18998(ComplexAnimationBuilder);
value.presetName = 'PinwheelIn';
object = {code: "function pnpm_PinwheelTs2(){const{delayFunction,delay,animation,config,initialValues,callback}=this.__closure;return{animations:{opacity:delayFunction(delay,animation(0,config)),transform:[{scale:delayFunction(delay,animation(0,config))},{rotate:delayFunction(delay,animation('5rad',config))}]},initialValues:{opacity:1,transform:[{scale:1},{rotate:'0rad'}],...initialValues},callback:callback};}"};
const value2 = _fun19003(ComplexAnimationBuilder);
value2.presetName = 'PinwheelOut';
exports.PinwheelIn = value;
exports.PinwheelOut = value2;
function _callSuper_18994(a0, a1, a2) { // fn#18994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:158, offset: 0x00e9c828, size: 100 bytes, params: 4, frame: 20
var r0;
var Reflect;
let value = a2;
const value3 = Module00017(a1);
if (_isNativeReflectConstruct_18995()) {
Reflect = global.Reflect;
value = Reflect.construct(value3, value || [], Module00017(a0).constructor);
r0 = value;
} else {
value = value3.apply(a0, value);
r0 = value;
}
return PossibleConstructorReturn(a0, r0);
}
function _isNativeReflectConstruct_18995() { // fn#18995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:289, offset: 0x00e9c88c, 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_18995_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun18998(a0) { // fn#18998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:922, offset: 0x00e9c8ea, size: 71 bytes, params: 2, frame: 16
const PinwheelIn2 = PinwheelIn;
Inherits(PinwheelIn2, a0);
return CreateClass(PinwheelIn2, null, [{key: 'createInstance', value: value_19002}]);
function PinwheelIn() { // fn#18999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:934, offset: 0x00e9c931, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_1(this, PinwheelIn);
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
for (r3 = value6; true; r3 = value7) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (!(value7 < length)) {
break;
}
}
}
const _callSuper_18994Binding = _callSuper_18994;
const items2 = [];
value = _callSuper_18994Binding(this, PinwheelIn, items2.concat(array));
value.build = build_19000;
return value;
function PinwheelInBuild() { // fn#19000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:1110, owner: PinwheelIn.build, offset: 0x00e9c9b6, size: 193 bytes, params: 1, frame: 18
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_0(delayFunction2.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = delayFunction2.getDelay();
const callbackV = delayFunction2.callbackV;
const initialValues = delayFunction2.initialValues;
const pnpm_PinwheelTs12 = pnpm_PinwheelTs1;
pnpm_PinwheelTs12.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
pnpm_PinwheelTs12.__workletHash = 8890961567516;
pnpm_PinwheelTs12.__initData = env2_6;
return pnpm_PinwheelTs12;
function pnpm_PinwheelTs1() { // fn#19001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:1257, owner: PinwheelIn.build.pnpm_PinwheelTs1, offset: 0x00e9ca77, size: 192 bytes, params: 1, frame: 20
const object2 = {};
object2.opacity = Module00057(PossibleConstructorReturn, ClassCallCheck(1, CreateClass));
const items2 = [{scale: Module00057(PossibleConstructorReturn, ClassCallCheck(1, CreateClass))}];
items2[1] = {rotate: Module00057(PossibleConstructorReturn, ClassCallCheck('0rad', CreateClass))};
object2.transform = items2;
const Object = global.Object;
return {animations: object2, initialValues: Object.assign({opacity: 0, transform: [{scale: 0}, {rotate: '5rad'}]},
initialValues), callback: callbackV};
}
}
}
function value_19002() { // fn#19002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:1682, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(PinwheelIn.prototype, {constructor: {value: PinwheelIn}});
const pinwheelIn = new PinwheelIn();
return pinwheelIn instanceof Object ? pinwheelIn : value;
}
}
function _fun19003(a0) { // fn#19003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:2208, offset: 0x00e9cb37, size: 71 bytes, params: 2, frame: 16
const PinwheelOut2 = PinwheelOut;
Inherits(PinwheelOut2, a0);
return CreateClass(PinwheelOut2, null, [{key: 'createInstance', value: value_19007}]);
function PinwheelOut() { // fn#19004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:2220, offset: 0x00e9cb7e, size: 133 bytes, params: 1, frame: 20
var environment;
var r3;
var value7;
let value = environment.__proto__;
env1_1(this, PinwheelOut);
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
for (r3 = value6; true; r3 = value7) {
array[r3] = arguments[r3];
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (!(value7 < length)) {
break;
}
}
}
const _callSuper_18994Binding = _callSuper_18994;
const items2 = [];
value = _callSuper_18994Binding(this, PinwheelOut, items2.concat(array));
value.build = build_19005;
return value;
function PinwheelOutBuild() { // fn#19005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:2399, owner: PinwheelOut.build, offset: 0x00e9cc03, size: 193 bytes, params: 1, frame: 18
const delayFunction = delayFunction2.getDelayFunction();
var delayFunction2 = delayFunction;
const value5 = env2_0(delayFunction2.getAnimationAndConfig(), 2);
const property = value5[0];
const property2 = value5[1];
const delay = delayFunction2.getDelay();
const callbackV = delayFunction2.callbackV;
const initialValues = delayFunction2.initialValues;
const pnpm_PinwheelTs22 = pnpm_PinwheelTs2;
pnpm_PinwheelTs22.__closure = {delayFunction: delayFunction, delay: delay, animation: property, config: property2,
initialValues: initialValues, callback: callbackV};
pnpm_PinwheelTs22.__workletHash = 15028563671839;
pnpm_PinwheelTs22.__initData = env2_7;
return pnpm_PinwheelTs22;
function pnpm_PinwheelTs2() { // fn#19006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:2546, owner: PinwheelOut.build.pnpm_PinwheelTs2, offset: 0x00e9ccc4, size: 192 bytes, params: 1, frame: 20
const object2 = {};
object2.opacity = Module00057(PossibleConstructorReturn, ClassCallCheck(0, CreateClass));
const items2 = [{scale: Module00057(PossibleConstructorReturn, ClassCallCheck(0, CreateClass))}];
items2[1] = {rotate: Module00057(PossibleConstructorReturn, ClassCallCheck('5rad', CreateClass))};
object2.transform = items2;
const Object = global.Object;
return {animations: object2, initialValues: Object.assign({opacity: 1, transform: [{scale: 1}, {rotate: '0rad'}]},
initialValues), callback: callbackV};
}
}
}
function value_19007() { // fn#19007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1859:2973, offset: 0x00e9650d, size: 29 bytes, params: 1, frame: 9
const value = Object.create(PinwheelOut.prototype, {constructor: {value: PinwheelOut}});
const pinwheelOut = new PinwheelOut();
return pinwheelOut instanceof Object ? pinwheelOut : value;
}
}
}
global.__d(_fun18993, 1732, [57, 6, 7, 15, 17, 18,
1680]) /* metro module 1732, dependencies: [57, 6, 7, 15, 17, 18, 1680] */;