35 lines
2.4 KiB
TypeScript
35 lines
2.4 KiB
TypeScript
/* Metro module 11295; source: modules/ato_alerts/hooks/useLikelyAtoWarning.tsx; dependencies: [9706, 11291, 11292, 11293, 9705, 11290, 2] */
|
|
function _fun86198(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11481:6, offset: 0x01f8b2f6, size: 117 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = (require(9706) /* metro dependency 9706: ChannelSafetyWarningsStore */).SafetyWarningTypes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ato_alerts/hooks/useLikelyAtoWarning.tsx');
|
|
exports.useLikelyAtoWarning = useLikelyAtoWarning;
|
|
}
|
|
|
|
function useLikelyAtoWarning(a0) { // fn#86199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11481:229, offset: 0x01f8b36b, size: 175 bytes, params: 2, frame: 18
|
|
const value2 = (require(11291) /* metro dependency 11291: useIsSpamMessageRequest */).useIsSpamMessageRequest(a0);
|
|
const value3 = (require(11292) /* metro dependency 11292: useIsMessageRequest */).useIsMessageRequest(a0);
|
|
const useChannelSafetyWarningModule = require(11293) /* metro dependency 11293: useChannelSafetyWarning */;
|
|
const useChannelSafetyWarning = useChannelSafetyWarningModule.useChannelSafetyWarning;
|
|
const LIKELY_ATO = SafetyWarningTypes.LIKELY_ATO;
|
|
const value = Reflect.apply(useChannelSafetyWarning, useChannelSafetyWarningModule, [a0, LIKELY_ATO]);
|
|
const useInappropriateConversationWarningsForChannelModule = require(9705) /* metro dependency 9705: useInappropriateConversationWarningsForChannel */;
|
|
const useInappropriateConversationWarningsForChannel = useInappropriateConversationWarningsForChannelModule.useInappropriateConversationWarningsForChannel;
|
|
const value4 = Reflect.apply(useInappropriateConversationWarningsForChannel,
|
|
useInappropriateConversationWarningsForChannelModule, [a0]).length > 0;
|
|
const value6 = (require(11290) /* metro dependency 11290: useStrangerDangerWarning */).useStrangerDangerWarning(a0) != null;
|
|
if (value2) {
|
|
return undefined;
|
|
}
|
|
if (value3) {
|
|
return undefined;
|
|
}
|
|
if (value4) {
|
|
return undefined;
|
|
}
|
|
return value6 ? undefined : value;
|
|
}
|
|
|