decord/alpha/source/modules/applications/getApplicationFromBotUserId.tsx

86 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 12287
// Function ID: 12288
// Name: getApplicationFromBotUserId
2026-10-09 10:00:15 +00:00
// Dependencies: [7314, 1085, 558, 576, 504, 2]
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 12287 (getApplicationFromBotUserId)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import UserProfileStore from "UserProfileStore" /* 7314 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
2026-10-03 08:58:59 +00:00
let _require;
2026-10-03 08:58:59 +00:00
const EMPTY_STRING_SNOWFLAKE_ID = Constants.EMPTY_STRING_SNOWFLAKE_ID;
2026-10-08 09:57:35 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useGetApplicationFromBotUserId(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
let first;
let tmp6;
_require = arg0;
let tmp = _require;
let tmp2 = dependencyMap;
const obj = require("react");
const cResult = obj.c(3);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [UserProfileStore];
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== arg0) {
const fn = function s() {
let tmp = closure_0;
let tmp2;
if (null !== closure_0) {
const getUserProfile = UserProfileStore.getUserProfile;
if (tmp == null) {
tmp = EMPTY_STRING_SNOWFLAKE_ID;
}
const userProfile = getUserProfile(tmp);
let application;
if (userProfile != null) {
application = userProfile.application;
}
tmp2 = application;
}
return tmp2;
};
cResult[1] = arg0;
cResult[2] = fn;
tmp6 = fn;
} else {
tmp6 = cResult[2];
}
const tmpResult = tmp(504);
const stateFromStores = tmpResult.useStateFromStores(first, tmp6);
return stateFromStores;
2026-10-08 09:57:35 +00:00
}) : (function useGetApplicationFromBotUserId(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
_require = arg0;
const items = [UserProfileStore];
2026-10-03 08:58:59 +00:00
const obj = require("get initialized");
const stateFromStores = obj.useStateFromStores(items, () => {
2026-07-29 08:29:29 +00:00
let tmp = closure_0;
let tmp2;
2026-07-23 10:11:24 +00:00
if (null !== closure_0) {
2026-10-03 08:58:59 +00:00
const getUserProfile = UserProfileStore.getUserProfile;
2026-07-29 08:29:29 +00:00
if (tmp == null) {
tmp = EMPTY_STRING_SNOWFLAKE_ID;
2026-07-29 08:29:29 +00:00
}
2026-10-03 08:58:59 +00:00
const userProfile = getUserProfile(tmp);
2026-07-20 16:05:17 +00:00
let application;
2026-07-29 08:29:29 +00:00
if (userProfile != null) {
2026-07-20 16:05:17 +00:00
application = userProfile.application;
}
2026-07-29 08:29:29 +00:00
tmp2 = application;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
return stateFromStores;
2026-10-03 08:58:59 +00:00
});
const result = size.fileFinishedImporting("modules/applications/getApplicationFromBotUserId.tsx");
export default tmp2;