53 lines
3.0 KiB
TypeScript
53 lines
3.0 KiB
TypeScript
/* Metro module 7874; source: actions/ChangeNicknameActionCreators.tsx; dependencies: [661, 507, 7067, 1244, 2] */
|
|
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
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
object2 = {changeNickname: changeNickname};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChangeNicknameActionCreators.tsx');
|
|
exports.default = object2;
|
|
}
|
|
|
|
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 = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
|
const patch = HTTP.patch;
|
|
const object2 = {};
|
|
object2.url = Endpoints.GUILD_MEMBER_NICK(a0, a2);
|
|
object2.body = {nick: a3};
|
|
object2.oldFormErrors = true;
|
|
object2.rejectWithError = false;
|
|
return Reflect.apply(patch, HTTP, [object2]).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 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const nick = body.nick;
|
|
const defaultImport = importDefault(7067) /* metro dependency 7067: 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 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).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']));
|
|
}
|
|
}
|
|
|