2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 12097
|
|
|
|
|
// Function ID: 12098
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: getApplicationFromBotUserId
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [7035, 1074, 504, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: default
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 12097 (getApplicationFromBotUserId)
|
2026-10-01 14:13:23 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import UserProfileStore from "UserProfileStore" /* 7035 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const require = globalThis.__r;
|
2026-10-01 14:13:23 +00:00
|
|
|
let _require;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
const EMPTY_STRING_SNOWFLAKE_ID = Constants.EMPTY_STRING_SNOWFLAKE_ID;
|
2026-09-18 19:45:33 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/applications/getApplicationFromBotUserId.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export default function useGetApplicationFromBotUserId(arg0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0;
|
2026-09-18 19:45:33 +00:00
|
|
|
_require = arg0;
|
|
|
|
|
const items = [UserProfileStore];
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = require("get initialized");
|
|
|
|
|
const stateFromStores = obj.useStateFromStores(items, () => {
|
2026-09-18 19:45:33 +00:00
|
|
|
let tmp = closure_0;
|
|
|
|
|
let tmp2;
|
|
|
|
|
if (null !== closure_0) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const getUserProfile = UserProfileStore.getUserProfile;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (tmp == null) {
|
|
|
|
|
tmp = EMPTY_STRING_SNOWFLAKE_ID;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const userProfile = getUserProfile(tmp);
|
2026-09-18 19:45:33 +00:00
|
|
|
let application;
|
|
|
|
|
if (userProfile != null) {
|
|
|
|
|
application = userProfile.application;
|
|
|
|
|
}
|
|
|
|
|
tmp2 = application;
|
|
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
});
|
|
|
|
|
return stateFromStores;
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|