75 lines
4.3 KiB
TypeScript
75 lines
4.3 KiB
TypeScript
/* Metro module 14620; source: modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx; dependencies: [27, 8259, 33, 4501, 697, 14621, 7958, 4573, 2] */
|
|
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as BoostGemIconModule from '../../../../design/components/Icon/native/redesign/generated/BoostGemIcon.tsx'; /* Metro dependency 7958 */
|
|
import * as GuildPowerupsConstantsModule from '../constants/GuildPowerupsConstants.tsx'; /* Metro dependency 8259 */
|
|
import * as GetGuildPowerupsBoostInfoTextModule from '../utils/getGuildPowerupsBoostInfoText.tsx'; /* Metro dependency 14621 */
|
|
|
|
function _fun110544(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14817:6, offset: 0x0237c878, size: 268 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = JsxRuntimeModule;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const PX_12 = (Native).space.PX_12;
|
|
const env0_7 = Reflect.apply(createStyles, value, [{container: {'flex': 1, 'alignItems': 'center',
|
|
'justifyContent': 'center', paddingVertical: PX_12}, headerContainer: {'flexDirection': 'row',
|
|
'alignItems': 'center', 'justifyContent': 'center', 'display': 'flex'}}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx');
|
|
exports.default = GuildPowerupsBoostInfo;
|
|
function GuildPowerupsBoostInfo({count, type}) { // fn#110545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14817:486, offset: 0x0237c984, size: 444 bytes, params: 2, frame: 26
|
|
const styles = useStyles();
|
|
const guildPowerupsBoostInfoText = (GetGuildPowerupsBoostInfoTextModule).getGuildPowerupsBoostInfoText(count,
|
|
type);
|
|
const BoostGemIcon = (BoostGemIconModule).BoostGemIcon;
|
|
let AVAILABLE = BoostInfoType.AVAILABLE;
|
|
const boostGemIcon = (
|
|
<BoostGemIcon
|
|
size="sm"
|
|
color={type === AVAILABLE ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GUILD_BOOSTING_PINK : (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED}
|
|
/>
|
|
);
|
|
const Text = (TextModule).Text;
|
|
AVAILABLE = BoostInfoType.AVAILABLE;
|
|
return (
|
|
<View
|
|
style={styles.container}
|
|
accessible
|
|
accessibilityLabel={'' + count + ', ' + guildPowerupsBoostInfoText}
|
|
>
|
|
<View
|
|
style={styles.headerContainer}
|
|
importantForAccessibility="no-hide-descendants"
|
|
accessible={false}
|
|
>
|
|
{boostGemIcon}
|
|
<Text
|
|
variant="text-lg/medium"
|
|
color={type !== AVAILABLE ? 'text-subtle' : 'text-strong'}
|
|
importantForAccessibility="no-hide-descendants"
|
|
>
|
|
{count}
|
|
</Text>
|
|
</View>
|
|
<Text
|
|
variant="text-md/normal"
|
|
color="text-subtle"
|
|
importantForAccessibility="no-hide-descendants"
|
|
>
|
|
{guildPowerupsBoostInfoText}
|
|
</Text>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun110544, 14620, [27, 8259, 33, 4501, 697, 14621, 7958, 4573,
|
|
2]) /* metro module 14620, dependencies: [27, 8259, 33, 4501, 697, 14621, 7958, 4573, 2] */;
|