85 lines
5.3 KiB
TypeScript
85 lines
5.3 KiB
TypeScript
/* Metro module 14387; source: modules/guilds_bar/native/GuildsBarFolderMenuItems.tsx; dependencies: [5, 4896, 661, 9027, 1244, 12686, 1962, 7002, 14388, 2] */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import SortedGuildStore from '../../../stores/SortedGuildStore.tsx'; /* Metro dependency 4896 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as SettingsIconModule from '../../../design/components/Icon/native/redesign/generated/SettingsIcon.tsx'; /* Metro dependency 7002 */
|
|
import * as EnvelopeIconModule from '../../../design/components/Icon/native/redesign/generated/EnvelopeIcon.tsx'; /* Metro dependency 9027 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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 object = {};
|
|
const EnvelopeIcon = (EnvelopeIconModule).EnvelopeIcon;
|
|
object.IconComponent = EnvelopeIcon;
|
|
const intl = (IndexNativeModule).intl;
|
|
let string = intl.string;
|
|
const t = (IndexNativeModule).t;
|
|
object.label = Reflect.apply(string, intl, [t.e6RscS]);
|
|
object.action = action_108911;
|
|
const items2 = [object];
|
|
const SettingsIcon = (SettingsIconModule).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* _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 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* _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);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun108909, 14387, [5, 4896, 661, 9027, 1244, 12686, 1962, 7002, 14388,
|
|
2]) /* metro module 14387, dependencies: [5, 4896, 661, 9027, 1244, 12686, 1962, 7002, 14388, 2] */;
|