2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 13202
|
|
|
|
|
// Function ID: 13203
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: UserProfileEditNoteModal
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [32, 19, 21, 1484, 4841, 7110, 1365, 1115, 4634, 5710, 13203, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 13202 (UserProfileEditNoteModal)
|
|
|
|
|
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4841 */;
|
|
|
|
|
import UserProfileEditNote from "UserProfileEditNote" /* 13203 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileEditNoteModal.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function UserProfileEditNoteModal(arg0) {
|
2026-09-04 17:41:35 +00:00
|
|
|
({ userId: navigation, onSave: closure_1, onBack: dependencyMap } = arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
_slicedToArray = undefined;
|
2026-07-20 16:05:17 +00:00
|
|
|
function handleClose() {
|
2026-09-10 05:38:07 +00:00
|
|
|
ModalActionCreatorsDefault.pop();
|
2026-07-29 08:29:29 +00:00
|
|
|
if (dependencyMap != null) {
|
|
|
|
|
dependencyMap();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-09-04 17:41:35 +00:00
|
|
|
navigation = undefined;
|
2026-09-10 05:38:07 +00:00
|
|
|
onSave = undefined;
|
2026-09-15 14:23:42 +00:00
|
|
|
navigation = navigation(1484).useNavigation();
|
2026-09-10 05:38:07 +00:00
|
|
|
[_slicedToArray, onSave] = handleClose.useState(false);
|
2026-09-04 17:41:35 +00:00
|
|
|
const items = [navigation];
|
|
|
|
|
const effect = handleClose.useEffect(() => navigation.addListener("transitionEnd", (data) => {
|
|
|
|
|
if (!data.data.closing) {
|
2026-09-10 05:38:07 +00:00
|
|
|
onSave(true);
|
2026-09-04 17:41:35 +00:00
|
|
|
}
|
|
|
|
|
}), items);
|
2026-09-15 14:23:42 +00:00
|
|
|
let obj = navigation(1484);
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp6 = jsx;
|
|
|
|
|
const obj3 = { initialRouteName: "root", headerStatusBarHeight: 12, headerStyle: null, screens: null };
|
2026-09-15 14:23:42 +00:00
|
|
|
const obj2 = navigation(1365);
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj4;
|
2026-09-04 17:41:35 +00:00
|
|
|
if (!tmpResult.isAndroid()) {
|
2026-09-10 05:38:07 +00:00
|
|
|
obj4 = { height: 56 };
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3.headerStyle = obj4;
|
|
|
|
|
const obj5 = { root: null };
|
|
|
|
|
const obj6 = { title: null, headerTitle: null, headerLeft: null, render: null };
|
2026-09-15 14:23:42 +00:00
|
|
|
let intl = tmp(1115).intl;
|
|
|
|
|
obj6.title = intl.string(navigation(1115).t.sHHsOM);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj6.headerTitle = function headerTitle() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj = { variant: "redesign/heading-18/bold", accessibilityRole: "header", children: null };
|
2026-09-15 14:23:42 +00:00
|
|
|
const intl = navigation(1115).intl;
|
|
|
|
|
obj.children = intl.string(navigation(1115).t.sHHsOM);
|
2026-09-16 07:03:15 +00:00
|
|
|
return jsx(navigation(4634).Text, { variant: "redesign/heading-18/bold", accessibilityRole: "header", children: null });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-09-15 14:23:42 +00:00
|
|
|
tmpResult = navigation(1365);
|
2026-09-16 07:03:15 +00:00
|
|
|
obj6.headerLeft = navigation(5710).getHeaderCloseButton(handleClose);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj6.render = function render() {
|
|
|
|
|
return jsx(UserProfileEditNote.default, { userId: navigation, onSave, onClose: handleClose, shouldFocusInput });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-09-10 05:38:07 +00:00
|
|
|
obj5.root = obj6;
|
|
|
|
|
obj3.screens = obj5;
|
2026-09-16 07:03:15 +00:00
|
|
|
return tmp6(navigation(7110).Navigator, obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|