2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 10265
|
|
|
|
|
// Function ID: 79373
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: NotificationSettingsMessageUnread
|
2026-07-27 11:26:19 +00:00
|
|
|
// Dependencies: [31, 27, 33, 4131, 689, 10259, 4127, 1212, 4661, 10266, 10257, 4099, 10268, 1935, 10251, 10270, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: NotificationSettingsChannelMessageUnread, NotificationSettingsGuildMessageUnread
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 10265 (NotificationSettingsMessageUnread)
|
2026-07-23 10:11:24 +00:00
|
|
|
import "result";
|
|
|
|
|
import { View } from "get ActivityIndicator";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_4;
|
|
|
|
|
let closure_5;
|
|
|
|
|
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;
|
|
|
|
|
const tmp = _createForOfIteratorHelperLoose();
|
2026-07-27 11:26:19 +00:00
|
|
|
let obj = _require(10259);
|
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-20 16:05:17 +00:00
|
|
|
obj = { style: onPress.style };
|
|
|
|
|
obj = { style: tmp.header };
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj1 = { variant: "text-sm/semibold", color: "text-default", style: tmp.headerTitle };
|
|
|
|
|
const intl = _require(1212).intl;
|
|
|
|
|
obj1.children = intl.string(_require(1212).t.Tqd1Af);
|
2026-07-25 08:10:48 +00:00
|
|
|
const items = [callback(_require(4127).Text, obj1), ];
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj2 = { variant: "text-xs/semibold", color: "text-default" };
|
|
|
|
|
const intl2 = _require(1212).intl;
|
|
|
|
|
obj2.children = intl2.string(_require(1212).t.RpQgm5);
|
2026-07-25 08:10:48 +00:00
|
|
|
items[1] = callback(_require(4127).Text, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items;
|
|
|
|
|
const items1 = [callback2(View, obj), ];
|
|
|
|
|
const obj3 = { onPress: onPress.onCustomize, activeOpacity: 0.6 };
|
|
|
|
|
const obj4 = { style: tmp.card };
|
2026-07-27 11:26:19 +00:00
|
|
|
const items2 = [callback(importDefault(10266), { unreadSetting: onPress.setting }), , ];
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj6 = { variant: "text-sm/medium", style: tmp.label };
|
|
|
|
|
let label;
|
|
|
|
|
if (null != found) {
|
|
|
|
|
label = found.label;
|
|
|
|
|
}
|
|
|
|
|
let str = "unset";
|
|
|
|
|
if (null != label) {
|
|
|
|
|
str = label;
|
|
|
|
|
}
|
|
|
|
|
obj6.children = str;
|
2026-07-25 08:10:48 +00:00
|
|
|
items2[1] = callback(_require(4127).Text, obj6);
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj7 = { onPress: onPress.onCustomize };
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj8 = { variant: "text-sm/semibold", style: tmp.cta, color: "text-brand" };
|
|
|
|
|
const intl3 = _require(1212).intl;
|
|
|
|
|
const items3 = [intl3.string(_require(1212).t.yxiV9W), " "];
|
2026-07-20 16:05:17 +00:00
|
|
|
obj8.children = items3;
|
2026-07-25 08:10:48 +00:00
|
|
|
obj7.children = callback2(_require(4127).Text, obj8);
|
|
|
|
|
items2[2] = callback(_require(4661).PressableOpacity, obj7);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj4.children = items2;
|
|
|
|
|
obj3.children = callback2(View, obj4);
|
2026-07-25 08:10:48 +00:00
|
|
|
items1[1] = callback(_require(4661).PressableOpacity, obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items1;
|
|
|
|
|
return callback2(View, obj);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
({ jsx: closure_4, jsxs: closure_5 } = jsxProd);
|
|
|
|
|
_createForOfIteratorHelperLoose = {};
|
|
|
|
|
_createForOfIteratorHelperLoose = { backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BASE_LOWEST, borderColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_MOD_SUBTLE, borderRadius: 20, borderWidth: 1, padding: 14 };
|
|
|
|
|
_createForOfIteratorHelperLoose.card = _createForOfIteratorHelperLoose;
|
|
|
|
|
_createForOfIteratorHelperLoose.cta = { marginTop: 4, textAlign: "center" };
|
|
|
|
|
_createForOfIteratorHelperLoose.label = { marginTop: 8, textAlign: "center" };
|
|
|
|
|
_createForOfIteratorHelperLoose.header = { marginBottom: 8 };
|
|
|
|
|
_createForOfIteratorHelperLoose.headerTitle = { marginBottom: 4 };
|
|
|
|
|
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
|
|
|
|
|
const result = require("jsxProd").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;
|
|
|
|
|
let obj = {
|
2026-07-20 16:05:17 +00:00
|
|
|
style: style.style,
|
2026-07-27 11:26:19 +00:00
|
|
|
setting: _require(10257).useGuildPresetSettings(style.guildId).unread,
|
2026-07-20 16:05:17 +00:00
|
|
|
onCustomize() {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = outer1_1(outer1_2[11]);
|
|
|
|
|
obj = { guildId: style.guildId };
|
|
|
|
|
obj.openLazy(style(outer1_2[13])(outer1_2[12], outer1_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;
|
|
|
|
|
let obj = {
|
2026-07-20 16:05:17 +00:00
|
|
|
style: style.style,
|
2026-07-27 11:26:19 +00:00
|
|
|
setting: _require(10251).useChannelPresetSettings(style.channel).unread,
|
2026-07-20 16:05:17 +00:00
|
|
|
onCustomize() {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = outer1_1(outer1_2[11]);
|
|
|
|
|
obj = { channel: style.channel };
|
|
|
|
|
obj.openLazy(style(outer1_2[13])(outer1_2[15], outer1_2.paths), "MessageUnreadActionSheet", obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return callback(NotificationSettingsMessageUnread, obj);
|
|
|
|
|
};
|