Files
discord-decomp/sources/by-id/module-06383-useRecyclerViewManager.js
T
2026-07-28 01:06:53 +03:00

62 lines
3.9 KiB
JavaScript

/* Metro module 6383; source: unknown; dependencies: [6365, 31, 6384, 6409] */
import Module06365 from './module-06365.js'; /* Metro dependency 6365 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
import * as RecyclerViewManagerModule from './module-06384-RecyclerViewManager.js'; /* Metro dependency 6384 */
import * as VelocityTrackerModule from './module-06409-VelocityTracker.js'; /* Metro dependency 6409 */
function _fun49993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6561:6, offset: 0x0120eb2c, size: 123 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.useRecyclerViewManager = useRecyclerViewManager;
function useRecyclerViewManager(a0) { // fn#49994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6561:180, offset: 0x0120eba7, size: 155 bytes, params: 2, frame: 19
const env0_0 = a0;
const value2 = useState(_fun49995);
const property = Module06365(value2, 1)[0];
const property2 = Module06365(useState(_fun49996), 1)[0];
const data = a0.data;
useMemo(_fun49997, [a0]);
useMemo(_fun49998, [data]);
useEffect(_fun49999, []);
return {recyclerViewManager: property, velocityTracker: property2};
function _fun49995() { // fn#49995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6561:224, offset: 0x0120ec42, size: 60 bytes, params: 1, frame: 11
let value = environment.__proto__;
const RecyclerViewManager = (RecyclerViewManagerModule).RecyclerViewManager;
const binding = env0_0;
value = Object.create(RecyclerViewManager.prototype, {constructor: {value: RecyclerViewManager}});
const recyclerViewManager = new RecyclerViewManager(binding);
return recyclerViewManager instanceof Object ? recyclerViewManager : value;
}
function _fun49996() { // fn#49996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6561:298, offset: 0x0120ec7e, size: 53 bytes, params: 1, frame: 11
let value = environment.__proto__;
const VelocityTracker = (VelocityTrackerModule).VelocityTracker;
value = Object.create(VelocityTracker.prototype, {constructor: {value: VelocityTracker}});
const velocityTracker = new VelocityTracker();
return velocityTracker instanceof Object ? velocityTracker : value;
}
function _fun49997() { // fn#49997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6561:379, offset: 0x0120ecb3, size: 26 bytes, params: 1, frame: 11
env0_1.updateProps(env0_0);
}
function _fun49998() { // fn#49998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6561:417, offset: 0x0120eccd, size: 23 bytes, params: 1, frame: 9
env0_1.processDataUpdate();
}
function _fun49999() { // fn#49999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6561:460, offset: 0x0120ece4, size: 28 bytes, params: 1, frame: 9
env0_1.restoreIfNeeded();
return _fun50000;
function _fun50000() { // fn#50000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6561:498, offset: 0x0120ed00, size: 35 bytes, params: 1, frame: 10
env1_1.dispose();
env1_2.cleanUp();
}
}
}
}
global.__d(_fun49993, 6383, [6365, 31, 6384, 6409]) /* metro module 6383, dependencies: [6365, 31, 6384, 6409] */;