Files
2026-07-28 01:06:53 +03:00

117 lines
6.5 KiB
JavaScript

/* Metro module 1703; source: unknown; dependencies: [1669, 1635] */
import * as Module01635Module from './module-01635.js'; /* Metro dependency 1635 */
function _fun18572(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1830:6, offset: 0x00e9085f, size: 86 bytes, params: 8, frame: 16
const env0_0 = require;
const showChildren = function(a0, a1, a2) {
var r2;
var property;
var style;
var value = 0;
if (value < a0.children.length) {
r2 = value;
while (true) {
property = a0.children[r2];
if (a2) {
style = property.style;
style.display = a1.get(property);
} else {
a1.set(property, property.style.display);
property.style.display = 'none';
}
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value < a0.children.length) {
r2 = value;
continue;
}
break;
}
}
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.prepareCurvedTransition = function(a0, a1, a2, a3) {
var {dummy, dummyAnimationConfig} = _fun18575(a0, a1, a2, a3);
_fun18576(a0, dummy, a1, a2);
return {dummy: dummy, dummyAnimationConfig: dummyAnimationConfig};
};
exports.CurvedTransition = CurvedTransition;
function prepareCurvedTransition(a0, a1, a2, a3) { // fn#18574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1830:283, offset: 0x00e9092e, size: 81 bytes, params: 5, frame: 18
const {dummy, dummyAnimationConfig} = prepareDummy(a0, a1, a2, a3);
prepareParent(a0, dummy, a1, a2);
return {dummy: dummy, dummyAnimationConfig: dummyAnimationConfig};
function prepareDummy(a0, {duration, delay}, {easingY}, a3) { // fn#18575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1830:331, owner: prepareCurvedTransition.prepareDummy, offset: 0x00e9097f, size: 258 bytes, params: 5, frame: 15
const object = {animationName: a3};
let value = environment.__proto__;
const LayoutAnimationType = (Module01635Module).LayoutAnimationType;
const LAYOUT = LayoutAnimationType.LAYOUT;
object.animationType = LAYOUT;
object.duration = duration;
object.delay = delay;
object.easing = (require(1669) /* metro dependency 1669 */).getEasingByName(easingY);
object.callback = null;
object.reversed = false;
value = a0.cloneNode(true);
value.isDummy = true;
value.style.animationName = '';
value.style.position = 'absolute';
value.style.top = '0px';
value.style.left = '0px';
value.style.margin = '0px';
value.style.width = '100%';
value.style.height = '100%';
return {dummy: value, dummyAnimationConfig: object};
}
function prepareParent(a0, a1, a2, {easingX}) { // fn#18576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1830:841, owner: prepareCurvedTransition.prepareParent, offset: 0x00e90a81, size: 219 bytes, params: 5, frame: 18
const env0_0 = a0;
const env0_1 = a1;
a2.easing = (require(1669) /* metro dependency 1669 */).getEasingByName(easingX);
const Map = global.Map;
const value3 = Object.create(Map.prototype, {constructor: {value: Map}});
const map = new Map();
showChildren(a0, map instanceof Object ? map : value3, false);
const env0_3 = a0.style.backgroundColor;
a0.style.backgroundColor = 'transparent';
const animationCancelCallback2 = animationCancelCallback;
a0.addEventListener('animationend', animationEndCallback);
a0.addEventListener('animationcancel', animationCancelCallback2);
a0.appendChild(a1);
function onFinalize() { // fn#18577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1830:1026, owner: prepareCurvedTransition.prepareParent.onFinalize, offset: 0x00e90b5c, size: 87 bytes, params: 1, frame: 16
let binding = env0_0;
if (binding.contains(require)) {
env0_0.removeChild(require);
}
const showChildrenBinding = showChildren;
binding = env0_0;
showChildrenBinding(binding, env0_2, true);
binding.style.backgroundColor = backgroundColor;
}
function animationCancelCallback() { // fn#18578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1830:1130, owner: prepareCurvedTransition.prepareParent.animationCancelCallback, offset: 0x00e90bb3, size: 41 bytes, params: 1, frame: 14
onFinalize();
const binding = env0_0;
binding.removeEventListener('animationcancel', animationCancelCallback);
}
function animationEndCallback() { // fn#18579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1830:1215, owner: prepareCurvedTransition.prepareParent.animationEndCallback, offset: 0x00e90bdc, size: 41 bytes, params: 1, frame: 14
onFinalize();
const binding = env0_0;
binding.removeEventListener('animationend', animationEndCallback);
}
}
}
}
function CurvedTransition(a0, a1, a2) { // fn#18580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1830:1449, offset: 0x00e90c05, size: 241 bytes, params: 4, frame: 23
return {firstKeyframeObj: {name: a0, style: {[0]: {transform: [{translateX: '' + a2.translateX + 'px',
scale: '' + a2.scaleX + ',' + a2.scaleY}]}}, duration: 300}, secondKeyframeObj: {name: a1,
style: {[0]: {transform: [{translateY: '' + a2.translateY + 'px', scale: '' + a2.scaleX + ',' + a2.scaleY}]}},
duration: 300}};
}
global.__d(_fun18572, 1703, [1669, 1635]) /* metro module 1703, dependencies: [1669, 1635] */;