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

39 lines
2.8 KiB
TypeScript

/* Metro module 11319; source: modules/opt_in_channels/useShowChannelOptInNotice.tsx; dependencies: [4864, 661, 1386, 5102, 566, 5103, 2] */
import UserGuildSettingsStore from '../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
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 ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
import * as IsOptInEnabledModule from './isOptInEnabled.tsx'; /* Metro dependency 5102 */
function _fun86342(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:6, offset: 0x01f91e9d, size: 158 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/opt_in_channels/useShowChannelOptInNotice.tsx');
exports.default = useShowChannelOptInNotice;
function useShowChannelOptInNotice(a0) { // fn#86343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:257, offset: 0x01f91f3b, size: 238 bytes, params: 2, frame: 21
const env0_0 = a0;
const value2 = undefined;
const useOptInEnabledForGuild = IsOptInEnabledModule.useOptInEnabledForGuild;
let r0 = a0 == null ? value2 : a0.getGuildId();
r0 = r0 != null ? a0.guild_id : NULL_STRING_GUILD_ID;
const value4 = Reflect.apply(useOptInEnabledForGuild, IsOptInEnabledModule, [r0]);
const value5 = (FluxModule).useStateFromStores([UserGuildSettingsStore],
_fun86344);
const value6 = (require(5103) /* metro dependency 5103: OnboardingHomeUtils */).useCanSeeOnboardingHome((a0 == null ? value2 : a0.guild_id) ?? NULL_STRING_GUILD_ID);
if (a0 == null) {
return false;
}
return value4 && !(value6 && a0.hasFlag(ChannelFlags.IS_GUILD_RESOURCE_CHANNEL)) && !value5 && !a0.isThread();
function _fun86344() { // fn#86344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11505:421, offset: 0x01f92029, size: 40 bytes, params: 1, frame: 12
return env0_0 != null && UserGuildSettingsStore.isChannelRecordOrParentOptedIn(env0_0);
}
}
}
global.__d(_fun86342, 11319, [4864, 661, 1386, 5102, 566, 5103,
2]) /* metro module 11319, dependencies: [4864, 661, 1386, 5102, 566, 5103, 2] */;