Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/* Metro module 13229; source: modules/user_profile/native/UserProfileLegacyUsernameSwitch.tsx; dependencies: [31, 33, 3829, 13209, 1244, 7620, 8400, 2] */
|
||||
function _fun100906(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#100906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13419:6, offset: 0x021ff8be, size: 131 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/UserProfileLegacyUsernameSwitch.tsx');
|
||||
exports.default = UserProfileLegacyUsernameSwitch;
|
||||
}
|
||||
|
||||
function UserProfileLegacyUsernameSwitch({legacyUsername, pendingLegacyUsernameDisabled}) { // fn#100907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13419:225, offset: 0x021ff941, size: 243 bytes, params: 2, frame: 21
|
||||
const LegacyUsernameDisabled = (require(3829) /* metro dependency 3829: UserSettings */).LegacyUsernameDisabled;
|
||||
const r5 = pendingLegacyUsernameDisabled === undefined ? LegacyUsernameDisabled.useSetting() : pendingLegacyUsernameDisabled;
|
||||
const UserProfileEditFormSwitch = (require(13209) /* metro dependency 13209: UserProfileEditFormControls */).UserProfileEditFormSwitch;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<UserProfileEditFormSwitch
|
||||
value={!r5}
|
||||
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3cWDuO'])}
|
||||
subLabel={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.aYhclf,
|
||||
{username: legacyUsername})}
|
||||
onValueChange={onValueChange_100908}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function UserProfileLegacyUsernameSwitchOnValueChange(a0) { // fn#100908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13419:572, owner: UserProfileLegacyUsernameSwitch.onValueChange, offset: 0x021ffa34, size: 104 bytes, params: 2, frame: 12
|
||||
var value3;
|
||||
var moduleValue;
|
||||
let value = !a0;
|
||||
if (value === env0_0) {
|
||||
value = environment.__proto__;
|
||||
value = require(7620) /* metro dependency 7620: UserSettingsAccountActionCreators */;
|
||||
value.resetPendingLegacyUsernameDisabled();
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(8400) /* metro dependency 8400: UserProfileSettingsActionCreators */;
|
||||
moduleValue.setPendingChanges({legacyUsernameDisabled: value});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user