Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4942.js (118.4 MB)
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
// Module ID: 16611
|
|
// Function ID: 16612
|
|
// Name: useGameClaimCoachmark
|
|
// Dependencies: [4396, 1074, 16612, 504, 16542, 2]
|
|
// Exports: useCanShowGameClaimCoachmark
|
|
|
|
// Module 16611 (useGameClaimCoachmark)
|
|
import PermissionStore from "PermissionStore" /* 4396 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const Permissions = fn(1074).Permissions;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/game_claim/useGameClaimCoachmark.tsx");
|
|
|
|
export const useCanShowGameClaimCoachmark = function useCanShowGameClaimCoachmark(id) {
|
|
_require = id;
|
|
let gameClaimCoachmarkEnabled = require("GameClaimCoachmarkExperiment").useGameClaimCoachmarkEnabled(id, "useCanShowGameClaimCoachmark");
|
|
const obj = require("GameClaimCoachmarkExperiment");
|
|
const items = [PermissionStore];
|
|
const items1 = [id];
|
|
if (gameClaimCoachmarkEnabled) {
|
|
gameClaimCoachmarkEnabled = obj2.useStateFromStores(items, () => PermissionStore.canWithPartialContext(Permissions.ADMINISTRATOR, { guildId }), items1);
|
|
}
|
|
obj2 = require("initialize");
|
|
if (gameClaimCoachmarkEnabled) {
|
|
gameClaimCoachmarkEnabled = tmpResult.useHasUnclaimedGames(id, gameClaimCoachmarkEnabled);
|
|
}
|
|
return gameClaimCoachmarkEnabled;
|
|
};
|