2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 15638
|
|
|
|
|
// Function ID: 15639
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: HomeDrawerDMsRow
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 17, 4564, 4033, 676, 21, 4668, 712, 589, 4739, 1236, 15634, 4239, 4236, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 15638 (HomeDrawerDMsRow)
|
|
|
|
|
import noopAll from "noop" /* 19 */;
|
|
|
|
|
import initialize from "initialize" /* 589 */;
|
|
|
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
|
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
|
|
|
import MobileHomeDrawerExperiment2 from "MobileHomeDrawerExperiment" /* 4239 */;
|
|
|
|
|
import Text from "Text" /* 4739 */;
|
|
|
|
|
import HomeDrawerSharedItem from "HomeDrawerSharedItem" /* 15634 */;
|
|
|
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
|
|
|
import closure_4 from "sortActivity" /* 4564 */;
|
|
|
|
|
import closure_5 from "markAllUserIdListsStale" /* 4033 */;
|
|
|
|
|
import { StatusTypes } from "ME" /* 676 */;
|
|
|
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
|
|
|
import createCacheKey from "createCacheKey" /* 4668 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function HomeDrawerDMsRow() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmp = callback3();
|
|
|
|
|
let obj = initialize;
|
|
|
|
|
const items = [closure_5, closure_4];
|
2026-07-20 16:05:17 +00:00
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => {
|
2026-07-29 08:29:29 +00:00
|
|
|
friendIDs = friendIDs.getFriendIDs();
|
|
|
|
|
return friendIDs.filter((arg0) => status.getStatus(arg0) !== constants.OFFLINE).length;
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp5 = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (stateFromStores > 0) {
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { style: null, children: null };
|
|
|
|
|
obj[0] = tmp.subtitle;
|
|
|
|
|
obj = { style: null };
|
|
|
|
|
obj[0] = tmp.onlineDot;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [callback(View, obj), ];
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { variant: "text-xs/medium", color: "text-muted", lineClamp: 1, children: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
const intl = tmp2(1236).intl;
|
|
|
|
|
const obj2 = { numFriends: null };
|
|
|
|
|
obj2[0] = stateFromStores;
|
|
|
|
|
obj1[3] = intl.format(tmp2(1236).t.N5UIKr, obj2);
|
2026-08-24 06:08:38 +00:00
|
|
|
items1[1] = callback(tmp2(4739).Text, obj1);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[1] = items1;
|
|
|
|
|
tmp5 = callback2(View, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj3 = { title: null, subtitle: null };
|
|
|
|
|
const obj4 = { variant: "text-md/medium", color: "text-default", lineClamp: 1, children: null };
|
|
|
|
|
const intl2 = tmp2(1236).intl;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj4[3] = intl2.string(getSystemLocale.t.YUU0RF);
|
|
|
|
|
obj3[0] = callback(Text.Text, obj4);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj3[1] = tmp5;
|
2026-08-24 06:08:38 +00:00
|
|
|
return callback(HomeDrawerSharedItem.HomeDrawerSharedItem, obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
noopAll;
|
|
|
|
|
({ jsx: error, jsxs: closure_8 } = jsxProd);
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey = { subtitle: { flexDirection: "row", alignItems: "center", gap: 4 }, onlineDot: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
createCacheKey = { width: 8, height: 8, borderRadius: ThemesDefault.radii.round, backgroundColor: ThemesDefault.colors.TEXT_STATUS_ONLINE };
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey[1] = createCacheKey;
|
2026-08-24 06:08:38 +00:00
|
|
|
let closure_9 = createCacheKey.createStyles(createCacheKey);
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/home_drawer/native/HomeDrawerDirectMessagesRow.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function HomeDrawerDMsRowWrapper() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const MobileHomeDrawerExperiment = MobileHomeDrawerExperiment2.MobileHomeDrawerExperiment;
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp2 = null;
|
|
|
|
|
if (MobileHomeDrawerExperiment.useConfig({ location: "dm-expanded-children" }).enableHome) {
|
|
|
|
|
tmp2 = null;
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp2 = callback(HomeDrawerDMsRow, {});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
};
|