/* Metro module 13428; source: modules/parent_tools/native/FamilyCenterAcceptedLinks.tsx; dependencies: [31, 27, 5117, 33, 4501, 697, 8171, 8170, 12627, 1244, 2224, 4573, 13429, 13431, 5278, 5080, 13434, 1962, 1305, 13436, 2] */ import UseIsInAdultAgeGroup from '../hooks/useIsInAdultAgeGroup.tsx'; /* Metro dependency 8171 */ 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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as FamilyCenterConstantsModule from '../FamilyCenterConstants.tsx'; /* Metro dependency 5117 */ import * as UseUserLinksModule from '../hooks/useUserLinks.tsx'; /* Metro dependency 8170 */ import * as UseAgeSpecificTextModule from '../hooks/useAgeSpecificText.tsx'; /* Metro dependency 12627 */ function _fun102152(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:6, offset: 0x0222f755, size: 474 bytes, params: 8, frame: 24 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = FamilyCenterConstantsModule; const env0_4 = value.MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS; const env0_5 = value.MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS; value = require(33) /* metro dependency 33 */; const env0_6 = value.jsx; const env0_7 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; let createStyles = value.createStyles; const object3 = {'display': 'flex', 'justifyContent': 'center'}; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object3.backgroundColor = BACKGROUND_BASE_LOW; object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md; const env0_8 = Reflect.apply(createStyles, value, [{container: {marginTop: 24}, content: object3, empty: {'padding': 20, 'alignSelf': 'center'}, header: {marginBottom: 10}}]); value = require(4501) /* metro dependency 4501: createStyles */; createStyles = value.createStyles; const object4 = {'backgroundColor': null, 'tintColor': null, 'borderRadius': null, 'alignItems': 'center', 'justifyContent': 'center', 'height': 32, 'width': 32}; const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH; object4.backgroundColor = BACKGROUND_SURFACE_HIGH; const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT; object4.tintColor = INTERACTIVE_TEXT_DEFAULT; object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; const env0_9 = Reflect.apply(createStyles, value, [{actionButton: object4}]); (FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/native/FamilyCenterAcceptedLinks.tsx'); exports.default = FamilyCenterAcceptedLinks; function FamilyCenterAcceptedLinkRow({otherUser}) { // fn#102153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:730, offset: 0x0222f92f, size: 320 bytes, params: 2, frame: 27 var r0; var FamilyCenterLinkRow; var object; var PressableOpacity; var intl; var formatToPlainString; var T7DUoU; var object3; const styles = useStyles(); if (otherUser === undefined) { r0 = null; } else { FamilyCenterLinkRow = importDefault(13431) /* metro dependency 13431: FamilyCenterLinkRow */; object = {otherUser: otherUser}; PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity; intl = (require(1244) /* metro dependency 1244: indexNative */).intl; formatToPlainString = intl.formatToPlainString; T7DUoU = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).T7DUoU; object3 = {}; object3.name = otherUser?.toString(); object.actions = ( {((Icon) => )((require(1305) /* metro dependency 1305: native */).Icon)} ); r0 = ; } return r0; function FamilyCenterAcceptedLinkRowOnPress() { // fn#102154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1015, owner: FamilyCenterAcceptedLinkRow.onPress, offset: 0x0222fa6f, size: 87 bytes, params: 1, frame: 15 let value = environment.__proto__; const defaultImport = importDefault(dependencyMap[15]); const pushLazy = defaultImport.pushLazy; value = require(dependencyMap[17]); value = value(dependencyMap[16], dependencyMap.paths); Reflect.apply(pushLazy, defaultImport, [value, {otherUser: otherUser}]); } } function FamilyCenterAcceptedLinks() { // fn#102155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1296, offset: 0x0222fac6, size: 484 bytes, params: 1, frame: 28 const styles = useStyles(); const value2 = (UseIsInAdultAgeGroup)(); const value3 = (UseUserLinksModule).useActiveLinkUsers(); const r0 = value2 ? MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS : MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS; const object = {}; object.count = value3.length; object.max = r0; const useAgeSpecificText = UseAgeSpecificTextModule.useAgeSpecificText; const intl = (IndexNativeModule).intl; const value5 = Reflect.apply(useAgeSpecificText, UseAgeSpecificTextModule, [intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['+tnO34'], object), intl.formatToPlainString((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['pu6/U0'], object)]); const Text = (TextModule).Text; return ( {value5} { value3.length === 0 ? ( {((Component) => )(importDefault(13429) /* metro dependency 13429: FamilyCenterEmpty */)} ) : value3.map(_fun102156) } ); function _fun102156(a0) { // fn#102156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13618:1819, offset: 0x0222fcaa, size: 61 bytes, params: 2, frame: 16 const value = environment.__proto__; return ; } } } global.__d(_fun102152, 13428, [31, 27, 5117, 33, 4501, 697, 8171, 8170, 12627, 1244, 2224, 4573, 13429, 13431, 5278, 5080, 13434, 1962, 1305, 13436, 2]) /* metro module 13428, dependencies: [31, 27, 5117, 33, 4501, 697, 8171, 8170, 12627, 1244, 2224, 4573, 13429, 13431, 5278, 5080, 13434, 1962, 1305, 13436, 2] */;