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

111 lines
4 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 8929
// Function ID: 8930
2026-07-29 08:29:29 +00:00
// Name: showUserProfileActionSheet
2026-08-15 05:55:55 +00:00
// Dependencies: [5, 4493, 4030, 1922, 2007, 4066, 8930, 4342, 8943, 2]
2026-07-29 08:29:29 +00:00
// Exports: getUserProfileActionSheetKey, getUserProfileBlockedSpeedBumpActionSheetKey, getUserProfileIgnoredSpeedBumpActionSheetKey, showUserProfileActionSheetPostConnection
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 8929 (showUserProfileActionSheet)
2026-07-23 10:11:24 +00:00
import explicitContentFromProto from "explicitContentFromProto";
2026-08-11 06:20:06 +00:00
import markAllUserIdListsStale from "markAllUserIdListsStale";
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-15 05:55:55 +00:00
const IgnoreProfileSpeedbumpDisabled = require(4066) /* explicitContentFromProto */.IgnoreProfileSpeedbumpDisabled;
2026-07-29 08:29:29 +00:00
if (!ignoreBlockedSpeedBump.ignoreBlockedSpeedBump) {
2026-08-11 06:20:06 +00:00
const isBlockedResult = markAllUserIdListsStale.isBlocked(ignoreBlockedSpeedBump.userId);
const isIgnoredResult = markAllUserIdListsStale.isIgnored(ignoreBlockedSpeedBump.userId);
2026-07-20 16:05:17 +00:00
if (isIgnoredResult) {
2026-08-15 05:55:55 +00:00
let obj = importDefault(4342);
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-15 05:55:55 +00:00
obj.openLazy(tmp2(2007)(8930, tmp3.paths), combined, obj);
2026-07-20 16:05:17 +00:00
}
}
2026-08-15 05:55:55 +00:00
const tmp15 = require(2007) /* asyncRequireImpl */(8943, 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-15 05:55:55 +00:00
importDefault(4342).openLazy(tmp15, combined1, obj, "replaceAll");
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
require("processCallbacks").addPostConnectionCallback;
2026-08-11 06:20:06 +00:00
const result = require("markAllUserIdListsStale").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-15 05:55:55 +00:00
return { value: "HermesInternal", done: "HermesInternal" };
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-15 05:55:55 +00:00
return { value: "HermesInternal", done: "HermesInternal" };
2026-07-29 08:29:29 +00:00
}
} catch (tmp14) {
paths = tmp;
throw tmp14;
}
}
}));
2026-07-20 16:05:17 +00:00
};