Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,936 @@
|
||||
/* Metro module 14449; source: modules/guilds_bar/native/GuildsBarUnreadBars.tsx; dependencies: [57, 31, 27, 5214, 3969, 4896, 14385, 7553, 33, 4501, 5176, 8140, 1585, 4013, 13568, 6949, 628, 566, 4017, 14450, 2] */
|
||||
function _fun109338(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:6, offset: 0x02347343, size: 509 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_109341 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const guildReadStateStore = importDefault(5214) /* metro dependency 5214: GuildReadStateStore */;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
|
||||
const env0_9 = (require(4896) /* metro dependency 4896: SortedGuildStore */).GuildsNodeType;
|
||||
const guildsBarConstantsModule = require(14385) /* metro dependency 14385: GuildsBarConstants */;
|
||||
const env0_10 = guildsBarConstantsModule.FastListRenderSections;
|
||||
const GUILD_LIST_WIDTH = guildsBarConstantsModule.GUILD_LIST_WIDTH;
|
||||
const env0_11 = guildsBarConstantsModule.useGuildWrapperSize;
|
||||
const youBarConstantsModule = require(7553) /* metro dependency 7553: YouBarConstants */;
|
||||
const env0_12 = youBarConstantsModule.useYouBarTotalHeight;
|
||||
const env0_13 = youBarConstantsModule.YOU_BAR_HEIGHT;
|
||||
const env0_14 = youBarConstantsModule.YOU_BAR_MARGIN;
|
||||
const env0_15 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_16 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({wrapper: {'position': 'absolute',
|
||||
'top': 0, 'left': 0, 'bottom': 0, width: GUILD_LIST_WIDTH}});
|
||||
object = {beforeItem: undefined, afterItem: undefined};
|
||||
object = {beforeItem: {'section': 0, 'row': 0, 'mention': true}, afterItem: undefined};
|
||||
object = {code: 'function GuildsBarUnreadBarsTsx1(){const{scrollPosValue}=this.__closure;return scrollPosValue.get();}'};
|
||||
object = {code: 'function GuildsBarUnreadBarsTsx2(position,lastPosition){const{runOnJS,debouncedUpdate}=this.__closure;if(position!==lastPosition){runOnJS(debouncedUpdate)();}}'};
|
||||
value = value.memo(GuildsBarUnreadBars);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guilds_bar/native/GuildsBarUnreadBars.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_109339(a0, a1) { // fn#109339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:365, offset: 0x02347540, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun109340;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_109341(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_109341(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_109341(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun109340;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function checkNodeAndIterate({node, section, item, direction, selectedGuildId}) { // fn#109342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:1366, offset: 0x023476b4, size: 347 bytes, params: 2, frame: 25
|
||||
var r4;
|
||||
var r11;
|
||||
var r7;
|
||||
var r15;
|
||||
var r0;
|
||||
var type;
|
||||
var id;
|
||||
var getMentionCount;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var children;
|
||||
var length;
|
||||
var value6;
|
||||
var value7;
|
||||
var checkNodeAndIterateBinding;
|
||||
var object2;
|
||||
var value8;
|
||||
var value9;
|
||||
var FOLDER;
|
||||
var expanded;
|
||||
if (node != null) {
|
||||
type = node.type;
|
||||
reducibleJoin14: while (true) {
|
||||
reducibleJoin7: while (true) {
|
||||
if (type !== GuildsNodeType.GUILD) {
|
||||
if (direction === 1) {
|
||||
r11 = 0;
|
||||
break reducibleJoin7;
|
||||
}
|
||||
r11 = node.children.length - 1;
|
||||
break reducibleJoin7;
|
||||
}
|
||||
id = node.id;
|
||||
if (id !== selectedGuildId) {
|
||||
getMentionCount = GuildReadStateStore.getMentionCount;
|
||||
id = node.id;
|
||||
value2 = Reflect.apply(getMentionCount, GuildReadStateStore, [id]);
|
||||
value3 = 0;
|
||||
value4 = undefined;
|
||||
r4 = value2 > value3 ? node : value4;
|
||||
reducibleJoin5: while (true) {
|
||||
if (r4 != null) {
|
||||
object2 = {node: r4};
|
||||
r4 = section ?? value3;
|
||||
object2.section = r4;
|
||||
object2.item = item ?? value3;
|
||||
return object2;
|
||||
}
|
||||
break reducibleJoin5;
|
||||
}
|
||||
}
|
||||
value5 = 0;
|
||||
if (direction === 1) {
|
||||
r11 = value5;
|
||||
break reducibleJoin7;
|
||||
}
|
||||
children = node.children;
|
||||
length = children.length;
|
||||
value6 = length - 1;
|
||||
r11 = value6;
|
||||
break reducibleJoin7;
|
||||
}
|
||||
if (r11 >= value5) {
|
||||
children = node.children;
|
||||
length = children.length;
|
||||
value7 = undefined;
|
||||
if (r11 < length) {
|
||||
reducibleLoop9: while (true) {
|
||||
r7 = section ?? r11;
|
||||
checkNodeAndIterateBinding = checkNodeAndIterate;
|
||||
children = node.children;
|
||||
r15 = section != null ? r11 : value7;
|
||||
value8 = checkNodeAndIterateBinding({node: children[r11], section: r7, item: r15,
|
||||
direction: direction,
|
||||
selectedGuildId: selectedGuildId});
|
||||
if (value8 != null) {
|
||||
break reducibleLoop9;
|
||||
}
|
||||
value9 = r11 + direction;
|
||||
if (value9 >= value5) {
|
||||
children = node.children;
|
||||
length = children.length;
|
||||
if (value9 < length) {
|
||||
r11 = value9;
|
||||
continue reducibleLoop9;
|
||||
}
|
||||
break reducibleJoin14;
|
||||
}
|
||||
break reducibleJoin14;
|
||||
}
|
||||
type = node.type;
|
||||
FOLDER = GuildsNodeType.FOLDER;
|
||||
reducibleJoin18: while (true) {
|
||||
if (type !== FOLDER) {
|
||||
r0 = value8;
|
||||
break reducibleJoin18;
|
||||
}
|
||||
expanded = node.expanded;
|
||||
if (expanded) {
|
||||
r0 = value8;
|
||||
break reducibleJoin18;
|
||||
}
|
||||
r0 = {node: node, section: r7};
|
||||
break reducibleJoin18;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
break reducibleJoin14;
|
||||
}
|
||||
break reducibleJoin14;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function findFirstOrLastMentionedItem(a0, a1, a2, a3, a4) { // fn#109343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:2008, offset: 0x0234780f, size: 1364 bytes, params: 6, frame: 45
|
||||
var object2;
|
||||
var layoutStart;
|
||||
var r22;
|
||||
var r3;
|
||||
var r17;
|
||||
var r18;
|
||||
var r31;
|
||||
var r24;
|
||||
var r5;
|
||||
var r7;
|
||||
var r1;
|
||||
var value5;
|
||||
var value9;
|
||||
var value15;
|
||||
var type;
|
||||
const FastListItemTypes = (require(8140) /* metro dependency 8140: FastList */).FastListItemTypes;
|
||||
var ITEM;
|
||||
var SECTION;
|
||||
var section;
|
||||
var GUILDS;
|
||||
var layoutSize;
|
||||
var getNode;
|
||||
var recyclerKey;
|
||||
var value16;
|
||||
var FOLDER;
|
||||
var expanded;
|
||||
var children;
|
||||
var value17;
|
||||
var value18;
|
||||
var value19;
|
||||
var GUILD;
|
||||
var getMentionCount;
|
||||
var id;
|
||||
var value20;
|
||||
var value21;
|
||||
var value22;
|
||||
var value23;
|
||||
var value24;
|
||||
var value25;
|
||||
var binding;
|
||||
const guildsTree = SortedGuildStore.getGuildsTree();
|
||||
const root = guildsTree.root;
|
||||
const getSectionItemFromPosition = a0.getSectionItemFromPosition;
|
||||
let scrollPosValue = a0.scrollPosValue;
|
||||
let get = scrollPosValue.get;
|
||||
let item = Reflect.apply(getSectionItemFromPosition, a0, [Reflect.apply(get, scrollPosValue, []) + a4]).item;
|
||||
const value4 = undefined;
|
||||
reducibleJoin2: while (true) {
|
||||
if (item == null) {
|
||||
layoutStart = value4;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
layoutStart = item.layoutStart;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (layoutStart != null) {
|
||||
r22 = layoutStart;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
scrollPosValue = a0.scrollPosValue;
|
||||
get = scrollPosValue.get;
|
||||
value5 = Reflect.apply(get, scrollPosValue, []);
|
||||
r22 = value5;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
const YouBarExperiment = (require(5176) /* metro dependency 5176: YouBarExperiment */).YouBarExperiment;
|
||||
const getConfig = YouBarExperiment.getConfig;
|
||||
const enabled = Reflect.apply(getConfig, YouBarExperiment, [{location: 'guildsunreadbars'}]).enabled;
|
||||
const value7 = a0.scrollPosValue.get() + a0.containerSize - a3;
|
||||
const value8 = 0;
|
||||
reducibleJoin6: while (true) {
|
||||
if (enabled) {
|
||||
value9 = YOU_BAR_HEIGHT + YOU_BAR_MARGIN;
|
||||
r3 = value9;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
r3 = value8;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
const value10 = value7 - r3;
|
||||
object2 = {'section': -1, 'item': -1};
|
||||
const value11 = _createForOfIteratorHelperLoose_109339(a0.state.items);
|
||||
const value12 = value11();
|
||||
let done = value12.done;
|
||||
const value13 = false;
|
||||
const value14 = true;
|
||||
if (done) {
|
||||
r5 = value13;
|
||||
} else {
|
||||
r17 = value13;
|
||||
r18 = value12;
|
||||
reducibleLoop7: while (true) {
|
||||
value15 = r18.value;
|
||||
layoutStart = value15.layoutStart;
|
||||
if (layoutStart < r22) {
|
||||
r24 = r17;
|
||||
} else {
|
||||
type = value15.type;
|
||||
ITEM = FastListItemTypes.ITEM;
|
||||
reducibleJoin28: while (true) {
|
||||
reducibleJoin29: while (true) {
|
||||
if (type === ITEM) {
|
||||
if (value15.layoutStart > value10) {
|
||||
r5 = r17;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
section = value15.section;
|
||||
if (section < FastListRenderSections.GUILDS) {
|
||||
if (a1) {
|
||||
r5 = value14;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
if (value8 === value15.layoutSize) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
section = object2.section;
|
||||
reducibleJoin15: while (true) {
|
||||
if (section !== -1) {
|
||||
break reducibleJoin15;
|
||||
}
|
||||
section = value15.section;
|
||||
object2.section = section;
|
||||
item = value15.item;
|
||||
object2.item = item;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
type = value15.type;
|
||||
if (type !== FastListItemTypes.SECTION) {
|
||||
type = value15.type;
|
||||
ITEM = FastListItemTypes.ITEM;
|
||||
if (type !== ITEM) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
value21 = guildsTree.getNode(value15.recyclerKey);
|
||||
if (value21 == null) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
type = value21.type;
|
||||
GUILD = GuildsNodeType.GUILD;
|
||||
if (type !== GUILD) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
getMentionCount = GuildReadStateStore.getMentionCount;
|
||||
id = value21.id;
|
||||
if (Reflect.apply(getMentionCount, GuildReadStateStore, [id]) > value8) {
|
||||
r5 = value14;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
value16 = guildsTree.getNode(value15.recyclerKey);
|
||||
if (value16 == null) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
type = value16.type;
|
||||
if (type !== GuildsNodeType.FOLDER) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
if (value16.expanded) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
value17 = _createForOfIteratorHelperLoose_109339(value16.children);
|
||||
value18 = value17();
|
||||
done = value18.done;
|
||||
if (done) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
r31 = value18;
|
||||
reducibleLoop20: while (true) {
|
||||
value19 = r31.value;
|
||||
type = value19.type;
|
||||
GUILD = GuildsNodeType.GUILD;
|
||||
if (type === GUILD) {
|
||||
getMentionCount = GuildReadStateStore.getMentionCount;
|
||||
id = value19.id;
|
||||
reducibleJoin22: while (true) {
|
||||
if (Reflect.apply(getMentionCount, GuildReadStateStore, [id]) > value8) {
|
||||
r24 = value14;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
break reducibleJoin22;
|
||||
}
|
||||
}
|
||||
value20 = value17();
|
||||
done = value20.done;
|
||||
if (done) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
r31 = value20;
|
||||
continue reducibleLoop20;
|
||||
}
|
||||
value22 = value11();
|
||||
done = value22.done;
|
||||
if (done) {
|
||||
r5 = r24;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
r17 = r24;
|
||||
r18 = value22;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
type = value15.type;
|
||||
SECTION = FastListItemTypes.SECTION;
|
||||
if (type !== SECTION) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
layoutStart = value15.layoutStart;
|
||||
if (layoutStart > value10) {
|
||||
r5 = r17;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
section = value15.section;
|
||||
GUILDS = FastListRenderSections.GUILDS;
|
||||
if (section < GUILDS) {
|
||||
if (a1) {
|
||||
r5 = value14;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
layoutSize = value15.layoutSize;
|
||||
if (value8 === layoutSize) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
section = object2.section;
|
||||
reducibleJoin15: while (true) {
|
||||
if (section !== -1) {
|
||||
break reducibleJoin15;
|
||||
}
|
||||
section = value15.section;
|
||||
object2.section = section;
|
||||
item = value15.item;
|
||||
object2.item = item;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
type = value15.type;
|
||||
SECTION = FastListItemTypes.SECTION;
|
||||
if (type !== SECTION) {
|
||||
type = value15.type;
|
||||
ITEM = FastListItemTypes.ITEM;
|
||||
if (type !== ITEM) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
value21 = guildsTree.getNode(value15.recyclerKey);
|
||||
if (value21 == null) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
type = value21.type;
|
||||
GUILD = GuildsNodeType.GUILD;
|
||||
if (type !== GUILD) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
getMentionCount = GuildReadStateStore.getMentionCount;
|
||||
id = value21.id;
|
||||
if (Reflect.apply(getMentionCount, GuildReadStateStore, [id]) > value8) {
|
||||
r5 = value14;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
getNode = guildsTree.getNode;
|
||||
recyclerKey = value15.recyclerKey;
|
||||
value16 = Reflect.apply(getNode, guildsTree, [recyclerKey]);
|
||||
if (value16 == null) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
type = value16.type;
|
||||
FOLDER = GuildsNodeType.FOLDER;
|
||||
if (type !== FOLDER) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
expanded = value16.expanded;
|
||||
if (expanded) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
_createForOfIteratorHelperLoose_109339Binding = _createForOfIteratorHelperLoose_109339;
|
||||
children = value16.children;
|
||||
value17 = _createForOfIteratorHelperLoose_109339Binding(children);
|
||||
value18 = value17();
|
||||
done = value18.done;
|
||||
if (done) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
r31 = value18;
|
||||
reducibleLoop20: while (true) {
|
||||
value19 = r31.value;
|
||||
type = value19.type;
|
||||
GUILD = GuildsNodeType.GUILD;
|
||||
if (type === GUILD) {
|
||||
getMentionCount = GuildReadStateStore.getMentionCount;
|
||||
id = value19.id;
|
||||
reducibleJoin22: while (true) {
|
||||
if (Reflect.apply(getMentionCount, GuildReadStateStore, [id]) > value8) {
|
||||
r24 = value14;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
break reducibleJoin22;
|
||||
}
|
||||
}
|
||||
value20 = value17();
|
||||
done = value20.done;
|
||||
if (done) {
|
||||
r24 = r17;
|
||||
break reducibleJoin28;
|
||||
}
|
||||
r31 = value20;
|
||||
continue reducibleLoop20;
|
||||
}
|
||||
value22 = value11();
|
||||
done = value22.done;
|
||||
if (done) {
|
||||
r5 = r24;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
r17 = r24;
|
||||
r18 = value22;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
if (r5) {
|
||||
return env0_17;
|
||||
}
|
||||
reducibleJoin32: while (true) {
|
||||
if (a1) {
|
||||
r5 = value4;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
value23 = checkNodeAndIterate({node: root, direction: 1, selectedGuildId: a2});
|
||||
r5 = value23;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
reducibleJoin29: while (true) {
|
||||
reducibleJoin34: while (true) {
|
||||
if (r5 == null) {
|
||||
if (!a1) {
|
||||
break reducibleJoin34;
|
||||
}
|
||||
if (r5 == null) {
|
||||
return env0_18;
|
||||
}
|
||||
section = r5.section;
|
||||
GUILDS = FastListRenderSections.GUILDS;
|
||||
value24 = section + GUILDS;
|
||||
section = object2.section;
|
||||
if (!(value24 < section)) {
|
||||
section = object2.section;
|
||||
reducibleJoin46: while (true) {
|
||||
reducibleJoin42: while (true) {
|
||||
if (value24 !== section) {
|
||||
break reducibleJoin42;
|
||||
}
|
||||
item = r5.item;
|
||||
r7 = item ?? value8;
|
||||
item = object2.item;
|
||||
if (r7 < item) {
|
||||
break reducibleJoin46;
|
||||
}
|
||||
break reducibleJoin42;
|
||||
}
|
||||
value25 = checkNodeAndIterate({node: root, direction: -1, selectedGuildId: a2});
|
||||
if (value25 != null) {
|
||||
section = value25.section;
|
||||
GUILDS = FastListRenderSections.GUILDS;
|
||||
item = value25.item;
|
||||
r1 = {beforeItem: value4, afterItem: {section: section + GUILDS, row: item,
|
||||
mention: value14}};
|
||||
} else {
|
||||
binding = env0_17;
|
||||
r1 = binding;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
}
|
||||
item = r5.item;
|
||||
return {beforeItem: {section: value24, row: item, mention: value14}, afterItem: value4};
|
||||
}
|
||||
break reducibleJoin34;
|
||||
}
|
||||
if (r5 != null) {
|
||||
if (r5 == null) {
|
||||
return env0_18;
|
||||
}
|
||||
section = r5.section;
|
||||
GUILDS = FastListRenderSections.GUILDS;
|
||||
value24 = section + GUILDS;
|
||||
section = object2.section;
|
||||
reducibleJoin42: while (true) {
|
||||
reducibleJoin46: while (true) {
|
||||
if (value24 < section) {
|
||||
break reducibleJoin46;
|
||||
}
|
||||
section = object2.section;
|
||||
if (value24 !== section) {
|
||||
break reducibleJoin42;
|
||||
}
|
||||
item = r5.item;
|
||||
r7 = item ?? value8;
|
||||
item = object2.item;
|
||||
if (r7 < item) {
|
||||
break reducibleJoin46;
|
||||
}
|
||||
break reducibleJoin42;
|
||||
}
|
||||
item = r5.item;
|
||||
return {beforeItem: {section: value24, row: item, mention: value14}, afterItem: value4};
|
||||
}
|
||||
} else {
|
||||
reducibleJoin42: while (true) {
|
||||
if (r5 == null) {
|
||||
return env0_17;
|
||||
}
|
||||
break reducibleJoin42;
|
||||
}
|
||||
}
|
||||
value25 = checkNodeAndIterate({node: root, direction: -1, selectedGuildId: a2});
|
||||
if (value25 != null) {
|
||||
section = value25.section;
|
||||
GUILDS = FastListRenderSections.GUILDS;
|
||||
item = value25.item;
|
||||
r1 = {beforeItem: value4, afterItem: {section: section + GUILDS, row: item,
|
||||
mention: value14}};
|
||||
} else {
|
||||
binding = env0_17;
|
||||
r1 = binding;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
break reducibleLoop7;
|
||||
}
|
||||
}
|
||||
value22 = value11();
|
||||
done = value22.done;
|
||||
if (done) {
|
||||
r5 = r24;
|
||||
break reducibleLoop7;
|
||||
}
|
||||
r17 = r24;
|
||||
r18 = value22;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
}
|
||||
if (r5) {
|
||||
return env0_17;
|
||||
}
|
||||
reducibleJoin32: while (true) {
|
||||
if (a1) {
|
||||
r5 = value4;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
value23 = checkNodeAndIterate({node: root, direction: 1, selectedGuildId: a2});
|
||||
r5 = value23;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
if (r5 == null) {
|
||||
reducibleJoin34: while (true) {
|
||||
if (a1) {
|
||||
if (r5 == null) {
|
||||
return env0_18;
|
||||
}
|
||||
section = r5.section;
|
||||
GUILDS = FastListRenderSections.GUILDS;
|
||||
value24 = section + GUILDS;
|
||||
section = object2.section;
|
||||
if (!(value24 < section)) {
|
||||
section = object2.section;
|
||||
reducibleJoin46: while (true) {
|
||||
reducibleJoin42: while (true) {
|
||||
if (value24 !== section) {
|
||||
break reducibleJoin42;
|
||||
}
|
||||
item = r5.item;
|
||||
r7 = item ?? value8;
|
||||
item = object2.item;
|
||||
if (r7 < item) {
|
||||
break reducibleJoin46;
|
||||
}
|
||||
break reducibleJoin42;
|
||||
}
|
||||
value25 = checkNodeAndIterate({node: root, direction: -1, selectedGuildId: a2});
|
||||
if (value25 != null) {
|
||||
section = value25.section;
|
||||
GUILDS = FastListRenderSections.GUILDS;
|
||||
item = value25.item;
|
||||
r1 = {beforeItem: value4, afterItem: {section: section + GUILDS, row: item,
|
||||
mention: value14}};
|
||||
} else {
|
||||
binding = env0_17;
|
||||
r1 = binding;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
}
|
||||
item = r5.item;
|
||||
return {beforeItem: {section: value24, row: item, mention: value14}, afterItem: value4};
|
||||
}
|
||||
break reducibleJoin34;
|
||||
}
|
||||
}
|
||||
if (r5 != null) {
|
||||
if (r5 == null) {
|
||||
return env0_18;
|
||||
}
|
||||
section = r5.section;
|
||||
value24 = section + FastListRenderSections.GUILDS;
|
||||
section = object2.section;
|
||||
reducibleJoin42: while (true) {
|
||||
reducibleJoin46: while (true) {
|
||||
if (value24 < section) {
|
||||
break reducibleJoin46;
|
||||
}
|
||||
section = object2.section;
|
||||
if (value24 !== section) {
|
||||
break reducibleJoin42;
|
||||
}
|
||||
item = r5.item;
|
||||
r7 = item ?? value8;
|
||||
item = object2.item;
|
||||
if (r7 < item) {
|
||||
break reducibleJoin46;
|
||||
}
|
||||
break reducibleJoin42;
|
||||
}
|
||||
item = r5.item;
|
||||
return {beforeItem: {section: value24, row: item, mention: value14}, afterItem: value4};
|
||||
}
|
||||
} else {
|
||||
reducibleJoin42: while (true) {
|
||||
if (r5 == null) {
|
||||
return env0_17;
|
||||
}
|
||||
break reducibleJoin42;
|
||||
}
|
||||
}
|
||||
value25 = checkNodeAndIterate({node: root, direction: -1, selectedGuildId: a2});
|
||||
return value25 != null ? {beforeItem: value4, afterItem: {section: value25.section + FastListRenderSections.GUILDS,
|
||||
row: value25.item, mention: value14}} : env0_17;
|
||||
}
|
||||
|
||||
function GuildsBarUnreadBars({fastList}) { // fn#109344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:3951, offset: 0x02347d63, size: 589 bytes, params: 2, frame: 25
|
||||
let env0_3 = undefined;
|
||||
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
|
||||
const MobileHomeDrawerExperiment = (require(4013) /* metro dependency 4013: HomeDrawerExperiment */).MobileHomeDrawerExperiment;
|
||||
const useConfig = MobileHomeDrawerExperiment.useConfig;
|
||||
const r9 = Reflect.apply(useConfig, MobileHomeDrawerExperiment, [{location: 'guilds'}]).enableHome ? 0 : top;
|
||||
const value4 = useGuildWrapperSize() / 2;
|
||||
const binding = undefined;
|
||||
const value6 = env0_3(binding.useState(_fun109345), 2);
|
||||
const {beforeItem, afterItem} = value6[0];
|
||||
env0_3 = value6[1];
|
||||
const value7 = binding.useMemo(_fun109346, [fastList, r9, value4]);
|
||||
binding.useEffect(_fun109349, [value7]);
|
||||
const scrollPosValue = fastList.scrollPosValue;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
|
||||
const closure = function() {
|
||||
return scrollPosValue.get();
|
||||
};
|
||||
closure.__closure = {scrollPosValue: scrollPosValue};
|
||||
closure.__workletHash = 16367582542434;
|
||||
closure.__initData = env0_19;
|
||||
const closure2 = GuildsBarUnreadBarsO;
|
||||
closure2.__closure = {runOnJS: reanimatedRexportModule.runOnJS, debouncedUpdate: value7};
|
||||
closure2.__workletHash = 13727289405147;
|
||||
closure2.__initData = env0_20;
|
||||
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
|
||||
const value8 = useUnreadBarWrapperStyles();
|
||||
return (
|
||||
<View
|
||||
style={value8.style}
|
||||
collapsable={false}
|
||||
pointerEvents="box-none"
|
||||
testID="guilds-bar-unread-bars"
|
||||
>
|
||||
{((Component) => <Component beforeItem={beforeItem} afterItem={afterItem} scrollToLocation={binding.useCallback(function(a0) {
|
||||
var r5;
|
||||
var fastListBinding = fastList;
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, r5);
|
||||
object['paddingStart'] = paddingStart;
|
||||
object['paddingEnd'] = paddingEnd;
|
||||
object['orientation'] = 'visible';
|
||||
fastListBinding.scrollToLocation(object);
|
||||
}, [fastList, value8.paddingStart,
|
||||
value8.paddingEnd])} compact />)(importDefault(14450) /* metro dependency 14450: UnreadBars */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun109345() { // fn#109345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:4122, offset: 0x02347fb0, size: 85 bytes, params: 1, frame: 19
|
||||
let value = environment.__proto__;
|
||||
const findFirstOrLastMentionedItemBinding = findFirstOrLastMentionedItem;
|
||||
const fastListBinding = fastList;
|
||||
const value4 = GuildReadStateStore.getPrivateChannelMentionCount() > 0;
|
||||
value = SelectedGuildStore.getGuildId();
|
||||
const value5 = null;
|
||||
return findFirstOrLastMentionedItemBinding(fastListBinding, value4, value5 != value ? value : value5, env0_1,
|
||||
env0_2);
|
||||
}
|
||||
|
||||
function _fun109346() { // fn#109346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:4312, offset: 0x02348005, size: 45 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(6949) /* metro dependency 6949 */)(_fun109347, 100);
|
||||
}
|
||||
|
||||
function _fun109349() { // fn#109349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:4563, offset: 0x02348115, size: 121 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const BatchedStoreListener = (require(566) /* metro dependency 566: flux */).BatchedStoreListener;
|
||||
new BatchedStoreListener([GuildReadStateStore, SelectedGuildStore, SortedGuildStore],
|
||||
env0_4).attach('guild-mention-bars');
|
||||
return _fun109350;
|
||||
}
|
||||
|
||||
function GuildsBarUnreadBarsO(a0, a1) { // fn#109352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:4838, owner: GuildsBarUnreadBars.O, offset: 0x023481a3, size: 60 bytes, params: 3, frame: 12
|
||||
var value;
|
||||
if (a0 !== a1) {
|
||||
value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env0_4)();
|
||||
}
|
||||
}
|
||||
|
||||
function useUnreadBarWrapperStyles() { // fn#109353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:4995, owner: GuildsBarUnreadBars.useUnreadBarWrapperStyles, offset: 0x023481df, size: 225 bytes, params: 1, frame: 19
|
||||
const styles = useStyles();
|
||||
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
|
||||
const MobileHomeDrawerExperiment = (require(4013) /* metro dependency 4013: HomeDrawerExperiment */).MobileHomeDrawerExperiment;
|
||||
const useConfig = MobileHomeDrawerExperiment.useConfig;
|
||||
const r6 = Reflect.apply(useConfig, MobileHomeDrawerExperiment, [{location: 'guilds'}]).enableHome ? top + 56 : top;
|
||||
const value3 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useMobileQuestDockHeight();
|
||||
const value4 = 0;
|
||||
return env1_4.useMemo(_fun109354, [styles.wrapper, r6, value3, useYouBarTotalHeight(value3 > value4 ? value4 : 8)]);
|
||||
}
|
||||
|
||||
function _fun109347() { // fn#109347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:4326, offset: 0x02348032, size: 109 bytes, params: 1, frame: 21
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const findFirstOrLastMentionedItemBinding = findFirstOrLastMentionedItem;
|
||||
const fastListBinding = fastList;
|
||||
const value4 = GuildReadStateStore.getPrivateChannelMentionCount() > 0;
|
||||
value = SelectedGuildStore.getGuildId();
|
||||
const value5 = null;
|
||||
const env0_0 = findFirstOrLastMentionedItemBinding(fastListBinding, value4, value5 != value ? value : value5,
|
||||
env1_1, env1_2);
|
||||
env1_3(_fun109348);
|
||||
}
|
||||
|
||||
function _fun109354() { // fn#109354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:5217, offset: 0x023482c0, size: 92 bytes, params: 1, frame: 6
|
||||
return {style: [styles.wrapper, {top: env0_1, bottom: env0_2 + env0_3}], paddingStart: env0_1,
|
||||
paddingEnd: env0_2 + 4 + env0_3};
|
||||
}
|
||||
|
||||
function _fun109348(a0) { // fn#109348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14646:4446, offset: 0x0234809f, size: 118 bytes, params: 2, frame: 18
|
||||
const value = a0;
|
||||
return value === env0_0 || (importDefault(628) /* metro dependency 628: shallowEqual */)(value.afterItem,
|
||||
env0_0.afterItem) && (importDefault(628) /* metro dependency 628: shallowEqual */)(value.beforeItem,
|
||||
env0_0.beforeItem) ? value : env0_0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user