Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,87 @@
/* Metro module 14574; source: modules/game_claim/native/GameClaimCardStack.tsx; dependencies: [31, 27, 33, 697, 674, 4501, 10083, 2] */
function _fun110259(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14771:6, offset: 0x0237229d, size: 895 bytes, params: 8, frame: 30
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_2 = value.Image;
const env0_3 = value.View;
value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
value = PX_12 + PX_8 + 96;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
value = value + 4 + PX_16;
const value2 = importDefault(674) /* metro dependency 674 */;
let BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
const value5 = value2(BRAND_500).alpha(0.5).hex();
const value6 = value2;
BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
const value9 = value6(BRAND_500).alpha(0.25).hex();
const value10 = value2;
BRAND_500 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BRAND_500;
const value13 = value10(BRAND_500).alpha(0.35).hex();
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object4 = {};
const object6 = {'flexDirection': 'row', 'alignItems': 'flex-start', 'justifyContent': 'center', 'width': '100%'};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.paddingTop = PX_12;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.paddingBottom = PX_16 + 4;
object4.container = object6;
const object8 = {'width': 72, 'height': 96, 'borderRadius': null, 'overflow': 'hidden', 'flexShrink': 0};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object8.transform = [{rotate: '-6deg'}];
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
object8.shadowColor = BLACK;
object8.shadowOffset = {'width': 0, 'height': 2};
object8.shadowOpacity = 0.25;
object8.shadowRadius = 4;
object8.elevation = 4;
object4.gameCard = object8;
object4.gameImage = {'width': '100%', 'height': '100%'};
const object9 = {'width': 72, 'height': 96, 'borderRadius': null, 'flexShrink': 0, 'transform': null,
'borderWidth': 2, 'borderStyle': 'dashed'};
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object9.transform = [{rotate: '6deg'}];
object9.borderColor = value5;
object9.backgroundColor = value9;
object9.alignItems = 'center';
object9.justifyContent = 'center';
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.marginStart = -PX_8;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.marginTop = PX_8;
object4.addCard = object9;
const object10 = {'width': 21.599999999999998, 'height': 21.599999999999998, 'borderRadius': null,
'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center'};
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object10.backgroundColor = value13;
object4.addIconWrapper = object10;
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_claim/native/GameClaimCardStack.tsx');
exports.default = GameClaimCardStack;
exports.CARD_STACK_HEIGHT = value;
}
function GameClaimCardStack({imageSrc}) { // fn#110260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14771:1393, offset: 0x0237261c, size: 221 bytes, params: 2, frame: 21
const styles = useStyles();
const view = <View style={styles.gameCard}><Image style={styles.gameImage} source={{uri: imageSrc}} resizeMode="cover" /></View>;
const PlusSmallIcon = (require(10083) /* metro dependency 10083: PlusSmallIcon */).PlusSmallIcon;
return (
<View style={styles.container}>
{view}
<View style={styles.addCard}>
<View style={styles.addIconWrapper}>
<PlusSmallIcon size="sm" color="text-brand" />
</View>
</View>
</View>
);
}
@@ -0,0 +1,123 @@
/* Metro module 14573; source: modules/game_claim/native/GameClaimCoachmark.tsx; dependencies: [5, 31, 27, 661, 1376, 33, 697, 14574, 8518, 4582, 4501, 14575, 14577, 1244, 6239, 5278, 5312, 4573, 4578, 6249, 6906, 2] */
function _fun110253(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14770:6, offset: 0x02371bca, size: 555 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.GuildFeatures;
const env0_6 = constantsModule.RelativeMarketingURLs;
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
const value3 = require(33) /* metro dependency 33 */;
const env0_8 = value3.jsx;
const env0_9 = value3.jsxs;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const PX_82 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
const env0_12 = 2 * PX_12;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.card = {padding: PX_12};
const object4 = {'position': 'absolute', 'top': null, 'right': null, 'width': 24, 'height': 24,
'alignItems': 'center', 'justifyContent': 'center', 'zIndex': 1};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.top = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.right = PX_12;
object2.closeButton = object4;
object2.centeredText = {textAlign: 'center'};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.body = {marginTop: PX_4};
const PX_83 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.cta = {marginTop: PX_83};
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object2]);
value = value.memo(_fun110254);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_claim/native/GameClaimCoachmark.tsx');
exports.default = value;
exports.GAME_CLAIM_NOTICE_MARGIN_TOP = PX_8;
exports.GAME_CLAIM_NOTICE_MARGIN_BOTTOM = PX_82;
exports.getScaledGameClaimNoticeHeight = getScaledGameClaimNoticeHeight;
}
function _fun110254({guild, markAsDismissed}) { // fn#110254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14770:650, offset: 0x02371df5, size: 852 bytes, params: 2, frame: 31
const styles = useStyles();
const unclaimedGamesActionCreatorsModule = require(14575) /* metro dependency 14575: UnclaimedGamesActionCreators */;
const useUnclaimedGameIdsForGuild = unclaimedGamesActionCreatorsModule.useUnclaimedGameIdsForGuild;
const r5 = Reflect.apply(useUnclaimedGameIdsForGuild, unclaimedGamesActionCreatorsModule, [guild.id])[0] ?? null;
const defaultImport = importDefault(14577) /* metro dependency 14577: useGameNameAndCoverImage */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const VQq92a = t.VQq92a;
const {coverImageUrl, gameName} = defaultImport(r5, Reflect.apply(string, intl, [VQq92a]));
if (coverImageUrl == null) {
return null;
}
const features = guild.features;
const has = features.has;
const VERIFIED = GuildFeatures.VERIFIED;
const value5 = Reflect.apply(has, features, [VERIFIED]);
string = intl.string;
const r10 = value5 ? Reflect.apply(string, intl, [t.uUARXe]) : Reflect.apply(string, intl, [t['0Dx29f']]);
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
const items2 = [<PressableOpacity accessibilityRole="button" onPress={function() {
return markAsDismissed(ContentDismissActionType.USER_DISMISS);
}} style={styles.closeButton}><XSmallIcon size="sm" color="text-default" /></PressableOpacity>];
items2[1] = ((Component) => <Component imageSrc={coverImageUrl} />)(importDefault(14574) /* metro dependency 14574: GameClaimCardStack */);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const format = intl.format;
const Q11WTQ = (require(1244) /* metro dependency 1244: indexNative */).t.Q11WTQ;
items2[2] = <Text variant="text-md/medium" color="always-white" style={styles.centeredText}>{Reflect.apply(format,
intl, [Q11WTQ, {gameName: gameName}])}</Text>;
items2[3] = <Text variant="text-sm/normal" color="always-white" style={[styles.body,
styles.centeredText]}>{r10}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const buttonProps = {'variant': 'primary', 'size': 'sm', 'text': null, 'icon': null, 'iconPosition': 'end',
text: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2u6ZlY'])};
const LinkExternalSmallIcon = (require(6249) /* metro dependency 6249: LinkExternalSmallIcon */).LinkExternalSmallIcon;
buttonProps.icon = <LinkExternalSmallIcon size="xs" color="white" />;
buttonProps.onPress = env0_3(_fun110257);
items2[4] = <View style={styles.cta}><Button {...buttonProps} /></View>;
return (
<Card variant="secondary" style={styles.card}>
{items2}
</Card>
);
}
function getScaledGameClaimNoticeHeight(a0) { // fn#110258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14770:2064, offset: 0x023721cf, size: 206 bytes, params: 2, frame: 20
const value2 = PX_8 + env0_12;
const CARD_STACK_HEIGHT = (require(14574) /* metro dependency 14574: GameClaimCardStack */).CARD_STACK_HEIGHT;
const value3 = value2 + CARD_STACK_HEIGHT;
const useScaledTextLineHeightAndroidModule = require(8518) /* metro dependency 8518: useScaledTextLineHeightAndroid */;
const value4 = value3 + useScaledTextLineHeightAndroidModule.scaleTextLineHeight('text-md/medium', a0);
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
const value5 = value4 + PX_4;
const value7 = 2 * useScaledTextLineHeightAndroidModule.scaleTextLineHeight('text-sm/normal', a0);
const PX_82 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const value8 = value5 + value7 + PX_82;
const SMALL_BUTTON_HEIGHT = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).SMALL_BUTTON_HEIGHT;
return value8 + SMALL_BUTTON_HEIGHT + PX_8;
}
function* _fun110257() { // fn#110257, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14770:1723, offset: 0x02372171, size: 94 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__;
value = environment.__proto__.__proto__;
var TAKE_ACTION = env2_7.TAKE_ACTION;
require(TAKE_ACTION);
var value3 = env2_1(env2_2[20]);
var redirectDeveloperPortalWithHandoffToken = value3.redirectDeveloperPortalWithHandoffToken;
var DEVELOPER_PORTAL_APPLICATIONS_GAME_IDENTITY = env2_6.DEVELOPER_PORTAL_APPLICATIONS_GAME_IDENTITY;
yield Reflect.apply(redirectDeveloperPortalWithHandoffToken, value3,
[DEVELOPER_PORTAL_APPLICATIONS_GAME_IDENTITY]);
}
}