decord/source/modules/user_profile/native/UserProfileNote.tsx

83 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 12706
// Function ID: 12707
2026-07-20 16:05:17 +00:00
// Name: UserProfileNote
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 21, 4478, 8571, 12707, 7828, 12709, 5076, 1233, 4445, 12711, 6008, 4474, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 12706 (UserProfileNote)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
let closure_4 = createCacheKey.createStyles({ title: { justifyContent: "space-between" } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileNote.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileNote(style) {
const userId = style.userId;
2026-07-23 10:11:24 +00:00
const onBack = style.onBack;
2026-07-29 08:29:29 +00:00
let trackUserProfileAction;
2026-07-23 10:11:24 +00:00
let obj = userId(trackUserProfileAction[3]);
trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
const note = onBack(trackUserProfileAction[4])(userId).note;
2026-07-29 08:29:29 +00:00
let tmp6Result = null != note;
if (tmp6Result) {
tmp6Result = "" !== note;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp6Result) {
let PaperPlusIcon = tmp2(tmp3[5]).PaperIcon;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
PaperPlusIcon = tmp2(tmp3[6]).PaperPlusIcon;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const intl = tmp2(tmp3[8]).intl;
2026-07-20 16:05:17 +00:00
const string = intl.string;
2026-07-29 08:29:29 +00:00
const t = tmp2(tmp3[8]).t;
if (tmp6Result) {
2026-07-23 10:11:24 +00:00
let stringResult = string(t["gs+qcM"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
stringResult = string(t["1ZZtts"]);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj = {
accessibilityRole: "button",
accessibilityHint: stringResult,
accessibilityLabel: note,
onPress() {
let obj = onBack(trackUserProfileAction[9]);
obj.hideActionSheet();
obj = {
userId,
onBack,
onSave() {
return callback({ action: "SET_NOTE" });
}
};
onBack(trackUserProfileAction[10])(obj);
},
activeOpacity: 0.8,
children: null
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj = { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null };
2026-07-20 16:05:17 +00:00
const tmp = callback();
2026-07-29 08:29:29 +00:00
const tmp4 = onBack;
const tmp8 = note;
const intl2 = tmp2(tmp3[8]).intl;
obj[1] = intl2.string(userId(trackUserProfileAction[8]).t["mQKv+v"]);
2026-07-20 16:05:17 +00:00
const items = [tmp.title, ];
2026-08-24 06:08:38 +00:00
obj1 = !tmp6Result;
2026-07-29 08:29:29 +00:00
if (!tmp6Result) {
obj1 = { marginBottom: 0 };
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[1] = obj1;
obj[2] = items;
obj[3] = <PaperPlusIcon size="xs" color="interactive-text-default" />;
if (tmp6Result) {
const obj2 = { variant: "text-md/normal", color: "text-default", children: null };
obj2[2] = note;
tmp6Result = tmp6(tmp2(tmp3[12]).Text, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[4] = tmp6Result;
obj[5] = jsx(onBack(trackUserProfileAction[11]), { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null });
return jsx(userId(trackUserProfileAction[7]).PressableOpacity, { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null });
2026-07-20 16:05:17 +00:00
};