Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,106 @@
|
||||
/* Metro module 11234; source: modules/favorites/buildFavoritesSectionButtons.native.tsx; dependencies: [5, 1382, 3857, 1244, 8633, 11235, 1962, 2970, 8635, 2] */
|
||||
function _fun85896(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11420:6, offset: 0x01f81099, size: 156 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const favoriteStore = importDefault(1382) /* metro dependency 1382: FavoriteStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/favorites/buildFavoritesSectionButtons.native.tsx');
|
||||
exports.default = buildFavoritesSectionButtons;
|
||||
}
|
||||
|
||||
function _addChannelToFavorites() { // fn#85897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11420:116, offset: 0x01f81135, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85899).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _removeChannelFromFavorites() { // fn#85900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11420:506, offset: 0x01f81265, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85902).apply(this, arguments);
|
||||
}
|
||||
|
||||
function buildFavoritesSectionButtons({hasFavoritesAccess, canFavoriteChannel, isChannelInFavorites, isFavoritesGuild, channelId}) { // fn#85903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11420:778, offset: 0x01f812f5, size: 288 bytes, params: 2, frame: 19
|
||||
var r1;
|
||||
var r0;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
if (hasFavoritesAccess) {
|
||||
if (canFavoriteChannel) {
|
||||
if (isChannelInFavorites) {
|
||||
object2 = {};
|
||||
object2.label = intl.string((importDefault(2970) /* metro dependency 2970: FavoritesGuildMessages */).TN4nAX);
|
||||
object2.IconComponent = (require(8633) /* metro dependency 8633: StarIcon */).StarIcon;
|
||||
object2.isDestructive = true;
|
||||
object2.onPress = function() {
|
||||
return _fun85905(channelId);
|
||||
};
|
||||
r1 = object2;
|
||||
} else if (isFavoritesGuild) {
|
||||
r1 = null;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.label = intl.string((importDefault(2970) /* metro dependency 2970: FavoritesGuildMessages */).G9fGlP);
|
||||
object2.IconComponent = (require(8635) /* metro dependency 8635: StarOutlineIcon */).StarOutlineIcon;
|
||||
object2.onPress = onPress_85906;
|
||||
r1 = object2;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun85899(a0) { // fn#85899, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11420:183, offset: 0x01f81172, size: 243 bytes, params: 2, frame: 21
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var binding2 = env2_2;
|
||||
var value3 = binding(binding2[2]);
|
||||
var open = value3.open;
|
||||
var object2 = {key: 'FAVORITE_ADDED'};
|
||||
binding = env2_0;
|
||||
var intl = binding(binding2[3]).intl;
|
||||
object2.content = intl.string(binding(binding2[3]).t['4tSWQg']);
|
||||
var StarIcon = binding(binding2[4]).StarIcon;
|
||||
object2.IconComponent = StarIcon;
|
||||
Reflect.apply(open, value3, [object2]);
|
||||
yield binding(binding2[6])(binding2[5], binding2.paths);
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
if (!env2_4.favoriteGuildEnabled) {
|
||||
value5.setFavoritesGuildVisibility(true, 'channel_context_menu');
|
||||
}
|
||||
value5.addFavoriteChannel(a0, null, 'channel_context_menu');
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun85902(a0) { // fn#85902, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11420:583, offset: 0x01f812a2, size: 83 bytes, params: 2, frame: 14
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
yield binding(binding2[6])(binding2[5], binding2.paths);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
value.removeFavoriteChannel(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function buildFavoritesSectionButtonsOnPress() { // fn#85904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11420:1042, owner: buildFavoritesSectionButtons.onPress, offset: 0x01f81415, size: 25 bytes, params: 1, frame: 11
|
||||
return (function() {
|
||||
return _removeChannelFromFavorites.apply(this, arguments);
|
||||
})(channelId);
|
||||
}
|
||||
|
||||
function buildFavoritesSectionButtonsOnPress_85906() { // fn#85906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11420:1242, owner: buildFavoritesSectionButtons.onPress, offset: 0x01f8144c, size: 25 bytes, params: 1, frame: 11
|
||||
return (function() {
|
||||
return _addChannelToFavorites.apply(this, arguments);
|
||||
})(channelId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user