78 lines
4.2 KiB
TypeScript
78 lines
4.2 KiB
TypeScript
/* Metro module 14387; source: modules/guilds_bar/native/GuildsBarFolderMenuItems.tsx; dependencies: [5, 4896, 661, 9027, 1244, 12686, 1962, 7002, 14388, 2] */
|
|
function _fun108909(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14584:6, offset: 0x02334654, size: 152 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
|
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticsSections;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/GuildsBarFolderMenuItems.tsx');
|
|
exports.getGuildFolderMenuItems = getGuildFolderMenuItems;
|
|
}
|
|
|
|
function getGuildFolderMenuItems(a0) { // fn#108910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14584:258, offset: 0x023346ec, size: 205 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
const object2 = {};
|
|
const EnvelopeIcon = (require(9027) /* metro dependency 9027: EnvelopeIcon */).EnvelopeIcon;
|
|
object2.IconComponent = EnvelopeIcon;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
object2.label = Reflect.apply(string, intl, [t.e6RscS]);
|
|
object2.action = action_108911;
|
|
const items2 = [object2];
|
|
const SettingsIcon = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon;
|
|
string = intl.string;
|
|
const Dx7im5 = t.Dx7im5;
|
|
items2[1] = {IconComponent: SettingsIcon, label: Reflect.apply(string, intl, [Dx7im5]), action: action_108914};
|
|
return items2;
|
|
}
|
|
|
|
function getGuildFolderMenuItemsAction() { // fn#108911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14584:388, owner: getGuildFolderMenuItems.action, offset: 0x023347b9, size: 29 bytes, params: 1, frame: 11
|
|
return env1_2(_fun108913)();
|
|
}
|
|
|
|
function getGuildFolderMenuItemsAction_108914() { // fn#108914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14584:606, owner: getGuildFolderMenuItems.action, offset: 0x0233485f, size: 29 bytes, params: 1, frame: 11
|
|
return env1_2(_fun108916)();
|
|
}
|
|
|
|
function* _fun108913() { // fn#108913, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14584:395, offset: 0x023347e1, size: 126 bytes, params: 1, frame: 16
|
|
if (true) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
var binding = env3_3;
|
|
var guildFolderById = binding.getGuildFolderById(require);
|
|
if (guildFolderById != null) {
|
|
binding = env3_0;
|
|
var binding2 = env3_1;
|
|
var value5 = binding(binding2[6]);
|
|
var property = binding2[5];
|
|
yield value5(property, binding2.paths);
|
|
var value6 = undefined;
|
|
if (false) {
|
|
return value6;
|
|
}
|
|
property = value6.default;
|
|
var guildIds = guildFolderById.guildIds;
|
|
var GUILD_LIST = env3_4.GUILD_LIST;
|
|
property(guildIds, GUILD_LIST);
|
|
}
|
|
}
|
|
}
|
|
|
|
function* _fun108916() { // fn#108916, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14584:613, offset: 0x02334887, size: 87 bytes, params: 1, frame: 14
|
|
if (true) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
var binding = env3_0;
|
|
var binding2 = env3_1;
|
|
yield binding(binding2[6])(binding2[8], binding2.paths);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
var showGuildsBarFolderModal = value.showGuildsBarFolderModal;
|
|
value = environment.__proto__.__proto__;
|
|
showGuildsBarFolderModal(require);
|
|
}
|
|
}
|
|
|