This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,4 +1,11 @@
/* Metro module 11541; source: modules/channel_text_area/ChatInputContentCallbacks.tsx; dependencies: [57, 31, 6875, 6903, 6890, 7875, 22, 2] */
import Module00022 from '../../by-id/module-00022.js'; /* Metro dependency 22 */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import ChannelMemberStore from '../../stores/ChannelMemberStore.tsx'; /* Metro dependency 6875 */
import UseMessageMaxLength from '../messages/useMessageMaxLength.tsx'; /* Metro dependency 7875 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun88436(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:6, offset: 0x01fe2fac, size: 193 bytes, params: 8, frame: 20
const env0_0 = require;
const areMemberGroupsHydrated = function(a0) {
@@ -16,96 +23,96 @@ function _fun88436(global, require, importDefault, importAll, module, exports, d
}
return r0;
};
const closure = tryUpdateSubscriptionForHereMention;
const tryUpdateSubscriptionForHereMention2 = tryUpdateSubscriptionForHereMention;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const channelMemberStore = importDefault(6875) /* metro dependency 6875: ChannelMemberStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel_text_area/ChatInputContentCallbacks.tsx');
exports.tryUpdateSubscriptionForHereMention = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/channel_text_area/ChatInputContentCallbacks.tsx');
exports.tryUpdateSubscriptionForHereMention = tryUpdateSubscriptionForHereMention2;
exports.useHereMentionCallback = useHereMentionCallback;
}
function tryUpdateSubscriptionForHereMention(a0, a1, a2, a3) { // fn#88438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:249, offset: 0x01fe30b9, size: 176 bytes, params: 5, frame: 21
var r2;
var r1;
var r0;
var value8;
var value;
const areMemberGroupsHydratedBinding = areMemberGroupsHydrated;
const getProps = ChannelMemberStore.getProps;
const value2 = areMemberGroupsHydratedBinding(Reflect.apply(getProps, ChannelMemberStore, [a2, a3]).groups);
if (value2) {
r0 = !!value2;
} else {
r2 = a0.length < 5 || a0.length > a1;
if (r2) {
r1 = !r2;
function tryUpdateSubscriptionForHereMention(a0, a1, a2, a3) { // fn#88438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:249, offset: 0x01fe30b9, size: 176 bytes, params: 5, frame: 21
var r2;
var r1;
var r0;
var value8;
var value;
const areMemberGroupsHydratedBinding = areMemberGroupsHydrated;
const channelMemberStoreBinding = ChannelMemberStore;
const getProps = channelMemberStoreBinding.getProps;
const value2 = areMemberGroupsHydratedBinding(Reflect.apply(getProps, channelMemberStoreBinding, [a2, a3]).groups);
if (value2) {
r0 = !!value2;
} else {
value8 = a0.indexOf(env0_6) !== -1;
if (value8) {
value = require(6903) /* metro dependency 6903: GuildSubscriptionsActionCreators */;
value.subscribeChannel(a2, a3,
(require(6890) /* metro dependency 6890: GuildChannelSubscriptions */).DEFAULT_RANGES);
value = true;
r2 = value;
r2 = a0.length < 5 || a0.length > a1;
if (r2) {
r1 = !r2;
} else {
r2 = value8;
value8 = a0.indexOf(env0_6) !== -1;
if (value8) {
value = require(6903) /* metro dependency 6903: GuildSubscriptionsActionCreators */;
value.subscribeChannel(a2, a3,
(require(6890) /* metro dependency 6890: GuildChannelSubscriptions */).DEFAULT_RANGES);
value = true;
r2 = value;
} else {
r2 = value8;
}
r1 = r2;
}
r1 = r2;
r0 = r1;
}
r0 = r1;
return r0;
}
return r0;
}
function useHereMentionCallback(a0, a1, a2) { // fn#88439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:654, offset: 0x01fe3169, size: 188 bytes, params: 4, frame: 19
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const value2 = (importDefault(7875) /* metro dependency 7875: useMessageMaxLength */)();
const env0_3 = value2;
const binding = env0_4;
const value = env0_3(binding.useState(false), 2);
const property = value[0];
const env0_5 = value[1];
binding.useEffect(_fun88442, [property, binding.useMemo(_fun88440, [value2, a1, a2]), a0, a1, a2]);
}
function useHereMentionCallback(a0, a1, a2) { // fn#88439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:654, offset: 0x01fe3169, size: 188 bytes, params: 4, frame: 19
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const value2 = (UseMessageMaxLength)();
const env0_3 = value2;
const value = env0_3(ReactModule.useState(false), 2);
const property = value[0];
const env0_5 = value[1];
ReactModule.useEffect(_fun88442, [property, ReactModule.useMemo(_fun88440, [value2, a1, a2]), a0, a1, a2]);
function _fun88440() { // fn#88440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:762, offset: 0x01fe3225, size: 65 bytes, params: 1, frame: 15
var environment;
const value = environment.__proto__;
return (Module00022).debounce(_fun88441, 200, {maxWait: 500});
function _fun88441(a0) { // fn#88441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:784, offset: 0x01fe3266, size: 49 bytes, params: 2, frame: 18
if (tryUpdateSubscriptionForHereMention(a0, env1_3, require, importDefault)) {
env1_5(true);
}
}
function _fun88440() { // fn#88440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:762, offset: 0x01fe3225, size: 65 bytes, params: 1, frame: 15
var environment;
const value = environment.__proto__;
return (importDefault(22) /* metro dependency 22 */).debounce(_fun88441, 200, {maxWait: 500});
}
}
function _fun88442() { // fn#88442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:884, offset: 0x01fe3297, size: 104 bytes, params: 1, frame: 15
const channelMemberStoreBinding = ChannelMemberStore;
const getProps = channelMemberStoreBinding.getProps;
const groups = Reflect.apply(getProps, channelMemberStoreBinding, [require, importDefault]).groups;
if (require == null) {
return undefined;
}
if (areMemberGroupsHydrated(groups)) {
return undefined;
}
if (ReactModule) {
return undefined;
}
env0_0.addListener('text-changed', env0_6);
return _fun88443;
function _fun88443() { // fn#88443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:1001, offset: 0x01fe32ff, size: 43 bytes, params: 1, frame: 13
const binding = env1_0;
const removeListener = binding.removeListener;
const binding2 = env1_6;
Reflect.apply(removeListener, binding, ['text-changed', binding2]);
binding2.cancel();
}
}
function _fun88442() { // fn#88442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:884, offset: 0x01fe3297, size: 104 bytes, params: 1, frame: 15
const getProps = ChannelMemberStore.getProps;
const groups = Reflect.apply(getProps, ChannelMemberStore, [require, importDefault]).groups;
if (require == null) {
return undefined;
}
if (areMemberGroupsHydrated(groups)) {
return undefined;
}
if (env0_4) {
return undefined;
}
env0_0.addListener('text-changed', env0_6);
return _fun88443;
}
function _fun88441(a0) { // fn#88441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:784, offset: 0x01fe3266, size: 49 bytes, params: 2, frame: 18
if (tryUpdateSubscriptionForHereMention(a0, env1_3, require, importDefault)) {
env1_5(true);
}
}
function _fun88443() { // fn#88443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11727:1001, offset: 0x01fe32ff, size: 43 bytes, params: 1, frame: 13
const binding = env1_0;
const removeListener = binding.removeListener;
const binding2 = env1_6;
Reflect.apply(removeListener, binding, ['text-changed', binding2]);
binding2.cancel();
}
global.__d(_fun88436, 11541, [57, 31, 6875, 6903, 6890, 7875, 22,
2]) /* metro module 11541, dependencies: [57, 31, 6875, 6903, 6890, 7875, 22, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,46 +1,49 @@
/* Metro module 6942; source: modules/channel_text_area/compareChannelsByScoreAndPosition.tsx; dependencies: [1379, 661, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun55182(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7120:6, offset: 0x01378225, size: 135 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_1 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel_text_area/compareChannelsByScoreAndPosition.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/channel_text_area/compareChannelsByScoreAndPosition.tsx');
exports.default = compareChannelsByScoreAndPosition;
function getGuildChannelPosition(a0) { // fn#55183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7120:130, offset: 0x013782ac, size: 173 bytes, params: 2, frame: 13
var r0;
if (a0.parent_id == null) {
return a0.type === ChannelTypes.GUILD_CATEGORY ? 1000 * (a0.position + 1) : a0.position;
}
let value = (ChannelStore.getChannel(a0.parent_id)?.position ?? 0) + 1;
const isGuildVocal2 = a0.isGuildVocal();
value = 1000 * value + a0.position;
if (isGuildVocal2) {
value += 500;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function compareChannelsByScoreAndPosition(a0, a1) { // fn#55184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7120:499, offset: 0x01378359, size: 222 bytes, params: 3, frame: 19
if (a0.score !== a1.score) {
return a1.score - a0.score;
}
const getGuildChannelPositionBinding = getGuildChannelPosition;
const record = a0.record;
const value = undefined;
const guildChannelPositionBinding = getGuildChannelPositionBinding(record);
const guildChannelPositionBinding2 = getGuildChannelPositionBinding(a1.record);
if (guildChannelPositionBinding !== guildChannelPositionBinding2) {
return guildChannelPositionBinding - guildChannelPositionBinding2;
}
const r4 = a0.sortable ?? (a0.comparator == null ? value : a0.comparator.toLocaleLowerCase());
const value5 = '';
const r5 = r4 ?? value5;
const r6 = a0.sortable ?? (a1.comparator == null ? value : a1.comparator.toLocaleLowerCase()) ?? value5;
return r5 < r6 ? -1 : r5 > r6 ? 1 : 0;
}
}
function getGuildChannelPosition(a0) { // fn#55183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7120:130, offset: 0x013782ac, size: 173 bytes, params: 2, frame: 13
var r0;
if (a0.parent_id == null) {
return a0.type === ChannelTypes.GUILD_CATEGORY ? 1000 * (a0.position + 1) : a0.position;
}
let value = (ChannelStore.getChannel(a0.parent_id)?.position ?? 0) + 1;
const isGuildVocal2 = a0.isGuildVocal();
value = 1000 * value + a0.position;
if (isGuildVocal2) {
value += 500;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function compareChannelsByScoreAndPosition(a0, a1) { // fn#55184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7120:499, offset: 0x01378359, size: 222 bytes, params: 3, frame: 19
if (a0.score !== a1.score) {
return a1.score - a0.score;
}
const getGuildChannelPositionBinding = getGuildChannelPosition;
const record = a0.record;
const value = undefined;
const guildChannelPositionBinding = getGuildChannelPositionBinding(record);
const guildChannelPositionBinding2 = getGuildChannelPositionBinding(a1.record);
if (guildChannelPositionBinding !== guildChannelPositionBinding2) {
return guildChannelPositionBinding - guildChannelPositionBinding2;
}
const r4 = a0.sortable ?? (a0.comparator == null ? value : a0.comparator.toLocaleLowerCase());
const value5 = '';
const r5 = r4 ?? value5;
const r6 = a0.sortable ?? (a1.comparator == null ? value : a1.comparator.toLocaleLowerCase()) ?? value5;
return r5 < r6 ? -1 : r5 > r6 ? 1 : 0;
}
global.__d(_fun55182, 6942, [1379, 661, 2]) /* metro module 6942, dependencies: [1379, 661, 2] */;
@@ -1,46 +1,47 @@
/* Metro module 11859; source: modules/channel_text_area/native/ChannelAutocompleteAnalytics.tsx; dependencies: [661, 683, 4863, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as AppAnalyticsUtilsModule from '../../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
function _fun90929(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12045:6, offset: 0x0204c8aa, size: 137 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 */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel_text_area/native/ChannelAutocompleteAnalytics.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/channel_text_area/native/ChannelAutocompleteAnalytics.tsx');
exports.iOSTrackAutocompleteOpen = iOSTrackAutocompleteOpen;
exports.iOSTrackAutocompleteSelect = iOSTrackAutocompleteSelect;
function iOSTrackAutocompleteOpen(a0, a1, {numEmojiResults, numStickerResults}) { // fn#90930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12045:247, offset: 0x0204c933, size: 170 bytes, params: 4, frame: 21
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const CHANNEL_AUTOCOMPLETE_OPEN = AnalyticEvents.CHANNEL_AUTOCOMPLETE_OPEN;
const object = {};
copyDataProperties(object, AppAnalyticsUtilsModule.collectChannelAnalyticsMetadata(a1), AppAnalyticsUtilsModule);
copyDataProperties(object, AppAnalyticsUtilsModule.collectGuildAnalyticsMetadata(a1.guild_id), AppAnalyticsUtilsModule);
object['autocomplete_type'] = a0;
object['num_emoji_results'] = numEmojiResults;
object['num_sticker_results'] = numStickerResults;
Reflect.apply(track, defaultImport, [CHANNEL_AUTOCOMPLETE_OPEN, object]);
}
function iOSTrackAutocompleteSelect(a0, a1, {selectionType, stickerId, numEmojiResults, numStickerResults, expressionName, isCustom, isAnimated}) { // fn#90931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12045:558, offset: 0x0204c9dd, size: 249 bytes, params: 4, frame: 21
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const CHANNEL_AUTOCOMPLETE_SELECTED = AnalyticEvents.CHANNEL_AUTOCOMPLETE_SELECTED;
const object = {};
copyDataProperties(object, AppAnalyticsUtilsModule.collectChannelAnalyticsMetadata(a1), AppAnalyticsUtilsModule);
copyDataProperties(object, AppAnalyticsUtilsModule.collectGuildAnalyticsMetadata(a1.guild_id), AppAnalyticsUtilsModule);
object['autocomplete_type'] = a0;
object['selection_type'] = selectionType;
object['sticker_id'] = stickerId;
object['num_emoji_results'] = numEmojiResults;
object['num_sticker_results'] = numStickerResults;
object['emoji_name'] = expressionName;
object['is_custom'] = isCustom;
object['is_animated'] = isAnimated;
Reflect.apply(track, defaultImport, [CHANNEL_AUTOCOMPLETE_SELECTED, object]);
}
}
function iOSTrackAutocompleteOpen(a0, a1, {numEmojiResults, numStickerResults}) { // fn#90930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12045:247, offset: 0x0204c933, size: 170 bytes, params: 4, frame: 21
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const CHANNEL_AUTOCOMPLETE_OPEN = AnalyticEvents.CHANNEL_AUTOCOMPLETE_OPEN;
const object2 = {};
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
copyDataProperties(object2, appAnalyticsUtilsModule.collectChannelAnalyticsMetadata(a1), appAnalyticsUtilsModule);
const moduleValue = appAnalyticsUtilsModule;
copyDataProperties(object2, moduleValue.collectGuildAnalyticsMetadata(a1.guild_id), appAnalyticsUtilsModule);
object2['autocomplete_type'] = a0;
object2['num_emoji_results'] = numEmojiResults;
object2['num_sticker_results'] = numStickerResults;
Reflect.apply(track, defaultImport, [CHANNEL_AUTOCOMPLETE_OPEN, object2]);
}
function iOSTrackAutocompleteSelect(a0, a1, {selectionType, stickerId, numEmojiResults, numStickerResults, expressionName, isCustom, isAnimated}) { // fn#90931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12045:558, offset: 0x0204c9dd, size: 249 bytes, params: 4, frame: 21
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const CHANNEL_AUTOCOMPLETE_SELECTED = AnalyticEvents.CHANNEL_AUTOCOMPLETE_SELECTED;
const object2 = {};
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
copyDataProperties(object2, appAnalyticsUtilsModule.collectChannelAnalyticsMetadata(a1), appAnalyticsUtilsModule);
const moduleValue = appAnalyticsUtilsModule;
copyDataProperties(object2, moduleValue.collectGuildAnalyticsMetadata(a1.guild_id), appAnalyticsUtilsModule);
object2['autocomplete_type'] = a0;
object2['selection_type'] = selectionType;
object2['sticker_id'] = stickerId;
object2['num_emoji_results'] = numEmojiResults;
object2['num_sticker_results'] = numStickerResults;
object2['emoji_name'] = expressionName;
object2['is_custom'] = isCustom;
object2['is_animated'] = isAnimated;
Reflect.apply(track, defaultImport, [CHANNEL_AUTOCOMPLETE_SELECTED, object2]);
}
global.__d(_fun90929, 11859, [661, 683, 4863, 2]) /* metro module 11859, dependencies: [661, 683, 4863, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 11086; source: modules/channel_text_area/native/ChannelAutocompleteConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun84888(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11272:6, offset: 0x01f5adb7, size: 140 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel_text_area/native/ChannelAutocompleteConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/channel_text_area/native/ChannelAutocompleteConstants.tsx');
exports.AutocompleteTypes = {MENTIONS: 'MENTIONS', CHANNELS: 'CHANNELS', EMOJIS_AND_STICKERS: 'EMOJIS_AND_STICKERS',
SLASHES: 'SLASHES', SLASHES_DISCOVERY: 'SLASHES_DISCOVERY', CHOICES: 'CHOICES'};
}
global.__d(_fun84888, 11086, [2]) /* metro module 11086, dependencies: [2] */;
@@ -1,62 +1,71 @@
/* Metro module 11856; source: modules/channel_text_area/native/ChannelAutocompleteEmojiUpsell.tsx; dependencies: [31, 27, 1881, 33, 4501, 697, 5475, 1423, 4573, 1244, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as EmojiConstantsModule from '../../emojis/EmojiConstants.tsx'; /* Metro dependency 1881 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun90893(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12042:6, offset: 0x0204b113, size: 362 bytes, params: 8, frame: 22
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 env0_4 = (require(1881) /* metro dependency 1881: EmojiConstants */).EMOJI_URL_BASE_SIZE;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'position': 'absolute', 'width': 28, 'height': 28, 'padding': 2, 'backgroundColor': null,
const object2 = {'position': 'absolute', 'width': 28, 'height': 28, 'padding': 2, 'backgroundColor': null,
'borderWidth': 2, 'borderRadius': 14, 'borderColor': null, 'alignItems': 'center', 'justifyContent': 'center'};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object.backgroundColor = BACKGROUND_BASE_LOWEST;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object.borderColor = BACKGROUND_SURFACE_HIGH;
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object2.backgroundColor = BACKGROUND_BASE_LOWEST;
const BACKGROUND_SURFACE_HIGH = (Native).colors.BACKGROUND_SURFACE_HIGH;
object2.borderColor = BACKGROUND_SURFACE_HIGH;
const env0_7 = Reflect.apply(createStyles, value, [{upsell: {'flexDirection': 'row', 'alignItems': 'center',
'justifyContent': 'space-between'}, title: {'lineHeight': 16, 'flex': 1}, emojis: {height: 28},
emojiWrapper: object, emoji: {'width': 16, 'height': 16}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel_text_area/native/ChannelAutocompleteEmojiUpsell.tsx');
emojiWrapper: object2, emoji: {'width': 16, 'height': 16}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/channel_text_area/native/ChannelAutocompleteEmojiUpsell.tsx');
exports.default = _default_90894;
}
function _default_90894({results}) { // fn#90894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12042:612, offset: 0x0204b27d, size: 289 bytes, params: 2, frame: 25
const styles = useStyles();
const value2 = results.slice(0, 3);
const value3 = value2.map(_fun90895);
const value4 = 24 * value2.length;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.upsell}>
<Text
style={styles.title}
accessibilityRole="header"
variant="text-sm/medium"
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.uEky42,
{count: results.length})}
</Text>
<View style={[styles.emojis, {width: value4 + 16}]}>
{value3}
function _default_90894({results}) { // fn#90894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12042:612, offset: 0x0204b27d, size: 289 bytes, params: 2, frame: 25
const styles = useStyles();
const value2 = results.slice(0, 3);
const value3 = value2.map(_fun90895);
const value4 = 24 * value2.length;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<View style={styles.upsell}>
<Text
style={styles.title}
accessibilityRole="header"
variant="text-sm/medium"
>
{intl.format((IndexNativeModule).t.uEky42,
{count: results.length})}
</Text>
<View style={[styles.emojis, {width: value4 + 16}]}>
{value3}
</View>
</View>
</View>
);
}
);
function _fun90895(a0, a1) { // fn#90895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12042:662, offset: 0x0204b39e, size: 208 bytes, params: 3, frame: 24
const value = environment.__proto__;
const stylesBinding = styles;
return (
<View style={[stylesBinding.emojiWrapper, {left: 24 * a1}]} key={a0.id}>
{((Component) => <Component style={stylesBinding.emoji} source={{uri: a0.id != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getEmojiURL({id: a0.id,
animated: a0.animated,
size: EMOJI_URL_BASE_SIZE}) : a0.url}} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</View>
);
}
}
function _fun90895(a0, a1) { // fn#90895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12042:662, offset: 0x0204b39e, size: 208 bytes, params: 3, frame: 24
const value = environment.__proto__;
const stylesBinding = styles;
return (
<View style={[stylesBinding.emojiWrapper, {left: 24 * a1}]} key={a0.id}>
{((Component) => <Component style={stylesBinding.emoji} source={{uri: a0.id != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getEmojiURL({id: a0.id,
animated: a0.animated,
size: EMOJI_URL_BASE_SIZE}) : a0.url}} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</View>
);
}
global.__d(_fun90893, 11856, [31, 27, 1881, 33, 4501, 697, 5475, 1423, 4573, 1244,
2]) /* metro module 11856, dependencies: [31, 27, 1881, 33, 4501, 697, 5475, 1423, 4573, 1244, 2] */;
@@ -1,6 +1,8 @@
/* Metro module 7079; source: modules/channel_text_area/slate/SlateUtils.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun56481(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7257:6, offset: 0x013c9291, size: 238 bytes, params: 8, frame: 24
const closure = toRichValue;
const toRichValue2 = toRichValue;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
Object = global.Object;
@@ -14,7 +16,7 @@ function _fun56481(global, require, importDefault, importAll, module, exports, d
object.children = Reflect.apply(freeze3, Object3, [[Object4.freeze({text: ''})]]);
object = [Reflect.apply(freeze2, Object2, [object])];
const env0_0 = Reflect.apply(freeze, Object, [object]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel_text_area/slate/SlateUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/channel_text_area/slate/SlateUtils.tsx');
exports.createEmptyState = function() {
return {textValue: '', richValue: [{type: 'line', children: [{text: ''}]}]};
};
@@ -23,27 +25,27 @@ function _fun56481(global, require, importDefault, importAll, module, exports, d
object.richValue = toRichValue(a0);
return object;
};
exports.toRichValue = closure;
exports.toRichValue = toRichValue2;
exports.voidToOptionValue = voidToOptionValue;
}
function toRichValue(a0) { // fn#56482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7257:195, offset: 0x013c937f, size: 53 bytes, params: 2, frame: 12
var r0;
var value;
if (a0 !== '') {
value = a0.split('\n');
value = value.map(function(a0) {
return {type: 'line', children: [{text: a0}]};
});
r0 = value;
} else {
r0 = env0_0;
function toRichValue(a0) { // fn#56482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7257:195, offset: 0x013c937f, size: 53 bytes, params: 2, frame: 12
var r0;
var value;
if (a0 !== '') {
value = a0.split('\n');
value = value.map(function(a0) {
return {type: 'line', children: [{text: a0}]};
});
r0 = value;
} else {
r0 = env0_0;
}
return r0;
}
return r0;
}
function voidToOptionValue(a0) { // fn#56486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7257:620, offset: 0x013c942a, size: 328 bytes, params: 2, frame: 19
var object2;
var object;
var emoji;
const type = a0.type;
if (type === 'userMention') {
@@ -62,22 +64,22 @@ function voidToOptionValue(a0) { // fn#56486, source: /ci/build/discord/discord/
return {type: 'textMention', text: a0.name};
}
if (type === 'emoji') {
object2 = {type: 'emoji'};
object = {type: 'emoji'};
emoji = a0.emoji;
object2.name = emoji.name;
object.name = emoji.name;
emoji = a0.emoji;
object2.surrogate = emoji.surrogate;
return object2;
object.surrogate = emoji.surrogate;
return object;
}
if (type === 'customEmoji') {
object2 = {type: 'customEmoji'};
object = {type: 'customEmoji'};
emoji = a0.emoji;
object2.emojiId = emoji.emojiId;
object.emojiId = emoji.emojiId;
emoji = a0.emoji;
object2.name = emoji.name;
object.name = emoji.name;
emoji = a0.emoji;
object2.animated = emoji.animated;
return object2;
object.animated = emoji.animated;
return object;
}
if (type === 'testInlineVoid') {
throw new global.Error('Unable to convert test types');
@@ -85,3 +87,4 @@ function voidToOptionValue(a0) { // fn#56486, source: /ci/build/discord/discord/
return null;
}
global.__d(_fun56481, 7079, [2]) /* metro module 7079, dependencies: [2] */;