Files
discord-decomp/_bundle/Module1720.js
T
2026-11-01 12:12:55 +02:00

40 lines
989 B
JavaScript

// Metro module 1720 (f1721).
import { shouldBeUseWeb, isFabric } from "./Module1609";
import { configureLayoutAnimationBatch, makeShareableCloneRecursive } from "./Module1650";
let r21;
let env1363 = {};
if (shouldBeUseWeb()) {
r21 = () => {};
} else {
let c1364_0 = [];
let c1364_1 = [];
env1363[2] = {
update: function update(a0, a1) {
if (a1) {
c1364_1.push(a0);
} else {
c1364_0.push(a0);
}
if (c1364_0.length + c1364_1.length === 1) {
if (isFabric()) {
this.flush();
} else {
setImmediate(this.flush);
}
}
},
flush: () => {
configureLayoutAnimationBatch(c1364_0.concat(c1364_1));
c1364_0.length = 0;
c1364_1.length = 0;
}
};
r21 = (a0, a1, a2, a3, a4) => env1363[2].update({
viewTag: a0,
type: a1,
config: a2 ? makeShareableCloneRecursive(a2) : void 0,
sharedTransitionTag: a3
}, a4);
}
export { r21 as updateLayoutAnimations };