// Module ID: 12023 // Function ID: 92928 // Name: FriendRequestNote // Dependencies: [] // Exports: default // Module 12023 (FriendRequestNote) let closure_2 = importDefault(dependencyMap[0]); let closure_3 = importAll(dependencyMap[1]); ({ Pressable: closure_4, View: closure_5 } = arg1(dependencyMap[2])); let closure_6 = importDefault(dependencyMap[3]); const RelationshipTypes = arg1(dependencyMap[4]).RelationshipTypes; const tmp2 = arg1(dependencyMap[2]); ({ jsx: closure_8, jsxs: closure_9 } = arg1(dependencyMap[5])); let obj = arg1(dependencyMap[6]); obj = {}; obj = { "Null": 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001887011468510127, "Null": 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008380593833303771, "Null": -625777451929953900000000000000000000000000000000000000000000000000000000000000000000000000000, "Null": 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014006420419228474, "Null": 0.000000000000000000000000000000000000000000000000000000000000046651777180644195, "Null": -0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009910934035031072, "Null": 0.00000000000000000000000000000000000000000000000000000000000004667261458271638, padding: importDefault(dependencyMap[7]).space.PX_12, borderRadius: importDefault(dependencyMap[7]).radii.md }; obj.container = obj; const obj1 = { "Null": false, "Null": false, "Null": false, "Null": false, "Null": false, "Null": false, "Null": false, borderRadius: importDefault(dependencyMap[7]).radii.md }; obj.spoiler = obj1; obj.hidden = { opacity: 0 }; let closure_10 = obj.createStyles(obj); const tmp3 = arg1(dependencyMap[5]); const result = arg1(dependencyMap[15]).fileFinishedImporting("modules/people/native/FriendRequestNote.tsx"); export default function FriendRequestNote(styles) { let analyticsLocation; let backgroundColor; ({ userId: closure_0, backgroundColor, analyticsLocation } = styles); const dependencyMap = analyticsLocation; const tmp = callback3(); const HideFriendRequestNotes = arg1(dependencyMap[8]).HideFriendRequestNotes; const setting = HideFriendRequestNotes.useSetting(); let obj = arg1(dependencyMap[9]); const items = [closure_6]; const stateFromStoresObject = obj.useStateFromStoresObject(items, () => ({ note: store.getNote(closure_0), type: store.getRelationshipType(closure_0) })); const note = stateFromStoresObject.note; let callback = note; const tmp4 = callback(React.useState(stateFromStoresObject.type === RelationshipTypes.PENDING_OUTGOING), 2); const first = tmp4[0]; const React = tmp4[1]; const items1 = [analyticsLocation, note]; callback = React.useCallback(() => { callback2(true); let obj = callback(analyticsLocation[10]); obj = { analyticsLocation }; let length; if (null != note) { length = note.length; } let num = 0; if (null != length) { num = length; } obj.noteLength = num; const result = obj.trackViewFriendRequestNote(obj); }, items1); let tmp19Result = null; if (!setting) { tmp19Result = null; if (null != note) { tmp19Result = null; if ("" !== note) { obj = {}; const items2 = [tmp.container, styles.styles]; obj.style = items2; obj.onPress = callback; obj = {}; let hidden; if (!first) { hidden = tmp.hidden; } obj.style = hidden; const obj1 = { accessible: first, accessibilityElementsHidden: !first, accessibilityLabel: str, variant: "redesign/message-preview/normal", children: note }; obj.children = callback2(arg1(dependencyMap[11]).Text, obj1); const items3 = [callback2(closure_5, obj), ]; let tmp13Result = null; if (!first) { const obj2 = {}; const items4 = [tmp.spoiler, ]; let tmp15; if (null != backgroundColor) { const obj3 = { backgroundColor }; tmp15 = obj3; } items4[1] = tmp15; obj2.style = items4; const obj4 = { : 44, : null, : true }; const obj5 = { size: "sm" }; obj4.icon = callback2(arg1(dependencyMap[13]).EyeIcon, obj5); obj4.onPress = callback; const intl = arg1(dependencyMap[14]).intl; obj4.text = intl.string(arg1(dependencyMap[14]).t.sB0q4C); obj2.children = callback2(arg1(dependencyMap[12]).Button, obj4); tmp13Result = callback2(closure_5, obj2); const tmp13 = callback2; const tmp14 = closure_5; } items3[1] = tmp13Result; obj.children = items3; tmp19Result = closure_9(closure_4, obj); const tmp19 = closure_9; const tmp20 = closure_4; const tmp21 = callback2; const tmp22 = closure_5; const tmp9 = callback2; } } } return tmp19Result; };