2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 10266
|
|
|
|
|
// Function ID: 79380
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: NotificationSettingsMockChannels
|
2026-07-27 11:26:19 +00:00
|
|
|
// Dependencies: [31, 27, 4327, 33, 4131, 689, 1212, 10267, 4639, 4127, 1273, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 10266 (NotificationSettingsMockChannels)
|
2026-07-23 10:11:24 +00:00
|
|
|
import "result";
|
|
|
|
|
import { View } from "get ActivityIndicator";
|
|
|
|
|
import { UnreadSetting } from "ReadStateTypes";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_5;
|
|
|
|
|
let closure_6;
|
|
|
|
|
let require = arg1;
|
|
|
|
|
({ jsx: closure_5, jsxs: closure_6 } = jsxProd);
|
|
|
|
|
_createForOfIteratorHelperLoose = {};
|
|
|
|
|
_createForOfIteratorHelperLoose = { backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_SURFACE_HIGH, overflow: "hidden", borderRadius: 10, paddingVertical: 8 };
|
|
|
|
|
_createForOfIteratorHelperLoose.card = _createForOfIteratorHelperLoose;
|
|
|
|
|
_createForOfIteratorHelperLoose.channel = { display: "flex", flexDirection: "row", alignItems: "center", paddingVertical: 4, justifyContent: "space-between", paddingRight: 12 };
|
|
|
|
|
_createForOfIteratorHelperLoose.channelName = { display: "flex", flexDirection: "row", alignItems: "center" };
|
|
|
|
|
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
|
|
|
|
|
const result = require("ReadStateTypes").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMockChannels.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function NotificationSettingsMockChannels(unreadSetting) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp = _createForOfIteratorHelperLoose();
|
|
|
|
|
const require = tmp;
|
|
|
|
|
let obj = { badged: true, unread: true, resolvedUnreadSetting: UnreadSetting.ALL_MESSAGES };
|
|
|
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.name = intl.string(require(1212) /* getSystemLocale */.t.EjLobP);
|
|
|
|
|
let items = [obj, , ];
|
|
|
|
|
obj = { badged: false, unread: true, resolvedUnreadSetting: UnreadSetting.ONLY_MENTIONS };
|
|
|
|
|
const intl2 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.name = intl2.string(require(1212) /* getSystemLocale */.t.Wgpwpp);
|
2026-07-20 16:05:17 +00:00
|
|
|
items[1] = obj;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { badged: false, unread: false, resolvedUnreadSetting: UnreadSetting.ONLY_MENTIONS };
|
|
|
|
|
const intl3 = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj.name = intl3.string(require(1212) /* getSystemLocale */.t.g9VImh);
|
2026-07-20 16:05:17 +00:00
|
|
|
items[2] = obj;
|
|
|
|
|
if (unreadSetting.unreadSetting === UnreadSetting.ALL_MESSAGES) {
|
|
|
|
|
items[1].resolvedUnreadSetting = UnreadSetting.ALL_MESSAGES;
|
|
|
|
|
}
|
|
|
|
|
return callback(View, {
|
|
|
|
|
style: tmp.card,
|
|
|
|
|
children: items.map((unread) => {
|
|
|
|
|
let obj = { style: tmp.channel };
|
|
|
|
|
obj = { style: tmp.channelName };
|
|
|
|
|
obj = { unread: unread.unread, resolvedUnreadSetting: unread.resolvedUnreadSetting };
|
2026-07-23 10:11:24 +00:00
|
|
|
const items = [outer1_5(outer1_1(outer1_2[7]), obj), , ];
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj1 = { style: { marginLeft: 12 }, size: "xs" };
|
|
|
|
|
let str;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (unread.resolvedUnreadSetting === outer1_4.ONLY_MENTIONS) {
|
2026-07-20 16:05:17 +00:00
|
|
|
str = "text-muted";
|
|
|
|
|
}
|
|
|
|
|
obj1.color = str;
|
2026-07-23 10:11:24 +00:00
|
|
|
items[1] = outer1_5(outer1_6(outer1_2[8]).TextIcon, obj1);
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj2 = { style: { marginLeft: 4 }, variant: "text-sm/semibold" };
|
|
|
|
|
let str2;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (unread.resolvedUnreadSetting === outer1_4.ONLY_MENTIONS) {
|
2026-07-20 16:05:17 +00:00
|
|
|
str2 = "text-muted";
|
|
|
|
|
}
|
|
|
|
|
obj2.color = str2;
|
|
|
|
|
obj2.children = unread.name;
|
2026-07-23 10:11:24 +00:00
|
|
|
items[2] = outer1_5(outer1_6(outer1_2[9]).Text, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items1 = [outer1_6(outer1_3, obj), ];
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj3 = {};
|
|
|
|
|
let num = 0;
|
|
|
|
|
if (unread.badged) {
|
|
|
|
|
num = 1;
|
|
|
|
|
}
|
|
|
|
|
obj3.value = num;
|
2026-07-23 10:11:24 +00:00
|
|
|
items1[1] = outer1_5(outer1_6(outer1_2[10]).Badge, obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items1;
|
2026-07-23 10:11:24 +00:00
|
|
|
return outer1_6(outer1_3, obj, unread.name);
|
2026-07-20 16:05:17 +00:00
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|