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

86 lines
2.4 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 12333
// Function ID: 12334
// Name: getApplicationFromBotUserId
2026-10-12 16:32:48 +00:00
// Dependencies: [7321, 1085, 558, 576, 504, 2]
2026-10-12 16:32:48 +00:00
// Module 12333 (getApplicationFromBotUserId)
2026-10-07 22:43:51 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-12 16:32:48 +00:00
import UserProfileStore from "UserProfileStore" /* 7321 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
const require = globalThis.__r;
2026-10-01 14:13:23 +00:00
let _require;
2026-10-01 14:13:23 +00:00
const EMPTY_STRING_SNOWFLAKE_ID = Constants.EMPTY_STRING_SNOWFLAKE_ID;
2026-10-12 16:32:48 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useGetApplicationFromBotUserId(arg0) {
2026-10-02 13:37:24 +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-12 16:32:48 +00:00
}) : (function useGetApplicationFromBotUserId(arg0) {
2026-10-01 14:13:23 +00:00
let closure_0;
_require = arg0;
const items = [UserProfileStore];
2026-10-01 14:13:23 +00:00
const obj = require("get initialized");
const stateFromStores = obj.useStateFromStores(items, () => {
let tmp = closure_0;
let tmp2;
if (null !== closure_0) {
2026-10-01 14:13:23 +00:00
const getUserProfile = UserProfileStore.getUserProfile;
if (tmp == null) {
tmp = EMPTY_STRING_SNOWFLAKE_ID;
}
2026-10-01 14:13:23 +00:00
const userProfile = getUserProfile(tmp);
let application;
if (userProfile != null) {
application = userProfile.application;
}
tmp2 = application;
}
return tmp2;
});
return stateFromStores;
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/applications/getApplicationFromBotUserId.tsx");
export default tmp2;