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

98 lines
5.6 KiB
TypeScript

/* Metro module 10953; source: modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 6275, 10950, 4573, 1244, 7988, 7987, 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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
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 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 _fun83941(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11139:6, offset: 0x01f2f932, 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/NotificationSettingsMessageNotificationActionSheet.tsx');
exports.default = NotificationSettingsMessageNotificationActionSheet;
function NotificationSettingsMessageNotificationActionSheet(a0) { // fn#83942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11139:548, offset: 0x01f2fa78, size: 663 bytes, params: 2, frame: 32
const styles = useStyles();
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const view = (
<View style={styles.header}>
{((Component) => <Component notificationSetting={a0.value} />)(NotificationSettingsMockMessage)}
</View>
);
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const items2 = [
<Text variant="text-sm/semibold">
{Reflect.apply(string, intl, [t['1m22ZB']])}
</Text>,
];
items2[1] = <Text variant="text-xs/medium" color="text-muted" />;
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
const value5 = a0.value;
const onChange = a0.onChange;
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
string = intl.string;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
const items3 = [
<TableRadioRow
label={Reflect.apply(string, intl, [t['HVah/3']])}
value={ALL_MESSAGES}
subLabel={a0.allMessagesSubLabel}
/>,
];
string = intl.string;
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
items3[1] = <TableRadioRow label={Reflect.apply(string, intl, [t['tu+ZWJ']])} value={ONLY_MENTIONS} />;
string = intl.string;
const X4wWUi = (IndexNativeModule).t.X4wWUi;
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
items3[2] = <TableRadioRow label={Reflect.apply(string, intl, [X4wWUi])} value={NO_MESSAGES} />;
items2[2] = (
<View style={styles.form}>
<TableRadioGroup
defaultValue={value5}
onChange={onChange}
hasIcons={false}
>
{items3}
</TableRadioGroup>
</View>
);
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
{view}
<View style={styles.content}>
{items2}
</View>
</BottomSheet>
);
}
}
global.__d(_fun83941, 10953, [31, 27, 661, 33, 4501, 697, 6275, 10950, 4573, 1244, 7988, 7987,
2]) /* metro module 10953, dependencies: [31, 27, 661, 33, 4501, 697, 6275, 10950, 4573, 1244, 7988, 7987, 2] */;