/* Metro module 10940; source: modules/notifications/settings/native/NotificationSettingsChannel.tsx; dependencies: [31, 27, 4864, 33, 4501, 697, 10941, 1244, 4805, 1484, 5282, 6613, 6610, 566, 7972, 10943, 10944, 10948, 10955, 10961, 4578, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseChannelName from '../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import NotificationSettingsModalActionCreators from '../../../../actions/NotificationSettingsModalActionCreators.tsx'; /* Metro dependency 6613 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as NavigatorHeaderNativeModule from '../../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as NotificationSettingsUtilsModule from '../../../../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
import * as NativeModule from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as NotficationSettingsChannelFlagUtilsModule from '../utils/notficationSettingsChannelFlagUtils.tsx'; /* Metro dependency 10941 */
import * as NotificationSettingsPresetsModule from './NotificationSettingsPresets.tsx'; /* Metro dependency 10944 */
import * as NotificationSettingsMessageNotificationModule from './NotificationSettingsMessageNotification.tsx'; /* Metro dependency 10948 */
import * as NotificationSettingsMessageUnreadModule from './NotificationSettingsMessageUnread.tsx'; /* Metro dependency 10955 */
function _fun83878(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:6, offset: 0x01f2c873, size: 264 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
const env0_8 = Reflect.apply(createStyles, value, [{screenContainer: {'flex': 1, 'backgroundColor': null,
'padding': 16, backgroundColor: BACKGROUND_BASE_LOW}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsChannel.tsx');
exports.default = NotificationSettingsChannel;
function NotificationSettingsChannel(a0) { // fn#83879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11126:385, offset: 0x01f2c97b, size: 870 bytes, params: 2, frame: 30
var r6;
var r5;
var NotificationSettingsMuteBanner;
var moduleValue4;
var Button;
var object;
const env0_0 = a0;
const value2 = (NotficationSettingsChannelFlagUtilsModule).useChannelPresetInheritance(a0.channel);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const env0_1 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss);
const env0_2 = (UseChannelName)(a0.channel);
const env0_3 = (UseNavigationNativeModule).useNavigation();
const styles = useStyles();
const binding = env0_3;
binding.useLayoutEffect(_fun83880);
const value3 = binding.useCallback(_fun83883, [a0.channel]);
const value4 = binding.useCallback(_fun83884, [a0.channel]);
const value5 = (FluxModule).useStateFromStoresObject([UserGuildSettingsStore],
_fun83885);
const Form = (NativeModule).Form;
const muted = value5.muted;
if (muted) {
NotificationSettingsMuteBanner = (require(10943) /* metro dependency 10943: NotificationSettingsMuteBanner */).NotificationSettingsMuteBanner;
var notificationSettingsMuteBannerProps2 = {style: {marginBottom: 16},
title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6MCxAy'])};
moduleValue4 = require(10943) /* metro dependency 10943: NotificationSettingsMuteBanner */;
notificationSettingsMuteBannerProps2.subtitle = moduleValue4.getMuteBannerSubtitleFromConfig(value5.config);
notificationSettingsMuteBannerProps2.onPressUnmute = value4;
r6 =