36 lines
1.6 KiB
TypeScript
36 lines
1.6 KiB
TypeScript
/* Metro module 8447; source: modules/applications/ApplicationInteractionInfoUtils.tsx; dependencies: [1909, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun67020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8632:6, offset: 0x01c1308b, size: 109 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/applications/ApplicationInteractionInfoUtils.tsx');
|
|
exports.canViewInteractionInfo = function(a0) {
|
|
return a0.interactionMetadata != null;
|
|
};
|
|
exports.isPrimaryEntryPointCommandMessage = function(a0) {
|
|
var r6;
|
|
var r0;
|
|
var property = a0.interactionMetadata;
|
|
var value = undefined;
|
|
if (property == null) {
|
|
r6 = value;
|
|
} else {
|
|
property = property.type;
|
|
r6 = property;
|
|
}
|
|
var value3 = r6 === require(dependencyMap[0]).InteractionTypes.APPLICATION_COMMAND;
|
|
if (value3) {
|
|
property = a0.interactionMetadata;
|
|
value = (property == null ? value : property.command_type) === require(dependencyMap[0]).ApplicationCommandType.PRIMARY_ENTRY_POINT;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
return r0;
|
|
};
|
|
}
|
|
|
|
global.__d(_fun67020, 8447, [1909, 2]) /* metro module 8447, dependencies: [1909, 2] */;
|