/* Metro module 14817; source: modules/icymi/native/ICYMISettingsActionSheet.tsx; dependencies: [5, 31, 27, 4605, 9577, 9569, 661, 33, 4501, 697, 566, 9581, 6805, 6231, 1244, 6808, 9580, 6238, 7230, 677, 21, 5097, 4080, 9579, 5080, 14818, 1962, 14827, 2] */ import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */ import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */ import ReadStateStore from '../../../stores/ReadStateStore.tsx'; /* Metro dependency 4605 */ import ICYMIStore from '../ICYMIStore.tsx'; /* Metro dependency 9569 */ import ICYMIFiltersStore from '../ICYMIFiltersStore.tsx'; /* Metro dependency 9577 */ import ICYMIActionCreators from '../ICYMIActionCreators.tsx'; /* Metro dependency 9580 */ 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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */ import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */ import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */ import * as ICYMITypesModule from '../ICYMITypes.tsx'; /* Metro dependency 7230 */ import * as ICYMIExperimentModule from '../ICYMIExperiment.tsx'; /* Metro dependency 9581 */ function _fun111825(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:6, offset: 0x023b3965, size: 345 bytes, params: 8, frame: 21 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = ConstantsModule; const env0_8 = value.AnalyticsObjectTypes; const env0_9 = value.AnalyticsObjects; value = require(33) /* metro dependency 33 */; const env0_10 = value.jsx; const env0_11 = value.Fragment; const env0_12 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const PX_16 = (Native).space.PX_16; const env0_13 = Reflect.apply(createStyles, value, [{padding: {bottomPadding: PX_16, width: '100%'}}]); (FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMISettingsActionSheet.tsx'); exports.default = ICYMISettingsActionSheet; function ICYMISettingsActionSheet() { // fn#111826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:434, offset: 0x023b3abe, size: 676 bytes, params: 1, frame: 32 var r7; var jsxRuntimeEnv0_11Binding; var TableSwitchRow; var filterStaffContent; var items2; const TableRow = (TableRowNativeModule).TableRow; const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ICYMIFiltersStore], function() { return ICYMIFiltersStore.getState(); }); const styles = useStyles(); const ICYMIStaffDebuggingUtilityExperiment = (ICYMIExperimentModule).ICYMIStaffDebuggingUtilityExperiment; const useConfig = ICYMIStaffDebuggingUtilityExperiment.useConfig; const enabled = Reflect.apply(useConfig, ICYMIStaffDebuggingUtilityExperiment, [{location: 'settings action sheet'}]).enabled; const ActionSheet = (ActionSheetNativeModule).ActionSheet; const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup; const object2 = {}; const intl = (IndexNativeModule).intl; let string = intl.string; const t = (IndexNativeModule).t; object2.title = Reflect.apply(string, intl, [t['7Si8Ul']]); object2.hasIcons = false; const value3 = null; if (enabled) { jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11; TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow; string = intl.string; filterStaffContent = value2.filterStaffContent; items2 = [ , ]; items2[1] = ; items2[2] = ; r7 = ( <> {items2} ); } else { r7 = value3; } string = intl.string; const Eorjmy = (IndexNativeModule).t.Eorjmy; return ( {r7} ); function ICYMISettingsActionSheetOnValueChange() { // fn#111828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:962, owner: ICYMISettingsActionSheet.onValueChange, offset: 0x023b3d62, size: 94 bytes, params: 1, frame: 18 let value = environment.__proto__; value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */; const setFilters = value.setFilters; const object = {}; const binding = env0_0; copyDataProperties(object, binding, undefined); object['filterStaffContent'] = !binding.filterStaffContent; Reflect.apply(setFilters, value, [object]); (importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).fetchDehydrated(); } function ICYMISettingsActionSheetOnPress() { // fn#111829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1121, owner: ICYMISettingsActionSheet.onPress, offset: 0x023b3dc0, size: 92 bytes, params: 1, frame: 13 var environment; const value = environment.__proto__; ICYMIStore.getDehydratedItems().forEach(_fun111830); (ICYMIActionCreators).clearReadStates(); (ActionSheetActionCreators).hideActionSheet(); function _fun111830(a0) { // fn#111830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1158, offset: 0x023b3e1c, size: 307 bytes, params: 2, frame: 21 var data; var defaultImport; var compare; var readStateStoreBinding; var ackMessageId; var channel_id; var value4; var moduleValue; var ack; var object; var atPreviousMillisecond; const type = a0.type; let value = environment.__proto__.__proto__; const ICYMIItemTypes = (ICYMITypesModule).ICYMIItemTypes; const MESSAGE = ICYMIItemTypes.MESSAGE; let r3 = type === MESSAGE && a0.data.channel_type === (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes.GUILD_ANNOUNCEMENT; if (r3) { defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */; compare = defaultImport.compare; readStateStoreBinding = ReadStateStore; ackMessageId = readStateStoreBinding.ackMessageId; data = a0.data; value4 = Reflect.apply(ackMessageId, readStateStoreBinding, [data.channel_id]); data = a0.data; r3 = Reflect.apply(compare, defaultImport, [value4, data.message_id]) >= 0; } if (r3) { moduleValue = require(5097) /* metro dependency 5097: ReadStateActionCreators */; ack = moduleValue.ack; data = a0.data; channel_id = data.channel_id; object = {}; object.object = AnalyticsObjects.ACK_GRAVITY_CLEAR_READ_STATES_BUTTON; object.objectType = AnalyticsObjectTypes.ACK_SEMI_AUTOMATIC; value = importDefault(21) /* metro dependency 21: SnowflakeUtils */; atPreviousMillisecond = value.atPreviousMillisecond; data = a0.data; value = Reflect.apply(atPreviousMillisecond, value, [data.message_id]); Reflect.apply(ack, moduleValue, [channel_id, object, true, true, value]); } } } function* _fun111832() { // fn#111832, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1648, offset: 0x023b3f5a, size: 102 bytes, params: 1, frame: 14 if (true) { value = environment.__proto__.__proto__; var value3 = env2_0(env2_2[23]); var regenerateFeedAndClearReadStates = value3.regenerateFeedAndClearReadStates; var ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON = env2_9.ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON; yield Reflect.apply(regenerateFeedAndClearReadStates, value3, [ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON]); if (false) { return undefined; } env2_1(env2_2[22]).hideActionSheet(); } } function ICYMISettingsActionSheetOnPress_111833() { // fn#111833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1883, owner: ICYMISettingsActionSheet.onPress, offset: 0x023b3fc0, size: 211 bytes, params: 1, frame: 20 let value = environment.__proto__; importDefault(dependencyMap[16]).itemInteracted('icymi_settings_action_sheet', 'icymi_settings_action_sheet', 'custom_scoring_button'); importDefault(dependencyMap[16]).feedPageActioned({actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'tune_settings_button', 'actionIntentType': 'open', 'actionDestinationType': null}}); const defaultImport3 = importDefault(dependencyMap[24]); const pushLazy = defaultImport3.pushLazy; value = require(dependencyMap[26]); value = value(dependencyMap[25], dependencyMap.paths); const ICYMI_CUSTOM_SCORES_MODAL_KEY = require(dependencyMap[27]).ICYMI_CUSTOM_SCORES_MODAL_KEY; Reflect.apply(pushLazy, defaultImport3, [value, {}, ICYMI_CUSTOM_SCORES_MODAL_KEY, {presentation: 'modal'}]); importDefault(dependencyMap[22]).hideActionSheet(); } } } global.__d(_fun111825, 14817, [5, 31, 27, 4605, 9577, 9569, 661, 33, 4501, 697, 566, 9581, 6805, 6231, 1244, 6808, 9580, 6238, 7230, 677, 21, 5097, 4080, 9579, 5080, 14818, 1962, 14827, 2]) /* metro module 14817, dependencies: [5, 31, 27, 4605, 9577, 9569, 661, 33, 4501, 697, 566, 9581, 6805, 6231, 1244, 6808, 9580, 6238, 7230, 677, 21, 5097, 4080, 9579, 5080, 14818, 1962, 14827, 2] */;