Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,46 @@
|
||||
/* Metro module 11859; source: modules/channel_text_area/native/ChannelAutocompleteAnalytics.tsx; dependencies: [661, 683, 4863, 2] */
|
||||
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');
|
||||
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 = 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]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 11086; source: modules/channel_text_area/native/ChannelAutocompleteConstants.tsx; dependencies: [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');
|
||||
exports.AutocompleteTypes = {MENTIONS: 'MENTIONS', CHANNELS: 'CHANNELS', EMOJIS_AND_STICKERS: 'EMOJIS_AND_STICKERS',
|
||||
SLASHES: 'SLASHES', SLASHES_DISCOVERY: 'SLASHES_DISCOVERY', CHOICES: 'CHOICES'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 11856; source: modules/channel_text_area/native/ChannelAutocompleteEmojiUpsell.tsx; dependencies: [31, 27, 1881, 33, 4501, 697, 5475, 1423, 4573, 1244, 2] */
|
||||
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 */;
|
||||
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,
|
||||
'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 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');
|
||||
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}
|
||||
</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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user