Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
64 lines
2.3 KiB
TypeScript
64 lines
2.3 KiB
TypeScript
// Module ID: 13206
|
|
// Function ID: 13207
|
|
// Name: UserProfileNote
|
|
// Dependencies: [19, 21, 8338, 13207, 5693, 4636, 1115, 4607, 13209, 13213, 2]
|
|
// Exports: default
|
|
|
|
// Module 13206 (UserProfileNote)
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4607 */;
|
|
import openEditNoteModalDefault from "openEditNoteModal" /* 13209 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileNote.tsx");
|
|
|
|
export default function UserProfileNote(userId) {
|
|
userId = userId.userId;
|
|
const onBack = userId.onBack;
|
|
let trackUserProfileAction;
|
|
trackUserProfileAction = userId(trackUserProfileAction[2]).useUserProfileAnalyticsContext().trackUserProfileAction;
|
|
const note = onBack(trackUserProfileAction[3])(userId).note;
|
|
let tmp3 = null != note;
|
|
if (tmp3) {
|
|
tmp3 = "" !== note;
|
|
}
|
|
const obj2 = { label: null, subLabel: null, accessibilityHint: null, onPress: null, trailing: null, arrow: null, start: true, end: true };
|
|
const obj3 = { variant: "text-sm/semibold", color: "text-default", children: null };
|
|
const intl = tmp(tmp2[6]).intl;
|
|
obj3.children = intl.string(userId(trackUserProfileAction[6]).t["mQKv+v"]);
|
|
obj2.label = jsx(userId(trackUserProfileAction[5]).Text, { variant: "text-sm/semibold", color: "text-default", children: null });
|
|
let tmp5;
|
|
if (tmp3) {
|
|
tmp5 = note;
|
|
}
|
|
obj2.subLabel = tmp5;
|
|
const intl2 = tmp(tmp2[6]).intl;
|
|
const string = intl2.string;
|
|
const t = tmp(tmp2[6]).t;
|
|
if (tmp3) {
|
|
let stringResult = string(t["gs+qcM"]);
|
|
} else {
|
|
stringResult = string(t["1ZZtts"]);
|
|
}
|
|
obj2.accessibilityHint = stringResult;
|
|
obj2.onPress = function onPress() {
|
|
ActionSheetActionCreatorsDefault.hideActionSheet();
|
|
openEditNoteModalDefault({
|
|
userId,
|
|
onBack,
|
|
onSave() {
|
|
return trackUserProfileAction({ action: "SET_NOTE" });
|
|
}
|
|
});
|
|
};
|
|
let tmp4Result;
|
|
if (!tmp3) {
|
|
const obj4 = { IconComponent: tmp(tmp2[9]).PaperPlusIcon };
|
|
tmp4Result = tmp4(tmp(tmp2[4]).TableRow.Icon, obj4);
|
|
}
|
|
obj2.trailing = tmp4Result;
|
|
obj2.arrow = tmp3;
|
|
return jsx(userId(trackUserProfileAction[4]).TableRow, { label: null, subLabel: null, accessibilityHint: null, onPress: null, trailing: null, arrow: null, start: true, end: true });
|
|
};
|