Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,185 @@
|
||||
/* Metro module 1648; source: unknown; dependencies: [] */
|
||||
function _fun18025(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1775:6, offset: 0x00e7d21e, size: 79 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object = {code: "function valueSetter_Pnpm_valueSetterTs1(mutable,value,forceUpdate=false){const previousAnimation=mutable._animation;if(previousAnimation){previousAnimation.cancelled=true;mutable._animation=null;}if(typeof value==='function'||value!==null&&typeof value==='object'&&value.onFrame!==undefined){const animation=typeof value==='function'?value():value;if(mutable._value===animation.current&&!animation.isHigherOrder&&!forceUpdate){animation.callback&&animation.callback(true);return;}const initializeAnimation=function(timestamp){animation.onStart(animation,mutable.value,timestamp,previousAnimation);};const currentTimestamp=global.__frameTimestamp||global._getAnimationTimestamp();initializeAnimation(currentTimestamp);const step=function(newTimestamp){const timestamp=newTimestamp<(animation.timestamp||0)?animation.timestamp:newTimestamp;if(animation.cancelled){animation.callback&&animation.callback(false);return;}const finished=animation.onFrame(animation,timestamp);animation.finished=true;animation.timestamp=timestamp;mutable._value=animation.current;if(finished){animation.callback&&animation.callback(true);}else{requestAnimationFrame(step);}};mutable._animation=animation;step(currentTimestamp);}else{if(mutable._value===value&&!forceUpdate){return;}mutable._value=value;}}"};
|
||||
exports.valueSetter = _fun18026();
|
||||
}
|
||||
|
||||
function _fun18026() { // fn#18026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1775:1393, offset: 0x00e7d26d, size: 46 bytes, params: 1, frame: 2
|
||||
const closure = valueSetter;
|
||||
closure.__closure = {};
|
||||
closure.__workletHash = 13584629644803;
|
||||
closure.__initData = env0_1;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function valueSetter(a0, a1) { // fn#18027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1775:1410, offset: 0x00e7d29b, size: 279 bytes, params: 3, frame: 20
|
||||
var environment;
|
||||
var r3;
|
||||
var r2;
|
||||
var onStart;
|
||||
var closure;
|
||||
let value = a1;
|
||||
const env0_0 = a0;
|
||||
const r1 = arguments.length > 2 && arguments[2] !== undefined && arguments[2];
|
||||
const _animation = a0._animation;
|
||||
if (_animation) {
|
||||
_animation.cancelled = true;
|
||||
a0._animation = null;
|
||||
}
|
||||
const value5 = typeof value;
|
||||
const value6 = value5 === 'function';
|
||||
if (value6) {
|
||||
if (value6) {
|
||||
value = value();
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = value;
|
||||
}
|
||||
if (a0._value !== r3.current) {
|
||||
value = environment.__proto__;
|
||||
r2 = env1_0.__frameTimestamp || env1_0._getAnimationTimestamp();
|
||||
onStart = r3.onStart;
|
||||
value = a0.value;
|
||||
Reflect.apply(onStart, r3, [r3, value, r2, _animation]);
|
||||
closure = valueSetterStep;
|
||||
var valueSetterStep = closure;
|
||||
a0._animation = r3;
|
||||
closure(r2);
|
||||
return undefined;
|
||||
}
|
||||
if (r3.isHigherOrder) {
|
||||
value = environment.__proto__;
|
||||
r2 = env1_0.__frameTimestamp || env1_0._getAnimationTimestamp();
|
||||
onStart = r3.onStart;
|
||||
value = a0.value;
|
||||
Reflect.apply(onStart, r3, [r3, value, r2, _animation]);
|
||||
closure = valueSetterStep;
|
||||
var valueSetterStep = closure;
|
||||
a0._animation = r3;
|
||||
closure(r2);
|
||||
return undefined;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
r2 = env1_0.__frameTimestamp || env1_0._getAnimationTimestamp();
|
||||
onStart = r3.onStart;
|
||||
value = a0.value;
|
||||
Reflect.apply(onStart, r3, [r3, value, r2, _animation]);
|
||||
closure = valueSetterStep;
|
||||
a0._animation = r3;
|
||||
closure(r2);
|
||||
return undefined;
|
||||
}
|
||||
if (r3.callback) {
|
||||
r3.callback(true);
|
||||
}
|
||||
} else {
|
||||
if (value === null) {
|
||||
if (a0._value !== value) {
|
||||
a0._value = value;
|
||||
return undefined;
|
||||
}
|
||||
if (r1) {
|
||||
a0._value = value;
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (value5 !== 'object') {
|
||||
if (a0._value !== value) {
|
||||
a0._value = value;
|
||||
return undefined;
|
||||
}
|
||||
if (r1) {
|
||||
a0._value = value;
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (value.onFrame !== undefined) {
|
||||
if (value6) {
|
||||
value = value();
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = value;
|
||||
}
|
||||
if (a0._value !== r3.current) {
|
||||
value = environment.__proto__;
|
||||
r2 = env1_0.__frameTimestamp || env1_0._getAnimationTimestamp();
|
||||
onStart = r3.onStart;
|
||||
value = a0.value;
|
||||
Reflect.apply(onStart, r3, [r3, value, r2, _animation]);
|
||||
closure = valueSetterStep;
|
||||
var valueSetterStep = closure;
|
||||
a0._animation = r3;
|
||||
closure(r2);
|
||||
return undefined;
|
||||
}
|
||||
if (r3.isHigherOrder) {
|
||||
value = environment.__proto__;
|
||||
r2 = env1_0.__frameTimestamp || env1_0._getAnimationTimestamp();
|
||||
onStart = r3.onStart;
|
||||
value = a0.value;
|
||||
Reflect.apply(onStart, r3, [r3, value, r2, _animation]);
|
||||
closure = valueSetterStep;
|
||||
var valueSetterStep = closure;
|
||||
a0._animation = r3;
|
||||
closure(r2);
|
||||
return undefined;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
r2 = env1_0.__frameTimestamp || env1_0._getAnimationTimestamp();
|
||||
onStart = r3.onStart;
|
||||
value = a0.value;
|
||||
Reflect.apply(onStart, r3, [r3, value, r2, _animation]);
|
||||
closure = valueSetterStep;
|
||||
a0._animation = r3;
|
||||
closure(r2);
|
||||
return undefined;
|
||||
}
|
||||
if (r3.callback) {
|
||||
r3.callback(true);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (a0._value !== value) {
|
||||
a0._value = value;
|
||||
return undefined;
|
||||
}
|
||||
if (r1) {
|
||||
a0._value = value;
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function valueSetterStep(a0) { // fn#18028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1775:1866, owner: valueSetter.step, offset: 0x00e7d3b2, size: 193 bytes, params: 2, frame: 15
|
||||
let value = a0;
|
||||
let timestamp = env0_1.timestamp;
|
||||
timestamp = !timestamp ? 0 : timestamp;
|
||||
const r5 = value < timestamp ? env0_1.timestamp : value;
|
||||
const cancelled = env0_1.cancelled;
|
||||
let binding = env0_1;
|
||||
if (cancelled) {
|
||||
if (binding.callback) {
|
||||
env0_1.callback(false);
|
||||
}
|
||||
} else {
|
||||
value = binding.onFrame(env0_1, r5);
|
||||
env0_1.finished = true;
|
||||
env0_1.timestamp = r5;
|
||||
binding = env0_0;
|
||||
binding._value = env0_1.current;
|
||||
if (value) {
|
||||
if (env0_1.callback) {
|
||||
env0_1.callback(true);
|
||||
}
|
||||
} else {
|
||||
global.requestAnimationFrame(valueSetterStep);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user