83 lines
5.1 KiB
TypeScript
83 lines
5.1 KiB
TypeScript
/* Metro module 13410; source: modules/parent_tools/native/FamilyCenterTopUsersBottomSheet.tsx; dependencies: [31, 1878, 33, 4501, 5187, 6238, 3995, 1305, 6805, 4573, 1244, 2224, 6231, 2] */
|
|
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import FamilyCenterMessages from '../FamilyCenter.messages.js'; /* Metro dependency 2224 */
|
|
import UserUtils from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
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 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 FamilyCenterUtilsModule from '../FamilyCenterUtils.tsx'; /* Metro dependency 5187 */
|
|
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 */
|
|
|
|
function _fun102048(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:6, offset: 0x022296e1, size: 216 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const env0_6 = (CreateStylesModule).createStyles({header: {textAlign: 'center'}});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterTopUsersBottomSheet.tsx');
|
|
exports.default = FamilyCenterTopUsersBottomSheet;
|
|
function UserRow_102049({userActivity}) { // fn#102049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:195, offset: 0x022297b9, size: 227 bytes, params: 2, frame: 21
|
|
const userStoreBinding = UserStore;
|
|
const getUser = userStoreBinding.getUser;
|
|
const user_id = userActivity.user_id;
|
|
const value2 = Reflect.apply(getUser, userStoreBinding, [user_id]);
|
|
if (value2 == null) {
|
|
return null;
|
|
}
|
|
const topUserOrGuildDescription = (FamilyCenterUtilsModule).getTopUserOrGuildDescription(userActivity.dms_sent,
|
|
userActivity.call_count);
|
|
const TableRow = (TableRowNativeModule).TableRow;
|
|
const tableRowProps = {label: (UserUtils).getName(value2),
|
|
subLabel: topUserOrGuildDescription};
|
|
const Avatar = (NativeModule).Avatar;
|
|
const AvatarSizes = (NativeModule).AvatarSizes;
|
|
const SMALL = AvatarSizes.SMALL;
|
|
tableRowProps.icon = (
|
|
<Avatar
|
|
size={SMALL}
|
|
user={value2}
|
|
guildId={undefined}
|
|
/>
|
|
);
|
|
return <TableRow {...tableRowProps} />;
|
|
}
|
|
|
|
function FamilyCenterTopUsersBottomSheet({topUserActivities}) { // fn#102050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:599, offset: 0x0222989c, size: 239 bytes, params: 2, frame: 24
|
|
const styles = useStyles();
|
|
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
|
|
const Text = (TextModule).Text;
|
|
const intl = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const BxbvS7 = (FamilyCenterMessages).BxbvS7;
|
|
const text = (
|
|
<Text variant="text-md/bold" style={styles.header}>
|
|
{Reflect.apply(string, intl, [BxbvS7])}
|
|
</Text>
|
|
);
|
|
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
|
|
return (
|
|
<ActionSheet>
|
|
{text}
|
|
<TableRowGroup hasIcons>
|
|
{topUserActivities.map(_fun102051)}
|
|
</TableRowGroup>
|
|
</ActionSheet>
|
|
);
|
|
function _fun102051(a0) { // fn#102051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13600:870, offset: 0x0222998b, size: 38 bytes, params: 2, frame: 15
|
|
const user_id = a0.user_id;
|
|
return <UserRow_102049 userActivity={a0} key={user_id} />;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun102048, 13410, [31, 1878, 33, 4501, 5187, 6238, 3995, 1305, 6805, 4573, 1244, 2224, 6231,
|
|
2]) /* metro module 13410, dependencies: [31, 1878, 33, 4501, 5187, 6238, 3995, 1305, 6805, 4573, 1244, 2224, 6231, 2] */;
|