decord/source/modules/user_profile/native/showUserProfileActionSheet.tsx

111 lines
4 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 8359
// Function ID: 8360
// Name: showUserProfileActionSheet
// Dependencies: [5, 6694, 3826, 1874, 1959, 3862, 8360, 4157, 8365, 2]
// Exports: getUserProfileActionSheetKey, getUserProfileBlockedSpeedBumpActionSheetKey, getUserProfileIgnoredSpeedBumpActionSheetKey, showUserProfileActionSheetPostConnection
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 8359 (showUserProfileActionSheet)
2026-07-23 10:11:24 +00:00
import explicitContentFromProto from "explicitContentFromProto";
2026-07-29 08:29:29 +00:00
import upsertRelationship from "upsertRelationship";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
function showUserProfileActionSheet(ignoreBlockedSpeedBump, arg1) {
2026-07-20 16:05:17 +00:00
const timestamp = Date.now();
2026-07-29 08:29:29 +00:00
const IgnoreProfileSpeedbumpDisabled = require(3862) /* explicitContentFromProto */.IgnoreProfileSpeedbumpDisabled;
if (!ignoreBlockedSpeedBump.ignoreBlockedSpeedBump) {
const isBlockedResult = upsertRelationship.isBlocked(ignoreBlockedSpeedBump.userId);
const isIgnoredResult = upsertRelationship.isIgnored(ignoreBlockedSpeedBump.userId);
2026-07-20 16:05:17 +00:00
if (isIgnoredResult) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(4157);
const _HermesInternal = HermesInternal;
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const combined = "UserProfileIgnoredSpeedBump" + ignoreBlockedSpeedBump.userId;
const merged = Object.assign(ignoreBlockedSpeedBump);
let str2 = "ignore";
2026-07-20 16:05:17 +00:00
if (isBlockedResult) {
2026-07-29 08:29:29 +00:00
str2 = "block";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj.speedBumpType = str2;
obj.openedAt = timestamp;
obj.openLazy(tmp2(1959)(8360, tmp3.paths), combined, obj);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const tmp15 = require(1959) /* asyncRequireImpl */(8365, dependencyMap.paths);
const combined1 = "UserProfile" + ignoreBlockedSpeedBump.userId;
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(ignoreBlockedSpeedBump);
obj.openedAt = timestamp;
importDefault(4157).openLazy(tmp15, combined1, obj, "replaceAll");
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
require("processCallbacks").addPostConnectionCallback;
const result = require("upsertRelationship").fileFinishedImporting("modules/user_profile/native/showUserProfileActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default showUserProfileActionSheet;
2026-07-29 08:29:29 +00:00
export const getUserProfileActionSheetKey = function getUserProfileActionSheetKey(id) {
return "UserProfile" + id;
};
2026-07-20 16:05:17 +00:00
export const getUserProfileBlockedSpeedBumpActionSheetKey = function getUserProfileBlockedSpeedBumpActionSheetKey(arg0) {
return "UserProfileBlockedSpeedBump" + arg0;
};
2026-07-29 08:29:29 +00:00
export const getUserProfileIgnoredSpeedBumpActionSheetKey = function getUserProfileIgnoredSpeedBumpActionSheetKey(arg0) {
return "UserProfileIgnoredSpeedBump" + arg0;
};
2026-07-20 16:05:17 +00:00
export const showUserProfileActionSheetPostConnection = function showUserProfileActionSheetPostConnection(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-29 08:29:29 +00:00
addPostConnectionCallback(callback(function*() {
if (paths === 2) {
paths = 3;
HermesBuiltin.throwTypeError();
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
paths = 2;
if (0 === c1) {
if (arg0 === 1) {
paths = 3;
throw arg1;
} else if (arg0 === 2) {
paths = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const userId = tmp4;
c1 = 1;
paths = 1;
const obj1 = { value: null, done: false };
obj1[0] = outer1_0(paths[4])(paths[3], paths.paths);
return obj1;
}
} else if (arg0 === 1) {
paths = 3;
throw arg1;
} else if (arg0 === 2) {
paths = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
if (null != _default.getUser(userId.userId)) {
outer1_6(userId);
}
paths = 3;
return { value: "HermesInternal", done: null };
}
} catch (tmp14) {
paths = tmp;
throw tmp14;
}
}
}));
2026-07-20 16:05:17 +00:00
};