decord/beta/source/modules/game_claim/useGameClaimCoachmark.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

66 lines
2.4 KiB
TypeScript

// Module ID: 16611
// Function ID: 16612
// Name: useGameClaimCoachmark
// Dependencies: [4431, 1078, 558, 568, 16612, 504, 16541, 2]
// Module 16611 (useGameClaimCoachmark)
import PermissionStore from "PermissionStore" /* 4431 */;
const require = globalThis.__r;
const require = fn;
const Permissions = fn(1078).Permissions;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/game_claim/useGameClaimCoachmark.tsx");
export const useCanShowGameClaimCoachmark = ReactCompilerGating.isReactCompilerEnabled() ? ((guildId) => {
_require = guildId;
const cResult = require("c").c(4);
const obj = require("c");
let gameClaimCoachmarkEnabled = require("GameClaimCoachmarkExperiment").useGameClaimCoachmarkEnabled(guildId, "useCanShowGameClaimCoachmark");
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [PermissionStore];
cResult[0] = items;
let first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== guildId) {
const fn = function l() {
return PermissionStore.canWithPartialContext(Permissions.ADMINISTRATOR, { guildId });
};
const items1 = [guildId];
cResult[1] = guildId;
cResult[2] = fn;
cResult[3] = items1;
let tmp8 = items1;
let tmp7 = fn;
} else {
tmp7 = cResult[2];
tmp8 = cResult[3];
}
const obj2 = require("GameClaimCoachmarkExperiment");
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = tmpResult.useStateFromStores(first, tmp7, tmp8);
}
tmpResult = require("initialize");
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = tmpResult2.useHasUnclaimedGames(guildId, gameClaimCoachmarkEnabled);
}
return gameClaimCoachmarkEnabled;
}) : ((guildId) => {
_require = guildId;
let gameClaimCoachmarkEnabled = require("GameClaimCoachmarkExperiment").useGameClaimCoachmarkEnabled(guildId, "useCanShowGameClaimCoachmark");
const obj = require("GameClaimCoachmarkExperiment");
const items = [PermissionStore];
const items1 = [guildId];
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = obj2.useStateFromStores(items, () => PermissionStore.canWithPartialContext(Permissions.ADMINISTRATOR, { guildId }), items1);
}
obj2 = require("initialize");
if (gameClaimCoachmarkEnabled) {
gameClaimCoachmarkEnabled = tmpResult.useHasUnclaimedGames(guildId, gameClaimCoachmarkEnabled);
}
return gameClaimCoachmarkEnabled;
});