148 lines
7.1 KiB
JavaScript
148 lines
7.1 KiB
JavaScript
/* Metro module 392; source: unknown; dependencies: [347, 367, 368, 354, 358, 345, 380, 377] */
|
|
function _fun5737(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:6, offset: 0x00ce4808, size: 542 bytes, params: 8, frame: 19
|
|
const mockAnimationStart = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun5739;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {start: function() {
|
|
}, stop: function() {
|
|
}, reset: function() {
|
|
}, _startNativeLoop: function() {
|
|
}, _isUsingNativeDriver: function() {
|
|
return false;
|
|
}};
|
|
object = {Value: importDefault(347) /* metro dependency 347 */,
|
|
ValueXY: importDefault(367) /* metro dependency 367 */, Color: importDefault(368) /* metro dependency 368 */,
|
|
Interpolation: importDefault(354) /* metro dependency 354 */,
|
|
Node: importDefault(358) /* metro dependency 358 */, decay: decay_5749, timing: timing_5750,
|
|
spring: spring_5752};
|
|
object.add = (importDefault(345) /* metro dependency 345 */).add;
|
|
object.subtract = (importDefault(345) /* metro dependency 345 */).subtract;
|
|
object.divide = (importDefault(345) /* metro dependency 345 */).divide;
|
|
object.multiply = (importDefault(345) /* metro dependency 345 */).multiply;
|
|
object.modulo = (importDefault(345) /* metro dependency 345 */).modulo;
|
|
object.diffClamp = (importDefault(345) /* metro dependency 345 */).diffClamp;
|
|
object.delay = delay_5754;
|
|
object.sequence = function(a0) {
|
|
return mockCompositeAnimation(a0);
|
|
};
|
|
object.parallel = function(a0, a1) {
|
|
return mockCompositeAnimation(a0);
|
|
};
|
|
object.stagger = function(a0, a1) {
|
|
return mockCompositeAnimation(a1);
|
|
};
|
|
object.loop = loop_5758;
|
|
object.event = (importDefault(345) /* metro dependency 345 */).event;
|
|
object.createAnimatedComponent = importDefault(380) /* metro dependency 380 */;
|
|
object.attachNativeEvent = (require(377) /* metro dependency 377 */).attachNativeEventImpl;
|
|
object.forkEvent = (importDefault(345) /* metro dependency 345 */).forkEvent;
|
|
object.unforkEvent = (importDefault(345) /* metro dependency 345 */).unforkEvent;
|
|
const AnimatedEvent = (require(377) /* metro dependency 377 */).AnimatedEvent;
|
|
object.Event = AnimatedEvent;
|
|
exports.default = object;
|
|
function mockAnimationStart(a0) { // fn#5738, offset: 0x00ce4a26, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun5739;
|
|
function _fun5739(a0) { // fn#5739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:139, offset: 0x00ce4a36, size: 36 bytes, params: 2, frame: 11
|
|
const value = a0;
|
|
value(value == null ? value : _fun5740);
|
|
function _fun5740() { // fn#5740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:167, offset: 0x00ce4a5a, size: 84 bytes, params: 1, frame: 15
|
|
var value2;
|
|
var binding;
|
|
var error;
|
|
if (env2_0) {
|
|
global.console.warn('Ignoring recursive animation callback when running mock animations');
|
|
} else {
|
|
try {
|
|
value2 = environment;
|
|
binding = env0_0;
|
|
binding.apply(undefined, arguments);
|
|
} catch (error) {
|
|
env2_0 = false;
|
|
throw error;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function mockCompositeAnimation(a0) { // fn#5746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:521, offset: 0x00ce4aae, size: 62 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const binding = env0_1;
|
|
const object = {};
|
|
object.start = mockAnimationStart(_fun5747);
|
|
return Reflect.apply(assign, Object, [{}, binding, object]);
|
|
function _fun5747(a0) { // fn#5747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:609, offset: 0x00ce4aec, size: 53 bytes, params: 2, frame: 12
|
|
env0_0.forEach(function(a0) {
|
|
return a0.start();
|
|
});
|
|
if (a0 != null) {
|
|
a0({finished: true});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function decay_5749(a0, a1) { // fn#5749, offset: 0x00c38205, size: 9 bytes, params: 3, frame: 1
|
|
return env0_1;
|
|
}
|
|
|
|
function timing_5750(a0, a1) { // fn#5750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:821, offset: 0x00ce4b2f, size: 69 bytes, params: 3, frame: 17
|
|
const env0_0 = a1;
|
|
const env0_1 = a0;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const binding = env0_1;
|
|
const object = {};
|
|
object.start = mockAnimationStart(_fun5751);
|
|
return Reflect.apply(assign, Object, [{}, binding, object]);
|
|
function _fun5751(a0) { // fn#5751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:903, offset: 0x00ce4b74, size: 57 bytes, params: 2, frame: 12
|
|
const binding = env0_1;
|
|
binding.setValue(require.toValue);
|
|
if (a0 != null) {
|
|
a0({finished: true});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function spring_5752(a0, a1) { // fn#5752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:976, offset: 0x00ce4bad, size: 69 bytes, params: 3, frame: 17
|
|
const env0_0 = a1;
|
|
const env0_1 = a0;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const binding = env0_1;
|
|
const object = {};
|
|
object.start = mockAnimationStart(_fun5753);
|
|
return Reflect.apply(assign, Object, [{}, binding, object]);
|
|
function _fun5753(a0) { // fn#5753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:1058, offset: 0x00ce4b74, size: 57 bytes, params: 2, frame: 12
|
|
const binding = env0_1;
|
|
binding.setValue(require.toValue);
|
|
if (a0 != null) {
|
|
a0({finished: true});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function delay_5754(a0) { // fn#5754, offset: 0x00c38205, size: 9 bytes, params: 2, frame: 1
|
|
return env0_1;
|
|
}
|
|
|
|
function loop_5758(a0) { // fn#5758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:433:1434, offset: 0x00ce4c18, size: 45 bytes, params: 2, frame: 4
|
|
(arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}).iterations;
|
|
return env0_1;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun5737, 392, [347, 367, 368, 354, 358, 345, 380,
|
|
377]) /* metro module 392, dependencies: [347, 367, 368, 354, 358, 345, 380, 377] */;
|