140 lines
6.9 KiB
JavaScript
140 lines
6.9 KiB
JavaScript
/* Metro module 1297; source: unknown; dependencies: [6, 7, 15, 17, 18, 57, 31, 1286] */
|
|
import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import * as PossibleConstructorReturnModule from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import * as Module00017Module from './module-00017.js'; /* Metro dependency 17 */
|
|
import * as InheritsModule from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as Module00057Module from './module-00057.js'; /* Metro dependency 57 */
|
|
import * as Module01286Module from './module-01286.js'; /* Metro dependency 1286 */
|
|
|
|
function _fun14316(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#14316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:6, offset: 0x00e019c2, size: 315 bytes, params: 8, frame: 21
|
|
let env0_0 = require;
|
|
const createReactBuilder = function(a0) {
|
|
var env0_0 = a0;
|
|
var FormatBuilder = require(dependencyMap[7]).FormatBuilder;
|
|
return _fun14321(FormatBuilder);
|
|
};
|
|
const closure = function(a0, a1, a2) {
|
|
var r0;
|
|
var value = a0;
|
|
if (typeof value === 'string') {
|
|
r0 = value;
|
|
} else {
|
|
value = this.bindFormatValues(a2, value, a1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const closure2 = function(a0) {
|
|
var object = {};
|
|
object.format = formatReact;
|
|
object.builder = createReactBuilder(a0);
|
|
return object;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.DEFAULT_REACT_RICH_TEXT_ELEMENTS = undefined;
|
|
exports.reactFormatter = undefined;
|
|
exports.formatReact = closure;
|
|
exports.makeReactFormatter = closure2;
|
|
exports.DEFAULT_REACT_RICH_TEXT_ELEMENTS = {$b: function(a0, a1) {
|
|
return createElement('strong', {key: a1}, a0);
|
|
}, $i: function(a0, a1) {
|
|
return createElement('em', {key: a1}, a0);
|
|
}, $del: function(a0, a1) {
|
|
return createElement('del', {key: a1}, a0);
|
|
}, $code: function(a0, a1) {
|
|
return createElement('code', {key: a1}, a0);
|
|
}, $link: $link_14333, $p: function(a0, a1) {
|
|
return createElement('p', {key: a1}, a0);
|
|
}};
|
|
const DEFAULT_REACT_RICH_TEXT_ELEMENTS = exports.DEFAULT_REACT_RICH_TEXT_ELEMENTS;
|
|
exports.reactFormatter = closure2(DEFAULT_REACT_RICH_TEXT_ELEMENTS);
|
|
function _isNativeReflectConstruct_14317() { // fn#14317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:108, offset: 0x00e01afd, 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_14317_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function createReactBuilder(a0) { // fn#14320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:534, offset: 0x00e01b5b, size: 52 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
const FormatBuilder = (Module01286Module).FormatBuilder;
|
|
return _fun14321(FormatBuilder);
|
|
function _fun14321(a0) { // fn#14321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:572, offset: 0x00e01b8f, size: 139 bytes, params: 2, frame: 16
|
|
const _class2 = _class;
|
|
env1_6(_class2, a0);
|
|
return env1_3(_class2, [{key: 'pushRichTextTag', value: value_14323}, {key: 'pushLiteralText', value: function(a0) {
|
|
if (typeof this.result[this.result.length - 1] === 'string') {
|
|
this.result[this.result.length - 1] += a0;
|
|
} else {
|
|
this.result.push(a0);
|
|
}
|
|
}}, {key: 'pushObject', value: function(a0) {
|
|
this.result.push(a0);
|
|
}}, {key: 'finish', value: function() {
|
|
return this.result;
|
|
}}]);
|
|
function _class() { // fn#14322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:584, offset: 0x00e01c1a, size: 131 bytes, params: 1, frame: 20
|
|
let value = environment.__proto__.__proto__;
|
|
const binding = env2_2;
|
|
const _classBinding = _class;
|
|
binding(this, _classBinding);
|
|
const value3 = env2_5(_classBinding);
|
|
value = env2_4(this, _isNativeReflectConstruct_14317() ? global.Reflect.construct(value3, arguments,
|
|
env2_5(this).constructor) : value3.apply(this, arguments));
|
|
value._nodeKey = 0;
|
|
value.result = [];
|
|
return value;
|
|
}
|
|
|
|
function value_14323(a0, a1, a2) { // fn#14323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:872, offset: 0x00e01c9d, size: 109 bytes, params: 4, frame: 19
|
|
const result = this.result;
|
|
const push = result.push;
|
|
let value = environment.__proto__;
|
|
const binding = env1_0;
|
|
const keyPrefix = this.context.keyPrefix;
|
|
const _nodeKey = this._nodeKey;
|
|
value = typeof _nodeKey === 'bigint' ? _nodeKey : +_nodeKey;
|
|
this._nodeKey = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
value = '' + keyPrefix + '.tag-' + value;
|
|
Reflect.apply(push, result, [binding[a0](a1, value, a2)]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function $link_14333(a0, a1, a2) { // fn#14333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1424:1722, offset: 0x00e01e41, size: 61 bytes, params: 4, frame: 15
|
|
return createElement('a', {href: Module00057Module(a2, 1)[0], key: a1}, a0);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun14316, 1297, [6, 7, 15, 17, 18, 57, 31,
|
|
1286]) /* metro module 1297, dependencies: [6, 7, 15, 17, 18, 57, 31, 1286] */;
|