Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,96 @@
|
||||
/* Metro module 6780; source: modules/game_detection/native/GameIcon.tsx; dependencies: [31, 27, 1880, 33, 4501, 697, 6781, 6782, 6783, 6784, 2] */
|
||||
function _fun53423(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6958:6, offset: 0x01348443, size: 662 bytes, params: 8, frame: 25
|
||||
var object9;
|
||||
const closure = GameIcon;
|
||||
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;
|
||||
const env0_4 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumSubscriptionSKUs;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object9 = {SIZE_24: 'size_24', SMALL: 'small', NORMAL: 'normal', LARGE: 'large'};
|
||||
const object10 = {};
|
||||
const SIZE_24 = object9.SIZE_24;
|
||||
object10[SIZE_24] = 24;
|
||||
const SMALL = object9.SMALL;
|
||||
object10[SMALL] = 32;
|
||||
const NORMAL = object9.NORMAL;
|
||||
object10[NORMAL] = 48;
|
||||
const LARGE = object9.LARGE;
|
||||
object10[LARGE] = 80;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object11 = {gameIcon: {'justifyContent': 'center', 'alignItems': 'center'}};
|
||||
const object12 = {};
|
||||
object12.width = object10.size_24;
|
||||
object12.height = object10.size_24;
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object11.size24 = object12;
|
||||
const object13 = {};
|
||||
object13.width = object10.small;
|
||||
object13.height = object10.small;
|
||||
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object11.small = object13;
|
||||
const object14 = {};
|
||||
object14.width = object10.normal;
|
||||
object14.height = object10.normal;
|
||||
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object11.normal = object14;
|
||||
const object15 = {};
|
||||
object15.width = object10.large;
|
||||
object15.height = object10.large;
|
||||
object15.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object11.large = object15;
|
||||
const object16 = {};
|
||||
object16.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
|
||||
const ICON_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.ICON_MUTED;
|
||||
object16.tintColor = ICON_MUTED;
|
||||
object11.placeholder = object16;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object11.entityWrapper = {'borderWidth': 1, 'borderColor': null, 'overflow': 'hidden', borderColor: BORDER_SUBTLE};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object11]);
|
||||
closure.Sizes = object9;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_detection/native/GameIcon.tsx');
|
||||
exports.default = closure;
|
||||
exports.GameIconSizes = object9;
|
||||
exports.GameIconImageSize = object10;
|
||||
}
|
||||
|
||||
function GameIcon({game, skuId, size = env0_6.NORMAL, style}) { // fn#53424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6958:866, offset: 0x013486d9, size: 466 bytes, params: 2, frame: 22
|
||||
var r7;
|
||||
var iconURL;
|
||||
var defaultImport4;
|
||||
const styles = useStyles();
|
||||
const object2 = {};
|
||||
const NORMAL = env0_6.NORMAL;
|
||||
object2[NORMAL] = styles.normal;
|
||||
const SMALL = env0_6.SMALL;
|
||||
object2[SMALL] = styles.small;
|
||||
const SIZE_24 = env0_6.SIZE_24;
|
||||
object2[SIZE_24] = styles.size24;
|
||||
const LARGE = env0_6.LARGE;
|
||||
object2[LARGE] = styles.large;
|
||||
const items2 = [styles.gameIcon, object2[size], style];
|
||||
const r1 = skuId != null ? PremiumSubscriptionSKUs.TIER_0 === skuId ? importDefault(6781) /* metro dependency 6781 */ : PremiumSubscriptionSKUs.TIER_1 === skuId ? importDefault(6782) /* metro dependency 6782 */ : PremiumSubscriptionSKUs.TIER_2 === skuId ? importDefault(6783) /* metro dependency 6783 */ : PremiumSubscriptionSKUs.LEGACY !== skuId ? null : importDefault(6783) /* metro dependency 6783 */ : undefined;
|
||||
if (game == null) {
|
||||
r7 = r1;
|
||||
} else if (r1 != null) {
|
||||
r7 = r1;
|
||||
} else {
|
||||
iconURL = game.getIconURL(env0_7[size]);
|
||||
r7 = iconURL == null ? r1 : {uri: iconURL};
|
||||
}
|
||||
if (r7 == null) {
|
||||
defaultImport4 = importDefault(6784) /* metro dependency 6784 */;
|
||||
items2.push(styles.placeholder);
|
||||
r7 = defaultImport4;
|
||||
}
|
||||
return (
|
||||
<View style={[items2, styles.entityWrapper]}>
|
||||
<Image style={object2[size]} source={r7} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user