Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,106 @@
|
||||
/* Metro module 9796; source: modules/explicit_media_redaction/hooks/useContentHarmTypes.tsx; dependencies: [31, 1348, 1379, 3793, 1878, 4838, 566, 4843, 4839, 2] */
|
||||
function _fun76775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9982:6, offset: 0x01de4727, size: 198 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useEnabledHarmTypesBitmaskForChannelAndAuthorId;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/explicit_media_redaction/hooks/useContentHarmTypes.tsx');
|
||||
exports.useEnabledHarmTypesBitmaskForChannelAndAuthorId = closure;
|
||||
exports.useEnabledHarmTypesBitmaskForMessage = useEnabledHarmTypesBitmaskForMessage;
|
||||
}
|
||||
|
||||
function useEnabledHarmTypesBitmaskForChannelAndAuthorId(a0, a1) { // fn#76776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9982:146, offset: 0x01de47ed, size: 349 bytes, params: 3, frame: 26
|
||||
var r0;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
var value;
|
||||
const eligibleHarmTypesConfigsForContext = (require(4838) /* metro dependency 4838: ObscuredMediaUtils */).getEligibleHarmTypesConfigsForContext();
|
||||
const env0_2 = eligibleHarmTypesConfigsForContext;
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const value4 = env0_2.useMemo(_fun76781,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore, RelationshipStore],
|
||||
_fun76778), eligibleHarmTypesConfigsForContext,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore], _fun76779,
|
||||
[eligibleHarmTypesConfigsForContext],
|
||||
(require(4843) /* metro dependency 4843: SensitiveMediaRedactionSettingUtils */).areSettingsEqual), a1,
|
||||
currentUser]);
|
||||
if (value4.length === 0) {
|
||||
r0 = (require(4839) /* metro dependency 4839: HarmTypeConfiguration */).ContentHarmTypeBitMask.NONE;
|
||||
} else {
|
||||
value = require(4838) /* metro dependency 4838: ObscuredMediaUtils */;
|
||||
value = value.contentHarmTypesToFlags(value4);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useEnabledHarmTypesBitmaskForMessage(a0) { // fn#76784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9982:1119, offset: 0x01de4aaf, size: 77 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
var value;
|
||||
if (a0 == null) {
|
||||
r0 = {};
|
||||
} else {
|
||||
value = require(4838) /* metro dependency 4838: ObscuredMediaUtils */;
|
||||
value = value.getChannelIdAndAuthorIdFromMessage(a0);
|
||||
r0 = value;
|
||||
}
|
||||
return useEnabledHarmTypesBitmaskForChannelAndAuthorId(r0.channelId, r0.authorId);
|
||||
}
|
||||
|
||||
function _fun76778() { // fn#76778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9982:357, offset: 0x01de494a, size: 71 bytes, params: 1, frame: 17
|
||||
return (require(4838) /* metro dependency 4838: ObscuredMediaUtils */).getChannelTypeById(env0_0, require,
|
||||
[ChannelStore, RelationshipStore]);
|
||||
}
|
||||
|
||||
function _fun76779() { // fn#76779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9982:435, offset: 0x01de4991, size: 32 bytes, params: 1, frame: 13
|
||||
return env0_2.reduce(function(a0, a1) {
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, a1);
|
||||
object[a1.harmType] = a1.getProtoUserSettings(UserSettingsProtoStore.settings);
|
||||
return object;
|
||||
}, {});
|
||||
}
|
||||
|
||||
function _fun76781() { // fn#76781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9982:562, offset: 0x01de49e5, size: 99 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var value;
|
||||
if (channelTypeById == null) {
|
||||
r0 = [];
|
||||
} else if (require === currentUser?.id) {
|
||||
r0 = [];
|
||||
} else if (currentUser == null) {
|
||||
r0 = [];
|
||||
} else {
|
||||
value = env0_2.map(_fun76782);
|
||||
value = value.filter(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun76782(a0) { // fn#76782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9982:620, offset: 0x01de4a48, size: 103 bytes, params: 2, frame: 14
|
||||
var r4;
|
||||
let value = environment.__proto__;
|
||||
let property = env1_5[a0.harmType];
|
||||
const channelTypeByIdBinding = channelTypeById;
|
||||
const value2 = null;
|
||||
if (value2 == channelTypeByIdBinding) {
|
||||
r4 = value2;
|
||||
} else {
|
||||
property = a0.getUserSettingsWithDefaults(property)[channelTypeById];
|
||||
r4 = property;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
value = require(4838) /* metro dependency 4838: ObscuredMediaUtils */;
|
||||
return value.shouldRedactForSettingValue(r4) ? a0.harmType : value2;
|
||||
}
|
||||
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
/* Metro module 13343; source: modules/explicit_media_redaction/hooks/useExplicitContentSettingsOrDefault.tsx; dependencies: [1348, 632, 4842, 4844, 2] */
|
||||
function _fun101606(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13533:6, offset: 0x02219db6, size: 127 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/explicit_media_redaction/hooks/useExplicitContentSettingsOrDefault.tsx');
|
||||
exports.useExplicitContentSettingOrDefault = useExplicitContentSettingOrDefault;
|
||||
exports.useGoreContentSettingOrDefault = useGoreContentSettingOrDefault;
|
||||
}
|
||||
|
||||
function useExplicitContentSettingOrDefault() { // fn#101607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13533:255, offset: 0x02219e35, size: 244 bytes, params: 1, frame: 20
|
||||
var object2;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([UserSettingsProtoStore],
|
||||
_fun101608);
|
||||
object2 = {};
|
||||
object2.explicitContentGuilds = (require(4842) /* metro dependency 4842: SensitiveMediaExplicitRedactionSettingsUtils */).resolveExplicitContentSettingWithDefaults({setting: value3 == null ? value2 : value3.explicitContentGuilds});
|
||||
object2.explicitContentNonFriendDm = (require(4842) /* metro dependency 4842: SensitiveMediaExplicitRedactionSettingsUtils */).resolveExplicitContentSettingWithDefaults({setting: value3 == null ? value2 : value3.explicitContentNonFriendDm,
|
||||
isDm: true});
|
||||
object2.explicitContentFriendDm = (require(4842) /* metro dependency 4842: SensitiveMediaExplicitRedactionSettingsUtils */).resolveExplicitContentSettingWithDefaults({'setting': null,
|
||||
'isDm': true, 'isFriend': true, setting: value3 == null ? value2 : value3.explicitContentFriendDm});
|
||||
return object2;
|
||||
}
|
||||
|
||||
function useGoreContentSettingOrDefault() { // fn#101609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13533:902, offset: 0x02219f73, size: 244 bytes, params: 1, frame: 20
|
||||
var object2;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([UserSettingsProtoStore],
|
||||
_fun101610);
|
||||
object2 = {};
|
||||
object2.goreContentGuilds = (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaults({setting: value3 == null ? value2 : value3.goreContentGuilds});
|
||||
object2.goreContentNonFriendDm = (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaults({setting: value3 == null ? value2 : value3.goreContentNonFriendDm,
|
||||
isDm: true});
|
||||
object2.goreContentFriendDm = (require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */).resolveGoreSettingWithDefaults({'setting': null,
|
||||
'isDm': true, 'isFriend': true, setting: value3 == null ? value2 : value3.goreContentFriendDm});
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun101608() { // fn#101608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13533:304, offset: 0x02219f29, size: 74 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
const explicitContentSettings = UserSettingsProtoStore.settings.textAndImages?.explicitContentSettings;
|
||||
if (explicitContentSettings != null) {
|
||||
r0 = explicitContentSettings;
|
||||
} else {
|
||||
value = require(4842) /* metro dependency 4842: SensitiveMediaExplicitRedactionSettingsUtils */;
|
||||
value = value.getExplicitContentSettingOrDefault();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun101610() { // fn#101610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13533:951, offset: 0x0221a067, size: 74 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
const goreContentSettings = UserSettingsProtoStore.settings.textAndImages?.goreContentSettings;
|
||||
if (goreContentSettings != null) {
|
||||
r0 = goreContentSettings;
|
||||
} else {
|
||||
value = require(4844) /* metro dependency 4844: SensitiveMediaGoreRedactionSettingsUtils */;
|
||||
value = value.getGoreContentSettingOrDefault();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
/* Metro module 8009; source: modules/explicit_media_redaction/hooks/useExplicitMediaActions.tsx; dependencies: [5, 57, 31, 4131, 2] */
|
||||
function _fun63610(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8187:6, offset: 0x01b8777d, size: 147 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/explicit_media_redaction/hooks/useExplicitMediaActions.tsx');
|
||||
exports.useExplicitMediaActions = useExplicitMediaActions;
|
||||
}
|
||||
|
||||
function useExplicitMediaActions({onError, onSuccess, report}) { // fn#63611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8187:255, offset: 0x01b87810, size: 149 bytes, params: 2, frame: 19
|
||||
const env0_2 = report;
|
||||
const binding = env0_4;
|
||||
const [property, env0_3] = env0_3Binding(binding.useState(false), 2);
|
||||
const object2 = {};
|
||||
object2.reportFalsePositive = binding.useCallback(env0_2(_fun63613), [property, onError, onSuccess, report]);
|
||||
object2.isReportFalsePositiveLoading = property;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function* _fun63613() { // fn#63613, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8187:414, offset: 0x01b878ae, size: 197 bytes, params: 1, frame: 16
|
||||
var value;
|
||||
var value2;
|
||||
var binding;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var error;
|
||||
var value7;
|
||||
var binding2;
|
||||
var property;
|
||||
var value8;
|
||||
var APIError;
|
||||
var prototype;
|
||||
var aPIError;
|
||||
var value10;
|
||||
var value11;
|
||||
exceptionLanding34: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
if (!env1_4) {
|
||||
env1_3(true);
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort33: while (true) {
|
||||
exceptionLanding15: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env1_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding15;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value7 = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
value8 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
APIError = value8.APIError;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
prototype = APIError.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
aPIError = new APIError();
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
value10 = aPIError instanceof Object ? aPIError : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
value11 = require == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
reducibleJoin33: while (true) {
|
||||
if (value11) {
|
||||
break reducibleJoin33;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
require(value10);
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
break reducibleJoin33;
|
||||
}
|
||||
break reduciblePort33;
|
||||
}
|
||||
env1_3(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value3 = binding();
|
||||
} catch (error) {
|
||||
break exceptionLanding15;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
yield value3;
|
||||
try {
|
||||
try {
|
||||
value4 = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding15;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
if (value5) {
|
||||
env1_3(false);
|
||||
return value4;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding15;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value6 = dependencyMap == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding15;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
reducibleJoin13: while (true) {
|
||||
if (value6) {
|
||||
break reducibleJoin13;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding15;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
dependencyMap();
|
||||
} catch (error) {
|
||||
break exceptionLanding15;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding34;
|
||||
}
|
||||
break reducibleJoin13;
|
||||
}
|
||||
env1_3(false);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
/* Metro module 9795; source: modules/explicit_media_redaction/hooks/useExplicitMediaAttachmentsForMessage.tsx; dependencies: [4814, 632, 9796, 4838, 4841, 2] */
|
||||
function _fun76766(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9981:6, offset: 0x01de443c, size: 127 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/explicit_media_redaction/hooks/useExplicitMediaAttachmentsForMessage.tsx');
|
||||
exports.useRedactableMediaAttachmentsForMessage = useRedactableMediaAttachmentsForMessage;
|
||||
exports.useRedactableMediaEmbedsForMessage = useRedactableMediaEmbedsForMessage;
|
||||
}
|
||||
|
||||
function useRedactableMediaAttachmentsForMessage(a0, a1, a2) { // fn#76767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9981:262, offset: 0x01de44bb, size: 181 bytes, params: 4, frame: 18
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const value2 = undefined;
|
||||
const message = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([MessageStore],
|
||||
_fun76768);
|
||||
const env0_3 = (require(9796) /* metro dependency 9796: useContentHarmTypes */).useEnabledHarmTypesBitmaskForMessage(message);
|
||||
if (message == null) {
|
||||
return [];
|
||||
}
|
||||
let r0 = message == null || message.attachments == null ? value2 : message.attachments.filter(value2 !== a2 ? _fun76769 : _fun76770);
|
||||
r0 = r0 ?? [];
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useRedactableMediaEmbedsForMessage(a0, a1, a2) { // fn#76771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9981:655, offset: 0x01de4609, size: 181 bytes, params: 4, frame: 18
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const value2 = undefined;
|
||||
const message = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([MessageStore],
|
||||
_fun76772);
|
||||
const env0_3 = (require(9796) /* metro dependency 9796: useContentHarmTypes */).useEnabledHarmTypesBitmaskForMessage(message);
|
||||
if (message == null) {
|
||||
return [];
|
||||
}
|
||||
let r0 = message == null || message.embeds == null ? value2 : message.embeds.filter(value2 !== a2 ? function({id}) {
|
||||
return id === importDefault;
|
||||
} : _fun76774);
|
||||
r0 = r0 ?? [];
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun76768() { // fn#76768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9981:314, offset: 0x01de4570, size: 32 bytes, params: 1, frame: 13
|
||||
return MessageStore.getMessage(env0_0, require);
|
||||
}
|
||||
|
||||
function _fun76769(a0) { // fn#76769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9981:425, offset: 0x01de4590, size: 37 bytes, params: 2, frame: 4
|
||||
return a0.url === importDefault || a0.id === importDefault;
|
||||
}
|
||||
|
||||
function _fun76770(a0) { // fn#76770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9981:448, offset: 0x01de45b5, size: 84 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = require(4838) /* metro dependency 4838: ObscuredMediaUtils */;
|
||||
const isMediaObscuredForHarmTypes = value.isMediaObscuredForHarmTypes;
|
||||
const ObscuredMediaTypes = (require(4841) /* metro dependency 4841: ExplicitMediaRedactionModels */).ObscuredMediaTypes;
|
||||
const Attachment = ObscuredMediaTypes.Attachment;
|
||||
return Reflect.apply(isMediaObscuredForHarmTypes, value, [{type: Attachment, media: a0}, env0_3]);
|
||||
}
|
||||
|
||||
function _fun76774(a0) { // fn#76774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9981:830, offset: 0x01de46d3, size: 84 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = require(4838) /* metro dependency 4838: ObscuredMediaUtils */;
|
||||
const isMediaObscuredForHarmTypes = value.isMediaObscuredForHarmTypes;
|
||||
const ObscuredMediaTypes = (require(4841) /* metro dependency 4841: ExplicitMediaRedactionModels */).ObscuredMediaTypes;
|
||||
const Embed = ObscuredMediaTypes.Embed;
|
||||
return Reflect.apply(isMediaObscuredForHarmTypes, value, [{type: Embed, media: a0}, env0_3]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 13346; source: modules/explicit_media_redaction/hooks/useSensitiveMediaSettingDisabled.tsx; dependencies: [13347, 2] */
|
||||
function _fun101622(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13536:6, offset: 0x0221a932, size: 96 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/explicit_media_redaction/hooks/useSensitiveMediaSettingDisabled.tsx');
|
||||
exports.useSensitiveMediaSettingDisabled = useSensitiveMediaSettingDisabled;
|
||||
}
|
||||
|
||||
function useSensitiveMediaSettingDisabled() { // fn#101623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13536:236, offset: 0x0221a992, size: 36 bytes, params: 1, frame: 11
|
||||
return (require(13347) /* metro dependency 13347: useParentalControlSettings */).useIsParentallyControlled();
|
||||
}
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/* Metro module 10610; source: modules/explicit_media_redaction/hooks/useShouldRenderReportFalsePositiveButton.tsx; dependencies: [4822, 632, 2] */
|
||||
function _fun81757(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10796:6, offset: 0x01edd27e, size: 127 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const explicitMediaStore = importDefault(4822) /* metro dependency 4822: ExplicitMediaStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/explicit_media_redaction/hooks/useShouldRenderReportFalsePositiveButton.tsx');
|
||||
exports.shouldRenderReportFalsePositiveButton = shouldRenderReportFalsePositiveButton;
|
||||
exports.useShouldRenderReportFalsePositiveButton = useShouldRenderReportFalsePositiveButton;
|
||||
}
|
||||
|
||||
function shouldRenderReportFalsePositiveButton(a0) { // fn#81758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10796:263, offset: 0x01edd2fd, size: 29 bytes, params: 2, frame: 11
|
||||
return ExplicitMediaStore.getFpMessageInfo(a0) != null;
|
||||
}
|
||||
|
||||
function useShouldRenderReportFalsePositiveButton(a0) { // fn#81759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10796:337, offset: 0x01edd31a, size: 72 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
|
||||
const useStateFromStores = useStateFromStoresModule.useStateFromStores;
|
||||
return Reflect.apply(useStateFromStores, useStateFromStoresModule, [[ExplicitMediaStore], _fun81760]) != null;
|
||||
}
|
||||
|
||||
function _fun81760() { // fn#81760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10796:378, offset: 0x01edd362, size: 27 bytes, params: 1, frame: 11
|
||||
return ExplicitMediaStore.getFpMessageInfo(env0_0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user