93 lines
4.2 KiB
TypeScript
93 lines
4.2 KiB
TypeScript
// Module ID: 10289
|
|
// Function ID: 79451
|
|
// Name: NotificationSettingsMessageUnread
|
|
// Dependencies: []
|
|
// Exports: NotificationSettingsChannelMessageUnread, NotificationSettingsGuildMessageUnread
|
|
|
|
// Module 10289 (NotificationSettingsMessageUnread)
|
|
function NotificationSettingsMessageUnread(onPress) {
|
|
const arg1 = onPress;
|
|
const tmp = callback3();
|
|
let obj = arg1(dependencyMap[5]);
|
|
const unreadSelectOptions = obj.getUnreadSelectOptions();
|
|
const found = unreadSelectOptions.find((value) => value.value === value.setting);
|
|
obj = { style: onPress.style };
|
|
obj = { style: tmp.header };
|
|
const obj1 = { cachedAt: "explicit_content_friend_dm", edpbxy: "enum", style: tmp.headerTitle };
|
|
const intl = arg1(dependencyMap[7]).intl;
|
|
obj1.children = intl.string(arg1(dependencyMap[7]).t.Tqd1Af);
|
|
const items = [callback(arg1(dependencyMap[6]).Text, obj1), ];
|
|
const obj2 = {};
|
|
const intl2 = arg1(dependencyMap[7]).intl;
|
|
obj2.children = intl2.string(arg1(dependencyMap[7]).t.RpQgm5);
|
|
items[1] = callback(arg1(dependencyMap[6]).Text, obj2);
|
|
obj.children = items;
|
|
const items1 = [callback2(View, obj), ];
|
|
const obj3 = { onPress: onPress.onCustomize, activeOpacity: 0.6 };
|
|
const obj4 = { style: tmp.card };
|
|
const items2 = [callback(importDefault(dependencyMap[9]), { unreadSetting: onPress.setting }), , ];
|
|
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;
|
|
items2[1] = callback(arg1(dependencyMap[6]).Text, obj6);
|
|
const obj7 = { onPress: onPress.onCustomize };
|
|
const obj8 = { style: tmp.cta };
|
|
const intl3 = arg1(dependencyMap[7]).intl;
|
|
const items3 = [intl3.string(arg1(dependencyMap[7]).t.yxiV9W), " "];
|
|
obj8.children = items3;
|
|
obj7.children = callback2(arg1(dependencyMap[6]).Text, obj8);
|
|
items2[2] = callback(arg1(dependencyMap[8]).PressableOpacity, obj7);
|
|
obj4.children = items2;
|
|
obj3.children = callback2(View, obj4);
|
|
items1[1] = callback(arg1(dependencyMap[8]).PressableOpacity, obj3);
|
|
obj.children = items1;
|
|
return callback2(View, obj);
|
|
}
|
|
importAll(dependencyMap[0]);
|
|
const View = arg1(dependencyMap[1]).View;
|
|
({ jsx: closure_4, jsxs: closure_5 } = arg1(dependencyMap[2]));
|
|
let obj = arg1(dependencyMap[3]);
|
|
obj = {};
|
|
obj = { backgroundColor: importDefault(dependencyMap[4]).colors.BACKGROUND_BASE_LOWEST, borderColor: importDefault(dependencyMap[4]).colors.BACKGROUND_MOD_SUBTLE };
|
|
obj.card = obj;
|
|
obj.cta = { MINIMAL: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000676009517133676, currentScreenId: 131072.0007038191 };
|
|
obj.label = { MINIMAL: null, currentScreenId: null };
|
|
obj.header = { marginBottom: 8 };
|
|
obj.headerTitle = { marginBottom: 4 };
|
|
let closure_6 = obj.createStyles(obj);
|
|
const tmp3 = arg1(dependencyMap[2]);
|
|
const result = arg1(dependencyMap[16]).fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMessageUnread.tsx");
|
|
|
|
export const NotificationSettingsGuildMessageUnread = function NotificationSettingsGuildMessageUnread(style) {
|
|
const arg1 = style;
|
|
const obj = {
|
|
style: style.style,
|
|
setting: arg1(dependencyMap[10]).useGuildPresetSettings(style.guildId).unread,
|
|
onCustomize() {
|
|
let obj = callback(paths[11]);
|
|
obj = { guildId: arg0.guildId };
|
|
obj.openLazy(arg0(paths[13])(paths[12], paths.paths), "MessageUnreadActionSheet", obj);
|
|
}
|
|
};
|
|
return callback(NotificationSettingsMessageUnread, obj);
|
|
};
|
|
export const NotificationSettingsChannelMessageUnread = function NotificationSettingsChannelMessageUnread(style) {
|
|
const arg1 = style;
|
|
const obj = {
|
|
style: style.style,
|
|
setting: arg1(dependencyMap[14]).useChannelPresetSettings(style.channel).unread,
|
|
onCustomize() {
|
|
let obj = callback(paths[11]);
|
|
obj = { channel: arg0.channel };
|
|
obj.openLazy(arg0(paths[13])(paths[15], paths.paths), "MessageUnreadActionSheet", obj);
|
|
}
|
|
};
|
|
return callback(NotificationSettingsMessageUnread, obj);
|
|
};
|