/* Metro module 10948; source: modules/notifications/settings/native/NotificationSettingsMessageNotification.tsx; dependencies: [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10950, 10947, 4080, 10952, 1962, 10941, 10954, 2] */ import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import NotificationSettingsMockMessage from './NotificationSettingsMockMessage.tsx'; /* Metro dependency 10950 */ 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 TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */ import * as NotficationSettingsChannelFlagUtilsModule from '../utils/notficationSettingsChannelFlagUtils.tsx'; /* Metro dependency 10941 */ import * as NotificationSettingsGuildFlagUtilsModule from '../utils/notificationSettingsGuildFlagUtils.tsx'; /* Metro dependency 10947 */ import * as NotificationSettingsPresetOptionUtilsModule from '../utils/notificationSettingsPresetOptionUtils.tsx'; /* Metro dependency 10949 */ function _fun83922(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:6, offset: 0x01f2e823, size: 361 bytes, params: 8, frame: 23 const env0_0 = require; const NotificationSettingsMessageNotification2 = NotificationSettingsMessageNotification; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = JsxRuntimeModule; const env0_4 = value.jsx; const env0_5 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const object2 = {'backgroundColor': null, 'borderColor': null, 'borderRadius': 20, 'borderWidth': 1, 'padding': 14}; const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST; object2.backgroundColor = BACKGROUND_BASE_LOWEST; const BACKGROUND_MOD_SUBTLE = (Native).colors.BACKGROUND_MOD_SUBTLE; object2.borderColor = BACKGROUND_MOD_SUBTLE; const env0_6 = Reflect.apply(createStyles, value, [{card: object2, cta: {'textAlign': 'center', 'marginTop': 4}, label: {'textAlign': 'center', 'marginTop': 8}, header: {marginBottom: 8}, headerTitle: {marginBottom: 4}}]); (FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotification.tsx'); exports.default = NotificationSettingsMessageNotification2; exports.NotificationSettingsGuildMessageNotification = NotificationSettingsGuildMessageNotification; exports.NotificationSettingsChannelMessageNotification = NotificationSettingsChannelMessageNotification; function NotificationSettingsMessageNotification(a0) { // fn#83923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:452, offset: 0x01f2e98c, size: 799 bytes, params: 2, frame: 34 const env0_0 = a0; const value2 = undefined; const styles = useStyles(); const value4 = (NotificationSettingsPresetOptionUtilsModule).getPushNotificationSelectOptions().find(_fun83924); const style = a0.style; const Text = (TextModule).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const view = ( {intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1m22ZB'])} {a0.context === 'guild' ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4bP2ZZ']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R1j5+4'])} ); const PressableOpacity = (PressablesModule).PressableOpacity; const pressableOpacityProps = {onPress: a0.onCustomize, activeOpacity: 0.6}; const items3 = [ ((Component) => )(NotificationSettingsMockMessage), ]; items3[1] = ( {(value4 == null ? value2 : value4.label) ?? 'unset'} ); const PressableOpacity2 = (PressablesModule).PressableOpacity; items3[2] = ( {intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yxiV9W)} ); return ( {view} {items3} ); function _fun83924({value}) { // fn#83924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:567, offset: 0x01f2ecab, size: 27 bytes, params: 2, frame: 2 return value === env0_0.setting; } } function NotificationSettingsGuildMessageNotification(a0) { // fn#83925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:1635, offset: 0x01f2ecc6, size: 108 bytes, params: 2, frame: 17 const env0_0 = a0; const style = a0.style; const useGuildPresetSettings = NotificationSettingsGuildFlagUtilsModule.useGuildPresetSettings; return ( ); function NotificationSettingsGuildMessageNotificationOnCustomize() { // fn#83926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:1848, owner: NotificationSettingsGuildMessageNotification.onCustomize, offset: 0x01f2ed32, size: 98 bytes, params: 1, frame: 16 let value = environment.__proto__; const defaultImport = importDefault(dependencyMap[11]); const openLazy = defaultImport.openLazy; value = require(dependencyMap[13]); value = value(dependencyMap[12], dependencyMap.paths); Reflect.apply(openLazy, defaultImport, [value, 'MessageNotificationGuildActionSheet', {guildId: env0_0.guildId}]); } } function NotificationSettingsChannelMessageNotification(a0) { // fn#83927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:2007, offset: 0x01f2ed94, size: 108 bytes, params: 2, frame: 17 const env0_0 = a0; const style = a0.style; const useChannelPresetSettings = NotficationSettingsChannelFlagUtilsModule.useChannelPresetSettings; return ( ); function NotificationSettingsChannelMessageNotificationOnCustomize() { // fn#83928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11134:2226, owner: NotificationSettingsChannelMessageNotification.onCustomize, offset: 0x01f2ee00, size: 98 bytes, params: 1, frame: 16 let value = environment.__proto__; const defaultImport = importDefault(dependencyMap[11]); const openLazy = defaultImport.openLazy; value = require(dependencyMap[13]); value = value(dependencyMap[15], dependencyMap.paths); Reflect.apply(openLazy, defaultImport, [value, 'MessageNotificationChannelActionSheet', {channel: env0_0.channel}]); } } } global.__d(_fun83922, 10948, [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10950, 10947, 4080, 10952, 1962, 10941, 10954, 2]) /* metro module 10948, dependencies: [31, 27, 33, 4501, 697, 10949, 4573, 1244, 5278, 10950, 10947, 4080, 10952, 1962, 10941, 10954, 2] */;