decord/source/modules/guilds_bar/native/GuildsBar.tsx

128 lines
4.3 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 14913
// Function ID: 113589
// Dependencies: [31, 33, 4165, 477, 10237, 14914, 14924, 14993, 10872, 5251, 5550, 7655, 14994, 2]
2026-07-20 16:05:17 +00:00
2026-07-28 08:39:19 +00:00
// Module 14913
2026-07-23 10:11:24 +00:00
import importAllResult from "result";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_4;
let closure_5;
const require = arg1;
({ jsx: closure_4, jsxs: closure_5 } = jsxProd);
let closure_6 = _createForOfIteratorHelperLoose.createStyles({ wrapper: { position: "relative", overflow: "visible", flex: 1 } });
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function GuildsBar(enableHome) {
let gesture;
let listDataProps;
let listProps;
let onFastListScroll;
let onFastListScrollWorklet;
let persistantKeys;
let scrollPosition;
let scrollerRef;
let flag = enableHome.enableHome;
if (flag === undefined) {
flag = false;
}
2026-07-23 10:11:24 +00:00
let fastListRef;
2026-07-28 08:39:19 +00:00
const tmp2 = importDefault(14914)();
2026-07-23 10:11:24 +00:00
fastListRef = tmp2.fastListRef;
2026-07-20 16:05:17 +00:00
({ scrollPosition, gesture, scrollerRef, persistantKeys, onFastListScroll, onFastListScrollWorklet } = tmp2);
const tmp = callback2();
2026-07-28 08:39:19 +00:00
({ listProps, listDataProps } = importDefault(14924)(fastListRef));
2026-07-23 10:11:24 +00:00
let items = [fastListRef];
let effect = importAllResult.useEffect(() => {
const result = fastListRef(outer1_2[7]).registerGuildVisibilityMethod(fastListRef);
2026-07-20 16:05:17 +00:00
}, items);
2026-07-23 10:11:24 +00:00
(function usePipResizeFix(listProps, fastListRef) {
let closure_0 = listProps;
let closure_1 = fastListRef;
let closure_2 = outer1_3.useRef(listProps);
let closure_3 = outer1_3.useRef(false);
const effect = outer1_3.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (obj.isAndroid()) {
2026-07-23 10:11:24 +00:00
let closure_0 = outer2_1(outer2_2[4]).addOnPipModeChangedListener((arg0) => {
2026-07-20 16:05:17 +00:00
if (arg0) {
2026-07-23 10:11:24 +00:00
outer1_3.current = true;
2026-07-20 16:05:17 +00:00
}
});
return () => {
let removeResult;
if (null != closure_0) {
removeResult = closure_0.remove();
}
return removeResult;
};
}
2026-07-23 10:11:24 +00:00
obj = fastListRef(outer2_2[3]);
2026-07-20 16:05:17 +00:00
}, []);
const items = [fastListRef, listProps];
2026-07-23 10:11:24 +00:00
const effect1 = outer1_3.useEffect(() => {
const current = ref2.current;
ref2.current = listProps;
if (ref3.current) {
const chunkBase = listProps.chunkBase;
2026-07-20 16:05:17 +00:00
let num = 0;
if (null != chunkBase) {
num = chunkBase;
}
const chunkBase2 = current.chunkBase;
let num2 = 0;
if (null != chunkBase2) {
num2 = chunkBase2;
}
if (num > num2) {
2026-07-23 10:11:24 +00:00
ref3.current = false;
let tmp5 = listProps.insetStart === current.insetStart;
2026-07-20 16:05:17 +00:00
if (tmp5) {
2026-07-23 10:11:24 +00:00
tmp5 = listProps.insetEnd === current.insetEnd;
2026-07-20 16:05:17 +00:00
}
if (tmp5) {
2026-07-23 10:11:24 +00:00
const current2 = ref.current;
2026-07-20 16:05:17 +00:00
if (null != current2) {
const blocks = current2.computeBlocks();
}
}
}
}
}, items);
2026-07-23 10:11:24 +00:00
})(listProps, fastListRef);
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-28 08:39:19 +00:00
const tmp3 = importDefault(14924)(fastListRef);
obj.profile = fastListRef(10872).Profiles.Guilds;
2026-07-20 16:05:17 +00:00
obj = { gesture };
2026-07-23 10:11:24 +00:00
obj = { style: tmp.wrapper, collapsable: false, nativeID: "guilds-bar-view" };
2026-07-28 08:39:19 +00:00
const tmp7 = importDefault(10872);
2026-07-20 16:05:17 +00:00
const tmp8 = closure_5;
const obj1 = {};
2026-07-28 08:39:19 +00:00
const tmp9 = importDefault(5550);
2026-07-20 16:05:17 +00:00
const merged = Object.assign(listProps);
const merged1 = Object.assign(listDataProps);
obj1["ref"] = fastListRef;
obj1["manualRef"] = scrollerRef;
obj1["disableContentWrappers"] = true;
obj1["onScroll"] = onFastListScroll;
obj1["onScrollWorklet"] = onFastListScrollWorklet;
obj1["scrollPosValue"] = scrollPosition;
obj1["stickySectionsVariant"] = "sticky-mount";
obj1["optimizeListItemRender"] = true;
obj1["persistantKeys"] = persistantKeys;
obj1["disableRecyclingOnFullCompute"] = true;
let tmp13;
if (flag) {
const obj2 = { overflow: "visible" };
tmp13 = obj2;
}
obj1["style"] = tmp13;
obj1["nativeID"] = "guilds-bar-fast-list";
2026-07-28 08:39:19 +00:00
const items1 = [callback(importDefault(7655), obj1), callback(importDefault(14994), {})];
2026-07-20 16:05:17 +00:00
obj.children = items1;
obj.children = tmp8(tmp9, obj);
2026-07-28 08:39:19 +00:00
obj.children = callback(fastListRef(5251).GestureDetector, obj);
2026-07-20 16:05:17 +00:00
return callback(tmp7, obj);
});
2026-07-23 10:11:24 +00:00
let result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("modules/guilds_bar/native/GuildsBar.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;