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

59 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8537
// Function ID: 68034
2026-07-20 16:05:17 +00:00
// Name: getUserProfileActionSheetKey
2026-07-24 07:16:23 +00:00
// Dependencies: [5, 7541, 3767, 1849, 1934, 3803, 8538, 4098, 8543, 2]
2026-07-20 16:05:17 +00:00
// Exports: getUserProfileBlockedSpeedBumpActionSheetKey, showUserProfileActionSheetPostConnection
2026-07-24 07:16:23 +00:00
// Module 8537 (getUserProfileActionSheetKey)
2026-07-23 10:11:24 +00:00
import explicitContentFromProto from "explicitContentFromProto";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
2026-07-20 16:05:17 +00:00
function getUserProfileActionSheetKey(userId) {
return "UserProfile" + userId;
}
function getUserProfileIgnoredSpeedBumpActionSheetKey(userId) {
return "UserProfileIgnoredSpeedBump" + userId;
}
2026-07-23 10:11:24 +00:00
function showUserProfileActionSheet(isPreviewingChanges, arg1) {
2026-07-20 16:05:17 +00:00
const timestamp = Date.now();
2026-07-23 10:11:24 +00:00
const IgnoreProfileSpeedbumpDisabled = require(3803) /* explicitContentFromProto */.IgnoreProfileSpeedbumpDisabled;
if (!isPreviewingChanges.ignoreBlockedSpeedBump) {
const isBlockedResult = _isNativeReflectConstruct.isBlocked(isPreviewingChanges.userId);
const isIgnoredResult = _isNativeReflectConstruct.isIgnored(isPreviewingChanges.userId);
2026-07-20 16:05:17 +00:00
if (isIgnoredResult) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(4098);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-24 07:16:23 +00:00
const tmp9 = require(1934) /* maybeLoadBundle */(8538, dependencyMap.paths);
2026-07-23 10:11:24 +00:00
const merged = Object.assign(isPreviewingChanges);
2026-07-20 16:05:17 +00:00
let str = "ignore";
if (isBlockedResult) {
str = "block";
}
obj["speedBumpType"] = str;
obj["openedAt"] = timestamp;
2026-07-23 10:11:24 +00:00
obj.openLazy(tmp9, getUserProfileIgnoredSpeedBumpActionSheetKey(isPreviewingChanges.userId), obj);
2026-07-20 16:05:17 +00:00
}
}
2026-07-24 07:16:23 +00:00
const tmp17 = require(1934) /* maybeLoadBundle */(8543, dependencyMap.paths);
2026-07-23 10:11:24 +00:00
const obj3 = importDefault(4098);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const merged1 = Object.assign(isPreviewingChanges);
2026-07-20 16:05:17 +00:00
obj["openedAt"] = timestamp;
2026-07-23 10:11:24 +00:00
obj3.openLazy(tmp17, getUserProfileActionSheetKey(isPreviewingChanges.userId), obj, "replaceAll");
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
require("shouldWaitForBlockingModals").addPostConnectionCallback;
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/user_profile/native/showUserProfileActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default showUserProfileActionSheet;
export { getUserProfileActionSheetKey };
export const getUserProfileBlockedSpeedBumpActionSheetKey = function getUserProfileBlockedSpeedBumpActionSheetKey(arg0) {
return "UserProfileBlockedSpeedBump" + arg0;
};
export { getUserProfileIgnoredSpeedBumpActionSheetKey };
export const showUserProfileActionSheetPostConnection = function showUserProfileActionSheetPostConnection(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
// CreateGeneratorClosureLongIndex (0x67)
addPostConnectionCallback(callback(tmp));
};