/* Metro module 12383; source: modules/clips/ClipsExperiment.tsx; dependencies: [4259, 1878, 1880, 1854, 12384, 566, 3802, 2] */ import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */ import MediaEngineStore from '../../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */ import IsClientClipsCapable from './isClientClipsCapable.tsx'; /* Metro dependency 12384 */ 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 ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */ import * as PremiumConstantsModule from '../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */ function _fun94339(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#94339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12569:6, offset: 0x02114545, size: 327 bytes, params: 8, frame: 21 const env0_0 = require; const closure = function(a0) { var value2 = undefined; var defaultImport = importDefault(dependencyMap[6]); return defaultImport.isPremiumAtLeast(a0 == null ? value2 : a0.premiumType, PremiumTypes.TIER_2); }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ApexModule; value = value.createApexExperiment({'kind': 'user', 'name': '2026-03-clips-experiment', defaultConfig: {'enableClips': false, 'ignorePlatformRestriction': false}, variations: {[1]: {'enableClips': true, 'ignorePlatformRestriction': false}, [2]: {'enableClips': true, 'ignorePlatformRestriction': true}}}); (FileImportTrackerModule).fileFinishedImporting('modules/clips/ClipsExperiment.tsx'); exports.ClipsExperiment = value; exports.areClipsAvailable = areClipsAvailable; exports.useIsClipsAvailable = useIsClipsAvailable; exports.isUserPremiumTypeForClipsEarlyAccess = closure; exports.isScreenshotKeybindEnabled = function() { return false; }; exports.useScreenshotKeybindEnabled = function() { return false; }; function areClipsAvailable() { // fn#94341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12569:613, offset: 0x021146cf, size: 104 bytes, params: 1, frame: 13 var isUserPremiumTypeForClipsEarlyAccessBinding; var userStoreBinding; var isUserPremiumTypeForClipsEarlyAccess2; var binding; if ((importDefault(12384) /* metro dependency 12384: isClientClipsCapable */)(MediaEngineStore)) { isUserPremiumTypeForClipsEarlyAccessBinding = isUserPremiumTypeForClipsEarlyAccess; userStoreBinding = UserStore; isUserPremiumTypeForClipsEarlyAccess2 = isUserPremiumTypeForClipsEarlyAccessBinding(userStoreBinding.getCurrentUser()); binding = env0_6; return isUserPremiumTypeForClipsEarlyAccess2 || binding.getConfig({location: 'areClipsEnabled'}).enableClips; } return false; } function useIsClipsAvailable() { // fn#94342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12569:820, offset: 0x02114737, size: 129 bytes, params: 1, frame: 15 const value2 = (IsClientClipsCapable)(MediaEngineStore); const value3 = (FluxModule).useStateFromStores([UserStore], _fun94343); const binding = env0_6; const getConfig = binding.getConfig; return (Reflect.apply(getConfig, binding, [{location: 'useEnableClips'}]).enableClips || value3) && value2; function _fun94343() { // fn#94343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12569:902, offset: 0x021147b8, size: 29 bytes, params: 1, frame: 11 const value = environment.__proto__; return isUserPremiumTypeForClipsEarlyAccess(UserStore.getCurrentUser()); } } } global.__d(_fun94339, 12383, [4259, 1878, 1880, 1854, 12384, 566, 3802, 2]) /* metro module 12383, dependencies: [4259, 1878, 1880, 1854, 12384, 566, 3802, 2] */;