84 lines
4.2 KiB
React
84 lines
4.2 KiB
React
/* Metro module 333; source: unknown; dependencies: [79, 262, 49, 46] */
|
|
function _fun4946(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:374:6, offset: 0x00cd16ce, size: 391 bytes, params: 8, frame: 20
|
|
var object2;
|
|
const env0_1 = require;
|
|
const closure = configureNext;
|
|
const closure2 = function(a0, a1, a2) {
|
|
return {duration: a0, create: {type: a1, property: a2}, update: {type: a1}, delete: {type: a1, property: a2}};
|
|
};
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_4 = (importAll(79) /* metro dependency 79 */).isLayoutAnimationEnabled();
|
|
object2 = {easeInEaseOut: closure2(300, 'easeInEaseOut', 'opacity'), linear: closure2(500, 'linear', 'opacity')};
|
|
object2.spring = {duration: 700, create: {'type': 'linear', 'property': 'opacity'}, update: {'type': 'spring',
|
|
'springDamping': 0.4}, delete: {'type': 'linear', 'property': 'opacity'}};
|
|
const object4 = {configureNext: closure, create: closure2};
|
|
Object = global.Object;
|
|
object4.Types = Object.freeze({'spring': 'spring', 'linear': 'linear', 'easeInEaseOut': 'easeInEaseOut',
|
|
'easeIn': 'easeIn', 'easeOut': 'easeOut', 'keyboard': 'keyboard'});
|
|
Object = global.Object;
|
|
object4.Properties = Object.freeze({'opacity': 'opacity', 'scaleX': 'scaleX', 'scaleY': 'scaleY',
|
|
'scaleXY': 'scaleXY'});
|
|
object4.checkConfig = function() {
|
|
global.console.error('LayoutAnimation.checkConfig(...) has been disabled.');
|
|
};
|
|
object4.Presets = object2;
|
|
object4.easeInEaseOut = closure.bind(null, object2.easeInEaseOut);
|
|
object4.linear = closure.bind(null, object2.linear);
|
|
object4.spring = closure.bind(null, object2.spring);
|
|
object4.setEnabled = function(a0) {
|
|
};
|
|
exports.default = object4;
|
|
}
|
|
|
|
function configureNext(a0, a1, a2) { // fn#4947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:374:133, offset: 0x00cd1855, size: 341 bytes, params: 4, frame: 22
|
|
var r2;
|
|
var r1;
|
|
var closure;
|
|
var fabricUIManager;
|
|
const property = (require(46) /* metro dependency 46 */).default;
|
|
var binding;
|
|
var value6;
|
|
var nativeFabricUIManager;
|
|
const value = a2;
|
|
if (!(importDefault(262) /* metro dependency 262 */).isDisableAnimations) {
|
|
if (env0_4) {
|
|
closure = onAnimationComplete;
|
|
var env0_2 = global.setTimeout(closure, (a0.duration ?? 0) + 17);
|
|
fabricUIManager = (require(49) /* metro dependency 49 */).getFabricUIManager();
|
|
if (fabricUIManager == null) {
|
|
if ((require(46) /* metro dependency 46 */).default != null && (require(46) /* metro dependency 46 */).default.configureNextLayoutAnimation) {
|
|
property.configureNextLayoutAnimation(a0, closure ?? (function() {
|
|
}), value ?? _fun4951);
|
|
}
|
|
} else if (fabricUIManager.configureNextLayoutAnimation) {
|
|
binding = a1;
|
|
value6 = binding == null;
|
|
if (value6) {
|
|
r1 = value6;
|
|
r2 = binding;
|
|
} else {
|
|
nativeFabricUIManager = binding.nativeFabricUIManager;
|
|
r1 = nativeFabricUIManager == null;
|
|
r2 = nativeFabricUIManager;
|
|
}
|
|
if (!r1) {
|
|
r2.configureNextLayoutAnimation(a0, closure, value ?? _fun4949);
|
|
}
|
|
} else if ((require(46) /* metro dependency 46 */).default != null && (require(46) /* metro dependency 46 */).default.configureNextLayoutAnimation) {
|
|
property.configureNextLayoutAnimation(a0, closure ?? _fun4950, value ?? _fun4951);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function onAnimationComplete() { // fn#4948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:374:218, owner: configureNext.onAnimationComplete, offset: 0x00cd19aa, size: 57 bytes, params: 1, frame: 12
|
|
if (!env0_1) {
|
|
global.clearTimeout(env0_2);
|
|
if (require != null) {
|
|
require();
|
|
}
|
|
}
|
|
}
|
|
|