Files
discord-decomp/sources/by-id/module-01295.jsx
T
2026-07-27 16:20:00 +03:00

96 lines
4.3 KiB
React

/* Metro module 1295; source: unknown; dependencies: [6, 7, 15, 17, 18, 57, 1296] */
function _fun14291(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1422:6, offset: 0x00e01317, size: 283 bytes, params: 8, frame: 20
const closure = formatToMarkdownString;
const env0_0 = require(6) /* metro dependency 6 */;
const env0_1 = require(7) /* metro dependency 7 */;
const env0_2 = require(15) /* metro dependency 15 */;
const env0_3 = require(17) /* metro dependency 17 */;
const env0_4 = require(18) /* metro dependency 18 */;
const env0_5 = require(57) /* metro dependency 57 */;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.markdownFormatter = undefined;
exports.formatToMarkdownString = closure;
object = {$b: function(a0) {
return '**' + a0.join('') + '**';
}, $i: function(a0) {
return '*' + a0.join('') + '*';
}, $del: function(a0) {
return '~~' + a0.join('') + '~~';
}, $code: function(a0) {
return '`' + a0.join('') + '`';
}, $link: $link_14300, $p: function(a0) {
return a0.join('') + '\n\n';
}};
const StringBuilder = (require(1296) /* metro dependency 1296 */).StringBuilder;
exports.markdownFormatter = {format: closure, builder: _fun14302(StringBuilder)};
}
function _isNativeReflectConstruct_14292() { // fn#14292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1422:108, offset: 0x00e01432, 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_14292_isNativeReflectConstruct = function() {
return !!result;
})();
}
function format_14295(a0, a1) { // fn#14295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1422:1193, offset: 0x00e01490, size: 79 bytes, params: 3, frame: 16
var r0;
let value = a0;
if (typeof value === 'string') {
r0 = value;
} else {
value = this.bindFormatValues(arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : env0_7, value,
a1);
r0 = value[0];
}
return r0;
}
function $link_14300(a0, a1, a2) { // fn#14300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1422:657, offset: 0x00e0155f, size: 78 bytes, params: 4, frame: 14
return '[' + a0.join('') + '](' + env0_5(a2, 1)[0] + ')';
}
function _fun14302(a0) { // fn#14302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1422:775, offset: 0x00e015ca, size: 70 bytes, params: 2, frame: 15
const closure = MarkdownBuilder;
env0_4(closure, a0);
return env0_1(closure, [{key: 'pushRichTextTag', value: value_14304}]);
}
function MarkdownBuilder() { // fn#14303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1422:787, offset: 0x00e01610, size: 123 bytes, params: 1, frame: 20
let value = environment.__proto__;
env1_0(this, MarkdownBuilder);
const value3 = env1_3(MarkdownBuilder);
value = env1_2(this, _isNativeReflectConstruct_14292() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
value.result = '';
return value;
}
function value_14304(a0, a1, a2) { // fn#14304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1422:1107, offset: 0x00e0168b, size: 54 bytes, params: 4, frame: 17
this.result = this.result + env1_6[a0](a1, '', a2);
}