476 lines
26 KiB
TypeScript
476 lines
26 KiB
TypeScript
/* Metro module 13402; source: modules/parent_tools/native/FamilyCenterActivityCard.tsx; dependencies: [31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 5187, 12627, 1244, 2224, 1305, 13403, 4573, 8792, 5080, 13404, 1962, 7548, 13405, 13406, 12624, 4080, 3856, 3995, 9059, 683, 10787, 13407, 13408, 13409, 13412, 13419, 2] */
|
|
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
|
|
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
|
|
import Module07548 from '../../../by-id/module-07548.js'; /* Metro dependency 7548 */
|
|
import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */
|
|
import TouchableHitBox2 from '../../../design/void/TouchableHitBox/native/TouchableHitBox.tsx'; /* Metro dependency 8792 */
|
|
import FamilyCenterActivitySection from './FamilyCenterActivitySection.tsx'; /* Metro dependency 13412 */
|
|
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 NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */
|
|
import * as FamilyCenterUtilsModule from '../FamilyCenterUtils.tsx'; /* Metro dependency 5187 */
|
|
import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */
|
|
import * as UseFamilyCenterActionsModule from '../hooks/useFamilyCenterActions.tsx'; /* Metro dependency 12624 */
|
|
import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */
|
|
import * as UseSelectedTeenUserModule from '../hooks/useSelectedTeenUser.tsx'; /* Metro dependency 13406 */
|
|
import * as UseFamilyCenterActivitiesModule from '../hooks/useFamilyCenterActivities.tsx'; /* Metro dependency 13407 */
|
|
|
|
function _fun101992(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:6, offset: 0x02226c00, size: 1427 bytes, params: 8, frame: 30
|
|
const env0_0 = require;
|
|
const FamilyCenterActivityCardHeader2 = FamilyCenterActivityCardHeader;
|
|
const FamilyCenterActivityCardAccountSelect2 = FamilyCenterActivityCardAccountSelect;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
let createStyles = CreateStylesModule.createStyles;
|
|
object = {container: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'}};
|
|
const object2 = {};
|
|
const ICON_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.ICON_SUBTLE;
|
|
object2.color = ICON_SUBTLE;
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.width = PX_16;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.height = PX_16;
|
|
object.icon = object2;
|
|
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object.text = {marginHorizontal: PX_4};
|
|
const env0_11 = Reflect.apply(createStyles, CreateStylesModule, [object]);
|
|
createStyles = CreateStylesModule.createStyles;
|
|
object = {};
|
|
const object4 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'padding': null, 'flex': 1};
|
|
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object4.padding = PX_12;
|
|
let BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
|
|
object4.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
|
|
object4.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
|
object4.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
|
object.header = object4;
|
|
const object5 = {};
|
|
const AVATAR_SIZE_MAP = (NativeModule).AVATAR_SIZE_MAP;
|
|
const AvatarSizes = (NativeModule).AvatarSizes;
|
|
const NORMAL = AvatarSizes.NORMAL;
|
|
object5.borderRadius = AVATAR_SIZE_MAP[NORMAL] / 2;
|
|
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object.avatar = object5;
|
|
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object.avatarContainer = {marginRight: PX_12, alignItems: 'flex-start'};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.userHeader = {'display': 'flex', 'flexDirection': 'column', 'width': '100%', paddingRight: PX_16};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.nonSelectorHeader = {flex: 1, paddingRight: PX_16};
|
|
const env0_12 = Reflect.apply(createStyles, CreateStylesModule, [object]);
|
|
value = value.memo(_fun102005);
|
|
value.displayName = 'FamilyCenterActivityCardAccount';
|
|
createStyles = CreateStylesModule.createStyles;
|
|
object = {};
|
|
const object9 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'flex-start'};
|
|
BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
|
|
object9.backgroundColor = BACKGROUND_SURFACE_HIGHEST;
|
|
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
|
copyDataProperties(object9, SHADOW_LOW, undefined);
|
|
object.touch = object9;
|
|
const object10 = {};
|
|
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
|
object10.color = INTERACTIVE_TEXT_DEFAULT;
|
|
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object10.width = PX_24;
|
|
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object10.height = PX_24;
|
|
object10.transform = [{rotate: '90deg'}];
|
|
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object10.marginHorizontal = PX_8;
|
|
object.icon = object10;
|
|
const env0_14 = Reflect.apply(createStyles, CreateStylesModule, [object]);
|
|
createStyles = CreateStylesModule.createStyles;
|
|
object = {};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.card = {marginTop: PX_16};
|
|
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object.preface = {display: 'flex', marginBottom: PX_12};
|
|
const object14 = {};
|
|
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object14.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
|
object.container = object14;
|
|
const object15 = {'padding': null, 'display': 'flex', 'flexDirection': 'column'};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object15.padding = PX_16;
|
|
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
|
object15.gap = PX_32;
|
|
object.content = object15;
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object.totals = {'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap', 'justifyContent': 'space-between',
|
|
gap: PX_8};
|
|
object.first = {width: '100%'};
|
|
object.other = {width: '48.5%'};
|
|
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
|
object.activities = {'display': 'flex', 'flexDirection': 'column', gap: PX_32};
|
|
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object.settingsControls = {marginTop: PX_24};
|
|
const env0_15 = Reflect.apply(createStyles, CreateStylesModule, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterActivityCard.tsx');
|
|
exports.default = FamilyCenterActivityCard;
|
|
exports.FamilyCenterActivityCardAccount = value;
|
|
exports.FamilyCenterActivityCardHeader = FamilyCenterActivityCardHeader2;
|
|
exports.FamilyCenterActivityCardAccountSelect = FamilyCenterActivityCardAccountSelect2;
|
|
function FamilyCenterActivityCardPrefaceText() { // fn#101993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:495, offset: 0x02227193, size: 610 bytes, params: 1, frame: 27
|
|
var r5;
|
|
const Icon = (NativeModule).Icon;
|
|
var object2;
|
|
var icon;
|
|
const styles = useStyles();
|
|
const value2 = (UseIsInAdultAgeGroup)();
|
|
const value3 = (UseUserLinksModule).useActiveLinkUserIds();
|
|
const value5 = (UseUserLinksModule).useActivityWindowTimeStamp((FamilyCenterUtilsModule).getActivityWindowTimestampFormatter(!!value2));
|
|
const useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText;
|
|
const intl = (IndexNativeModule).intl;
|
|
const value6 = intl.formatToPlainString((FamilyCenterMessages).tazvHQ,
|
|
{activeLinks: value3.length});
|
|
const string = intl.string;
|
|
const KrLnkE = (FamilyCenterMessages).KrLnkE;
|
|
const value7 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [value6, Reflect.apply(string, intl,
|
|
[KrLnkE])]);
|
|
if (value2) {
|
|
r5 = null;
|
|
} else {
|
|
object2 = {};
|
|
icon = styles.icon;
|
|
object2.color = icon.color;
|
|
object2.source = importDefault(13403) /* metro dependency 13403 */;
|
|
icon = styles.icon;
|
|
object2.style = icon;
|
|
r5 = <Icon {...object2} />;
|
|
}
|
|
const items2 = [r5];
|
|
const Text = (TextModule).Text;
|
|
items2[1] = (
|
|
<Text
|
|
style={styles.text}
|
|
variant="text-xs/semibold"
|
|
color="text-subtle"
|
|
>
|
|
{value3.length > 1 && value2 ? value5 : value7}
|
|
</Text>
|
|
);
|
|
const TouchableHitBox = TouchableHitBox2;
|
|
const object4 = {onPress: onPress_101994};
|
|
const iconProps = {color: styles.icon.color, source: Module07548};
|
|
const Icon2 = (NativeModule).Icon;
|
|
const Sizes = Icon2.Sizes;
|
|
const EXTRA_SMALL = Sizes.EXTRA_SMALL;
|
|
iconProps.size = EXTRA_SMALL;
|
|
iconProps.style = styles.icon;
|
|
items2[2] = (
|
|
<TouchableHitBox {...object4}>
|
|
<Icon {...iconProps} />
|
|
</TouchableHitBox>
|
|
);
|
|
return (
|
|
<View style={styles.container}>
|
|
{items2}
|
|
</View>
|
|
);
|
|
function FamilyCenterActivityCardPrefaceTextOnPress() { // fn#101994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:1071, owner: FamilyCenterActivityCardPrefaceText.onPress, offset: 0x022273f5, size: 72 bytes, params: 1, frame: 15
|
|
const value = environment.__proto__;
|
|
const defaultImport = importDefault(dependencyMap[17]);
|
|
defaultImport.pushLazy(require(dependencyMap[19])(dependencyMap[18], dependencyMap.paths));
|
|
}
|
|
|
|
}
|
|
|
|
function FamilyCenterHeaderSubText() { // fn#101995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:1238, offset: 0x0222743d, size: 179 bytes, params: 1, frame: 19
|
|
const value2 = (UseIsInAdultAgeGroup)();
|
|
if (value2 && (require(8170) /* metro dependency 8170: useUserLinks */).useActiveLinkUserIds().length > 1) {
|
|
return null;
|
|
} else {
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
return (
|
|
<Text variant="text-sm/medium" color="text-muted">
|
|
{(require(8170) /* metro dependency 8170: useUserLinks */).useActivityWindowTimeStamp((require(5187) /* metro dependency 5187: FamilyCenterUtils */).getActivityWindowTimestampFormatter(!!value2))}
|
|
</Text>
|
|
);
|
|
}
|
|
}
|
|
|
|
function FamilyCenterActivityCardHeader() { // fn#101996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:2579, offset: 0x022274f0, size: 157 bytes, params: 1, frame: 18
|
|
const value2 = (UseUserLinksModule).useActiveLinkUserIds();
|
|
const value3 = (UseIsInAdultAgeGroup)();
|
|
const value4 = (UseSelectedTeenUserModule).useSelectedTeenUser();
|
|
return (
|
|
value4 === undefined
|
|
? null
|
|
: (
|
|
value3 && value2.length !== 1
|
|
? (
|
|
<FamilyCenterActivityCardAccountSelect />
|
|
)
|
|
: (
|
|
<View>
|
|
{((Component) => <Component user={value4} />)(env0_13)}
|
|
</View>
|
|
)
|
|
)
|
|
);
|
|
}
|
|
|
|
function FamilyCenterActivityCardAccountSelect() { // fn#101997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3244, offset: 0x0222758d, size: 393 bytes, params: 1, frame: 26
|
|
var r0;
|
|
var TouchableHitBox;
|
|
var items2;
|
|
const styles = useStyles();
|
|
const value2 = (UseUserLinksModule).useActiveLinkUsers();
|
|
const value3 = (UseSelectedTeenUserModule).useSelectedTeenUser();
|
|
const useFamilyCenterActions = UseFamilyCenterActionsModule.useFamilyCenterActions;
|
|
const env0_2 = Reflect.apply(useFamilyCenterActions, UseFamilyCenterActionsModule, [{onSuccess: onSuccess_101998,
|
|
onError: function() {
|
|
return require(dependencyMap[25]).presentFailedToast(require(dependencyMap[11]).intl.string(importDefault(dependencyMap[12]).Wu8BK2));
|
|
}}]).selectTeenUser;
|
|
const env0_3Binding = env0_3.useMemo(_fun102000, [value2]);
|
|
if (value3 === undefined) {
|
|
r0 = null;
|
|
} else {
|
|
TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
|
|
var defaultImportProps = {style: styles.touch, accessibilityRole: 'spinbutton', onPress: onPress_102002};
|
|
items2 = [
|
|
((Component) => <Component user={value3} inSelector />)(env0_13),
|
|
];
|
|
items2[1] = ((Icon) => <Icon style={styles.icon} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} source={importDefault(10787) /* metro dependency 10787 */} />)((require(1305) /* metro dependency 1305: native */).Icon);
|
|
r0 = (
|
|
<View>
|
|
<TouchableHitBox {...defaultImportProps}>
|
|
{items2}
|
|
</TouchableHitBox>
|
|
</View>
|
|
);
|
|
}
|
|
return r0;
|
|
function FamilyCenterActivityCardAccountSelectOnSuccess() { // fn#101998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3412, owner: FamilyCenterActivityCardAccountSelect.onSuccess, offset: 0x02227716, size: 42 bytes, params: 1, frame: 12
|
|
return (ActionSheetActionCreators).hideActionSheet(env1_10);
|
|
}
|
|
|
|
function _fun102000() { // fn#102000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3553, offset: 0x02227797, size: 28 bytes, params: 1, frame: 11
|
|
return env0_0.map(_fun102001);
|
|
function _fun102001(a0) { // fn#102001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3564, offset: 0x022277b3, size: 112 bytes, params: 2, frame: 19
|
|
const object = {};
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
|
value = value.getName(a0);
|
|
object.label = '' + value + ' (' + (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(a0) + ')';
|
|
object.value = a0.id;
|
|
return object;
|
|
}
|
|
|
|
}
|
|
|
|
function FamilyCenterActivityCardAccountSelectOnPress() { // fn#102002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3751, owner: FamilyCenterActivityCardAccountSelect.onPress, offset: 0x02227823, size: 178 bytes, params: 1, frame: 21
|
|
const defaultImport = importDefault(dependencyMap[24]);
|
|
const openLazy = defaultImport.openLazy;
|
|
const value2 = require(dependencyMap[19])(dependencyMap[27], dependencyMap.paths);
|
|
const binding = env1_10;
|
|
const object = {};
|
|
const intl = require(dependencyMap[11]).intl;
|
|
object.title = intl.string(importDefault(dependencyMap[12]).vORl9Q);
|
|
object.items = env0_3;
|
|
object.onItemSelect = onItemSelect_102003;
|
|
object.selectedItem = env0_1.id;
|
|
object.hasIcons = false;
|
|
Reflect.apply(openLazy, defaultImport, [value2, binding, object]);
|
|
function onPressOnItemSelect_102003(a0) { // fn#102003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3853, owner: FamilyCenterActivityCardAccountSelect.onPress.onItemSelect, offset: 0x022278d5, size: 131 bytes, params: 2, frame: 14
|
|
var environment;
|
|
var r0;
|
|
var defaultImport;
|
|
let value = a0 != null;
|
|
if (value) {
|
|
value = environment.__proto__;
|
|
value = a0 !== env1_1.id;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
if (r0) {
|
|
value = environment.__proto__;
|
|
selectTeenUser(a0);
|
|
value = environment.__proto__.__proto__;
|
|
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
defaultImport.track(AnalyticEvents.FAMILY_CENTER_ACTION, {action: FamilyCenterAction.SelectTeen});
|
|
}
|
|
global.setImmediate(_fun102004);
|
|
function _fun102004() { // fn#102004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:3970, offset: 0x02227958, size: 42 bytes, params: 1, frame: 12
|
|
(ActionSheetActionCreators).hideActionSheet(env3_10);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun102005({user, inSelector}) { // fn#102005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:2151, offset: 0x02227982, size: 336 bytes, params: 2, frame: 25
|
|
const styles = useStyles();
|
|
const AvatarSizes = (NativeModule).AvatarSizes;
|
|
const r14 = inSelector ? AvatarSizes.SMALL : AvatarSizes.NORMAL;
|
|
const Avatar = (NativeModule).Avatar;
|
|
const view = (
|
|
<View style={styles.avatarContainer}>
|
|
<Avatar
|
|
avatarStyle={styles.avatar}
|
|
user={user}
|
|
guildId={undefined}
|
|
disablePlaceholder
|
|
avatarDecoration={user.avatarDecoration}
|
|
size={r14}
|
|
/>
|
|
</View>
|
|
);
|
|
const userHeader = styles.userHeader;
|
|
return (
|
|
<View style={styles.header}>
|
|
{view}
|
|
<View style={[userHeader, inSelector ? undefined : styles.nonSelectorHeader]}>
|
|
{((Component) => <Component user={user} />)(importDefault(13405) /* metro dependency 13405: FamilyCenterUsernameHeader */)}
|
|
<FamilyCenterHeaderSubText />
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function FamilyCenterActivityCard() { // fn#102006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:4867, offset: 0x02227ad2, size: 514 bytes, params: 1, frame: 33
|
|
const styles = useStyles();
|
|
const value2 = (UseSelectedTeenUserModule).useSelectedTeenUser();
|
|
const value3 = (UseFamilyCenterActivitiesModule).useHasActionForAnyDisplayType();
|
|
if (value2 === undefined) {
|
|
return null;
|
|
}
|
|
const sortedActivityTypeConfigs = (FamilyCenterUtilsModule).getSortedActivityTypeConfigs();
|
|
const items2 = [
|
|
<View style={styles.preface}>
|
|
<FamilyCenterActivityCardPrefaceText />
|
|
</View>,
|
|
];
|
|
items2[1] = (
|
|
<View style={styles.container}>
|
|
<FamilyCenterActivityCardHeader />
|
|
<View style={styles.content}>
|
|
<View style={styles.totals}>
|
|
{sortedActivityTypeConfigs.filter(_fun102007).map(_fun102008)}
|
|
</View>
|
|
{((Component) => <Component />)(importDefault(13409) /* metro dependency 13409: FamilyCenterTopActivity */)}
|
|
{
|
|
value3
|
|
? (
|
|
<View style={styles.activities}>
|
|
{sortedActivityTypeConfigs.map(_fun102009)}
|
|
</View>
|
|
)
|
|
: null
|
|
}
|
|
</View>
|
|
</View>
|
|
);
|
|
items2[2] = (
|
|
<View style={styles.settingsControls}>
|
|
{((Component) => <Component />)(importDefault(13419) /* metro dependency 13419: FamilyCenterSettingsControls */)}
|
|
</View>
|
|
);
|
|
return (
|
|
<View style={styles.card}>
|
|
{items2}
|
|
</View>
|
|
);
|
|
function _fun102007(a0) { // fn#102007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5309, offset: 0x02227cd4, size: 50 bytes, params: 2, frame: 5
|
|
const iterator = a0[Symbol.iterator]();
|
|
let item2 = iterator.next();
|
|
const item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
let value = undefined;
|
|
const value2 = item2 === value;
|
|
const r1 = value2 ? value : item;
|
|
if (!value2) {
|
|
item2.return();
|
|
}
|
|
value = environment.__proto__;
|
|
const GIFTS = TeenActionDisplayType.GIFTS;
|
|
return r1 !== GIFTS;
|
|
}
|
|
|
|
function _fun102008(a0, a1) { // fn#102008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5335, offset: 0x02227d06, size: 175 bytes, params: 3, frame: 19
|
|
var r0;
|
|
var r1;
|
|
var item3;
|
|
var value3;
|
|
const iterator = a0[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let item2 = Reflect.apply(iterator2, iterator, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
const value = undefined;
|
|
const value2 = item2 === value;
|
|
const r6 = value2 ? value : item;
|
|
if (value2) {
|
|
r0 = item2;
|
|
r1 = value2;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
r0 = item3;
|
|
r1 = value3;
|
|
}
|
|
if (!r1) {
|
|
r0.return();
|
|
}
|
|
return (
|
|
<View style={a1 === 0 ? styles.first : styles.other} key={'total-' + r6}>
|
|
{((Component) => <Component displayType={r6} />)(importDefault(13408) /* metro dependency 13408: FamilyCenterActivityTotal */)}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function _fun102009(a0) { // fn#102009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13592:5492, offset: 0x02227db5, size: 114 bytes, params: 2, frame: 17
|
|
var r0;
|
|
var r1;
|
|
var item3;
|
|
var value3;
|
|
const iterator = a0[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let item2 = Reflect.apply(iterator2, iterator, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
const value = undefined;
|
|
const value2 = item2 === value;
|
|
const r6 = value2 ? value : item;
|
|
if (value2) {
|
|
r0 = item2;
|
|
r1 = value2;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
r0 = item3;
|
|
r1 = value3;
|
|
}
|
|
if (!r1) {
|
|
r0.return();
|
|
}
|
|
return ((Component) => <Component displayType={r6} key={'section-' + r6} />)(FamilyCenterActivitySection);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun101992, 13402, [31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 5187, 12627, 1244, 2224, 1305, 13403,
|
|
4573, 8792, 5080, 13404, 1962, 7548, 13405, 13406, 12624, 4080, 3856, 3995, 9059, 683, 10787, 13407, 13408,
|
|
13409, 13412, 13419,
|
|
2]) /* metro module 13402, dependencies: [31, 27, 5117, 661, 33, 4501, 697, 8171, 8170, 5187, 12627, 1244, 2224, 1305, 13403, 4573, 8792, 5080, 13404, 1962, 7548, 13405, 13406, 12624, 4080, 3856, 3995, 9059, 683, 10787, 13407, 13408, 13409, 13412, 13419, 2] */;
|