2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 8708
|
|
|
|
|
// Function ID: 8709
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useOpenGameProfileModal
|
2026-09-10 05:38:07 +00:00
|
|
|
// Dependencies: [8709, 8713, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 8708 (useOpenGameProfileModal)
|
|
|
|
|
import GameProfileActionCreatorsDefault from "GameProfileActionCreators" /* 8713 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/game_profile/hooks/useOpenGameProfileModal.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useOpenGameProfileModal(arg0) {
|
2026-08-24 06:08:38 +00:00
|
|
|
importDefault = arg0;
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (arg1 === undefined) {
|
|
|
|
|
obj = {};
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const onOpened = obj.onOpened;
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp = require("useShouldOpenGameProfileModal")(arg0);
|
|
|
|
|
const gameProfileModalChecks = tmp;
|
|
|
|
|
const gameId = tmp.gameId;
|
2026-07-20 16:05:17 +00:00
|
|
|
let fn;
|
|
|
|
|
if (tmp.shouldOpenGameProfile) {
|
|
|
|
|
if (null != gameId) {
|
|
|
|
|
fn = (stopPropagation) => {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stopPropagation != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
stopPropagation.stopPropagation();
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stopPropagation != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
stopPropagation.preventDefault();
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = {};
|
|
|
|
|
const merged = Object.assign(closure_0);
|
|
|
|
|
obj2.gameId = gameId;
|
|
|
|
|
obj2.gameProfileModalChecks = gameProfileModalChecks;
|
|
|
|
|
GameProfileActionCreatorsDefault.openGameProfileModal(obj2);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (onOpened != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
onOpened();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return fn;
|
|
|
|
|
};
|