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

41 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 13737
// Function ID: 13738
2026-07-20 16:05:17 +00:00
// Name: UserProfileLegacyUsernameSwitch
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 21, 3862, 13717, 1236, 9226, 7941, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 13737 (UserProfileLegacyUsernameSwitch)
import "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
let result = require("explicitContentFromProto").fileFinishedImporting("modules/user_profile/native/UserProfileLegacyUsernameSwitch.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileLegacyUsernameSwitch(username) {
const pendingLegacyUsernameDisabled = username.pendingLegacyUsernameDisabled;
2026-07-29 08:29:29 +00:00
let setting;
const LegacyUsernameDisabled = setting(3862).LegacyUsernameDisabled;
2026-07-23 10:11:24 +00:00
setting = LegacyUsernameDisabled.useSetting();
2026-07-29 08:29:29 +00:00
let tmp4 = setting;
2026-07-20 16:05:17 +00:00
if (undefined !== pendingLegacyUsernameDisabled) {
2026-07-29 08:29:29 +00:00
tmp4 = pendingLegacyUsernameDisabled;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj = { value: !tmp4, label: null, subLabel: null, onValueChange: null };
const intl = tmp(1236).intl;
obj[1] = intl.string(setting(1236).t["3cWDuO"]);
const intl2 = tmp(1236).intl;
obj[2] = intl2.formatToPlainString(setting(1236).t.aYhclf, { username: username.legacyUsername });
obj[3] = function onValueChange(arg0) {
2026-07-20 16:05:17 +00:00
if (!arg0 === setting) {
2026-07-23 10:11:24 +00:00
const result = setting(outer1_1[5]).resetPendingLegacyUsernameDisabled();
const obj3 = setting(outer1_1[5]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = setting(outer1_1[6]);
2026-07-29 08:29:29 +00:00
obj = { legacyUsernameDisabled: null };
obj[0] = !arg0;
2026-07-20 16:05:17 +00:00
obj.setPendingChanges(obj);
}
};
2026-07-29 08:29:29 +00:00
return jsx(setting(13717).UserProfileEditFormSwitch, { value: !tmp4, label: null, subLabel: null, onValueChange: null });
2026-07-20 16:05:17 +00:00
};