decord/source/modules/user_profile/native/UserProfileNote.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

95 lines
3.1 KiB
TypeScript

// Module ID: 13181
// Function ID: 13182
// Name: UserProfileNote
// Dependencies: [19, 21, 4636, 8307, 13182, 8014, 13184, 5204, 1114, 4603, 13186, 7310, 4632, 2]
// Exports: default
// Module 13181 (UserProfileNote)
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4603 */;
import openEditNoteModalDefault from "openEditNoteModal" /* 13186 */;
import noop from "module_19" /* 19 */;
const require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4636);
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 = <PaperPlusIcon size="xs" color="interactive-text-default" />;
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
});
};