decord/source/components_native/MainChannels.tsx

106 lines
4.1 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 14946
// Function ID: 14947
2026-07-20 16:05:17 +00:00
// Name: DM_WIDTH
2026-07-31 08:44:05 +00:00
// Dependencies: [32, 19, 17, 676, 21, 14947, 5182, 4193, 712, 4047, 14948, 14953, 14954, 14955, 4054, 15041, 15042, 15118, 10910, 2]
2026-07-20 16:05:17 +00:00
2026-07-31 08:44:05 +00:00
// Module 14946 (DM_WIDTH)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import importAllResult from "set";
import get_ActivityIndicator from "GuildChannels";
2026-07-23 10:11:24 +00:00
import ME from "ME";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c10;
let c5;
let c9;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
const require = arg1;
let c4 = importAllResult;
({ View: c5, StyleSheet: closure_6 } = get_ActivityIndicator);
2026-07-23 10:11:24 +00:00
const DM_WIDTH = ME.DM_WIDTH;
ME = ME.ME;
2026-07-29 08:29:29 +00:00
({ jsx: c9, jsxs: c10 } = jsxProd);
let obj = { sideContainer: null, side: null, sideTablet: null };
obj = { position: "absolute", top: 0, left: DM_WIDTH, bottom: 0, right: 0, flexDirection: "row", borderLeftWidth: 1, borderTopWidth: 1, borderColor: require("Themes").colors.APP_FRAME_BORDER, borderTopLeftRadius: require("Themes").radii.xl };
obj[0] = obj;
createCacheKey = { borderTopLeftRadius: require("Themes").radii.xl - 1, borderTopRightRadius: require("Themes").radii.none };
obj[1] = createCacheKey;
obj[2] = { borderTopRightRadius: require("Themes").modules.mobile.CHANNEL_DRAWER_CORNER_RADIUS };
let closure_11 = createCacheKey.createStyles(obj);
2026-07-20 16:05:17 +00:00
let closure_12 = importAllResult.memo(function LeftMenuTabsInner() {
let gesture;
let homeDrawerState;
let panelStyles;
2026-07-29 08:29:29 +00:00
const tmp = callback3();
let first;
let isChatBesideChannelList;
2026-07-31 08:44:05 +00:00
let obj = first(14947);
2026-07-29 08:29:29 +00:00
const tmp4 = callback(obj.useGuildsRouteGuildAndChannelId(), 2);
first = tmp4[0];
let obj1 = importAllResult;
const ref = importAllResult.useRef(first);
isChatBesideChannelList = ref;
let items = [first];
const effect = importAllResult.useEffect(() => {
isChatBesideChannelList.current = first;
}, items);
let tmp8 = null != first;
if (tmp8) {
tmp8 = first !== ME;
}
2026-07-31 08:44:05 +00:00
let tmp11 = isChatBesideChannelList(5182)(ref);
2026-07-29 08:29:29 +00:00
if (tmp8) {
tmp11 = first;
}
2026-07-31 08:44:05 +00:00
isChatBesideChannelList = tmp10(4047)().isChatBesideChannelList;
2026-07-29 08:29:29 +00:00
const items1 = [tmp, isChatBesideChannelList];
const memo = obj1.useMemo(() => {
const items = [first.side, ];
2026-07-20 16:05:17 +00:00
let sideTablet = isChatBesideChannelList;
if (isChatBesideChannelList) {
2026-07-29 08:29:29 +00:00
sideTablet = first.sideTablet;
2026-07-20 16:05:17 +00:00
}
items[1] = sideTablet;
return items;
2026-07-29 08:29:29 +00:00
}, items1);
2026-07-31 08:44:05 +00:00
const homeGesture = first(14948).useHomeGesture();
2026-07-20 16:05:17 +00:00
({ gesture, panelStyles, homeDrawerState } = homeGesture);
2026-07-31 08:44:05 +00:00
const sum = DM_WIDTH + tmp10(14953)();
2026-07-29 08:29:29 +00:00
obj = { value: homeDrawerState, children: null };
obj = { gesture, children: null };
const items2 = [absoluteFill.absoluteFill, ];
let tmp18;
2026-07-20 16:05:17 +00:00
if (isChatBesideChannelList) {
2026-07-29 08:29:29 +00:00
tmp18 = sum;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1 = { style: items2, children: null };
items2[1] = { width: tmp18 };
2026-07-31 08:44:05 +00:00
const items3 = [closure_9(first(14955).HomePanelContent, {}), ];
2026-07-29 08:29:29 +00:00
const obj2 = { style: items4, pointerEvents: "box-none", nativeID: "messages-parent-view", children: null };
items4 = [panelStyles, tmp.sideContainer];
2026-07-20 16:05:17 +00:00
let num = 0;
2026-07-29 08:29:29 +00:00
if (tmp8) {
2026-07-20 16:05:17 +00:00
num = 1;
}
2026-07-29 08:29:29 +00:00
const obj3 = { activeIndex: num, children: null };
2026-07-31 08:44:05 +00:00
const items5 = [closure_9(isChatBesideChannelList(15042), { style: memo }), closure_9(isChatBesideChannelList(15118), { style: memo, selectedGuildId: tmp11, selectedChannelId: tmp4[1] })];
2026-07-29 08:29:29 +00:00
obj3[1] = items5;
2026-07-31 08:44:05 +00:00
obj2[3] = closure_10(first(15041).NativeFreezeScreens, obj3);
items3[1] = closure_9(isChatBesideChannelList(4054).View, obj2);
2026-07-29 08:29:29 +00:00
obj1[1] = items3;
obj[1] = closure_10(closure_5, obj1);
2026-07-31 08:44:05 +00:00
obj[1] = closure_9(first(14954).NonCollapsableGestureDetector, obj);
return closure_9(first(14948).HomeDrawerStateContext.Provider, obj);
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
let obj2 = { borderTopRightRadius: require("Themes").modules.mobile.CHANNEL_DRAWER_CORNER_RADIUS };
2026-07-23 10:11:24 +00:00
const memoResult = importAllResult.memo(function MainChannelsRedesignInner() {
2026-07-29 08:29:29 +00:00
const obj = { profile: null, children: null };
2026-07-31 08:44:05 +00:00
obj[0] = require(10910) /* setLevels */.Profiles.LeftPanel;
2026-07-29 08:29:29 +00:00
obj[1] = callback2(closure_12, {});
2026-07-31 08:44:05 +00:00
return callback2(importDefault(10910), obj);
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("get ActivityIndicator").fileFinishedImporting("components_native/MainChannels.tsx");
export default memoResult;