Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,87 @@
|
||||
/* Metro module 7079; source: modules/channel_text_area/slate/SlateUtils.tsx; dependencies: [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;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
Object = global.Object;
|
||||
const freeze = Object.freeze;
|
||||
const Object2 = global.Object;
|
||||
const freeze2 = Object2.freeze;
|
||||
object = {type: 'line'};
|
||||
const Object3 = global.Object;
|
||||
const freeze3 = Object3.freeze;
|
||||
const Object4 = global.Object;
|
||||
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');
|
||||
exports.createEmptyState = function() {
|
||||
return {textValue: '', richValue: [{type: 'line', children: [{text: ''}]}]};
|
||||
};
|
||||
exports.createState = function(a0) {
|
||||
var object = {textValue: a0};
|
||||
object.richValue = toRichValue(a0);
|
||||
return object;
|
||||
};
|
||||
exports.toRichValue = closure;
|
||||
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;
|
||||
}
|
||||
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 emoji;
|
||||
const type = a0.type;
|
||||
if (type === 'userMention') {
|
||||
return {type: 'userMention', userId: a0.userId};
|
||||
}
|
||||
if (type === 'channelMention') {
|
||||
return {type: 'channelMention', channelId: a0.channelId};
|
||||
}
|
||||
if (type === 'soundboard') {
|
||||
return {type: 'soundboard', guildId: a0.guildId, soundId: a0.soundId};
|
||||
}
|
||||
if (type === 'roleMention') {
|
||||
return {type: 'roleMention', roleId: a0.roleId};
|
||||
}
|
||||
if (type === 'textMention') {
|
||||
return {type: 'textMention', text: a0.name};
|
||||
}
|
||||
if (type === 'emoji') {
|
||||
object2 = {type: 'emoji'};
|
||||
emoji = a0.emoji;
|
||||
object2.name = emoji.name;
|
||||
emoji = a0.emoji;
|
||||
object2.surrogate = emoji.surrogate;
|
||||
return object2;
|
||||
}
|
||||
if (type === 'customEmoji') {
|
||||
object2 = {type: 'customEmoji'};
|
||||
emoji = a0.emoji;
|
||||
object2.emojiId = emoji.emojiId;
|
||||
emoji = a0.emoji;
|
||||
object2.name = emoji.name;
|
||||
emoji = a0.emoji;
|
||||
object2.animated = emoji.animated;
|
||||
return object2;
|
||||
}
|
||||
if (type === 'testInlineVoid') {
|
||||
throw new global.Error('Unable to convert test types');
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user