Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,19 @@
|
||||
/* Metro module 8530; source: modules/emojis/EmojiActionCreators.tsx; dependencies: [694, 2] */
|
||||
function _fun67599(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8715:6, offset: 0x01c2a393, size: 114 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/EmojiActionCreators.tsx');
|
||||
exports.toggleGuildExpandedState = toggleGuildExpandedState;
|
||||
exports.initiateEmojiInteraction = initiateEmojiInteraction;
|
||||
}
|
||||
|
||||
function toggleGuildExpandedState(a0) { // fn#67600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8715:191, offset: 0x01c2a405, size: 55 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TOGGLE_GUILD_EXPANDED_STATE',
|
||||
guildId: a0});
|
||||
}
|
||||
|
||||
function initiateEmojiInteraction(a0) { // fn#67601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8715:288, offset: 0x01c2a43c, size: 56 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMOJI_INTERACTION_INITIATED',
|
||||
interaction: a0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/* Metro module 1881; source: modules/emojis/EmojiConstants.tsx; dependencies: [2] */
|
||||
function _fun20432(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2008:6, offset: 0x00ec89f5, size: 901 bytes, params: 8, frame: 27
|
||||
var object4;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object4 = {NonDiversityPerRow: 42};
|
||||
object4[42] = 'NonDiversityPerRow';
|
||||
object4.DiversityPerRow = 10;
|
||||
object4[10] = 'DiversityPerRow';
|
||||
object4.PickerPerRow = 11;
|
||||
object4[11] = 'PickerPerRow';
|
||||
object4.PickerCount = 50;
|
||||
object4[50] = 'PickerCount';
|
||||
const object5 = {DISALLOW_EXTERNAL: 0};
|
||||
object5[0] = 'DISALLOW_EXTERNAL';
|
||||
object5.GUILD_SUBSCRIPTION_UNAVAILABLE = 1;
|
||||
object5[1] = 'GUILD_SUBSCRIPTION_UNAVAILABLE';
|
||||
object5.PREMIUM_LOCKED = 2;
|
||||
object5[2] = 'PREMIUM_LOCKED';
|
||||
object5.ONLY_GUILD_EMOJIS_ALLOWED = 3;
|
||||
object5[3] = 'ONLY_GUILD_EMOJIS_ALLOWED';
|
||||
object5.ROLE_SUBSCRIPTION_LOCKED = 4;
|
||||
object5[4] = 'ROLE_SUBSCRIPTION_LOCKED';
|
||||
object5.ROLE_SUBSCRIPTION_UNAVAILABLE = 5;
|
||||
object5[5] = 'ROLE_SUBSCRIPTION_UNAVAILABLE';
|
||||
object5.DISALLOW_CUSTOM = 6;
|
||||
object5[6] = 'DISALLOW_CUSTOM';
|
||||
const object6 = {REACTION: 0};
|
||||
object6[0] = 'REACTION';
|
||||
object6.STATUS = 1;
|
||||
object6[1] = 'STATUS';
|
||||
object6.COMMUNITY_CONTENT = 2;
|
||||
object6[2] = 'COMMUNITY_CONTENT';
|
||||
object6.CHAT = 3;
|
||||
object6[3] = 'CHAT';
|
||||
object6.GUILD_STICKER_RELATED_EMOJI = 4;
|
||||
object6[4] = 'GUILD_STICKER_RELATED_EMOJI';
|
||||
object6.GUILD_ROLE_BENEFIT_EMOJI = 5;
|
||||
object6[5] = 'GUILD_ROLE_BENEFIT_EMOJI';
|
||||
object6.SOUNDBOARD = 6;
|
||||
object6[6] = 'SOUNDBOARD';
|
||||
object6.VOICE_CHANNEL_TOPIC = 7;
|
||||
object6[7] = 'VOICE_CHANNEL_TOPIC';
|
||||
object6.GIFT = 8;
|
||||
object6[8] = 'GIFT';
|
||||
object6.AUTO_SUGGESTION = 9;
|
||||
object6[9] = 'AUTO_SUGGESTION';
|
||||
object6.POLLS = 10;
|
||||
object6[10] = 'POLLS';
|
||||
object6.PROFILE = 11;
|
||||
object6[11] = 'PROFILE';
|
||||
object6.GUILD_PROFILE = 12;
|
||||
object6[12] = 'GUILD_PROFILE';
|
||||
object6.DEFAULT_REACT_EMOJI = 13;
|
||||
object6[13] = 'DEFAULT_REACT_EMOJI';
|
||||
object6.NO_CUSTOM_EMOJI = 14;
|
||||
object6[14] = 'NO_CUSTOM_EMOJI';
|
||||
const Set = global.Set;
|
||||
const COMMUNITY_CONTENT = object6.COMMUNITY_CONTENT;
|
||||
const GUILD_STICKER_RELATED_EMOJI = object6.GUILD_STICKER_RELATED_EMOJI;
|
||||
const GUILD_ROLE_BENEFIT_EMOJI = object6.GUILD_ROLE_BENEFIT_EMOJI;
|
||||
const SOUNDBOARD = object6.SOUNDBOARD;
|
||||
const GIFT = object6.GIFT;
|
||||
const set = new Set([COMMUNITY_CONTENT, GUILD_STICKER_RELATED_EMOJI, GUILD_ROLE_BENEFIT_EMOJI, SOUNDBOARD, GIFT]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/EmojiConstants.tsx');
|
||||
exports.DEFAULT_EMOJI_SLOTS = 50;
|
||||
exports.EMOJI_MAX_SLOTS_MORE = 200;
|
||||
exports.EMOJI_MAX_LENGTH = 32;
|
||||
exports.EMOJI_RE = RegExp('[^a-zA-Z0-9_]', 'g');
|
||||
exports.EMOJI_MAX_FILESIZE_KB = 256;
|
||||
exports.EMOJI_MAX_FILESIZE = 262144;
|
||||
exports.EMOJI_URL_BASE_SIZE = 48;
|
||||
exports.EmojiSprites = object4;
|
||||
exports.EmojiDisabledReasons = object5;
|
||||
exports.EmojiIntention = object6;
|
||||
exports.EmojiInteractionPoint = {EmojiButtonMouseEntered: 'EMOJI_BUTTON_MOUSE_ENTERED',
|
||||
EmojiButtonFocused: 'EMOJI_BUTTON_FOCUSED', ChatInputExpressionPressed: 'CHAT_INPUT_EXPRESSION_PRESSED',
|
||||
ChatInputSuggestionsShown: 'CHAT_INPUT_SUGGESTIONS_SHOWN',
|
||||
SearchEmojiKeybindPressed: 'SEARCH_EMOJI_KEYBIND_PRESSED', AutocompleteTyped: 'AUTOCOMPLETE_TYPED',
|
||||
AutocompleteWrapperShown: 'AUTOCOMPLETE_WRAPPER_SHOWN', GuildLeaveModalShown: 'GUILD_LEAVE_MODAL_SHOWN',
|
||||
AddReactionPopoutMouseEntered: 'ADD_REACTION_POPOUT_MOUSE_ENTERED',
|
||||
AddReactionPopoutFocused: 'ADD_REACTION_POPOUT_FOCUSED',
|
||||
MessageContextMenuMouseEntered: 'MESSAGE_CONTEXT_MENU_MOUSE_ENTERED',
|
||||
EmojiPickerActionSheetOpened: 'EMOJI_PICKER_ACTION_SHEET_OPENED', TrackOpenPopoutUsed: 'TRACK_OPEN_POPOUT_USED',
|
||||
CustomEmojiTooltipShown: 'CUSTOM_EMOJI_TOOLTIP_SHOWN'};
|
||||
exports.isExternalEmojiAllowedForIntention = isExternalEmojiAllowedForIntention;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 6581; source: modules/emojis/EmojiSearchRankingTweaksExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun51716(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6759:6, offset: 0x012e3551, size: 151 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2025-10-emoji-search-ranking-tweaks', 'kind': 'user',
|
||||
defaultConfig: {'boostFavorites': false, 'boostCapitalizedWords': false, 'boostAtEnd': false,
|
||||
'boostsIgnoreDisambiguators': false}, variations: {[1]: {'boostFavorites': true, 'boostCapitalizedWords': true,
|
||||
'boostAtEnd': true, 'boostsIgnoreDisambiguators': true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/EmojiSearchRankingTweaksExperiment.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,13 @@
|
||||
/* Metro module 3800; source: modules/emojis/EmojiTypes.tsx; dependencies: [2] */
|
||||
function _fun29005(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3927:6, offset: 0x00fb4155, size: 111 bytes, params: 8, frame: 16
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {UNICODE: 0};
|
||||
object2[0] = 'UNICODE';
|
||||
object2.GUILD = 1;
|
||||
object2[1] = 'GUILD';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/EmojiTypes.tsx');
|
||||
exports.EmojiTypes = object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,544 @@
|
||||
/* Metro module 6542; source: modules/emojis/RawGuildEmojiStore.tsx; dependencies: [57, 6, 7, 15, 17, 18, 1420, 1868, 3800, 1870, 2] */
|
||||
function _fun51582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:6, offset: 0x0123c45c, size: 447 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
let env0_0 = require;
|
||||
const _arrayLikeToArray_51588 = 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;
|
||||
};
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = (require(1420) /* metro dependency 1420: PlainRecord */).TypeTag;
|
||||
const LibdiscoreStore = (require(1868) /* metro dependency 1868: LibdiscoreStore */).LibdiscoreStore;
|
||||
let value = _fun51591(LibdiscoreStore);
|
||||
value.displayName = 'RawGuildEmojiStore';
|
||||
object2 = {LOGOUT: function(a0, a1) {
|
||||
return a1.clear();
|
||||
}, BACKGROUND_SYNC: function(a0, a1) {
|
||||
return a1.clear();
|
||||
}, RESET_SOCKET: function(a0, a1) {
|
||||
return a1.clear();
|
||||
}, CONNECTION_OPEN: CONNECTION_OPEN_51598, OVERLAY_INITIALIZE: function(a0, a1) {
|
||||
var env0_0 = a1;
|
||||
a1.clear();
|
||||
var Object = global.Object;
|
||||
Object.entries(a0.emojis).forEach(_fun51601);
|
||||
}, CACHED_EMOJIS_LOADED: CACHED_EMOJIS_LOADED_51602, GUILD_CREATE: function(a0, a1) {
|
||||
syncEmojis(a0.guild.id, a0.guild.emojis, a1);
|
||||
}, GUILD_UPDATE: function(a0, a1) {
|
||||
a1.setPartition(a0.guild.id, fromServer_51589(a0.guild.id, a0.guild.emojis));
|
||||
}, GUILD_EMOJIS_UPDATE: function(a0, a1) {
|
||||
a1.setPartition(a0.guildId, fromServer_51589(a0.guildId, a0.emojis));
|
||||
}, GUILD_DELETE: function(a0, a1) {
|
||||
a1.removePartition(a0.guild.id);
|
||||
}};
|
||||
const LibdiscoreBatchStoreRefactorExperiment = (require(1870) /* metro dependency 1870: libdiscoreExperiments */).LibdiscoreBatchStoreRefactorExperiment;
|
||||
value = new value(object2, LibdiscoreBatchStoreRefactorExperiment.getCachedBridgedStoreMode());
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/RawGuildEmojiStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_51583() { // fn#51583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:180, offset: 0x0123c61b, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_51583_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_51586(a0, a1) { // fn#51586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:373, offset: 0x0123c679, size: 370 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 _fun51587;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_51588(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_51588(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_51588(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun51587;
|
||||
}
|
||||
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 fromServer_51589(a0, a1) { // fn#51589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:1283, offset: 0x0123c7eb, size: 256 bytes, params: 3, frame: 30
|
||||
var r2;
|
||||
var value4;
|
||||
var id;
|
||||
var object3;
|
||||
var id2;
|
||||
var animated;
|
||||
var name;
|
||||
var require_colons;
|
||||
var available;
|
||||
var roles;
|
||||
var managed;
|
||||
var version;
|
||||
var EmojiTypes;
|
||||
var GUILD;
|
||||
var value5;
|
||||
const object4 = {};
|
||||
const value2 = _createForOfIteratorHelperLoose_51586(a1);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
if (!done) {
|
||||
for (r2 = value3; true; r2 = value5) {
|
||||
value4 = r2.value;
|
||||
id = value4.id;
|
||||
object3 = {};
|
||||
object3[TypeTag] = 'RawGuildEmoji';
|
||||
object3['guildId'] = a0;
|
||||
id2 = value4.id;
|
||||
object3['id'] = id2;
|
||||
animated = value4.animated;
|
||||
object3['animated'] = animated;
|
||||
name = value4.name;
|
||||
object3['name'] = name;
|
||||
require_colons = value4.require_colons;
|
||||
object3['require_colons'] = require_colons;
|
||||
available = value4.available;
|
||||
object3['available'] = available;
|
||||
roles = value4.roles;
|
||||
object3['roles'] = roles;
|
||||
managed = value4.managed;
|
||||
object3['managed'] = managed;
|
||||
version = value4.version;
|
||||
object3['version'] = version;
|
||||
EmojiTypes = (require(3800) /* metro dependency 3800: EmojiTypes */).EmojiTypes;
|
||||
GUILD = EmojiTypes.GUILD;
|
||||
object3['type'] = GUILD;
|
||||
object4[id] = object3;
|
||||
value5 = value2();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return object4;
|
||||
}
|
||||
|
||||
function syncEmojis(a0, a1, a2) { // fn#51590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:2147, offset: 0x0123c8eb, size: 320 bytes, params: 4, frame: 23
|
||||
var r5;
|
||||
var value;
|
||||
var writes;
|
||||
var length;
|
||||
var deletes;
|
||||
var object2;
|
||||
var _createForOfIteratorHelperLoose_51586Binding;
|
||||
var value2;
|
||||
var value3;
|
||||
var done;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var Object;
|
||||
var assign;
|
||||
var value9;
|
||||
var setPartition;
|
||||
if (a1.op === 'full_sync') {
|
||||
a2.setPartition(a0, fromServer_51589(a0, a1.items));
|
||||
} else {
|
||||
value = a2.getNullablePartition(a0);
|
||||
if (value == null) {
|
||||
a2.setPartition(a0, fromServer_51589(a0, a1.writes));
|
||||
} else {
|
||||
writes = a1.writes;
|
||||
length = writes.length;
|
||||
reducibleJoin11: while (true) {
|
||||
reducibleJoin8: while (true) {
|
||||
if (length > 0) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value, undefined);
|
||||
value = environment;
|
||||
_createForOfIteratorHelperLoose_51586Binding = _createForOfIteratorHelperLoose_51586;
|
||||
deletes = a1.deletes;
|
||||
value2 = _createForOfIteratorHelperLoose_51586Binding(deletes);
|
||||
value3 = value2();
|
||||
done = value3.done;
|
||||
if (!done) {
|
||||
r5 = value3;
|
||||
reducibleLoop5: while (true) {
|
||||
value4 = r5.value;
|
||||
delete object2[value4];
|
||||
value5 = value2();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
break reducibleLoop5;
|
||||
}
|
||||
r5 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
}
|
||||
_createForOfIteratorHelperLoose_51586Binding = _createForOfIteratorHelperLoose_51586;
|
||||
writes = a1.writes;
|
||||
value6 = _createForOfIteratorHelperLoose_51586Binding(writes);
|
||||
value7 = value6();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break reducibleJoin8;
|
||||
}
|
||||
r5 = value7;
|
||||
reducibleLoop7: while (true) {
|
||||
value8 = r5.value;
|
||||
Object = global.Object;
|
||||
assign = Object.assign;
|
||||
Reflect.apply(assign, Object, [object2, fromServer_51589(a0, [value8])]);
|
||||
value9 = value6();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break reducibleJoin8;
|
||||
}
|
||||
r5 = value9;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
} else {
|
||||
deletes = a1.deletes;
|
||||
length = deletes.length;
|
||||
if (!(length > 0)) {
|
||||
break reducibleJoin11;
|
||||
}
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value, undefined);
|
||||
value = environment;
|
||||
_createForOfIteratorHelperLoose_51586Binding = _createForOfIteratorHelperLoose_51586;
|
||||
deletes = a1.deletes;
|
||||
value2 = _createForOfIteratorHelperLoose_51586Binding(deletes);
|
||||
value3 = value2();
|
||||
done = value3.done;
|
||||
if (!done) {
|
||||
r5 = value3;
|
||||
reducibleLoop5: while (true) {
|
||||
value4 = r5.value;
|
||||
delete object2[value4];
|
||||
value5 = value2();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
break reducibleLoop5;
|
||||
}
|
||||
r5 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
}
|
||||
_createForOfIteratorHelperLoose_51586Binding = _createForOfIteratorHelperLoose_51586;
|
||||
writes = a1.writes;
|
||||
value6 = _createForOfIteratorHelperLoose_51586Binding(writes);
|
||||
value7 = value6();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break reducibleJoin8;
|
||||
}
|
||||
r5 = value7;
|
||||
reducibleLoop7: while (true) {
|
||||
value8 = r5.value;
|
||||
Object = global.Object;
|
||||
assign = Object.assign;
|
||||
Reflect.apply(assign, Object, [object2, fromServer_51589(a0, [value8])]);
|
||||
value9 = value6();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break reducibleJoin8;
|
||||
}
|
||||
r5 = value9;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
}
|
||||
}
|
||||
setPartition = a2.setPartition;
|
||||
Reflect.apply(setPartition, a2, [a0, object2]);
|
||||
break reducibleJoin11;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun51591(a0) { // fn#51591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:1620, offset: 0x0123ca2b, size: 95 bytes, params: 2, frame: 16
|
||||
const closure = RawGuildEmojiStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'stateWrapper', value: function() {
|
||||
return this.database;
|
||||
}}, {key: 'getGuildEmojis', value: function(a0) {
|
||||
return this.database.getNullablePartition(a0);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function CONNECTION_OPEN_51598({guilds, unavailableGuilds}, a1) { // fn#51598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:2762, offset: 0x0123cb47, size: 259 bytes, params: 3, frame: 19
|
||||
var r3;
|
||||
var r2;
|
||||
var value6;
|
||||
var value7;
|
||||
var value10;
|
||||
var has;
|
||||
var value11;
|
||||
var value13;
|
||||
var syncEmojisBinding;
|
||||
var id;
|
||||
var emojis;
|
||||
var value14;
|
||||
const Set = global.Set;
|
||||
let set = new Set(guilds.map(function(a0) {
|
||||
return a0.id;
|
||||
}));
|
||||
const value4 = _createForOfIteratorHelperLoose_51586(unavailableGuilds);
|
||||
const value5 = value4();
|
||||
let done = value5.done;
|
||||
if (!done) {
|
||||
for (r3 = value5; true; r3 = value7) {
|
||||
value6 = r3.value;
|
||||
set.add(value6);
|
||||
value7 = value4();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
_createForOfIteratorHelperLoose_51586Binding = _createForOfIteratorHelperLoose_51586;
|
||||
const getPartitionKeys = a1.getPartitionKeys;
|
||||
const value8 = _createForOfIteratorHelperLoose_51586Binding(Reflect.apply(getPartitionKeys, a1, []));
|
||||
const value9 = value8();
|
||||
done = value9.done;
|
||||
if (!done) {
|
||||
r3 = value9;
|
||||
while (true) {
|
||||
value10 = r3.value;
|
||||
has = set.has;
|
||||
if (!Reflect.apply(has, set, [value10])) {
|
||||
a1.removePartition(value10);
|
||||
}
|
||||
value11 = value8();
|
||||
done = value11.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value11;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
set = _createForOfIteratorHelperLoose_51586(guilds);
|
||||
const value12 = set();
|
||||
done = value12.done;
|
||||
if (!done) {
|
||||
for (r2 = value12; true; r2 = value14) {
|
||||
value13 = r2.value;
|
||||
syncEmojisBinding = syncEmojis;
|
||||
id = value13.id;
|
||||
emojis = value13.emojis;
|
||||
syncEmojisBinding(id, emojis, a1);
|
||||
value14 = set();
|
||||
done = value14.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function OVERLAY_INITIALIZE_51600({emojis}, a1) { // fn#51600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:3166, offset: 0x0123cc4a, size: 66 bytes, params: 3, frame: 12
|
||||
const env0_0 = a1;
|
||||
a1.clear();
|
||||
const Object = global.Object;
|
||||
Object.entries(emojis).forEach(function(a0) {
|
||||
var r1;
|
||||
var r2;
|
||||
var r5;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r4 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
r5 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r5 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r5 = item;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
require.setPartition(r4, fromServer_51589(r4, r5));
|
||||
return value;
|
||||
});
|
||||
}
|
||||
|
||||
function CACHED_EMOJIS_LOADED_51602({emojis}, a1) { // fn#51602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:3287, offset: 0x0123cced, size: 108 bytes, params: 3, frame: 21
|
||||
var r2;
|
||||
var value4;
|
||||
var value5;
|
||||
var property;
|
||||
var property2;
|
||||
var value6;
|
||||
const value2 = _createForOfIteratorHelperLoose_51586(emojis);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
if (!done) {
|
||||
for (r2 = value3; true; r2 = value6) {
|
||||
value4 = r2.value;
|
||||
value5 = env0_2(value4, 2);
|
||||
property = value5[0];
|
||||
property2 = value5[1];
|
||||
a1.setPartition(property, fromServer_51589(property, property2));
|
||||
value6 = value2();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function RawGuildEmojiStore(a0) { // fn#51592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6720:1632, offset: 0x0123ca8a, size: 149 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, RawGuildEmojiStore);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_6(RawGuildEmojiStore);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_51583()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.database = value.addKKVDatabase('guild_emojis');
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,666 @@
|
||||
/* Metro module 3797; source: modules/emojis/UnicodeEmojis.tsx; dependencies: [6, 7, 3798, 3799, 3800, 3801, 22, 12710, 2] */
|
||||
function _fun28940(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:6, offset: 0x00f87a4e, size: 716 bytes, params: 8, frame: 27
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_28943 = 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 getEmojiObjectByName = function(a0) {
|
||||
var r0;
|
||||
var property = require(dependencyMap[3]).nameToEmoji;
|
||||
property = property[a0];
|
||||
var value2 = null;
|
||||
if (value2 == property) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
property = require(dependencyMap[3]).emojis[property];
|
||||
r0 = property;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const getEmojiObjectBySurrogate = function(a0) {
|
||||
var r0;
|
||||
var property = require(dependencyMap[3]).surrogateToEmoji;
|
||||
property = property[a0];
|
||||
var value2 = null;
|
||||
if (value2 == property) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
property = require(dependencyMap[3]).emojis[property];
|
||||
r0 = property;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const closure = getByName;
|
||||
const closure2 = contentHasUnicodeOrEmoji;
|
||||
const closure3 = findInlineEmojisFromSurrogates;
|
||||
const closure4 = convertNameToSurrogate;
|
||||
const closure5 = convertSurrogateToName;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const twemojiNpm = importDefault(3798) /* metro dependency 3798: twemojiNpm */;
|
||||
const WeakMap = global.WeakMap;
|
||||
let weakMap = new WeakMap();
|
||||
const regexp = RegExp('^:([^\\s:]+?(?:::skin-tone-\\d)?):', '');
|
||||
const env0_10 = RegExp('[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f\\u270b\\u2b50\\u2728\\u26a1\\u26c5\\u26c4\\u2614\\u2615\\u26bd\\u26be\\u26f3\\u26f5\\u2693\\u26fd\\u26f2\\u26fa\\u26ea\\u231a\\u23f0\\u231b\\u23f3\\u26ce\\u2648\\u2649\\u264a\\u264b\\u264c\\u264d\\u264e\\u264f\\u2650\\u2651\\u2652\\u2653\\u270a\\u274c\\u2b55\\u26d4\\u2757\\u2755\\u2753\\u2754\\u2705\\u274e\\u267f\\u23e9\\u23ea\\u23eb\\u23ec\\u2795\\u2796\\u2797\\u27b0\\u27bf\\u26aa\\u26ab\\u25fe\\u25fd\\u2b1b\\u2b1c\\u26a7]',
|
||||
'');
|
||||
const env0_11 = RegExp('\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*',
|
||||
'g');
|
||||
weakMap = _fun28953();
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
let String = global.String;
|
||||
const env0_14 = String.fromCodePoint(917631);
|
||||
String = global.String;
|
||||
const env0_15 = String.fromCodePoint(127988);
|
||||
const env0_16 = RegExp('^(?:\\uDB40[\\uDC61-\\uDC7A])$', '');
|
||||
const object = {getDefaultDiversitySurrogate: getDefaultDiversitySurrogate,
|
||||
setDefaultDiversitySurrogate: setDefaultDiversitySurrogate, getCategories: function() {
|
||||
var Object = global.Object;
|
||||
return Object.keys(require(dependencyMap[3]).emojisByCategory);
|
||||
}, getByName: closure, getByCategory: getByCategory, contentHasUnicodeOrEmoji: closure2,
|
||||
translateInlineEmojiToSurrogates: translateInlineEmojiToSurrogates,
|
||||
maybeTranslateSurrogatesToInlineEmoji: maybeTranslateSurrogatesToInlineEmoji,
|
||||
findInlineEmojisFromSurrogates: closure3, translateSurrogatesToInlineEmoji: translateSurrogatesToInlineEmoji,
|
||||
convertNameToSurrogate: closure4, convertSurrogateToName: closure5,
|
||||
convertShortcutToName: convertShortcutToName, convertSurrogateToBase: convertSurrogateToBase,
|
||||
forEach: function(a0) {
|
||||
var r2;
|
||||
var r1;
|
||||
var value4;
|
||||
var hasDiversityParent;
|
||||
var hasMultiDiversityParent;
|
||||
var value5;
|
||||
var value2 = _createForOfIteratorHelperLoose_28941(require(dependencyMap[3]).emojis);
|
||||
var value3 = value2();
|
||||
if (!value3.done) {
|
||||
r2 = value3;
|
||||
while (true) {
|
||||
value4 = r2.value;
|
||||
hasDiversityParent = value4.hasDiversityParent;
|
||||
if (hasDiversityParent) {
|
||||
r1 = hasDiversityParent;
|
||||
} else {
|
||||
hasMultiDiversityParent = value4.hasMultiDiversityParent;
|
||||
r1 = hasMultiDiversityParent;
|
||||
}
|
||||
if (r1) {
|
||||
continue;
|
||||
}
|
||||
a0(parseRawEmojiObject(value4));
|
||||
value5 = value2();
|
||||
if (value5.done) {
|
||||
break;
|
||||
}
|
||||
r2 = value5;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}};
|
||||
object.numDiversitySprites = (require(3799) /* metro dependency 3799 */).numDiversitySprites;
|
||||
object.numNonDiversitySprites = (require(3799) /* metro dependency 3799 */).numNonDiversitySprites;
|
||||
object.EMOJI_NAME_RE = RegExp('^:([^\\s:]+?(?:::skin-tone-\\d)?):', '');
|
||||
object.EMOJI_NAME_AND_DIVERSITY_RE = regexp;
|
||||
object.EMOJI_SHORTCUT_RE = RegExp('^(>:\\(|>:\\-\\(|>=\\(|>=\\-\\(|:"\\)|:\\-"\\)|="\\)|=\\-"\\)|<\\/3|<\\\\3|:\\-\\\\|:\\-\\/|=\\-\\\\|=\\-\\/|:\'\\(|:\'\\-\\(|:,\\(|:,\\-\\(|=\'\\(|=\'\\-\\(|=,\\(|=,\\-\\(|:\\(|:\\-\\(|=\\(|=\\-\\(|<3|♡|\\]:\\(|\\]:\\-\\(|\\]=\\(|\\]=\\-\\(|o:\\)|O:\\)|o:\\-\\)|O:\\-\\)|0:\\)|0:\\-\\)|o=\\)|O=\\)|o=\\-\\)|O=\\-\\)|0=\\)|0=\\-\\)|:\'D|:\'\\-D|:,D|:,\\-D|=\'D|=\'\\-D|=,D|=,\\-D|:\\*|:\\-\\*|=\\*|=\\-\\*|x\\-\\)|X\\-\\)|:\\||:\\-\\||=\\||=\\-\\||:o|:\\-o|:O|:\\-O|=o|=\\-o|=O|=\\-O|:@|:\\-@|=@|=\\-@|:D|:\\-D|=D|=\\-D|:\'\\)|:\'\\-\\)|:,\\)|:,\\-\\)|=\'\\)|=\'\\-\\)|=,\\)|=,\\-\\)|:\\)|:\\-\\)|=\\)|=\\-\\)|\\]:\\)|\\]:\\-\\)|\\]=\\)|\\]=\\-\\)|:,\'\\(|:,\'\\-\\(|;\\(|;\\-\\(|=,\'\\(|=,\'\\-\\(|:P|:\\-P|=P|=\\-P|8\\-\\)|B\\-\\)|,:\\(|,:\\-\\(|,=\\(|,=\\-\\(|,:\\)|,:\\-\\)|,=\\)|,=\\-\\)|:s|:\\-S|:z|:\\-Z|:\\$|:\\-\\$|=s|=\\-S|=z|=\\-Z|=\\$|=\\-\\$|;\\)|;\\-\\))',
|
||||
'');
|
||||
object.hasSurrogates = hasSurrogates;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/UnicodeEmojis.tsx');
|
||||
exports.default = object;
|
||||
exports.DIVERSITY_SURROGATES = ['🏻', '🏼', '🏽', '🏾', '🏿'];
|
||||
exports.Emoji = weakMap;
|
||||
exports.asUnicodeEmoji = function(a0) {
|
||||
var value = null;
|
||||
return value == a0.id && value != a0.name && a0.name.length > 0 ? {name: a0.name, id: value} : value;
|
||||
};
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_28941(a0, a1) { // fn#28941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:134, offset: 0x00f87d1a, size: 370 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 _fun28942;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_28943(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_28943(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_28943(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun28942;
|
||||
}
|
||||
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 parseRawEmojiObject(a0) { // fn#28946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:4271, offset: 0x00f87f24, size: 72 bytes, params: 2, frame: 14
|
||||
const value2 = env0_7.get(a0);
|
||||
if (value2 != null) {
|
||||
return value2;
|
||||
}
|
||||
const env0_122 = new env0_12(a0);
|
||||
env0_7.set(a0, env0_122);
|
||||
return env0_122;
|
||||
}
|
||||
|
||||
function getByName(a0) { // fn#28947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:4373, offset: 0x00f87f6c, size: 37 bytes, params: 2, frame: 13
|
||||
const emojiObjectByName = getEmojiObjectByName(a0);
|
||||
const value3 = null;
|
||||
return value3 != emojiObjectByName ? parseRawEmojiObject(emojiObjectByName) : value3;
|
||||
}
|
||||
|
||||
function contentHasUnicodeOrEmoji(a0) { // fn#28948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:4482, offset: 0x00f87f91, size: 22 bytes, params: 2, frame: 11
|
||||
return env0_10.test(a0);
|
||||
}
|
||||
|
||||
function emojiNameOrUnicodeSequence(a0) { // fn#28949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:4536, offset: 0x00f87fa7, size: 105 bytes, params: 2, frame: 14
|
||||
const getEmojiObjectBySurrogateBinding = getEmojiObjectBySurrogate;
|
||||
const value = undefined;
|
||||
const emojiObjectBySurrogateBinding = getEmojiObjectBySurrogateBinding(a0);
|
||||
const r4 = emojiObjectBySurrogateBinding == null ? value : emojiObjectBySurrogateBinding.names[0];
|
||||
return r4 != null ? {type: 'emoji', surrogate: a0, emojiName: ':' + r4 + ':'} : {type: 'text', text: a0};
|
||||
}
|
||||
|
||||
function findInlineEmojisFromSurrogates(a0, a1) { // fn#28950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:4820, offset: 0x00f88010, size: 405 bytes, params: 3, frame: 30
|
||||
var r14;
|
||||
var r9;
|
||||
var r10;
|
||||
var r18;
|
||||
var r19;
|
||||
var r15;
|
||||
var r3;
|
||||
var r2;
|
||||
var property;
|
||||
var binding;
|
||||
var test;
|
||||
var push;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var type;
|
||||
var text;
|
||||
var text2;
|
||||
var value8;
|
||||
var value10;
|
||||
if (a1 !== true) {
|
||||
reducibleJoin3: while (true) {
|
||||
if (!contentHasUnicodeOrEmoji(a0)) {
|
||||
return [{type: 'text', text: a0}];
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
}
|
||||
const items = [];
|
||||
const value2 = a0.match(env0_11);
|
||||
reducibleJoin5: while (true) {
|
||||
if (value2 != null) {
|
||||
r14 = value2;
|
||||
break reducibleJoin5;
|
||||
}
|
||||
r14 = [];
|
||||
break reducibleJoin5;
|
||||
}
|
||||
let length = r14.length;
|
||||
const value3 = 0;
|
||||
const value4 = '';
|
||||
if (value3 < length) {
|
||||
r9 = value3;
|
||||
r10 = value4;
|
||||
reducibleLoop6: while (true) {
|
||||
property = r14[r9];
|
||||
reducibleJoin19: while (true) {
|
||||
reducibleJoin8: while (true) {
|
||||
if (r10 == null) {
|
||||
break reducibleJoin8;
|
||||
}
|
||||
if (value4 !== r10) {
|
||||
if (property === env0_14) {
|
||||
value6 = r10 + property;
|
||||
r18 = value6;
|
||||
r19 = value4;
|
||||
} else {
|
||||
binding = env0_16;
|
||||
test = binding.test;
|
||||
if (Reflect.apply(test, binding, [property])) {
|
||||
value5 = r10 + property;
|
||||
r15 = value5;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
items.push(emojiNameOrUnicodeSequence(r10));
|
||||
r18 = property;
|
||||
r19 = value4;
|
||||
}
|
||||
value7 = emojiNameOrUnicodeSequence(r18);
|
||||
length = items.length;
|
||||
if (length > value3) {
|
||||
length = items.length;
|
||||
property = items[length - 1];
|
||||
type = value7.type;
|
||||
if (type === 'text') {
|
||||
type = property.type;
|
||||
if (type === 'text') {
|
||||
text = property.text;
|
||||
text2 = value7.text;
|
||||
property.text = text + text2;
|
||||
r15 = r19;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
}
|
||||
}
|
||||
push = items.push;
|
||||
Reflect.apply(push, items, [value7]);
|
||||
r15 = r19;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
break reducibleJoin8;
|
||||
}
|
||||
if (property === env0_15) {
|
||||
r15 = property;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
r18 = property;
|
||||
r19 = r10;
|
||||
value7 = emojiNameOrUnicodeSequence(r18);
|
||||
length = items.length;
|
||||
if (length > value3) {
|
||||
length = items.length;
|
||||
property = items[length - 1];
|
||||
type = value7.type;
|
||||
if (type === 'text') {
|
||||
type = property.type;
|
||||
if (type === 'text') {
|
||||
text = property.text;
|
||||
text2 = value7.text;
|
||||
property.text = text + text2;
|
||||
r15 = r19;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
}
|
||||
}
|
||||
push = items.push;
|
||||
Reflect.apply(push, items, [value7]);
|
||||
r15 = r19;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
value8 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
||||
length = r14.length;
|
||||
if (value8 < length) {
|
||||
r9 = value8;
|
||||
r10 = r15;
|
||||
continue reducibleLoop6;
|
||||
}
|
||||
r3 = r15;
|
||||
break reducibleLoop6;
|
||||
}
|
||||
} else {
|
||||
r3 = value4;
|
||||
}
|
||||
const value9 = r3 != null;
|
||||
reducibleJoin22: while (true) {
|
||||
if (value9) {
|
||||
value10 = value4 !== r3;
|
||||
r2 = value10;
|
||||
break reducibleJoin22;
|
||||
}
|
||||
r2 = value9;
|
||||
break reducibleJoin22;
|
||||
}
|
||||
reducibleJoin24: while (true) {
|
||||
if (r2) {
|
||||
push = items.push;
|
||||
Reflect.apply(push, items, [emojiNameOrUnicodeSequence(r3)]);
|
||||
break reducibleJoin24;
|
||||
}
|
||||
break reducibleJoin24;
|
||||
}
|
||||
return items;
|
||||
}
|
||||
|
||||
function convertNameToSurrogate(a0) { // fn#28951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:5367, offset: 0x00f881a5, size: 53 bytes, params: 2, frame: 13
|
||||
let value = a1;
|
||||
const value2 = undefined;
|
||||
let r0 = value !== value2 ? value : '';
|
||||
value = getEmojiObjectByName(a0);
|
||||
r0 = (value == null ? value2 : value.surrogates) ?? r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function convertSurrogateToName(a0) { // fn#28952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:5490, offset: 0x00f881da, size: 97 bytes, params: 2, frame: 15
|
||||
let value = a1;
|
||||
const value2 = a2;
|
||||
const value3 = undefined;
|
||||
const r1 = !(value !== value3) || value;
|
||||
let r3 = value2 !== value3 ? value2 : '';
|
||||
value = getEmojiObjectBySurrogate(a0);
|
||||
r3 = (value == null ? value3 : value.names[0]) ?? r3;
|
||||
return r1 ? ':' + r3 + ':' : r3;
|
||||
}
|
||||
|
||||
function _fun28953() { // fn#28953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:2298, offset: 0x00f8823b, size: 383 bytes, params: 1, frame: 15
|
||||
return env0_4(Emoji_28954, [{key: 'names', get: function() {
|
||||
return this.emojiObject.names;
|
||||
}}, {key: 'allNamesString', get: function() {
|
||||
var r0;
|
||||
var value;
|
||||
if (this.names.length > 1) {
|
||||
value = this.names.join(': :');
|
||||
value = ':' + value + ':';
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = ':' + this.uniqueName + ':';
|
||||
}
|
||||
return r0;
|
||||
}}, {key: 'unicodeVersion', get: function() {
|
||||
return this.emojiObject.unicodeVersion ?? 0;
|
||||
}}, {key: 'hasDiversity', get: function() {
|
||||
return this.emojiObject.hasDiversity;
|
||||
}}, {key: 'hasMultiDiversity', get: function() {
|
||||
return this.emojiObject.hasMultiDiversity;
|
||||
}}, {key: 'hasDiversityParent', get: function() {
|
||||
return this.emojiObject.hasDiversityParent;
|
||||
}}, {key: 'hasMultiDiversityParent', get: function() {
|
||||
return this.emojiObject.hasMultiDiversityParent;
|
||||
}}, {key: 'managed', get: function() {
|
||||
return true;
|
||||
}}, {key: 'animated', get: function() {
|
||||
return false;
|
||||
}}, {key: 'defaultDiversityChild', get: get_28964}, {key: 'url', get: get_28965}, {key: 'name', get: get_28966},
|
||||
{key: 'optionallyDiverseSequence', get: function() {
|
||||
var property = this.defaultDiversityChild;
|
||||
return property != null ? property.surrogates : this.surrogates;
|
||||
}}, {key: 'forEachDiversity', value: value_28968}, {key: 'forEachName', value: value_28969}]);
|
||||
}
|
||||
|
||||
function setDefaultDiversitySurrogate(a0) { // fn#28971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:5751, offset: 0x00f88746, size: 38 bytes, params: 2, frame: 4
|
||||
const value = a0;
|
||||
const value2 = null;
|
||||
const r1 = value2 != value ? value === '' ? value2 : value : value2;
|
||||
}
|
||||
|
||||
function getByCategory(a0) { // fn#28973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:5938, offset: 0x00f8879f, size: 161 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var property;
|
||||
var defaultImport;
|
||||
var filterUnsupportedEmojis;
|
||||
var emojis;
|
||||
var value3;
|
||||
var value4;
|
||||
const value2 = env0_13.get(a0);
|
||||
if (value2 != null) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
property = (require(3799) /* metro dependency 3799 */).emojisByCategory[a0];
|
||||
defaultImport = importDefault(3801) /* metro dependency 3801: EmojiUtils */;
|
||||
filterUnsupportedEmojis = defaultImport.filterUnsupportedEmojis;
|
||||
emojis = (require(3799) /* metro dependency 3799 */).emojis;
|
||||
value3 = Reflect.apply(filterUnsupportedEmojis, defaultImport, [emojis.slice(property[0], property[1])]);
|
||||
value4 = value3.map(parseRawEmojiObject);
|
||||
env0_13.set(a0, value4);
|
||||
r0 = value4;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function translateInlineEmojiToSurrogates(a0) { // fn#28974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:6224, offset: 0x00f88840, size: 30 bytes, params: 2, frame: 13
|
||||
return a0.replace(env0_9, function(a0, a1) {
|
||||
return convertNameToSurrogate(a1, a0);
|
||||
});
|
||||
}
|
||||
|
||||
function maybeTranslateSurrogatesToInlineEmoji(a0) { // fn#28976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:6365, offset: 0x00f88875, size: 78 bytes, params: 2, frame: 13
|
||||
var value;
|
||||
if (contentHasUnicodeOrEmoji(a0)) {
|
||||
value = findInlineEmojisFromSurrogates(a0, true);
|
||||
value = value.map(function(a0) {
|
||||
return a0.type === 'text' ? a0.text : a0.emojiName;
|
||||
});
|
||||
value = value.join('');
|
||||
return value === a0 ? null : value;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function translateSurrogatesToInlineEmoji(a0) { // fn#28978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:6672, offset: 0x00f888e2, size: 50 bytes, params: 2, frame: 11
|
||||
let value = findInlineEmojisFromSurrogates(a0);
|
||||
value = value.map(function(a0) {
|
||||
return a0.type === 'text' ? a0.text : a0.emojiName;
|
||||
});
|
||||
return value.join('');
|
||||
}
|
||||
|
||||
function convertShortcutToName(a0) { // fn#28980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:6927, offset: 0x00f88914, size: 131 bytes, params: 2, frame: 20
|
||||
const value = a1;
|
||||
const value2 = a2;
|
||||
const r2 = !(value !== undefined) || value;
|
||||
let r3 = value2 !== undefined ? value2 : '';
|
||||
const Object = global.Object;
|
||||
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
r3 = hasOwnProperty.call(require(12710) /* metro dependency 12710 */,
|
||||
a0) ? (require(12710) /* metro dependency 12710 */)[a0] : r3;
|
||||
return r2 ? ':' + r3 + ':' : r3;
|
||||
}
|
||||
|
||||
function convertSurrogateToBase(a0) { // fn#28981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:7089, offset: 0x00f88997, size: 54 bytes, params: 2, frame: 15
|
||||
return getByName(convertSurrogateToName(env0_8.reduce(function(a0, a1) {
|
||||
return a0.replace(a1, '');
|
||||
}, a0), false));
|
||||
}
|
||||
|
||||
function hasSurrogates(a0) { // fn#28984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:8292, offset: 0x00f88a50, size: 59 bytes, params: 2, frame: 11
|
||||
let value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.toArray(a0);
|
||||
return value.some(function(a0) {
|
||||
return require(dependencyMap[3]).surrogateToEmoji[a0] != null;
|
||||
});
|
||||
}
|
||||
|
||||
function Emoji_28954(a0) { // fn#28954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:2319, offset: 0x00f883ba, size: 267 bytes, params: 2, frame: 23
|
||||
var r2;
|
||||
var _createForOfIteratorHelperLoose_28941Binding;
|
||||
var value3;
|
||||
var value4;
|
||||
var done;
|
||||
var value5;
|
||||
var emojis;
|
||||
var property;
|
||||
var diversity;
|
||||
var value6;
|
||||
var prototype;
|
||||
var value7;
|
||||
var emoji_28954;
|
||||
var value8;
|
||||
var value9;
|
||||
env1_3(this, Emoji_28954);
|
||||
this.emojiObject = a0;
|
||||
const EmojiTypes = (require(3800) /* metro dependency 3800: EmojiTypes */).EmojiTypes;
|
||||
const UNICODE = EmojiTypes.UNICODE;
|
||||
this.type = UNICODE;
|
||||
this.uniqueName = a0.names[0];
|
||||
this.surrogates = a0.surrogates;
|
||||
this.diversityChildren = {};
|
||||
let diversityChildren = a0.diversityChildren;
|
||||
if (diversityChildren != null) {
|
||||
_createForOfIteratorHelperLoose_28941Binding = _createForOfIteratorHelperLoose_28941;
|
||||
diversityChildren = a0.diversityChildren;
|
||||
value3 = _createForOfIteratorHelperLoose_28941Binding(diversityChildren);
|
||||
value4 = value3();
|
||||
done = value4.done;
|
||||
if (!done) {
|
||||
r2 = value4;
|
||||
while (true) {
|
||||
value5 = r2.value;
|
||||
emojis = (require(3799) /* metro dependency 3799 */).emojis;
|
||||
property = emojis[value5];
|
||||
diversity = property.diversity;
|
||||
if (diversity != null) {
|
||||
diversity = property.diversity;
|
||||
value6 = diversity.join('-');
|
||||
diversityChildren = this.diversityChildren;
|
||||
prototype = Emoji_28954.prototype;
|
||||
value7 = Object.create(prototype, {constructor: {value: Emoji_28954}});
|
||||
emoji_28954 = new Emoji_28954();
|
||||
value8 = emoji_28954 instanceof Object ? emoji_28954 : value7;
|
||||
diversityChildren[value6] = value8;
|
||||
}
|
||||
value9 = value3();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value9;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function get_28964() { // fn#28964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:3462, offset: 0x00f88597, size: 80 bytes, params: 1, frame: 13
|
||||
var value;
|
||||
if (this.hasDiversity) {
|
||||
value = environment.__proto__;
|
||||
if (env1_6 != null) {
|
||||
return this.diversityChildren[twemojiNpm.convert.toCodePoint(env1_6) ?? ''];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function get_28965() { // fn#28965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:3667, offset: 0x00f885e7, size: 101 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
var value;
|
||||
const defaultDiversityChild = this.defaultDiversityChild;
|
||||
if (defaultDiversityChild != null) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(3801) /* metro dependency 3801: EmojiUtils */;
|
||||
value = value.getURL(defaultDiversityChild.surrogates);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(3801) /* metro dependency 3801: EmojiUtils */;
|
||||
value = value.getURL(this.surrogates);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function get_28966() { // fn#28966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:3807, offset: 0x00f8864c, size: 106 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var value;
|
||||
var uniqueName;
|
||||
var getEmojiObjectBySurrogateBinding;
|
||||
var emojiObjectBySurrogateBinding;
|
||||
if (this.hasDiversity) {
|
||||
value = environment.__proto__;
|
||||
if (env1_6 != null) {
|
||||
uniqueName = this.uniqueName;
|
||||
getEmojiObjectBySurrogateBinding = getEmojiObjectBySurrogate;
|
||||
value = undefined;
|
||||
emojiObjectBySurrogateBinding = getEmojiObjectBySurrogateBinding(env1_6);
|
||||
value = '' + uniqueName + '::' + (emojiObjectBySurrogateBinding == null ? value : emojiObjectBySurrogateBinding.names[0]);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = this.uniqueName;
|
||||
}
|
||||
} else {
|
||||
r0 = this.uniqueName;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_28968(a0) { // fn#28968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:4115, offset: 0x00f886d3, size: 65 bytes, params: 2, frame: 13
|
||||
var value;
|
||||
if (this.diversityChildren != null) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value.each(this.diversityChildren, a0);
|
||||
}
|
||||
}
|
||||
|
||||
function value_28969(a0) { // fn#28969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3924:4224, offset: 0x00f88714, size: 50 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value.each(this.names, a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
/* Metro module 8630; source: modules/emojis/hooks/useEmojiAndSource.tsx; dependencies: [5, 57, 31, 1867, 6540, 6820, 661, 3800, 632, 2] */
|
||||
function _fun68098(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8815:6, offset: 0x01c3e7c4, size: 245 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 env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
|
||||
const expressionSourceRecordModule = require(6820) /* metro dependency 6820: ExpressionSourceRecord */;
|
||||
const env0_7 = expressionSourceRecordModule.ExpressionSourceGuildRecord;
|
||||
const env0_8 = expressionSourceRecordModule.EmojiSourceDataTypes;
|
||||
const env0_9 = expressionSourceRecordModule.getEmojiSourceData;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/hooks/useEmojiAndSource.tsx');
|
||||
exports.useEmojiAndSource = useEmojiAndSource;
|
||||
}
|
||||
|
||||
function useEmojiAndSource({emojiId, refreshPositionKey}) { // fn#68099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8815:356, offset: 0x01c3e8b9, size: 449 bytes, params: 2, frame: 27
|
||||
let env0_3 = undefined;
|
||||
let env0_4 = undefined;
|
||||
const {joinedEmojiSourceGuildRecord,
|
||||
emoji} = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([EmojiStore,
|
||||
GuildStore], _fun68100);
|
||||
const value4 = joinedEmojiSourceGuildRecord != null;
|
||||
const r10 = (value4 ? joinedEmojiSourceGuildRecord != null && joinedEmojiSourceGuildRecord.features.has(GuildFeatures.DISCOVERABLE) : !value4) && emojiId != null;
|
||||
let binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value9 = Reflect.apply(useState, binding, [r10]);
|
||||
const binding2 = env0_3;
|
||||
const value10 = binding2(value9, 2);
|
||||
const property = value10[0];
|
||||
env0_3 = value10[1];
|
||||
useState = binding.useState;
|
||||
const value11 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property2 = value11[0];
|
||||
env0_4 = value11[1];
|
||||
const r14 = joinedEmojiSourceGuildRecord != null ? ExpressionSourceGuildRecord.createFromGuildRecord(joinedEmojiSourceGuildRecord) : null;
|
||||
binding = env0_4;
|
||||
const value12 = binding.useState(r14);
|
||||
const binding3 = env0_3;
|
||||
let value = binding3(value12, 2);
|
||||
const property3 = value[0];
|
||||
const env0_5 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding3(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property4 = value[0];
|
||||
const env0_6 = value[1];
|
||||
const env0_7 = binding.useRef(refreshPositionKey);
|
||||
binding.useEffect(_fun68101);
|
||||
binding.useEffect(_fun68102, [emojiId, r10]);
|
||||
return {expressionSourceGuild: property3, expressionSourceApplication: property4, sourceType: property2,
|
||||
joinedEmojiSourceGuildRecord: joinedEmojiSourceGuildRecord, hasJoinedEmojiSourceGuild: value4, emoji: emoji,
|
||||
isFetching: property};
|
||||
}
|
||||
|
||||
function _fun68100() { // fn#68100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8815:439, offset: 0x01c3ea7a, size: 150 bytes, params: 1, frame: 16
|
||||
const emojiIdBinding = emojiId;
|
||||
const value3 = null;
|
||||
const r5 = value3 != emojiIdBinding ? EmojiStore.getCustomEmojiById(emojiIdBinding) : value3;
|
||||
const value5 = undefined;
|
||||
const type = value3 == r5 ? value5 : r5.type;
|
||||
const EmojiTypes = (require(3800) /* metro dependency 3800: EmojiTypes */).EmojiTypes;
|
||||
const GUILD = EmojiTypes.GUILD;
|
||||
return type === GUILD ? {emoji: r5,
|
||||
joinedEmojiSourceGuildRecord: GuildStore.getGuild(value3 == r5 ? value5 : r5.guildId)} : {'emoji': null,
|
||||
'joinedEmojiSourceGuildRecord': null};
|
||||
}
|
||||
|
||||
function _fun68101() { // fn#68101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8815:1040, offset: 0x01c3eb10, size: 21 bytes, params: 1, frame: 2
|
||||
env0_7.current = refreshPositionKey;
|
||||
}
|
||||
|
||||
function _fun68102() { // fn#68102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8815:1073, offset: 0x01c3eb25, size: 87 bytes, params: 1, frame: 12
|
||||
if (env0_7.current != null) {
|
||||
env0_7.current();
|
||||
}
|
||||
if (env0_2) {
|
||||
_fun68103()();
|
||||
} else if (env0_7.current != null) {
|
||||
env0_7.current();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun68103() { // fn#68103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8815:1113, offset: 0x01c3eb7c, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env2_2(_fun68105);
|
||||
return _fun68106;
|
||||
}
|
||||
|
||||
function* _fun68105() { // fn#68105, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8815:1133, offset: 0x01c3ebab, size: 196 bytes, params: 1, frame: 17
|
||||
var r2;
|
||||
var value4;
|
||||
var binding;
|
||||
var value5;
|
||||
var type;
|
||||
var value7;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var value3 = null;
|
||||
if (value3 != require) {
|
||||
value4 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
binding = env4_9;
|
||||
yield binding(require);
|
||||
value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
r2 = value5;
|
||||
if (value3 != r2) {
|
||||
binding = env3_4;
|
||||
type = r2.type;
|
||||
binding(type);
|
||||
type = r2.type;
|
||||
value7 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
if (env4_8.APPLICATION === type) {
|
||||
EmojiStore(r2.application);
|
||||
} else if (env4_8.GUILD === type) {
|
||||
GuildStore(r2.guild);
|
||||
}
|
||||
}
|
||||
env3_3(false);
|
||||
if (value3 != ExpressionSourceGuildRecord.current) {
|
||||
ExpressionSourceGuildRecord.current();
|
||||
}
|
||||
} else {
|
||||
r2 = value3;
|
||||
if (value3 != r2) {
|
||||
binding = env3_4;
|
||||
type = r2.type;
|
||||
binding(type);
|
||||
type = r2.type;
|
||||
value7 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
if (env4_8.APPLICATION === type) {
|
||||
EmojiStore(r2.application);
|
||||
} else if (env4_8.GUILD === type) {
|
||||
GuildStore(r2.guild);
|
||||
}
|
||||
}
|
||||
env3_3(false);
|
||||
if (value3 != ExpressionSourceGuildRecord.current) {
|
||||
ExpressionSourceGuildRecord.current();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Metro module 9841; source: modules/emojis/hooks/useEmojiColorPalette.tsx; dependencies: [4502, 1310, 566, 4002, 8202, 2] */
|
||||
function _fun77130(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10027:6, offset: 0x01df2898, size: 130 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/hooks/useEmojiColorPalette.tsx');
|
||||
exports.useEmojiColorPalette = useEmojiColorPalette;
|
||||
}
|
||||
|
||||
function useEmojiColorPalette(a0) { // fn#77131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10027:218, offset: 0x01df291a, size: 126 bytes, params: 2, frame: 20
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
let useStateFromStores = fluxModule.useStateFromStores;
|
||||
const saturation = Reflect.apply(useStateFromStores, fluxModule, [[AccessibilityStore], function() {
|
||||
return AccessibilityStore.saturation;
|
||||
}]);
|
||||
const moduleValue2 = fluxModule;
|
||||
useStateFromStores = moduleValue2.useStateFromStores;
|
||||
return (require(8202) /* metro dependency 8202: EmojiColorUtils */).buildEmojiColorPalette(a0, saturation,
|
||||
Reflect.apply(useStateFromStores, moduleValue2, [[ThemeStore], function() {
|
||||
return require(dependencyMap[3]).isThemeDark(ThemeStore.theme);
|
||||
}]));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Metro module 6739; source: modules/emojis/native/Emoji.tsx; dependencies: [31, 27, 1310, 33, 477, 3801, 1305, 5475, 4002, 6740, 6741, 2] */
|
||||
function _fun53200(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6917:6, offset: 0x01340ec5, size: 173 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/native/Emoji.tsx');
|
||||
exports.default = _default_53201;
|
||||
}
|
||||
|
||||
function _default_53201({src, name, style, textEmojiStyle, fastImageStyle, forceTextEmoji, adjustsFontSizeToFit}) { // fn#53201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6917:152, offset: 0x01340f72, size: 369 bytes, params: 2, frame: 25
|
||||
var r4;
|
||||
var FastImage;
|
||||
var object;
|
||||
var moduleValue2;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
const r12 = platformUtilsModule.isAndroid() ? src ?? (importDefault(3801) /* metro dependency 3801: EmojiUtils */).getURL(name) : src;
|
||||
if (forceTextEmoji) {
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
r4 = <LegacyText style={textEmojiStyle} allowFontScaling={false} adjustsFontSizeToFit={adjustsFontSizeToFit}>{name}</LegacyText>;
|
||||
} else if (r12 == null) {
|
||||
const LegacyText2 = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
r4 = <LegacyText2 style={textEmojiStyle} allowFontScaling={false} adjustsFontSizeToFit={adjustsFontSizeToFit}>{name}</LegacyText2>;
|
||||
} else if (r12 === '') {
|
||||
const LegacyText3 = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
r4 = <LegacyText3 style={textEmojiStyle} allowFontScaling={false} adjustsFontSizeToFit={adjustsFontSizeToFit}>{name}</LegacyText3>;
|
||||
} else {
|
||||
FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
object = {resizeMode: 'contain', style: fastImageStyle};
|
||||
moduleValue2 = require(4002) /* metro dependency 4002: shared */;
|
||||
object.placeholder = moduleValue2.isThemeDark(ThemeStore.theme) ? importDefault(6740) /* metro dependency 6740 */ : importDefault(6741) /* metro dependency 6741 */;
|
||||
object.source = {uri: r12};
|
||||
r4 = <FastImage {...object} />;
|
||||
}
|
||||
return (
|
||||
<View style={style}>
|
||||
{r4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/* Metro module 14507; source: modules/emojis/native/utils/EmojiColorUtils.tsx; dependencies: [5, 27, 1393, 2] */
|
||||
function _fun109779(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14704:6, offset: 0x0235b044, size: 193 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_1 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
let value = importDefault(1393) /* metro dependency 1393 */;
|
||||
value = new value(100);
|
||||
const _getEmojiCacheKey = function({name, id}) {
|
||||
return '' + name + '-' + id;
|
||||
};
|
||||
value = _fun109784();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/native/utils/EmojiColorUtils.tsx');
|
||||
exports.getEmojiDominantColors = value;
|
||||
}
|
||||
|
||||
function _getFromCacheOrFallback2() { // fn#109780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14704:191, offset: 0x0235b105, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_0(_fun109782).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun109784() { // fn#109784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14704:464, offset: 0x0235b1fa, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0Binding = env0_0(_fun109786);
|
||||
return _fun109788;
|
||||
}
|
||||
|
||||
async function _fun109782({cache, cacheKey, fallbackParam, fallbackFunc}) { // fn#109782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14704:262, offset: 0x0235b14b, size: 132 bytes, params: 2, frame: 20
|
||||
var value4;
|
||||
var value5;
|
||||
var set;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = cache.get(cacheKey);
|
||||
if (value == null) {
|
||||
try {
|
||||
value = fallbackFunc(fallbackParam);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
await value;
|
||||
try {
|
||||
value = undefined;
|
||||
value4 = false;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
if (value4) {
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
value5 = value == null;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
if (!value5) {
|
||||
try {
|
||||
set = cache.set;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(set, cache, [cacheKey, value]);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
async function _fun109786({emoji, emojiSource}) { // fn#109786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14704:484, offset: 0x0235b232, size: 140 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const object2 = {};
|
||||
value = environment.__proto__.__proto__;
|
||||
object2.cache = env2_2;
|
||||
object2.cacheKey = env2_3(emoji);
|
||||
object2.fallbackParam = emojiSource;
|
||||
const ImageManager = env2_1.ImageManager;
|
||||
const getDominantColors = ImageManager.getDominantColors;
|
||||
object2.fallbackFunc = getDominantColors;
|
||||
await _getFromCacheOrFallback(object2);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value ?? [];
|
||||
}
|
||||
|
||||
function _getFromCacheOrFallback() { // fn#109787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14704:547, offset: 0x0235b2be, size: 30 bytes, params: 1, frame: 13
|
||||
return env3_4.apply(this, arguments);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Metro module 14506; source: modules/emojis/native/utils/EmojiSourceUtils.tsx; dependencies: [5, 27, 3801, 1423, 2] */
|
||||
function _fun109774(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14703:6, offset: 0x0235ae6e, size: 140 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
const value = _fun109775();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/native/utils/EmojiSourceUtils.tsx');
|
||||
exports.getEmojiSource = value;
|
||||
}
|
||||
|
||||
function _fun109775() { // fn#109775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14703:132, offset: 0x0235aefa, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env0_2(_fun109777);
|
||||
return _fun109778;
|
||||
}
|
||||
|
||||
async function _fun109777(a0) { // fn#109777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14703:152, offset: 0x0235af32, size: 274 bytes, params: 2, frame: 23
|
||||
let value = a1;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const r8 = value !== undefined ? value : 32;
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const value5 = env2_0(env2_1[2]);
|
||||
const getEmojiUrl = value5.getEmojiUrl;
|
||||
const name = a0.name;
|
||||
const value6 = '';
|
||||
const r4 = Reflect.apply(getEmojiUrl, value5, [{name: name ?? value6, id: a0.id, animated: false}, r8]) ?? value6;
|
||||
if (value6 !== r4) {
|
||||
return env2_0(env2_1[3]).makeSource(r4);
|
||||
}
|
||||
const ImageManager = env2_3.ImageManager;
|
||||
const getEmojiBase64 = ImageManager.getEmojiBase64;
|
||||
await Reflect.apply(getEmojiBase64, ImageManager, [a0.name, r8]);
|
||||
const value8 = undefined;
|
||||
if (false) {
|
||||
return value8;
|
||||
}
|
||||
return env2_0(env2_1[3]).makeSource('data:image/png;base64,' + value8);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,516 @@
|
||||
/* Metro module 6820; source: modules/emojis/records/ExpressionSourceRecord.tsx; dependencies: [6, 7, 15, 17, 18, 5, 1886, 661, 507, 1423, 1421, 1418, 2] */
|
||||
function _fun53606(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:6, offset: 0x01351645, size: 340 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = importDefault(5) /* metro dependency 5 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = constantsModule.Endpoints;
|
||||
const env0_10 = constantsModule.GuildFeatures;
|
||||
const value3 = _fun53611();
|
||||
const value4 = _fun53615(value);
|
||||
value = _fun53630(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/records/ExpressionSourceRecord.tsx');
|
||||
exports.EmojiSourceDataTypes = {GUILD: 'GUILD', APPLICATION: 'APPLICATION'};
|
||||
exports.getEmojiSourceData = value3;
|
||||
exports.ExpressionSourceGuildRecord = value4;
|
||||
exports.ExpressionSourceApplicationRecord = value;
|
||||
}
|
||||
|
||||
function _callSuper_53607(a0, a1, a2) { // fn#53607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:210, offset: 0x01351799, size: 94 bytes, params: 4, frame: 20
|
||||
const value2 = env0_6(a1);
|
||||
return env0_5(a0, _isNativeReflectConstruct_53608() ? global.Reflect.construct(value2, [],
|
||||
env0_6(a0).constructor) : value2.apply(a0, undefined));
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_53608() { // fn#53608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:341, offset: 0x013517f7, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_53608_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun53611() { // fn#53611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:612, offset: 0x01351855, size: 32 bytes, params: 1, frame: 12
|
||||
const env0_0 = env0_8(_fun53613);
|
||||
return _fun53614;
|
||||
}
|
||||
|
||||
function _fun53615(a0) { // fn#53615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1040, offset: 0x01351990, size: 304 bytes, params: 2, frame: 18
|
||||
const closure = ExpressionSourceGuildRecord;
|
||||
env0_7(closure, a0);
|
||||
const binding = env0_4;
|
||||
const items2 = [{key: 'getIconURL', value: value_53617}];
|
||||
items2[1] = {key: 'getIconSource', value: value_53618};
|
||||
items2[2] = {key: 'hasFeature', value: function(a0) {
|
||||
return this.features.has(a0);
|
||||
}};
|
||||
items2[3] = {key: 'isDiscoverable', value: function() {
|
||||
return this.hasFeature(GuildFeatures.DISCOVERABLE);
|
||||
}};
|
||||
const env0_0 = env0_8(_fun53623);
|
||||
return binding(closure, items2, [{key: 'getGuildFromEmojiId', value: value_53624}, {key: '_mapCommon',
|
||||
value: value_53625}, {key: 'createFromGuildRecord', value: value_53626}, {key: 'createFromDiscoverableGuild',
|
||||
value: value_53627}, {key: 'createFromServer', value: value_53628}, {key: 'createFromGuildType',
|
||||
value: value_53629}]);
|
||||
}
|
||||
|
||||
function _fun53630(a0) { // fn#53630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:3396, offset: 0x01351eed, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = ExpressionSourceApplicationRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, null, [{key: 'createFromServer', value: value_53632}]);
|
||||
}
|
||||
|
||||
function* _fun53613(a0) { // fn#53613, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:632, offset: 0x0135187e, size: 274 bytes, params: 2, frame: 20
|
||||
var type;
|
||||
var r1;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var HTTP;
|
||||
var get;
|
||||
var object2;
|
||||
var EMOJI_SOURCE_DATA;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var body;
|
||||
var value10;
|
||||
var GUILD;
|
||||
var value11;
|
||||
var value12;
|
||||
var APPLICATION;
|
||||
var createFromServer;
|
||||
var application;
|
||||
var guild;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
const value3 = null;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort58: while (true) {
|
||||
exceptionLanding57: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value3;
|
||||
break reduciblePort58;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
property = binding2[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
HTTP = value5.HTTP;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2 = {'url': null, 'oldFormErrors': true, 'timeout': 5000, 'rejectWithError': true};
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
binding = env2_9;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
EMOJI_SOURCE_DATA = binding.EMOJI_SOURCE_DATA;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(EMOJI_SOURCE_DATA, binding, [a0]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.url = value6;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(get, HTTP, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
yield value7;
|
||||
try {
|
||||
value8 = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
if (value9) {
|
||||
return value8;
|
||||
}
|
||||
try {
|
||||
body = value8.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value10 = value3 == body;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
reducibleJoin25: while (true) {
|
||||
if (value10) {
|
||||
type = value;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
try {
|
||||
type = body.type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
break reducibleJoin25;
|
||||
}
|
||||
try {
|
||||
binding = env2_11;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
GUILD = binding.GUILD;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value11 = type === GUILD;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
if (value11) {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
binding = env2_13;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
createFromServer = binding.createFromServer;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
guild = body.guild;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(createFromServer, binding, [guild]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.guild = value;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
type = body.type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.type = type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
r1 = object2;
|
||||
} else {
|
||||
try {
|
||||
value12 = value3 == body;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
reducibleJoin33: while (true) {
|
||||
if (value12) {
|
||||
type = value;
|
||||
break reducibleJoin33;
|
||||
}
|
||||
try {
|
||||
type = body.type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
break reducibleJoin33;
|
||||
}
|
||||
try {
|
||||
binding = env2_11;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
APPLICATION = binding.APPLICATION;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value = type !== APPLICATION;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
reducibleJoin55: while (true) {
|
||||
if (value) {
|
||||
r1 = value3;
|
||||
break reducibleJoin55;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
binding = env2_14;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
createFromServer = binding.createFromServer;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
application = body.application;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(createFromServer, binding, [application]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.application = value;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
type = body.type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object2.type = type;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
r1 = object2;
|
||||
break reducibleJoin55;
|
||||
}
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function ExpressionSourceGuildRecord({id, name, icon, description, features, premiumTier, premiumSubscriberCount, presenceCount, memberCount, emojis}) { // fn#53616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1052, offset: 0x01351ac0, size: 156 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, ExpressionSourceGuildRecord);
|
||||
value = _callSuper_53607(this, ExpressionSourceGuildRecord);
|
||||
value.id = id;
|
||||
value.name = name;
|
||||
value.icon = icon;
|
||||
value.description = description;
|
||||
value.features = features;
|
||||
value.premiumTier = premiumTier;
|
||||
value.premiumSubscriberCount = premiumSubscriberCount;
|
||||
value.presenceCount = presenceCount;
|
||||
value.memberCount = memberCount;
|
||||
value.emojis = emojis;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_53617(a0) { // fn#53617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1529, offset: 0x01351b5c, size: 82 bytes, params: 2, frame: 14
|
||||
let value = a1;
|
||||
const r3 = value !== undefined ? value : false;
|
||||
value = environment.__proto__;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: this.id, size: a0,
|
||||
icon: this.icon, canAnimate: r3});
|
||||
}
|
||||
|
||||
function value_53618(a0) { // fn#53618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1655, offset: 0x01351bae, size: 69 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
let value = a1;
|
||||
const env0_1 = a0;
|
||||
const r3 = value !== undefined ? value : false;
|
||||
value = environment.__proto__;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getAnimatableSourceWithFallback(r3, _fun53619);
|
||||
}
|
||||
|
||||
function* _fun53623(a0) { // fn#53623, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1992, offset: 0x01351c6a, size: 89 bytes, params: 2, frame: 15
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const value3 = undefined;
|
||||
yield env2_12(a0);
|
||||
const value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
const value6 = null;
|
||||
return value6 != value4 ? (value6 == value4 ? value3 : value4.type) !== env2_11.GUILD ? value6 : value4.guild : value6;
|
||||
}
|
||||
|
||||
function value_53625({id, name, icon, description, features}) { // fn#53625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:2177, offset: 0x01351cc3, size: 90 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.name = name;
|
||||
object2.icon = icon;
|
||||
object2.description = description;
|
||||
const value = environment.__proto__;
|
||||
object2.features = (require(1421) /* metro dependency 1421: SetUtils */).toSetInplace(features);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function value_53626(a0) { // fn#53626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:2335, offset: 0x01351d1d, size: 114 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, ExpressionSourceGuildRecord._mapCommon(a0), undefined);
|
||||
object2['premiumTier'] = a0.premiumTier;
|
||||
object2['premiumSubscriberCount'] = a0.premiumSubscriberCount;
|
||||
object2['presenceCount'] = null;
|
||||
object2['memberCount'] = null;
|
||||
object2['emojis'] = null;
|
||||
const value = Object.create(ExpressionSourceGuildRecord.prototype,
|
||||
{constructor: {value: ExpressionSourceGuildRecord}});
|
||||
const expressionSourceGuildRecord = new ExpressionSourceGuildRecord(object2);
|
||||
return expressionSourceGuildRecord instanceof Object ? expressionSourceGuildRecord : value;
|
||||
}
|
||||
|
||||
function value_53627(a0) { // fn#53627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:2599, offset: 0x01351d8f, size: 126 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, ExpressionSourceGuildRecord._mapCommon(a0), undefined);
|
||||
object2['premiumTier'] = null;
|
||||
object2['premiumSubscriberCount'] = a0.premiumSubscriptionCount;
|
||||
object2['presenceCount'] = a0.presenceCount;
|
||||
object2['memberCount'] = a0.memberCount;
|
||||
object2['emojis'] = a0.emojis;
|
||||
const value = Object.create(ExpressionSourceGuildRecord.prototype,
|
||||
{constructor: {value: ExpressionSourceGuildRecord}});
|
||||
const expressionSourceGuildRecord = new ExpressionSourceGuildRecord(object2);
|
||||
return expressionSourceGuildRecord instanceof Object ? expressionSourceGuildRecord : value;
|
||||
}
|
||||
|
||||
function value_53628(a0) { // fn#53628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:2869, offset: 0x01351e0d, size: 130 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, ExpressionSourceGuildRecord._mapCommon(a0), undefined);
|
||||
object2['premiumTier'] = a0.premium_tier;
|
||||
object2['premiumSubscriberCount'] = a0.premium_subscription_count;
|
||||
object2['presenceCount'] = a0.approximate_presence_count;
|
||||
object2['memberCount'] = a0.approximate_member_count;
|
||||
object2['emojis'] = a0.emojis;
|
||||
const value = Object.create(ExpressionSourceGuildRecord.prototype,
|
||||
{constructor: {value: ExpressionSourceGuildRecord}});
|
||||
const expressionSourceGuildRecord = new ExpressionSourceGuildRecord(object2);
|
||||
return expressionSourceGuildRecord instanceof Object ? expressionSourceGuildRecord : value;
|
||||
}
|
||||
|
||||
function value_53629(a0) { // fn#53629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:3180, offset: 0x01351e8f, size: 94 bytes, params: 2, frame: 14
|
||||
var r1;
|
||||
var r0;
|
||||
var value3;
|
||||
let value = a0;
|
||||
if (value instanceof ExpressionSourceGuildRecord) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
if ((require(1418) /* metro dependency 1418: GuildRecordUtils */).isGuildRecord(value)) {
|
||||
value = ExpressionSourceGuildRecord.createFromGuildRecord(value);
|
||||
r1 = value;
|
||||
} else {
|
||||
value = ExpressionSourceGuildRecord.createFromDiscoverableGuild(value);
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function ExpressionSourceApplicationRecord({id, name}) { // fn#53631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:3408, offset: 0x01351f34, size: 62 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, ExpressionSourceApplicationRecord);
|
||||
value = _callSuper_53607(this, ExpressionSourceApplicationRecord);
|
||||
value.id = id;
|
||||
value.name = name;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_53632({id, name}) { // fn#53632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:3706, offset: 0x01351f72, size: 55 bytes, params: 2, frame: 12
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.name = name;
|
||||
const value = Object.create(ExpressionSourceApplicationRecord.prototype,
|
||||
{constructor: {value: ExpressionSourceApplicationRecord}});
|
||||
const expressionSourceApplicationRecord = new ExpressionSourceApplicationRecord(object2);
|
||||
return expressionSourceApplicationRecord instanceof Object ? expressionSourceApplicationRecord : value;
|
||||
}
|
||||
|
||||
function _fun53619(a0) { // fn#53619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6998:1722, offset: 0x01351bf3, size: 81 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getGuildIconSource = value.getGuildIconSource;
|
||||
const binding = env0_0;
|
||||
return Reflect.apply(getGuildIconSource, value, [{id: binding.id, size: env0_1, icon: binding.icon,
|
||||
canAnimate: a0}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
/* Metro module 6543; source: modules/emojis/top_emojis/TopEmojiStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun51607(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6721:6, offset: 0x0123ce1a, size: 310 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
object = {topEmojisByGuildId: {}};
|
||||
const env0_7 = {};
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
let value = _fun51611(PersistedStore);
|
||||
value.displayName = 'TopEmojiStore';
|
||||
value.persistKey = 'TopEmojiStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: LOGOUT_51617,
|
||||
TOP_EMOJIS_FETCH: TOP_EMOJIS_FETCH, TOP_EMOJIS_FETCH_SUCCESS: TOP_EMOJIS_FETCH_SUCCESS_51619});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/top_emojis/TopEmojiStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_51608() { // fn#51608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6721:148, offset: 0x0123cf50, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_51608_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun51611(a0) { // fn#51611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6721:386, offset: 0x0123cfae, size: 139 bytes, params: 2, frame: 16
|
||||
const closure = TopEmojiStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: value_51613}, {key: 'getState', value: value_51614},
|
||||
{key: 'getTopEmojiIdsByGuildId', value: value_51615}, {key: 'getIsFetching', value: value_51616}]);
|
||||
}
|
||||
|
||||
function LOGOUT_51617() { // fn#51617, offset: 0x0123d06a, size: 21 bytes, params: 1, frame: 2
|
||||
env0_7 = {};
|
||||
}
|
||||
|
||||
function TOP_EMOJIS_FETCH({guildId}) { // fn#51618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6721:1053, offset: 0x0123d07f, size: 25 bytes, params: 2, frame: 3
|
||||
env0_7[guildId] = true;
|
||||
}
|
||||
|
||||
function TOP_EMOJIS_FETCH_SUCCESS_51619({guildId, topEmojisMetadata}) { // fn#51619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6721:1132, offset: 0x0123d098, size: 62 bytes, params: 2, frame: 14
|
||||
env0_6.topEmojisByGuildId[guildId] = topEmojisMetadata.map(function(a0) {
|
||||
return a0.emojiId;
|
||||
});
|
||||
env0_7[guildId] = false;
|
||||
}
|
||||
|
||||
function value_51615(a0) { // fn#51615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6721:790, offset: 0x0123d054, size: 22 bytes, params: 2, frame: 2
|
||||
return env1_6.topEmojisByGuildId[a0];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 8536; source: modules/emojis/top_emojis/TopEmojisActionCreators.tsx; dependencies: [661, 3987, 694, 507, 2] */
|
||||
function _fun67686(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8721:6, offset: 0x01c2d5f7, size: 152 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/top_emojis/TopEmojisActionCreators.tsx');
|
||||
exports.fetchTopEmojis = fetchTopEmojis;
|
||||
exports.updateNewlyAddedLastSeen = updateNewlyAddedLastSeen;
|
||||
exports.updateNewlyAddedEmojiSeenAcknowledged = updateNewlyAddedEmojiSeenAcknowledged;
|
||||
}
|
||||
|
||||
function fetchTopEmojis(a0) { // fn#67687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8721:221, offset: 0x01c2d68f, size: 186 bytes, params: 2, frame: 18
|
||||
var object2;
|
||||
var HTTP;
|
||||
var get;
|
||||
const env0_0 = a0;
|
||||
const routeUtilsModule = require(3987) /* metro dependency 3987: RouteUtils */;
|
||||
if (!routeUtilsModule.isPseudoGuildId(a0)) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TOP_EMOJIS_FETCH', guildId: a0});
|
||||
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
get = HTTP.get;
|
||||
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
||||
object2.url = Endpoints.TOP_EMOJIS_FOR_GUILD(a0);
|
||||
Reflect.apply(get, HTTP, [object2]).then(_fun67688, _fun67691);
|
||||
}
|
||||
}
|
||||
|
||||
function updateNewlyAddedLastSeen(a0, a1) { // fn#67692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8721:698, offset: 0x01c2d82e, size: 119 bytes, params: 3, frame: 17
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NEWLY_ADDED_EMOJI_SEEN_UPDATED'});
|
||||
if (a0 != null && a1 != null) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NEWLY_ADDED_EMOJI_SEEN_PENDING',
|
||||
guildId: a0, emojiId: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function updateNewlyAddedEmojiSeenAcknowledged(a0, a1) { // fn#67693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8721:932, offset: 0x01c2d8a5, size: 82 bytes, params: 3, frame: 14
|
||||
if (a0 != null && a1 != null) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NEWLY_ADDED_EMOJI_SEEN_ACKNOWLEDGED',
|
||||
|
||||
guildId: a0, emojiId: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun67688({body}) { // fn#67688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8721:423, offset: 0x01c2d749, size: 114 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = value.dispatch;
|
||||
const object2 = {type: 'TOP_EMOJIS_FETCH_SUCCESS'};
|
||||
object2.guildId = env0_0;
|
||||
object2.topEmojisMetadata = body.items.map(function(a0) {
|
||||
return {emojiId: a0.emoji_id, rank: a0.emoji_rank};
|
||||
}).sort(function({rank}, a1) {
|
||||
return rank - a1.rank;
|
||||
});
|
||||
return Reflect.apply(dispatch, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun67691() { // fn#67691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8721:601, offset: 0x01c2d7f2, size: 60 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TOP_EMOJIS_FETCH_FAILURE',
|
||||
guildId: env0_0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/* Metro module 15694; source: modules/emojis/top_emojis/TopEmojisDataManager.tsx; dependencies: [6, 7, 15, 17, 18, 3969, 1881, 8535, 4860, 2] */
|
||||
function _fun120396(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:6, offset: 0x0252a5eb, size: 264 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
const env0_8 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiInteractionPoint;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun120400(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/top_emojis/TopEmojisDataManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_120397() { // fn#120397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:190, offset: 0x0252a6f3, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_120397_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun120400(a0) { // fn#120400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:393, offset: 0x0252a755, size: 74 bytes, params: 2, frame: 15
|
||||
const closure = TopEmojisDataManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'handleInteraction', value: value_120402}]);
|
||||
}
|
||||
|
||||
function TopEmojisDataManager(a0) { // fn#120401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:405, offset: 0x0252a79f, size: 149 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, TopEmojisDataManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_5(TopEmojisDataManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_120397()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.actions = {EMOJI_INTERACTION_INITIATED: value.handleInteraction};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_120402({interaction}) { // fn#120402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:801, offset: 0x0252a834, size: 94 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const EmojiButtonMouseEntered = EmojiInteractionPoint.EmojiButtonMouseEntered;
|
||||
const items2 = [EmojiButtonMouseEntered];
|
||||
if (items2.includes(interaction)) {
|
||||
(require(8535) /* metro dependency 8535: TopEmojisUtils */).maybeFetchTopEmojisByGuild(SelectedGuildStore.getGuildId());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Metro module 8535; source: modules/emojis/top_emojis/TopEmojisUtils.tsx; dependencies: [1878, 6540, 6543, 8536, 2] */
|
||||
function _fun67684(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8720:6, offset: 0x01c2d4d6, size: 146 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
|
||||
const topEmojiStore = importDefault(6543) /* metro dependency 6543: TopEmojiStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/top_emojis/TopEmojisUtils.tsx');
|
||||
exports.maybeFetchTopEmojisByGuild = maybeFetchTopEmojisByGuild;
|
||||
}
|
||||
|
||||
function maybeFetchTopEmojisByGuild(a0) { // fn#67685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8720:233, offset: 0x01c2d568, size: 143 bytes, params: 2, frame: 13
|
||||
if (a0 != null) {
|
||||
var value;
|
||||
var getCurrentUser = UserStore.getCurrentUser;
|
||||
if (Reflect.apply(getCurrentUser, UserStore, []) == null) {
|
||||
return undefined;
|
||||
}
|
||||
var topEmojisMetadata = EmojiStore.getTopEmojisMetadata(a0);
|
||||
if (topEmojisMetadata == null) {
|
||||
if (!TopEmojiStore.getIsFetching(a0)) {
|
||||
(require(8536) /* metro dependency 8536: TopEmojisActionCreators */).fetchTopEmojis(a0);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
var topEmojisTTL = topEmojisMetadata.topEmojisTTL;
|
||||
if (topEmojisTTL == null) {
|
||||
return undefined;
|
||||
}
|
||||
var Date = global.Date;
|
||||
if (Date.now() < topEmojisTTL) {
|
||||
return undefined;
|
||||
}
|
||||
if (!TopEmojiStore.getIsFetching(a0)) {
|
||||
(require(8536) /* metro dependency 8536: TopEmojisActionCreators */).fetchTopEmojis(a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 8307; source: modules/emojis/useSystemMessageEmoji.tsx; dependencies: [31, 6540, 566, 2] */
|
||||
function _fun66204(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8492:6, offset: 0x01bf2510, size: 174 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
|
||||
const regexp = RegExp('^<(a?):(\\w+):(\\d+)>', '');
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/useSystemMessageEmoji.tsx');
|
||||
exports.CUSTOM_EMOJI_REGEX = regexp;
|
||||
exports.getSystemMessageEmoji = getSystemMessageEmoji;
|
||||
exports.useSystemMessageEmoji = useSystemMessageEmoji;
|
||||
}
|
||||
|
||||
function getSystemMessageEmoji(a0) { // fn#66205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8492:261, offset: 0x01bf25be, size: 65 bytes, params: 2, frame: 13
|
||||
const value2 = env0_4.exec(a0);
|
||||
const value3 = null;
|
||||
const r3 = value3 == value2 ? undefined : value2[3];
|
||||
return value3 == r3 ? value3 : EmojiStore.getCustomEmojiById(r3);
|
||||
}
|
||||
|
||||
function useSystemMessageEmoji(a0) { // fn#66206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8492:404, offset: 0x01bf25ff, size: 100 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = env0_2.useMemo(_fun66207, [a0]);
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([EmojiStore], _fun66208);
|
||||
}
|
||||
|
||||
function _fun66207() { // fn#66207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8492:455, offset: 0x01bf2663, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return env1_4.exec(env0_0)?.[3];
|
||||
}
|
||||
|
||||
function _fun66208() { // fn#66208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8492:551, offset: 0x01bf2690, size: 40 bytes, params: 1, frame: 12
|
||||
const value2 = null;
|
||||
return value2 == env0_1 ? value2 : EmojiStore.getCustomEmojiById(env0_1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 8626; source: modules/emojis/useTrackOpenPopout.tsx; dependencies: [31, 1379, 1934, 1881, 661, 4863, 4594, 8530, 683, 2] */
|
||||
function _fun68067(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8811:6, offset: 0x01c3d9d9, size: 197 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const env0_6 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiInteractionPoint;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/useTrackOpenPopout.tsx');
|
||||
exports.useTrackOpenPopout = useTrackOpenPopout;
|
||||
}
|
||||
|
||||
function useTrackOpenPopout({emojiId, currentGuildId, popoutData, nonce, demoMode}) { // fn#68068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8811:275, offset: 0x01c3da9e, size: 185 bytes, params: 2, frame: 23
|
||||
const binding = env0_3;
|
||||
const useRef = binding.useRef;
|
||||
const object2 = {guild_id: currentGuildId, emoji_id: emojiId};
|
||||
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const collectChannelAnalyticsMetadata = appAnalyticsUtilsModule.collectChannelAnalyticsMetadata;
|
||||
const getChannel = ChannelStore.getChannel;
|
||||
const getChannelId = SelectedChannelStore.getChannelId;
|
||||
copyDataProperties(object2, Reflect.apply(collectChannelAnalyticsMetadata, appAnalyticsUtilsModule,
|
||||
[Reflect.apply(getChannel, ChannelStore, [Reflect.apply(getChannelId, SelectedChannelStore,
|
||||
[currentGuildId])])]), currentGuildId);
|
||||
const current = Reflect.apply(useRef, binding, [object2]).current;
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun68069);
|
||||
return current;
|
||||
}
|
||||
|
||||
function _fun68069() { // fn#68069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8811:480, offset: 0x01c3db57, size: 166 bytes, params: 1, frame: 18
|
||||
var analyticsType;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var OPEN_POPOUT;
|
||||
var object2;
|
||||
let value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const emojiActionCreatorsModule = require(8530) /* metro dependency 8530: EmojiActionCreators */;
|
||||
const initiateEmojiInteraction = emojiActionCreatorsModule.initiateEmojiInteraction;
|
||||
const TrackOpenPopoutUsed = EmojiInteractionPoint.TrackOpenPopoutUsed;
|
||||
Reflect.apply(initiateEmojiInteraction, emojiActionCreatorsModule, [TrackOpenPopoutUsed]);
|
||||
if (!demoMode) {
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
||||
object2 = {};
|
||||
analyticsType = popoutData == null ? value2 : popoutData.analyticsType;
|
||||
value = analyticsType != null;
|
||||
object2.type = value ? analyticsType : 'Standard Emoji Popout';
|
||||
object2.nonce = nonce;
|
||||
copyDataProperties(object2, current, value);
|
||||
Reflect.apply(track, defaultImport, [OPEN_POPOUT, object2]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
/* Metro module 8202; source: modules/emojis/utils/EmojiColorUtils.tsx; dependencies: [4000, 4001, 674, 7171, 2] */
|
||||
function _fun65736(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8387:6, offset: 0x01bdbcd2, size: 120 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const closure = buildPlatformedThemedEmojiColorPalette;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/utils/EmojiColorUtils.tsx');
|
||||
exports.buildPlatformedThemedEmojiColorPalette = closure;
|
||||
exports.buildEmojiColorPalette = buildEmojiColorPalette;
|
||||
}
|
||||
|
||||
function buildPlatformedThemedEmojiColorPalette({colors, saturationFactor, shouldProcessMobileColors}) { // fn#65737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8387:159, offset: 0x01bdbd4a, size: 989 bytes, params: 2, frame: 33
|
||||
var r16;
|
||||
var r13;
|
||||
var r6;
|
||||
var saturation;
|
||||
var r9;
|
||||
var r4;
|
||||
var colorByHsv;
|
||||
var string;
|
||||
var moduleValue2;
|
||||
var value7;
|
||||
var moduleValue3;
|
||||
var getAccessibleForegroundColor;
|
||||
var defaultImport2;
|
||||
var colorLightnessAdjusted;
|
||||
var toHexString;
|
||||
var moduleValue5;
|
||||
var defaultImport4;
|
||||
var colorLightnessAdjusted2;
|
||||
var moduleValue7;
|
||||
var value12;
|
||||
var moduleValue8;
|
||||
var value13;
|
||||
var object3;
|
||||
var value16;
|
||||
var object5;
|
||||
let value = undefined;
|
||||
saturationFactor = saturationFactor === value ? 1 : saturationFactor;
|
||||
shouldProcessMobileColors = !(shouldProcessMobileColors === value) && shouldProcessMobileColors;
|
||||
let object6 = {colors: colors, saturationFactor: saturationFactor};
|
||||
colors = object6.colors;
|
||||
saturationFactor = object6.saturationFactor;
|
||||
saturationFactor = saturationFactor === value ? 1 : saturationFactor;
|
||||
if (colors == null) {
|
||||
r4 = null;
|
||||
} else if (colors.length < 1) {
|
||||
r4 = null;
|
||||
} else {
|
||||
colorByHsv = (require(4000) /* metro dependency 4000: ColorUtils */).findColorByHsv(colors);
|
||||
string = (importDefault(4001) /* metro dependency 4001: Color */).parseString(colorByHsv);
|
||||
if (string == null) {
|
||||
r4 = null;
|
||||
} else {
|
||||
moduleValue2 = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
value7 = moduleValue2.rawRgbToHsl(string.red, string.blue, string.green);
|
||||
moduleValue3 = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
getAccessibleForegroundColor = moduleValue3.getAccessibleForegroundColor;
|
||||
object6 = {};
|
||||
defaultImport2 = importDefault(674) /* metro dependency 674 */;
|
||||
colorLightnessAdjusted = (require(4000) /* metro dependency 4000: ColorUtils */).getColorLightnessAdjusted(string,
|
||||
|
||||
|
||||
0.6, true);
|
||||
toHexString = colorLightnessAdjusted.toHexString;
|
||||
object6.foreground = defaultImport2(Reflect.apply(toHexString, colorLightnessAdjusted, []));
|
||||
object6.background = (importDefault(674) /* metro dependency 674 */)('#ffffff');
|
||||
object6.ratio = 3;
|
||||
object6.saturationFactor = saturationFactor;
|
||||
r16 = Reflect.apply(getAccessibleForegroundColor, moduleValue3, [object6]) ?? string;
|
||||
moduleValue5 = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
getAccessibleForegroundColor = moduleValue5.getAccessibleForegroundColor;
|
||||
object6 = {};
|
||||
defaultImport4 = importDefault(674) /* metro dependency 674 */;
|
||||
colorLightnessAdjusted2 = (require(4000) /* metro dependency 4000: ColorUtils */).getColorLightnessAdjusted(string,
|
||||
|
||||
|
||||
0.6, false);
|
||||
toHexString = colorLightnessAdjusted2.toHexString;
|
||||
object6.foreground = defaultImport4(Reflect.apply(toHexString, colorLightnessAdjusted2, []));
|
||||
object6.background = (importDefault(674) /* metro dependency 674 */)('#36393e');
|
||||
object6.ratio = 5;
|
||||
object6.saturationFactor = saturationFactor;
|
||||
r13 = Reflect.apply(getAccessibleForegroundColor, moduleValue5, [object6]) ?? string;
|
||||
moduleValue7 = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
getAccessibleForegroundColor = moduleValue7.getAccessibleForegroundColor;
|
||||
object6 = {};
|
||||
object6.foreground = (importDefault(674) /* metro dependency 674 */)(colorByHsv);
|
||||
object6.background = (importDefault(674) /* metro dependency 674 */)('#ffffff');
|
||||
object6.ratio = 7;
|
||||
object6.saturationFactor = saturationFactor;
|
||||
value12 = Reflect.apply(getAccessibleForegroundColor, moduleValue7, [object6]);
|
||||
moduleValue8 = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
getAccessibleForegroundColor = moduleValue8.getAccessibleForegroundColor;
|
||||
object6 = {foreground: (importDefault(674) /* metro dependency 674 */)(colorByHsv),
|
||||
background: (importDefault(674) /* metro dependency 674 */)('#36393e'), ratio: 7,
|
||||
saturationFactor: saturationFactor};
|
||||
value13 = Reflect.apply(getAccessibleForegroundColor, moduleValue8, [object6]);
|
||||
object6 = {};
|
||||
object3 = {};
|
||||
r6 = value12 == null ? value : value12.hex();
|
||||
object3.accentColor = r6;
|
||||
object3.backgroundColor = (require(4000) /* metro dependency 4000: ColorUtils */).getSaturatedColorHex({colorRGB: r16,
|
||||
|
||||
|
||||
saturationFactor: saturationFactor});
|
||||
r6 = string == null ? value : string.toHexString();
|
||||
object3.highlightColor = r6;
|
||||
saturation = value7 == null ? value : value7.saturation;
|
||||
value16 = 0.1;
|
||||
r9 = saturation < value16 ? 0.35 : value16;
|
||||
object3.opacity = r9;
|
||||
object6.LIGHT = object3;
|
||||
object5 = {};
|
||||
r9 = value13 == null ? value : value13.hex();
|
||||
object5.accentColor = r9;
|
||||
object5.backgroundColor = (require(4000) /* metro dependency 4000: ColorUtils */).getSaturatedColorHex({colorRGB: r13,
|
||||
|
||||
|
||||
saturationFactor: saturationFactor});
|
||||
object5.highlightColor = string == null ? value : string.toHexString();
|
||||
saturation = value7 == null ? value : value7.saturation;
|
||||
object5.opacity = saturation < value16 ? 0.5 : 0.2;
|
||||
object6.DARK = object5;
|
||||
r4 = object6;
|
||||
}
|
||||
}
|
||||
value = importDefault(7171) /* metro dependency 7171: EmojiUtilsPlatformedNative */;
|
||||
return value.applyPlatformToThemedEmojiColorPalette({palette: r4,
|
||||
shouldProcessMobileColors: shouldProcessMobileColors});
|
||||
}
|
||||
|
||||
function buildEmojiColorPalette(a0, a1, a2) { // fn#65738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8387:1774, offset: 0x01bdc127, size: 192 bytes, params: 4, frame: 14
|
||||
if (a0 == null) {
|
||||
return null;
|
||||
}
|
||||
if (a0.length < 1) {
|
||||
return null;
|
||||
}
|
||||
const buildPlatformedThemedEmojiColorPaletteBinding = buildPlatformedThemedEmojiColorPalette;
|
||||
const value = undefined;
|
||||
const platformedThemedEmojiColorPalette = buildPlatformedThemedEmojiColorPaletteBinding({colors: a0,
|
||||
saturationFactor: a1});
|
||||
const value2 = platformedThemedEmojiColorPalette == null;
|
||||
const r2 = a2 ? value2 ? value : platformedThemedEmojiColorPalette.DARK : value2 ? value : platformedThemedEmojiColorPalette.LIGHT;
|
||||
return {backgroundColor: r2 == null ? value : r2.backgroundColor, accentColor: r2 == null ? value : r2.accentColor,
|
||||
highlightColor: r2 == null ? value : r2.highlightColor, opacity: (r2 == null ? value : r2.opacity) ?? 0.15};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,164 @@
|
||||
/* Metro module 6546; source: modules/emojis/utils/dedupeEmojisByNameOrId.tsx; dependencies: [3797, 2] */
|
||||
function _fun51629(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6724:6, offset: 0x0123d547, size: 115 bytes, params: 8, frame: 17
|
||||
const _arrayLikeToArray_51632 = 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});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/utils/dedupeEmojisByNameOrId.tsx');
|
||||
exports.default = _default_51633;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_51630(a0, a1) { // fn#51630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6724:46, offset: 0x0123d5ba, size: 370 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 _fun51631;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_51632(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_51632(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_51632(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun51631;
|
||||
}
|
||||
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 _default_51633(a0) { // fn#51633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6724:1019, offset: 0x0123d72c, size: 177 bytes, params: 2, frame: 21
|
||||
var r3;
|
||||
var r11;
|
||||
var value5;
|
||||
var id;
|
||||
var set;
|
||||
var defaultImport;
|
||||
var convertSurrogateToBase;
|
||||
var surrogates;
|
||||
var value6;
|
||||
var name;
|
||||
var value7;
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
const value3 = _createForOfIteratorHelperLoose_51630(a0);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r3 = value4;
|
||||
while (true) {
|
||||
value5 = r3.value;
|
||||
id = value5.id;
|
||||
if (id == null) {
|
||||
defaultImport = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
|
||||
convertSurrogateToBase = defaultImport.convertSurrogateToBase;
|
||||
surrogates = value5.surrogates;
|
||||
value6 = Reflect.apply(convertSurrogateToBase, defaultImport, [surrogates]);
|
||||
if (value6 == null) {
|
||||
r11 = value5;
|
||||
continue;
|
||||
}
|
||||
r11 = value6;
|
||||
continue;
|
||||
set = map.set;
|
||||
name = r11.name;
|
||||
Reflect.apply(set, map, [name, r11]);
|
||||
} else {
|
||||
set = map.set;
|
||||
id = value5.id;
|
||||
Reflect.apply(set, map, [id, value5]);
|
||||
}
|
||||
value7 = value3();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 11208; source: modules/emojis/utils/getEmojiText.tsx; dependencies: [2] */
|
||||
function _fun85654(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11394:6, offset: 0x01f76d30, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/emojis/utils/getEmojiText.tsx');
|
||||
exports.default = function(a0) {
|
||||
return a0.id != null ? ':' + (a0.uniqueName == null ? a0.name : a0.uniqueName !== '' ? a0.uniqueName : a0.name) + ':' : a0.surrogates ?? ':' + (a0.uniqueName == null ? a0.name : a0.uniqueName !== '' ? a0.uniqueName : a0.name) + ':';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user