59 lines
3.5 KiB
TypeScript
59 lines
3.5 KiB
TypeScript
/* Metro module 7874; source: actions/ChangeNicknameActionCreators.tsx; dependencies: [661, 507, 7067, 1244, 2] */
|
|
import MessageActionCreators from './MessageActionCreators.tsx'; /* Metro dependency 7067 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
|
|
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
|
|
function _fun63122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:6, offset: 0x01b711f6, size: 129 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {changeNickname: changeNickname};
|
|
(FileImportTrackerModule).fileFinishedImporting('actions/ChangeNicknameActionCreators.tsx');
|
|
exports.default = object;
|
|
function changeNickname(a0, a1, a2, a3) { // fn#63123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:134, offset: 0x01b71277, size: 132 bytes, params: 5, frame: 18
|
|
const env0_0 = a1;
|
|
const env0_1 = a3;
|
|
const HTTP = (HTTPUtilsModule).HTTP;
|
|
const patch = HTTP.patch;
|
|
const object = {};
|
|
object.url = Endpoints.GUILD_MEMBER_NICK(a0, a2);
|
|
object.body = {nick: a3};
|
|
object.oldFormErrors = true;
|
|
object.rejectWithError = false;
|
|
return Reflect.apply(patch, HTTP, [object]).then(_fun63124, _fun63125);
|
|
function _fun63124({body}) { // fn#63124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:252, offset: 0x01b712fb, size: 215 bytes, params: 2, frame: 20
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const nick = body.nick;
|
|
const defaultImport = MessageActionCreators;
|
|
defaultImport.sendBotMessage(require,
|
|
importAll == null ? intl.string(t.Vhpd9A) : importAll !== '' ? intl.formatToMarkdownString(t['gz+HRq'],
|
|
{nick: importAll}) : intl.string(t.Vhpd9A));
|
|
}
|
|
|
|
function _fun63125({status}) { // fn#63125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:419, offset: 0x01b713d2, size: 218 bytes, params: 2, frame: 18
|
|
var value;
|
|
var defaultImport;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
var defaultImport2;
|
|
if (status === 403) {
|
|
value = environment.__proto__;
|
|
defaultImport2 = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
|
|
defaultImport2.sendBotMessage(require, intl.formatToMarkdownString(t.Izf9jO, {}));
|
|
} else {
|
|
value = environment.__proto__;
|
|
defaultImport = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
|
|
defaultImport.sendBotMessage(require, intl.string(t['5LO/Ss']));
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun63122, 7874, [661, 507, 7067, 1244,
|
|
2]) /* metro module 7874, dependencies: [661, 507, 7067, 1244, 2] */;
|