Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,170 @@
|
||||
/* Metro module 8339; source: utils/ChangeLogUtils.tsx; dependencies: [3855, 8340, 6629, 6644, 6645, 6622, 2] */
|
||||
function _fun66399(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8524:6, offset: 0x01bf9fea, size: 412 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
let env0_0 = require;
|
||||
const parseWithClassNameExtraction = function({transformUpperCase = false}) {
|
||||
var env0_0 = transformUpperCase;
|
||||
return _fun66401;
|
||||
};
|
||||
const closure = function(a0) {
|
||||
var object = {};
|
||||
var defaultRules_2Binding = defaultRules_2;
|
||||
copyDataProperties(object, defaultRules_2Binding(a0), defaultRules_2Binding);
|
||||
return object;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (importDefault(3855) /* metro dependency 3855 */).defaultRules.lheading;
|
||||
const env0_4 = (importDefault(3855) /* metro dependency 3855 */).defaultRules.heading;
|
||||
const env0_5 = (importDefault(3855) /* metro dependency 3855 */).defaultRules.link;
|
||||
const env0_6 = (importDefault(3855) /* metro dependency 3855 */).defaultRules.image;
|
||||
const env0_7 = (importDefault(3855) /* metro dependency 3855 */).defaultRules.list;
|
||||
const env0_8 = (importDefault(3855) /* metro dependency 3855 */).defaultRules.blockQuote;
|
||||
const env0_9 = (importDefault(3855) /* metro dependency 3855 */).defaultRules.paragraph;
|
||||
const env0_10 = RegExp('\\{(.+?)}', '');
|
||||
const env0_11 = RegExp('^\\$(\\w+?)\\$', '');
|
||||
object2 = {getDefaultRules: closure, getSpecialRules: function(a0) {
|
||||
var object = {};
|
||||
var defaultRules_2Binding = defaultRules_2;
|
||||
copyDataProperties(object, specialRules(a0), copyDataProperties(object, defaultRules_2Binding(a0),
|
||||
defaultRules_2Binding));
|
||||
return object;
|
||||
}, getMessageRules: function(a0) {
|
||||
var object = {};
|
||||
var messageRulesBinding = messageRules;
|
||||
copyDataProperties(object, messageRulesBinding(a0), messageRulesBinding);
|
||||
return object;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/ChangeLogUtils.tsx');
|
||||
exports.default = object2;
|
||||
exports.renderChangelogMessageMarkup = renderChangelogMessageMarkup;
|
||||
}
|
||||
|
||||
function parseWithClassNameExtraction({transformUpperCase}) { // fn#66400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8524:340, offset: 0x01bfa186, size: 32 bytes, params: 2, frame: 3
|
||||
if (transformUpperCase !== undefined) {
|
||||
}
|
||||
return _fun66401;
|
||||
}
|
||||
|
||||
function defaultRules(a0) { // fn#66402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8524:578, offset: 0x01bfa249, size: 1077 bytes, params: 2, frame: 20
|
||||
var r10;
|
||||
var r1;
|
||||
const object7 = {};
|
||||
copyDataProperties(object7, (require(8340) /* metro dependency 8340: ChangeLogUtils */).baseRules, r10);
|
||||
const object11 = {};
|
||||
copyDataProperties(object11, image, r10);
|
||||
const customRules = (require(8340) /* metro dependency 8340: ChangeLogUtils */).customRules;
|
||||
if (typeof customRules.image === 'function') {
|
||||
r1 = customRules.image(a0);
|
||||
r10 = customRules;
|
||||
} else {
|
||||
r1 = customRules.image;
|
||||
}
|
||||
copyDataProperties(object11, r1, r10);
|
||||
object7['image'] = object11;
|
||||
const object12 = {};
|
||||
copyDataProperties(object12, link, r10);
|
||||
if (typeof customRules.link === 'function') {
|
||||
r1 = customRules.link(a0);
|
||||
r10 = customRules;
|
||||
} else {
|
||||
r1 = customRules.link;
|
||||
}
|
||||
copyDataProperties(object12, r1, r10);
|
||||
object7['link'] = object12;
|
||||
const object13 = {};
|
||||
copyDataProperties(object13, list, r10);
|
||||
if (typeof customRules.list === 'function') {
|
||||
r1 = customRules.list(a0);
|
||||
r10 = customRules;
|
||||
} else {
|
||||
r1 = customRules.list;
|
||||
}
|
||||
copyDataProperties(object13, r1, r10);
|
||||
object7['list'] = object13;
|
||||
const object14 = {};
|
||||
object14.order = (importDefault(6629) /* metro dependency 6629: MarkupTextRule */).order;
|
||||
object14.match = match_66403;
|
||||
object14.parse = function(a0, a1, {interpolations}) {
|
||||
interpolations = interpolations[a0[1]];
|
||||
return interpolations == null ? {type: 'text', content: a0[0]} : {type: 'interpolation',
|
||||
renderer: interpolations};
|
||||
};
|
||||
object14.react = function(a0) {
|
||||
return a0.renderer();
|
||||
};
|
||||
object7['interpolation'] = object14;
|
||||
const object15 = {};
|
||||
copyDataProperties(object15, lheading, importDefault);
|
||||
object15['parse'] = parseWithClassNameExtraction({transformUpperCase: true});
|
||||
copyDataProperties(object15,
|
||||
typeof customRules.lheading === 'function' ? customRules.lheading(a0) : customRules.lheading, true);
|
||||
object7['lheading'] = object15;
|
||||
const object16 = {};
|
||||
copyDataProperties(object16, heading, true);
|
||||
copyDataProperties(object16,
|
||||
typeof customRules.heading === 'function' ? customRules.heading(a0) : customRules.heading, true);
|
||||
object7['heading'] = object16;
|
||||
const object17 = {};
|
||||
copyDataProperties(object17, blockQuote, true);
|
||||
copyDataProperties(object17,
|
||||
typeof customRules.blockQuote === 'function' ? customRules.blockQuote(a0) : customRules.blockQuote, true);
|
||||
object7['blockQuote'] = object17;
|
||||
const object18 = {};
|
||||
copyDataProperties(object18, paragraph, true);
|
||||
copyDataProperties(object18,
|
||||
typeof customRules.paragraph === 'function' ? customRules.paragraph(a0) : customRules.paragraph, true);
|
||||
object7['paragraph'] = object18;
|
||||
return object7;
|
||||
}
|
||||
|
||||
function specialRules(a0) { // fn#66406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8524:1748, offset: 0x01bfa6ef, size: 175 bytes, params: 2, frame: 16
|
||||
const object = {};
|
||||
copyDataProperties(object, lheading, undefined);
|
||||
object['parse'] = parseWithClassNameExtraction({transformUpperCase: false});
|
||||
const customRules = (require(8340) /* metro dependency 8340: ChangeLogUtils */).customRules;
|
||||
copyDataProperties(object,
|
||||
typeof customRules.lheading === 'function' ? customRules.lheading(a0) : customRules.lheading, 1);
|
||||
return {lheading: object};
|
||||
}
|
||||
|
||||
function messageRules(a0) { // fn#66407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8524:1969, offset: 0x01bfa79e, size: 140 bytes, params: 2, frame: 15
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, defaultRules_2(a0), undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, (importDefault(3855) /* metro dependency 3855 */).defaultRules.newline, object4);
|
||||
object3['newline'] = object4;
|
||||
object3['text'] = importDefault(6629) /* metro dependency 6629: MarkupTextRule */;
|
||||
object3['list'] = importDefault(6644) /* metro dependency 6644: MarkupListRule */;
|
||||
object3['subtext'] = importDefault(6645) /* metro dependency 6645: MarkupSubtextRule */;
|
||||
return object3;
|
||||
}
|
||||
|
||||
function renderChangelogMessageMarkup({content}, a1, a2) { // fn#66411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8524:2404, offset: 0x01bfa88e, size: 108 bytes, params: 4, frame: 18
|
||||
const object2 = {'hasSpoilerEmbeds': false, 'hasBailedAst': false};
|
||||
const defaultImport = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
|
||||
object2.content = defaultImport.reactParserFor(getDefaultRules(a1))(content, false,
|
||||
a2 != null ? {changeLog: a2} : {});
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun66401(a0, a1, a2) { // fn#66401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8524:411, offset: 0x01bfa1a6, size: 163 bytes, params: 4, frame: 18
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_10;
|
||||
const value2 = 1;
|
||||
const value3 = binding.exec(a0[value2]);
|
||||
const value4 = a0[value2].replace(env1_10, '');
|
||||
const r5 = transformUpperCase ? value4.toUpperCase() : value4;
|
||||
const object2 = {};
|
||||
const value7 = null;
|
||||
object2.className = value7 != value3 ? value3[value2] : value7;
|
||||
const value8 = 2;
|
||||
object2.level = a0[value8] !== '=' ? value8 : value2;
|
||||
object2.content = (importDefault(3855) /* metro dependency 3855 */).parseInline(a1, r5, a2);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function defaultRulesMatch(a0) { // fn#66403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8524:1012, owner: defaultRules.match, offset: 0x01bfa67e, size: 23 bytes, params: 2, frame: 11
|
||||
return env1_11.exec(a0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user