Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user