Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,10 @@
|
||||
/* Metro module 14452; source: modules/guilds_bar/native/utils/areGuildsBarFastListStatesEqual.tsx; dependencies: [2] */
|
||||
function _fun109378(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14649:6, offset: 0x02348ffe, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/areGuildsBarFastListStatesEqual.tsx');
|
||||
exports.default = function({version}, a1) {
|
||||
return version === a1.version;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 14399; source: modules/guilds_bar/native/utils/computeGuildsBarCutout.tsx; dependencies: [27, 14385, 1305, 7599, 2] */
|
||||
function _fun109046(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14596:6, offset: 0x0233b3b8, size: 139 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).PixelRatio;
|
||||
const env0_3 = (require(14385) /* metro dependency 14385: GuildsBarConstants */).GUILD_ITEM_SIZE;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/computeGuildsBarCutout.tsx');
|
||||
exports.default = computeGuildsBarCutout;
|
||||
}
|
||||
|
||||
function computeGuildsBarCutout({position, containerSize = GUILD_ITEM_SIZE, width, height, padding}) { // fn#109047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14596:245, offset: 0x0233b443, size: 347 bytes, params: 2, frame: 21
|
||||
const BADGE_SIZE = (require(1305) /* metro dependency 1305: native */).BADGE_SIZE;
|
||||
const r4 = width !== undefined ? width : BADGE_SIZE;
|
||||
const r5 = height !== undefined ? height : BADGE_SIZE;
|
||||
const r1 = padding !== undefined ? padding : (require(1305) /* metro dependency 1305: native */).BADGE_PADDING;
|
||||
let roundToNearestPixel = PixelRatio.roundToNearestPixel;
|
||||
const value2 = Reflect.apply(roundToNearestPixel, PixelRatio, [r4 + 2 * r1]);
|
||||
const value3 = PixelRatio.roundToNearestPixel(r5 + 2 * r1);
|
||||
roundToNearestPixel = PixelRatio.roundToNearestPixel;
|
||||
const Math = global.Math;
|
||||
const value4 = Reflect.apply(roundToNearestPixel, PixelRatio, [Math.min(value2, value3) / 2]);
|
||||
const object2 = {'shape': null, 'x': 0, 'y': 0};
|
||||
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
|
||||
const RoundedRect = CutoutShape.RoundedRect;
|
||||
object2.shape = RoundedRect;
|
||||
object2.width = value2;
|
||||
object2.height = value3;
|
||||
object2.cornerRadius = value4;
|
||||
if (position === 'top-right') {
|
||||
object2.x = containerSize - value2 + r1;
|
||||
object2.y = -r1;
|
||||
} else {
|
||||
object2.x = containerSize - value2 + r1;
|
||||
object2.y = containerSize - value3 + r1;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 14427; source: modules/guilds_bar/native/utils/getGuildBarNeighbors.tsx; dependencies: [4896, 4898, 2] */
|
||||
function _fun109191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14624:6, offset: 0x02340e4f, size: 125 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/getGuildBarNeighbors.tsx');
|
||||
exports.default = getGuildBarNeighbors;
|
||||
}
|
||||
|
||||
function toNeighbor(a0) { // fn#109192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14624:106, offset: 0x02340ecc, size: 75 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var object2;
|
||||
const value = null;
|
||||
if (value == a0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {node: a0};
|
||||
object2.isFolder = a0.type === (require(4898) /* metro dependency 4898: GuildsTree */).GuildsNodeType.FOLDER;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getGuildBarNeighbors(a0) { // fn#109193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14624:306, offset: 0x02340f17, size: 258 bytes, params: 2, frame: 19
|
||||
const guildsTree = SortedGuildStore.getGuildsTree();
|
||||
const node = guildsTree.getNode(a0);
|
||||
const value4 = null;
|
||||
if (value4 == node) {
|
||||
return value4;
|
||||
}
|
||||
let type = node.type;
|
||||
const GuildsNodeType = (require(4898) /* metro dependency 4898: GuildsTree */).GuildsNodeType;
|
||||
const GUILD = GuildsNodeType.GUILD;
|
||||
if (type !== GUILD) {
|
||||
return value4;
|
||||
}
|
||||
const r7 = value4 != node.parentId ? guildsTree.getNode(node.parentId) : guildsTree.root;
|
||||
if (value4 == r7) {
|
||||
return value4;
|
||||
}
|
||||
const value6 = r7.children.indexOf(node);
|
||||
if (value6 < 0) {
|
||||
return value4;
|
||||
}
|
||||
const property = r7.children[value6 - 1];
|
||||
const property2 = r7.children[value6 + 1];
|
||||
const object2 = {};
|
||||
type = r7.type;
|
||||
const FOLDER = GuildsNodeType.FOLDER;
|
||||
object2.containingFolder = type !== FOLDER ? value4 : r7;
|
||||
const toNeighborBinding = toNeighbor;
|
||||
object2.above = toNeighborBinding(property);
|
||||
object2.below = toNeighborBinding(property2);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,184 @@
|
||||
/* Metro module 14426; source: modules/guilds_bar/native/utils/getGuildsBarGuildAccessibilityActions.tsx; dependencies: [1867, 4896, 1244, 7896, 4002, 14427, 6593, 2] */
|
||||
function _fun109172(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:6, offset: 0x023404f1, size: 167 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const persistAndAnnounce = function(a0) {
|
||||
require(dependencyMap[3]).saveGuildFolders(SortedGuildStore.getCompatibleGuildFolders());
|
||||
if (a0 != null) {
|
||||
require(dependencyMap[4]).AccessibilityAnnouncer.announce(a0);
|
||||
}
|
||||
};
|
||||
const performMove = function(a0, a1, a2, a3, a4) {
|
||||
var value3;
|
||||
var value2 = importDefault(dependencyMap[5])(a0);
|
||||
if (value2 != null) {
|
||||
value3 = a1(value2);
|
||||
if (value3 != null) {
|
||||
importDefault(dependencyMap[6]).moveById(a0, value3.id, a2, a3);
|
||||
persistAndAnnounce(a4);
|
||||
}
|
||||
}
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/getGuildsBarGuildAccessibilityActions.tsx');
|
||||
exports.default = getGuildsBarGuildAccessibilityActions;
|
||||
}
|
||||
|
||||
function folderLabel(a0) { // fn#109173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:116, offset: 0x02340598, size: 96 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
return a0.name == null ? intl.string(t.ebAnWE) : a0.name !== '' ? a0.name : intl.string(t.ebAnWE);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActions(a0) { // fn#109176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:609, offset: 0x023406ca, size: 1359 bytes, params: 2, frame: 29
|
||||
var push;
|
||||
var object;
|
||||
var node;
|
||||
var value6;
|
||||
var id;
|
||||
var object2;
|
||||
var value7;
|
||||
var value8;
|
||||
const env0_0 = a0;
|
||||
const items2 = [];
|
||||
const r13 = GuildStore.getGuild(a0)?.name ?? '';
|
||||
const value5 = (importDefault(14427) /* metro dependency 14427: getGuildBarNeighbors */)(a0);
|
||||
if (value5 != null) {
|
||||
var containingFolder = value5.containingFolder;
|
||||
var above = value5.above;
|
||||
var below = value5.below;
|
||||
var intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString = intl.formatToPlainString;
|
||||
var t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var env0_1 = Reflect.apply(formatToPlainString, intl, [t['2XShGC'], {name: r13}]);
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
var D4maKL = t.D4maKL;
|
||||
var env0_2 = Reflect.apply(formatToPlainString, intl, [D4maKL, {name: r13}]);
|
||||
var guildAbove = function(a0) {
|
||||
var value = null;
|
||||
return value == a0.above || a0.above.isFolder ? value : a0.above.node;
|
||||
};
|
||||
var guildBelow = function(a0) {
|
||||
var value = null;
|
||||
return value == a0.below || a0.below.isFolder ? value : a0.below.node;
|
||||
};
|
||||
var folderAbove = function(a0) {
|
||||
var value = null;
|
||||
return value != a0.above && a0.above.isFolder ? a0.above.node : value;
|
||||
};
|
||||
var folderBelow = function(a0) {
|
||||
var value = null;
|
||||
return value != a0.below && a0.below.isFolder ? a0.below.node : value;
|
||||
};
|
||||
var currentFolder = function(a0) {
|
||||
return a0.containingFolder;
|
||||
};
|
||||
if (containingFolder == null) {
|
||||
items2.push({name: 'create-new-folder', label: intl.string(t.ehmVyX), action: action_109182});
|
||||
}
|
||||
if (above != null) {
|
||||
if (above.isFolder) {
|
||||
node = above.node;
|
||||
value6 = folderLabel(node);
|
||||
push = items2.push;
|
||||
id = node.id;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
Reflect.apply(push, items2, [{name: 'move-up-into-folder-' + id,
|
||||
label: Reflect.apply(formatToPlainString,
|
||||
intl,
|
||||
[t['08U1Sa'], {folderName: value6}]), action: action_109183}]);
|
||||
push = items2.push;
|
||||
id = node.id;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
Reflect.apply(push, items2, [{name: 'move-above-folder-' + id, label: Reflect.apply(formatToPlainString,
|
||||
intl,
|
||||
[t.gBM0Vf, {folderName: value6}]), action: action_109184}]);
|
||||
} else {
|
||||
push = items2.push;
|
||||
object = {name: 'move-up'};
|
||||
object.label = intl.string(t['yiH+Tx']);
|
||||
object.action = action_109185;
|
||||
Reflect.apply(push, items2, [object]);
|
||||
}
|
||||
}
|
||||
if (below != null) {
|
||||
if (below.isFolder) {
|
||||
node = below.node;
|
||||
value7 = folderLabel(node);
|
||||
push = items2.push;
|
||||
id = node.id;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
Reflect.apply(push, items2, [{name: 'move-down-into-folder-' + id,
|
||||
label: Reflect.apply(formatToPlainString,
|
||||
intl,
|
||||
[t['6lLC/B'], {folderName: value7}]), action: action_109186}]);
|
||||
push = items2.push;
|
||||
id = node.id;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
Reflect.apply(push, items2, [{name: 'move-below-folder-' + id, label: Reflect.apply(formatToPlainString,
|
||||
intl,
|
||||
[t.YhxCkM, {folderName: value7}]), action: action_109187}]);
|
||||
} else {
|
||||
push = items2.push;
|
||||
object2 = {name: 'move-down'};
|
||||
object2.label = intl.string(t['+V6oLI']);
|
||||
object2.action = action_109188;
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
}
|
||||
}
|
||||
if (containingFolder != null) {
|
||||
id = containingFolder.id;
|
||||
value8 = folderLabel(containingFolder);
|
||||
push = items2.push;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
Reflect.apply(push, items2, [{name: 'move-out-above-' + id, label: Reflect.apply(formatToPlainString, intl,
|
||||
[t.vnfRJG, {folderName: value8}]), action: action_109189}]);
|
||||
push = items2.push;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
Reflect.apply(push, items2, [{name: 'move-out-below-' + id, label: Reflect.apply(formatToPlainString, intl,
|
||||
[t.ejhw4S, {folderName: value8}]), action: action_109190}]);
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction() { // fn#109182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:1315, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340cf0, size: 71 bytes, params: 1, frame: 16
|
||||
const defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
defaultImport.createGuildFolderLocal([env0_0], '');
|
||||
persistAndAnnounce(env0_1);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction_109183() { // fn#109183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:1566, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340d37, size: 36 bytes, params: 1, frame: 18
|
||||
performMove(env0_0, folderAbove, true, true, env0_1);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction_109184() { // fn#109184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:1727, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340d5b, size: 34 bytes, params: 1, frame: 18
|
||||
performMove(env0_0, folderAbove, false, false, null);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction_109185() { // fn#109185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:1853, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340d7d, size: 34 bytes, params: 1, frame: 18
|
||||
performMove(env0_0, guildAbove, false, false, null);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction_109186() { // fn#109186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:2079, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340d9f, size: 36 bytes, params: 1, frame: 18
|
||||
performMove(env0_0, folderBelow, true, true, env0_1);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction_109187() { // fn#109187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:2240, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340dc3, size: 34 bytes, params: 1, frame: 19
|
||||
performMove(env0_0, folderBelow, true, false, null);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction_109188() { // fn#109188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:2368, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340de5, size: 34 bytes, params: 1, frame: 19
|
||||
performMove(env0_0, guildBelow, true, false, null);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction_109189() { // fn#109189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:2565, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340e07, size: 36 bytes, params: 1, frame: 18
|
||||
performMove(env0_0, currentFolder, false, false, env0_2);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildAccessibilityActionsAction_109190() { // fn#109190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14623:2722, owner: getGuildsBarGuildAccessibilityActions.action, offset: 0x02340e2b, size: 36 bytes, params: 1, frame: 19
|
||||
performMove(env0_0, currentFolder, true, false, env0_2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/* Metro module 14386; source: modules/guilds_bar/native/utils/getGuildsBarGuildMenuItems.tsx; dependencies: [5, 3785, 1867, 4864, 661, 10633, 1244, 6914, 6911, 10939, 9027, 12686, 1962, 9216, 6613, 7002, 12681, 11844, 4080, 10936, 11845, 6610, 2] */
|
||||
function _fun108899(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:6, offset: 0x023340e5, size: 188 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 lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticsSections;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/getGuildsBarGuildMenuItems.tsx');
|
||||
exports.default = getGuildsBarGuildMenuItems;
|
||||
}
|
||||
|
||||
function getGuildsBarGuildMenuItems(a0) { // fn#108900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:271, offset: 0x023341a1, size: 676 bytes, params: 2, frame: 25
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var splice;
|
||||
const env0_0 = a0;
|
||||
if (LurkingStore.isLurking(a0)) {
|
||||
object2 = {};
|
||||
object2.IconComponent = (require(10633) /* metro dependency 10633: DoorExitIcon */).DoorExitIcon;
|
||||
object2.label = intl.string(t['2vl7qn']);
|
||||
object2.variant = 'destructive';
|
||||
object2.action = action_108901;
|
||||
return [object2];
|
||||
}
|
||||
const shouldShowUseNewNotificationSystem2 = (require(10939) /* metro dependency 10939: NotificationUtils */).shouldShowUseNewNotificationSystem('GuildPopoutMenu');
|
||||
const isMuted2 = UserGuildSettingsStore.isMuted(a0);
|
||||
const EnvelopeIcon = (require(9027) /* metro dependency 9027: EnvelopeIcon */).EnvelopeIcon;
|
||||
const items2 = [{IconComponent: EnvelopeIcon, label: intl.string(t.e6RscS), action: action_108902}];
|
||||
const BellIcon = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon;
|
||||
let string = intl.string;
|
||||
const HcoRu0 = t.HcoRu0;
|
||||
items2[1] = {IconComponent: BellIcon, label: Reflect.apply(string, intl, [HcoRu0]), action: action_108905};
|
||||
object2 = {};
|
||||
const SettingsIcon = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon;
|
||||
object2.IconComponent = SettingsIcon;
|
||||
string = intl.string;
|
||||
const PdRCRg = t.PdRCRg;
|
||||
object2.label = Reflect.apply(string, intl, [PdRCRg]);
|
||||
object2.action = action_108906;
|
||||
items2[2] = object2;
|
||||
if (shouldShowUseNewNotificationSystem2) {
|
||||
splice = items2.splice;
|
||||
object2 = {};
|
||||
if (isMuted2) {
|
||||
object2.iconSource = importDefault(11845) /* metro dependency 11845 */;
|
||||
object2.label = intl.string(t.De0BTC);
|
||||
object2.action = action_108907;
|
||||
Reflect.apply(splice, items2, [1, 0, object2]);
|
||||
} else {
|
||||
object2.iconSource = importDefault(11844) /* metro dependency 11844 */;
|
||||
object2.label = intl.string(t.vRzp7P);
|
||||
object2.action = action_108908;
|
||||
Reflect.apply(splice, items2, [1, 0, object2]);
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function getGuildsBarGuildMenuItemsAction() { // fn#108901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:440, owner: getGuildsBarGuildMenuItems.action, offset: 0x02334445, size: 68 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(6914) /* metro dependency 6914: LurkerPreviewAnalytics */;
|
||||
const trackLongPressLeaveClicked = value.trackLongPressLeaveClicked;
|
||||
const binding = env0_0;
|
||||
Reflect.apply(trackLongPressLeaveClicked, value, [binding]);
|
||||
(require(6911) /* metro dependency 6911: LurkerActionCreators */).stopLurkingForGuild(binding);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildMenuItemsAction_108902() { // fn#108902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:695, owner: getGuildsBarGuildMenuItems.action, offset: 0x02334489, size: 29 bytes, params: 1, frame: 11
|
||||
return env1_3(_fun108904)();
|
||||
}
|
||||
|
||||
function getGuildsBarGuildMenuItemsAction_108905() { // fn#108905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:859, owner: getGuildsBarGuildMenuItems.action, offset: 0x0233451a, size: 45 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
(importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */).open(env0_0);
|
||||
}
|
||||
|
||||
function getGuildsBarGuildMenuItemsAction_108906() { // fn#108906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:968, owner: getGuildsBarGuildMenuItems.action, offset: 0x02334547, size: 62 bytes, params: 1, frame: 12
|
||||
const guild = GuildStore.getGuild(env0_0);
|
||||
if (guild != null) {
|
||||
(importDefault(12681) /* metro dependency 12681: openGuildActionSheet */)(guild);
|
||||
}
|
||||
}
|
||||
|
||||
function getGuildsBarGuildMenuItemsAction_108907() { // fn#108907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:1112, owner: getGuildsBarGuildMenuItems.action, offset: 0x02334585, size: 96 bytes, params: 1, frame: 18
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (env0_0 != null) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
||||
defaultImport.updateGuildNotificationSettings(env0_0, {muted: false},
|
||||
(require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabels.Unmuted);
|
||||
}
|
||||
}
|
||||
|
||||
function getGuildsBarGuildMenuItemsAction_108908() { // fn#108908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:1302, owner: getGuildsBarGuildMenuItems.action, offset: 0x023345e5, size: 111 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[18]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[12]);
|
||||
value = value(dependencyMap[19], dependencyMap.paths);
|
||||
const binding = env0_0;
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'muteSettings' + binding, {guildId: binding}]);
|
||||
}
|
||||
|
||||
function* _fun108904() { // fn#108904, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14583:702, offset: 0x023344b1, size: 105 bytes, params: 1, frame: 16
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_0;
|
||||
var binding2 = env3_2;
|
||||
var value3 = binding(binding2[12]);
|
||||
var property = binding2[11];
|
||||
yield value3(property, binding2.paths);
|
||||
var value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
property = value4.default;
|
||||
var GUILD_LIST = env3_7.GUILD_LIST;
|
||||
property([require], GUILD_LIST);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 14416; source: modules/guilds_bar/native/utils/isGuildsBarGuildDataEqual.tsx; dependencies: [2] */
|
||||
function _fun109118(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14613:6, offset: 0x0233e5cf, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/isGuildsBarGuildDataEqual.tsx');
|
||||
exports.default = function(a0, a1) {
|
||||
return a0.icon === a1.icon && a0.guildName === a1.guildName;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 14405; source: modules/guilds_bar/native/utils/isGuildsBarGuildLabelEqual.tsx; dependencies: [2] */
|
||||
function _fun109055(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14602:6, offset: 0x0233bb40, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/isGuildsBarGuildLabelEqual.tsx');
|
||||
exports.default = function(a0, a1) {
|
||||
var r1;
|
||||
var r0;
|
||||
var property = a0.count;
|
||||
var value = property === a1.count;
|
||||
if (value) {
|
||||
property = a0.names.length;
|
||||
value = property === a1.names.length;
|
||||
if (value) {
|
||||
property = a0.names;
|
||||
value = property.join('|');
|
||||
property = a1.names;
|
||||
value = value === property.join('|');
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
/* Metro module 14456; source: modules/guilds_bar/native/utils/registerSidebarVisibilityMethods.tsx; dependencies: [9485, 1867, 4896, 2] */
|
||||
function _fun109394(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:6, offset: 0x02349632, size: 186 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const sidebarVisibilityMethodStoreModule = require(9485) /* metro dependency 9485: SidebarVisibilityMethodStore */;
|
||||
const env0_0 = sidebarVisibilityMethodStoreModule.setGetVisibleChannelIds;
|
||||
const env0_1 = sidebarVisibilityMethodStoreModule.setGetVisibleGuildIds;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
|
||||
const env0_4 = (require(4896) /* metro dependency 4896: SortedGuildStore */).GuildsNodeType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/registerSidebarVisibilityMethods.tsx');
|
||||
exports.registerGuildVisibilityMethod = registerGuildVisibilityMethod;
|
||||
exports.registerFastListChannelVisibilityMethod = registerFastListChannelVisibilityMethod;
|
||||
}
|
||||
|
||||
function registerGuildVisibilityMethod({current}) { // fn#109395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:339, offset: 0x023496ec, size: 45 bytes, params: 2, frame: 11
|
||||
if (current != null) {
|
||||
setGetVisibleGuildIds(_fun109396);
|
||||
}
|
||||
}
|
||||
|
||||
function registerFastListChannelVisibilityMethod({current}, a1) { // fn#109400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:802, offset: 0x02349895, size: 52 bytes, params: 3, frame: 11
|
||||
const env0_0 = a1;
|
||||
if (current != null) {
|
||||
setGetVisibleChannelIds(_fun109401);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun109396() { // fn#109396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:409, offset: 0x02349719, size: 149 bytes, params: 1, frame: 13
|
||||
const currentBinding = current;
|
||||
const items = currentBinding.getItems();
|
||||
const env0_0 = currentBinding.getScrollPosition();
|
||||
const env0_1 = currentBinding.containerSize;
|
||||
const env0_2 = GuildStore.getGuilds();
|
||||
const env0_3 = SortedGuildStore.getGuildsTree();
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
items.forEach(_fun109397);
|
||||
const Array = global.Array;
|
||||
return Array.from(set);
|
||||
}
|
||||
|
||||
function _fun109401() { // fn#109401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:884, offset: 0x023498c9, size: 70 bytes, params: 1, frame: 12
|
||||
const currentBinding = current;
|
||||
const items = currentBinding.getItems();
|
||||
const env0_0 = currentBinding.getScrollPosition();
|
||||
const env0_1 = currentBinding.containerSize;
|
||||
items.forEach(_fun109402);
|
||||
return [];
|
||||
}
|
||||
|
||||
function _fun109397(a0) { // fn#109397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:539, offset: 0x023497ae, size: 95 bytes, params: 2, frame: 14
|
||||
var layoutStart;
|
||||
const node = env0_3.getNode(a0.recyclerKey);
|
||||
if (node !== undefined) {
|
||||
layoutStart = a0.layoutStart;
|
||||
if (layoutStart + a0.layoutSize >= env0_0 && layoutStart <= env0_0 + containerSize) {
|
||||
((a0) => {
|
||||
(a0.type === GuildsNodeType.FOLDER ? a0.children : [a0]).forEach(_fun109399);
|
||||
})(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun109402(a0) { // fn#109402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:973, offset: 0x0234990f, size: 178 bytes, params: 2, frame: 18
|
||||
var channel;
|
||||
var r2;
|
||||
var value2;
|
||||
var getChannelFromSectionRow;
|
||||
var section;
|
||||
var item;
|
||||
var value3;
|
||||
var value4;
|
||||
var error;
|
||||
var binding;
|
||||
const value = undefined;
|
||||
try {
|
||||
try {
|
||||
value2 = environment.__proto__;
|
||||
getChannelFromSectionRow = require.getChannelFromSectionRow;
|
||||
section = a0.section;
|
||||
item = a0.item;
|
||||
value3 = Reflect.apply(getChannelFromSectionRow, require, [section, item]);
|
||||
value4 = value3 == null;
|
||||
channel = value4 ? value : value3.channel;
|
||||
r2 = channel;
|
||||
} catch (error) {
|
||||
r2 = value;
|
||||
}
|
||||
} catch (error) {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (r2 != null) {
|
||||
var layoutStart = a0.layoutStart;
|
||||
if (layoutStart + a0.layoutSize >= env0_0 && layoutStart <= env0_0 + containerSize) {
|
||||
binding = env0_2;
|
||||
binding.push(r2.id);
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun109398(a0) { // fn#109398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:637, offset: 0x0234980d, size: 63 bytes, params: 2, frame: 11
|
||||
const type = a0.type;
|
||||
const FOLDER = GuildsNodeType.FOLDER;
|
||||
(type === FOLDER ? a0.children : [a0]).forEach(_fun109399);
|
||||
}
|
||||
|
||||
function _fun109399(a0) { // fn#109399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14653:685, offset: 0x0234984c, size: 73 bytes, params: 2, frame: 12
|
||||
var r1;
|
||||
var id;
|
||||
var binding;
|
||||
const type = a0.type;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
const GUILD = GuildsNodeType.GUILD;
|
||||
value = type === GUILD;
|
||||
if (value) {
|
||||
id = a0.id;
|
||||
value = environment.__proto__.__proto__;
|
||||
value = id in env2_2;
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_4;
|
||||
binding.add(a0.id);
|
||||
}
|
||||
}
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
/* Metro module 14410; source: modules/guilds_bar/native/utils/transitionGuildsBarToGuildOrOpenSelectedChannel.tsx; dependencies: [4008, 4007, 4601, 6947, 2] */
|
||||
function _fun109083(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14607:6, offset: 0x0233c940, size: 96 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/utils/transitionGuildsBarToGuildOrOpenSelectedChannel.tsx');
|
||||
exports.default = transitionGuildsBarToGuildOrOpenSelectedChannel;
|
||||
}
|
||||
|
||||
function transitionGuildsBarToGuildOrOpenSelectedChannel(a0) { // fn#109084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14607:219, offset: 0x0233c9a0, size: 265 bytes, params: 2, frame: 18
|
||||
var r3;
|
||||
var moduleValue2;
|
||||
var value4;
|
||||
const value2 = undefined;
|
||||
const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef();
|
||||
if ((rootNavigationRef == null ? value2 : rootNavigationRef.isReady()) !== true) {
|
||||
r3 = value2;
|
||||
} else {
|
||||
moduleValue2 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
|
||||
value4 = moduleValue2.coerceGuildsRoute(rootNavigationRef.getCurrentRoute());
|
||||
r3 = value4 != null ? (value4.params == null ? value2 : value4.params.drawerOpen) === true || (value4.params == null ? value2 : value4.params.guildId) !== a0 || value4.params == null ? value2 : value4.params.channelId : value2;
|
||||
}
|
||||
if (r3 != null) {
|
||||
(require(4601) /* metro dependency 4601: transitionToChannel */).transitionToChannel(r3);
|
||||
} else {
|
||||
(require(6947) /* metro dependency 6947: transitionToGuildNative */).transitionToGuild(a0);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user