Files
discord-decomp/sources/modules/notifications/settings/native/NotificationSettingsMessageUnreadActionSheet.tsx
T
2026-07-28 01:06:53 +03:00

98 lines
5.6 KiB
TypeScript

/* Metro module 10959; source: modules/notifications/settings/native/NotificationSettingsMessageUnreadActionSheet.tsx; dependencies: [31, 27, 4865, 33, 4501, 697, 6275, 10956, 4573, 1244, 7988, 7987, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import NotificationSettingsMockChannels from './NotificationSettingsMockChannels.tsx'; /* Metro dependency 10956 */
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 IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ReadStateConstantsModule from '../../../read_states/ReadStateConstants.tsx'; /* Metro dependency 4865 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as TableRadioRowNativeModule from '../../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
function _fun83961(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11145:6, offset: 0x01f30df8, size: 326 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object = {};
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object.sheet = {backgroundColor: BACKGROUND_BASE_LOWEST};
object.header = {'padding': 24, 'paddingTop': 0};
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
object.content = {backgroundColor: BACKGROUND_BASE_LOWER, padding: 16};
object.form = {'marginTop': 8, 'marginBottom': 16};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageUnreadActionSheet.tsx');
exports.default = NotificationSettingsMessageUnreadActionSheet;
function NotificationSettingsMessageUnreadActionSheet(a0) { // fn#83962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11145:531, offset: 0x01f30f3e, size: 642 bytes, params: 2, frame: 32
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const view = (
<View style={styles.header}>
{((Component) => <Component unreadSetting={a0.value} />)(NotificationSettingsMockChannels)}
</View>
);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const Tqd1Af = t.Tqd1Af;
const items2 = [
<Text variant="text-sm/semibold">
{Reflect.apply(string, intl, [Tqd1Af])}
</Text>,
];
string = intl.string;
const RpQgm5 = (IndexNativeModule).t.RpQgm5;
items2[1] = (
<Text variant="text-xs/medium" color="text-muted">
{Reflect.apply(string, intl, [RpQgm5])}
</Text>
);
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
const value5 = a0.value;
const onChange = a0.onChange;
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
string = intl.string;
const ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
const tableRadioRow = <TableRadioRow label={Reflect.apply(string, intl, [t['HVah/3']])} value={ALL_MESSAGES} />;
const tableRadioRowProps2 = {subLabel: a0.disabledMentionOnlyWithReason,
disabled: a0.disabledMentionOnlyWithReason != null,
label: intl.string((IndexNativeModule).t['tu+ZWJ'])};
const ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
tableRadioRowProps2.value = ONLY_MENTIONS;
items2[2] = (
<View style={styles.form}>
<TableRadioGroup
defaultValue={value5}
onChange={onChange}
hasIcons={false}
>
{tableRadioRow}
<TableRadioRow {...tableRadioRowProps2} />
</TableRadioGroup>
</View>
);
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
{view}
<View style={styles.content}>
{items2}
</View>
</BottomSheet>
);
}
}
global.__d(_fun83961, 10959, [31, 27, 4865, 33, 4501, 697, 6275, 10956, 4573, 1244, 7988, 7987,
2]) /* metro module 10959, dependencies: [31, 27, 4865, 33, 4501, 697, 6275, 10956, 4573, 1244, 7988, 7987, 2] */;