decord/source/modules/notifications/settings/native/NotificationSettingsMessageUnread.tsx

98 lines
4.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9995
// Function ID: 9996
2026-07-20 16:05:17 +00:00
// Name: NotificationSettingsMessageUnread
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 9989, 4376, 1236, 4949, 9996, 9987, 4347, 9998, 2009, 9981, 10000, 2]
2026-07-20 16:05:17 +00:00
// Exports: NotificationSettingsChannelMessageUnread, NotificationSettingsGuildMessageUnread
2026-08-25 06:04:03 +00:00
// Module 9995 (NotificationSettingsMessageUnread)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
2026-08-25 06:04:03 +00:00
import NotificationSettingsMockChannelsDefault from "NotificationSettingsMockChannels" /* 9996 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function NotificationSettingsMessageUnread(onPress) {
2026-07-23 10:11:24 +00:00
const _require = onPress;
2026-08-24 06:08:38 +00:00
const tmp = callback3();
2026-08-25 06:04:03 +00:00
let obj = _require(9989);
2026-07-20 16:05:17 +00:00
const unreadSelectOptions = obj.getUnreadSelectOptions();
2026-07-23 10:11:24 +00:00
const found = unreadSelectOptions.find((value) => value.value === onPress.setting);
2026-07-29 08:29:29 +00:00
obj = { style: onPress.style, children: null };
obj = { style: tmp.header, children: null };
2026-08-24 06:08:38 +00:00
obj1 = { variant: "text-sm/semibold", color: "text-default", style: tmp.headerTitle, children: null };
2026-07-29 08:29:29 +00:00
const intl = _require(1236).intl;
obj1[3] = intl.string(_require(1236).t.Tqd1Af);
2026-08-25 06:04:03 +00:00
const items = [callback(_require(4376).Text, obj1), ];
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "text-xs/semibold", color: "text-default", children: null };
const intl2 = _require(1236).intl;
obj2[2] = intl2.string(_require(1236).t.RpQgm5);
2026-08-25 06:04:03 +00:00
items[1] = callback(_require(4376).Text, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-20 16:05:17 +00:00
const items1 = [callback2(View, obj), ];
2026-07-29 08:29:29 +00:00
const obj3 = { onPress: onPress.onCustomize, activeOpacity: 0.6, children: null };
const obj4 = { style: tmp.card, children: null };
2026-08-24 06:08:38 +00:00
const items2 = [callback(NotificationSettingsMockChannelsDefault, { unreadSetting: onPress.setting }), , ];
2026-07-29 08:29:29 +00:00
const obj6 = { variant: "text-sm/medium", style: tmp.label, children: null };
let str;
if (found != null) {
str = found.label;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (str == null) {
str = "unset";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj6[2] = str;
2026-08-25 06:04:03 +00:00
items2[1] = callback(_require(4376).Text, obj6);
2026-07-29 08:29:29 +00:00
const obj7 = { onPress: onPress.onCustomize, children: null };
const obj8 = { variant: "text-sm/semibold", style: tmp.cta, color: "text-brand", children: null };
const intl3 = tmp2(1236).intl;
const items3 = [intl3.string(_require(1236).t.yxiV9W), " "];
obj8[3] = items3;
2026-08-25 06:04:03 +00:00
obj7[1] = callback2(_require(4376).Text, obj8);
items2[2] = callback(_require(4949).PressableOpacity, obj7);
2026-07-29 08:29:29 +00:00
obj4[1] = items2;
obj3[2] = callback2(View, obj4);
2026-08-25 06:04:03 +00:00
items1[1] = callback(_require(4949).PressableOpacity, obj3);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-20 16:05:17 +00:00
return callback2(View, obj);
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { card: null, cta: null, label: null, header: null, headerTitle: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST, borderColor: ThemesDefault.colors.BACKGROUND_MOD_SUBTLE, borderRadius: 20, borderWidth: 1, padding: 14 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { marginTop: 4, textAlign: "center" };
createCacheKey[2] = { marginTop: 8, textAlign: "center" };
createCacheKey[3] = { marginBottom: 8 };
createCacheKey[4] = { marginBottom: 4 };
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMessageUnread.tsx");
2026-07-20 16:05:17 +00:00
export const NotificationSettingsGuildMessageUnread = function NotificationSettingsGuildMessageUnread(style) {
2026-07-23 10:11:24 +00:00
const _require = style;
2026-08-24 06:08:38 +00:00
let obj = {
style: style.style,
2026-08-25 06:04:03 +00:00
setting: _require(9987).useGuildPresetSettings(style.guildId).unread,
2026-08-24 06:08:38 +00:00
onCustomize() {
let obj = closure_1_1(closure_1_2[11]);
obj = { guildId: style.guildId };
obj.openLazy(style(closure_1_2[13])(closure_1_2[12], closure_1_2.paths), "MessageUnreadActionSheet", obj);
}
2026-07-20 16:05:17 +00:00
};
return callback(NotificationSettingsMessageUnread, obj);
};
export const NotificationSettingsChannelMessageUnread = function NotificationSettingsChannelMessageUnread(style) {
2026-07-23 10:11:24 +00:00
const _require = style;
2026-08-24 06:08:38 +00:00
let obj = {
style: style.style,
2026-08-25 06:04:03 +00:00
setting: _require(9981).useChannelPresetSettings(style.channel).unread,
2026-08-24 06:08:38 +00:00
onCustomize() {
let obj = closure_1_1(closure_1_2[11]);
obj = { channel: style.channel };
obj.openLazy(style(closure_1_2[13])(closure_1_2[15], closure_1_2.paths), "MessageUnreadActionSheet", obj);
}
2026-07-20 16:05:17 +00:00
};
return callback(NotificationSettingsMessageUnread, obj);
};