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

111 lines
4 KiB
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 8706
// Function ID: 8707
2026-07-29 08:29:29 +00:00
// Name: showUserProfileActionSheet
2026-08-06 08:05:19 +00:00
// Dependencies: [5, 7680, 3921, 1903, 1988, 3957, 8707, 4253, 8719, 2]
2026-07-29 08:29:29 +00:00
// Exports: getUserProfileActionSheetKey, getUserProfileBlockedSpeedBumpActionSheetKey, getUserProfileIgnoredSpeedBumpActionSheetKey, showUserProfileActionSheetPostConnection
2026-07-20 16:05:17 +00:00
2026-08-06 08:05:19 +00:00
// Module 8706 (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-08-06 08:05:19 +00:00
const IgnoreProfileSpeedbumpDisabled = require(3957) /* explicitContentFromProto */.IgnoreProfileSpeedbumpDisabled;
2026-07-29 08:29:29 +00:00
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-08-06 08:05:19 +00:00
let obj = importDefault(4253);
2026-07-29 08:29:29 +00:00
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;
2026-08-06 08:05:19 +00:00
obj.openLazy(tmp2(1988)(8707, tmp3.paths), combined, obj);
2026-07-20 16:05:17 +00:00
}
}
2026-08-06 08:05:19 +00:00
const tmp15 = require(1988) /* asyncRequireImpl */(8719, dependencyMap.paths);
2026-07-29 08:29:29 +00:00
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;
2026-08-06 08:05:19 +00:00
importDefault(4253).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 {
2026-08-05 07:35:12 +00:00
return { value: "T", done: null };
2026-07-29 08:29:29 +00:00
}
} 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;
2026-08-05 07:35:12 +00:00
return { value: "T", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp14) {
paths = tmp;
throw tmp14;
}
}
}));
2026-07-20 16:05:17 +00:00
};