26 lines
1.9 KiB
TypeScript
26 lines
1.9 KiB
TypeScript
/* Metro module 12154; source: modules/channel/ChannelPinningExperiment.tsx; dependencies: [1854, 5102, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
|
|
import * as IsOptInEnabledModule from '../opt_in_channels/isOptInEnabled.tsx'; /* Metro dependency 5102 */
|
|
|
|
function _fun93226(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12340:6, offset: 0x020ab3cf, size: 168 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = (ApexModule).createApexExperiment({'name': '2026-04-channel-pinning',
|
|
'kind': 'user', defaultConfig: {canPinEverywhere: false}, variations: {[1]: {canPinEverywhere: true}}});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/channel/ChannelPinningExperiment.tsx');
|
|
exports.useCanPinChannelsInGuild = useCanPinChannelsInGuild;
|
|
function useCanPinChannelsInGuild(a0) { // fn#93227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12340:351, offset: 0x020ab477, size: 102 bytes, params: 2, frame: 13
|
|
const value2 = (IsOptInEnabledModule).useOptInEnabledForGuild(a0);
|
|
const binding = env0_2;
|
|
const useConfig = binding.useConfig;
|
|
const canPinEverywhere = Reflect.apply(useConfig, binding,
|
|
[{location: 'useCanPinChannelsInGuild'}]).canPinEverywhere;
|
|
return {canPin: value2 || canPinEverywhere, pinningNewlyAvailable: !value2 && canPinEverywhere};
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun93226, 12154, [1854, 5102, 2]) /* metro module 12154, dependencies: [1854, 5102, 2] */;
|