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

103 lines
4.5 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 12191
// Function ID: 95330
2026-07-20 16:05:17 +00:00
// Name: AddFriendNicknameModal
2026-07-28 08:39:19 +00:00
// Dependencies: [5, 57, 31, 27, 3802, 1850, 33, 4165, 689, 566, 1212, 4372, 8894, 5620, 4596, 4161, 6712, 4004, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 12191 (AddFriendNicknameModal)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import _slicedToArray from "_slicedToArray";
import result from "result";
import { View } from "get ActivityIndicator";
import closure_7 from "_isNativeReflectConstruct";
import closure_8 from "_isNativeReflectConstruct";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_10;
let closure_9;
const require = arg1;
({ jsx: closure_9, jsxs: closure_10 } = jsxProd);
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { flex: 1, backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_SCRIM, justifyContent: "center", alignItems: "center" };
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose.title = { textAlign: "center" };
_createForOfIteratorHelperLoose.description = { marginTop: 8, marginBottom: 16, textAlign: "center", lineHeight: 18 };
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const result = require("result").fileFinishedImporting("modules/user_profile/native/AddFriendNicknameModal.tsx");
2026-07-20 16:05:17 +00:00
export default function AddFriendNicknameModal(arg0) {
2026-07-23 10:11:24 +00:00
let require;
2026-07-20 16:05:17 +00:00
let showUserProfile;
2026-07-23 10:11:24 +00:00
({ userId: require, showUserProfile } = arg0);
let dependencyMap;
let _isNativeReflectConstruct;
2026-07-20 16:05:17 +00:00
let callback;
2026-07-23 10:11:24 +00:00
let callback1;
2026-07-20 16:05:17 +00:00
function _handleSubmit() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
const tmp3 = callback(callback1.useState(false), 2);
dependencyMap = tmp3[0];
_isNativeReflectConstruct = tmp3[1];
let obj = require(566) /* initialize */;
2026-07-20 16:05:17 +00:00
const items = [closure_7];
2026-07-23 10:11:24 +00:00
const stateFromStores = obj.useStateFromStores(items, () => outer1_7.getNickname(closure_0));
2026-07-20 16:05:17 +00:00
let tmp5 = null;
if (null != stateFromStores) {
tmp5 = stateFromStores;
}
2026-07-23 10:11:24 +00:00
callback = callback1.useRef(tmp5);
callback = callback1.useCallback((current) => {
_slicedToArray.current = current;
2026-07-20 16:05:17 +00:00
}, []);
2026-07-23 10:11:24 +00:00
let obj1 = require(566) /* initialize */;
2026-07-20 16:05:17 +00:00
const items1 = [closure_8];
2026-07-23 10:11:24 +00:00
const stateFromStores1 = obj1.useStateFromStores(items1, () => outer1_8.getUser(closure_0));
2026-07-20 16:05:17 +00:00
if (null == stateFromStores) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
let stringResult = intl2.string(require(1212) /* getSystemLocale */.t.BGYkaH);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
stringResult = intl.string(require(1212) /* getSystemLocale */.t["8pOYUE"]);
2026-07-20 16:05:17 +00:00
}
const items2 = [showUserProfile];
2026-07-23 10:11:24 +00:00
callback1 = callback1.useCallback(() => {
let arr = showUserProfile(table[11]);
2026-07-20 16:05:17 +00:00
arr = arr.pop();
if (null != showUserProfile) {
showUserProfile();
}
}, items2);
obj = { style: tmp.container };
obj = {};
obj1 = {};
2026-07-28 08:39:19 +00:00
const tmp14 = showUserProfile(5620);
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
obj1.confirmText = intl3.string(require(1212) /* getSystemLocale */.t["R3BPH+"]);
2026-07-20 16:05:17 +00:00
obj1.onConfirm = function handleSubmit() {
return _handleSubmit(...arguments);
};
2026-07-23 10:11:24 +00:00
const intl4 = require(1212) /* getSystemLocale */.intl;
obj1.cancelText = intl4.string(require(1212) /* getSystemLocale */.t["ETE/oC"]);
2026-07-20 16:05:17 +00:00
obj1.onCancel = callback1;
2026-07-23 10:11:24 +00:00
const obj2 = { style: tmp.title, accessibilityRole: "header", variant: "heading-lg/extrabold", color: "mobile-text-heading-primary", children: stringResult };
2026-07-28 08:39:19 +00:00
const items3 = [callback2(require(4161) /* Text */.Text, obj2), , ];
2026-07-23 10:11:24 +00:00
const obj3 = { style: tmp.description, variant: "text-sm/medium", color: "text-default" };
const intl5 = require(1212) /* getSystemLocale */.intl;
obj3.children = intl5.string(require(1212) /* getSystemLocale */.t["NdQ+lP"]);
2026-07-28 08:39:19 +00:00
items3[1] = callback2(require(4161) /* Text */.Text, obj3);
2026-07-23 10:11:24 +00:00
const obj4 = { onChange: callback, autoFocus: true, placeholder: null, defaultValue: null, maxLength: 32, isClearable: true };
2026-07-28 08:39:19 +00:00
const tmp15 = showUserProfile(4596);
obj4.placeholder = showUserProfile(4004).getName(stateFromStores1);
2026-07-20 16:05:17 +00:00
obj4.defaultValue = stateFromStores;
2026-07-28 08:39:19 +00:00
items3[2] = callback2(require(6712) /* TextField */.TextField, obj4);
2026-07-20 16:05:17 +00:00
obj1.children = items3;
obj.children = callback3(tmp15, obj1);
obj.children = callback2(tmp14, obj);
return callback2(_handleSubmit, obj);
};