This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,140 +1,158 @@
/* Metro module 14398; source: modules/lurker_mode/native/LurkerPreviewCooldownBadge.tsx; dependencies: [57, 31, 27, 33, 4017, 7744, 4501, 697, 1305, 6929, 3860, 4504, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import Module07744 from '../../../by-id/module-07744.js'; /* Metro dependency 7744 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as UseTokenModule from '../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TimingModule from '../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as Module07744Module from '../../../by-id/module-07744.js'; /* Metro dependency 7744 */
function _fun109035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:6, offset: 0x0233ad8d, size: 596 bytes, params: 8, frame: 25
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
const Math = global.Math;
const PI = Math.PI;
const env0_7 = 2 * PI * 6;
object3 = {duration: 1000};
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
object3.easing = Easing.linear;
const reanimatedRexport = importDefault(4017) /* metro dependency 4017: ReanimatedRexport */;
const createAnimatedComponent = reanimatedRexport.createAnimatedComponent;
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
const env0_9 = Reflect.apply(createAnimatedComponent, reanimatedRexport, [Circle]);
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'borderRadius': 20, 'backgroundColor': null, 'position': 'absolute'};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object4.backgroundColor = BACKGROUND_BASE_LOWEST;
const BADGE_PADDING = (require(1305) /* metro dependency 1305: native */).BADGE_PADDING;
object4.bottom = -BADGE_PADDING;
object4.right = -BADGE_PADDING;
object4.padding = BADGE_PADDING;
object4.height = 22;
object4.width = 22;
object4.alignItems = 'center';
object4.justifyContent = 'center';
object3.outerRing = object4;
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
object3.innerFill = {'borderRadius': 20, 'backgroundColor': null, 'height': 16, 'width': 16, 'alignItems': 'center',
object = {duration: 1000};
const Easing = (ReanimatedRexportModule).Easing;
object.easing = Easing.linear;
const createAnimatedComponent = ReanimatedRexport.createAnimatedComponent;
const Circle = (Module07744Module).Circle;
const env0_9 = Reflect.apply(createAnimatedComponent, ReanimatedRexport, [Circle]);
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'borderRadius': 20, 'backgroundColor': null, 'position': 'absolute'};
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object2.backgroundColor = BACKGROUND_BASE_LOWEST;
const BADGE_PADDING = (NativeModule).BADGE_PADDING;
object2.bottom = -BADGE_PADDING;
object2.right = -BADGE_PADDING;
object2.padding = BADGE_PADDING;
object2.height = 22;
object2.width = 22;
object2.alignItems = 'center';
object2.justifyContent = 'center';
object.outerRing = object2;
const BACKGROUND_MOD_STRONG = (Native).colors.BACKGROUND_MOD_STRONG;
object.innerFill = {'borderRadius': 20, 'backgroundColor': null, 'height': 16, 'width': 16, 'alignItems': 'center',
'justifyContent': 'center', backgroundColor: BACKGROUND_MOD_STRONG};
object3.progressRing = {position: 'absolute', transform: [{rotate: '90deg'}, {scaleX: -1}]};
const env0_10 = Reflect.apply(createStyles, createStylesModule, [object3]);
object3 = {code: 'function LurkerPreviewCooldownBadgeTsx1(){const{PROGRESS_CIRCUMFERENCE,animatedProgress}=this.__closure;return{strokeDashoffset:PROGRESS_CIRCUMFERENCE*(1-animatedProgress.get())};}'};
object.progressRing = {position: 'absolute', transform: [{rotate: '90deg'}, {scaleX: -1}]};
const env0_10 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function LurkerPreviewCooldownBadgeTsx1(){const{PROGRESS_CIRCUMFERENCE,animatedProgress}=this.__closure;return{strokeDashoffset:PROGRESS_CIRCUMFERENCE*(1-animatedProgress.get())};}'};
value = value.memo(LurkerPreviewCooldownBadge);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/lurker_mode/native/LurkerPreviewCooldownBadge.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/lurker_mode/native/LurkerPreviewCooldownBadge.tsx');
exports.default = value;
exports.useHasExpired = useHasExpired;
}
function LurkerPreviewCooldownBadge({expiresAt, totalDurationMs = require(dependencyMap[9]).LURKER_PREVIEW_PERSIST_MS, style}) { // fn#109036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:969, offset: 0x0233afe1, size: 485 bytes, params: 2, frame: 25
const styles = useStyles();
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
const value2 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_BRAND]);
let binding = env0_4;
const value3 = binding.useCallback(_fun109037, [expiresAt, totalDurationMs]);
const value4 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(value3());
binding.useEffect(_fun109038, [value4, value3]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedProps = reanimatedRexportModule.useAnimatedProps;
const closure = LurkerPreviewCooldownBadgeP;
binding = env0_7;
closure.__closure = {PROGRESS_CIRCUMFERENCE: binding, animatedProgress: value4};
closure.__workletHash = 7162520447613;
closure.__initData = env0_11;
return (
<View
style={[styles.outerRing, style]}
pointerEvents="none"
accessibilityElementsHidden
importantForAccessibility="no-hide-descendants"
>
<View style={styles.innerFill}>
{((Component) => <Component width={16} height={16} style={styles.progressRing}>{((Component) => <Component cx={8} cy={8} r={6} fill="none" stroke={value2} strokeWidth={4} strokeDasharray={binding} strokeLinecap="butt" animatedProps={Reflect.apply(useAnimatedProps,
reanimatedRexportModule,
[closure])} />)(env0_9)}</Component>)(importDefault(7744) /* metro dependency 7744 */)}
function LurkerPreviewCooldownBadge({expiresAt, totalDurationMs = require(dependencyMap[9]).LURKER_PREVIEW_PERSIST_MS, style}) { // fn#109036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:969, offset: 0x0233afe1, size: 485 bytes, params: 2, frame: 25
const styles = useStyles();
const useToken = UseTokenModule.useToken;
const BACKGROUND_BRAND = (Native).colors.BACKGROUND_BRAND;
const value2 = Reflect.apply(useToken, UseTokenModule, [BACKGROUND_BRAND]);
let binding = env0_4;
const value3 = binding.useCallback(_fun109037, [expiresAt, totalDurationMs]);
const value4 = (ReanimatedRexportModule).useSharedValue(value3());
binding.useEffect(_fun109038, [value4, value3]);
const useAnimatedProps = ReanimatedRexportModule.useAnimatedProps;
const LurkerPreviewCooldownBadgeP2 = LurkerPreviewCooldownBadgeP;
binding = env0_7;
LurkerPreviewCooldownBadgeP2.__closure = {PROGRESS_CIRCUMFERENCE: binding, animatedProgress: value4};
LurkerPreviewCooldownBadgeP2.__workletHash = 7162520447613;
LurkerPreviewCooldownBadgeP2.__initData = env0_11;
return (
<View
style={[styles.outerRing, style]}
pointerEvents="none"
accessibilityElementsHidden
importantForAccessibility="no-hide-descendants"
>
<View style={styles.innerFill}>
{((Component) => <Component width={16} height={16} style={styles.progressRing}>{((Component) => <Component cx={8} cy={8} r={6} fill="none" stroke={value2} strokeWidth={4} strokeDasharray={binding} strokeLinecap="butt" animatedProps={Reflect.apply(useAnimatedProps,
ReanimatedRexportModule,
[LurkerPreviewCooldownBadgeP2])} />)(env0_9)}</Component>)(Module07744)}
</View>
</View>
</View>
);
}
);
function _fun109037() { // fn#109037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1160, offset: 0x0233b1c6, size: 71 bytes, params: 1, frame: 11
const expiresAtBinding = expiresAt;
const Date = global.Date;
const value = (expiresAtBinding - Date.now()) / env0_1;
const value3 = 0;
return 0.9 * (value < value3 ? value3 : value > 1 ? 1 : value);
}
function useHasExpired(a0) { // fn#109042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:2111, offset: 0x0233b2f4, size: 99 bytes, params: 2, frame: 17
const env0_0 = a0;
const binding = env0_4;
const value = env0_3(binding.useState(null), 2);
const property = value[0];
const env0_1 = value[1];
binding.useEffect(_fun109043, [a0]);
return a0 != null && property === a0;
}
function _fun109038() { // fn#109038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1278, offset: 0x0233b20d, size: 114 bytes, params: 1, frame: 19
const set = Module00057.set;
Reflect.apply(set, Module00057, [TimingModule.withTiming(env0_2(), env1_8, 'animate-always')]);
const env0_0 = global.setInterval(_fun109039, 1000);
return _fun109040;
function _fun109039() { // fn#109039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1353, offset: 0x0233b27f, size: 74 bytes, params: 1, frame: 18
const value = environment.__proto__;
const binding = env1_3;
const set = binding.set;
Reflect.apply(set, binding, [TimingModule.withTiming(env1_2(), env2_8, 'animate-always')]);
}
function _fun109037() { // fn#109037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1160, offset: 0x0233b1c6, size: 71 bytes, params: 1, frame: 11
const expiresAtBinding = expiresAt;
const Date = global.Date;
const value = (expiresAtBinding - Date.now()) / env0_1;
const value3 = 0;
return 0.9 * (value < value3 ? value3 : value > 1 ? 1 : value);
}
function _fun109040() { // fn#109040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1422, offset: 0x01f6d8c0, size: 24 bytes, params: 1, frame: 11
global.clearInterval(env0_0);
}
function _fun109038() { // fn#109038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1278, offset: 0x0233b20d, size: 114 bytes, params: 1, frame: 19
const binding = env0_3;
const set = binding.set;
const timingModule = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [timingModule.withTiming(env0_2(), env1_8, 'animate-always')]);
const env0_0 = global.setInterval(_fun109039, 1000);
return _fun109040;
}
}
function LurkerPreviewCooldownBadgeP() { // fn#109041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1491, owner: LurkerPreviewCooldownBadge.p, offset: 0x0233b2c9, size: 43 bytes, params: 1, frame: 11
const object2 = {};
const value = environment.__proto__;
object2.strokeDashoffset = env1_7 * (1 - env0_3.get());
return object2;
}
function LurkerPreviewCooldownBadgeP() { // fn#109041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1491, owner: LurkerPreviewCooldownBadge.p, offset: 0x0233b2c9, size: 43 bytes, params: 1, frame: 11
const object = {};
const value = environment.__proto__;
object.strokeDashoffset = env1_7 * (1 - Module00057.get());
return object;
}
function _fun109043() { // fn#109043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:2203, offset: 0x0233b357, size: 97 bytes, params: 1, frame: 16
var Math;
var max;
var binding;
var Date;
var value;
if (env0_0 != null) {
Math = global.Math;
max = Math.max;
binding = env0_0;
Date = global.Date;
value = binding - Date.now();
value = Reflect.apply(max, Math, [0, value]);
var env0_0 = global.setTimeout(_fun109044, value);
return _fun109045;
}
function useHasExpired(a0) { // fn#109042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:2111, offset: 0x0233b2f4, size: 99 bytes, params: 2, frame: 17
const env0_0 = a0;
const binding = env0_4;
const value = Module00057(binding.useState(null), 2);
const property = value[0];
const env0_1 = value[1];
binding.useEffect(_fun109043, [a0]);
return a0 != null && property === a0;
function _fun109043() { // fn#109043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:2203, offset: 0x0233b357, size: 97 bytes, params: 1, frame: 16
var Math;
var max;
var binding;
var Date;
var value;
if (env0_0 != null) {
Math = global.Math;
max = Math.max;
binding = env0_0;
Date = global.Date;
value = binding - Date.now();
value = Reflect.apply(max, Math, [0, value]);
var env0_0 = global.setTimeout(_fun109044, value);
return _fun109045;
}
function _fun109044() { // fn#109044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:2265, offset: 0x02012732, size: 20 bytes, params: 1, frame: 11
return env1_1(env1_0);
}
function _fun109045() { // fn#109045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:2284, offset: 0x016d7e7e, size: 24 bytes, params: 1, frame: 11
return global.clearTimeout(env0_0);
}
}
}
}
function _fun109039() { // fn#109039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14595:1353, offset: 0x0233b27f, size: 74 bytes, params: 1, frame: 18
const value = environment.__proto__;
const binding = env1_3;
const set = binding.set;
const timingModule = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [timingModule.withTiming(env1_2(), env2_8, 'animate-always')]);
}
global.__d(_fun109035, 14398, [57, 31, 27, 33, 4017, 7744, 4501, 697, 1305, 6929, 3860, 4504,
2]) /* metro module 14398, dependencies: [57, 31, 27, 33, 4017, 7744, 4501, 697, 1305, 6929, 3860, 4504, 2] */;
@@ -1,88 +1,100 @@
/* Metro module 9321; source: modules/lurker_mode/native/LurkerServerPreviewJoinButton.tsx; dependencies: [31, 1379, 1878, 3785, 661, 33, 566, 6927, 1314, 6914, 6929, 6593, 4578, 1244, 1423, 3995, 2] */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import AvatarUtils from '../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import LurkingStore from '../LurkingStore.tsx'; /* Metro dependency 3785 */
import UserUtils from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
import LurkerPreviewManager from '../LurkerPreviewManager.tsx'; /* Metro dependency 6929 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as LurkerPreviewAnalyticsModule from '../LurkerPreviewAnalytics.tsx'; /* Metro dependency 6914 */
function _fun72815(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9507:6, offset: 0x01d54ae7, size: 222 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).JoinGuildSources;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(LurkerServerPreviewJoinButton);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/lurker_mode/native/LurkerServerPreviewJoinButton.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/lurker_mode/native/LurkerServerPreviewJoinButton.tsx');
exports.default = value;
}
function LurkerServerPreviewJoinButton({guildId, joinSource, onBeforeJoin}) { // fn#72816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9507:191, offset: 0x01d54bc5, size: 442 bytes, params: 2, frame: 20
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value2 = currentUser.useCallback(_fun72818, [guildId, joinSource, onBeforeJoin]);
if (currentUser == null) {
function LurkerServerPreviewJoinButton({guildId, joinSource, onBeforeJoin}) { // fn#72816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9507:191, offset: 0x01d54bc5, size: 442 bytes, params: 2, frame: 20
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const Button = (ButtonNativeModule).Button;
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const value2 = currentUser.useCallback(_fun72818, [guildId, joinSource, onBeforeJoin]);
if (currentUser == null) {
return (
<Button
grow
variant="primary"
size="md"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VJlc0S)}
onPress={value2}
/>
);
}
const userAvatarSource = (AvatarUtils).getUserAvatarSource(currentUser,
false);
const value4 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['5qtVhX'],
{usernameHook: usernameHook_72819});
const Button2 = (ButtonNativeModule).Button;
const Icon = Button2.Icon;
return (
<Button
grow
variant="primary"
size="md"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VJlc0S)}
text={value4}
icon={<Icon source={userAvatarSource} variant="entity" />}
onPress={value2}
/>
);
}
const userAvatarSource = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(currentUser,
false);
const value4 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['5qtVhX'],
{usernameHook: usernameHook_72819});
const Button2 = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const Icon = Button2.Icon;
return (
<Button
grow
variant="primary"
size="md"
text={value4}
icon={<Icon source={userAvatarSource} variant="entity" />}
onPress={value2}
/>
);
}
function _fun72818() { // fn#72818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9507:351, offset: 0x01d54d7f, size: 279 bytes, params: 1, frame: 21
var value5;
var moduleValue;
let value = environment.__proto__;
const lurkingSourceForGuild = LurkingStore.getLurkingSourceForGuild(guildId);
const value4 = undefined;
const type = lurkingSourceForGuild == null ? value4 : lurkingSourceForGuild.type;
const DIRECTORY_ENTRY = JoinGuildSources.DIRECTORY_ENTRY;
if (type === DIRECTORY_ENTRY) {
value5 = ChannelStore.getChannel(lurkingSourceForGuild.directoryChannelId);
if (value5 != null) {
moduleValue = require(6927) /* metro dependency 6927: HubProgressActionCreators */;
moduleValue.setHubProgressActionComplete(value5.getGuildId(),
(require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep.JOIN_GUILD);
function _fun72818() { // fn#72818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9507:351, offset: 0x01d54d7f, size: 279 bytes, params: 1, frame: 21
var channelStoreBinding;
var value5;
var moduleValue;
let value = environment.__proto__;
const lurkingSourceForGuild = LurkingStore.getLurkingSourceForGuild(guildId);
const value4 = undefined;
const type = lurkingSourceForGuild == null ? value4 : lurkingSourceForGuild.type;
const DIRECTORY_ENTRY = JoinGuildSources.DIRECTORY_ENTRY;
if (type === DIRECTORY_ENTRY) {
channelStoreBinding = ChannelStore;
value5 = channelStoreBinding.getChannel(lurkingSourceForGuild.directoryChannelId);
if (value5 != null) {
moduleValue = require(6927) /* metro dependency 6927: HubProgressActionCreators */;
moduleValue.setHubProgressActionComplete(value5.getGuildId(),
(require(1314) /* metro dependency 1314: preloaded_user_settings */).HubProgressStep.JOIN_GUILD);
}
}
const trackJoinClicked = LurkerPreviewAnalyticsModule.trackJoinClicked;
guildIdBinding = guildId;
const joinSourceBinding = joinSource;
const defaultImport = LurkerPreviewManager;
Reflect.apply(trackJoinClicked, LurkerPreviewAnalyticsModule, [guildIdBinding, joinSourceBinding,
defaultImport.hasNavigatedAway(guildIdBinding)]);
if (onBeforeJoin != null) {
onBeforeJoin();
}
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
value.joinGuild(guildId, {source: joinSource});
return value4;
}
function LurkerServerPreviewJoinButtonUsernameHook() { // fn#72819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9507:936, owner: LurkerServerPreviewJoinButton.usernameHook, offset: 0x01d54e96, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (UserUtils).getFormattedName(currentUser);
}
}
const lurkerPreviewAnalyticsModule = require(6914) /* metro dependency 6914: LurkerPreviewAnalytics */;
const trackJoinClicked = lurkerPreviewAnalyticsModule.trackJoinClicked;
guildIdBinding = guildId;
const joinSourceBinding = joinSource;
const defaultImport = importDefault(6929) /* metro dependency 6929: LurkerPreviewManager */;
Reflect.apply(trackJoinClicked, lurkerPreviewAnalyticsModule, [guildIdBinding, joinSourceBinding,
defaultImport.hasNavigatedAway(guildIdBinding)]);
if (onBeforeJoin != null) {
onBeforeJoin();
}
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
value.joinGuild(guildId, {source: joinSource});
return value4;
}
function LurkerServerPreviewJoinButtonUsernameHook() { // fn#72819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9507:936, owner: LurkerServerPreviewJoinButton.usernameHook, offset: 0x01d54e96, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(3995) /* metro dependency 3995: UserUtils */).getFormattedName(currentUser);
}
global.__d(_fun72815, 9321, [31, 1379, 1878, 3785, 661, 33, 566, 6927, 1314, 6914, 6929, 6593, 4578, 1244, 1423,
3995,
2]) /* metro module 9321, dependencies: [31, 1379, 1878, 3785, 661, 33, 566, 6927, 1314, 6914, 6929, 6593, 4578, 1244, 1423, 3995, 2] */;
@@ -1,39 +1,45 @@
/* Metro module 9305; source: modules/lurker_mode/native/ServerPreviewPill.tsx; dependencies: [31, 27, 33, 4501, 697, 4573, 1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun72729(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9491:6, offset: 0x01d5085e, size: 297 bytes, params: 8, frame: 22
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'position': 'absolute', 'top': 16, 'left': 16, 'paddingHorizontal': 10, 'paddingVertical': 4};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'position': 'absolute', 'top': 16, 'left': 16, 'paddingHorizontal': 10, 'paddingVertical': 4};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object4.backgroundColor = WHITE;
object3.pill = object4;
object2.backgroundColor = WHITE;
object.pill = object2;
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
object3.text = {'color': null, 'textTransform': 'uppercase', 'letterSpacing': 0.5, color: BLACK};
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/lurker_mode/native/ServerPreviewPill.tsx');
object.text = {'color': null, 'textTransform': 'uppercase', 'letterSpacing': 0.5, color: BLACK};
const env0_4 = Reflect.apply(createStyles, CreateStylesModule, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/lurker_mode/native/ServerPreviewPill.tsx');
exports.default = ServerPreviewPill;
function ServerPreviewPill() { // fn#72730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9491:476, offset: 0x01d50987, size: 158 bytes, params: 1, frame: 20
const styles = useStyles();
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const KNhFgD = (IndexNativeModule).t.KNhFgD;
return (
<View style={styles.pill} accessibilityRole="text">
<Text variant="text-xs/bold" style={styles.text}>
{Reflect.apply(string, intl, [KNhFgD])}
</Text>
</View>
);
}
}
function ServerPreviewPill() { // fn#72730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9491:476, offset: 0x01d50987, size: 158 bytes, params: 1, frame: 20
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const KNhFgD = (require(1244) /* metro dependency 1244: indexNative */).t.KNhFgD;
return (
<View style={styles.pill} accessibilityRole="text">
<Text variant="text-xs/bold" style={styles.text}>
{Reflect.apply(string, intl, [KNhFgD])}
</Text>
</View>
);
}
global.__d(_fun72729, 9305, [31, 27, 33, 4501, 697, 4573, 1244,
2]) /* metro module 9305, dependencies: [31, 27, 33, 4501, 697, 4573, 1244, 2] */;