Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,95 @@
|
||||
/* Metro module 12158; source: modules/premium/native/gifting/PremiumGiftBackgroundSelectTile.tsx; dependencies: [31, 27, 1880, 12159, 33, 12160, 12161, 12162, 12163, 10527, 12164, 12165, 12166, 12167, 4501, 697, 1244, 2288, 5475, 2] */
|
||||
function _fun93249(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12344:6, offset: 0x020ac448, size: 535 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
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_3 = value.View;
|
||||
const env0_4 = value.Pressable;
|
||||
const PremiumGiftStyles = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumGiftStyles;
|
||||
const env0_5 = (require(12159) /* metro dependency 12159: PremiumGiftingConstants */).GIFT_STYLE_DESCRIPTIONS;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
object2 = {};
|
||||
const STANDARD_BOX = PremiumGiftStyles.STANDARD_BOX;
|
||||
object2[STANDARD_BOX] = importDefault(12160) /* metro dependency 12160 */;
|
||||
const CAKE = PremiumGiftStyles.CAKE;
|
||||
object2[CAKE] = importDefault(12161) /* metro dependency 12161 */;
|
||||
const CHEST = PremiumGiftStyles.CHEST;
|
||||
object2[CHEST] = importDefault(12162) /* metro dependency 12162 */;
|
||||
const COFFEE = PremiumGiftStyles.COFFEE;
|
||||
object2[COFFEE] = importDefault(12163) /* metro dependency 12163 */;
|
||||
const NITROWEEN_STANDARD = PremiumGiftStyles.NITROWEEN_STANDARD;
|
||||
object2[NITROWEEN_STANDARD] = {uri: importDefault(10527) /* metro dependency 10527: halloweenCardSmallPng */};
|
||||
const SNOWGLOBE = PremiumGiftStyles.SNOWGLOBE;
|
||||
object2[SNOWGLOBE] = null;
|
||||
const BOX = PremiumGiftStyles.BOX;
|
||||
object2[BOX] = null;
|
||||
const CUP = PremiumGiftStyles.CUP;
|
||||
object2[CUP] = null;
|
||||
const SEASONAL_CAKE = PremiumGiftStyles.SEASONAL_CAKE;
|
||||
object2[SEASONAL_CAKE] = {uri: importDefault(12164) /* metro dependency 12164: gift_cakePng */};
|
||||
const SEASONAL_CHEST = PremiumGiftStyles.SEASONAL_CHEST;
|
||||
object2[SEASONAL_CHEST] = {uri: importDefault(12165) /* metro dependency 12165: gift_chestPng */};
|
||||
const SEASONAL_COFFEE = PremiumGiftStyles.SEASONAL_COFFEE;
|
||||
object2[SEASONAL_COFFEE] = {uri: importDefault(12166) /* metro dependency 12166: gift_coffeePng */};
|
||||
const SEASONAL_STANDARD_BOX = PremiumGiftStyles.SEASONAL_STANDARD_BOX;
|
||||
object2[SEASONAL_STANDARD_BOX] = {uri: importDefault(12167) /* metro dependency 12167: gift_boxPng */};
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun93250);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/gifting/PremiumGiftBackgroundSelectTile.tsx');
|
||||
exports.default = GiftBackgroundSelectTile;
|
||||
exports.GIFT_STYLE_IMG = object2;
|
||||
}
|
||||
|
||||
function _fun93250(a0) { // fn#93250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12344:559, offset: 0x020ac65f, size: 177 bytes, params: 2, frame: 15
|
||||
const object2 = {};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
const value2 = 0;
|
||||
object2.container = {'width': 78, 'height': 44, 'justifyContent': 'center', marginEnd: PX_8,
|
||||
marginStart: value2 !== a0 ? value2 : 20};
|
||||
const object4 = {'position': 'absolute', 'borderColor': null, 'borderRadius': null, 'borderWidth': 2, 'flex': 1,
|
||||
'width': 78, 'height': 44};
|
||||
const TEXT_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_BRAND;
|
||||
object4.borderColor = TEXT_BRAND;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.selected = object4;
|
||||
object2.image = {'width': 72, 'height': 38, 'alignSelf': 'center'};
|
||||
return object2;
|
||||
}
|
||||
|
||||
function GiftBackgroundSelectTile({index, selected, giftStyle, onPress}) { // fn#93251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12344:974, offset: 0x020ac710, size: 298 bytes, params: 2, frame: 27
|
||||
var r0;
|
||||
var object2;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var property2;
|
||||
var intl2;
|
||||
var items2;
|
||||
var value;
|
||||
const styles = useStyles(index);
|
||||
const property = env0_8[giftStyle];
|
||||
if (property == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
object2 = {};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property2 = (importDefault(2288) /* metro dependency 2288: PremiumGiftingMessages */)['+utqaz'];
|
||||
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2['aria-label'] = Reflect.apply(formatToPlainString, intl, [property2,
|
||||
{giftStyle: intl2.string(GIFT_STYLE_DESCRIPTIONS[giftStyle])}]);
|
||||
object2['aria-selected'] = selected;
|
||||
object2.style = styles.container;
|
||||
object2.onPress = onPress;
|
||||
items2 = [selected && <View style={styles.selected} />];
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
items2[1] = ((Component) => <Component resizeMode="contain" style={styles.image} source={property} />)(value);
|
||||
value = <Pressable {...object2}>{items2}</Pressable>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user