/* Metro module 14768; source: modules/notification_center/native/NotificationCenterActionSheet.tsx; dependencies: [31, 5215, 661, 33, 566, 14769, 10929, 4080, 11177, 7890, 7892, 5080, 11179, 1962, 7007, 6805, 6758, 1244, 6807, 6700, 11003, 9216, 14770, 11190, 14771, 7002, 11944, 2] */ import RecentMentionsStore from '../../recents/RecentMentionsStore.tsx'; /* Metro dependency 5215 */ import ForLaterExperiment from '../../saved_messages/ForLaterExperiment.tsx'; /* Metro dependency 10929 */ import Module11944 from '../../../by-id/module-11944.js'; /* Metro dependency 11944 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ 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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */ import * as AtIconModule from '../../../design/components/Icon/native/redesign/generated/AtIcon.tsx'; /* Metro dependency 6700 */ import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */ import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */ import * as SettingsIconModule from '../../../design/components/Icon/native/redesign/generated/SettingsIcon.tsx'; /* Metro dependency 7002 */ import * as BellIconModule from '../../../design/components/Icon/native/redesign/generated/BellIcon.tsx'; /* Metro dependency 9216 */ function _fun111482(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:6, offset: 0x023a4002, size: 189 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/notification_center/native/NotificationCenterActionSheet.tsx'); exports.default = _default_111483; function _default_111483() { // fn#111483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:183, offset: 0x023a40bf, size: 1168 bytes, params: 1, frame: 34 var object3; var r9; const {roleFilter, everyoneFilter} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([RecentMentionsStore], function() { var recentMentionsStoreBinding = RecentMentionsStore; return {everyoneFilter: recentMentionsStoreBinding.everyoneFilter, roleFilter: recentMentionsStoreBinding.roleFilter}; }); const env0_2 = ReactModule.useCallback(_fun111485, [everyoneFilter, roleFilter]); const defaultImport = ForLaterExperiment; const useConfig = defaultImport.useConfig; const enabled = Reflect.apply(useConfig, defaultImport, [{location: 'NotificationCenterActionSheet'}]).enabled; const value3 = ReactModule.useCallback(_fun111486, []); const value4 = ReactModule.useCallback(function() { importDefault(dependencyMap[7]).hideActionSheet(); require(dependencyMap[14]).openUserSettings({screen: UserSettingsSections.NOTIFICATIONS}); }, []); const ActionSheet = (ActionSheetNativeModule).ActionSheet; object3 = {showGradient: true}; const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let string = intl.string; const HcoRu0 = (require(1244) /* metro dependency 1244: indexNative */).t.HcoRu0; object3.header = ; const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow; let Group = ActionSheetRow.Group; const ActionSheetSwitchRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetSwitchRow; const actionSheetSwitchRowProps = {onValueChange: onValueChange_111488, value: roleFilter, label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.asInft)}; let Icon = ActionSheetRow.Icon; const AtIcon = (AtIconModule).AtIcon; actionSheetSwitchRowProps.icon = ( ); const actionSheetSwitchRow = ; const object = {onValueChange: onValueChange_111489, value: everyoneFilter}; string = intl.string; const S9GLtt = (require(1244) /* metro dependency 1244: indexNative */).t.S9GLtt; object.label = Reflect.apply(string, intl, [S9GLtt]); object.subLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jYgZa4); Icon = ActionSheetRow.Icon; const BellIcon = (BellIconModule).BellIcon; object.icon = ; const group = ( {actionSheetSwitchRow} ); Group = ActionSheetRow.Group; if (enabled) { r9 = ( )((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2pAkDA'])} onPress={value3} arrow key="for-later" /> ); } else { r9 = null; } const ActionSheetRow3 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow; Icon = ActionSheetRow3.Icon; const SettingsIcon = (SettingsIconModule).SettingsIcon; return ( {group} {r9} } label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss)} onPress={value4} arrow key="settings" /> ); function _fun111485(a0) { // fn#111485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:349, offset: 0x023a4570, size: 71 bytes, params: 2, frame: 15 let value = environment.__proto__; value = importDefault(14769) /* metro dependency 14769: MentionActionCreators */; const setGuildFilter = value.setGuildFilter; const object = {}; const roleFilterBinding = roleFilter; object.roleFilter = roleFilterBinding; object.everyoneFilter = everyoneFilter; copyDataProperties(object, a0, roleFilterBinding); Reflect.apply(setGuildFilter, value, [object]); } function _fun111486() { // fn#111486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:512, offset: 0x023a45b7, size: 192 bytes, params: 1, frame: 18 var defaultImport3; var pushLazy; let value = environment.__proto__; importDefault(dependencyMap[7]).hideActionSheet(); if (importDefault(dependencyMap[8])()) { defaultImport3 = importDefault(dependencyMap[11]); pushLazy = defaultImport3.pushLazy; value = require(dependencyMap[13]); value = value(dependencyMap[12], dependencyMap.paths); Reflect.apply(pushLazy, defaultImport3, [value, {}, 'for-later-modal', {presentation: 'modal'}]); } else { importDefault(dependencyMap[9])(require(dependencyMap[10]).EntitlementFeatureNames.SAVED_MESSAGES); } } function _default_111483OnValueChange() { // fn#111488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:1058, owner: _default_111483.onValueChange, offset: 0x023a46c8, size: 30 bytes, params: 1, frame: 11 return env0_2({roleFilter: !roleFilter}); } function _default_111483OnValueChange_111489() { // fn#111489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:1269, owner: _default_111483.onValueChange, offset: 0x023a46e6, size: 30 bytes, params: 1, frame: 11 return env0_2({everyoneFilter: !everyoneFilter}); } } } global.__d(_fun111482, 14768, [31, 5215, 661, 33, 566, 14769, 10929, 4080, 11177, 7890, 7892, 5080, 11179, 1962, 7007, 6805, 6758, 1244, 6807, 6700, 11003, 9216, 14770, 11190, 14771, 7002, 11944, 2]) /* metro module 14768, dependencies: [31, 5215, 661, 33, 566, 14769, 10929, 4080, 11177, 7890, 7892, 5080, 11179, 1962, 7007, 6805, 6758, 1244, 6807, 6700, 11003, 9216, 14770, 11190, 14771, 7002, 11944, 2] */;