// Module ID: 13121 // Function ID: 13122 // Name: UserProfileNote // Dependencies: [19, 21, 4605, 8253, 13122, 7962, 13124, 5173, 1114, 4572, 13126, 7259, 4601, 2] // Exports: default // Module 13121 (UserProfileNote) import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4572 */; import openEditNoteModalDefault from "openEditNoteModal" /* 13126 */; import noop from "module_19" /* 19 */; const require = fn; const jsx = fn(21).jsx; const createStyles = fn(4605); let closure_4 = createStyles.createStyles({ title: { justifyContent: "space-between" } }); const size = fn(2); const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileNote.tsx"); export default function UserProfileNote(style) { const userId = style.userId; const onBack = style.onBack; let trackUserProfileAction; const tmp = closure_4(); trackUserProfileAction = userId(trackUserProfileAction[3]).useUserProfileAnalyticsContext().trackUserProfileAction; const note = onBack(trackUserProfileAction[4])(userId).note; let tmp6Result = null != note; if (tmp6Result) { tmp6Result = "" !== note; } if (tmp6Result) { let PaperPlusIcon = tmp2(tmp3[5]).PaperIcon; } else { PaperPlusIcon = tmp2(tmp3[6]).PaperPlusIcon; } const intl = tmp2(tmp3[8]).intl; const string = intl.string; const t = tmp2(tmp3[8]).t; if (tmp6Result) { let stringResult = string(t["gs+qcM"]); } else { stringResult = string(t["1ZZtts"]); } const obj2 = { accessibilityRole: "button", accessibilityHint: stringResult, accessibilityLabel: note, onPress() { ActionSheetActionCreatorsDefault.hideActionSheet(); openEditNoteModalDefault({ userId, onBack, onSave() { return trackUserProfileAction({ action: "SET_NOTE" }); } }); }, activeOpacity: 0.8, children: null }; const obj3 = { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null }; const obj = userId(trackUserProfileAction[3]); const intl2 = tmp2(tmp3[8]).intl; obj3.title = intl2.string(userId(trackUserProfileAction[8]).t["mQKv+v"]); const items = [tmp.title, ]; let obj4 = !tmp6Result; if (!tmp6Result) { obj4 = { marginBottom: 0 }; } items[1] = obj4; obj3.titleStyle = items; obj3.titleIcon = ; if (tmp6Result) { const obj5 = { variant: "text-md/normal", color: "text-default", children: note }; tmp6Result = tmp6(tmp2(tmp3[12]).Text, obj5); } obj3.children = tmp6Result; obj2.children = jsx(onBack(trackUserProfileAction[11]), { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null }); return jsx(userId(trackUserProfileAction[7]).PressableOpacity, { accessibilityRole: "button", accessibilityHint: stringResult, accessibilityLabel: note, onPress() { ActionSheetActionCreatorsDefault.hideActionSheet(); openEditNoteModalDefault({ userId, onBack, onSave() { return trackUserProfileAction({ action: "SET_NOTE" }); } }); }, activeOpacity: 0.8, children: null }); };