26 lines
1.5 KiB
TypeScript
26 lines
1.5 KiB
TypeScript
/* Metro module 8270; source: modules/messages/ApplicationCommands.tsx; dependencies: [57, 2] */
|
|
function _fun66117(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8455:6, offset: 0x01bec9df, size: 124 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_1 = RegExp('<\\/([^\\s]+):(\\d+)>(?:\\s?(.*))?', '');
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/ApplicationCommands.tsx');
|
|
exports.getApplicationCommand = getApplicationCommand;
|
|
}
|
|
|
|
function getApplicationCommand(a0) { // fn#66118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8455:239, offset: 0x01beca5b, size: 190 bytes, params: 2, frame: 19
|
|
const value2 = env0_1.exec(a0);
|
|
const value3 = null;
|
|
if (value3 == value2) {
|
|
return value3;
|
|
}
|
|
const value = env0_0(value2, 4);
|
|
value[0];
|
|
const property = value[1];
|
|
const property2 = value[2];
|
|
const property3 = value[3];
|
|
return value3 == property || value3 == property2 ? value3 : {content: '/' + property + (value3 != property3 ? ' ' + property3 : ''),
|
|
name: property, id: property2, hasOptions: value3 != property3 && property3 !== ''};
|
|
}
|
|
|