Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,80 @@
|
||||
/* Metro module 14575; source: modules/game_claim/UnclaimedGamesActionCreators.tsx; dependencies: [5, 14576, 661, 507, 694, 566, 672, 561, 2] */
|
||||
function _fun110261(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14772:6, offset: 0x023726f9, size: 353 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = function() {
|
||||
return _fetchUnclaimedGames.apply(this, arguments);
|
||||
};
|
||||
const closure2 = useUnclaimedGameIdsForGuild;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
let value = importDefault(14576) /* metro dependency 14576: UnclaimedGamesStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
const env0_6 = [];
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const createFetchStore = fluxModule.createFetchStore;
|
||||
const Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
|
||||
const DAY = Seconds.DAY;
|
||||
value = Reflect.apply(createFetchStore, fluxModule, [value, {getQueryId: function(a0) {
|
||||
return a0 ? 'unclaimed-games' : null;
|
||||
}, get: function() {
|
||||
return UnclaimedGamesStore.getMap();
|
||||
}, load: function() {
|
||||
return fetch_110262();
|
||||
}, staleAfter: DAY, retryConfig: {backoff: backoff, maxRetries: 10}}]);
|
||||
object2 = {fetch: closure};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_claim/UnclaimedGamesActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
exports.fetchUnclaimedGames = closure;
|
||||
exports.useUnclaimedGames = value;
|
||||
exports.useUnclaimedGameIdsForGuild = closure2;
|
||||
exports.useHasUnclaimedGames = useHasUnclaimedGames;
|
||||
}
|
||||
|
||||
function _fetchUnclaimedGames() { // fn#110263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14772:222, offset: 0x0237285a, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun110265).apply(this, arguments);
|
||||
}
|
||||
|
||||
function useUnclaimedGameIdsForGuild(a0) { // fn#110266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14772:730, offset: 0x0237292a, size: 56 bytes, params: 2, frame: 13
|
||||
const value = a1;
|
||||
const value2 = undefined;
|
||||
const data = env0_7(!(value !== value2) || value).data;
|
||||
let r0 = data == null ? value2 : data[a0];
|
||||
r0 = r0 ?? env0_6;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function backoff() { // fn#110270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14772:671, offset: 0x02372987, size: 78 bytes, params: 1, frame: 13
|
||||
let value = importDefault(561) /* metro dependency 561: Backoff */;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const value2 = 5 * MINUTE;
|
||||
const value3 = Object.create(value.prototype, {constructor: {value: value}});
|
||||
value = new value(value2);
|
||||
return value instanceof Object ? value : value3;
|
||||
}
|
||||
|
||||
function useHasUnclaimedGames(a0) { // fn#110271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14772:1110, offset: 0x023729d5, size: 40 bytes, params: 2, frame: 13
|
||||
const value = a1;
|
||||
return useUnclaimedGameIdsForGuild(a0, !(value !== undefined) || value).length > 0;
|
||||
}
|
||||
|
||||
function* _fun110265() { // fn#110265, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14772:285, offset: 0x02372897, size: 147 bytes, params: 1, frame: 16
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[3]).HTTP;
|
||||
var get = HTTP.get;
|
||||
var UNCLAIMED_GAMES = env2_5.UNCLAIMED_GAMES;
|
||||
yield Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
|
||||
url: UNCLAIMED_GAMES}]);
|
||||
var value3 = undefined;
|
||||
if (false) {
|
||||
return value3;
|
||||
}
|
||||
var body = value3.body;
|
||||
value = env2_1(env2_2[4]);
|
||||
value.dispatch({type: 'UNCLAIMED_GAMES_FETCH_SUCCESS', guildIdToGameIds: body});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/* Metro module 14576; source: modules/game_claim/UnclaimedGamesStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun110272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:6, offset: 0x023729fd, size: 285 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun110276(Store);
|
||||
value.displayName = 'UnclaimedGamesStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
|
||||
env0_5 = null;
|
||||
}, UNCLAIMED_GAMES_FETCH_SUCCESS: function(a0) {
|
||||
env0_5 = a0.guildIdToGameIds;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_claim/UnclaimedGamesStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_110273() { // fn#110273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:148, offset: 0x02372b1a, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_110273_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun110276(a0) { // fn#110276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:358, offset: 0x02372b7c, size: 155 bytes, params: 2, frame: 16
|
||||
const closure = UnclaimedGamesStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getMap', value: value_110278}, {key: 'getUnclaimedGameIdsForGuild',
|
||||
value: value_110279}, {key: 'hasUnclaimedGames', value: value_110280}, {key: 'getGuildIdsWithUnclaimedGames',
|
||||
value: value_110281}]);
|
||||
}
|
||||
|
||||
function value_110279(a0) { // fn#110279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:742, offset: 0x02372c17, size: 35 bytes, params: 2, frame: 4
|
||||
const value = environment.__proto__;
|
||||
let r0 = env1_5?.[a0];
|
||||
r0 = r0 ?? [];
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_110280(a0) { // fn#110280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:841, offset: 0x02372c3a, size: 45 bytes, params: 2, frame: 4
|
||||
const value = environment.__proto__;
|
||||
const r1 = env1_5?.[a0];
|
||||
return r1 != null && r1.length > 0;
|
||||
}
|
||||
|
||||
function value_110281() { // fn#110281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:957, offset: 0x02372c67, size: 66 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
if (env1_5 == null) {
|
||||
return [];
|
||||
}
|
||||
const binding = env1_5;
|
||||
const Object = global.Object;
|
||||
return Object.keys(binding).filter(_fun110282);
|
||||
}
|
||||
|
||||
function _fun110282(a0) { // fn#110282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14773:1026, offset: 0x02372ca9, size: 37 bytes, params: 2, frame: 2
|
||||
return (env0_0[a0] ?? []).length > 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 14731; source: modules/game_claim/experiments/GameClaimCoachmarkExperiment.tsx; dependencies: [4620, 2] */
|
||||
function _fun111057(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14928:6, offset: 0x02391d7a, size: 187 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(4620) /* metro dependency 4620: experiments */;
|
||||
value = value.createExperiment({'kind': 'guild', 'id': '2026-02_game_claim_coachmark',
|
||||
'label': 'Game Claim Coachmark', defaultConfig: {enabled: false}, treatments: [{'id': 1,
|
||||
'label': 'Enable Game Claim Coachmark', config: {enabled: true}}]});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_claim/experiments/GameClaimCoachmarkExperiment.tsx');
|
||||
exports.GameClaimCoachmarkExperiment = value;
|
||||
exports.useGameClaimCoachmarkEnabled = useGameClaimCoachmarkEnabled;
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 14730; source: modules/game_claim/useGameClaimCoachmark.tsx; dependencies: [3784, 661, 14731, 566, 14575, 2] */
|
||||
function _fun111054(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14927:6, offset: 0x02391c33, size: 136 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_claim/useGameClaimCoachmark.tsx');
|
||||
exports.useCanShowGameClaimCoachmark = useCanShowGameClaimCoachmark;
|
||||
}
|
||||
|
||||
function useCanShowGameClaimCoachmark(a0) { // fn#111055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14927:237, offset: 0x02391cbb, size: 147 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(14731) /* metro dependency 14731: GameClaimCoachmarkExperiment */).useGameClaimCoachmarkEnabled(a0,
|
||||
'useCanShowGameClaimCoachmark');
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
let r0 = value2 && Reflect.apply(useStateFromStores, fluxModule, [[PermissionStore], _fun111056, [a0]]);
|
||||
let value = require(14575) /* metro dependency 14575: UnclaimedGamesActionCreators */;
|
||||
value = value.useHasUnclaimedGames(a0, r0);
|
||||
r0 = r0 && value;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun111056() { // fn#111056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14927:389, offset: 0x02391d4e, size: 44 bytes, params: 1, frame: 14
|
||||
const canWithPartialContext = PermissionStore.canWithPartialContext;
|
||||
const ADMINISTRATOR = Permissions.ADMINISTRATOR;
|
||||
return Reflect.apply(canWithPartialContext, PermissionStore, [ADMINISTRATOR, {guildId: env0_0}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user