90 lines
6.0 KiB
TypeScript
90 lines
6.0 KiB
TypeScript
/* Metro module 10098; source: modules/collectibles/native/FractionalNitroPreview.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 1244, 4589, 5475, 10099, 10100, 6742, 4573, 2] */
|
|
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import LinearGradient from '../../../by-id/module-04589-LinearGradient.js'; /* Metro dependency 4589 */
|
|
import FastImage from '../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
|
|
import Fn_pdp_preview_headerPng from '../../../external/discord_assets/assets/orbs/fn_pdp_preview_header.png.js'; /* Metro dependency 10099 */
|
|
import NitroIcon from './NitroIcon.tsx'; /* Metro dependency 10100 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as CheckmarkSmallIconModule from '../../../design/components/Icon/native/redesign/generated/CheckmarkSmallIcon.tsx'; /* Metro dependency 6742 */
|
|
|
|
function _fun78867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10284:6, offset: 0x01e39117, size: 452 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = JsxRuntimeModule;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {};
|
|
const object2 = {'flexDirection': 'column', 'alignItems': 'center', 'justifyContent': 'center', 'padding': null,
|
|
'borderRadius': null, 'overflow': 'hidden', 'alignSelf': 'center'};
|
|
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object2.padding = PX_24;
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
|
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.gap = PX_16;
|
|
object.container = object2;
|
|
object.gradient = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0};
|
|
object.headerImage = {'width': 211, 'height': 157, 'resizeMode': 'cover'};
|
|
object.nitroIconContainer = {alignSelf: 'flex-start'};
|
|
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object.benefits = {'display': 'flex', 'flexDirection': 'column', gap: PX_8};
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object.benefitRow = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'alignItems': 'center', gap: PX_8};
|
|
const env0_7 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/collectibles/native/FractionalNitroPreview.tsx');
|
|
exports.FractionalNitroPreview = FractionalNitroPreview;
|
|
function FractionalNitroPreview() { // fn#78868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10284:839, offset: 0x01e392db, size: 418 bytes, params: 1, frame: 24
|
|
const styles = useStyles();
|
|
const E1NP2x = (require(1244) /* metro dependency 1244: indexNative */).t.E1NP2x;
|
|
const items2 = [E1NP2x];
|
|
items2[1] = (require(1244) /* metro dependency 1244: indexNative */).t.kpMomJ;
|
|
items2[2] = (require(1244) /* metro dependency 1244: indexNative */).t.xT1Vfn;
|
|
items2[3] = (require(1244) /* metro dependency 1244: indexNative */).t.myyAEr;
|
|
items2[4] = (require(1244) /* metro dependency 1244: indexNative */).t.zTk8Ul;
|
|
const defaultImport = LinearGradient;
|
|
const {START, END} = VerticalGradient;
|
|
return (
|
|
<View style={styles.container}>
|
|
{((Component) => <Component colors={['#000000',
|
|
'#36266d']} start={START} end={END} style={styles.gradient} />)(defaultImport)}
|
|
{((Component) => <Component source={{uri: Fn_pdp_preview_headerPng}} style={styles.headerImage} />)(FastImage)}
|
|
<View style={styles.nitroIconContainer}>
|
|
{((Component) => <Component />)(NitroIcon)}
|
|
</View>
|
|
<View style={styles.benefits}>
|
|
{items2.map(_fun78869)}
|
|
</View>
|
|
</View>
|
|
);
|
|
function _fun78869(a0, a1) { // fn#78869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10284:1220, offset: 0x01e3947d, size: 200 bytes, params: 3, frame: 21
|
|
let value = environment.__proto__;
|
|
const CheckmarkSmallIcon = (CheckmarkSmallIconModule).CheckmarkSmallIcon;
|
|
const WHITE = (Native).colors.WHITE;
|
|
value = <CheckmarkSmallIcon color={WHITE} />;
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<View style={styles.benefitRow} key={a1}>
|
|
{value}
|
|
<Text variant="text-sm/medium" color="always-white">
|
|
{(IndexNativeModule).intl.string(a0)}
|
|
</Text>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun78867, 10098, [31, 27, 661, 33, 4501, 697, 1244, 4589, 5475, 10099, 10100, 6742, 4573,
|
|
2]) /* metro module 10098, dependencies: [31, 27, 661, 33, 4501, 697, 1244, 4589, 5475, 10099, 10100, 6742, 4573, 2] */;
|