/* Metro module 7873; source: modules/application_commands/native/ApplicationCommandBuiltIns.tsx; dependencies: [3793, 1878, 5066, 1909, 5068, 1244, 4805, 4647, 4603, 7067, 2] */ function _fun63116(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8051:6, offset: 0x01b70e18, size: 284 bytes, params: 8, frame: 19 var object2; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; const BuiltInSectionId = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId; object2 = {'id': '-15', 'untranslatedName': 'leave', 'displayName': 'leave'}; const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType; const CHAT = ApplicationCommandType.CHAT; object2.type = CHAT; const ApplicationCommandInputType = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandInputType; let BUILT_IN = ApplicationCommandInputType.BUILT_IN; object2.inputType = BUILT_IN; BUILT_IN = BuiltInSectionId.BUILT_IN; object2.applicationId = BUILT_IN; Object.defineProperty(object2, 'untranslatedDescription', {get: function() { return require(dependencyMap[5]).intl.string(require(dependencyMap[5]).t['26C4oi']); }, set: undefined, enumerable: true, configurable: true}); Object.defineProperty(object2, 'displayDescription', {get: function() { return require(dependencyMap[5]).intl.string(require(dependencyMap[5]).t['26C4oi']); }, set: undefined, enumerable: true, configurable: true}); object2.predicate = function({channel}) { return channel != null && channel.isGroupDM(); }; object2.execute = execute_63120; const items2 = [object2]; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandBuiltIns.tsx'); exports.default = items2; } function execute_63120(a0, {channel}) { // fn#63120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8051:533, offset: 0x01b70f8f, size: 457 bytes, params: 3, frame: 24 var r6; var r7; var channelName; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const t = (require(1244) /* metro dependency 1244: indexNative */).t; var object2; var value2; var format; var SSIVOu; var value4; var defaultImport; var show; if (channel != null) { channelName = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel, UserStore, RelationshipStore); value2 = intl.formatToPlainString(t.hJ5Ap4, {name: channelName}); format = intl.format; SSIVOu = t.SSIVOu; object2 = {name: channelName}; if (channel.isManaged()) { value4 = intl.formatToPlainString(t.hVGjEW, {name: channelName}); r6 = intl.format(t.IK1Qvs, {name: channelName}); r7 = value4; } else { r6 = Reflect.apply(format, intl, [SSIVOu, object2]); r7 = value2; } defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */; show = defaultImport.show; object2 = {title: r7, body: r6}; object2.confirmText = intl.string(t['26C4oi']); object2.cancelText = intl.string(t['ETE/oC']); object2.onConfirm = onConfirm; Reflect.apply(show, defaultImport, [object2]); } } function execute_63120OnConfirm() { // fn#63121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8051:986, owner: execute_63120.onConfirm, offset: 0x01b71158, size: 158 bytes, params: 1, frame: 18 var value; var property; var defaultImport; var closePrivateChannel; var value2; var id; var error; var defaultImport2; var sendBotMessage; var value3; var intl; var string; var t; try { value = environment.__proto__; property = dependencyMap[8]; defaultImport = importDefault(property); closePrivateChannel = defaultImport.closePrivateChannel; value2 = environment; id = channel.id; Reflect.apply(closePrivateChannel, defaultImport, [id]); } catch (error) { defaultImport2 = importDefault(dependencyMap[9]); sendBotMessage = defaultImport2.sendBotMessage; value3 = environment; id = channel.id; intl = require(dependencyMap[5]).intl; string = intl.string; t = require(dependencyMap[5]).t; Reflect.apply(sendBotMessage, defaultImport2, [id, Reflect.apply(string, intl, [t['YOsuT/']])]); } }