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

127 lines
5.3 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 10257
// Function ID: 79344
2026-07-20 16:05:17 +00:00
// Name: NotificationSettingsMessageNotification
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 33, 4131, 689, 10258, 4127, 1212, 4661, 10259, 10256, 4099, 10261, 1935, 10250, 10263, 2]
2026-07-20 16:05:17 +00:00
// Exports: NotificationSettingsChannelMessageNotification, NotificationSettingsGuildMessageNotification
2026-07-25 08:10:48 +00:00
// Module 10257 (NotificationSettingsMessageNotification)
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
class NotificationSettingsMessageNotification {
constructor(arg0) {
2026-07-23 10:11:24 +00:00
closure_0 = global;
tmp = c6();
obj = require("getPushNotificationSelectOptions");
2026-07-20 16:05:17 +00:00
pushNotificationSelectOptions = obj.getPushNotificationSelectOptions();
2026-07-23 10:11:24 +00:00
found = pushNotificationSelectOptions.find((value) => value.value === onPress.setting);
2026-07-20 16:05:17 +00:00
obj = { style: global.style };
obj1 = { style: tmp.header };
tmp3 = jsxs;
tmp4 = View;
tmp5 = jsxs;
tmp6 = View;
2026-07-23 10:11:24 +00:00
obj2 = { variant: "text-sm/semibold", color: "text-default" };
2026-07-21 22:01:30 +00:00
obj2.style = tmp.headerTitle;
2026-07-23 10:11:24 +00:00
intl = require("getSystemLocale").intl;
obj2.children = intl.string(require("getSystemLocale").t["1m22ZB"]);
2026-07-20 16:05:17 +00:00
items = [, ];
2026-07-23 10:11:24 +00:00
items[0] = jsx(require("Text").Text, obj2);
2026-07-20 16:05:17 +00:00
tmp7 = jsx;
2026-07-23 10:11:24 +00:00
obj3 = { variant: "text-xs/semibold", color: "text-default" };
2026-07-20 16:05:17 +00:00
if ("guild" === global.context) {
2026-07-23 10:11:24 +00:00
tmp11 = closure_0;
tmp12 = closure_2;
intl3 = require("getSystemLocale").intl;
stringResult = intl3.string(require("getSystemLocale").t["4bP2ZZ"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp8 = closure_0;
tmp9 = closure_2;
intl2 = require("getSystemLocale").intl;
stringResult = intl2.string(require("getSystemLocale").t["R1j5+4"]);
2026-07-20 16:05:17 +00:00
}
obj3.children = stringResult;
2026-07-23 10:11:24 +00:00
items[1] = tmp7(require("Text").Text, obj3);
2026-07-20 16:05:17 +00:00
obj1.children = items;
items1 = [, ];
items1[0] = tmp5(tmp6, obj1);
tmp13 = jsx;
obj4 = { onPress: global.onCustomize, activeOpacity: 0.6 };
obj5 = { style: tmp.card };
tmp14 = jsxs;
tmp15 = View;
obj6 = { notificationSetting: global.setting };
items2 = [, , ];
2026-07-23 10:11:24 +00:00
items2[0] = jsx(require("NotificationSettingsMockMessage"), obj6);
2026-07-20 16:05:17 +00:00
tmp16 = jsx;
obj7 = { variant: "text-sm/medium", style: tmp.label };
label = undefined;
if (null != found) {
label = found.label;
}
str = "unset";
if (null != label) {
str = label;
}
obj7.children = str;
2026-07-23 10:11:24 +00:00
items2[1] = tmp16(require("Text").Text, obj7);
2026-07-20 16:05:17 +00:00
obj8 = { onPress: global.onCustomize };
2026-07-23 10:11:24 +00:00
obj9 = { variant: "text-sm/semibold", style: null, color: "text-brand" };
obj9.style = tmp.cta;
intl4 = require("getSystemLocale").intl;
obj9.children = intl4.string(require("getSystemLocale").t.yxiV9W);
obj8.children = jsx(require("Text").Text, obj9);
items2[2] = jsx(require("PressableBase").PressableOpacity, obj8);
2026-07-20 16:05:17 +00:00
obj5.children = items2;
obj4.children = tmp14(tmp15, obj5);
2026-07-23 10:11:24 +00:00
items1[1] = tmp13(require("PressableBase").PressableOpacity, obj4);
2026-07-20 16:05:17 +00:00
obj.children = items1;
return tmp3(tmp4, 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 = { textAlign: "center", marginTop: 4 };
_createForOfIteratorHelperLoose.label = { textAlign: "center", marginTop: 8 };
_createForOfIteratorHelperLoose.header = { marginBottom: 8 };
_createForOfIteratorHelperLoose.headerTitle = { marginBottom: 4 };
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const result = require("jsxProd").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMessageNotification.tsx");
2026-07-20 16:05:17 +00:00
export default NotificationSettingsMessageNotification;
export const NotificationSettingsGuildMessageNotification = function NotificationSettingsGuildMessageNotification(style) {
2026-07-23 10:11:24 +00:00
const _require = style;
let obj = {
2026-07-20 16:05:17 +00:00
context: "guild",
style: style.style,
2026-07-25 08:10:48 +00:00
setting: _require(10256).useGuildPresetSettings(style.guildId).notification,
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), "MessageNotificationGuildActionSheet", obj);
2026-07-20 16:05:17 +00:00
}
};
return callback(NotificationSettingsMessageNotification, obj);
};
export const NotificationSettingsChannelMessageNotification = function NotificationSettingsChannelMessageNotification(style) {
2026-07-23 10:11:24 +00:00
const _require = style;
let obj = {
2026-07-20 16:05:17 +00:00
context: "channel",
style: style.style,
2026-07-25 08:10:48 +00:00
setting: _require(10250).useChannelPresetSettings(style.channel).notification,
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), "MessageNotificationChannelActionSheet", obj);
2026-07-20 16:05:17 +00:00
}
};
return callback(NotificationSettingsMessageNotification, obj);
};