Files
2026-07-28 01:06:53 +03:00

38 lines
2.7 KiB
TypeScript

/* Metro module 14730; source: modules/game_claim/useGameClaimCoachmark.tsx; dependencies: [3784, 661, 14731, 566, 14575, 2] */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as UnclaimedGamesActionCreatorsModule from './UnclaimedGamesActionCreators.tsx'; /* Metro dependency 14575 */
import * as GameClaimCoachmarkExperimentModule from './experiments/GameClaimCoachmarkExperiment.tsx'; /* Metro dependency 14731 */
function _fun111054(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14927:6, offset: 0x02391c33, size: 136 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/game_claim/useGameClaimCoachmark.tsx');
exports.useCanShowGameClaimCoachmark = useCanShowGameClaimCoachmark;
function useCanShowGameClaimCoachmark(a0) { // fn#111055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14927:237, offset: 0x02391cbb, size: 147 bytes, params: 2, frame: 20
const env0_0 = a0;
const value2 = (GameClaimCoachmarkExperimentModule).useGameClaimCoachmarkEnabled(a0,
'useCanShowGameClaimCoachmark');
const useStateFromStores = FluxModule.useStateFromStores;
let r0 = value2 && Reflect.apply(useStateFromStores, FluxModule, [[PermissionStore], _fun111056, [a0]]);
let value = UnclaimedGamesActionCreatorsModule;
value = value.useHasUnclaimedGames(a0, r0);
r0 = r0 && value;
return r0;
function _fun111056() { // fn#111056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14927:389, offset: 0x02391d4e, size: 44 bytes, params: 1, frame: 14
const permissionStoreBinding = PermissionStore;
const canWithPartialContext = permissionStoreBinding.canWithPartialContext;
const ADMINISTRATOR = Permissions.ADMINISTRATOR;
return Reflect.apply(canWithPartialContext, permissionStoreBinding, [ADMINISTRATOR, {guildId: env0_0}]);
}
}
}
global.__d(_fun111054, 14730, [3784, 661, 14731, 566, 14575,
2]) /* metro module 14730, dependencies: [3784, 661, 14731, 566, 14575, 2] */;