/* Metro module 9765; source: modules/design/PlaygroundAccessExperiment.tsx; dependencies: [1878, 1854, 566, 2] */ import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */ function _fun76646(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9951:6, offset: 0x01ddec1e, size: 242 bytes, params: 8, frame: 23 const env0_0 = require; const usePlaygroundAccessExperiment2 = usePlaygroundAccessExperiment; const getPlaygroundAccessExperiment2 = getPlaygroundAccessExperiment; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ApexModule; value = value.createApexExperiment({'name': '2026-02-mana-playground-access', 'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}}); (FileImportTrackerModule).fileFinishedImporting('modules/design/PlaygroundAccessExperiment.tsx'); exports.default = value; exports.usePlaygroundAccessExperiment = usePlaygroundAccessExperiment2; exports.getPlaygroundAccessExperiment = getPlaygroundAccessExperiment2; exports.useHasPlaygroundAccess = useHasPlaygroundAccess; exports.getHasPlaygroundAccess = getHasPlaygroundAccess; function usePlaygroundAccessExperiment(a0) { // fn#76647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9951:249, offset: 0x01dded10, size: 34 bytes, params: 2, frame: 12 const binding = env0_3; const useConfig = binding.useConfig; return Reflect.apply(useConfig, binding, [{location: a0}]).enabled; } function getPlaygroundAccessExperiment(a0) { // fn#76648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9951:332, offset: 0x01dded32, size: 34 bytes, params: 2, frame: 12 const binding = env0_3; const getConfig = binding.getConfig; return Reflect.apply(getConfig, binding, [{location: a0}]).enabled; } function useHasPlaygroundAccess(a0) { // fn#76649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9951:655, offset: 0x01dded54, size: 130 bytes, params: 2, frame: 16 const value2 = undefined; const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() { return UserStore.getCurrentUser(); }); let r0 = (currentUser == null ? value2 : currentUser.isStaff()) === true || (currentUser == null ? value2 : currentUser.isStaffPersonal()) === true; r0 = !r0 ? usePlaygroundAccessExperiment(a0) : r0; return r0; } function getHasPlaygroundAccess(a0) { // fn#76651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9951:905, offset: 0x01ddedd6, size: 88 bytes, params: 2, frame: 15 const currentUser = UserStore.getCurrentUser(); const value3 = undefined; let r0 = (currentUser == null ? value3 : currentUser.isStaff()) === true || (currentUser == null ? value3 : currentUser.isStaffPersonal()) === true; r0 = !r0 ? getPlaygroundAccessExperiment(a0) : r0; return r0; } } global.__d(_fun76646, 9765, [1878, 1854, 566, 2]) /* metro module 9765, dependencies: [1878, 1854, 566, 2] */;