31 lines
2.1 KiB
TypeScript
31 lines
2.1 KiB
TypeScript
/* Metro module 14730; source: modules/game_claim/useGameClaimCoachmark.tsx; dependencies: [3784, 661, 14731, 566, 14575, 2] */
|
|
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});
|
|
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
|
const env0_3 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
|
(require(2) /* metro dependency 2 */).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 = (require(14731) /* metro dependency 14731: GameClaimCoachmarkExperiment */).useGameClaimCoachmarkEnabled(a0,
|
|
'useCanShowGameClaimCoachmark');
|
|
const fluxModule = require(566) /* metro dependency 566: flux */;
|
|
const useStateFromStores = fluxModule.useStateFromStores;
|
|
let r0 = value2 && Reflect.apply(useStateFromStores, fluxModule, [[PermissionStore], _fun111056, [a0]]);
|
|
let value = require(14575) /* metro dependency 14575: UnclaimedGamesActionCreators */;
|
|
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 canWithPartialContext = PermissionStore.canWithPartialContext;
|
|
const ADMINISTRATOR = Permissions.ADMINISTRATOR;
|
|
return Reflect.apply(canWithPartialContext, PermissionStore, [ADMINISTRATOR, {guildId: env0_0}]);
|
|
}
|
|
|