83 lines
4.9 KiB
TypeScript
83 lines
4.9 KiB
TypeScript
/* Metro module 10956; source: modules/notifications/settings/native/NotificationSettingsMockChannels.tsx; dependencies: [31, 27, 4865, 33, 4501, 697, 1244, 10957, 6691, 4573, 1305, 2] */
|
|
function _fun83953(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11142:6, offset: 0x01f3057e, size: 303 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
const env0_4 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
|
|
let value = require(33) /* metro dependency 33 */;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
const env0_7 = Reflect.apply(createStyles, value, [{card: {'backgroundColor': null, 'overflow': 'hidden',
|
|
'borderRadius': 10, 'paddingVertical': 8, backgroundColor: BACKGROUND_SURFACE_HIGH},
|
|
channel: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'paddingVertical': 4,
|
|
'justifyContent': 'space-between', 'paddingRight': 12}, channelName: {'display': 'flex', 'flexDirection': 'row',
|
|
'alignItems': 'center'}}]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMockChannels.tsx');
|
|
exports.default = NotificationSettingsMockChannels;
|
|
}
|
|
|
|
function NotificationSettingsMockChannels({unreadSetting}) { // fn#83954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11142:628, offset: 0x01f306ad, size: 366 bytes, params: 2, frame: 22
|
|
const styles = useStyles();
|
|
let object2 = {'badged': true, 'unread': true};
|
|
let ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
|
|
object2.resolvedUnreadSetting = ALL_MESSAGES;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const EjLobP = (require(1244) /* metro dependency 1244: indexNative */).t.EjLobP;
|
|
object2.name = Reflect.apply(string, intl, [EjLobP]);
|
|
const items2 = [object2];
|
|
object2 = {'badged': false, 'unread': true};
|
|
let ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
|
|
object2.resolvedUnreadSetting = ONLY_MENTIONS;
|
|
string = intl.string;
|
|
const Wgpwpp = (require(1244) /* metro dependency 1244: indexNative */).t.Wgpwpp;
|
|
object2.name = Reflect.apply(string, intl, [Wgpwpp]);
|
|
items2[1] = object2;
|
|
object2 = {'badged': false, 'unread': false};
|
|
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
|
|
object2.resolvedUnreadSetting = ONLY_MENTIONS;
|
|
object2.name = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g9VImh);
|
|
items2[2] = object2;
|
|
ALL_MESSAGES = UnreadSetting.ALL_MESSAGES;
|
|
if (unreadSetting === ALL_MESSAGES) {
|
|
items2[1].resolvedUnreadSetting = UnreadSetting.ALL_MESSAGES;
|
|
}
|
|
return (
|
|
<View style={styles.card}>
|
|
{items2.map(_fun83955)}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function _fun83955(a0) { // fn#83955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11142:1114, offset: 0x01f3081b, size: 398 bytes, params: 2, frame: 24
|
|
const value = environment.__proto__;
|
|
const {channel, channelName} = styles;
|
|
const value3 = undefined;
|
|
const StaticChannelIndicator = importDefault(10957) /* metro dependency 10957: StaticChannelIndicator */;
|
|
const unread = a0.unread;
|
|
let resolvedUnreadSetting = a0.resolvedUnreadSetting;
|
|
const items2 = [<StaticChannelIndicator unread={unread} resolvedUnreadSetting={resolvedUnreadSetting} />];
|
|
const TextIcon = (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
|
|
resolvedUnreadSetting = a0.resolvedUnreadSetting;
|
|
let ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
|
|
items2[1] = <TextIcon style={{marginLeft: 12}} size="xs" color={resolvedUnreadSetting !== ONLY_MENTIONS ? value3 : 'text-muted'} />;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
resolvedUnreadSetting = a0.resolvedUnreadSetting;
|
|
ONLY_MENTIONS = UnreadSetting.ONLY_MENTIONS;
|
|
items2[2] = <Text style={{marginLeft: 4}} variant="text-sm/semibold" color={resolvedUnreadSetting !== ONLY_MENTIONS ? value3 : 'text-muted'}>{a0.name}</Text>;
|
|
const view = <View style={channelName}>{items2}</View>;
|
|
const Badge = (require(1305) /* metro dependency 1305: native */).Badge;
|
|
return (
|
|
<View style={channel} key={a0.name}>
|
|
{view}
|
|
<Badge value={a0.badged ? 1 : 0} />
|
|
</View>
|
|
);
|
|
}
|
|
|