// Module ID: 15785 // Function ID: 15786 // Dependencies: [19, 21, 4445, 500, 9500, 15786, 15796, 15681, 11048, 5604, 5958, 7728, 15864, 10236, 2] // Module 15785 import importAllResult from "noop" /* 19 */; import jsxProd from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4445 */; const require = arg1; let c3 = importAllResult; ({ jsx: c4, jsxs: c5 } = jsxProd); let closure_6 = createCacheKey.createStyles({ wrapper: { position: "relative", overflow: "visible", flex: 1 } }); const memoResult = importAllResult.memo(function GuildsBar(enableHome) { let flag = enableHome.enableHome; if (flag === undefined) { flag = false; } listProps = undefined; let tmp4 = fastListRef(15786)(); fastListRef = tmp4.fastListRef; listProps = fastListRef; ({ scrollPosition, gesture, scrollerRef, persistantKeys, onFastListScroll, onFastListScrollWorklet } = tmp4); let tmp = callback(); ({ listProps, listDataProps } = fastListRef(15796)(fastListRef)); const items = [fastListRef]; const effect = importAllResult.useEffect(() => { const result = listProps(ref[7]).registerGuildVisibilityMethod(listProps); }, items); dependencyMap = undefined; importAllResult = undefined; dependencyMap = importAllResult.useRef(listProps); importAllResult = importAllResult.useRef(false); const effect1 = importAllResult.useEffect(() => { if (obj.isAndroid()) { closure_0 = fastListRef(tmp[4]).addOnPipModeChangedListener((arg0) => { if (arg0) { closure_3.current = true; } }); return () => { let removeResult; if (closure_0 != null) { removeResult = closure_0.remove(); } return removeResult; }; } obj = listProps(ref[3]); tmp = ref; }, []); const items1 = [fastListRef, listProps]; const effect2 = importAllResult.useEffect(() => { const current = ref.current; ref.current = listProps; if (ref2.current) { let num = tmp.chunkBase; if (num == null) { num = 0; } let num2 = current.chunkBase; if (num2 == null) { num2 = 0; } if (num > num2) { tmp2.current = false; if (tmp4) { const current2 = fastListRef.current; if (current2 != null) { const blocks = current2.computeBlocks(); } } tmp4 = tmp.insetStart === current.insetStart && tmp.insetEnd === current.insetEnd; } } }, items1); let obj = { profile: null, children: null }; const tmp5 = fastListRef(15796)(fastListRef); obj[0] = listProps(11048).Profiles.Guilds; obj = { gesture, children: null }; obj = { style: tmp.wrapper, collapsable: false, nativeID: "guilds-bar-view", children: null }; const tmp10 = fastListRef(11048); const tmp11 = closure_5; obj1 = {}; const tmp12 = fastListRef(5958); 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 obj2; if (flag) { obj2 = { overflow: "visible" }; } obj1.style = obj2; obj1.nativeID = "guilds-bar-fast-list"; const items2 = [closure_4(fastListRef(7728), obj1), closure_4(fastListRef(15864), {}), closure_4(fastListRef(10236), {})]; obj[3] = items2; obj[1] = tmp11(tmp12, obj); obj[1] = closure_4(listProps(5604).GestureDetector, obj); return closure_4(tmp10, obj); }); let result = require("set").fileFinishedImporting("modules/guilds_bar/native/GuildsBar.tsx"); export default memoResult;