2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 9980
|
|
|
|
|
// Function ID: 9981
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: NotificationSettingsChannel
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [19, 17, 4589, 21, 4380, 712, 9981, 1236, 4574, 1500, 5376, 5368, 5363, 589, 8118, 9983, 9984, 9988, 9995, 10001, 4815, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 9980 (NotificationSettingsChannel)
|
2026-08-24 06:08:38 +00:00
|
|
|
import ThemesDefault from "Themes" /* 712 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import computeChannelNameDefault from "computeChannelName" /* 4574 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_3 from "noop" /* 19 */;
|
|
|
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import closure_5 from "updateUserGuildSettingsInternal" /* 4589 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
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-29 08:29:29 +00:00
|
|
|
({ jsx: closure_6, jsxs: error } = jsxProd);
|
|
|
|
|
createCacheKey = { screenContainer: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
createCacheKey = { flex: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, padding: 16 };
|
2026-07-29 08:29:29 +00:00
|
|
|
createCacheKey[0] = createCacheKey;
|
2026-08-24 06:08:38 +00:00
|
|
|
let closure_8 = createCacheKey.createStyles(createCacheKey);
|
|
|
|
|
let result = require("set").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsChannel.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function NotificationSettingsChannel(channel) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = channel;
|
2026-08-25 06:04:03 +00:00
|
|
|
let obj = _require(9981);
|
2026-07-20 16:05:17 +00:00
|
|
|
const channelPresetInheritance = obj.useChannelPresetInheritance(channel.channel);
|
2026-07-29 08:29:29 +00:00
|
|
|
const intl = _require(1236).intl;
|
2026-08-24 06:08:38 +00:00
|
|
|
importDefault = intl.string(_require(1236).t.h850Ss);
|
|
|
|
|
dependencyMap = computeChannelNameDefault(channel.channel);
|
|
|
|
|
obj1 = _require(1500);
|
2026-07-20 16:05:17 +00:00
|
|
|
const React = obj1.useNavigation();
|
|
|
|
|
const layoutEffect = React.useLayoutEffect(() => {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = options;
|
|
|
|
|
obj = {
|
2026-07-23 10:11:24 +00:00
|
|
|
title: "" + closure_1 + " (" + dependencyMap + ")",
|
2026-07-20 16:05:17 +00:00
|
|
|
headerTitle() {
|
2026-08-24 06:08:38 +00:00
|
|
|
return closure_1_6(closure_1_0(closure_1_2[10]).NavigatorHeader, { title: closure_1, subtitle: closure_2 });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
2026-07-29 08:29:29 +00:00
|
|
|
options.setOptions(obj);
|
2026-07-23 10:11:24 +00:00
|
|
|
if (channel.inGuildContext) {
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { headerLeft: null };
|
2026-08-25 06:04:03 +00:00
|
|
|
obj[0] = channel(5376).getHeaderBackButton(() => closure_3.popToTop());
|
2026-07-29 08:29:29 +00:00
|
|
|
obj.setOptions(obj);
|
2026-08-25 06:04:03 +00:00
|
|
|
const obj4 = channel(5376);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const items = [channel.channel];
|
|
|
|
|
const items1 = [channel.channel];
|
2026-08-25 06:04:03 +00:00
|
|
|
const callback = React.useCallback(() => channel(9981).updateChannelToGuildDefault(channel.channel.guild_id, channel.channel.id), items);
|
2026-07-20 16:05:17 +00:00
|
|
|
const callback1 = React.useCallback(() => {
|
2026-08-25 06:04:03 +00:00
|
|
|
const result = callback(5368).updateChannelOverrideSettings(channel.channel.guild_id, channel.channel.id, { muted: false }, channel(5363).NotificationLabels.Unmuted);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj2 = _require(589);
|
2026-08-24 06:08:38 +00:00
|
|
|
const items2 = [closure_5];
|
|
|
|
|
const stateFromStoresObject = obj2.useStateFromStoresObject(items2, () => ({ config: closure_1_5.getChannelMuteConfig(channel.channel.guild_id, channel.channel.id), muted: closure_1_5.isChannelMuted(channel.channel.guild_id, channel.channel.id) }));
|
|
|
|
|
obj = { style: callback2().screenContainer, children: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
let muted = stateFromStoresObject.muted;
|
|
|
|
|
if (muted) {
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { style: null, title: null, subtitle: null, onPressUnmute: null };
|
|
|
|
|
obj[0] = { marginBottom: 16 };
|
|
|
|
|
const intl2 = tmp(1236).intl;
|
|
|
|
|
obj[1] = intl2.string(tmp(1236).t["6MCxAy"]);
|
2026-08-25 06:04:03 +00:00
|
|
|
obj[2] = tmp(9983).getMuteBannerSubtitleFromConfig(stateFromStoresObject.config);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[3] = callback1;
|
2026-08-25 06:04:03 +00:00
|
|
|
muted = callback(tmp(9983).NotificationSettingsMuteBanner, obj);
|
|
|
|
|
const tmpResult = tmp(9983);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
const items3 = [muted, , , , , ];
|
2026-07-29 08:29:29 +00:00
|
|
|
obj1 = { channel: channel.channel };
|
2026-08-25 06:04:03 +00:00
|
|
|
items3[1] = callback(_require(9984).NotificationSettingsChannelPresets, obj1);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj2 = { style: { marginTop: 24 }, channel: channel.channel };
|
2026-08-25 06:04:03 +00:00
|
|
|
items3[2] = callback(_require(9988).NotificationSettingsChannelMessageNotification, obj2);
|
|
|
|
|
items3[3] = callback(_require(9995).NotificationSettingsChannelMessageUnread, { style: { marginTop: 24 }, channel: channel.channel });
|
2026-07-20 16:05:17 +00:00
|
|
|
channel = channel.channel;
|
|
|
|
|
let isForumLikeChannelResult = channel.isForumLikeChannel();
|
|
|
|
|
if (isForumLikeChannelResult) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj4 = { style: null, channel: null };
|
|
|
|
|
obj4[0] = { marginTop: 24 };
|
|
|
|
|
obj4[1] = channel.channel;
|
2026-08-25 06:04:03 +00:00
|
|
|
isForumLikeChannelResult = tmp11(tmp(10001).NotificationSettingsChannelPost, obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
items3[4] = isForumLikeChannelResult;
|
2026-07-29 08:29:29 +00:00
|
|
|
const inherited = channelPresetInheritance.inherited;
|
|
|
|
|
let tmp11Result = !inherited;
|
|
|
|
|
if (!inherited) {
|
|
|
|
|
const obj5 = { style: null, children: null };
|
|
|
|
|
obj5[0] = { marginTop: 24 };
|
|
|
|
|
const obj6 = { variant: "secondary", onPress: null, text: null };
|
|
|
|
|
obj6[1] = callback;
|
|
|
|
|
const intl3 = tmp(1236).intl;
|
|
|
|
|
obj6[2] = intl3.string(tmp(1236).t["3PBFN6"]);
|
2026-08-25 06:04:03 +00:00
|
|
|
obj5[1] = tmp11(tmp(4815).Button, obj6);
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp11Result = tmp11(View, obj5);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
items3[5] = tmp11Result;
|
|
|
|
|
obj[1] = items3;
|
2026-08-25 06:04:03 +00:00
|
|
|
return closure_7(_require(8118).Form, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|